dannyman.toldme.com

This page features every post I write, and is dedicated to Andrew Ho.

May 30, 2010
Featured, Sundry

A Brief History of the Banjo

Link: https://dannyman.toldme.com/2010/05/30/a-brief-history-of-the-banjo/

The banjo came from Africa. White people began playing banjo in the 19th century in Minstrel Shows. As white people in black face got better at playing the banjo, black people lost interest.

. . .

Mei was called in to substitute at the hospital. Left without any better ideas of how to spend my day I hopped on the train, transferring to the 7 at Times Square, figuring that I might as well cover the IRT system. Once it hit Queens, a borough I haven’t visited since moving to New York except to fly through the airports, we rode on elevated tracks. At one point the elevated tracks were double-stacked, which thrilled me and I thought “only in New York . . .”

I hopped off at Woodside 61st St to admire the LIRR overpass. I then rode two more stops up to 74th St Broadway thinking I might transfer to the trains running out to Jamaica, then take some complicated set of transfers back, but first I had to explore the neighborhood, which began Indian, everyone offering a $12 lunch buffet, though I wasn’t hungry. A bit further and I saw some stoop sales and a sign advertizing a Flea Market, but what I found were many people milling around a board with lots of spread sheets posted, each spreadsheet headed by “Mesa” and a number. At first I figured this was table assignments for the flea market, or maybe a silent auction. I got closer and saw that the spreadsheets were tallying rows of numbers in the tens of thousands. I am used to wandering in foreign countries where I don’t speak enough to ask intelligent questions so my natural instinct was to wonder to myself and continue my wander.

People were standing around filling out forms on clipboards. Others carried red, yellow and blue flags. “Venezuela?” I wondered. No, Venezuela has stars. Finally campaign posters and small groups chanting for their candidate. I caught the name Columbia, and at last understood that people were campaigning for mail-in ballots.

I wandered back around, passing a lady who was selling meat kabobs from a grill set on a grocery cart beneath the elevated tracks. I was tempted, because the last street vendor of this nature I had seen was nearly a decade ago, in Bangkok. I was glad that New York had enough people from developing countries that someone had balls enough to (I assume) flout the authorities and sell some proper street food.

Back at the station I reconsidered my plan: the other trains ran underground, how far I did not now. There were also multiple service advisories: shuttle buses to Jamaica? Nah, I took the 7 to the end of the line: Flushing.

The Flushing station gave very much the impression of a transit outpost: plenty of people ride to the end of the line, and pass past a dozen signs indicating which buses connect nearby, then they go stand in long lines on the street to head, I assume, home. Also, everyone is Chinese. And many signs are posted in Chinese, without translation.

I wandered in the commercial bubble surrounding Flushing Main St, wandering into “malls” of little stalls. I didn’t buy anything, but I recalled that Mei’s parents had declared San Francisco Chinatown superior to the one in Manhattan, which was too cheesy. There was little dairy for sale in Flushing: just Chinese people selling goods and services to Chinese people. There was no self-consciousness of outsiders. I saw a man hold a little boy over a street curb so he could urinate in the gutter, as I thought to myself “there must be a toilet he could use.” In the basement level of one mall I caught sight of an ancient man sitting in a stall impassively watching a porno. The video screen was angled away from me but I could see what was on the screen. I smiled: people were being human and that was all there was to say.

Feedback Welcome

May 28, 2010
Linux, Sundry, Technical

HOWTO: Add a Swapfile at Boot

Link: https://dannyman.toldme.com/2010/05/28/ubuntu-linux-add-swap-file-at-boot/

A while back I outfitted my personal workstation with 4GB of RAM. That’s plenty of memory and since disk space was tight I didn’t want to waste any on a swap partition, and I lived happily without swap for a very long time until I began using more virtualization. (I freed up space on my physical desk top by migrating my work environment from a laptop to a virtual machine on my personal workstation.)

I wrote a script to add a “temporary” swap file on demand but what I wanted was a swap file at boot. That actually turns out to be pretty simple. In this case, I just prepare the swap file:

