Browsed by
Category: Technical

Mr. Div and his amazing graphics

Mr. Div and his amazing graphics

As a 3D graphics software developer, what attracted me to the field was always the fact that you could create images and scenes of the mind.  There were no physical laws other than the ones you created when generating visuals.

Mr. Div is a designer that has captured much of what I have always hoped to do.  He communicates unique experiences and ‘feels’ via strange and unique graphics/animation.  I find myself drawn to the 70’s era style of his work that was present in the very first days of 3D graphics.  Even though it’s not the highest rez/most realistic graphics, and the tools he uses are simple off-the-shelf variety – it’s the output and imagination that’s amazing. It’s exactly this kind of stuff that makes me excited to be in this field.

http://mrdiv.tumblr.com/

 

 

Foscam

Foscam

So, I recently had a Home Depot gift card about to expire.  It was going to either be another flashlight (which are always handy)


or this deal was going on for a Foscam FI8910W Wireless IP camera.  I’ve heard of these things; but figured I’d give it a shot.  It has some great features:

  • Day and night (up to about 10-15 feet – not the 8 meters they assert)
  • Wireless N or wired connectivity
  • 300 degree pan, 120 degree tilt – remotely controllable from pcs or mobile devices like phones
  • 2-way audio (listen and speak!)
  • Auto-detection of motion and broadcast+email of images from the device

The long and short is that it works great when set up; but the setup and software certainly can leave a lot to be desired.  At least the Foscam forums are easy to use and full of help.  You’ll be using them a lot.  While I was eventually able to solve my problems; I wasted a good 2 hours setting this thing up.  Unfortunately, the part that’s lacking is really the software stack.  It really does feel like a bunch of first-year computer programmers put this thing together.  They have a lot of features and they do seem to work, but they’re all very picky and error-prone.  You have to set up things jusssssst right. If you do accidentally make a mistake or set up a feature in conflict with another – it doesn’t report a problem, it just doesn’t work and doesn’t tell you why or even what is wrong.  Just 20 more minutes of coding for it to say ‘password wrong’ or ‘IP conflict’ or something like that would have solved 90% of these problems; but you won’t get that.  It’s the classic pain of trying to second-guess what the programmers were trying to do, what you know the stack needs to do, and using the woefully underpowered knobs to get it to do that. Problems that I encountered:

  1. Setting up the ability to watch the camera over the internet (not just locally)
    I credit the Foscam for the fact each camera actually gets its on unique hosting web address from Foscam.  That is slick.  However, getting it to work was a real pain.  Can’t remember all the details at this point, but check the forum for the common problems and solutions.  I remember I could easily control the camera locally on the network, but getting the camera to work through their web hosting was the pain.
  2. Setting up the auto-email on motion detection
    This was just a painful experience in bad software/firmware design.  Once you have #1 set up, it should be trivial to have the camera email you the pictures when it senses motion/audio.  The setup screen is fairly straightforward.  Type in the email address(es) you want the camera to mail pictures to; set the parameters for alerts (motion/audio events) and hit ok.  Well, I got these horrible problems where the camera would not save the settings.  I’d enter the data, enter the admin password to change the settings, then look at the info panel again and see the old settings.  Infuriating!  It turns out, the Foscam admin password CANNOT ACCEPT SPECIAL CHARACTERS.  If  you have any special characters in your admin password ($%#^!&*, etc) – then you basically just locked yourself out of changes.  I had to hit the hardware reset, pick a generic password, and only then did my changes stick.  Worse was that it didn’t tell you this anywhere or warn you when you were picking the admin password.  It would just act like it saved the settings, but not and merrily go on its way.
  3. Motion detection with still images is pretty much broken/useless
    When you use the email stills when motion happens feature, 1 out of 2 times the person is long gone by the time the shot fires.  I tested it a couple times, and you need a full 2 seconds of the person moving in the field of view before the shot is taken.  If someone just walks across the path of view, most of the time you get an email of an empty room.  I believe the recording of video option is better, but you better make the field of view big or place the camera such that it will have a full 2 seconds of the person moving in the target area before the shot fires.
  4. Auto-panning
    The camera had a nasty habit of going into auto-scanning paning/tiling mode when it got confused.  So you’d see/hear the little camera looking all over the place every now and again if you logged in or it reset itself.  I disabled the feature in software and it stopped.

