Fix Firefox 25 Find-in-Page Bar

If you find the new Find in Page bar (cmd+F (Mac) or CTRL+F (other) ) a bit… ugly… with it’s right aligned buttons, here’s a fix that puts them together, makes the search box a bit wider, and adds some highlights when the buttons are “enabled”.

Create or change directory to (for Mac):

~/Library/Application Support/Firefox/Profiles/<Your Profile Name>/chrome

and create or edit userChrome.css

put this in userChrome.css:

/* adjust the width of the text field */
.findbar-textbox { width:30em !important; }

/* add a background color to the checked Highlight and Case sensitive buttons */
.findbar-highlight[checked]>label { background-color:#ff8 !important; }
.findbar-case-sensitive[checked]>label { background-color:#f88 !important; }

/* more possible tweaks */
/* Quick find - show buttons */
.findbar-container>*,.findbar-container>hbox>* { display:-moz-box; }

/* move spacer to a position before the close button */
.findbar-container>spacer { -moz-box-ordinal-group:2 !important; }
.findbar-container>.findbar-closebutton { -moz-box-ordinal-group:3 !important; }

@-moz-document url("chrome://browser/content/browser.xul") {
.findbar-container spacer { visibility: collapse }
.findbar-container .findbar-closebutton { -moz-box-ordinal-group: 0 }

@namespace url(""); /* only needed once */

/* add text to Previous and Next buttons */
.findbar-find-previous label:after { content: "\00a0 Prev"; }
.findbar-find-next label:after { content: "\00a0 Next"; }

.findbar-container>spacer {display:none!important}

Create a bootable USB drive from a DMG file on a Windows box!

Need to reinstall OS X from scratch?  Current install dead and only have a Windows machine handy?  There may still be hope!

Reported to work as of 2013-08-19:

Use TransMac. 15-day trial period and works flawlessly. In the left pane, right click USB Drive >> Format Disk >> Format with Disk Image (see attached screenshot). Point to your .dmg file and click Open.

It will take a few minutes depending on size of .dmg and speed of USB drive, but once done you can pop it into your mac, hold down the option key when turning on the mac and choose the USB drive.



Find files which will likely be included in your next (Time Machine) backup

Sjors in the ##apple IRC chat room on Freenode came up with a simple script to find large files which are newer than your latest backup:

sudo find /Volumes/Data -newer /Volumes/BACKUPDRIVE/Backups.backupdb/smbp/2013-02-16-044144 -and -ls | awk '{ if ($7 > 1024*1024) {print $11 $12 $13 $14 $15 $16 } }'

/Volumes/Data = your primary drive which will be backed up.
/Volumes/BACKUPDRIVE = your mounted (USB, Firewire, etc) backup drive.
/2013-02-16-044144 = change to match the latest backup folder you see.

Apple, Jobs, and Forstall

The five years prior to his passing, Steve’s biggest dream was being pushed and pushed hard; billions were poured into Hardware Engineering, some of the best minds in RISC and GPU silicon design were poached from all areas of with no care for the expense.
Gaining PA Semi and then Intrinsity gave them a massive, very talented pool of silicon-level engineers, with former SPARC and iTanium designer Dan Dobberpuhl a major jewel in the engineering crown; Michael Papermaster from IBM’s POWER division was another.
The rot began when Dobberpuhl found out that Forstall had contracted Samsung to be the first fab for his team’s A4 SoC — he left campus instantly, not even bothering to empty his desk or say goodbyes.
Steve’s big dream — of having Apple branded information appliances that were 100% Apple, from the processor out — was being knobbled by an over-eager, uncontrollable Forstall.
THe iPhone 5’s A6 SoC not only featured hand-optimised logic, but utilised a non-spec instruction set, with the blessing of ARM Holdings. The first real field trial of a custom, competition-killer CPU was essentially hamstrung by Forstall, who being so insanely eager to see “his” product out there, jumped the gun by four months and again contracted Samsung to fab the A6.
Tim, not being technosavvy, went along with the proposal, not realising until later exactly what Forstall had done. Samsung are thieves, pure and simple.
Key design aspects of the A4 and A5 SoCs very quickly showed up in a new line of ARM-based “Exynos” SoCs from Samsung.
One does not bust a ball-sack pushing people beyond the limit to create a competition-crusher, only to hand the entire design over to your arch-rival on a silver fuckin’ platter!
THe Maps fiasco was the public reason for Forstall’s exit, but those on campus know the truth
Chipworks (the people who sonicx-blasted the top off an A6 so we could see inside) were the ones to draw attention to the raaaaather uncanny similarities in the power control circuitry of both the A4/A5 and the Exynos.
Dobberpuhl knew full well that Samsung can never be trusted with key IP, so he just up & left rather than having another minute of his genius stolen by the cunning Koreans (again).
The other key damage (although not really seen as such at the time) to His Arrogance’s legacy was to re-timeline the entire ARM project, which was done mostly for the saefty and continued mental health of his employees.
Jobs must have known his time was short and he pushed *HARD* on everyone associated with it. 15-hour days were not just common, he *expected* it, because he did.
And (for the coders and designers and engies and all the others who actually do the making of the things) it was nerve-wracking to know that His Arrogance could appear at your shoulder at any time and the first you knew he’d been standing there watching for five minutes was a hand pointing at your screen along with the words, “We don’t do that here. Get rid of this, take that out.”
Steve Jobs was a ruthless, hyperfocused, pottymouthed, arrogant sonofahounddog, but what made today’s Apple was his ability to wield a multi-billion-dollar company like a thousand-stringed scalpel to hone and whet and shape *his* vision, and let absolutely nothing get in his way.

Rechargeable Battery Do’s and Don’ts

Tips and charging suggestions for  Lead acid, nickel-based, NiCd, NiMH, Lithium-ion batteries.

Apple Notebook battery maintenance and energy consumption

Laptop battery health tips:

Nominally, LiIon and LiPo packs should be completely drained, and then recharged without using the machine until fully charged, once every 6 to 8 weeks.  This ensures the best possible longevity for the individual cells of the pack.  Not using the machine after a full drain, until it is full charged, is important.  It is because of how the machine is running from battery constantly; by not running it, the cells are given a smooth, constant recharge current, instead of being interrupted every few minutes as each circuit is engaged for use.


When you get the “Help! I’m running on emergency reserves!” alert, you have 2 to 5 minutes to save everything and shut down cleanly.  Say you have a 2010 15in MBP. The pack houses two circuits of 1.2V cells. Each circuit is capable of supplying up to 120 watts of current. The MagSafe for that model only supplies 85W max.  Every few minutes, the controller switches the active circuit over so that the cells being topped up become the active source. It’s like a see-saw.  With each swing, each circuit gets a progressively higher level of charge, until both reach maximum.

Expected life-span of any lithium-based battery pack in a modern laptop, provided regular full charge cycling is done, is three years.    Because most users never cycle their battery-pack properly, the actual average life of a LiPo pack is sixteen months.  Machines which are left on mains supply (AC power) adapter  almost permanently end up having the shortest life-span of all.

Also see: