riskinit.com logo
Technology is the term we use for things that don't quite work yet.
10.4-10.5 Updates Graph
10.4-10.5 Updates Graph

Some totally useless statistics…

Apple released the 10.5.5 update the other day and while debating whether or not to run the update I threw together this graph. It’s basically the number of positive/negative comments on MacRumors for each point release of OS X from 10.4 and 10.5 to-date.

Anyway, while not the best reception for a release, 10.5.5 is tracking to be pretty average (46% being average and 10.5.5 at 50% as of today). I’m still at 10.5.2 as I skipped 10.5.3 because of the complaints and then just forgot to update since everything has been running so smoothly. It’s interesting to note the bad run from 10.4.6-10.4.9. I wonder if there were internal issues at Apple at the time or something to correlate it with.

Note: the 10.4.8 story was combined with the 10.3.9 release for whatever thats worth.

WordPress 2.6

9/14/2008
Wordpress
WordPress

So, I finally decided to clean up this site and upgrade WordPress. Unfortunately, that took lot more effort than I ever anticipated. Apparently, 2.5 was a major restructuring of how things work. That would be fine for the average user but I’ve made many customizations and optimizations over the years and it took quite a bit of recoding to make it work in the new system.

The good news is that the new system has a much better layout for customizing pages that I can see will make upgrading in the future much easier. Everything seems isolated in the themes folder under your specific theme. I still have a few things that I should probably clean up in the main directory but, I’m already 20 hours or more in and I don’t feel like coding anymore. At least comments, rss, etc… are all working again. Although, there will probably be a few missing layouts…

HTPC Setup
HTPC Setup

So I thought it might be a bright idea to illustrate what has to be one of the more over complicated HTPC (Home Theatre PC aka. PVR, Tivo thing, etc…) setups ever, mine… Ok, probably not, I’m sure plenty of people have crazier setups. But, it does surprise me how reliable it has been, even with so many computers involved. So how does it work? Magic! Ok, maybe not but something like this…

SageTV controls most of it. But, after trying numerous 1394 (a.k.a. FireWire) cards I never managed to get Windows XP, the Scientific-Atlanta SA-3250HD STB, and Charter Cable’s crappy signal to get along. Magically (Apple did create the standard for 1394) it just works without anything special on a Mac. So, FireWire is plugged in to the Mac, Sage TV controls it, all HD and digital channels go through the Mac and get recorded to the main media server/raid as raw MPEG-2 TS (transport streams). SD signals get recorded directly to the RAID through a Hauppauge PVR150 in the Windows box. All channels SD and HD are controlled through the 1394 (no infrared blaster silliness).

The great thing about this set is you get pure digital recording and playback all the way to the display. Digital cable -> Firewire digital files -> HDMI TV. The only other systems that work like this are DirectTV TiVo, some dedicated cable/sat. company PVR’s and Cable Card based systems. Unfortunately, after many years of unencrypted goodness, earlier this year Charter turned on 5C encryption on all HD pay channels. Note 5C is the digital encryption for the HDMI not the encryption that protects which channels you get which I believe is DigiCipher 2.

So what does the future hold? FIOS TV and the Hauppauge HD PVR Model 1212 likely. Unfortunately, this may mean losing pure digital recording/playback. But, I would regain recording of all HD channels.

The future is more likely the Internet and Bit Torrent. It’s really too bad for the studios that downloading bit torrent TV shows are often higher quality, more convenient and let you build collections as compared to the ‘legitimate’ offerings (Hulu, NBC online etc… and even recording SD/HD TV from cable/sat). But, this is a rant for another time…

Update: For completeness I added my parents Mac Mini to the full diagram (click the image), it runs Front Row Apple’s not so good PVR software, its slow over the Internet, but I believe that might be something about Samba. She can watch movies via the remote mount to my RAID and I put aliases in her Movies folder in her home directory.

Fun with security tags

7/28/2008


Tag
Tag
Warning!
Warning!
Connected
Connected
Disconnected
Disconnected

So have you ever purchased something or received a gift with security tag still attached? Quite annoying… well most of the tags were designed in the days where before rare earth neodymium magnets became so popular. They normally use powerful electro-magnets to disconnect these sorts of tags. Internally they are simply a spring loaded clamp that dis-engages with a strong magnetic force. If you don’t disconnect the clamp it will pull a metal pin that when pulled out breaks the two different glass die packs designed to stain whatever you disconnect.

