riskinit.org logo
Technology is the term we use for things that don't quite work yet.

Archive for 2008

10.4-10.5.6 Updates Graph
10.4-10.5.6 Updates Graph

You might want to hold off on the unless you’re already experiencing problems like some new MBP users are. My latest not-so-scientific numbers show its a risky bet.

Check out my older post on the topic

The graph is basically the number of positive to negative comments made on MacRumors.com.

10.5.6 Update
10.5.6 Update
Top Gear
Top Gear

Top Gear is by far the best television show about cars ever aired. They can be quite opinionated and occasionally wrong, but they do their best from their perspective. Today’s episode 12×07 unfortunately, in my opinion, they got it wrong. While they loved the performance and looks of the Tesla roadster they made it clear they believe fuel cell powered electric vehicles (FCEV) are superior to battery electric vehicles (BEV).

My Gripes…

1. They implied the fuel for recharging battery electric vehicles is from “dirty” power generation and that the alternative is a small wind powered recharger that would take 600hours to charge it.

They neglected to mention that any hydrogen produced would be powered by the same “dirty” power generation that any electric vehicle would be recharged by. They also neglected to mention that in doing so would require more power and would be less efficient. Meaning more pollution with hydrogen than battery electric.

2. They also implied that owners would be charging their vehicles with a “normal 13 amp” outlet which would take 16 hours (or 600 with the silly windmill).

They neglected to mention the Tesla is designed to be recharged with a much higher output connection included with the vehicle that charges it in 3.5 hours. That’s a massive difference and likely a dealbreaker for many people if they didn’t know the truth. Also, battery technology is improving at an incredible rate at the moment. There are already batteries from several manufacturers that will be able to be recharged in under 15 minutes.

3. They also complained about the price and went on to explain how hydrogen fuel cell powered vehicles would NOT cost more than a “normal car” and “possibly less”.

Now with the US exchange rate as it is, the Tesla is overpriced, but the overall implication is that hydrogen fuel cell vehicles will be cheaper than battery electric vehicles. As far as I know there is no evidence that shows this will happen. Hydrogen fuel cells are still a pipe dream and battery electric vehicles while expensive now are at least available now and very likely could be cheaper than hydrogen fuel cells when they first arrive 5-10 years from now.

4. The most minor gripe was with the range. They mentioned they only got 55 miles on their track vs. the 200mile rated range.

That’s an unrealistic expectation. The Bugatti Veyron holds 26.4 US Gallons and at its rated 14MPG it will go 371 miles. But at top speed it will run out in 12 minutes or 50 miles. But is this fair to say it only goes 50 miles? Obviously, I chose an extreme example but I also believe driving around the Top Gear test track is also an extreme example.

So why do I like BEV more than FCEV? It’s the EFFICIENCY stupid!

Power generation -> Liquid Hydrogen -> Electric Motor = 17%*
Power generation -> Gas Hydrogen -> Electric Motor = 22%*
Power generation -> Battery -> Electric Motor = 66%*
Power generation -> Capacitor -> Electric Motor =79%**

*From a report FROM the European Fuel Cell Forum.
** Assuming 20% better for not losing anything in the batteries.

Even assuming those numbers are a little biased towards BEVs, no matter how you look at it BEVs are at least twice as efficient at a minimum. They both require a power source so you can’t argue about the source of power. But BEVs requires half the power! So that’s twice as good in my opinion.

Tesla Motors
Tesla Motors

I also don’t like to argue about distribution because both of them require infrastructure upgrades, but in my personal opinion it’s much easier to add high-powered (<15mins) charging stations at existing refilling stations and medium powered (several hours) outlets at homes. Remember you won’t often need a full charge at refilling station. Most of the time if you run low in electric vehicle you probably only need a quick under five-minute charge to get you where you need to go. Normal charging will happen at home. In the rare circumstance of long range driving, you’ll probably actually appreciate a 15 minute recharge every few hundred miles just to stretch your legs out.

The other thing which is great about a 5-15 minute recharge is the economic benefits to the stations. Remember most refilling stations don’t make substantial profits from selling fuel. They make their profits from selling ancillary items such as cigarettes and snacks. If you’re there 5-15 minutes you’re going to buy more on average.

The two points they legitimately make are that
1. Batteries are too expensive at the moment.
2. The batteries in the Tesla make it weigh too much.