Supposedly these are some of the better cameras out there.  But if that’s the case – then I’m disappointed.  It was worth it since it was nearly free to me; but if I’d paid the list price on this thing – I’d have been pretty upset and took it back.  It works great now; but the setup was painful and it’s poor auto-notification of motion detection give it two solid strikes.

 

 

XAMPP v3 and VMWare 8

XAMPP v3 and VMWare 8

Let’s say you want to install the latest XAMPP software so you can do some local wordpress/html work. But after installing XAMPP, you get this message when trying to start the Apache server:


4:33:47 PM [Apache] Problem detected!
4:33:47 PM [Apache] Port 443 in use by "vmware-hostd.exe"!
4:33:47 PM [Apache] Apache WILL NOT start without the configured ports free!
4:33:47 PM [Apache] You need to uninstall/disable/reconfigure the blocking application
4:33:47 PM [Apache] or reconfigure Apache to listen on a different port

In order to get over this, you must change the SSL port number that XAMPP Apache listens to (or change VMWare).  I found changing XAMPP was easier.

Here’s the steps:

  1. Close the XAMPP control panel
  2. Open http-ssl.conf using notepad in the ...\xampp\apache\conf\ directory
  3. Look for the line that has:
    Listen 443
  4. Change that port number to anything you want (i.e. 4430 worked for me)
  5. Search the rest of the document – replacing 443 with 4430 (or your port)
  6. Save the file
  7. Restart XAMPP and Apache should start up properly this time.
Battlefield 3/Origin client tray icon disappears

Battlefield 3/Origin client tray icon disappears

Sigh.  Had ANOTHER problem with Battlefield 3 recently.  More annoyance than problem, but the icon in the tray for the Origin client was showing up as a busted link:

The Origin program worked fine, but it was annoying because sometimes I forgot I’d opened it and having the ‘broken icon’ button on your toolbar isn’t exactly helpful for finding it.  I tried right-click setting properties.  Changing the icon to a different icon then back.  Removing the program and re-pinning it.  Nothing worked.

Then I found this link.  Basically, you need to destroy and then rebuild/repair your icon cache.  You do this via:

  1. kill explorer.exe
    taskkill /IM explorer.exe /F
  2. Deleting your icon cache files:
    del %userpofile%\AppData\Local\IconCache.db /a
  3. Reboot
    shutdown /R /f /t 00

Upon restart, your entire icon cache will get rebuilt (which could take awhile).  Mine took about 2-3 minutes during which the machine was almost unresponsive.  After that the icons re-appeared and all was well.

Link to script that does all this for you and further information.

Asus P8Z77-V PRO keyboard and mouse inoperative at POST – won’t let you into BIOS/RAID setup

Asus P8Z77-V PRO keyboard and mouse inoperative at POST – won’t let you into BIOS/RAID setup

I wasted WAY to much time on this absolutely poor product validation problem.

I have an old Asus P8P67 motherboard that I suspected had a bug with it’s RAID controller hardware/firmware.  I would nightly put the machine into sleep mode, but when I’d wake the machine from sleep the next day the hard drives would start reset clicking and timing out madly.  It was so bad, you’d get 2-5 second delays just trying to access a file.  But if you rebooted, even a warm reboot, the drive would stop its schizophrenic timing out and run smoothly.  Further, it was always the third drive in the raid, even though I’d hot swapped the drive several times and the drives would be flawless when not in the RAID set.

Fortuitously, Fry’s had a sale on the new P8Z77-V Pro motherboards.  However, when I installed the motherboard, I had a different problem.  The machine started up first try without a problem, and I set the SATA mode to RAID so I would get the ‘Press <CTRL-I>to enter configuration utility…’ BIOS message and set up the hardware RAID.  The funny thing was, the message would pop up and I’d frantically press CTRL-I, but to no avail.  It was like it was ignoring me.  I tried turning on USB legacy mode and other USB settings and noticed strange things with the keyboard lights not always coming on/etc.

