Bob Nedved

Ramblings from the original Web Geek

In this two part video I show how to disable all facets of "resume" in Apple's latest iteration of OSX - Lion. Resume is a novel idea on a cell phone, but I find it rather annoying on my desktop and laptop PCs. Per app resume usually means that I am opening copies of apps in a cluttered state that isn't necessarily productive, and reboot resume means I can't even reboot to get back to a clean workspace. If I want to leave my computer in a state of suspended animation, I can use Sleep - I don't prefer it to automatically treat every scenario like sleep.

 

In part one of this two part series, I show how to disable per-app resume functionality:

 

 

In part two, I demonstrate how to disable full system resume on restart/reboot:

 

 

This second method involves updating a system file. It's relatively low risk, but as always - you assume all risk involved with updating settings on any system files. I've been using this for a few weeks now with success - your mileage may vary - don't shoot the messenger :)



So, for the past couple weeks I have been baffled - every time I try to update apps on any of my Macs, the update fails and I am presented with a dialog box that says "To update this application, please sign in with the account you used to purchase it".

One big problem - I already was.  I only have one iTunes account.

So.. yesterday, I decided to monitor the console - in doing so, I noticed that each time I tried to update, I saw an error with mds - a spotlight derivative.

Interestingly enough, all of my mac machines use SSDs.  Because they use SSDs, I have made several enhancements to my machine to prevent excess drive writes (to prevent un-necessary wear on the SSD).  One of the common "Enhancements" I make is to completely disable spotlight, and also add my main HDD to the list of locations NOT to index.

