recentpopularlog in

mcherm : via:nedbatchelder   74

Ned Batchelder: Finding your first OSS project
Places to go to find an open source project to contribute to.
opensource  NedBatchelder  via:NedBatchelder 
january 2018 by mcherm
Ned Batchelder: Finding fuzzy floats
A data structure allowing you to use floating point numbers as hash keys but still allow a degree of "fuzzy matching" where numbers that are close (but not exact) count as "equal".
datastructures  programming  NedBatchelder  via:NedBatchelder 
july 2017 by mcherm
Host a Static Site on AWS, using S3 and CloudFront | David Baumgold
A nice, simple description of how to host a static site on S3, including the use of CloudFront and an https certificate.
blogging  aws  s3  via:NedBatchelder 
march 2017 by mcherm
Ned Batchelder: Breaking out of two loops
A really good example of redesigning code so that something (in this case breaking out of two loops) is made far more clear.
python  programming  NedBatchelder  via:NedBatchelder 
august 2016 by mcherm
Advent of Code
A programming challenge puzzle (well, 50 puzzles) that looks pretty interesting.
programming  puzzles  via:NedBatchelder 
may 2016 by mcherm
Ned Batchelder: How I make presentations
Some TEXT BASED tools that he uses to make slides. Check out that "cupid" link, for instance.
speaking  NedBatchelder  via:NedBatchelder 
may 2015 by mcherm
Ned Batchelder: Kindling projects
Ideas for simple projects for beginners to get started.
programming  NedBatchelder  via:NedBatchelder 
february 2015 by mcherm
D3.js - Data-Driven Documents
A javascript library for building things like animated SVG graphics on web pages.
javascript  via:NedBatchelder  library  svg  todo 
july 2014 by mcherm
On undoing, fixing, or removing commits in git
Some instructions on how to edit history in git. It's complicated enough that they used a "choose your own adventure" style to cover all the possibilities.
versioncontrol  git  via:NedBatchelder 
january 2014 by mcherm
Ned Batchelder: Range overlap in two compares
How to tell whether two ranges overlap. You might try coding this with 4 comparisons, but only 2 are needed. Shows how problem solving techniques can be used to great effect.
math  algorithm  programming  NedBatchelder  via:NedBatchelder 
october 2013 by mcherm
Filter a list into two parts: Ned Batchelder
An excellent overview of different (improving) solutions to a straightforward programming problem (in Python).
programming  python  via:NedBatchelder  NedBatchelder 
june 2013 by mcherm
A lesson in shortcuts. Long ago, as the design of the Unix…
According to this, dot-files being hidden was not done intentionally in unix, it was the result of a bug.
history  unix  operatingsystem  via:NedBatchelder  bugs 
april 2013 by mcherm
Ned Batchelder: Selecting randomly from an unknown sequence
Algorithm for choosing a random line from a file (of unknown length) without reading the file twice.
algorithms  programming  NedBatchelder  via:NedBatchelder 
august 2012 by mcherm
Fixing common Unicode mistakes with Python — after they’ve been made | Luminoso Blog
A library to recognize text that was mangled by improper encodings and reverse the damage.
via:NedBatchelder  unicode  programming  python 
august 2012 by mcherm
Ned Batchelder: tl;dw: Stop mocking, start testing
Some thoughts (from some Google developers) on testing. Use unit tests. Use mocks for external systems, but not for every class in your code (mocks will tend to diverge from real code). Functional styles are much easier to test AND have other advantages.
testing  programming  softwaredevelopment  via:NedBatchelder 
june 2012 by mcherm
Ned Batchelder: Recursive dogma
He asked why his recursive function failed with 2**30 as input. They jumped on him as doing it wrong. But turns out he was allocating memory for lists where he could instead have been computing the answer in closed form (either with or without recursion).
via:NedBatchelder  programming  algorithms  functional  NedBatchelder 
may 2012 by mcherm
Goodbye Tabblo - the end of life of a startup
The end of a startup is an interesting thing. Here, it was acquired by a big company and eventually 100% of the developers were taken off it. Now it just runs (for a while anyway).
startup  via:NedBatchelder 
february 2012 by mcherm
Cathode: Ned Batchelder
The rest doesn't interest me much, but the model for charging for free software is neat. The program has fake "glitches" (that's an intentional part of the retro feel). They get worse unless you get a paid copy.
opensource  free  pricing  via:NedBatchelder 
january 2011 by mcherm
Colored Me – The Aporetic
His Irish great great grandfather was classified as "colored" by a racist VA official, many decades after the fact.
race  history  via:NedBatchelder  personal_net 
january 2011 by mcherm
Ned Batchelder: Pythonic
Read Andrew Montalenti's comment giving an excellent illustration of what "pythonic" means.
python  programming  via:NedBatchelder 
november 2010 by mcherm
Ned Batchelder: Global Django requests
A couple of ways to stash a "per-thread" object. Native support for ThreadLocal is one; building a dictionary keyed by Thread and storing it globally is another; this adds walking up the call stack until you find an instance.
programming  threading  concurrentprogramming  python  via:NedBatchelder  NedBatchelder 
august 2010 by mcherm
OEDILF - The Omnificent English Dictionary In Limerick Form
A whole dictionary (up to Do so far) with all definitions being limericks. Really. Fun.
poetry  language  funny  limerick  via:NedBatchelder 
july 2010 by mcherm
The case of the secured server: Ned Batchelder
A great story of why security officers often create problems. In this case, they insisted that bonded movers move one of the servers. This directly led to the server getting stolen.
security  via:NedBatchelder 
may 2010 by mcherm
apache.org incident report for 04/09/2010 : Apache Infrastructure Team
Detailed report of a (successful) hack attempt against Apache including what worked and what didn't.
security  hacking  via:NedBatchelder  apache  personal_net 
april 2010 by mcherm
Ned Batchelder: Different, good and bad
An example of one good and one bad innovative UI design.
webdesign  personal_net  via:NedBatchelder 
march 2010 by mcherm
Ned Batchelder: AllRGB
Creating an image file that contains every RGB color.
via:NedBatchelder  color 
february 2010 by mcherm
IE8 XSS filter: what does it really do? - Stack Overflow
IE8's XSS filter is a real pain when you try to do some unusual but legitimate things. Furthermore, it can also be abused and thus creates a security loophole!
webdesign  webdevelopment  ie  xss  security  via:NedBatchelder  NedBatchelder 
january 2010 by mcherm
Javascript Text Reflection
A cool visual effect ("reflected letters") without using photoshop or images; just javascript.
webdesign  webdevelopment  via:NedBatchelder 
january 2010 by mcherm
Ned Batchelder: PNG optimization
Some links to detailed information about compressing certain image file types (especially PNG).
via:NedBatchelder  compression  png  webdevelopment 
september 2009 by mcherm
Typecasting
Yes, somebody cares enough about typography to criticize movies that have typographical anachronisms.
via:NedBatchelder  typography  movies  personal_net 
july 2009 by mcherm
Custom DIY Link Shortening for Your Networks – Zariat
This is brilliant... I should do it immediately. Make "mcherm.com/facebook" forward to the appropriate place, also "mcherm.com/twitter" and so on, for all the public sites. Simple, elegant, memorable... I should do this!
todo  via:NedBatchelder  internet  socialcomputing 
june 2009 by mcherm
TDD Anti-Patterns » James Carr
A giant catalog of anti-patterns in unit tests. Really a very good read.
programming  unittest  testing  mypostings  JamesCarr  via:NedBatchelder 
june 2009 by mcherm
Cryptographic Right Answers
Some useful advice about which crypto techniques to use (as of now, 2009). It's good advice if you mean to be truly secure: follow it!. This is by the guy in charge of security for FreeBSD -- that's about as trustworthy a source as you can get for this kind of information!
via:NedBatchelder  cryptography  programming  refs 
june 2009 by mcherm
Will Iowans Uphold Gay Marriage?: FiveThirtyEight: Politics Done Right
An analysis that attempts to predict when various states would vote for gay marriage. Surprisingly good news!
via:NedBatchelder  politics  gayrights 
april 2009 by mcherm
Visualising Sorting Algorithms - hatful of hollow
A very good way of visualizing different sorting algorithms in a static diagram (rather than an animated one).
visualisation  math  algorithms  computerscience  via:NedBatchelder 
april 2009 by mcherm
tweenbots | kacie kinzer
A robot that can SUCCESSFULLY navigate the streets of New York City: it consists of a cute-looking device which drives along in a straight line and has a note on it telling passers-by where it is headed.
via:NedBatchelder  socialcomputing  robots  art 
april 2009 by mcherm
The directed graph of stereotypical incomprehensibility » Language Log
In English we say "It's all Greek to me" In Greek they say "It's all Chinese". Here is a graph of many languages showing what they use.
language  via:NedBatchelder 
april 2009 by mcherm
Ned Batchelder: Obama's special joke
Special Olympics - how it's different from a normal sporting event.
via:NedBatchelder  NedBatchelder  handicaps 
april 2009 by mcherm
Ned Batchelder: You asked for it
Put a page in your webapp that generates an exception. Then you can test your logs.
webdevelopment  via:NedBatchelder  NedBatchelder  mypostings 
february 2009 by mcherm
Infrastructure for Modern Web Sites « random($foo)
This is just a list of common features that many (if not most) websites need. Most are NOT provided as standard infrastructure... instead each site builds them independently, but the author argues that they SHOULD be standard infrastructure.
via:NedBatchelder  LeonardLin  programming  webde  webdevelopment  frameworks  scaling  scalability 
february 2009 by mcherm
Ned Batchelder: Arabic logos
Some interesting examples of western logos rendered in arabic.
unicode  arabic  via:NedBatchelder  personal_net 
january 2009 by mcherm
Ned Batchelder: Dieting cavemen on twitter
Cavemen ate everything they found, but now that food is easy and plentiful we need to learn how to diet. Similarly, people have an inherent tendency to try to learn all information they can get their hands on, but now that information is easy and plentiful we need to learn how to filter it.
socialcomputing  information  NedBatchelder  via:NedBatchelder 
january 2009 by mcherm
Weather forecasting: Ned Batchelder
How to get hourly weather forecasts from the national weather service.
weather  science  via:NedBatchelder  NedBatchelder 
december 2008 by mcherm
Internet explorer mystery #1376: Ned Batchelder
Technically, it's a bug in Firefox: Firefox does something sensible but the JavaScript language definition requires something completely ridiculous. Either way, it's an interesting bit of JavaScript knowledge about hoisting. [...] Later, in response to many other comments, we find the true answer: the ridiculous case is undefined in JavaScript (technically, it is illegal but it not required to be a syntax error). Firefox's choice of how to interpret it is far superior.
mypostings  programming  programminglanguages  languagedesign  javascript  ie  firefox  browsers  bugs  via:NedBatchelder  NedBatchelder 
december 2008 by mcherm
Ned Batchelder: My oldest code still running
Ned Batchelder's oldest code still running. I wonder what mine is?
history  computers  personal_net  via:NedBatchelder  NedBatchelder 
november 2008 by mcherm
Judge orders five detainees released
A very conservative judge orders 5 Guantanamo detainees released, since there isn't and never has been any evidence against them. My comment is that I think these people were kept for 7 years without evidence because certain people in power had a great fear of being seen to be wrong.
mypostings  civilrights  rights  politics  via:NedBatchelder  NedBatchelder 
november 2008 by mcherm
Lost Garden: The Princess Rescuing Application: Slides
A wonderful presentation (PowerPoint) that describes how to use lessons from the world of computer games to help in designing computer applications.
programming  design  gamedesign  gameprogramming  games  softwaredevelopment  webdesign  webdevelopment  via:NedBatchelder 
november 2008 by mcherm
Ned Batchelder: The first servers
Phone companies allocated area codes so as to minimize server load.
computers  history  via:NedBatchelder 
october 2008 by mcherm
Animated Sorting Algorithms
A *WONDERFUL* presentation of different sorting algorithms using animated graphics to illustrate their behavior on different problem sizes and different input conditions. The exposition describes the algorithms quite clearly telling not just the implementation but also the strengths, weaknesses, and characteristics of each. Best of all, the main POINT of the whole thing is to bring home the point that there is no "one best algorithm", that it depends on the characteristics of the problem!
programming  algorithms  via:NedBatchelder  teaching 
october 2008 by mcherm
Apple Extends Non-Disclosure to App Store Rejection Letters - Mac Rumors
Apple is getting criticized for booting iPhone applications from the Apple store -- because developers have no way to know whether their app will be booted. But now it's worse: Apple started telling people that the fact they've been booted is under non-disclosure, so they can't even talk about it!
censorship  apple  nda  stupid  iphone  softwaredevelopment  law  ip-law  via:NedBatchelder 
september 2008 by mcherm
Federal judge halts Defcon talk on subway card hacking | The Register
Transit authority gets court order to prevent a talk at a security conference.
security  RFID  eff  hacking  cracking  via:NedBatchelder 
august 2008 by mcherm
Wordle - Beautiful Word Clouds
A useful tool to build "word clouds" that make neat use of typography.
useful  via:NedBatchelder  typography  cloud  images  webdesign 
june 2008 by mcherm

Copy this bookmark:





to read