You are currently browsing the monthly archive for October, 2006.

Why is it that I always find myself ponying up the small amounts of cash it takes to purchase Mac shareware applications? Black fire and a disco ball? I gotta have it.

Today I fell victim to MacZot’s current promotion (ends in 23 hours!) that saw me gobbling up the public beta of the Disco CD/DVD burning application for Mac OS X, and boy am I content with this lil 700KB number.

Firstly, the hype: when you purchase the beta at the silly-low price, you also get the opportunity to send a free license to someone else. So here goes - the first person to leave an intelligent comment gets the license! (I’ll need a real email address) This is a great marketing idea that see people not only using the beta of a terrifically designed piece of software, but also spreading the word to others so they can try it as well. Good show.

Disco Windows

Next, the features: Disco copies discs in two clicks. Say that ten times fast. Disco can span CDs and DVDs automagically. They call it Spandex, I call it dead sexy. This is extremely handy when backing up iPhoto or iTunes, trust me. Disco can burn VIDEO_TS folders by just dragging them onto the application, which makes it great for burning your DVD backups. Disco has realtime 3D interactive smoke that actually wafts up from the application as you burn discs. If you blow into your microphone, the smoke will dissipate, and if you move your cursor around the smoke itself, it reportedly moves accordingly - but I didn’t get to see this on the low-end test box. Disco has an amazingly simplistic interface that is very easy to follow as it prompts you at every step. Last, but certainly not the least in terms of features, and should really be in caps: Disco remembers every single burn and keeps a catalog of the burn sessions using what it calls “discography” so that you can easily do things like print labels, disk jackets, or simply keep handy for when you need that dot release or the pre-altered code that you can never find. Let Disco be your personal sherpa.

Disco runs very well for a beta application. I have yet to see it crash under Panther, Tiger, or even Leopard (WWDC or the 9a ADC build). Oh, and it worked fine in Tiger server as well. Unfortunately the test box is a 1st generation Mac Mini (PPC), so there was no “smoke” to speak of (anyone have screenshots?), so that will need to be tested later. I burned some mix audio CDs, a backup copy of the disk image for Disco public beta itself, an ISO image of Ubuntu Edgy Eft Beta, and a bunch of Gentoo releases, for good measure. No hiccups. I erased a very old scratched CDRW. I even inserted a scratched blank CDR to see what would happen… Well it wouldn’t burn correctly but Disco kept on keepin’ on - like some sort of Disco inferno - no bouncing beachballs of death here. And you call this a beta? I expected flames, not smoke. No crash and burn here.

picture-1.pngpicture-2.pngpicture-3.pngpicture-4.pngpicture-5.pngpicture-6.pngpicture-7.pngpicture-8.pngpicture-9.pngpicture-10.pngpicture-10.pngpicture-11.png

In these screenshots you see the Disco app in full swing, from installation to a test burn, and a view of all the windows it provides. I really like the design of this app, and it was well worth the 15$ pricetag. If you’re new to MacZot, and need a referrer, feel free to use “blandname”. Now go write some optical media and dance around like a schoolgirl.

Oh and on the topic of Disco, and in the name of Halloween here’s a joke:

“Why didn’t the skeleton dance at the disco?”

“He had no body to dance with”

Related Articles:


del.icio.us" Digg" Reddit" Simpy" Yahoo!"

From the VMWare Converter 3 beta refresh release notes (found at virtualization.info):

VMware Converter provides an easy-to-use, scalable solution for migrations of machines, both physical to virtual and virtual to virtual. Optimized for mass migration, VMware Converter is equally effective for single-machine conversions. With its comprehensive and comprehensible wizards and task manager, VMware Converter imports virtual machines faster, with fewer manual steps required, and fewer source hardware limitations than other methods. Converter can, with its ability to hot clone, import with no downtime on the source physical machine.

VMware Converter combines and expands the functionality available in P2V Assistant and Virtual Machine Importer. It eases interoperability among VMware hosted products (Workstation, VMware Server, and VMware Player), VirtualCenter-managed ESX Server 3.x and 2.5.x, and unmanaged ESX Server 3.x.