So, I wondered if this could be causing the issue.  I re-enabled Spotlight, and removed my drive from the blocked locations.  I waited for a while to allow spotlight to finish indexing (the magnifying glass icon in the upper right corner of the finder will have a "dot" in it while it's indexing".  Once it finished, I reopened the App Store and guess what - everything worked fine.

Apparently, the app update process requires spotlight.  Maybe this is done to "find" apps in the event that the user has moved it from it's original location?  Not sure, but - for now I'll leave it enabled I guess.  

If you're having trouble, too - follow these steps and things should start working again!



 

As I have mentioned on this blog more times than I care to remember, I'm a bit of a geek.  I love tech, love making tech work well, and love integrating tech into anything where tech can be integrated.  One of the places I have decided to integrate as much tech as possible is in my home.  This is not unique, most homes nowdays are getting exceedingly complex, simply because the range of "cool" devices for the home is growing.  In fact, home networks are sometimes as complex as a small business or small corporate networks.  

Unfortunately for most people, integrating tech into their home means huge expense, because the only choices are to buy (more expensive and generally poor performing) wireless devices, or to retrofit a finished home with wiring to support the necessary infrastructure.  Retrofit usually means tearing apart walls, rebuilding walls, and trying to snake cables through existing walls.

Knowing the pain that this causes, when I was building my house 8 years ago, I wanted to run tons of wire to support anything that I could dream up.   Technology 8 years ago wasn't anywhere near where it is today - but I knew it would get there, and I knew awesome hardware would only come down in price.

For starters, I wanted multiple three way jacks in every room of the house - each containing two pieces of CAT-5e (For phone and gigabit ethernet, or dual gigabit ethernet) and a piece of quad-shield RG6 (for cable TV).  I also wanted to run speaker wire in the living room for surround sound, and speaker wire into all of the bedrooms and the ceilings of the bathrooms.  Additionally, I wanted to install my own alarm system - I didn't want the cookie cutter piece of crap my homebuilder offered - I wanted an alarm with the features I wanted, the sensors I wanted, and wanted it all installed the way I wanted it installed and where I wanted it installed.  Finally, I wanted to run some power wire and RG-6 to several points on the outside of the house so that I could easily install a surveillance system.  At the time, that seemed nutty - but today they are so reasonably priced, I'm glad I ran the wire long ago.

Keep in mind, I decided to build this house when I was 26 years old.  I knew that I wouldn't be able to afford everything right away - but, wire is relatively cheap.  Wiring a newbuilt home is especially affordable when you can run it yourself before the drywall is installed and pay your friends to help with a couple of cases of bud light =).

So... I bought almost two miles of wire.  More quad shield RG-6, CAT-5e, Speaker Wire, Power Wire, and other miscellaneous wire than you could possibly imagine.  Enough wire that it took me two trips in my 1993 Eagle Talon hatchback (with the seats DOWN, mind you) to get it out to my house.  Now, if you saw my house - you'd wonder where in the hell all this wire was going to go.  I live in a modestly sized home (1700-ish square feet) on a slab.  It took an entire weekend - but I ran nearly all of that wire - even to places I didn't know if I would ever need it.

Flash forward 8 years to today.  Nearly every wire has been properly terminated and is active and available for use.  I use business class networking gear and firewall and have a 50 megabit internet connection.  My surveillance system is active and can be monitored even when away from home.  The alarm is exactly the way I wanted it, my home entertainment center is modest but all of the wires are hidden, and all of the rooms upstairs have volume controls and in-wall or in-ceiling speakers.

So - it's done?  No way.  "Done" is not in my DNA.  I continually upgrade and replace hardware, and sell my old goods on eBay to keep the tech fresh in my house.  As my network has grown and gotten faster, it's reach has gotten further (external devices remote from my home), and it has gotten more complex - I decided it was time to start monitoring it.

This is especially more important to me now that some internet service providers are starting to monitor their users and apply caps.  My ISP is not one of those, but it really has myself asking "how much bandwidth do I use?".  Most of my services in my house (netflix, xbox live, vonage, etc) all consume bandwidth just to operate - and to me, these are very much all "black box devices" and I have no idea what they are using.  So I have decided to start a series of articles describing the answers to this very question.  So to start off, I wanted to describe my home network and how I'll be monitoring it with an awesome piece of software provided to me from Paessler called PRTG Network Monitor.

So - below you will find a diagram of the majority of the devices in my home - not everything is on this particular diagram, but the most important bits are:

Crazy eh?  Yeah - I didn't realize how much crap I had until I set out on this trek to start monitoring everything.

So, from the outside world, my home is connected to the internet via a 50 megabit cable connection through a Motorola DOCSIS 3 cable modem.  This connection offers a pretty stable 50 megabits downstream and 5 megabits upstream - more than enough to supply my media devices with the media they need, allow me to VPN into my network to use my resources or monitor surveillance from remote if needed, and provide some extra speed so that surfing the web doesn't slow to a crawl just because I'm watching netflix.

The motorola cable modem meets my home by way of a Cisco ASA 5505 firewall appliance.   From here, access is split through the house via two Gigabit Cisco SRW2016 business class switches - one in the computer room, and another downstairs.

All of the desktop and laptop computers in my house are really focused on performance - they all have SSDs for their boot drives, and on laptops - this is the only drive.  They have a minimum of 8GB of RAM, and powerful processors.  Since space comes at a premium on SSDs - none of my laptops and desktops contain anything more than temporary data.

So where is all of the data?  It's on the server.  The main machine that is the centerpiece of the home is a dual quad core Nehalem Xeon server with 4TB of RAID5 disk space, 24GB of RAM, and dual gigabit ethernet adapters.  This contains a basic O/S install that houses a few fileshares and a copy of VMWare server.  VMWare runs five seperate Virtual machines - a Domain Controller, a Subversion Server, a Web/Email Server (internal only - used for development testing), a generic Windows XP Snapshot VM that I use whenever I want to "test" a piece of software and then revert to a clean image, and a newly added PRTG Network monitor machine.

The rest of the devices in the home are either wired or wireless, but are mostly either network appliances or network connected media devices, printers, or other simple systems.

So - that is a quick introduction to what is going on in my world.  This network started with a single domain controller and two laptops and over the years has evolved into this behemoth.  This network not only keeps me entertained at home, it also supports my livelihood.  Being a professional developer by trade, this network often serves as an important test bed for products or technologies that I am working on.

As you can see, without a proper monitoring solution - outages or breaks in my network can be as hard to find in my home as they would be in a small corporate network.  Keep in mind that networks like mine are becoming more and more commonplace in homes as even the most mundane devices are given wireless network access.

Over the next several months, I am going to be posting several articles ranging from the installation and configuration of PRTG Network Monitor (in my experience, the best network monitoring product you can find, bar none), to real world findings as I continually monitor the network I just described.  Specifically, I am interested to see exactly how much data I use over a month, a quarter, and a year with devices like AppleTV, XBox, Vonage, etc.  It is by monitoring my usage that I hope to put some sense behind the bandwidth caps that some ISPs are enforcing nowdays.

Now - keep in mind, I don't torrent, I don't host a website or e-mail server in my home, etc.  Regardless of how crazy my network configuration seems - my usage model is pretty standard.  I'm hoping that my real world results will equate similarly with that of many of my readers, and I hope you will find it interesting.

Next up - I will be discussing installation and configuration of PRTG Network monitor.  Stay Tuned!

 



There appears to be a ton of hubbub on the internet regarding the 27" iMac, Snow Leopard, and terrible performance when using Flash.   As with most reports, this has begun to spin out of control and it seems like the blogs of the world like gizmodo and macrumors are jumping on the story.

Well...  one thing the "informed" reader would notice is that NOT everyone is having this problem.  Being a software developer, the computer geek that I am, and also the skeptic that i am, I don't believe in one-off issues.  Usually, there is a repeatable pattern that leads to widespread issues - if everyone isn't having the problem, it's more unlikely that it's the hardware causing the issue (barring manufacturing defects).

So... I decided to test this issue.  Guess what - at first I thought I had a problem...  In fact, I noticed that typing in any application could be downright slow, and sometimes would lag many characters behind what I had typed.  Looking at my handy dandy iStat monitor - I saw that the finder was spiking up and down in processor usage... as low as 0.2%, as high as 104%

So then I think to myself... what the hell could be causing this?  Being the pragmatic fellow that I sometimes am - I decided to start disabling some of the handy dandy utilities that I had running in my menu bar, and anything else that I have installed that might be running in the background.

One by one I shut off utilities - smcFanControl, my DropBox menu bar icon, etc.. etc... But performance still suffered.  So then i did it - I shut off and uninstalled iStat.  Guess what, shortly after shutting off iStat - my computer seemed to speed up.  I popped up a terminal window, ran "top" and sure enough - finder usage returned to normal (less than 1%).

The moral of the story... if you're having problems with your new 27" iMac - look at the software you have installed and running.  Chances are you're using something that might have worked fine in Leopard, but is not ideal for Snow Leopard.  Now... I was using the latest version (2.0) of iStat - which says it works for Snow Leopard - but.... something tells me this is not the case.

I am assuming that for many, this is the same case.  Many people are saying "Well, my 20" iMac works Great" - but chances are their 20" iMac ran Leopard, and they installed all of their leopard tools on their new Snow Leopard based iMac....  which is not a 1:1 so far as compatibility is concerned. 

Until they can prove to me otherwise, my beloved iStat is not installed on my iMac - and everything is running wonderfully.

The moral of the story here - If you are suffering from performance issues on new hardware, test again on a bare environment before you go blaming the hardware.  I'm not saying that there definately are no problems with the new iMac - but I do believe there is enough "different" about it's config and it's O/S that perhaps something you are doing is causing the issue....   Unless everything is constant, "It always worked on my old machine" is not a valid statement.

 



So - I decided that i wanted to install Windows 7 ultimate on my beautiful new 27" iMac - partly because Windows runs great on Apple hardware, and partly because I know that somewhere out there, there is an Apple die hard that just choked reading this ;).  If you've read my blog before - you've seen some pretty crazy configurations (My Mac Pro, for example, is a 4 O/S beast that runs beautifully - and I did everything gracefully, and without any of the bullcrap that the so called "Mac Geniuses" say you will run into....  Macs wont run 64-bit this, you have to update EFI tables that....  it's all horseshit (pardon my french).  Macs are pretty much plain vanilla PC's when it comes to their innards - and with a little greasing, things usually install nicely - if you know what you are doing.  Unfortunately, it seems that most people who use Macs - including the majority of the "geniuses" at the apple stores, and the "top posters" on the apple forums, blindly lead people down un-necessarily difficult paths because they simply don't know what they're doing.

Enter my blog....  I've already given you a path to create your own quad booting Mac Pro behemoth.....  and now I'll do the same for the new iMac.  Let's install Windows 7.  I'm not going step by step - I will assume that you have seen boot camp before and I will just cover the issues you will run into because a) I like quick, concise blog posts and b) it should still give you the information you need to be successful.

