Winston's Humble Site

Archive for the ‘Technology’ Category

Wordpress on the TCNJ Webspace

Monday, October 12th, 2009

This was going to happen at some point: me explaining how it is I got Wordpress running on my TCNJ personal page. So here’s how it went down, as concisely as I can make it.

Wordpress requires two basic components to run: PHPz and MySQL. PHP is a webpage development script that generates everything you see. MySQL is the database that stores what PHP regurgitates into your browser (like posts, name of your blog, etc). TCNJ has the capabilities to run PHP, but does not have a MySQL database solution. They’re supposedly working on it, but a) that’ll take time, b) it won’t be for the masses. Yes, I know that last point sucks.

The solution requires using a “Remote” MySQL database, hosted by someone that isn’t TCNJ. I got mine from http://www.freemysql.net/v2/, but anything that works is kosher. Once I made a database and had its URL, I could plug it into my Wordpress “wp-config.ini” file. I pasted the location of my database into the line: “define(’DB_HOST’, ‘localhost’);,” replacing ‘localhost’ with ‘[...].FREEMYSQL.NET’.

The remainder of the installation was about as typical as could be. If you have nothing to lose, and half an hour of free time, I highly suggest giving it a try. Having a content management system like Wordpress makes it A LOT easier to update your site with new posts. I don’t know why TCNJ is lacking in this regard… Maybe so the IMM kids are forced to code from scratch *shrug*

iPod Nano Disassembly/Repair Experience

Sunday, August 9th, 2009

So, I had an interesting experience with technology today. I disassembled and iPod, having never owned one in my life, and having never taken a box cutter to an electronic device before with destructive intent.

… Okay, so maybe I lied about the second, but the first part is true.

My friend had a first generation iPod nano (ca. 2005) that had a broken Hold switch, rendering the entire device useless to input. He entrusted it to me, knowing full well that I’d have an equal chance of fixing it as i would breaking it (smart man…). Using only Youtube videos, I embarked on my adventure.

The iPod is a pretty awesome piece of engineering, even the first generation. It’s engineered with a remarkable level of precision, with tightly mapped chips and ingeniously thought out solutions to minimize complexity/bulk. This is purely speculative, since I never bothered finding/reading technical documentation on it, I’m pretty sure they used copper foil as a grounding contact for the clickwheel instead of having to design something more complex to connect to the motherboard. And they also used open contacts to connect to a simple speaker glued to the inside of the metal backplate, sparing the need for wiring… or it could just be a round heatsink.

But anyways, my steps taken:
1) Remove backplate by inserting knife between metal backing and bottom connector plate.
2) Unscrew motherboard, 3 screws.
3) Pry battery from front face cover, pry LCD screen from front face cover. Pull out ribbon cable for click wheel from motherboard.
4) Remove the motherboard/screen/battery assembly. Pull LCD from motherboard, there are clips holding it in place.
5) Once the hold switch is revealed, solder in a grounding bridge to bypass it.
6) Reverse steps, except bending in the case clips that hold the iPod together.

The entire operation is straightforward, but the complexity and tininess of it all add up to a big headache. But it’s all still rather fun, and satisfying when you figure out that you didn’t brick it. I’d definitely give this a try if you had nothing to lose.

Windows 7 Hack: Bypassing Libraries

Sunday, August 9th, 2009

I have to say, Microsoft has a bunch of smart people doing some great things. But one of the features in Windows 7 I’m not too fond of is Libraries. A Library is pretty much a way to organize multiple folders without physically moving, or changing any of them. Let’s say you keep your Documents on your computer in two or more folders. Opening and vieweing documents in all your folders is a bit of a hassle. So instead, what you can do, is add all those folders to a single “Library” and view them all as if it were one folder. It’s kind of like making a shortcut to the original folders, but with the added benefit of being able to browse them all simultaneously.

When you open Windows Explorer (a link is provided on your taskbar), you are taken to a folder of your Libraries. However, I’m a control freak. Thus, by default, that’s not good enough for me. I want to be able to view my personal folder, not some virtual collection of files that Microsoft has deemed pertinent to the average user. To accomplish that, you have to finagle the Windows Explorer shortcut to take you to the right place. There are descriptions of how to change the Windows Explorer shortcut to take you to “My Computer,” but few detail how to get things a little less generic than that.
The actual procedure is fairly simple, just slightly time-consuming. The basic steps are similar to those found here: http://www.leonmeijer.nl/archive/2009/02/10/140.aspx, though I’m pretty sure he’s missing a comma after “/e.”