Import from Physical Machines
(Source)

  • VMware Converter can hot clone and reconfigure any local or remote physical machine running an operating system noted in Platforms
  • VMware Converter Boot CD can be started from, and clone, local machines outfitted with storage controllers and network adapters that Microsoft lists as supported in Windows 2003

Import from Various Third-Party Formats and VMware Products
(Source)
  • Microsoft Virtual PC (version 7 and higher)
  • Microsoft Virtual Server (any version)
  • Symantec Backup Exec System Recovery images1
  • VMware Workstation 4.x virtual machine (compatible with VMware GSX Server 3.x)
  • VMware Workstation 5.x virtual machine (compatible with VMware Player and VMware Server 1.x)
  • VMware ESX Server 3.x
  • VMware ESX Server 3.x (when managed by VirtualCenter 2.x)
  • VMware ESX Server 2.5.x (when managed by VirtualCenter 2.x)
Export to a Virtual Machine for
VMware Workstation and Datacenter Products
(Destination)
  • VMware Workstation 4.x virtual machine (compatible with VMware GSX Server 3.x, ESX Server 2.5.x)2
  • VMware Workstation 5.x virtual machine (compatible with VMware Player and VMware Server 1.x)3
  • VMware ESX Server 2.5.x (when managed by VirtualCenter 2.x)
  • VMware ESX Server 3.x (when managed by VirtualCenter 2.x)
  • VMware ESX Server 3.x

Not Supported:

  • VMware ESX Server 2.5.x when managed by VirtualCenter 1.x
  • VMware ESX Server 2.5.x unmanaged

1. The Symantec family of products includes the Backup Exec System Recovery (formerly LiveState Recovery) products and the Norton Ghost 9 (and higher) products. Only images from the Backup Exec System Recovery products are fully supported, but images from Norton Ghost 9 (and higher) are likely to work.

2. For ESX Server 2.5.x the .vmdk files must be imported using the vmkfstools utility.

3. Only Workstation 5.5 can power on linked imports of .sv2i images.

For more info please visit VMWare’s Converter 3 Beta Refresh page.

Related Articles:


del.icio.us" Digg" Reddit" Simpy" Yahoo!"

Update 2: After contacting one of the Swik developpers, I was able to have them clear the site of my content. Though they still appear to be syndicating my content, at least the older entries are gone, and I have since edited the RSS feed properties so that only 100 characters are fed. Lesson learned, the hard way.
Update:This article has now been republished on the Swik website. I’m speechless.

Swik Update

It’s said that imitation is the sincerest form of flattery. One could suppose that blatant content stealing would make you quite flattered indeed. Once would be OK, but having half of your websites content mirrored elsewhere is something else altogether.

It seems there’s a new splog (spam blog) on the block, and it’s being funded by none other than SourceLabs.

I found out about Swik while doing a vanity search for blandname.com, and was flabbergasted.

It seems the kind folks at SourceLabs now think it’s OK to republish full websites on their Swik websites, without so much as asking. Have a look at the evidence - blandname has half of it’s content republished at Swik, sometimes 3 times over.

I’m assuming that they simply are grabbing del.icio.us links and RSS feeds that contain the keywords “open source” - but they could at least limit what they republish to 50 words or so. But no, they take it one step further and hotlink to your images, videos, and audio files as well. Way to go you bumbling fools.
I’ve sent them a kind but stern email letting them know this isn’t so cool, and I’d recommend that anyone else affected look into this as well.

Here’s a recent example that was republished at Swik 3 whole times:

blandname swik

I truly appreciate what they are trying to do, but lack of testing, and not asking people if it was OK to republish their content is not very nice. But I digress.

The real issue at hand is that Swik claim that all content on their website is Copyleft, which this site clearly is not. In case they missed it, I have modified my RSS feed leaving them a note expressly stating the fact…

Related Articles:


del.icio.us" Digg" Reddit" Simpy" Yahoo!"

Blandname is currently hosted with DreamHost, and we’ve been here for years. It’s cheap, offers lots of goodies, and one-click installs allow us to easily install and test web-based software. Not to mention that they also support Ruby on Rails, and give you SSH access and the ability to run a Jabber server as well as unlimited MySQL databases.