I believe both of these problems will be solved with evolutionary (not revolutionary) improvements in battery chemistry. I can only hope someone from Top Gear actually reads this and might be swayed in the right direction…

Updates:
Wired chimes in…
Jalopnik Comments…
Tree Hugger weighs in…

P.S. Before anyone thinks I don’t get Top Gear, I do. It really is one of my favorite programs. They are hardly fair to ANYONE and for an Electric & American *gasp* car they really did give it a positive (for Top Gear) review. But, for some reason or another, I just wish they would have added in a few counter points and then when they oversold the Hydrogen thing…well…that was the final straw!

Mazda Key Disassembly

Monday, October 6th, 2008
Mazda Key
Mazda Key

The Volkswagen Key Disassembly continues to be one of the more trafficked pages on my site so I figured I would commit one more selfless act of community service and bring you the all-new Mazda Key Disassembly page. This particular key is from a 2006 MX-5 (aka. 3rd Gen. Miata, or Miata NC), bit will probably work just the same as many similar keys. I’m not even sure if what Mazda might charge for this, but I’m sure its more than the $1-2 cost to replace the battery and 5 minutes of your time. It could also be useful to replace the keychain link or clean the contacts.

Enjoy…

Hydrogen Is Overhyped
Hydrogen Is Overhyped

There are at least three basic parts to powering a motor vehicle.

1. An energy source
2. An energy carrier
3. A motivation system

Energy Source
A natural resource that we can exploit in order to generate work. Without trying to get too cosmic, all energy sources in the universe that we are aware of are finite and will eventually run out. It is important that we choose our energy sources carefully in order to not pollute the environment (heat, carbon, radiation, etc…) and to not run out.
Examples: solar power, geothermal power, fossil fuels, wind, hydroelectric, nuclear fission, nuclear fusion, etc.

Energy Carrier
A method that allows stored energy to be moved from its energy source to its destination where work needs to be done.
Examples: electrochemical conversion (batteries and fuel cells), fossil fuels, flywheel, polonium, the electric grid, etc.

Motivation system
A device that turns energy into kinetic work.
Examples: electric motor, internal combustion engine, pneumatic pump, turbine engine, rocket engine, etc.

Fossil fuels and radioactive materials such as uranium are somewhat unique in that they are both an energy source and an energy carrier. The disadvantage of using these sorts of resources are obvious. They will run out sooner than later (10′s or 100′s of years vs. millions’s of years for other resources), they often cause pollution and they often cause political turmoil because of their geospatial location.

Hydrogen falls into the second category, it is an energy carrier. Many people who are used to dealing with fossil fuels often mistakenly believe Hydrogen is an energy source. Also unfortunately, since fuel cells operate most efficiently with pure hydrogen and because there are virtually no environmental byproducts when using Hydrogen it has been identified and championed as the future energy carrier. But, it’s a really terrible energy carrier. It requires an energy source to produce, energy for transportation to move it locally, and energy and expensive containers to store it.

Hydrogen is the LEAST dense element on the periodic table. There are no other elements with a lower density, why would we choose this as the ultimate way to store energy?

Regardless of which energy source we use, what we need is a technology that can store energy with very little loss, in a compact package, repeatedly, and with low or no environmental impact.

Energy Carrier Candidates

  • Kinetic energy – flywheels, springs, etc.
  • Burning liquid fuels – fossil fuels
  • Burning gaseous fuels – fossil fuels, hydrogen
  • Electro-chemical conversion:
    • Batteries – NiCd, NiMh, LiFePO4, Limn2o4, Licoo2, Lipf6, etc…
    • Fuel cells – hydrogen
  • Radioactive decay – uranium, polonium, etc…
  • Pure electricity – capacitors

Best Long Term Solution
If we are to pick a technology with the most promise and the most long-term benefits personally I think capacitors are the way to go. Little or no losses, extremely high power (how much energy you can use per unit of time), quick charging (<5mins with the right hookup), virtually unlimited cycles (long lasting), and density on par with 2x modern lithium ion (think 450+ mile range). EEStor claims to have ultra capacitors with the density equivalent to twice lithium-ion batteries. If this is true it is truly game changing.

