Friday, May 31, 2013

JSConf Differences Since 2009

JSConf 2013 is the fifth annual event. Here are 5 differences that I've noticed since then.

  1. Less need for power strips. Everyone has Macs with good batteries.
  2. More diversity. Keeps improving.
  3. JS Everywhere continues. Almost only JS on browser 5 years ago. No robots, etc.
  4. Track B room is bigger than the entire room for 2009.
  5. More people have JS jobs. 
What has not changed is the humor of yayQuery, quality of the speakers or excellence of the Williams and volunteers.

Wednesday, May 29, 2013

JavaScript Journalism Examples

Examples of JavaScript Journalism from my presentation at JSConf 2013  are now on http://jsjournalism.com. These examples are from around the United States and one from France. The presentation will be there later today (5/29).

Monday, February 25, 2013

"They Became What They Beheld" by Edmund Carpenter or Marshall McLuhan?

One of my favorite books is They Became What They Beheld (1970) by Edmund Carpenter and photographed by Ken Heyman. The origin has been a bit of a mystery.

In the note above the copyright of the book it states:
The text owes much to Marshall McLuhan who, in fact, co-authored an earlier version. We are indebted to the authors quoted and their publishers, and to Harper's Bazaar in which some portions of the material appeared.
The obituary for Edmund Carpenter in The New York Times on July 7, 2011, included this paragraph:
His collaborations with McLuhan included numerous jointly written articles and the anthology “Explorations in Communication” (1960). The article “Fashion Is Language,” which appeared under McLuhan’s name in a special McLuhan issue of Harper’s Bazaar in 1968, was actually written by Mr. Carpenter after McLuhan went into the hospital for brain surgery. It was published in book form, in 1970, under Mr. Carpenter’s name, with the title “They Became What They Beheld.”

There is a footnote in McLuhan is Space: A Cultural Geography (2003) by Richard Cavell which states:
Edmund Carpenter suggest that he was the author of the Haper's article, though when it appeared in an altered version as part of Carpenter's They Became What They Beheld (1970), Carpenter credits McLuhan's input into the volume. See Carpenter's Remembering Explorations,' Canadian Notes and Queries 46 (Spring 1992): 3-15; reprinted in a slightly different form in Theall's Virtual Marshall McLuhan.
So I went to "The Not-So-Silent Sea," Appendix B of Virtual Marshall McLuhan where Edmund Carpenter wrote:
Harper's Bazaar commissioned Marshall to write a special McLuhan issue. He was about to undergo surgery. The fee was large & needed. Not a word had been written, not a photograph assembled. On Friday, the publisher warned me: if an acceptable manuscript wan't in his hands by 9 a.m. Monday, the contract was cancelled. It arrived on time and appeared under Marshall's name. Three years later it appeared as a book, They Became What They Beheld, under my name.
Out of curiosity I will probably buy the April 1968 issue of Harper's Bazaar from ebay. But given the above information, it is pretty clear to me that Edmund Carpenter deserves the credit for both works.

I think of these two works and Understanding Media as collaborative efforts of two brilliant men and very close friends. In the former, Carpenter completed the work, in the later, McLuhan completed the work. Collaboration is difficult in print and authorship is not always an easy definition.  

In my opinion, They Became What They Beheld deserves the same respect as any McLuhan book. Highly recommended.

Wednesday, January 16, 2013

JSConf 2013 Speaker: JavaScript Journalism

I'm honored to be accepted as a speaker at JSConf 2013. I'll be speaking on JavaScript Journalism.


It is time that news stories told with JavaScript get recognized as a form of journalism. It took years for photo journalism to get the recognition it deserves, now is the time to recognize JS Journalism. 
Most news organizations presented election news using JavaScript. News home pages often have more JS than text. 
A bit of history. A bit of academia. A bit of current news. A few guesses about the future. But nothing about the future of newspapers.
UPDATE: Here is the slide deck and examples.

Thursday, November 08, 2012

Deleting Duplicate mp3 on Mac

Using Amazon Music I download an album twice. It saved each file twice. One like "song.mp3" and the next as "song(1).mp3".

I wanted to delete all the files ending with "(1).mp3". The easiest way is to use the Mac terminal and  a shell. Here's the steps I took:
Opened Terminal
Change to the Music directory typing: "cd Music/Amazon\ MP3
Then typed: "find . -name  *\(1\)\.mp3"

If the find command listed only all the files I want to delete then I type the next line. But I must be certain because it is not reversible. Okay, are you certain?

Now delete: "find . -name  *\(1\)\.mp3 --delete"

This leaves me with a problem for itunes where there a duplicates.

Wednesday, October 31, 2012