You’ve also probably gathered that blandname is currently running WordPress. Dreamhost has had a one-click install for WordPress 2 for a while now, and since it was handy at the time, we went for it.

But things change, and one-click installs often are not enough to satisfy most webmasters, which is how we got where we are today. Since my goal with blandname is to create another multiuser blog similar to what has already been running for years at yottabite, but instead of having one big weblog, we’d like to have multiple subdomains like string.blandname.com, which WordPress MU allows you to accomplish, automatically.

Unfortunately DreamHost doesn’t support WordPress MU’s subdomains by default yet (you can always send them an email), but we can still get away with subfolders, which is more than good enough for a test.

This guide will require familiarity with DreamHost’s control panel, as well as common Bash shell commands as we will be using SSH.

The first step is to make a test domain for you WordPress MU install. In my case, I navigated to the “Domains” section of the left-hand menu, then to the “Manage Domains” section of the DreamHost panel, and created the new subdomain test.blandname.com. You’ll want to make sure to select PHP5, and enable extra security. This typically takes about 10 minutes to complete, but we still have the database to add, so let’s get to that at the same time.

In the “goodies” section of the DreamHost control panel, select “Manage MySQL”. The default view is to set up a new MySQL database, which is what we’re going to do. Create a unique database name, the subdomain you would like it to use, as well as the data base username and password. Make sure to keep note of all of these settings as we will need them when installing WPMU.

DreamHost will have by now created a folder in your SSH root that will allow you to place files there and start some of the work while we wait for the subdomain to be created and propagate. Login to your server using SSH (you’ll need to use either your DreamHost hostname here or another web address for now - you can use the WordPress Mu domain later). Now we’ll navigate to the new subdirectory that was created when we setup the new subdomain by typing: cd test.blandname.com Change the folder name to whatever is pertinent in this case.

Now that we’re in the correct folder, we’ll grab the latest using the always-handy WGET. Here’s the code:

wget mu.wordpress.org/latest.tar.gz

gunzip latest.tar.gz

tar -xvf latest.tar

cd wordpressmu-1.0 (this will probably change, ls -al will tell you the dirname)

cp -rf * /home/YOURUSERNAME/test.yourdomain.com/

cd ..

rm -rf wordpressmu-1.0/

Now we’ve got a clean directory structure in the root of our test domain, and we’re set to go ahead with the WordPress MU installation.

By now the subdomain has probably propagated because DreamHost is getting faster and faster, so using your web browser, navigate to test.yourdomain.com

Next you’ll want to retrieve the soiled napkin, SubEthaEdit file or whatever else it was that you used to jot down the database settings, and plop them in here. They are very straightforward, and this is typically the most problematic so check them twice but have no fear: if you mess up WP MU will tell you, and you can retrieve the settings from the “Manage MySQL” section in the DreamHost web control panel.

The rest is quite simple: you’ll be met with a typical WordPress installation page, but instead it’s for WorPress MU. The first question that needs to be asked is whether or not WordPress MU users will be using subdomains or subfolders of the root WPMU installation. As previously stated, DreamHost currently does not support subdomains by default (I’ve put in a request, here’s hoping), so we’ll select subfolders here. WP MU will have already placed the domain name you will be using in the yellow textfield, but if you had decided to use subfolders instead of the webroot, you’ll want to specify that here as this will affect all links as well as your RSS feeds.

Lastly, we’ll want to name our multi-user Wordpress MU blog, and specify the email address that you will use for things like spam reports, and replies to your comments on the parent blog.

Click on that small “submit” button, and let’s see what happens!

Hopefully on the next screen you’ll see this message:

Creating Database Config File: DONE
Congrats! Your WPMU site has been set up and you have been sent details of your login and password in an email.

Click on the link provided, and get with customization, as we’re all done.

Related Articles:


del.icio.us" Digg" Reddit" Simpy" Yahoo!"

Close Buttons on Tabs in Firefox 2.0