So, what do I do?  In searching forums, I found that other people were having even worse problems.  Some couldn’t even enter the UEFI BIOS setup at all. When I got my machine to boot into windows, they keyboards didn’t work at all.  I try plugging in another USB keyboard. I have a Logitech G15 and a no-name generic one. Initially, no luck, but I do notice the behavior of the keyboard change. I would toggling the scroll/caps/num locks during BIOS setup and sometimes the I can see both keyboards toggle the light correctly, and other times do not.

I try all the different USB ports. The rear, onboard ones fared the worst. They never worked for the RAID BIOS. Even in windows, the keyboard and mouse would sometimes not work at all depending on which port I had them plugged into. The ones on back that seemed to work best? The top usb port above the green outlined USB flashback port. Still, I cannot enter RAID setup, but windows sees my USB device correctly at startup.

Now, I leave one keyboard plugged into that top port, and then start playing with the headers on the motherboard. I take the USB backplane extender and start plugging it into the headers on the board. You know what? Each one acts differently! However, when I have it plugged into the front-most plug, the one closest the reset/power switches – THEN IT WORKS! You can then press CTRL-I and it registers.

Strangely enough, once you get the machine booted, then all the USB ports work perfectly.  But not while you’re in POST.

All I have to say is HFS – this is BUSTED ASUS. I’ll be sending in a trouble ticket this afternoon. Please let me know if this works for you.

Punkbuster kicking you off in BF3/Battlefield 3?

Punkbuster kicking you off in BF3/Battlefield 3?

UGH.  I went through tons of this headaches back on Battlefield 2 with Punkbuster, and now it appears to have come up again on BF3.  I had been playing along for months without a single issue, but then re-installed recently when I reconfigured my machine. Then I started getting this dreaded message:

Game disconnected: you were kicked by PunkBuster. Stated reason: PunkBuster kicked player  (for 0 minutes) … RESTRICTION: Service Communication Failure: PnkBstrA.exe

The forums are full of people with this same issue.  Here are some solutions that pertained to my particular problem:

  1. Punkbuster didn’t even get installed.  You need to go to Punkbuster’s website, download the installer, and install it yourself.  Go here and follow the directions:
    http://www.evenbalance.com/index.php?page=dl-bf3.php
  2. Punkbuster isn’t getting updated automatically.  There are HTML ‘key’ files that need to be installed and updated regularly.   You need to select 7 different links and save them in the correct folders.
    1. The first is: pbsec.htm, it goes in C:\Program Files (x86)\Origin Games\Battlefield 3\.  Be careful!  When I first saved it from the link, it saved it as pbsec-1.html – that doesn’t work.
    2. Update the remaining 6 htm files like ‘PB Client v2.317 for Win32’ et al. go into C:\Program Files (x86)\Origin Games\Battlefield 3\pb\htm
  3. pbsvc.exe is missing(!).  One post mentioned that you could manually run C:\Program Files (x86)\Origin Games\Battlefield 3\pbsvc.exe and it would test everything for you.  I actually found this file was missing.  However, a copy of it was there in C:\Program Files (x86)\Origin Games\Battlefield 3\__Installer\punkbuster\redist\pbsvc.exe.  I copied it to the root BF3 directory and then everything worked.

Thanks again Origin for really making PC gaming a viable environment and reminding me why consoles have eaten half your gaming lunch.

 

 

WordPress adventures

WordPress adventures

So, in case you didn’t notice, I updated my website’s look and feel.  While I was at it, I upgraded to the latest version of WordPress (v3.4.1) from my pretty ancient version 2.? version I installed years ago.  My, how things have improved.  It all went pretty smoothly, but there were some good ‘gotchas’ that I wanted to make note of.

Tips:

  1. Start from a template – The best way would simply to take one of the supplied ones and start modifying – as they are considered the canonical reference designs.  I started from one from a great web design guy who has won numerous awards.  He provides his ‘blank’ theme as a zip, along with his handy and time-saving tips to get the job done faster.
  2. Don’t touch the php files until you’re at finishing touches!  Everything you probably do should be in the style.css file – Your temptation again and again will be to modify the HTML code in the header.php/footer.php/index.php/etc files.  DON’T do it.  Use the style.css code to do what you need.  Most of the templates have everything you need in them already – you just need to modify their appearance via their style.css information.  Reasons?  Most of the code in the canonical templates has been tested extensively on many different browsers and have stood the test of many trials.  Yours has not.  Anything in those files is forever static – no matter how your page is used.  Single.php is used in several places – and in different formats.  Futzing with anything other than the styles will likely break things.
  3. Do all your development locally.  Set up a local XAMPP server and develop your theme locally.  Get everything working right – then publish.  Saves you TONS of time and gives you experience installing wordpress.

