Updates from December, 2017 Toggle Comment Threads | Keyboard Shortcuts

  • Ben 7:57 am on 12/23/2017 Permalink  

    Recode: Here’s how to check if you interacted with Russian propaganda on Facebook during the 2016 election

  • Ben 1:21 pm on 2/10/2016 Permalink  

    Why Stack Overflow Doesn’t Care About Ad Blockers 

    [W]e understand that some people just don’t like ads. Our belief is that if someone doesn’t like them, and they won’t click on them, any impressions served to them will only annoy them– plus, serving ads to people who won’t click on them harms campaign performance.

    Why Stack Overflow Doesn’t Care About Ad Blockers

  • Ben 12:25 pm on 9/15/2014 Permalink  

    Notch: I’m leaving Mojang 

    “If I ever accidentally make something that seems to gain traction, I’ll probably abandon it immediately.”


  • Ben 9:28 am on 7/15/2013 Permalink  

    Sustaining git-annex development 

    After his successful Kickstarter, Joey Hess is fundraising to continue working on git-annex.

  • Ben 5:30 pm on 9/3/2010 Permalink  

    What I learned from reading the Android user manual 

    I love my Nexus One Android phone and, in general, I’ve found the user interface to be very intuitive. However, I recently discovered that there’s a 340-page user manual for Android. I decided to read the whole damn thing and find out if there were any great hard-to-find features or tricks in there. I learned a bunch of stuff that probably should have been obvious but I also made some nice discoveries.

    It’s easier to use the trackball to position the text cursor and select text.

    I had been trying to use my finger on the screen to position the text cursor, that usually required extreme accuracy and multiple tries. The manual points out that the trackball is much better for this.

    International dialing: touch and hold 0 to enter a “+”.

    I’m probably the only idiot who didn’t know this.

    That scroll icon on the bottom left corner of the Phone app is the access voicemail button.

    Again, this is probably a universal symbol that only I hadn’t figured out.

    Touch a contact’s picture to bring up the quick contact menu.

    Wherever you see a contact’s picture or icon, such as a shortcut on your home screen or in the contacts list itself, you can touch it to bring up a neat quick contact menu with icons for each contact method for that person.

    Compass Mode in Street View is really cool.

    This seems like a pretty buried feature to me so here’s how to get to it. Open Maps, then long-touch a point on the map you are interested in. A balloon will appear with the address and place name. If Street View is available at that location, there will be a photo thumbnail next to the address. Now touch the balloon to open an info screen for the location. On that screen you’ll see a Street View icon which you can touch to open Street View. Just this much was new to me, I hadn’t realized you could access Street View from Maps. It get’s cooler though, touch menu and select Compass Mode. Now you can tilt, pan, or turn your phone to look around.

    In Gallery, you can peek into an album stack by touching it with two fingers and spreading them apart.

    This doesn’t seem terribly useful to me but it’s kind of a neat effect.

    In album view, touch Menu twice to enter batch mode.

    I never would have figured this out on my own. Very useful for photo management.

    Hello, augmented reality.

    I haven’t seen this work yet but the manual claims that Goggles will display nearby locations once it has a GPS lock.

    The rest are self-explanatory:

    • In Music Playback, touch and hold track information to search for it with various apps.
    • In Weather, touch the screen for details and then touch the hour of the day for the forecast for that time.
    • Drag the Calculator screen right to left to access advanced functions.
    • In Calculator, roll the trackball down to access previous operations.
  • Ben 11:39 am on 11/30/2009 Permalink
    Tags: performance, web-programming   

    Memory will be the real performance bottleneck on your VPS 

    This well-done benchmark comparison of several Virtual Private Server vendors gives me warm and fuzzies that I chose Linode for my new hosting provider. However, the benchmarks chosen mostly test CPU performance and the bottleneck when hosting a dynamic web site is likely to be memory capacity.

    The number of requests per second that your server can handle is determined by the maximum concurrent requests possible divided by the time in seconds to handle each request. Each Apache process running WordPress PHP scripts via mod_php consumes about 20 MB on my Linode. This means I can only run about 10 Apache processes and therefore handle 10 concurrent requests. If each request takes 150 milliseconds to process, 50 milliseconds transfer time and 100 milliseconds processing time, my server can handle 10 / .15 = 66.67 requests per second. Let’s assume another VPS vendor provides the same 360 MB as my Linode account but the CPU is half as fast. The requests might take 250 milliseconds so the server could handle 10 / .25 = 40 requests per second. In this situation, the faster CPU is a clear win. But several of the vendors in the review provide significantly more memory than my Linode account. If that slower processor came with 1024 MB memory, it could maybe run 45 Apache processes and serve 45 / .25 = 180 requests per second, far outstripping my supposedly faster Linode.

    As you add memory to a server, CPU will eventually become the bottleneck again, but my Linode rarely goes above 1% CPU utilization while serving 66 requests per second, so I think that number is probably quite high. There are also other web servers and Apache configurations that are a bit more memory efficient than what I am talking about, but with all of them you will still be limited by the number of 10-20 MB PHP processes you can fit in memory.

    I don’t regret choosing Linode as my VPS provider, they have great support and nice management tools. I also don’t expect to get anywhere near the traffic levels I talked about above. But if you are evaluating VPS vendors based on how much traffic you handle for the money you are paying, be sure to consider memory capacity.

    • davidw 9:46 am on 12/1/2009 Permalink

      Linode does pretty well in terms of memory usage, because it lets you choose 32 bit, as opposed to 64 bit (like Slicehost). I did some numbers of my own a while back, and while those were the only two I compared, Linode really won out: http://journal.dedasys.com/2008/11/24/slicehost-vs-linode
    • Ben 12:46 pm on 12/1/2009 Permalink

      Nice analysis, David. I wasn’t aware of the memory cost of 64 bit.

    • afternoon 9:17 am on 3/8/2010 Permalink

      I highly recommend a combination of nginx and FastCGI. I’m personally running both PHP and Python (Django) on a single Linode. I have 3 php-cgi instances resident at about 20MB each. nginx is resident at 2MB. Although the RAM usage is not much different, nginx serves static content, so the PHP processes service far fewer requests, raising the requests/sec limit.

  • Ben 1:06 pm on 7/9/2009 Permalink  

    Implementing Markdown with Regular Expressions 

    Jeff Atwood has a post about something I’m intimately with, implementing a subset of Markdown using regular expressions. After years of tweaking and user contributions, the regexps in the Markdown Vim syntax file are now so complex, even I don’t understand them.

  • Ben 1:23 pm on 10/25/2008 Permalink
    Tags: gnome,   

    Mark Shuttleworth’s notes on the GNOME Usability Hackfest with some interesting mockups.

  • Ben 8:02 am on 9/3/2008 Permalink  

    Stephen Fry wishes GNU a happy birthday 

    Stephen Fry made an excellent video explaining Free Software and wishing the GNU project a happy 25th birthday.

  • Ben 6:52 am on 8/3/2008 Permalink  

    How to improve Free Software usability 

    Matthew Paul Thomas is back with an article about why Free Software has poor usability, with concrete suggestions for how to solve the problems. Thomas is an interaction designer who works for Canonical. You might remember his list of 69 usability problems in Ubuntu 5.04.

  • Ben 6:31 am on 7/12/2008 Permalink  

    Dependency Injection and Unit Testing 

    The Google Testing Blog has one of the clearest explanations I’ve seen of why dependency injection is useful. This got me thinking about how people handle this stuff in dynamic language land and I found Dependency Injection in Ruby and Needle, a DI container for Ruby.

  • Ben 9:17 am on 4/24/2008 Permalink  

    Ubuntu 8.04 LTS Desktop Edition Released 

    The latest release of Ubuntu Linux has hit the download servers. One of the more exciting aspects of this release is that it contains a new installer that allows Windows users to install inside their Windows hard drive partition without repartitioning, so you can try it out with no risk to your existing system. Christer Edwards has some nice upgrade instructions.

  • Ben 1:17 pm on 2/28/2008 Permalink  

    Ubuntu Brainstorm 

    Ubuntu has launched Brainstorm, a Dell Ideastorm-like site where you can post Ubuntu feature requests and vote them up and down.

  • Ben 6:35 pm on 2/19/2008 Permalink  

    Mozilla Messaging 

    The new Mozilla organization dedicated to developing Thunderbird, Mozilla Messaging, has launched. They will also be developing Lightning, Sunbird, and an IM client, which is all very exciting. I’m using Lightning as my calendar at work now and it is looking and feeling much better than it has in the past.

  • Ben 3:30 pm on 2/1/2008 Permalink  

    Yahoo and Microsoft 

    Many people have pointed out that the scary thing about Microsoft potentially buying Yahoo is that Yahoo owns many important web sites (Flickr, del.icio.us, upcoming.org, etc.) and supports many important open source projects (PHP, FreeBSD, YUI, Hadoop, Squid, etc.) I’m not worried, though. These days Microsoft is so ineffectual that it would take them at least a decade to ruin all of those sites and projects.

Compose new post
Next post/Next comment
Previous post/Previous comment
Show/Hide comments
Go to top
Go to login
Show/Hide help
shift + esc