If you’re now using Firefox 2.0, you’ve probably already noticed that tabs now have close buttons by default, instead of having a single tab close button on the far right-hand side of the toolbar. If you preferred the older behaviour, simply navigate to the “about:config” page (type it in like a URL or webpage address), and find the section marked “browser.tabs.closebuttons”. Double-click on this entry, and set the value to 3 to display a single close button at the end of the tab strip (Firefox 1.x behavior).

Alternatively, you can set the value to 0 to display a close button on the active tab only, 1 to display close buttons on all tabs (Default), and set it to “2 to not display any close buttons at all.

taken from the about:config page at MozillaZine

A parting tip: To close the current tab using your keyboard, press CTRL+W. If you close a tab by mistake, just head to History > Recently Closed Tabs, and you can resume work from there (alternatively, you can use the arcane keyboard combo CTRL+SHIFT+T).

If you prefer using your mouse and want an even faster way about it - try the middle-mouse click (that’s typically a scroll button). When you click the scroll on any tab it instantly closes the tab for you. I have been using this method quite a bit lately. Though it seemed quite alien at first, I quickly got used to it and it’s now a major part of my Firefox 2 workflow.

Related Articles:


del.icio.us" Digg" Reddit" Simpy" Yahoo!"

A friend of mine over at Black Box Productions emailed me today in order to let me know that he had launched a web comic, so I had to let you all know!

The webcomic is going to be weekly, and you can find it at:’The Studge‘!

Related Articles:


del.icio.us" Digg" Reddit" Simpy" Yahoo!"

OK, so everyone is very excited about Firefox 2. I’m excited, your excited, all the social networks are ablaze.

But development does not stop at whole numbers, and the testing must go on - which is how we got here.

So I’m testing Firefox 3 (Minefield). That’s right, I won’t be outdone. I must run the most unstable software. Well at least on the test boxes. So currently the Vista, Leopard, and Edgy boxes are running “firefox-3.0a1″.

The first things you will notice are the graphics - everything has a nice sheen to it (in fact, looks just like Firefox 2!), while remaining true to the normal Firefox UI. Also of note is the fact that favorites are now run using a SQLite3 database. For the full list of features, head on over to the Burning Edge page.

Firefox 3 Minefield Toolbar
Firefox 3.0a1 Toolbar
Firefox 3 Minefield Tabs
New Tabs in Firefox 3.0a1 Minefield

As far as I can tell this is just as stable as Bon Echo was (that’s right - was stable for me), with inline spell-checking and some other fancy goodies.That’s all for now, some more screenshots from other platforms (other than Windows XP of course) and crash reports as they happen

Note: of course this is somewhat tongue-in-cheek. I’m sorry for the Mozilla devs. We all need to stop worrying about the cutting edge and appreciate what we have - fantastic browsers! Opera, Safari, IE7 and Firefox are all great, really.

Related Articles:


del.icio.us" Digg" Reddit" Simpy" Yahoo!"

Via MSDN:

Continuing on our saga through the undocumented Virtual Server WMI interfaces, we now arrive at disk usage information. Here is a sample script that will create a list of the currently running virtual machines, and display the amount of disk activity they have had since they were powered on.

Set vsWMIObj = GetObject(”winmgmts:\\.\root\vm\virtualserver”)
Set vms = vsWMIObj.ExecQuery(”SELECT * FROM VirtualMachine”,,48)
For Each vm in vms
Wscript.Echo “==============================================”
Wscript.Echo “Virtual machine: ” & vm.Name
Wscript.Echo “MiB read from disk: ” & vm.DiskBytesRead / 1048576
Wscript.Echo “MiB written to disk: ” & vm.DiskBytesWritten / 1048576
Next

As you can see these disk counters usually report values in bytes. It is important to note that these counters are also reset to zero every time the virtual machine is turned off.

Related Articles:


del.icio.us" Digg" Reddit" Simpy" Yahoo!"

What it is:

How it was written:

  • Digg for Pandion was based on the Slashdot plugin for Pandion, with added Base64 Digg icons, and a bit of CSS.

Todo:

  • Add Digg buttons so you can Digg up articles of interest, or comment on them.
  • Allow users to select different Digg feeds that the plugin could display.

