Archive for the ‘Uncategorized’ Category

A month with Google Chrome

Tuesday, June 8th, 2010

I have recently spent about a month learning and trying to live with Google Chrome. I figured I would give it a try and write about my results.
I play an online HTML game called Warring Factions, where you try to conquer the galaxy. I tend to specialize in galaxy exploration, which means I build a whole lot of exploration probes and move them from location to location. This means I have 50+ tabs open, one for each probe, moving them from place to place. A fast browser is a must in these circumstances. I had issues with the performance of Firefox but I dealt with them. When I got into running VMs I bought 8GB of RAM and that alleviated much of the problems I was having. I have a screenshot somewhere of Firefox 3 with 201 tabs open, each with one probe. Firefox was using 2GB of memory. I used Snaplinks to open the probes and it took upwards of 10 minutes to open everything.

So a friend of mine pesters me and I try out Chrome again. My, how things have changed. The first time I looked at Chrome, there were no repository packages for Chrome on Linux and I did not feel like compiling a beta copy myself. I just don’t have that much time to waste on something of a necessity that may not be fully functional. In addition, there were no extensions, no userscripts… it really didn’t have much of anything.

So without further ado, my opinion of Chrome. I started with Beta 4 and now I am running 5.0.

Things I like about Chrome:

  • Speed:
    In Firefox I relied heavily on the ability to cache inside 8GB of RAM for the performance of the browser. Chrome performs better, even on 2GB of RAM. I cannot quantify how much, but the browser is decisively more responsive all around. For instance, viewing Craigslist with a GreaseMonkey script to preview images was a 30-second freeze on Firefox. It is almost instantaneous on Chrome with the same script.
  • Memory usage:
    Chrome uses significantly less memory than Firefox in the long run. Firefox was such a memory hog that I couldn’t even leave it running overnight. I would return in the morning and find that my system was swapping to disk. I even set up a cron job to pkill firefox every night at midnight in case I forgot and left it running. Chrome tends to eat about 50MB per tab, still a bit high, but far from what FF started off with, and it doesn’t leak memory like mad.
  • Speed:
    I cannot emphasize how much faster Chrome has been.
  • Extensions:
    The ability to add extensions to Chrome was a big draw for me. Many of the same extensions that are available in FF are now available in Chrome, which is a big plus. I use Flashblock, Adblock, and lots of things from userscripts.org. If Chrome had not been available with these features, I would have stopped my evaluation right then and there. This is very important to me.
  • Browser sync:
    I used Google Browser Sync when it was available for Firefox and found it invaluable. When Browser Sync went away I was stuck using Google’s Toolbar to sync bookmarks, which was fine for me. I like that the Browser Sync is integrated into Chrome and I can have a pretty consistent user experience across machines. At this time I have not done much testing of the feature
  • IE compatibility is sometimes strong:
    I have to use some sites in my workplace that require IE. In Firefox there is simply no way to make these work, the JS engines are too dissimilar. In Chrome I am at least able to view and make some changes. While the full functionality is not present, it’s nice that I do not need to fire up IE6 just to view the pages.

Now for the fun part… what I don’t like.

Signing in to Rhapsody from Ubuntu AMD64

Tuesday, May 18th, 2010

If you’re like me, you run 64-bit Ubuntu, use Rhapsody, and also run the 64-bit Flash 10 library in Firefox.
If you do this you are in for a MADDENING experience much like mine. You can’t sign into Rhapsody. Rhapsody’s support team will only ask if you meet the minimum specs, and when you answer in the affirmative, they will then admit that they’re clueless about where to proceed from there. Using WINE, IEs4Linux’ IE6 and Flash 9 have a memory leak that eventually crashed IE on my box.
Unfortunately the fix for Firefox/Linux is almost as bad as the problem: Remove the 64-bit Flash 10 library and install the nspluginwrapper 32-bit Flash 10 library. This package is usually called flashplugin-nonfree or flashplugin-installer. Users of Karmic Koala, you may have an additional problem: The flashplugin-install brings in a 64-bit library that propagates the exact same problem.

How did I come to this conclusion? In my quest to fly a finger to Rhapsody’s support team, I installed VMs of Ubuntu 32 and 64-bit for Hardy, Karmic, and Lucid, for a total of six. I then installed flashplugin-installer and tested them all on Rhapsody.com. Talk about a time sink. Good god. Every single one of them worked except for Karmic. I ran `file` on /usr/lib/flashplugin-installer/lib*.so and it informed me that the library was ELF 64-bit… the only significant difference between this non-working system and the other perfectly-working systems.

Anyway, Rhapsody works now and all I have to worry about are the grey screens again. Grey screens being why I got rid of the ridiculous nspluginwrapper crap in the first place.

Ugh.
-LightningCrash

Imageshack upload snippet in CURL/Bash with username

Wednesday, April 28th, 2010

You’ll need curl and xclip

sudo apt-get update && sudo apt-get install curl xclip
Code:
#!/bin/bash

curl -H Expect: --cookie "myimages=imageshackregistrationcode;" -F fileupload="@$1" -F xml=yes -# "http://www.imageshack.us/index.php"|awk -F"[<|>]" '$2=="image_link" {print $3}'|tee >(xclip -i)
EOF

You won’t have error reporting, so be careful.

claws-mail and switching filtering rules around