The extra step requires going into the Registry (type regedit into the start menu search), and locating the right folder address (that odd ‘:::124fe700DisgustinglyWeirdAddress’-looking thing). You’re looking for an entry named UserFilesFolder. Copy and paste the Parsing Name into the target for your Windows Explorer Shortcut after the “/e” tag, replacing the latter half the previously mentioned link’s instructions.

Assuming no sneaky syntax errors are made, your shortcut should now open up your personal folder. Drag, drop on your taskbar, and enjoy.

CA-3062 2.1 Speaker System – Impressions

Monday, July 27th, 2009

I’m not regretting getting this pair (er… trio) of speakers from Staples for $25. For 50% off, they are indeed an excellent value. The speakers pump out a full 30 watts, and come with a well-powered sub. For a small room, this will more than fill it with sound. It also has a few nice features, like a small wired remote that you can place independently of the rest of the system. It’s a small puck that includes a power switch (something that my out-going set lacks), volume control, bass control, and aux & headphone jacks. Very handy. Plus the polished black plastic looks pretty slick.

Cyber Acoustic, however, is not a brand in the same class as Logitech, Altec, and Bose and it is *almost* readily apparent why. At extremely low volumes the left channel cuts out before the right. It’s something I’ve also noticed on a cheap, decade-old set I’m using downstairs. Not sure why, maybe they’re a little less stringent on making sure volume controls are identical for both channels.

Also, I have the impression that the range of the speakers isn’t properly balanced. True, this set is light-years better than a set without a sub. But having a sub doesn’t guarantee good sound. It seems like the ranges of the satellites and the sub don’t overlap too well, leaving the mid-tones washed out. I could tweak iTunes to compensate… but I’m not quite that desperate.

The wiring situation is tolerable, though could be better. The wired control puck-thingy can’t be detached from the sub, so that’s one extra wire you have to worry about when moving the sub. It also meant I had to pull out my desk to get the puck behind it, and on top of my desk instead of being able to snake a wire down. The satellites are both connected to one plug, like Siamese twins, so they will always have to travel together.

But like I said, with 50% off this week at Staples, I’d be hard pressed to even *find* a 2.1 speaker system from other manufacturers for the price so I can’t complain too much. It’s a much better fate than those poor dorm saps who still listen to music through laptop speakers.

I can now say I’m a victim of DRM…

Sunday, June 14th, 2009

Submitted:
“I’ve installed Red Alert 3 only on two PCs. However, because I’ve reinstalled Windows on both computers multiple times (and even installed the game on two different partitions of the same computer) the game is telling me that I’ve reached my license limit. I never thought to “De-Authorize” the game before I formatted my computer(s) each time because I’d never come across such obnoxious DRM in a game before. Is there any way I can have my license limit reset? Because if you keep *any* sort of logs, you can tell that this game has only been used from one IP address at a time so it’s not like you’re license limit stopped pirating at all or anything…

Sincerely,
Frustrated, Legit Customer”

Response:
“Greetings,

Thank you for contacting EA games support.

Please be informed that, I have increased your license limit. You should be able to install/activate your game one more time. I would suggest that you first verify that the system meets the game’s minimum requirements before trying to launch it once again.”

It should be noted that I have two computers that require an installation of the game, and none of the previous installations exist anymore.
This is why a limit of installing games “5 times” and approving more installs on a “case by case basis” sucks (and is stupid). And why I now wholeheartedly sympathize with the pirating scene…

It should be noted that I do approve of management systems like iTunes, the latter of which lets you manually reset your authorizations in the case of copy-protected music (even though it’s now also DRM-free).

Apple Engineering > PC Counterparts

Tuesday, May 26th, 2009

Nowhere else does a manufacturer keep the interior of a laptop as clean and simple as in the unibody macs. No need for a maze of plastic parts when the entire body is a single solid piece of aluminum. <3

Now if only I could anodize this to change its colors…

Whoo, Text Messaging minus the phone!