Click here to download the blandname Digg plugin for Pandion (0.1-alpha)

How to install the plugin:

  • Unzip the file and simply copy the plugin to the Pandion plugins folder. The plugin will create all the necessary files needed at runtime automatically.

Related Articles:


del.icio.us" Digg" Reddit" Simpy" Yahoo!"

Tinfoilhat is a bootable floppy linux distribution for PGP encryption/decryption. Over-engineered, and under-sized, THL comes in handy when paranoia hits it’s peak!

From the README:

What Tinfoil Hat Linux protects against ….
***************************************************

* Worms & viruses

The OS doesn’t support networking, all binaries are compiled staticly, and all non-root partitions are mounted with no-execute permissions. A hash of the NVRAM is displayed at boot time.

* Data retrieval

All temporary files are created on an encrypted ramdisk which is destroyed on shutdown. Even the PGP keyfile information can be stored encrypted on the floppy.

* Keystroke monitoring

THL has gpggrid , a wrapper for GPG that lets you use a video game style character entry system instead of typing in your passphrase. Keystroke loggers get a random set of grid points, not your passphrase.

* Power usage & other side channels

If you start the Paranoid options, a copy of GPG runs in the background generating keys & encrypting random documents. This makes it harder to determine When your REAL encryption is taking place. See the TEMPEST section below.

* (some) User stupidity

If you use THL, it’s very difficult to leave a plaintext file on your hard drive by accident.

Related Articles:


del.icio.us" Digg" Reddit" Simpy" Yahoo!"

SSH is one powerful tool. You can do just about everything under the sun using an SSH login to a remote computer. SSH works very well in low-bandwidth situations like dialup, or satlinks.

But wakeup, we’re no longer in the 80s - people want GUIs, let’s give them fancy-pants graphics, bouncing cursors and silly linux wizards. Remotely.

Enter Xming, what I would name as top of my favorite applications. Xming is just like X over SSH, for dummies (or people who would rather spend more time working).

Xming allows you to connect to remote or local Linux workstations and servers and run full graphical applications on those remote machines on your local Windows computer.

Here’s how it works: all of the applications are run remotely, but when it comes to the graphics, the information that would invoke the graphics is sent to your local computer, not a bitmap or a sequence of bitmaps like VNC. Xming uses a local X server on your Windows computer in order to display your remote applications. This local X server is 2D accelerated, and it’s sometimes difficult to even notice that you are working remotely.

Since Xming can run in windowed or full-screen modes, you can establish thin client connections in this fashion, or you can publish applications Citrix-style.

Xming is completely free to install and setup. It is a great way to manage virtual machines, and in fact is often faster than Microsoft’s Virtual Server ActiveX control (surprised?), VMWare’s Virtual Machine view (even with VMWare tools!), and even Parallels speedy virtual machine view.

To set the whole thing up, you’ll need a computer running Microsoft Windows, one Linux box, a network connection between the two, but you won’t need much effort.

First install the Windows Xming server on your Windows computer. We’ll use Windows XP SP2 in this example, but it could easily be other varieties. Xming can be found on Sourceforge quite easily, download it, run the install (use defaults), and start XLauncher.

On the Linux computer this are slighlty more complicated, but not by much. For Gnome or KDE on Ubuntu Edgy, go to the System>Administration menu in your menu bar. In Administration, we’ll select login preferences as we’ll be setting up a new logon method (we’re using XDMCP). Select the Remote tab, and enable remote logon (same as local) to your Edgy Eft machine.

Now on your Windows machine, set up XLaunch to logon to your Linux machine using it’s IP address. Save the setting if you want, and connect. You will be presented with a logon screen to your Linux desktop!

Related Articles:


del.icio.us" Digg" Reddit" Simpy" Yahoo!"

Now that Internet Explorer 7 has been released in its final form, a lot of people are rushing out to install it as soon as possible. However, some web designers will want to keep a working version of Internet Explorer 6 to make sure their designs for IE7 aren’t broken in IE6. Jon Galloway has a great tool to have both versions of Internet Explorer installed and working at the same time, using a launcher comprised of a batch file and some registry hacks.