So it took not 1, not 2, not 3, but 4 or more of these strong magnets before it came apart easily. Anyway, much easier and safer than trying to Dremel it apart and much more immediate gratification than having to wait for the store to open, driving back and having them remove it.

Oh and be good, this is not for you bad guys out there!

FIOS Fiber Connector
FIOS Fiber Connector

So being the lucky guy I am, both my parents and I both have FIOS 20Mbit Bi-directional internet connections (actually they may have a slightly lower tier). So after the 50th time I had the conversation “You should really see this movie, tv show, etc…”, I got to thinking it might be cool to connect our networks in order to allow them to share my media library/HTPC.

Unfortunately, getting my father to reconfigure his home network firewall is pretty much a non-starter. So I had to find a more creative solution.

So here it is, a quick how to get Samba connected over a reverse ssh Tunnel on OS X.



SSH Tunnel
sudo ssh -N -p 222 -c 3des user@domain.com -L 222/127.0.0.1/139


-N detaches terminal for ssh tunnels
-p is the port – I’m using 222 because if you use port 22 then you have to disable SSH/remote access on the local machine you are connecting from.
-c encryption type – 3des is the default blowfish is faster if CPU time is an issue remote user/domain

(direct from the man page)

-L [bind_address:]port:host:hostport
Specifies that the given port on the local (client) host is to be
forwarded to the given host and port on the remote side. This
works by allocating a socket to listen to port on the local side,
optionally bound to the specified bind_address. Whenever a con-
nection is made to this port, the connection is forwarded over
the secure channel, and a connection is made to host port
hostport from the remote machine.

Ok, now you have a tunnel, the next step is mounting the remote drive.

Mount command
mount -t smbfs //user:password@127.0.0.1:222/remoteshare /mountpoint


Note: A friend noted you should NOT use root for the mount command or Samba may not mount correctly.

To make this run at login, put it in a text file, chmod it executable and then put it in your login items.

Great! Final step, how to make the connection persistant. Enter launchd.

`launchd` is a unified, open source service management framework for starting, stopping and managing daemons, programs and scripts. It was introduced with Mac OS X v10.4/Darwin v8.0, and is licensed under the Apache License.

Unfortunately, you need to make a launchd plist and launchd is a bit of a bitch, so its much easier to just go get Lingon by Peter Borg it’s free, it works and you won’t have to learn launchd.

Now you have a great persistent remotely mounted Samba title over SSH.

Notes:
1. The mount command is a simple terminal script, but you may need to put a delay in the script if the connection isn’t up before the login runs the mount script. There is probably a way to get launchd to handle this but I haven’t spent the time to figure it out. So if the session disconnects it will automatically reconnect but not remount the drive.

2. The 1.83 GHz Mac mini doesn’t seem to have enough CPU to playback and receive HD content over the SSH tunnel (works fine if you download, then play). I may try to use blowfish to see if it improves playback. Normal SD divx/h.264 seems to be just fine.

I’m interested to know if anyone has any suggestions to improve this setup.

Note: As of somewhere around 10.6.7 IIRC this stopped working. As far as I can tell SMB and AFP no longer accept connections from the same box over 127.0.0.1. I’m really not sure why. As an alternative I’ve switched to using MacFuse, MacFusion and SSHFS which seems to be working reasonably well. I also switched the cipher in SSH to use arcfour in an attempt to eek out a little more performance.

Loopy Screensharing
Loopy Screensharing

So if you ever wondered what happens if you screenshare in a loop, here is a nice fun picture =)

Aspect Ratios
Aspect Ratios

People will argue until the end of time whether or not widescreen is better than traditional 4:3 monitors. Personally, I believe most webpages and most documents are much taller vertically than they are wide. So you want the most vertical space possible. I’ve heard the argument that with widescreen you can have two vertical documents simultaneously. But, nothing prevents you from having to vertical documents with even more vertical space on non-widescreen monitor. 1600 wide is really no different than 1680 wide when viewing two documents at once.

