Sam Trenholme's webpage
Support this website

Microblogs June-July 2013

 

July 28 2013

These are the microblogs I posted between June 5 and July 17, 2013.

==We now know PayPal uses 64-bit ints==

We now know PayPal uses signed 64-bit integers to store people’s PayPal balances:

http://www.bbc.co.uk/news/world-us-canada-23352230
2 to the power of 63 is 9,223,372,036,854,775,808. In cents, the number is $92,233,720,368,547,758.08, and the press claims this gentleman had a balance of $92,233,720,368,547,800.

Posted Jul 17 2013

==Time to learn ARM assembly==

The day when ARM assembly becomes a very hot skill is getting closer and closer:

http://www.bbc.co.uk/news/business-23352536
Posted Jul 17 2013

==New Deadwood/MaraDNS bugfix release==

A couple of days ago, I fixed a bug in Deadwood; a very rare DNS packet would cause a name to not resolve:

http://samiam.org/blog/20130713.html
I have now made a formal testing release with the seven-line patch to fix this bug, MaraDNS-2.0.07c (Deadwood 3.2.03c):

http://maradns.org/download/2.0/snap/
http://maradns.org/deadwood/snap/
This will probably become the stable MaraDNS/Deadwood release in August or September.

Posted Jul 17 2013

==Woman in Korea being abused: Fake video==

There are stories making the rounds, even on professional news websites, about a video showing a Korean woman being abused by two guys in a bar.

According to a source who claims to be one of the guys, the video was staged and the people in the video are actors:

http://imgur.com/a/5Z6OF
Posted Jul 16 2013

==Zillions of Games’ future==

During the height of the dot-com boom, Jeff Mallet and Mark Lefler worked together to create a game called “Zillions of Games” (ZoG). Not only could ZoG play Chess, it could play pretty much any variant of Chess as well as a lot of other abstract strategy games.

It was a huge hit in the Chess variant community, with hundreds of games made by well over a dozen people soon being available for Zillions. Unfortunately for Mallet and Lefler, this community was very tiny, and they did not make too much revenue with Zillions. After releasing 2.0 in 2002, Zillions began to languish: They stopped updating or making new versions of the Zillions program.

Despite this, they kept their website up, and until 2011 or 2012, they allowed people to submit new games running in the Zillions engine to the website. I submitted my own modest Chess Variant there in 2006. Well, some time in 2012, they stopped taking new game submissions, and, indeed, it is no longer possible to download the older games:

http://boardgamegeek.com/thread/835811/what-happened-to-zillions-of-games
And, there is a rumor that Zillions will go away for good soon:

http://zillionsofgames.com/discus/messages/3/1527.html?1371650945
http://tvtropes.org/pmwiki/posts.php?discussion=13716534090A27426800&page=1
Update: Jeff Mallett denies that there are any plans to bring the Zillions site offline

http://en.wikipedia.org/w/index.php?title=Zillions_of_Games&diff=next&oldid=508466091
As someone who used to be a big fan of Chess variants, it’s sad to see that Zillions may be going away. Even though I myself stopped playing Chess variants in 2010, I sometimes like looking at Zillions’ site to see what new Chess Variants people devised.

Here is my goodbye to Chess variants from 2010:

http://samiam.org/blog/old-201002-im-done-with-chess-variants.html
Posted Jul 16 2013

==Linux for Workgroups==

Well, I must say, I like the names Linus gives his Linux releases. Linux 3.11 is called “Linux for Workgroups”:

http://www.theregister.co.uk/2013/07/15/linux_for_workgroups/
Posted Jul 15 2013

==On Ender’s Game==

(Please imagine me saying this in my natural southern drawl) I’m actually hoping there is a boycott by the Gay community against “Ender’s Game”. Why?

Because there’s a chance that narrow-minded bigots (in the south and elsewhere) who see the movie as a counter-protest will learn some of the valuable lessons in the movie about the evils of bullying and the folly of mindless military conflict.

Ender’s Game is in no way a story that attacks or says anything negative about gay people. It can even be argued that the story is a gay coming-of-age story (complete with our young hero staving off bullies).

An interesting article on the controversy:

http://io9.com/could-the-enders-game-boycott-actually-tank-the-movie-749408769
Posted Jul 13 2013

==My favorite Star Trek episode==

My favorite Star Trek episode is “Errand of Mercy”. This is classic 1960s Trek machismo, but the story ultimately denounces Kirk’s testosterone overload. Here’s a good discussion (spoilers, but, then again, anyone who has any interest in 1960s Trek has already seen the episode dozens of times):

http://trekmovie.com/2007/05/14/review-errand-of-mercy-remastered/
Just as interesting as the review itself are some of the comments. I like this particular comment (#32):

It’s super duper easy for fans to lob tomatoes from the comfort of their desktops and insist that other people should pay more money and spend more time (which means more money) on something they’re getting for free. Personally, I love spending other people’s money but how about a moment of perspective.
Posted Jul 12 2013

==The C lanuage FAQ==

Here is the web version of the classic Usenet FAQ for the C programming language (comp.lang.c):

http://www.c-faq.com/
Posted Jul 12 2013

==R.I.P. PC World==

For me, PC Magazine was the magazine to keep up on computer technology, Computer Shopper (which was once the size of a phone book) was the magazine to find a computer to buy, and PC World was always the “other” magazine which I read after reading PC Magazine.

Once the Internet started becoming mainstream, these magazines were behind the curve because they did not see Linux (instead of Windows NT) replacing *NIX operating systems in the server back room (then again, there was the distinct possibility back then that Linux would take over the desktop, but Linux never got over a 1% desktop market share).

Computer Shopper became a smaller and smaller magazine every year. Finally, along with PC Magazine, it ceased publication in 2009. PC World continued to limp along, but now is also ceasing publication:

http://techland.time.com/2013/07/11/pcworld-exits-print-and-the-era-of-computer-magazines-ends/
The paper computer magazine is now no more. It was fun while it lasted.

Posted Jul 11 2013

==The ARM continues to overtake x86==

The way I program x86 assembly is by using a C compiler. ARM, on the other hand, has a much cleaner assembly language (it is, if you ask me, 32/64-bit 6502). While I can’t stand tablets, I do like the chip powering those tablets, and I am waiting to see more ARM notebooks come out.

http://www.bbc.co.uk/news/business-23251285

Posted Jul 11 2013

==Good job Deborah Hersman==

Deborah Hersman, the leader of the NTSB, is a fine counterexample disproving the misogynist notion that women can not be “alpha”. Here is a very professional woman who is a very effective leader.

Posted Jul 07 2013

==My prayers are with the passangers of Asiana Airlines Flight 214==

With family and friends up there, it’s quite a shock to see the horrible crash of Asiana Airlines Flight 214 at SFO (San Francisco Airport). This really hits home for my wife and I; my wife and I have been in this airport together three times.

We know there are survivors from the crash; our prayers are with the passengers and I hope a miracle has happened and no one has died.

http://www.sfgate.com/bayarea/article/South-Korean-passenger-jet-crashes-at-SFO-4650259.php
Posted Jul 06 2013

==I learned something useful watching an infomercial==

I actually learned something watching an infomercial for a high-speed high-cost blender called the Nutri Bullet.

According to the host, the best anti-inflammatory ingredient readily available in the US is something called Turmeric.

Posted Jul 06 2013

==Yet another idiotic site with overly anal password rules==

I have had a system in place for the last decade or so which allows me to give every site I go to a fairly strong password, while having the password for each site be different (and have it so having one site password doesn’t give an attacker access to any other sites I log in to).

Alas, a few sites have arbitrary rules for their passwords which doesn’t allow these generated passwords. Usually, the rule is “you must have mixed case and a punctuation symbol”. I wish the idiots who make up password rules like that would read The Cuckoo’s Egg by Cliff Stoll, which shows how forcing people to have hard-to-remember passwords can actually make things less secure, because they then write down the password on their desk or in a file someone with a partial security breach can access.

Posted Jul 05 2013

==Happy Fourth of July Everyone!==

Happy Fourth of July Everyone! Or, at least, readers in the United States of America reading my microblog.

I have been spending the last few days collaborating with other people coming up with a good refutation to a recently proposed Young Earth Creationist theory called “Anisotropic synchrony convention”; I finally have a full refutation. The trick for solving the puzzle is not to question the “Anisotropic synchrony convention”—special relativity allows for it, and it’s fruitless arguing with Einstein’s science [1]. The refutation comes from thinking about a universe created by a miracle 6,000 years ago and how it would appear in this bizarre “Anisotropic synchrony convention” frame of reference:

http://rationalwiki.org/w/index.php?title=Anisotropic_synchrony_convention#Problems_with_Lisle.27s_paper
[1] If I were able to argue with Einstein’s science and have my argument stick, I wouldn’t be posting to some random Wiki on the Internet. I would be publishing my stuff in peer-reviewed journals and using my Nobel Prize money to buy a Raspberry Pi.

Posted Jul 04 2013

==A look at modern cannonball runs==

Once upon a time, long long ago there was a game called a “Cannonball Run” where people would see how quickly they could (legally and illegally) travel across the United States using public roads. The last record set was back in 1983, when, as the tale goes, the world was a different place and it was easier to break speed limit laws.

Much more recently, in 2006, one Alex Roy tries to beat the 1983 record for fastest road trip across the US:

http://www.wired.com/cars/coolwheels/magazine/15-11/ff_cannonballrun?currentPage=all
I think what would be more interesting would be “fastest road trip across the US without ever once going over the speed limit”. While that would have been impossible to verify in 1983, with today’s GPS units, one could keep a record of the exact route used in the road trip, and the exact speed at all times.

Posted Jul 03 2013

==An Orwell Quote==

A George Orwell quote, from 1984:

“No one ever seizes power with the intention of relinquishing it.” — George Orwell
Where I break from Libertarianism is that not only can government institutions seize power and take away people’s liberty, but also monopolistic corporations can control a society’s economy to the point that people’s freedoms are curtailed.

Posted Jun 27 2013

==What causes complex code==

In my experience as a professional software developer, the #1 cause of complex code is when the requirements change during the development process. In professional environments, this is often caused when a new unanticipated feature is suddenly required (unanticipated complexity, sales or management change their mind, or a customer won’t buy the product unless it has feature X).

Here’s an article on how code sometimes has to be complex:

http://www.drdobbs.com/architecture-and-design/the-misplaced-obsession-with-simplicity/240157265
As one open-source example: When I wrote MaraDNS, my plan was originally to make a simple authoritative-only server. A friend suggested adding recursion to the code. I thought it was going to be fairly straightforward six month project. It wasn’t; while I did manage to finish the code in about a year, the resulting code was very very messy.

When I finally got around to rewriting the code, over six years later, it took me three years of development to do it right. There may still be the occasional corner case bug to be fixed (my last fix was just a couple of months ago), but the code has been stable enough for me to use for all Internet access from home for years.

A sad note: That friend who told me to add recursion to MaraDNS ended up dying very young while I was rewriting MaraDNS’ recursive code; he didn’t live to see his thirtieth birthday nor to see MaraDNS finally finished.

Posted Jun 27 2013

==RHEL7 should be available for ARM==

Since RedHat Enterprise Linux 7 (RHEL7) is reported to be based on Fedora 19, it should be available for the ARM architecture when it comes out. Most likely, CentOS 7 will have an ARM version available. With low cost devices like the Raspberry Pi, and ARM starting to get server-level performance, and with the open source nature of Linux, x86 Linux servers should start getting replaced by ARM.

For me, as a programmer, it’s nice to see an architecture that is a lot cleaner at the assembly level than x86 getting so much momentum.

Here’s a link to Fedora/ARM:

https://fedoraproject.org/wiki/Architectures/ARM

Posted Jun 26 2013

==RedHat 7: Not Until 2014==

It looks like Red Hat Enterprise Linux 7 (and its clones, such as Scientific Linux 7 and CentOS 7) will not come out until early 2014:

http://www.serverwatch.com/server-news/where-is-red-hat-enterprise-linux-7.html
With a 10-year-long support cycle, it makes sense to make sure everything is just right before making a release public; it will come out a little before halfway through RHEL6’s lifetime cycle (2010-2010) and RHEL5 (2007-2017) will still be supported when it comes out.

I wonder if LXC will be feature complete enough to replace OpenVZ by the time RHEL7 comes out.

Posted Jun 25 2013

==Stuart Smith: Found==

After years of search John Romero (Doom Episode I, etc.) finally found Stuart Smith (Adventure Construction Set, Ali Baba and the 40 Theives RPG, etc.) and will interview him, hopefully soon:

http://www.youtube.com/all_comments?v=s8ty3pweccA
Posted Jun 24 2013

==The name of the deportation bill==

A couple of weeks ago, the House of Representatives voted to restore deportations of children of undocumented immigrants. It took me nearly an hour of sifting through articles, a lot of which had the most vile racist anonymous comments, to finally find the vote tally: It was HR 2217, Role call 208, and the voting record is here:

http://clerk.house.gov/evs/2013/roll208.xml
Shame on the AP and all the newspapers parroting the AP for not providing essential information like this about a bill. Shame on the online newspapers who allow racists to cowardly post anonymous comments. Here’s a clue: Use Facebook for comments. That way, the racists have to show their name and face when they talk Nazi-like about the evils of “Illegal” people.

For example, in this thread, the racists were all of two fat white men trying to dominate the conversation; once I blocked their Facebook profiles, the comments became readable again:

http://blog.seattlepi.com/seattlepolitics/2013/06/06/house-republicans-vote-to-deport-dreamers/#comments
Posted Jun 23 2013

==Twice in my life==

I regret the two times in my life a lady approached me and indicated to me she was abused, and I did nothing to help her. Here’s an article about a woman who did help women in need:

http://www.xojane.com/family/what-my-mother-taught-me-about-the-eff-words-feminism-and-fear
I’m no feminist, but one does not need to be a feminist to help a woman in need; one only needs to be a decent, honest human being.

Posted Jun 23 2013

==It has become a lot harder for writers==

It has become a lot harder to make a living as a writer:

http://www.theawl.com/2013/06/dox-dox-dox
Here’s one interesting line from the article:

The reason Google is worth $30 billion is because [the publishing] industry decided to give away its 'content' for free
This is why places like The Huffington Post and The New York Post now have talking ads on their websites; without a paywall, these sites need to have pretty aggressive advertising to make ends meet.

Posted Jun 21 2013

==Now I’m using NoScript==

Web content producers desperate for revenue have started putting talking Javascript ads on their pages.

I understand and indeed sympathize with content producers desperate for more revenue streams, but I do not like moving ads and I especially don’t like web pages that make noise; this in mind, I’ve enabled NoScript in blacklist-only mode and have black listed huffingtonpost.com and nypost.com from running Javascript in my browser.

Note: I will not run AdBlock, because the underlying attitude behind ad blockers is one I do not agree with; TANSTAAFL (There ain’t no such thing as a free lunch), and if everyone ran ad blockers, there were be little or no compelling content on the web.

Posted Jun 19 2013

==ARM is catching up to x86==

I remember when the consensus was that the x86 would never have the kind of performance custom RISC chips like the DEC Alpha had. I am pretty sure that, by the end of the 2010s, high-end ARM is going to have the same or better performance as anything x86, or any other chip, will offer.

http://arstechnica.com/information-technology/2013/06/amd-announces-its-first-64-bit-8-and-16-core-arm-based-server-socs/
Posted Jun 18 2013

==An in-depth look at Pitfall’s map generator==

In the original classic Pitfall game, David Crane was able to, by clever programming, represent a 255-location jungle in only 31 bytes of code. I look at exactly what he did in a five-part blog series, as well as look at possible alternate jungle maps which are as little as 18 bytes in size:

Posted Jun 17 2013

==My Google web browser compatibility rant==

I can understand dropping support for IE7 and can probably even understand not supporting IE8, but Google’s way of not fully testing their web applications in Firefox 17 is really annoying (two bugs: The new mail compose interface something has an annoying jump in FF17; the bottom direction on a given page when printing directions doesn’t print correctly). This is a browser that’s not even a year old.

For the record: My own webpage is fully compatible in Firefox 3.5+, IE9+, and any recent release of Chrome, Safari, and Opera; it usually remains readable on mobile browsers (code samples on small screens are tricky, but I try my best); it gracefully degenerates down for an obscure browser called Dillo, the text-based Lynx, as well as IE8, IE7, IE6, and even IE5. It’s perfectly usable in older Firefox releases (albeit without CSS); where there is a rendering issue with links in Netscape 4 (little annoying black boxes), the pages can still be used.

I don’t expect Google to make their pages that cross-platform compatible, but they could easily, if they wanted to, make Gmail perfectly Netscape 4 compatible again and even have it be usable in Dillo (that old “HTML only” Gmail interface Google used to be so proud of). They need to keep IE6 compatibility if they want to make any inroads in to China; even if not, I think asking users to upgrade their browser more than once a year is unfair.

Then again, since we don’t pay for Google’s products, we become the product. It goes back to TANSTAAFL: There ain’t no such thing as a free lunch. That is why I prefer to post updates to my own domain than to Twitter, Google+, and Facebook.

Let me wrap up this rant with a link:

http://www.xconomy.com/national/2013/06/14/dont-panic-but-weve-passed-peak-apple-and-google-and-facebook/?single_page=true
Browser notes

Netscape 4 users: I apologize for the little squares in that link. It’s either having little squares in Netscape 4 or breaking formatting in newer versions of Internet Explorer. Any computer which can run NN4 can also run the open-source Dillo, which does not have this problem. Yes, I know there are no NN4 users out there in 2013, but I am, as a matter of principle, against forcing people to upgrade their computer to read my website.

For contracting web design projects, I would design on Safari, Chrome, or Firefox, test in IE10 and IE9, make sure there aren’t any glitches in Firefox 17 (the oldest currently supported Firefox), and possibly go down to IE8, probably not IE7 (though, it’s easily enough reasonably well tested in IE9 or IE10). IE6 compatibility is still important, but only if the website is in Chinese.

Some important webfont gotchas: Test web fonts in Chrome + modern Windows. Test web fonts in Chrome or IE in Windows XP without Clear type. Test printing webfonts in Safari 5 (It doesn’t work, last time I looked). Do not have webfonts in iframes in IE8 (it’s a bug which only shows up in IE8, not even IE8 compatibility mode in IE9/IE10).

More details on fixing web fonts to look decent in Chrome: http://samiam.org/blog/20120918.html

Posted Jun 15 2013

==The 32-bit 6502 exists==

I always wanted to see a 32-bit or 64-bit 6502 with protected mode. Well, it exists. It’s called the ARM—the principal architects of the ARM were hardcore 6502 programmers and the ARM has 6502 quirks like rotate instructions that use the carry bit and “bne” (same mnemonic as the 6502) meaning “branch if not zero”.

http://www.ot1.com/arm/armchap1.html
It looks like the ARM architecture is slowly replacing the x86, which I think is a good thing.

Posted Jun 12 2013

==Being bilingual is good==

Why Being Bilingual Can Actually Make You Smarter

http://www.howlifeworks.com/a/a?AG_ID=1192&cid=7111ab
Yes, this is a thinly disguised ad for The Pimsleur Approach. The sense I get is that the Pimsleur Approach can be remarkably effective—probably one of the best “teach yourself a language” programs—but the lessons are somewhat dry and tedious.

The best way to learn a language is to go to another country and learn the language there. This is how I learned Spanish after a couple of years of high school and college classes:

http://www.sipuebla.com/
For the record: Puebla is still a remarkably safe area of Mexico right now; I’m more worried about the nearby volcano than the drug gangs in that particular city. And, yes, the owner of that school was the best man at my wedding.

Posted Jun 10 2013

==Movie review: Now You See Me==

(This is a spoiler-free review)

Now You See Me’s best moment was on May 23, when Morgan Freeman and Michael Caine were interviewing together to promote the movie, and Morgan Freeman fell asleep during the interview. This was far more entertaining than any scene in the actual movie.

The movie has more plot holes than swiss cheese. The movie emphasizes action sequences over character development or a plausible plot. While it has some entertaining action, I wish I had waited until this movie was available on Netflix before watching it. I think, instead of seeing this at the local theater, one should wait for the new Superman to come out later this month, or see Before Midnight if it has made its way to a local movie theater.

Posted Jun 09 2013

==Classic Pitfall with a new map==

Using a modern random number generation technique that did not exist when David Crane wrote the original 2600 Pitfall in the early 1980s, I have created a version of Pitfall with a new map.

I have not fully play tested this map, but simulations indicate it should be possible to finish the map in under 20 minutes (just like in the original Pitfall).

A download is here:

http://samiam.org/pitfall/
Posted Jun 09 2013

==My favorite Doctor Who trivia factoid==

My favorite factoid about Doctor Who actors: Four, count them four actors who have played the doctor have also played Winston Smith from Orwell’s 1984:

  • Patrick Troughton, the second doctor, played Winston in a 1965 BBC radio adaptation of Orwell’s story.
  • Christopher Eccleston, the ninth doctor, plays Winston Smith in a BBC radio adaptation of 1984 that came out earlier this year.
  • Peter Cushing, who played the Doctor in the 1960s movies, played Winston Smith in a 1950s adaptation of 1984.
  • John Hurt, who will be an incarnation of the Doctor in the 50th anniversary special coming out this fall, was Winston Smith in what is probably the most famous adaptation: The film made in the real year 1984.

I’m very pleased in particular that the BBC has made John Hurt, who has always been for me Winston Smith, the Doctor. This very extensive overlap of actors playing both characters show that Winston Smith struggles for the same thing the Doctor struggles for: to protect humanity from the forces of evil that want to oppress our freedom and liberty, that want to rule us with a fist of fear, that want to replace the truth with a lie.

Posted Jun 06 2013

==IE6 only matters in China==

During the first decade of the 2000s, keeping a web site Internet Explorer 6 (IE6) compatible was the bane of every web designer out there. At first glance, it appears that IE6 is stubbornly holding at about 6% of users:

http://arstechnica.com/wp-content/uploads/2013/06/internet-explorer-versions-2013-05-640x480.png
However, the true story is this: China is the only country in the world that is clinging on to IE6. Every other country out there (including other former IE6 holdouts like South Korea) has stopped using IE6. Here’s the more detailed breakdown from Microsoft themselves:

http://www.ie6countdown.com/
To summarize: China still has 24% IE6 usage. India has 2.8% IE6 usage. Every other country has under 2% IE6 usage. Except for web designers of webpages written in Chinese, IE6 does not matter anymore.

Then again, I keep this website IE6 compatible (and even recently did a modest update to have it degenerate gracefully in IE5), but that’s because I enjoy the challenge of making this website render well on as many different browsers as possible (it even fairly gracefully degenerates in the very obscure Dillo browser).

As for my personal choice in browsers: Usually Firefox in Windows 7; Chrome if I’m using a slow netbook or one of Google’s “runs best on Chrome” sites. I briefly used Chrome as my main browser but went back to Firefox because there are too many “made on a Mac” sites with custom webfonts that look horrible in Chrome. I’ve mainly been using Firefox in some form for 12 years now, going back to when it was called “Mozilla” and included an Email and Usenet client.

Posted Jun 05 2013

==My paleo diet==

If I were to do a “paleo” diet, I would do a pre-Hispanic (before the arrival of the Spanish) Mexican diet. To wit:

  • Corn
  • Beans
  • Peanuts (originally from Peru, but were in Mexico by the time Cortéz showed up to liberate the Tlaxcaltecas from the Aztecs)
  • Turkey (but, as it turns out, not chicken)
  • Chocolate
  • Avocado
  • Tomatoes
  • Nopales (an exotic Mexican edible cactus leaf)
  • Huazotle (an even more exotic Mexican seed)
  • Honey (this appears to be the only pre-Hispanic refined sugar, Piloncillo uses post-Hispanic cane sugar)

Some more information:

http://en.wikipedia.org/wiki/Aztec_cuisine
http://en.wikipedia.org/wiki/Domesticated_plants_of_Mesoamerica
Posted Jun 05 2013

==May 2013 archive==

I have archived the microblogs posted from May 6 to June 1 2013:

http://samiam.org/blog/20130604.html

To post a comment about an entry, send me an email and I may or may not post your comment (with or without editing)