I tested the hackish launcher, and had no problems whatsoever.

Another mention: very soon IE7 is going to be a forced (pushed) update, so it’s going to be installed without you noticing, and Microsoft is going to reboot your computer, regardless of what you have left open overnight. To prevent having Internet Explorer 7 from being installed in the fashion, you’ll need to download the IE7 blocking tool from Microsoft.

Finally, if you don’t pass the WGA check to download the blocking tool, SnapFiles is providing a mirror of the IntelliAdmin IE7 Blocking Tool.

Related Articles:


del.icio.us" Digg" Reddit" Simpy" Yahoo!"

This is a list of my favorite Windows applications that I honestly couldn’t live without that also work on Microsoft Windows Vista RC as well, much to my surprise. All of the software is free to download and use, and in fact most of them are open source.

ConTEXT - ConTEXT is a free and lightweight editor for programming or can be used as a notepad replacement. ConTEXT supports find and replace in multiple files at once so changing one method in loads of files is no longer an issue. Works in Vista with no problems whatsoever.

Synergy - Synergy is like a software KVM, but only shares keyboard and mouse capabilities. Synergy is multiplatform, and I currently use it to have my keyboard and mouse work in Ubuntu, Vista, and my Mac Mini running Leopard with no problem at all! This way I get to use my favorite keyboard and mouse and get to free up some space on my desk at the same time.

VLC - VLC has been my favorite media player for years now. VLC comes with most of the codecs you will need to watch videos on your PC already. VLC is very lightweight, and JUST WORKS, something that can’t be said about many media players. The only issue with VLC in Vista is that it turns Aero Glass off while it is playing.

FileZilla - I use FileZilla to interface with clients that still haven’t moved to SCP. FileZilla is an open source FTP client that gets the job done, supporting drag and drop, SSL, and NAT to NAT connections. The only thing it is missing is FXP support, but that’s not really a big deal in my case. Works fine in Vista with no problems at all.

IMGBurn - I love IMGBurn. This is hands-down the easiest way to burn .IMG, .ISO and BIN/CUE disk images to backup CDs or DVDs. Free, open source, and awesome. Works a treat in Microsoft Vista Beta 2 as well.

WinSnap - I use WinSnap to make many of the screen shots you see on blandname. WinSnap supports full screen and windowed screen shots, and also allows for rotation and drop shadows if you feel the need.

Electric Sheep - I often refer to Electric Sheep as “the best screensaver ever”, but truth be told, it’s really a collection of computer-generated screensavers that allow users to vote on them using a Digg-like system. On Windows, Electric Sheep uses bit torrent to transfer the sheep data. Again, working just fine in Vista!

Xming - Xming is my prefered interface to remote Linux boxes. Xming is for Linux what RDP is for Windows - you get a local X server and acceleration that displays data from remote applications running on Linux machines. Tested more than a few times to a remote Ubuntu computer, and one Gentoo box with no caveats.

WinSCP3 - SCP is now my preferred file transfer method. Luckily my favorite client also works on Vista, or I may not have used it at all. Much like FileZilla, WinSCP3 has a very simple, streamlined interface that is feature-rich and gets the job done, even on Vista.

So there you have it: 9 free applications I couldn’t live without that work just fine on Vista, and make it easy for me to do my day-to-day tasks. Hopefully someday this list will include F-Spot and Amarok, but I’m happy with this as a start considering neither of them work on Windows XP SP2 either!

Related Articles:


del.icio.us" Digg" Reddit" Simpy" Yahoo!"

Parallels announced today the updated features of the newest iteration of Parallels Workstation.

Big new all around for Windows, Mac and Linux users.

Here’s the breakdown (from the newsletter):

Parallels Desktop for Mac is the first solution for running Windows and OS X at the same time – without rebooting!

The Desktop for Mac Official Update includes a number of powerful new features, such as:

  • Works on ANY Intel-Mac with ANY memory configuration with no system modification. This includes Mac Pro towers with up to 16GB of RAM, and the full line of Core 2 Duo iMacs
  • Support for Windows Vista as a guest OS
  • Support for Mac OS X 10.5 “Leopard” as a Primary OS
  • Better USB support, including support for isochronous devices and Windows Mobile 5 devices