So at the end of the day, what really matters is how many pixels get on screen and for any user who’s been around since the days of CRTs, for the most part widescreen has been a big downgrade not an upgrade. If you are buying a monitor for the first time in today’s market I can see how widescreen would not seem like a downgrade. But since most CRT users came from using either 1280×1024 or 1600×1200 the equivalent widescreen models have been downgrades.

Historical Upgrade path:
Resolution Pixels


640×480 307200
800×600 480000
1024×768 786432
1280×1024 1310720
1600×1200 1920000
Widescreen upgrade path:
Resolution Pixels


1280×800 1024000
1440×900 1296000
1400×1050 1470000
1680×1050 1764000

I would argue that most users who had CRTs at 1280×1024 looking to upgrade to a LCD would have preferred 1600×1200 rather than 1680×1050. Unfortunately, widescreen monitors were much cheaper in comparison. Only recently in the last couple years have 1980×1200 become available at consumer prices. So I would argue that for the most part widescreen monitors have been downgrades rather than upgrades for anyone who has had a high-resolution CRT.

More recently 1920×1200 models have come out and they are still pretty pricey, some examples of very high rez monitors…

Todays higher resolutions:
Resolution Pixels


1920×1200 2304000
2560×1600 4096000

For me, when it comes down to it, maximum pixels on the screen means more to me than anything else. So 1.92MP is better than 1.76MP any day of the week, so i’ll be sticking with 1600×1200 until I decide to upgrade to a 1920×1200 model.

Deka EXT18L
Deka EXT18L
 Gratuitous RX-7 pic I took
Gratuitous RX-7 pic I took

So i’ve thought about putting in a light weight battery for awhile now and earlier this year my old battery finally gave up the ghost, so I decided to try a light weight sealed AGM racing battery. I was a bit worried about whether or not he would become problematic, so I went not with the smallest possible battery but with something just ever so slightly larger. I’ve heard of people often using the Deka EXT14 (I’ve read these are the exact battery the more pricy racing brand Braille uses) which is a 200CCA 12lbs battery. I’ve also heard that if you don’t start on the first or second try it may not work. I’ve also heard that if you let your car sit for a too long it can be a problem. So I went for the EXT18L which is a 300CCA 18lbs battery. 33% bigger and more weight seemed totally reasonable to me. After removing the original battery tray and battery I saved 22lbs! Nice savings for a mere ~$80 battery which I picked up at Battery Power Inc. (818) 896-6455 (sylmar/burbank area of LA). Installation was 3 very large heavy duty zip ties.

So 6 months later? NO PROBLEMS at all… I’ve allowed my car to sit for seven days and it had no problem starting up and I’ve also had no problems turning it over multiple times. Actually, compared to my old battery which was way past due to be replaced its been a large improvement in the available power.

The only downside in going with a battery this size is that you don’t want to leave your car keyed on with the engine off for long periods of time. Also, note you’ll need some screw on battery posts. Here is a link with some pictures, links and discussion.

A123 Battery
A123 Battery

So, I recently ran into this article called “New Report Card Grades for the 12 Leading Lithium-ion Battery and Ultracapacitor Development Companies in the World”. Yes, I know, ridiculously long title… anyway this particular article was doing something I’ve been meaning to do for a long time which is consolidate all the battery technology advances I’ve been keeping track of in one easy to read blog post. Well, maybe not so easy to read but at least consolidated in one place. This particular article was written purely from a investment standpoint, which isn’t exactly what I had in mind. There are certainly benefits of looking at these companies from a financial perspective but I’m more interested in the technology.

Standard lithium chemistry batteries have some obvious issues. In the past battery technology (lead acid, nickel metal hydride, nickel cadmium, etc.) was too heavy and/or too bulky to be appropriate for modern vehicles. These days the current lithium chemistry that is used in a variety of consumer products is well within the range of powering a wide variety of vehicles. The problem is there are a few drawbacks with the current chemistry:

  • Limited charge speed
  • Limited current capacity
  • Safety
  • Cost

The good news is that these problems are being handled by advanced new lithium chemistries.

Section 1: Advanced Lithium Chemistries

Valence technologies
http://www.valence.com/
Technology: Lithium Phosphate
Claims: “Safe, rugged and reliable technology with a cycle life 3-4 times that of lithium cobalt” they claim after 1400 cycles at 115f (its maximum operating temperature) it will retain 80% (90% at 73F) of its capacity. They also claim a full charge in roughly 2 hours. This sounds like a solid technology for the average commuter car. Safe, long lasting, and reasonable recharge rate.

