johnk's blog

Making Fun of Americans

Stupid Computer Reuse Story

I went to the hazardous waste disposal station a couple years ago, to dump off some waste. There was a small stack of computers there, and I was looking at them. Seeing someone from the staff there, I asked if I could look through it and take one. (The computers looked like they were from around 2003 or so. P4s.) This staffer said, "no, they're going to melt them down and make new things."

Pan Pizza Fried in a Skillet

I had some 2-day pizza dough going, and left it a few too many days, so it started to develop spots of dark mold.

ZenMagick - THANK YOU

WOW! I never thought ZenCart and it's parent, OSCommerce, could ever be redeemed. These are great products with really unpleasant code. Hacking these apps is a nightmare.

Now, someone's come along with a big replacement to ZenCart called ZenMagick. I just skimmed over it, and the code is much better. The product attaches to ZenCart and exposes and OO API to the underlying database.

TinyMCE, Firefox, IE 8, Adblock Plus Total Weirdness

At work I run Firefox without the (great) Adblock Plus plug-in. Adblock Plus mangles the HTML code to insert its own code that displays the "Block Ad" tabs, and this interferes with our CMS. Whenever I insert some code to embed video, Adblock Plus sees it and then adds its own code, ruining the code.

I forgot this, and installed ABP and then had to uninstall it.

Then, I started noticing that TinyMCE was altering URLs in links, so a url like http://example.com/go.php?id=100&start=344 would get mangled, so the ampersand (&) was replaced with & the HTML entity. I'd see: http://example.com/go.php?id=100&start=344

It turns out this is correct behavior, because xml doesn't allow & to be in an attribute. It needs to be escaped. The only problem is that IE6 won't handle these links correctly.

10 Signs that Capitalism is Screwing Up Your Education System

Here's something funny from Facts for Working People, and I assume the unemployed as well.

PHP verus ASP.NET versus LISP, all in PHP

There's more than one way to do the same thing...
traditional PHP or ASP 

HTML 5 and CSS 3 Presentation

This is a really good presentation about HTML5. It's time to abandon coding for anything less than HTML 5 now. Bye bye cruft.

Hello, World in Javascript Encoded as a Data URI

This is the Hello, World program, written in Javascript and encoded as a data URI.

<script src='data:application/javascript;base64,ZG9jdW1lbnQud3JpdGUoIkhlbGxvLCB3b3JsZCEiKQ=='></script>

Los Angeles Area Coworking Spaces

Coworking spaces are rented offices that are more formal than a cafe, and try to be more social than a regular shared rental office(and cheaper too). Here's a list of three:

0xe0008497 - Incremental and differential backups are not possible because Microsoft Exchange is configured for circular logging

I got this in BackupExec 10d. It probably started because I enabled circular logging.

Server Push, COMET, XMPP, BOSH

XMPP is Better with BOSH explains why Jabber over an HTTP connection is better than traditional TCP sockets.

Free Open Source Software, Organization Structure

Free and Open Source Software (FOSS), is software produced primarily for social benefit, rather than profit. Over the last 30 years, different organizational structures have evolved to produce this software. Most of these organizations fall squarely in the category of "civil society", though they exist in a realm dominated by for-profit corporations.

Changing a Bicycle Tube or Tire: Avoid Thermal Expansion

Rubber shrinks when heated.

Metal expands when heated.

Cheap Mobile RSS Reader

If you're cheap and have a low-end, generic MP3 player that will also display text files, you can read your RSS feeds on it with the help of this script.

.

Donate Bitcoin to support the writer: 1F13NCPcFKjJ7oy36zc2vBTtqoQCBPpAPH

Comments are disabled

If you wish to comment, post this article on reddit or hacker news.

Syndicate content