Parallels Workstation 2.2 for Windows & Linux is a powerful, cost effective virtualization solution which boosts productivity and lowers IT costs by letting users run multiple OSes simultaneously - without rebooting - on any Windows or Linux PC.

The new version includes a variety of new features and improvements:

  • Full support for AMD Secure Virtual Machine Technology, and stronger support for Intel Virtualization Technology
  • Support for Windows Vista as a Guest OS
  • A new shared folder utility lets users share files and folders between OSes
  • Better networking
  • Better USB support, including support for webcams and Windows Mobile 5 devices

Related Articles:


del.icio.us" Digg" Reddit" Simpy" Yahoo!"

Prototype.js is a very popular AJAX framework used when building dynamic websites. You will find Prototype in most Ruby on Rails projects as it is included by default, and for good reason; Prototype.js is a great library that includes a lot of functionality.

Unfortunately it is rather large in size, weighing in at roughly 50KB.

Although many have managed to reduce the file size of Prototype by paring down the code and gzipping the file, we’re going to use an additional tool to approach the problem, one from the Mozilla foundation that appears to work very well - Rhino.

(Oh, in the interest of full disclosure, I am a Java fanboy, having studied at a university that got a lot of Sun funding back in the day. I hope you can see past that and check out this Javascipt hack, I really do.)

An informative quote from the Mozilla page for the Rhino project goes like this:

“Rhino is an open-source implementation of JavaScript written entirely in Java. It is typically embedded into Java applications to provide scripting to end users.”

Alright then, so what you have is a Java bytecode version of Javascript that will work in most browsers.

Sounds interesting, let’s see what we can do with Protoype.js!

I decided early on to use a Rhino tool that I found on the Dojo site that allows me to compile Javascript and make it Rhino compatible. The page give you a brief walkthrough and some examples on how to use the tool, so I won’t need to cover that here in detail.

So we compile our Prototype Javascript file, let’s see what our results are then, shall we?

Before: 47445

After Rhino: 32716

After Rhino and gzip: 9454

So it’s at about 9KB now!

In order to utilize the new file, upload it to the directory that houses your original Prototype javascript file, then any instances of prototype.js in your code to prototype.jgz (zipped javascript).

You’ll also want to change your .htaccess file so that you handle the new script properly by typing pico (or nano or vi or what-have you) .htaccess:

RewriteEngine on
RewriteCond %{HTTP_USER_AGENT} ".*Safari.*" [OR]
RewriteCond %{HTTP:Accept-Encoding} !gzip
RewriteRule (.*)\.jgz$ $1\.js [L]

AddType "text/javascript;charset=UTF-8" .jgz
AddEncoding gzip .jgz

You’ll notice here that we’re doing user agent detection for Safari. When I did my testing it seemed to be spotty, so what we’re doing is falling back to javascript if we see that the user is using Safari. We’re still compatible, and the code works everywhere else.

Related Articles:


del.icio.us" Digg" Reddit" Simpy" Yahoo!"

If you’re like me, you have many computers that you connect to remotely when away from work, or home, using RDP.

The easiest way to connect to all of these computers (aside from setting up a VPN) is to change the default port on which Windows will accept RDP connections.

Since things have changed a bit in Microsoft Windows Vista, here is how to change that port:
Click on the Start button, and navigate to accessories. From there, clik on the Run icon. Once the Run applet has started, we’ll enter the good ole regedit command. It still works like a charm!

Within the registry editor, navigate to:

Computer\HKEY_LOCAL_MACHINE\SYSTEM\ControlSet001\
Terminal Server\WinStations\EH-Tcp

We want to change the registry key PortNumber in order to modify the default port. The default port is 3390, and I normally use ports in the 338x range, so double click on the key, check the decimal setting, the set the “Value data” to 3389.

Click OK, then close Regedit, and connect from a remote PC.

Note: you may want to create a firewall rule for port 3389 in order to allow connections.

Related Articles:


del.icio.us" Digg" Reddit" Simpy" Yahoo!"