7/10

Boston power
http://www.boston-power.com
Technology: Lithium Manganese and softshell aluminum cases
claims: ”

  • Longer life – up to three years of everyday charging
  • Faster charging – up to 40% capacity in just 10 minutes, 80% in 30 minutes
  • Safer to use – multiple, redundant safety features mean better protection for the user
  • Better for the planet – awarded Nordic Ecolabel for environmental sustainability”

Unfortunately, there are no obvious data sheets on their products on the webpage. So, there is really no way to make a real comparison against the other products are. Again though, they seem to be squarely targeting EV’s. while these potentially have much better recharge time, the lack of real product information makes them lose a point.

6/10

A123 Systems
http://www.a123systems.com/
Technology: Lithium Nanophosphate
Claims: “At A123Systems we have developed breakthrough, patented Nanophosphate(TM) lithium ion battery technology that provides engineers and application developers significantly higher power, an inherently safer chemistry, and an order of magnitude longer life.”

From their data sheets, they claim 80% capacity at 800 cycles at 140f and 95% at 77F! The great news about these guys if they are shipping actual real products today! Both Black & Decker and DeWalt have lines of power tools that use A123 batteries. The world’s fastest” EV powered motorcycle the “kilacycle” is powered by their batteries. The current major downside is cost and lack of large cell availability. They advertise a small kit with 6 26650 cells for $110 each, but this is hardly a scalable solution. On a side note, its apparently cheaper to harvest them from power tool battery backs 3rd parties sell to the public.

7/10

Altair NanoTechnology
: “Nanosafe batteries”
http://www.altairnano.com/”
Technology: Nano-structured lithium titanate spinel oxide (LTO)

Claims:

  • No operational safety issues
  • Three times the power of existing batteries
  • A one-minute recharge
  • High cycle life–10,000 to 15,000 charges vs. 750 for existing batteries
  • The capability to operate in extreme temperatures: -22* to 480*F
  • Low life-cycle costs

While Altair batteries have a specific energy (~95wh/kg) higher than NiMH and similar to that of LiFePO4 batteries (in other words better than NiCad or lead acid but not as good as state of the art lithium-ion), they’ve made significant breakthroughs in specific power (available current). They make some bold claims that if they can deliver on would be fairly disruptive, including 10-100x watts/kg, the fastest recharge time, the most cycle life, the widest range of temperatures, and with total safety. They are closer to ultra capacitors in specifications in any other battery in this group. Pricing? Unclear…

8/10

Toshiba
“Supercharge SCiB”
Toshiba Press Release
Technology: unknown
Claims:

  • Excellent safety
  • Current performance equivalent to an electric double layer capacitor
  • 5 minute recharge (to 90%)
  • 3,000 to 5,000 cycles
  • Low temperature use -30*C

Sounds very familiar doesn’t it? While not exactly as extreme as Altair is claiming, Toshiba is claiming much of the same advances. Which makes me highly suspicious they are either 1. using similar technology or 2. Sourcing technology from Altair.

“According to a report in the Nikkei, Toshiba will begin producing 150,000 batteries a month at a Saku, Nagano Prefecture, factory. It will shift to mass production by 2010 with plans to make 600,000 cells for hybrid and electric vehicles and 400,000 batteries for forklifts and other industrial equipment.”
— green car Congress
Green Car Congress

“Toshiba…19,440 kWh a year…”

“For comparison A123 is likely producing 40,000 in the eye in 2007. Altair is likely doing less than 3,500 kWh in 2007.”

9/10

ElectroVaya
http://www.electrovaya.com
Technology: “Lithium Ion SuperPolymer” (Lithiated Manganese Oxide)
Claims:

  • 40-60 percent higher energy density compared to LiFePO4
  • Comparable safety characteristics to LiFePO4

This Canadian company was founded in 2000 and makes a variety of lithium-based chemistry batteries. They seem to be going down the lithium manganese path as opposed to the lithium phosphate path. I don’t know a lot about them but I will start keeping my eye on them.
?/10