So, anyways, much to my dismay, I start by using the Boot Camp utility to partition off a 300GB Windows partition, and let it reboot into the Windows Installer.  I go through the W7 intro screens and pick the new installation pathway through the installer.  The first thing I notice is that W7 says that it cannot install on the boot camp partition because it's not formatted NTFS.  No biggie, click the boot camp drive, click advanced, and then click format.  Presto!  the error goes away so I happily click next and start the install process.

The copy process took about 15-20 minutes it seemed - but I was not watching the clock so I might be a little off there, but it didn't seem to take very long.  Before you know it - you will see a message saying that your computer will reboot, or, if you're not paying attention - you'll be blown out of your chair by the apple startup sound which, thanks to an excellent speaker setup in the new 27" iMac, is more annoying than ever (might I suggest you click here if you find the sound annoying too?).  Once the computer restarts, you'll see the installer load back up, finish adding a few more drivers here and there, and copy some more files, and then it will reboot again.

Uh-Oh.... here is where the trouble starts.  When you reboot - you'll see the "Starting Windows" screen with the interesting new microsoft animation, and then your screen goes blank.  What?  What happened?  Do i wait.  Well - you can, but let me tell you - I was doing some other things so I just let the iMac sit - and 45 minutes later, the screen was still blank... so... something is "effed-up".   So - what to do now?