Best Short Term Solution
If we want to pick a solution for the interim to improve over fossil fuels I’d have to choose batteries. Fuel cells are merely batteries that instead of recharging (storing chemical energy) they re-fuel the cells with additional liquid chemical fuel and the cell is merely a catalyst (hence fuel-cell). Unfortunately, they are not ready for commercial production and sales yet. So it has to be standard chemical batteries for the time being. In the past 5-10 years there have been huge technological improvements in lithium-based batteries. There are at least half a dozen commercially viable lithium-based battery chemistries available today that can charge quickly, last much longer, are much safer, and are cheaper than traditional lithium cobalt.

Additional Considerations
It is more than likely that there will be a mix of technologies used for various modes of transportation for the foreseeable future (hybrids, biodiesel, CNG, ethanol, pure EV’s, etc). Hydrogen is often touted as some sort of panacea energy solution when in fact it’s expensive to produce, difficult to store, and difficult to use. Existing oil companies and automobile manufacturers who have vested interests in the status quo like hydrogen because of these reasons. It favors the usage of fossil fuels for the time being and it also favors the same large companies who will build the large infrastructures needed to support the hydrogen economy.


Energy storage technologies are improving. There is no denying that. Whether it’s batteries, ultra-capacitors, or kinetic energy systems (flywheels) improvements are being made across the board. With that, every few weeks or so someone says “my energy storage will allow electric vehicles to be charged in under X minutes” (Typically 5-10). This is usually followed up with something about how the electrical grid will never be able to handle that and how you could never do that at home.

I also periodically run into someone who starts talking about swapping batteries out of the cars for freshly charged ones. This is obviously being pursued most famously by Shai Agassi’s Better Place. As intriguing as this may sound for some people it is totally unrealistic for the consumer marketplace. Besides all of the obvious possible ways to try and cheat the system for profit, the practical limitations are also overwhelming. Imagine how many batteries a refueling station would need as technology improves with multiple chemistries and vehicles of various sizes need different capacities and voltages. Packaging alone will not allow quick replacement for all vehicles. Thus this technology will ultimately be limited to fleet vehicles.

Does anyone really believe people are all going to want to drive the same vehicle or even the same line of vehicles or even vehicles that can only have batteries exchanged from the same company?

The reality is this, batteries will charge faster, the power for these batteries will come from the grid. Most homes will not be equipped to do fast charging. So where will it come from?

Let’s see, who has the existing real estate, the resources for the necessary equipment, and the economic incentive? Duh… Refilling stations.

We already know the majority of income from existing refilling stations comes from ancillary products (cigarettes, snacks, etc.). Stations will slowly allocate additional space for charging electric vehicles using existing parking areas and other under-utilized space. The local electricity providers will work with them on meeting requirements of both maximum draw and potentially energy returned to the system at peak needs. This could potentially also help offset costs of on-site storage of electric energy. Whether they use Kinetic, Capacitor or Batteries, refilling stations will have the ability to store this energy on site and dispense it to vehicles as needed. They could even have electric signs that say things like “Full charge* in 7 Minutes for $5!” (*and tiny print for 30kw maximum [insert additional legal disclaimers here]) that changes based on their current available energy.

Electric vehicles will not appear all at once out of thin air. Most arguments for electrical grid issues make the assumption that all vehicles will need to charge off the existing grid all at once and today. the reality is, it will take years for the vehicles to get on the roads, years of standards committees working out the system ( charging rates, voltages, connectors, etc.) and years for the filling stations to upgrade. No, they will probably not charge in under five minutes day one, no it won’t be free, and yes you will still be able to charge slower at home.

Electric vehicles are coming, fast charging stations are not going to be free and they will be available at refilling stations. It’s so obvious that no one seems to say it…

Update: A prime example, at least one intelligent commenter pointed out if you charge at home you actually SAVE time because you don’t have to spend time at the gas station.

Update 10/2: According to this study by the US Department of Energy If 84% of the cars, pickup trucks, and SUVs in the US were Plug-in Hybrids they could be supported using the EXISTING generating, transmission, and distribution capacity (if vehicles are charged during the least used hours at night). This would also result in a 27% reduction overall of the total greenhouse gasses in the US.

Mac OS X Updates Graph

Thursday, September 18th, 2008
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

Sunday, September 14th, 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 Gone Wild

Wednesday, September 3rd, 2008
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

Monday, July 28th, 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.