Tuesday, May 12th, 2009

A few of you have felt the wrath of my experimental spamming. For the rest of you, as kind of another PSA, how to send (and receive) text messages without a phone.

As a side note: “…the 20 cents-per-message rate adds up to $1310.72 per megabyte. This is double the cost three years ago and, quite literally, astronomical: A space scientist at the University of Leicester in the UK did the math and discovered that this is several times as much as it costs to transmit data from the Hubble space telescope back to Earth…”

Keyboard Hack – Build Montage

Thursday, February 26th, 2009

http://www.youtube.com/watch?v=vIud4KHWA9E

Took me long enough to get this up. It’s only a a minute and a half of your life that you’re losing. If you didn’t want to read my Hack write-up out of laziness, this video/slide show is for you.

Microsoft Might Be Onto Something…

Tuesday, February 24th, 2009

Bryce 2

Some of you people might have noticed a Microsoft Ad that’s been making rounds lately. You know, little cute girl, digital camera, taking panoramic shots and stitching them together effortlessly with Windows Live Photo Gallery. And as much as I find the “I’m a PC” ads fairly empty, this one caught my eye.

Sorrento

Panoramic Compositing has always been something I’ve been meaning to do, but doing it on Photoshop is utterly mind-numbing and time consuming. I’d even tried enlisting Brett to help me, but of course, he’s all over the place in terms of attention span (I mean that in the nicest way possible, Brett). So I bit the bullet and decided to try Windows Live, despite loving my Mac. The results are, in short, amazing for a freely downloaded program with a simple interface (And a Microsoft program, at that).

Italy 1

Yes, there are mistakes here and there, but as a whole the impressions of my images were faithfully rendered. It took maybe about a minute for WL Photo Gallery to composite my pictures (about 5-8 2000×3000 JPEGs) and that’s thoroughly acceptable in my opinion, considering doing a single one of those myself took 40+ minutes. And that’s without the post-processing and tweaking that Brett would’ve wanted to do.

Bryce 1

In conclusion, this is one feature that Microsoft maybe has the right to be bragging about. They’ve been working hard to improve their user experience and this makes their Windows Live suite slightly more formidable in the face of suites like iLife ‘09 (though that has Face-Recognition, which is even more drool-worthy than panoramic stitching).

Kachemak Bay

Grand Canyon 1

Grand Canyon 2

LED Keyboard Hack

Thursday, January 15th, 2009

For awhile now, I’ve been eying illuminated keyboards with envy. They’re cool, and they make typing in the dark a wee bit easier. With all of winter break to work with, I decided I’d try making my own. With a budget of $0. That’s right. ZERO. Everything I needed I found at home. Here’s my woeful tale.


Click for Project Album

Materials Used:
Generic Keyboard
Fiber Optic Tassel (salvaged from an old toy from the circus years ago)
LED (de-soldered and removed from a light-up pen)

I began by locating a usable keyboard. It just so happens I had an old one lying around, from ~2003. Its design allowed me a little more flexibility around how I would implement my evil plans. The first step was deciding where I would place my LED and fiber optics.

After some hasty planning, I had to prepare the keyboard for surgery. I removed the circuit board with the Num Lock, Caps Lock, etc. indicators and de-soldered the LED for the Scroll Lock. No one uses it anyway. I would use the scroll lock button to turn on my illumination LED instead of the indicator LED.

After disfiguring the plastic slightly, I threading the fiber optics through a slit I made (I folded the tassel end in newspaper to keep the strands together).

The tassel end, I glued down, to keep the under side clean. I had to put a pair of pliers and a hand vacuum on it to keep it from popping up before the glue was dry.

Then came the tedious part. Placing and securing each and every strand of fiber. This took scotch tape, Elmers glue, and more patience than should be spent on something so frivolous.

Some of the keys needed to be reshaped because the fiber optic bundle was too thick. In reality, the uneven edge is hardly noticeable, and it even opens up more gaps for light to shine through.

The de-soldered Scroll Lock Indicator socket needed to be connected with the LED I was using. Wires from an ancient headphone set were sacrificed to make this happen.


The end product: a surprisingly intact keyboard with a little more flair for the useless, that’s even still unique in daylight. And I did achieve my budget of $0.