Generic Chinese LiFePO4
Claims:

  • Safe
  • Reasonable density 100wh/kg typical
  • Decent temperature ranges
  • Typically claim 1000-4000 cycles
  • 1C-10C of available current

There are at least a dozen chinese companies building and selling LiFePO4 batteries. While most of them are still fairly pricey, a few of them are bringing costs down to the point where real EV’s are possible. I believe this is the most likely way consumers will see electric vehicles in the short-term. Major auto manufacturers will probably drag their feet and ignore these companies until the market pressure forces them to play their hand.

8/10

Section 2: The holy Grail… Ultra capacitors

While batteries store chemical energy and make it available as electricity. The disadvantage of this is that the chemical reactions necessary for rechargeable batteries are limited in the speed at which they can happen, in the number of times the reaction can be repeated and reversed, and in the shelf life of the chemicals. In contrast a capacitor stores its energy by putting electrons between a pair of conductors, there is no chemical reaction. This means they could potentially last forever and they can charge and discharge at very high rates. in the past, the problem with capacitors in general was capacity. Even the last generation of super capacitors were only capable of 1000th the capacity of the lithium-ion battery.

EESTOR
Ultracapacitors
EEStor Wiki
Technology: barium titanate coated with aluminum oxide and glass capacitors
Claims:

  • Nontoxic and non-hazardous
  • Non-explosive
  • For a 52 kWh unit, an initial production price of $3,200, falling to $2,100 with mass production is projected.[6] This is half the price per stored watt-hour as lead-acid batteries, and potentially cheap enough to use to store grid power at off-peak times for on-peak use, and to buffer the output from intermittent power sources such as wind farms.
  • No degradation from charge/discharge cycles
  • 4-6 minute charge time for a 336 pound (152 kg), 2005 cubic inch (33 L), 52 kilowatt hour (187 MJ), 31 farad, 3500 volt unit, assuming sufficient cooling of the cables.
  • A self-discharge rate of 0.1% per month

Queue up EESTOR!
Claims to have Capacitors with storage density of 280 wh/kg. typical LiION is 100-200 wh/kg and in 10 times typical lead acid. In real-world terms this means you could build a vehicle that would get 4-500 miles per charge and recharge in roughly 5 minutes.

Secrecy and “adjusted schedules” has caused some concern of vaporware. On the other hand, defense contractor Lockheed-Martin has recently signed and exclusive deal for defense applications. I wouldn’t be surprised if we don’t see consumer applications for awhile simply so that the US Military can get a good multi-year jump on building new technology around such game changing energy systems.

1 point off for my gut telling me its not going to be this cheap, 2 points off for lack of any real products.

7/10

Conclusion:

Pb (lead) – 30wh/kg, 300-500 cycles, can’t be discharged to 0%
NiCd – The past
NiMh – Memory issues, medium density, medium power
LiFePO4 – 100kw/kg, great cycle life, lots of power and reasonable price today, also doesnt have a huge environmental cost compared to NiMh.
LiMn2O4 – Reasonably safe, potential for higher density, wear quickly at high temperature and not as available.
LiCoO2 (“typical” Lithium ION) – NOT safe, best power/weight and very expensive.
Ultracapacitors – Ideal technology but not available yet.

So the winner is LiFePO4. As LiMn2O4 become more available they may have a chance and ultimately if and when EESTOR comes through on its claims, ultra-capacitors will win the long war.

Nice Lithium comparison chart

Misc…

Recent rage of adding some capacitors and batteries together to increase battery life and increase instantaneous current/power.
Technology Review: A Cheaper Battery for Hybrid Cars

Research

Stanford University – 10x lithium with nanowires
High-performance lithium battery anodes using silicon nanowires

MIT Ultra capacitors
MIT Builds Efficient Nanowire Storage to Replace Car Batteries

glass under pressure...
glass under pressure…

So, I was going to write a big post about battery technology. But, it is going to have to wait until tomorrow as a huge window in my house has just exploded… Thank the inventor of safety glass! I suppose this is one of the downsides of living in a house that was built in the 20′s. Well that and the fact that my office is tilted just enough that my chair always wants to roll away from my desk…okay and maybe lack of central air =P

It’s still crackling and splintering in a disturbing way…maybe I’ll take another picture in the morning.

View in: Mobile | Standard