Wednesday, April 28th, 2010

If you’re like some of us, you filter the bejesus out of your mail. Being the postmaster recipient for an organization with under a thousand users, I get a little bit of mail.

So some of the claws-mail rules that I use, I wanted to move to folder rules. Some others I wanted to stay in filtering to run automatically. Ultimately it meant I was going to have to copy a crapload of rules into vim and paste them back and forth.

Fortunately, claws-mail stores all of its rules crap in ~/.claws-mail/matcherrc

So I shut down claws, edit the file and move everything where it needs to go. Firing claws back up showed that I had everything exactly how I wanted it.

I’m pretty new to claws but this was just a godsend. I had a lot of rules that needed to  move.

fsck on a 1TB UFS volume, guess how long it takes?

Monday, March 8th, 2010

Started fsck Thursday at 1:30pm

Still running…

Might have to newfs this one and say screw it.

-Lightningcrash

T-minus 8 days until baby

Monday, March 8th, 2010

LC’s Horde member #3 is due to be delivered in 8 days.

Now if they only made baby clothes with Quake logos…

-LightningCrash

Hot deals, second edition

Monday, March 8th, 2010

So I was given a Gigabyte GA-P965-DS3 by a friend. I had hooked him up with my old, old ass watercooling equipment a little while back. When he heard I needed a C2D board, he volunteered his old board.

So I get everything in the board. I use a spring-screw heatsink mounting system that I bought. It works great.

Now I lay my computer down and just set the board on top of the chassis, supported by the motherboard box. I move the power cables over. I move the GT 220 over and plug the HDMI in. I use some RAM of mine I had extra (part of the 8GB DDR2-800 I got for $90 back in the day)

I hit the power button with a screwdriver…. Fans spin up, C&Q is bumping the CPU fan, but….      nothing.

So at this point I’m guessing the E7200 is the problem.

I have made arrangements with a [H]ard|Forum member to purchase his E6750, I will soon try that and report back. I have taken some Ibuprofen for the headache.   :P

Until next time!

-LightningCrash

Some hot deals are the beginning of headaches…

Tuesday, December 15th, 2009

So I scored a Core 2 Duo E7200 processor for $30.

I place the chip in my D975XBX, and the system doesn’t boot.

I put my old processor back in, and two pushpins on my heatsink break.

So I bundle up the wife and kids and run out to buy a new heatsink at Bestbuy. The heatsink does not make contact with the chip when attached. I don’t know what the crap was wrong with it, I tried it several different times, different directions until I finally realized it uses the same pin setup as my old heatsink.

So I pull two pushpins from the new heatsink to replace the broken ones on the old heatsink. One more pushpin is on its way to breaking, so I replace it too. I plop down on my laptop and look up my board revision’s C2D support. Well, I’m at revision 302 and I need 303 or 304 to be C2D-compatible at all. Even then, only the E6xxx series seem to work (and some E4xxx series). Definitely no E7200.

So I put the old CPU (a Pentium D 950) back into the unit and get it all seated. System boots up and I’m back up.

At least I’m right back where I started, and it only cost me $60 to not go anywhere.

:P

-LightningCrash

Forking in xargs

Tuesday, December 15th, 2009

xargs is probably one of the most useful CLI tools in Unix/Linux.

Many people just forget that xargs can fork processes, to multithread an otherwise slow operation.

If you have a directory full of WAV files you want to encode and a quad core, fork that.

ls *.wav|xargs -n1 -P4 -i lame -h {} {}.mp3

rename ‘s/\.wav//g’ *.mp3

The -P option is for the maximum number of processes. The -n option is to limit to 1 argument per xargs call.  The -i option gives us the {} substitution. Xargs will substitute the filename for {}. This means we get an output file called blah.wav.mp3, so I added the Perl utils rename step.

xargs has many uses with forking, and you could probably even use a VAAPI-enabled mencoder to transcode a whole directory of files this way.

Just don’t fork yourself or you’ll go blind.

Until next time!

-LightningCrash

GPS Phones and Telco Logging Infrastructure

Tuesday, December 15th, 2009

This is an extension of a post I made on a gun forum. Someone had asked the feasibility of the infrastructure required to store iPhone user’s GPS coordinates. They threw out the number of 30M iPhones.

It would really be the next logical step in police data collection. Take a warrant for arrest, pull phone records for $30, intercept the guy on his way home from his dealer’s house.
This wouldn’t be a burden placed upon the police, or even the NSA. It would be a money-maker for the telcos.
Lat/Lon can be packed as a 32-bit integer, unix timestamp is a 32-bit signed integer. Add in the telephone number and we’ll just call it 128 bits per reading.
Minutes in a day, 1440, so 1440×128 = 184,320 bits. 23,040 bytes per day.
As you can see, data warehousing for this is next to nothing. An 8GB disk could hold 372,827 days worth of GPS readings.
A day’s worth of GPS data for 30M users would be 675GB raw, before decompression and deduplication.
That would be a pretty tall order for a small business, but if you add in a few hundred legal spying data purchases every day, it would pay for itself pretty quickly.

You’d need a small cluster of servers and you would likely need good SAN hardware. They already store more information than this about the calls that you make. They already have the infrastructure in place.

So is it feasible? Yes, without a doubt.

Until next time!

-LightningCrash