Halloween Jokes 2012

When kids trick or treat at our house we ask them to tell a joke. We have the reputation as the 'joke house.' So these are the best from this year.

  • Why didn't the skeleton cross the road? No guts. (a repeat joke)
  • Where do ghost go to buy food? The ghostly-store.
  • Why cannot you tell a secret on the farm? Potatoes have eyes and corn has ears.
  • Why do spiders cross the road? Want to get food.
  • Knock knock. Who's there? Joe. Joe who? Joe Biden my hamburger.
  • Why no snacks at Halloween party? Everyone was a-goblin.
  • Where do celebrities monsters hang-out? Maliboooo!
This were the 2006 Halloween jokes.

Saturday, October 20, 2012

Barack Obama for Another Four Years

Some of my friends and family will not be voting for Obama. Many others won't be voting for him either. It surprises me that any citizen can vote against Obama. Or that anyone can vote for Romney. Here is why I am for Obama.

Our country is heading is the right direction with Obama. Being an older guy - I had a different Romney sticker on my car in 1968 - perhaps I take a longer view. History is important.

So I look at the dire situation this country was in at the time GM was facing bankruptcy. Job losses were huge. The stock market was losing value. Personal wealth and in particular home values were going negative. The world was on the brink of a depression. The Democratic team in government moved us away from this doom. So I am for Obama.

The deficit and the debt is a threat but to solve either unemployment must be lower. First, employment is heading in the right direction. Look at these charts and situation either candidate will face in January. Lower unemployment. Booming housing market. And better consumer confidence. The United States is back thanks to the last four years. So I am for Obama.

But back to the deficit and debt. People often talk about these together and they are two different problems. So I want to focus on the deficit and then the debt. First the current situation is not dire given the historically low interest rates that treasuries are now paying. Second, the deficit is being reduced because of the economic situation I just mentioned. Third, is there any reason to believe that a Republican administration can reduce the deficit? History shows us that Democrats are better able to do this than Republicans. Just look at Clinton's surpluses verus Bush's deficits. Fourth, tax cut will not reduce the deficit - see Ben Stien on Fox and Friends. So I am for Obama.

Now to the debt. Politician are right to talk about this as something that we leave our children. Politicians tend to kick problems down the road. Our current debt crisis is overwhelming a result of the previous Republican President, Vice President and Congress. Look at this one chart that shows the huge problems caused by the Bush tax cuts and the unbudgeted wars. Romney's and Ryan's support of continuing the tax cuts is the wrong direction. So I am for Obama.

Science advances our civilization. The anti-intellectual leanings of the previous Republican administration is not something I want to go back to. Embracing the anti-climate change views is just one example. Steven Chu appointment as Secretary of Energy is one example of were professionalism mattered for this administration. So I am for Obama.

Less government is a nice rallying call. But often people say this when they really mean that they don't trust government. But let's first look at less government. Government employment is down. Here is the chart showing public sector employment.  Part of the reason we have a slow recovery is because we have taken the path of less government. But you cannot want less government and then blame Obama for slow recovery too. So I am for Obama.

The social conservatives really don't believe is less government. They are against gay marriage. Defense of Marriage Act was so misnamed. They don't want individuals make decisions on abortion. Andrew Sullivan has called this out over the years. So I am for Obama.

Trust in government. Is government more efficient that the marketplace? No. But does that mean that every function of government should be privatized. Absolutely not. Look at the poor history of chartered schools. Look at the problems with military and semi-military contractors. Look a prisions. A company running a prison wants more business and not to find a way to reduce the prison population. So I trust government. I understand that you may not. But I do. So I am for Obama.

The disgrace of voter suppression and  non-existant voter fraud must be blamed on the Republicans. The voter id laws that Republican legislatures have passed is one of the most anti-democratic acts that I can remember in my lifetime. How can any candidate support this? It is unpopular to be against voter id but the Department of Justice has acted. So I am for Obama.

The other disgrace of the last few years has been the Republican Congress. During their first year of a majority in the House they did virtually nothing for job creation. They passed bills isolely for publicity and not to help the country. Their unified stance to be against anything the President recommended was selfish and echoes of the legislative problems in Congress pre-civil war. Obama has some blame as Woodward points out in his book. This situation worries me greatly. But many individual Republicans in Congress took this stand. So I am for Obama.

Libya may have been Obama's finest hour contrary to what we are now seeing in the news. I believe history will show Hillary Clinton as an outstanding Secretary of State. This is speculation and history will decide. But there should be little doubt that our relationship with our allies is improved. Our country is still paying for the reckless acts of the neocons of the previous administration who are Romney's advisors. So I am for Obama.