FILE=/mnt/swapfile
SIZE=8388608 # 8 GB

dd if=/dev/zero of=$FILE bs=1024 count=$SIZE
mkswap $FILE $SIZE
swapon $FILE
swapon -s

Then, to make it stick, add this line to /etc/fstab just as you would for a swap partition:

/mnt/swapfile none swap sw 0 0

This is a win for the Unix everything-is-a-file philosophy.

See Also: Ubuntu Community Swap FAQ

3 Comments

May 24, 2010
Technology

Google: Privacy Done Right

Link: https://dannyman.toldme.com/2010/05/24/google-privacy-done-right/

Logging in to Google Reader, I find that they have made an enhancement, with privacy implications:

Of course, I think my shared items have always been public, but it is nice that they’re trying to do the right thing.

Feedback Welcome

May 20, 2010
Linux, Sundry, Technical, WordPress

Rackspace Cloud Server: Crude Performance Tuning

Link: https://dannyman.toldme.com/2010/05/20/rackspace-cloud-server-crude-performance-tuning/

I recently migrated this web site to a virtual server at the Rackspace Cloud. I started with the cheapest, 256M slice, but after hitting some performance issues really quickly, I figured that the extra $10/month to grow the slice to 512M was worthwhile. Even so, I don’t think MySQL and Apache are tuned, out-of-the-box, for such “small” systems.

I am running WordPress, a PHP application, on Apache and MySQL, running on CentOS. I am using Munin to track the system health. Since MySQL performance tuning can be extremely complicated I have focussed my initial efforts on Apache.

So, the memory graph would ideally top out at 512MB, but in practice, the system and programs allocate excess memory they rarely touch, and that gets paged out to swap. It is when the swap activity gets high that system performance goes to heck. A spike in system load is a good symptom of possible performance issues.


When things went bad on Wednesday, I tuned Apache down somewhat from the defaults and then enabled the Apache status page, and told Munin to go ahead and graph that. I am new to Munin, but Slicehost has some excellent articles on installing and configuring it in my environment.

This morning Munin sent me e-mail that it was having trouble collecting data, so I took a look, and reset performance values for Apache based on the above graph:

<IfModule prefork.c>
StartServers      6
MinSpareServers   3
MaxSpareServers  12
ServerLimit      15
MaxClients       15
MaxRequestsPerChild  4000
</IfModule>

Hopefully, this will hold. I would love to audit the system memory use in greater detail to allow Apache some greater flexibility, but in the interests of achieving a stable system quickly, this will hopefully prove to be a good strategy.

Feedback Welcome

May 20, 2010
doodles, Religion

May 20: “Everybody Draw Mohammed Day”

Link: https://dannyman.toldme.com/2010/05/20/everybody-draw-mohammed-day/

Mohammed

Salaam Alaykum

Feedback Welcome

May 20, 2010
Featured, News and Reaction, Technology, Testimonials

Post-Facebook Diaspora?

Link: https://dannyman.toldme.com/2010/05/20/post-facebook-diaspora/

So, occasionally someone asks “well, what will we replace Facebook with?” We don’t really need to replace it right away, but there are some NYU kids who figure it would be a fun project to build a distributed social network where you get your own little “seed” site on a server somewhere, and you can connect with your friends, determining what you intend to share with whom. It sounds totally doable, though who knows if they’ll actually manage to execute and gain traction.

They asked the Internet for $10,000 via KickStarter. So far they have been pledged $174,915. $25 of that is mine. I guess they won’t fail for lack of interest or money. Go go underdogs! :)

Oh, and if you’ve been tempted to ditch Facebook, but didn’t want to be the only crazy dweeb out there, you can join just over 6,000 other folks planning to quit on May 31: http://www.quitfacebookday.com/

1 Comment

May 19, 2010
Technical

HOWTO: Disable “sidebar” in Ubuntu’s mutt-patched Package

