S E R V E R   S I D E
View current page
...more recent posts

Great script for analyzing MySQL my.cnf values: tuning-primer.sh

cd /usr/local/sbin
wget http://www.day32.com/MySQL/tuning-primer.sh
chmod 700 tuning-primer.sh
tuning-primer.sh

- jim 4-12-2008 8:50 pm [link] [add a comment]

Google's new App Engine was the big story yesterday. Developers can now build web services and run them on Google's computers. Amazon's combinded offerings of S3, EC2, and SimpleDB is probably the closest competitor. But here is an intriguing theory about their plans which even goes beyond what Amazon is doing:

App Engine comes with its own development setup that runs off your computer (available for Windows, OSX, and Linux). You develop the application on your computer, run it, test it, add features, and then upload it to Google's computers. My question is this: What's stopping Google from turning the local development code into a full desktop-based runtime for web applications?
In this version of things Google is taking on not just Amazon, but Adobe AIR and Microsoft's Silverlight.
- jim 4-09-2008 7:43 pm [link] [1 comment]

Not sure about the security benefits, but I love this idea of adding a hash= attribute to any html element that can take a href= or src= attribute. The hash= value is "a base 32 encoding of the SHA of the object that would be retrieved." This would be good for caching, as the article suggests, but I'm more interested in the reverse - it would help with the problem of old objects already in the cache being used instead of updated objects on the server. In this case the hash values wouldn't match so it would force the browser to fetch the updated object.
- jim 3-31-2008 6:20 pm [link] [add a comment]

My friend recently bought a MacBook. It really comes pretty set up right out of the box. There are just a couple things I would do for a new machine, and here they are

Read the rest of this post...



- jim 3-30-2008 9:18 pm [link] [11 comments]

I just finished a project which basically amounted to fixing a blog based website that had been originally built by one person, and then much later "fixed" by someone else. Except here "fixing" was equivalent to "badly breaking". Nothing worked anymore. MySQL errors all over the place if you even tried to sign into the admin back end. Anyway, it's a strange hell to dive into someone else's code. I certainly wouldn't wish mine on anyone. But this was much worse than I could have imagined. Obviously it was originally done by someone with a little HTML knowledge and almost no PHP. And then "fixed" by someone who knew even less. Still, it worked out in the end and even made me look pretty good in the eyes of the guy who brought me in to do the work.

But the reason I'm posting this is because the site used TinyMCE to give the textarea posting boxes more full fledged word processing ability. You get a control strip across the top of the box and you can click to make bold, italic, insert links, make lists, etc... I've seen it before, and from reading it seems like TinyMCE is the best solution at the moment.

But, uh, wow. It's just really bad I think. Especially the way it was implemented on this site: with absolutely every option turned on. It's ridiculous. It's ugly. And it just seems to fight you every step of the way. Is it so hard to learn that a couple HTML tags? Well, yeah, I guess some people just don't want to do that. So as if in answer to my struggles this morning I found Markitup!, a much lighter weight solution. This looks really nice. It doesn't hide the HTML from you, but it does give you a bare minimum of tastefully designed short cut buttons that will insert the tags so at least you don't have to remember the exact syntax. I'll definitely be using this one in the future. Nice job.
- jim 3-28-2008 5:22 pm [link] [add a comment]

White spaces:

Google on Monday said it has a plan to have American consumers from Manhattan to rural North Dakota surfing the Web on handheld gadgets at gigabits-per-second speeds by the 2009 holiday season.

- jim 3-25-2008 8:26 pm [link] [1 comment]

Epic battle with qmail today. I believe I am victorious.
- jim 3-18-2008 2:33 am [link] [4 comments]

From the links you hope to never need department: recovering from an rm -rf on an ext3 file system. Very interesting as this is widely reported to be impossible - most notably by one of the ext3 developers!

- jim 3-13-2008 9:24 pm [link] [add a comment]

Youtube.com has released a javascript player API for controlling its embedded movie player on a webpage. You can even customize the player with your own chrome, user controls, custom playlists, and menus. Very nice. When do the mandatory ads before every video begin?

- jim 3-12-2008 10:46 pm [link] [add a comment]

For my reference: tai64nlocal will convert the weird qmail log timestamp format into something readable. Takes input from stdin, so:

cat current | tai64nlocal
to read the 'current' log file with readable datetimes. Wish I knew that before.

Also I added the mtrack script which also makes reading /var/log/qmail/send/current/ *much* easier (it groups message ids together so you can actually see what is happening in there.) I renamed it qmailsendlogreader.pl, so combined with tai64nlocal we can read the logs much easier using:
cat current | /usr/local/sbin/qmailsendlogreader.pl | tai64nlocal

- jim 3-07-2008 10:09 pm [link] [3 comments]

older posts...