Even if one was opposed to any war, one must support our vets who bear the consequences. Though I have not studied this issue, it appear that this administration has supported vets better than any previous administration. So I am for Obama.

Obamacare. I am so glad to see Obama embrace this label. It maybe is legacy. It is hard to understate the positive impact of this legislation. Study the issue of pre-existing conditions. Study health insurance in other developed countries and the United States looks backwards. While I don't think it went far enough, I certainly don't want it repealed. So I am for Obama.

"Just trust me, I have a secret plan." I've heard that before. Recent news about George McGovern remind us that Nixon said the same about the Vietnam War. And we trusted Nixon? History has a strange way of repeating itself, or being so perceived. I'm not for Obama because of this, but Romney's asking for trust scares me.

Drones and privacy. I don't think either candidate speaks for where we should be going as a country related to these two issues.

One side point to keep this all in perspective. NPR pulled together an all-star team of economists to create a dream candidate based on economic policies they could all support. If enacted we could be a better country. But as you'll read, it is probably impossible to have any of these policies enacted just as single payer healthcare is unlikely.

And a final note. This is a billion dollar campaign and too much money corrupts. Lawrence Lessing's book Republic Lost details this. The ability to raise money is seen as an indicator of a successful candidate. I don't this our forefathers thought so. Obama has called for a constitutional amendment that is probably too small of a step. But it is the right direction. So I am for Obama.

Conventional wisdom is that incumbents had to run on their record. Thus, much of the above relates to the last four years. Foes argue that we need a plan for the next four years. Previous actions are the best indicator. I'd like to see the policies of the last four years continue for another four years.

I'd like to see the economy continue to recover. I'd like to see social progress continue. I'd like to see us continue our current foreign policy and withdraw from the battle field. I'd like to see Obamacare fully implemented. So I am for Obama.

I understand that you may not agree, but I hope you do.



Tuesday, July 03, 2012

My Laptop Stack

Unlike an application and more like a development shop, my new MacBook Pro has a "stack" of software for development.
I'm between IDE/text editor right now. I was using textmate and I'm evaluating sublime. I'm looking at Brackets as well.

Saturday, June 16, 2012

TXJS Presentations Remotely


I've never been able to attend a TXJS conference so I've admired the event from afar. It looks like Rebecca Murphey and Alex Sexton hosted another grand event. Here are some great presentations.

Pamela Fox @pamelafox did a presentation on "localStorage: Use It, Don't Abuse It" that is very well documented and a great resource on local storage. The link to Steve Souders case study on Google and Bing is one example that I really appreciated.
http://localstorage-use-not-abuse.appspot.com/
http://www.stevesouders.com/blog/2011/03/28/storager-case-study-bing-google/

Rebecca Murphey @rmurphey presented "A New Baseline for Front-End Developers" which which really helps me know where I should be pushing my limits. For example, I really want to automate a lot of my developement/deployment and it reminded me to study Grunt which was on my todo list from jsconf.
http://frontend-dev-baseline.nodejitsu.com/

"Machine Learning in JavaScript" would not have crossed my mind prior to seeing this presentation by Heather Arthur @harthvader. Perhaps I should be spending a hour per day on node again.
http://harthur.github.com/txjs-slides

Ashley @ClassicallyGeek did a wrap up of TXJS which mentioned a talk by Dave Rupert @davatron5000 on "JavaScript in Responsive Web Design". The fitvids.js jQuery plugin looks very interesting.
http://classicallygeek.com/2012/06/14/txjs-2012/

Finally, I'm looking forward to seeing Jed Schmidt's @jedschmidt presentation on "NPM: Node's Personal Manservant". He always has a interesting way of looking at things so I want to see his latest thinking.
http://www.flickr.com/photos/tr4nslator/7187168459/in/set-72157630065908247

All the videos from last year are here. Maybe the 2012 ones will be there soon.
http://vimeo.com/channels/txjs

Friday, June 01, 2012

415 unsupported media type couchdb jquery

Hate it when I repeat a mistake. Worse when I repeat it.

Adding a new record to couchdb requires a POST and jQuery supports that verb. So I did the simple
    $.post(toc.dbUrl+'techtocs', data, function(data) {
        alert("Data Loaded: " + data);
    },"json");

But this got me the "415 unsupported media type" error. I was sending application/json type but I still got the error. So I finally looked up my old code and did this:
$.ajax({
        type: 'POST',
        dataType: 'json',
 contentType: "application/json",
 data: JSON.stringify(data),
 url: toc.dbUrl+'techtocs',
 success: function(sdata){
     //stuff here+ 
        }
    });

Glad to get it working on this project where techtocs is the database name.