Special notes:

  1. Syntax error, unexpected T_VARIABLEon 1and1 hosting– When I installed my new, pristine version of WordPress on my 1and1 hosting, I got this error.  I had done this before without issue, but then I found this forum discussion on the topic.  Turns out 1and1 hosting hadn’t updated their PHP version.  Add a .htaccess file to your root directory with only this inside :
    SetEnv PHP_VER 5
  2. This does not appear to be a WXR file, missing/invalid WXR version number when exporting/importing from old WordPress version.  I upgraded from an old 2.x version of wordpress to 3.4.1.  I exported just find and got a nice, big .XML file with all my posts in it.  When I went to import it though, I got that error.  Turns out the old versions didn’t put the version number in the file when exporting it.  I simply opened up the .XML file, and added the following line near the top.
    <wp:wxr_version>1.1</wp:wxr_version>
    Everything imported like a champ.

There were lots more notes, but I’ll save those for another time, as these were the big ones that took some digging around.

Can’t rip in Windows Media Player

Can’t rip in Windows Media Player

Oh – yet another way in which Microsoft has made my, and others’, lives much more easy.

Problem:
You open Windows Media Player, and try to rip a CD, but it won’t rip despite the fact you’ve done this dozens of times before.  You get the message ‘Windows Media Player cannot rip one or more tracks from this CD’.

You open Tools->Options->Rip Music.  You see that the ‘Rip music to this location’ is blank – so you click ‘Change’ to set it.  But nothing happens.  Click, click, click.  No dialog opens to allow you  to set the output directory.  Any time you try to rip the CD, you get the same error saying it can’t rip.  You try running the Troubleshooting app and reset all the user settings to default.  Still no luck.


Solution:

The problem is caused because the drive and/or directory media player had been pointing to no longer exists, and the change directory button doesn’t work IF THE ORIGINAL DIRECTORY OR DRIVE IS GONE.  Too bad you can’t change where it is pointing at.  Too bad you also can’t even see what it THINKS it should be pointing at to recreate it.  Guess you’ll just have to remember the path from memory.  Shucks – that’s great design.

You either have to re-create that directory (from memory) – or do THIS highly intuitive operation to fix it:

1. Start menu -> right click ‘Music’ and get the properties.

2. Either: see what directory has a checkmark by it and re-create that directory/re-attach the drive, or add/pick a listed directory that DOES exist – (i.e c:users”your user”)

3. Right click on a directory that does exist, and select  ‘Set as default save location’

Close and reopen media player.  This will solve the problem.  The fact that clicking on the ‘Change’ button doesn’t work is just fundamentally broke.  That needs fixing.  Also, fix the automated troubleshooter to actually reset the default location back to something sane too. The troubleshooter is broken as well.

Sigh.

Installing your new SSD

Installing your new SSD

Installing an SSD hard drive into my machine has to be the most transformative computing experience I’ve had since the introduction of Intel’s Core line of processors.