Link: https://dannyman.toldme.com/2010/05/19/ubuntu-mutt-patched-disable-sidebar/

Yes, I still use mutt. The killer feature it has over Gmail is that I can go through my old messages in forward-chronological order. That and I don’t have to hack my web browsers to display plain text messages in a monospace font. But, in order to use mutt with all the latest and greatest patches, I had to apt-get install mutt-patched.

It is convenient that they maintain a package with all the patches. Unfortunately, when I fired up mutt it had this ugly left-pane, like it wanted to be Outlook or something? So, I did a little research and tracked the sidebar to its source:

Unfortunately, though, mutt lacks an important feature that most email clients do have: a folder list that allows you to see all mail folders you have and how many (new) emails they each contain.

One person’s important feature is another person’s nuisance, but further down the page I found the config to turn the thing off:

set sidebar_visible=no

4 Comments

May 19, 2010
Featured, News and Reaction, Sundry

Shooting at Lincoln and Franklin

Link: https://dannyman.toldme.com/2010/05/19/brooklyn-shooting/

On my way back from the Post Office around 11:30 I passed a big police tape scene on Franklin Ave at Lincoln Pl. I saw a small river of blood on the sidewalk next to a dropped shopping bag. A neighbor tells me that he heard five shots and a passing fire truck stopped and had police on the scene in two minutes. I assume the victim is in an ER somewhere and I hope he’ll be okay. The neighbor says that is one of the places where people from outside of the neighborhood like to hang around, and he always walks past there quickly, because although they aren’t aiming at him, they don’t have weapons training and he doesn’t like to be around poorly-aimed bullets.

Update, via Save Brooklyn Now!: At around 10:56am, a 34 year old black male was shot in the head, pronounced Dead on Arrival at Kings County Hospital.

Feedback Welcome

May 19, 2010
Free Style

Paper Shredder Hijinx

Link: https://dannyman.toldme.com/2010/05/19/oh-no/

After observing an idle moment in the office todayfive years ago, I uploaded this classic to YouTube:

Feedback Welcome

May 13, 2010
Technology

Trending Topic

Link: https://dannyman.toldme.com/2010/05/13/how-do-i-delete-my-facebook-account/

Trending topic: "How do I delete my Facebook account?"

Of course, Google wouldn’t be spotting a trend for this search item if you didn’t have to use Google to figure out how to delete your Facebook account. CNN credits Danny Sullivan for noting this trend.

Feedback Welcome

May 10, 2010
About Me, Featured, Technical, Technology

Password Management

Link: https://dannyman.toldme.com/2010/05/10/password-manager-solution/

To a discussion as to preferred password manager solutions, I added the following:

I developed a simple algorithm I use to generate passwords using my brain. I have changed this algorithm a little a few times. At the most basic level, something like this would be you like to use the password “frog” . . . but then add the first two letters of the web site name: Yahoo -> frogya, Google -> froggo.

The benefits of this “password manager” are that as long as your brain functions appropriately, you will always have platform-independent access to your passwords. If any given password is compromised it is non-obvious to an attacker what your other passwords are.

The main drawback to this password manager is that different password policies are mutually exclusive: one site requires a special character, another site prohibits special characters.

I use a different algorithm for more complex passwords for important stuff like ssh keys and unix logins.

Feedback Welcome

May 6, 2010
Featured, Technology, Testimonials

Celsius: Where Metric Fails

Link: https://dannyman.toldme.com/2010/05/06/celsius-where-metric-fails/

I love Metric, but I think for human purposes, Fahrenheit is more useful, and actually closer to the convenience of metric:

Celsius:
0: water freezes
100: water boils

Fahrenheit:
0: colder than Denmark
100: warmer than human blood

If I want to boil and freeze water: hell yeah, Celsius. But if I want to know how hot or cold it is outside, explain it to me in terms I can understand!

(Originally a comment on the Big Fat Blog)

Feedback Welcome

« Newer Stuff . . . Older Stuff »
Site Archive