I won't go into details of how i discovered this, because most people just want the solution - so here it is.  Once your computer craps out at the black screen, shut it off by holding down the power button until you hear it click off.  Wait a few seconds, then boot it back up.  You should still have your windows CD in the drive, and when the EFI bootloader launches Windows, you should see a screen that says "press any key to boot from CD/DVD" - do it.  The little wireless keyboard sometimes goes to sleep - so hit enter a few times until you see the plain "Windows is loading files..." message with the ugly ASCII text progress bar.  If you see the "Starting Windows" animation with the windows logo - you missed it.... reboot and try again.

This will basically take you back into the Windows installer.  This time, you're not installing, however - you want to get into Repair mode.  Follow the prompts and click through to Repair mode until you are prompted with a screen that has several options.  One of these options is "Command Prompt", pick that.

This will drop you to a good ol' DOS command prompt - I cannot remember the path it defaults to - but you'll see a line that looks something like "X:\Folder1\Folder2>" where X is the drive letter and Folder1/Folder2 is your current location on that drive.  Without the quotes, type "C:" and press enter.  This will take you to your C: drive - the drive which Windows is installed upon.  Now, type (again, without the quotes) "del c:\windows\system32\drivers\atikmdag.sys" and press enter.  It should say "1 file(s) deleted".  Peachy.  Type "exit" and press enter to exit the command prompt, and then click restart.

Now, your computer will go to the "starting windows" screen, and will advance to another graphic that says your computer is being prepared to be run for the first time - congrats - you've gotten past the black-screen-o-death.  Basically, what is happening is that Windows is detecting ATI graphics hardware in your shiny new 27" iMac, but it's installing an older ATI driver that is not compatible.  Once you get to the part where it tries to initialize the display - it hangs up.  When you delete this driver, you default it back to the standard plain vanilla VGA driver and things will progress smoothly.

Once you get logged in, insert the Mac OSX Install Disk into the DVD drive and wait for it to be recognized.  Click the start button, then my computer.  Double click the D: drive (it will say "WindowsSupport") and allow boot camp to install all of the drivers for your machine.  You will most likely get a couple of times where the install will stop and ask you if you want to allow the software to make changes to your machine - of course, confirm this action.

When Boot Camp is done, your machine will need to be restarted.  Go ahead and restart, and then immediately run Windows Update by clicking it from the start menu.  This will install the CORRECT ATI drivers for your video card, and then your display will be available in it's full glory.

Enjoy!

UPDATE 11/21/2010 - Some time ago, Apple has also created a support article regarding this issue - their solution is slighly simpler - http://support.apple.com/kb/TS3173



About the author

Entrepreneur, computer enthusiast, all-around-geek ;)  In my most current role, I am the founder of GeekUtils, a small company specializing in mobile application development.

I have over 20 years of experience working with All flavors of Windows, DOS, several varieties of UN*X, and, most recently, Mac OSX.  I love to tinker with hardware, build kick ass systems, optimize performance, and develop new solutions.... come join me, won't you?

Sponsored Link

Sponsored Link


Bandwidth  Monitor

Help Fight Diabetes

Sign in