But there are important things to know about SSD and upgrading.  Sure, it’ll install just like any other hard drive, but they are not created the same way and need different tweaks on them.  Our operating systems are still geared and tuned for platter systems.  There has been many, many people tweaking and experimenting with a great number of setups.  Now, however, they are all starting to converge and say similar things.  Here’s a great link with most of the common details and techniques outlined:
http://www.sevenforums.com/tutorials/70822-ssd-tweaks-optimizations-windows-7-a.html
However, there are some important things I think are worth calling out:

  1. Your SSD has a finite lifespan based on how many times its *written* too – SSD’s only have the ability to write so many times to it’s memory cells before they degrade and fail.  Reading is free from this behavior.  This was much worse in the first generations of the drives – so buying used SSD’s means you’re buying a drive that has used more of it’s lifetime.  Buy used and older generation drives carefully (and at a big discount).   The most recent drives are not nearly as bad as first generation drives but your goal is still to *reduce* the amount of writing your drive.
    Don’t freak out though – Intel drives have 3 year warranties, use modern wear leveling algorithms, compression to avoid extra writes, have built-in block correction/replacement, and use modern processes so that you are now much more likely you’ll upgrade before a failure.  Still, using the drive as a constant write cache would be a bad idea. Most of the optimization strategies you read about are geared for the right balance of longevity and speed.
  2. Even ‘slower’ big SSD’s are faster than the fastest smaller ones.  While my Intel 180gb drive is in the top third of performance, it absolutely TROUNCES the perf of the fastest 64gb, and almost all the 120gb drives.  The bigger the drive, the faster it natively is.  Not sure why, but the specs show they are.
  3. Buy at minimum a 120gb drive – I recommend at least a 180gb.  You’ll find all kinds of folks that get Windows 7 installed in 30gb or under.  Yes, you can install Windows 7 on a 64gb drive.  But you won’t get much else on there and it requires lots of ‘fiddling’.  After years of doing this as a poor college student, I now hate fiddling.  I installed the OS with the swap file and most of the recommended settings along with all my core little helper apps (Winzip, Skype, PowerDVD, Office, Battlefield 3 (notoriously SLOW on level loading and big), and am just under 100gb before my final adjustments that should net me a bit more space.  I think that would completely fill a 120 as after formatting you only have a bit over 100gb.  I would have gone for a 256gb model, but they weren’t offering the nearly half-off super-discount on that one at the time. 🙂  If you buy anything under a 180gb you will probably have to ‘fiddle’ with it.  If you’re ok with that – knock yourself out.  It’s not worth $60 over 3+ years of ownership for me anymore.
  4. Plug the drive into one of the built-in Intel 6gb/Sata3 ports.  Some people report trouble/lowered perf with the ‘add on’ Marvell/AMD/etc SATA3 controller ports (if your MB has them).
  5. Upgrade to Win7.  Love or hate it, Windows 7 has lots of new tweaks and optimizations for SSD use.  If you use an older OS, you won’t get those optimizations, and at worse, maybe shortening the life of your drive.  What are those optimizations?  Things like using the page file linearly to minimize random writes, support for TRIM to combine writes/reads, etc.  Get the latest service packs + updates too.
  6. Install your OS from scratch on the new drive.  You can use a disk imaging tool to get things across, but it’s FAR better to re-install your OS from scratch.  Windows 7 has tweaks for SSD’s if the drive is detected during install that might not turn on if you just clone a drive.
    In addition, if you’re like me and have an original Win7 install CD, you can freely download a Win7+SP1 image instead which saves you at least 20-30 minutes of downloading and installing SP1 after the install.  You can find links to the unified packages below.  Simply pick the one that MATCHES the version you bought (or the serial number won’t work).  Yes, these are 100% legal because they are the 30-day trial versions that you unlock with your purchased serial number.
    http://www.w7forums.com/official-windows-7-sp1-iso-image-downloads-t12325.html

    http://msft.digitalrivercontent.net/win/X17-24395.iso   <-  Win7 Ultimate x64 (for me!)
  7. Use the SSD for OS and ‘core’ apps you use – put other programs and data on a platter drive.  Even the biggest SSD’s are not big enough to hold the hundreds of megabytes of stuff most of us have.  A good balance of minimizing writes and extracting speed a lot of people have worked out is to install the OS and apps you use daily on the SSD, then install everything else and data to the platter drive. This requires the annoyance of paying attention to what drive letter/path to install to when installing your apps – but you only have to do that once (thankfully).
    The bigger question is data.  People that do video editing/photoshop/etc generate tons of big files that results in lots of writes to the drive.  That can be huge slowdowns in their workflows, and prime candidates for using on the SSD.  But it also means lots of writing to big sections of the drive.  I would almost recommend a second SSD for that work so if it fails, you don’t end up with an unbootable machine.  Most people should be fine with keeping their data on the platters, but do as you need and keep good backups if you do use the primary drive for data too.
  8. Optimizations after OS install– after you install, here are some of the more common things you should do
    1. Install the SSD drive management software – these packages often have system tuners that automatically check that the OS is set up for optimal performance.  Run them.
    2. Update the firmware on your drive – check for firmware updates regularly.  The Intel management software actually does this checking for you.  Many bugs, perf problems, and issues can be solved by simply making sure your drive is updated to the latest firmware.  Be careful though, some updates require the re-formatting of the drive.
    3. Disable drive indexing – results in lots of background disk access/writes that are not really necessary on SSD’s
    4. Disable automatic defragging – drive defragmentation is ON by default and is 100% not needed by SSD’s which have no concern about physical location of data on the drive.  In fact, it does nothing but result in tons of extra writing that shortens the life of the drive.
    5. Page file – This is a swap space for active memory.  Some turn this completely off, or put it on another drive.  The current thought is that you should shrink this down to about 1-2gb if you have 8gb of ram (or more) and leave it on the SSD.
    6. Superfetch/prefetch/bootfetch – these result in extra writes to the drive, and really aren’t needed since SSD’s are so fast.  Consensus is turn them off and see if that’s ok for you.  If you see slowdowns, then turn them selectively back on.
    7. Log files – you can turn off some of the copious amounts of logging windows does (and turn it back on if you have troubles later)
    8. Enable Write caching – I bought a $50 UPS for cheap and then turned on write caching.  This lets the system use main memory to cache up reads/writes before committing to the drive.  Besides reducing writing – I saw a good 10-20% speed up from enabling this on my platter drives.
    9. Change the location of temp files for your OS – you can change the location of temporary file generation to a platter drive to help reduce writes, but it will likely slow down installs or anything else that generates temp files.  I’ve left mine on the SSD for now. We’ll see how that goes.
    10. Change the location of temp files for your browser – you can change the location of the copious temporary files generated by your browser too.  I have a unique technique I outline in my previous posting below.

So, those are some high-level tips.  Go to the link for detailed instructions and discussions for these steps.

I have an SSD in my laptop, and now one in my desktop.  The battery life improvements on my laptop were awesome.  The bootup, shudown, and app start time are nearly instantaneous on both – simply stunning.   It’s like using a brand new kind of machine.
I would recommend a SSD to anyone that wants to really improve their home PC/laptop experience.  It really is the wave of the future that is settling in the market now.  Once they get the capacities up to 1TB, keep up the great improvements in drive longevity, and get the prices down (all things that are happening with each new release) – there will be no reason to own platter drives beyond wanting huge, slow bit buckets.

Moving your browser cache to a ramdrive

Moving your browser cache to a ramdrive

So, memory is dirt cheap right now. Crazy considering the prices just 2 years ago. I started with 8GB in my machine, then upped it to 16GB.  The reality has been, sadly, that I haven’t really seen a speedup or perf improvement from that extra ram as I rarely seem to use over even 8gb of memory.  Think my max has been 12GB so far.  It’s not really wasted as Windows 7 Prefetch is populating it with programs in the background – but that’s not super- interesting now that I have an SSD drive.  However, I do want to save my SSD from lots of browser cache writes.  What if I told you that you could do that, speed up your browsing by about 20% AND keeping you more secure. How?  By moving the browsers cache to a ramdrive.

Benefits:

  • Speed – reports are anywhere from 20%-100% speedups
  • Privacy – When you shut down and the ramdrive goes away – your entire browsing cache and cookies are irrevocably erased unless you persist/restore it from a regular drive.  No tracking cookies or other nasty junk is left around.  No need to ‘safe delete’ files.
  • Security – I’ve also already seen where this method caught a pop-up virus because when I rebooted and the app tried to install itself during the bootup cycle, the payload that was in the cache was gone and I caught the installer’s error message.
  • As long as you’re mostly hibernating/waking and not rebooting, the cache stays active and in memory.
  • Free and automatic once set up with about 5 easy steps
  • Some browsers are building this method into the browser itself
  • If you want to persist the cache between reboots – you can with a simple checkbox select.

Downsides:

  • Unless you persist/restore the ramdrive to a regular drive, you have to rebuild the cache each time you reboot.  First browsing on a page requires the reload of all the data.
  • Could potentially slow down your entire system if you are running short of memory
  •  Requires an initial setup

So, how do you do it?  The detailed instructions are on the linked websites below, but I’ll summarize here in case those instructions go away.  This is for firefox, but works for all other browsers too.

  1. Download DataRam Ramdisk and install it.  Amazing little ramdrive program that works on x32 and x64 Windows systems all the way up and through Windows 7. Great GUI frontend, does everything you expect, super stable, restarts on boot automatically.
  2. Open the Ramdisk configuration utility after install:
    1. Select the Settings tab
      1. Set the size to anything from 500-1500mb
      2. Set the file system type to Fat32
      3. Check the Disk Label checkbox and make sure the drive name is ‘RAMDisk’
    2. Select the Load and Save tab (optional step if you want the cache to persist between boots)
      1. If you want the browser cache stored and reloaded when you shut down the machine, select ‘Save disk image on shutdown’ and ‘Load disk image on Startup’.  Make sure they point to the same image file.
      2. I don’t do either of these as I want my cache to go away.  Loading/Saving the state will also increase both your bootup and shutdown times.
  3. Open Firefox
    1. Type ‘about:config’ (no quotes) in the address bar
    2. Hit the ‘I’ll be careful’ button
    3. Right click – select New -> String
    4. Type ‘browser.cache.disk.parent_directory’ into the box and press OK
    5. Type the path of your BrowserCache directory using the drive letter of the Ramdrive i.e. ‘R:BrowserCache’
    6. Close all open Firefox tabs and windows
    7. Reopen Firefox, open any webpage, and see if there is a new directory called BrowserCache on your ramdrive.
  4. Fix the drive letter on reboot.  Ramdisk has an annoying feature.  On reboot, it’ll assign the Ramdrive whatever random drive letter is available.  Obviously, this breaks the cache directory assignment in Firefox.  You’d need to update Firefox each reboot to point to the right drive.  Totally unacceptable.  DataRam’s Ramdisk doesn’t allow you to specify the drive letter of the ramdisk.  Totally unacceptable.  But – you can get around this by having a script move the drive letter during bootup.
    1. Copy the below code, then use notepad or other text editor to save it in a file called C:RamdiskRename.bat
    2. Press Win + R (or find “Run” on start menu), a “Run” dialog will appear. Enter “gpedit.msc” and select the “gpedit” in Programs list.
    3. In the left pane, click “Local Computer Policy” -> “Windows Settings” -> “Scripts(Startup/Shutdown)”  then on the right side, click “Startup”
    4. In the pop-up dialog, On the “Scripts” tab, click “Add…” and add the “C:RamdiskRename.bat” to the list. Click “OK” to finish.

Thats it!  To test it, reboot your machine, and you should see the ramdisk always at R.  When you open the browser for the first time after a reboot, you should see the cache directory appear in that drive. Using the Chromium benchmarking tool, the original author found that page load times were reduced by around 20%.  Shutting down and restarting the browser is also a lot quicker.

Links:
http://downloadsquad.switched.com/2010/11/10/how-to-move-the-firefox-or-chrome-cache-to-a-ram-disk-and-speed/
http://www.zomeoff.com/fixing-the-drive-letter-for-your-ramdisk-a-simple-solution-to-dataram-ramdisk/

RamdiskRename.bat:
@echo off
:: Settings
SET _ramdisklabel=RAMDISK
SET _ramdiskletter=R:

:: Get ramdisk disk number in diskpart
echo list volume > %systemdrive%ListDrives.tmp
diskpart /s %systemdrive%ListDrives.tmp > %systemdrive%DriveList.tmp
FOR /F "tokens=2-4" %%a IN ('type %systemdrive%DriveList.tmp') DO @IF /I "%%c"=="%_ramdisklabel%" @set _ramdisknum=%%a

:: Create drive change script
echo. > %systemdrive%ChangeDrive.tmp
if DEFINED _ramdisknum (
echo select volume %_ramdisknum% >> %systemdrive%ChangeDrive.tmp
echo assign letter=%_ramdiskletter% >> %systemdrive%ChangeDrive.tmp
)

:: Run diskpart using the new script file
diskpart /s %systemdrive%ChangeDrive.tmp

:: Delete the script files
del /q /f %systemdrive%ListDrives.tmp
del /q /f %systemdrive%ChangeDrive.tmp
del /q /f %systemdrive%DriveList.tmp

exit /b 0