Unemployment won’t recover for 157 months (2021)

If we look at employment prior to the Great Recession compared to now there is a difference of 11.3 million jobs (from Bookings institute). Now how long is it going to take to return to that level? If you take the best job growth of the 2000’s it’ll be 157 months or 11years. That’s not until 2021!

If you take the best rate from the 1990’s it’s down to about 8 years! Here’s the chart with how many months it’ll take based on the rate with a couple note worthy rates highlighted.

Grab 0011


iPhone4 and FaceTime

I’d been surprised about Apple emphasizing FaceTime in advertising. I don’t think it’s very compelling — I don’t know enough people with an iPhone4, I rarely have a Wi-Fi connection when I want to talk to them, and I don’t find video chats very compelling anyway. After all, how often do you video iChat or Skype?
Anyway, TechCrunch had an interesting perspective about it when they compared it to a scene from Mad Men (official site. They are getting people to make an emotional connection with the iPhone rather then the analytical one of feature X vs. feature Y.


More exonerations for Climategate researchers

Yet another report says Michael E Mann is cleared of any wrongdoing related to his climate research.

An investigative panel at Pennsylvania State University, weighing the question of whether the scientist, Michael E. Mann, had “seriously deviated from accepted practices within the academic community for proposing, conducting or reporting research or other scholarly activities,” declared that he had not.

This is the second report from Penn St. clearing him and joins two others in Britain clearing related researchers.


Senator Robert Byrd

From Frank Rich’s column about Senator Robert Byrd.

These senators were in the tradition of Thurmond, not Byrd — indeed, they are Thurmond’s direct heirs. Like Byrd, Thurmond had been an ardent Democratic foe of the Civil Rights Act of 1964. Unlike Byrd, he left his party in disgust that year and endorsed Goldwater, jump-starting the migration of the Democrats’ racist cadre and their political toxins to the G.O.P. and setting the stage for the Republican “Southern strategy.” That strategy isn’t dead.

The NY Times had an interesting obituary about Senator Byrd including his Ku Klux Klan membership, title as “King of Pork”

Mr. Byrd’s perspective on the world changed over the years. A former member of the Ku Klux Klan, he filibustered against the 1964 Civil Rights Act only to come to back civil rights measures and Mr. Obama. A supporter of the Vietnam War, he became a fierce critic, decades later, of the war in Iraq. In 1964, the Americans for Democratic Action, the liberal lobbying group, found that his views and the group’s aligned only 16 percent of the time. In 2005, he got an A.D.A. rating of 95.


Switching keys in values in a map

A functor that reverses a pair: first becomes second,
second becomes first. Useful for switching
from a map to another map (or multimap in this example) where
the value becomes the key and the key the value.

std::map<std::string, int> m;
std::multimap<int,std::string> m2;
m["a"] = 0;
m["b"] = 1;
m["c"] = 0;
std::transform (m.begin(), m.end(), std::inserter (m2, m2.begin()),

And the actual code:

template<class PairType>
struct pair_switcher : public std::unary_function<PairType, std::pair<a,b>
 typedef std::pair result_type;
 typedef PairType argument_type;
 result_type operator()(const argument_type &p) const
     return result_type (p.second, p.first);

WordPress 3.0 update

Update to 3.0 went pretty smoothly. I’m having some problem with images (added how to fix below)

  • Ran my custom backup script:
$ cd ~/Desktop/wp-backup
$ ./backup
  • Downloaded wordpress 3.0:
$ cd ~/Desktop/src/downloads/pkgs
$ curl -O http://wordpress.org/latest.tar.gz
$ mv latest.tar.gz wordpress-3.0.tgz
  • Make sure you know the WP administrator user password as WP 3.0 uses a “Super Admin” interface.
  • No real special requirements for my site for wpmu upgrade most a lot of warnings about plugins and themes not necessarily being compatible.
  • Follow the directions or these even better directions
    • Disable plugins from site admin web page
    • Remove (save somewhere else) wp-admin, wp-includes
    • Extract the wordpress-3.0.files
    • Fix permisions (this is Apple’s Snow Leopard Server)
$ cd /Library/Webserver/Documents
$ mv wp-admin wp-includes ~/tmp
$ tar xzvf ~/Desktop/src/downloads/pgks/wordpress-3.0.tgz
$ chown -R _www:_www .
  • remove blogs.php
$ cd /Library/Webserver/Documents
$ rm wp-content/blogs.hp
  • Modify .htaccess to add the rule for wp-files (replacings blogsphp):
RewriteCond %{REQUEST_URI} !.*wp-content/plugins.*
RewriteRule ^(.*/)?files/(.*) wp-includes/ms-files.php?file=$2 [L]
  • Upgrade the site (site.com/wp-admin/upgrade.php). Login as the administrator user, if you don’t see “Super Admin” you aren’t the right user.
  • My site admin had some extra steps to perform like getting rid of blogs.php and adding some code
    for the cookies.
  • Update the plugins