Anarchogeek - Home tag:anarchogeek.com,2008:mephisto/Home Mephisto 2008-08-13T13:49:10Z admin tag:anarchogeek.com,2008-08-13:/article/2008/8/13/charla-m-s-all-del-testing-specs-y-el-desarrollo-guiado-por-comportamiento-beyond-testing-specs-and-bdd 2008-08-13T01:01:00Z 2008-08-13T01:01:00Z Charla Más allá del testing: specs y el Desarrollo Guiado por Comportamiento. (Beyond testing, Specs and BDD) <p>I’ll be speaking at the <a href='http://uylug.org.uy'>Uruguayan Linux Users Group</a> all about ruby event this saturday in Montevideo. My talk is <a href='http://groups.google.com/group/ruguy/browse_thread/thread/5af3cd01ee42c248'>Más allá del testing: specs y el Desarrollo Guiado por Comportamiento. (Beyond testing, Specs and <span class='caps'>BDD</span>)</a>. I’m going to try and convey the ideas of <span class='caps'>BDD</span> and how the ruby community has been redefining testing in the development process.</p> <p>In addition to my talk, <a href='http://www.oboxodo.com/'>Diego Algorta</a> is doing introduction to ruby, and <a href='http://nicolassanguinetti.info/'>Nicolas Sanguinetti</a> is giving an introduction to rails.</p> <p>The talk will be in spanish. It should be good, it’s been a couple years since i gave a tech talk in spanish. It’s been tricky to figure out what words to translate, and what words to just leave in english. For example prueba means test in spanish, but in the context of software the english word is used anyway. As usual i’ll throw up the slides on <a href='http://www.slideshare.net/rabble'>my slideshare account</a>.</p> <p>If you’re one of the 0.44% of my blog readers who are in Montevideo, come by for the talk.</p> admin tag:anarchogeek.com,2008-08-06:/article/2008/8/6/rethinking-cookie-cutter-websites-ugc-ugc-ugc 2008-08-06T07:21:00Z 2008-08-06T07:21:00Z Rethinking cookie cutter websites: ugc ugc ugc <p>It’s a truism that cookie cutter websites are bad things. Poor knock off copies. <a href='http://mercadolibre.com.uy'>Mercado Libre</a> vs <a href='http://ebay.com'>Ebay</a>, or just about anything yahoo does. Take somebody else’s idea and do the same thing, with your own twist.</p> <p>It’s the kind of thinking you get from folks hiring <a href='http://www.elance.com/'>elance</a> and <a href='http://www.odesk.com'>odesk</a> developers. Fast cheap, and kind of like what joe was doing over there. Back when i was working on <a href='http://odeo.com'>Odeo</a> somebody posted wanting to pay $1000 for a clone of the site.</p> <p>But if we think about it a little more we can realize there is some value there. Really nothing we do is original or new. We’re always riffing off of each other. When somebody does something which is <span class='caps'>NOT</span> copying and adapting from others, then things don’t work. An idea which is “ahead of it’s time” is perhaps an idea which is to original and insufficiently derivative.</p> <p>We live in a world which places the truly original, paradigm shifting ideas above others. The lone Einstein who goes off and reinvents the world. It wasn’t Ted Nelson’s hypermedia that changed the world, but the community of folks who mashedup gopher and hypertext decades later. We need people working on crazy reinventing the world ideas, but mostly those folks fail. Even if they do come up with great ideas, they will be ignored.</p> <p>Most of the creative work we do is copying and deriving from ourselves. It’s a community of people who come up with ideas and build things together. Sure one person might do the design, another the coding, it is their work, but the ideas floating around can’t really be owned. We’re derivative and that’s ok. Relevant work, useful arts, are derivative. A user interface must be derivative for it to be useful.</p> <h2>And websites?</h2> <p>So, how does this get back to websites? Websites are my craft, they are what i create. Sure i actually work on the code behind them, but the goal is to create websites for people. Even things like Fire Eagle, which mostly get used by software to talk to other software, is really about people. I’ve been building websites for well over a decade, and will probably keep doing it, I enjoy what i do.</p> <p>So then the question becomes, what kind of websites to build. Well we could do the standard cookie cutter idea, copy somebody else’s thing whole hog. Or we could do flickr for video, twitter for xyz, take somebody else’s concept and change the nouns.</p> <p>But if we step back a bit we realize that interesting websites are about sharing things. <a href='http://www.zengestrom.com/'>Jyri</a> says what’s being shared are <a href='http://www.slideshare.net/jyri/microblogging-tiny-social-objects-on-the-future-of-participatory-media'>social objects</a> and while he has 5 steps, the important ones are what’s being shared how. The noun and the verb. I share photos by uploading them.</p> <p>What does that look like? Well Matt Jones of dopplr says <a href='http://www.adaptivepath.com/blog/2008/03/27/conversation-with-matt-jones-co-founderdesigner-dopplr/?akst_action=share-this'>they are sharing trips as the social object, and the verb is to plan</a>. Once you get the frame to think about it’s pretty easy to see what people are doing. So then you’ve got <a href='http://platial.com'>Platial</a>, <a href='http://mapufacture.com'>Mapufacture</a>, and <a href='http://maps.google.com'>google maps</a> are competing in the space creating and sharing maps online.</p> <p>For me the idea that what we should be doing is creating a way for people to share something together, that’s what we’re doing in social media, has taken a while to become clear. Sure Twitter is a microblogging service, or a many to many message routing system, but really, most importantly, it’s a way to share what’s going on in my life.</p> <h2>Back to the cookie cutter thing</h2> <p>Instead of copying something which is already successful, I’ve been thinking about how to decide what’s interesting to work on. The first step is to find something people value, something they are sharing with others, and which makes them happy already.</p> <p>Here’s an example, i used to play ultimate frisbee. Teams play in tournaments all around the world, and each one has a distinct culture. The way players used to find out about cool tournaments was over the rec.sport.disc usenet group and at parties during the tournament. Teams want to know what’s cool to go to, but everybody’s definition of cool is different. For example, the hyper competitive teams like <a href='http://www.santabarbaraultimate.com/blacktide/index.html'><span class='caps'>UCSB</span></a> want to play hard all day then get drunk at night. <a href='http://ultimate.hampshire.edu/index.php'>Other teams</a> want play naked, smoke a bowl, and sample the field side <span class='caps'>BBQ</span>. There’s no good way for people navigate that social space. A website which let people share about the tournaments would be very meaningful to the small world of <a href='http://www.upa.org/'>ultimate frisbee</a>. What they need, the sites, tools, information being shared, model of permissions and openness, are distinct to that community.</p> <h2>But isn’t that yahoo, friendster, myspace, facebook, twitter…?</h2> <p>Isn’t there a generic one size fits all platform which will do this? Perhaps not. Right now facebook reigns supreme, and it’s because it does a lot of the sharing right. It’s also because they are able to make things work much better having a semi-walled garden. What’s not at all clear to me is if it’s possible, or even desirable to have one big site. Even with the F8 platform, i’ve only got one kind of relationship. Is what’s good for keeping in touch with college and work buddies good for finding a cool fall tournament to go play frisbee at? Sometimes.</p> <p>Sometimes not. When communities get big they tend to regress towards the mean. The way you share one kind of information, and with whom, is not how you want to share other information.</p> <p>Take Flickr for example. Most people use flickr to share snapshots with their family. Some people use it to become better photographers and show off their stuff. Others use it as liberated space for their own very niche subcultures, often sexual or deviant. The same space, properly segregated works pictures of your kids and eroticized pictures of 6 inch tall women. The reason it works is that flickr is very good at creating spaces and knowing how to create a space for a self managed community. It’s only by knowing a <span class='caps'>LOT</span> about sharing photos, the reasons people do it, and the spaces they need, that you start creating something wonderful. The Facebook photo gallery on the other hand is really great for sharing the kinds of photos you’d take at a party, on a trip, visiting friends. The ability to mark up and link to who in which photo is amazing. It’s something which would actually hurt members of the tiny women fetish community.</p> <p>So, one size fits all doesn’t work for political reasons, it creates incredible centralization of power. But if it were just politically bad, that wouldn’t be enough to stop it. The ways and with whom we share things are contextual. I’m sure the tiny women folks would rather not use their real names, like facebook requires, perhaps for good reason. The rules of the game, the constraints, matter. What you can do, how you share, what you share, all of these things are which there can be no universal solution. It is this dynamic which will keep facebook, or anything else, from taking over the whole of the web.</p> <h2>So what should i build?</h2> <p>I’ve been thinking about this question a lot since I left Yahoo Brickhouse. At brickhouse we spent a lot of time discussion what to build, how to go about building innovative things. What made sense for us, for yahoo, for brickhouse. Now that i’m not working for big purple any more, i’ve got to answer the same question, what do i do, what do i build.</p> <p>One option is you do consulting, and you build what the client wants, not what they say they want, but you talk them through discovering what they really want. These days everybody seems to say they want facebook. That’s being to cookie cutter. Copying the image of what works elsewhere without understanding the underlying meaning. Facebook lets people share what’s going on in their lives and present an image of themselves through that. Clients say they want facebook, but really they are trying to achieve something else, and they don’t know how to ask for it.</p> <p>People want to share. If you are an Oracle <span class='caps'>DBA</span>, you want to learn about and share information about your work. Server configuration, optimization, and stored procedures. Sharing and learning, creating community in the context of Oracle <span class='caps'>DBA</span>’s means solving their needs, knowing what they need to share and how. Some of that might be snippets of <span class='caps'>SQL</span>, but some of it might be sharing how hot shit they are, and how when they are looking for a new job you should hire them.</p> <h2>What will i build?</h2> <p>The ideas i’ve been mulling over, hacking on, and playing with are how to share things i’m personally interested in doing. Places where you see somebody is already sharing, but in a broken way. An example i like is <a href='http://localism.com/'>Localism</a>, it’s a realestate website, but instead of sharing property listings, it creates a space for agents to share information about communities. It’s the hidden knowledge that real estate agents have, and creating a site for it helps some agents show off how damned well they know their beat.</p> <p>Find something which needs to be shared, which is being shared but poorly, and build a new way of doing it which better serves the sharers. To share is a fundamental human need. It’s why solitary isolation is considered a horrible punishment. We live in a world where we have a multitude of different identities, and every one of them is reflected in a community of others. In thinking of what to do next, i’m trying to find out how to server individuals participating in their communities.</p> admin tag:anarchogeek.com,2008-08-01:/article/2008/8/1/git-you-are-in-the-middle-of-a-conflicted-merge 2008-08-01T02:00:00Z 2008-08-01T02:00:00Z Git: You are in the middle of a conflicted merge. <p>So i’m not a git expert. But i’ve been using it for about a month and i’m mostly really happy. The only time it drives me crazy is when i get this damned message. <br><br> <code>~/code/tt (master) $ git pull</code><br> <code>You are in the middle of a conflicted merge.</code><br><br></p> <p>It’s like this swamp in the gitverse. Normally merging is fine everything goes along with tons of merges branches for each feature which i merge back in. I really like it. But when merges fail git does not provide any path out of the swamp. Your magical merging technology has failed you and now you must find your own way out. Every command leads to the same damned message. “You are in the middle of a conflicted merge.” Well i know that! Trying git resolve doesn’t do much, that’s not even a command. <br><br> <code>~/code/tt (master) $ git resolve</code><br> <code>git: 'resolve' is not a git-command. See 'git --help'.</code> <br><br> So what to do, well first resolve the conflict in your merging program of choice. Almost always for me it’s just textmate, open the damned conflicted file and edit it. FileMerge and others work too, but we’re just diffing shit, it’s not too hard. <br><br> Now here’s the trick, once you fix the problem, add the files which you’ve had to edit, and commit them. <br><br> <code>~/code/tt (master) $ git add lib/im/response.rb</code><br> <code>~/code/tt (master) $ git commit -m 'I hate failed merges'</code><br> <code>Created commit 34d2648: I hate failed merges</code><br> <br><br> That’s it. I’m writing this blog post because i keep forgetting what to do, and when i search on google for the error message, <a href='http://www.google.com/search?hl=en&q=You+are+in+the+middle+of+a+conflicted+merge.'>You are in the middle of a conflicted merge.</a> i get some damned message on the kernel dev list about the development of git. <br><br> So here the steps are: <ol> <li>Pull the update from master, or whereever – git pull</li> <li>See the dreaded merge failed message</li> <li>Edit the files which failed to merge correctly cleaning up the code</li> <li>Run your tests / specs just to make sure you caught everything</li> <li>Add and commit the manually merged file. git add path/to/file.rb; git commit -m “work damnit”</li> <li>Go back to pushing and pulling in peace</li> </ol> <br><br> Git’s an amazing piece of technology with some really broken parts to it’s interface which makes learning how it works hard. <br><br> To me it’s similar to the differences between the <span class='caps'>GNU</span> stack and Solaris. I came to know about the <span class='caps'>GNU</span> tools through Linux, it was just how everything worked. Then one day i had to use Solaris, and the commands had all the same names, and worked. But not as well. The <span class='caps'>GNU</span> tools have really amazing user interface and interaction design. Seriously. Read <a href='http://www.gnu.org/prep/standards/standards.html#Command_002dLine-Interfaces'><span class='caps'>GNU</span> Standards for Command Line Interfaces</a> and you’ll be amazed, that’s what we all think of as linux and unix. It works, it’s standardized. It makes it easy to guess what’s next and discover how the application works. It’s not given credit, but that document, and the extensive toolset like readline, built on it, is what makes the internet work. It’s discoverable, it’s built on the idea that you can pipe information from one program to another, and that they will all work. If you don’t believe me, just look at <a href='http://cr.yp.to/'><span class='caps'>DJB</span>’s amazing, but far from standard apps</a>. <br><br> So what should git do? Well it should suggest a solution. Or make a solution documented in the examples of the man file. It’s pretty damned simple, fix the merge, add the file, commit, and you’re done. Instead it locks up and prevents you from doing anything until you intuit your way out of the problem. Insanity. <br><br> PS. Yes i’m lazy and should submit the fix myself, people are <a href='http://git.kernel.org/?p=git/git.git;a=summary'>submitting contributions to git all the time</a>.</p> admin tag:anarchogeek.com,2008-07-24:/article/2008/7/24/the-open-web-foundation-why-do-it 2008-07-24T17:32:00Z 2008-07-24T17:32:00Z The Open Web Foundation - Why Do It? <p>So i’ve not been involved in the newly launched <a href='http://openwebfoundation.org'>Open Web Foundation</a> but i have been following along as various folks i know worked on <a href='http://openid.net/'>OpenID</a> and <a href='http://oauth.net/'>OAuth</a>. Is it a great idea, or yet another structure? I’m not sure.</p> <p>Here’s my understanding. Most standards traditionally have been heavy vendor driven processes. Even when you don’t need $$$ or to be a big company to participate, you do need to have the resources to fly around the world to the meetings, like <span class='caps'>IETF</span>. It’s painful and nasty.</p> <p>There are a series of standards which are created using more open source / hacker / collaborative ways which are emerging from code, like extracting a framework from your application, you extract the standard from your work and best practices. It’s easy, lightweight, great, works.</p> <p>Some of these extracted open sourcey standards get picked up and big companies want to start implementing them. This is great, just look at how OAuth has gotten adopted all over the place.</p> <p>But there is a problem, these big companies have lawyers and their lawyers are both stupid and evil. Lawyers created the stupid and evil system of intellectual property. These lawyers all seem to have adopted a particularly brain dead view of what my happens with related to participation and patents and intellectual property rights.</p> <p>They think that unless you have a magic paragraph which says you don’t grant patents and intellectual property rights just by participating in a standards process, or even <span class='caps'>USING</span> or <span class='caps'>READING</span> a standard, the big corps loose their rights to enforce their patents.</p> <p>Yes it’s super stupid, but that’s what you get when you let lawyers run your world.</p> <p>So the <a href='http://openwebfoundation.org'>Open Web Foundation</a> is about creating something which will shut the lawyers up and let these bottom up, extracting standards folks still work without having to die the death of a thousand meetings with legal.</p> admin tag:anarchogeek.com,2008-07-23:/article/2008/7/23/beyond-rest-building-data-services-with-xmpp-pubsub 2008-07-23T23:06:00Z 2008-07-23T23:06:00Z Beyond REST? Building Data Services with XMPP PubSub <p><a href='http://laughingmeme.org'>Kellan</a> and I gave a talk today at OSCON about some ideas we've been playing with around how to make web services work as things keep getting bigger and faster. Apparently it was well received. </p> <p> UPDATE: There's a great write up by Robert Kaye <a href='http://radar.oreilly.com/2008/07/oscon-day-1-beyond-rest-buildi.html'>about the talk by on O'Reilly Radar</a> and Joshua Schachter <a href='http://joshua.schachter.org/2008/07/beyond-rest.html'>confirmed similar use / abuse pattern for delicious</a>. </p> <div id='__ss_525883' style='width:350px;text-align:left'><a href='http://www.slideshare.net/rabble/beyond-rest-building-data-services-with-xmpp-pubsub?src=embed' title='Beyond REST? Building Data Services with XMPP PubSub' style='font:14px Helvetica,Arial,Sans-serif;display:block;margin:12px 0 3px 0;text-decoration:underline;'>Beyond REST? Building Data Services with XMPP PubSub</a><object height='355' width='350' style='margin:0px'><param name='movie' value='http://static.slideshare.net/swf/ssplayer2.swf?doc=beyond-rest-narrative-1216853401785467-9' /><param name='allowFullScreen' value='true' /><param name='allowScriptAccess' value='always' /><embed allowfullscreen='true' type='application/x-shockwave-flash' src='http://static.slideshare.net/swf/ssplayer2.swf?doc=beyond-rest-narrative-1216853401785467-9' allowscriptaccess='always' height='355' width='350'></embed></object><div style='font-size:11px;font-family:tahoma,arial;height:26px;padding-top:2px;'>view <a href='http://www.slideshare.net/rabble/beyond-rest-building-data-services-with-xmpp-pubsub?src=embed' title='View Beyond REST? Building Data Services with XMPP PubSub on SlideShare'>presentation</a> (tags: <a href='http://slideshare.net/tag/xmpp' style='text-decoration:underline;'>xmpp</a> <a href='http://slideshare.net/tag/pubsub' style='text-decoration:underline;'>pubsub</a> <a href='http://slideshare.net/tag/rest' style='text-decoration:underline;'>rest</a> <a href='http://slideshare.net/tag/oscon' style='text-decoration:underline;'>oscon</a>)</div></div> admin tag:anarchogeek.com,2008-07-20:/article/2008/7/20/does-genuine-tech-innovation-happen-better-in-a-recession 2008-07-20T02:09:00Z 2008-07-20T02:09:00Z Does genuine tech innovation happen better in a recession? <p>I know this may sound a little counter intuitive, but bear with me. There are some important kinds of innovation in technology which require a recession and not full employment. In the late 90’s there was the huge dot.com boom, everybody who could code at all was working from dawn to dusk. Some people made huge amounts of money, some also lost it, others just worked endless hours.</p> <p>Then there was a collapse, huge numbers of geeks were unemployed, hundreds of thousands in the san francisco bay area alone. Out of that collapse there was time for people experiment, play with stuff, do things which were not required for meeting the next deadline. That recession and massive underemployment of geeks created blogging as we know it today.</p> <p>It also laid the groundwork for the small agile startups which optimize the whole web 2.0 thing. Ludicorp which could go from building a multiplayer game to <a href='http://flickr.com'>photosharing site</a>. <a href='http://37signals.com'>Design shops</a> who have time to <a href='http://rubyonrails.org'>roll their own web framework</a> in an <a href='http://ruby-lang.org'>obscure programming language from japan</a>, and the like.</p> <p>When you are busy and having paying clients banging on the door, you don’t have time to focus on exploring new areas, discovering the depth and meaning of your medium. When i was working at <a href='http://odeo.com'>odeo</a> we were all heads down, coding, fixing, building, getting the damned thing done. There was real competition, apple and yahoo were both wanting to crush us with their huge legacy advantages of userbases and platforms. It was only once we realized we’d lost, that Odeo wasn’t going to be the podcasting platform we’d envisioned, that <a href='http://evhead.com'>Ev</a> decided to do a series of hack weeks, play with new ideas, see if there wasn’t something new which could be created. That playing around seemed like floundering to me at the time. I was frustrated and burned out. But that process is what helped <a href='http://gu.st'>Jack</a> pickup some ideas he’d had floating around in his head for years, but no time to work on. Those ideas became <a href='http://twitter.com'>twitter</a>, called <a href='http://twttr.com'>twttr</a> at the time.</p> <p>The dot bomb wasn’t the only time when many techies were underemployed. I was reading <a href='http://casperfabricius.com/blog/2008/04/02/ruby-fools-matzs-keynote/'>a review of Matz’s keynote at Ruby Fools</a> in denmark a few months ago and something jumped out at me. <blockquote>“The recession in Japan meant that Matz – while not unemployed – didn’t have many assignments at work, so he secretly started to hack away at Ruby at the office.” </blockquote></p> <p>Not only was blogging the result of industry wide underemployment of geeks, and twitter the result of a similar thing within a single company, but Ruby was created in a very similar environment during the recession in Japan in the 90’s.</p> <p>To the vast majority of programmers, it’s a job, they’re the <a href='http://www.codinghorror.com/blog/archives/001002.html'>%80 who are vocational programmers</a>. They program during their work day, and go home to do other things, on the weekend they aren’t working on their own projects. Then there are the people who are obsessed, the geek’s geek as it where. We believe in learning <a href='http://weblog.raganwald.com/2007/10/challenge-of-teaching-yourself.html'>a new programming language every year</a>.</p> <p>Real innovation in software seems to happen when we have underemployment of the true geeks. Either inside of companies where the geeks are allowed to explore, or outside of companies through economic forces. Long hours and tight focus is often needed to get a startup going, or ship software, but it’s not what creates something really new.</p> <p>It’s ironic, the very forces of modern capitalism which praise the internet economy as being the ultimate in friction free globalized markets hold back real innovation. It’s the down cycles, either within companies or in the broader labor market, which give the innovators space to risk walking down dead ends. It’s a cliché to say that you need to be able to fail if you are going to take real risks. When geeks are free to hack on their own then no deadlines, just interesting spaces to explore. It’s then that we see real innovation.</p> <p>I spent a year working at Yahoo Brickhouse, we were supposed to be <a href='http://www.businessweek.com/technology/content/feb2007/tc20070209_179924.htm'>yahoo’s ‘inner startup’</a>. We were going to find a way to create new stuff, employed to wander in the woods and come back with amazing ideas. We were told that it was ok to fail 9 times out of 10. We built several things which never made it out the door, two which made it to beta launch, <a href='http://waxy.org/2007/12/exclusive_yahoo/'>Bravo Nation</a>, and <a href='http://fireeagle.yahoo.net'>Fire Eagle</a>. I’m not sure what the future of Bravo Nation is, but i know Fire Eagle is going to launch and it’ll be a major part of making location based systems interoperate. Fire Eagle was a project which was started by <a href='http://plasticbag.org'>Tom Coates</a>, <a href='http://www.paulhammond.org/'>Paul Hammond</a>, and <a href='http://simonwillison.net'>Simon Willison</a>, they were working from London and largely ignored by everybody at Yahoo. Before they could finish they were taken off of the project to finish higher priority things. Then <a href='http://www.yahooresearchberkeley.com/'>Yahoo Research Berkeley</a> said, oh there are some neat ideas here, and they played with it for a while, they were also ignored by the larger yahoo who focused on shipping things rather than playing with interesting concepts. Eventually Tom talked Brickhouse in to joining in on this crazy location broker idea and it took another 6 months of work to get a beta out the door. The whole process went round and round all the while yahoo was doing it’s own internal soul searching. At the end of the day Brickhouse had to make either BravoNation or Fire Eagle succeed or it was getting restructured in to who knows what. The day of the big layoffs back in February, Brickhouse lost it’s director, <a href='http://salimismail.com/?p=83'>Salim Ismail</a>, and his boss yahoo vice president <a href='http://www.elatable.com/blog/2008/02/14/on-leaving-yahoo/'>Bradley Horowitz</a>. <a href='http://www.caterina.net/'>Caterina</a>, who had the brickhouse idea in the first place, had already left on maternity leave. <a href='http://www.chaddickerson.com/'>Chad Dickerson</a> was left in charge and did amazing work to help fire eagle get out the door and support <a href='http://live.yahoo.com'>Yahoo Live</a>. Clearly we weren’t actually allowed to go off and fail 9 times out of 10 in the process of coming up with a crazy new and important idea.</p> <p>What i find truly ironic about the process is we did end up coming up with a pretty damned good idea. That of using <a href='http://oauth.net'>oauth</a> and webservices to broker information between other applications and services on the web while leaving the user in control and protecting privacy. Were we the only ones who came up with it? No, innovation is about a community of thinkers, there were many people involved who work at many places including twitter, pownce, magnolia, six apart, wesabe, flickr, many others, and of course yahoo and google. You see it now with interest in federated social network, the <a href='http://www.gnipcentral.com/'>gnip project</a>, and other stuff which is still in the works.</p> <p>Shipping a product and being innovative are often not compatible goals. The innovation happens in the downtime, then once an idea has gelled, the innovation stops and the work of creating production code begins. Sometimes it’s the same folks, most of the time it’s different folks. Often there is a long gap between the ideas being created and somebody building something useful on top of them.</p> <p>We need recessions and underemployment of the innovators for them to have time to do their work. In a more ideal world, we would support this just like we should support having artists in society. Until we change it, we’re stuck with dumb brutish capitalism which has lucked in to creating these spaces for innovation.</p> <p>Update: I fixed some of the spelling and grammar problems, thanks. :)</p> admin tag:anarchogeek.com,2008-07-16:/article/2008/7/16/dear-lazyweb-what-s-a-good-prosumer-soho-wifi-router-access-point 2008-07-16T16:21:00Z 2008-07-16T16:21:00Z Dear Lazyweb: What's a good prosumer soho wifi / router / access point? <p>So i’m sick of flaky wifi / routers / access points. I’ve had netgear’s, d-link’s, belkin’s, and linksys routers. To me they all were about the same, which is to say they worked some of the time.</p> <p>Before i go back to getting one more of the same to replace my now limping netgear, i’ve thought, what if i got something more than the cheapest consumer class wifi router. I know that hotels, conference centers, and all sorts of other places have wifi which doesn’t need to be restarted on a regular basis, that doesn’t suck. Sure some have wifi which sucks, but some don’t. The same goes with companies, at Yahoo! there was good wifi coverage all over campus, their crazy vpn made it hard to use, but the coverage was there.</p> <p>So then my question becomes, what are my options one level up? So far a little searching around i found the <a href='http://www.cisco.com/en/US/products/ps5678/Products_Sub_Category_Home.html'>Cisco Aironet’s</a> which start around $200 for the lower end models and the <a href='http://www.zyxel.com/web/product_family_detail.php?PC1indexflag=20040908175941&CategoryGroupNo=81AD76FF-54E8-484F-A2C5-4B2C83DFD32B'>ZyXAL’s ZyWALL 2WG</a> router which supports 3G as a backup connection in addition to being a wifi router at $250+.</p> <p>Are those good routers? What are the alternatives in that quality range? Has anybody tried and used either of those?</p> <p>Dear lazyweb, please help….</p> admin tag:anarchogeek.com,2008-07-10:/article/2008/7/10/iphones-in-argentina-uruguay-and-paraguay 2008-07-10T19:22:00Z 2008-07-10T19:22:00Z iPhones in Argentina, Uruguay, and Paraguay <p>So while everybody up north is getting ready for the introduction of the 3G iPhone, it’s also arriving down at the bottom of the world. Apple chose the mexican company, Claro, formerly <span class='caps'>CTI</span> Movil, to sell iPhones in latin america, probably because they could go with provider and get the whole region.</p> <p>While Claro hasn’t been very clear about exactly how much the iPhone will cost, when it’ll be for sale, or really anything except to say that it’s coming. I do have some information.</p> <p>According to their <a href='http://es.engadget.com/2008/06/21/los-precios-del-iphone-en-mexico/'>prices posted for mexico</a> the monthly plans will cost between $45 <span class='caps'>USD</span> per month and $85 <span class='caps'>USD</span> per month. The <a href='http://www.fayerwayer.com/2008/06/%C2%BFlos-precios-y-planes-del-iphone-de-claro/'>rumors for chile</a> had similar prices. The phone will cost between $450 <span class='caps'>USD</span> and $0 <span class='caps'>USD</span> depending on contract, 8gb vs 16gb, etc… Taxes included, which in latin america are substantial, here in Uruguay the <span class='caps'>IVA</span> sales tax is %21.</p> <p>How many iphones are coming down south? Well i don’t know all the numbers, but Claro’s confirmation page when you request notice about the phones says that they have imported 20,000 phones to Argentina, Uruguay, and Paraguay each. On the surface that seems fare, each country gets a nice shipment. The problem is, Argentina is a <span class='caps'>MUCH</span> bigger country than the guay’s. Argentina’s population is 40.6 million, Paraguay’s 6.8, and Uruguay’s 3.4. The data i found is from 2006, but Argentina’s cell phone penetration is better than %76. Uruguay’s is %67, and Paraguay’s is %47. So not only did Argentina get fewer phones, they’ve got more people are likely to <span class='caps'>WANT</span> one. There are 13.5 times more iphones for sale when adjusted for the cellphone ownership market in Uruguay than Argentina!</p> <p>Given that it’s a couple hour ferry ride across the river from Argentina to Uruguay i expect there might be a grey market of Argentines buying their iPhone from Claro Uruguay if Claro Argentina sells out.</p> <p>There have been come claims that <a href='http://www.elpais.com.uy/Suple/Empresario/08/06/13/elempre_351671.asp'>Movistar (owned by the spanish telefonica) also will be selling iPhones in latin america</a>, but clearly it’s not at launch, because there’s nothing on their websites about it.</p> <p>I’ll followup when they actually release their prices and say when they will start selling them.</p> admin tag:anarchogeek.com,2008-07-07:/article/2008/7/7/the-ascendancy-of-hacker-news-the-gentrification-of-geek-news-communities 2008-07-07T15:49:00Z 2008-07-07T15:49:00Z The ascendancy of Hacker News & the gentrification of geek news communities <p>I’ve been reading the reddit clone site, <a href='http://news.ycombinator.com/'>Hacker News</a> from ycombinator more lately. It’s got a nice combination of alpha geek tech and small / agile startup topics. While i like the political news on <a href='http://reddit.com'>reddit</a>, honestly it’s stopped being very topical for me… to much taken over by link spammers i think who are gaming the system for traffic. The subsites like <a href='http://ruby.reddit.com'>ruby.reddit.com</a> are still a great source of traffic.</p> <p>What has surprised me is that Hacker News seems to have found me about the same time i found it. When i went to go do a post i thought might be relevant to the community, about moving email from using smtp to xmpp, i posted it on hacker news. Only after did i discover that <a href='http://news.ycombinator.com/item?id=223085'>somebody had already posted a link to it</a>.</p> <p>Then yesterday i did wrote another blog post, this time about leaving yahoo brickhouse, and again over half the traffic came from <a href='http://news.ycombinator.com/item?id=238362'>another link posted to hacker news</a>. So what’s going on here? Well first the community of folks has shifted. It’s previous semi-private places have been lost and new places created.</p> <p>For me long ago i read <a href='http://slashdot.org'>slashdot</a>, then <a href='http://www.kuro5hin.org/'>kuro5hin</a>, then <a href='http://del.icio.us/network/rabble'>my delicious network</a>, then <a href='http://reddit.com'>, then <a href='http://news.ycombinator.com/'>Hacker News</a>. There were others in there too, i get lots of links from reading topical blogs like <a href='http://rubyinside.com'>rubyinside</a>, activist news from <a href='http://indymedia.org'>indymedia</a>, etc…</p> <p>The shift of online communities resembles urban development and the gentrification of many hip neighborhoods. The artists and hackers move in first, they are in development parlance, risk tolerant. For urban neighborhoods that means they’ll deal with crime if they can get cool warehouses to take over. Then slowly the neighborhood transforms, and gets some nice cafes and clubs, gets known as the place where the hip kids play, and more people come. Rent gets driven up, the crowds come, it becomes to crowded, and the hipsters have to move on. Just replace hipsters with alpha geeks and you get the same process.</p> <p>We are creating virtual communities and then by our very own actions gentrifying them!</p> <p>So why do i like the small sites, not just hacker news, but <a href='http://www.dzone.com/'>dzone</a>, <a href='http://rubyflow.com/'>rubyflow</a> and a bunch of others? Well for one because they work well for me. I can submit a link, or in the case of hacker news, somebody else in the community links to my stuff, and then i get traffic. A lot of traffic really, I can get 7 votes, but that translates in to 300 to 3000 visits to the article. It’s much harder to get on the front page of reddit, or dare say digg where the true unwashed masses of tech news junkies hang out these days. It’s even harder to get on top of yahoo buzz, where a few hours on the top page can lead to millions of page views.</p> <p>Are we doomed to keep creating these communities, enjoying them for a while, then having to abandon them and move on? When i helped start <a href='http://indymedia.org'>indymedia.org</a> back in 1999, we thought open publishing, the ability to put on the internet your own articles, videos, pictures about news was revolutionary. It was a big deal, this was before you could just create a blogspot or wordpress site. Our enemy was <a href='http://CNN.com'><span class='caps'>CNN</span></a> the site which only showed you the news they wanted… But today cnn has <a href='http://www.ireport.com/'>Unedited. Unfiltered. News. iReport.com</a> which is pretty damned similar to what we were doing with indymedia. Then then take some of the news created on ireport and integrate it to cnn.com’s site and use it in the news. The <span class='caps'>BBC</span> does something similar.</p> <p>The point is, we won. We took an idea, which said that the masses should be able to make their own media, and we did it as an example and eventually the people we were fighting against started copying us. No we didn’t win all of what we wanted, we had a political agenda which we able to advance here and there, we stopped the <span class='caps'>WTO</span> round, ended the <span class='caps'>FTAA</span> (free trade area of the americas), but in may ways we won.</p> <p>So what does that mean to online communities, generating and finding news? Well first off it turns out that we, the broader hacker community is doing a good job at coming up with models which change the world. From blogs to wikis to link voting and collaborative editing, we’re coming up with ideas which other people are copying. Or sometimes the hacker community’s tools become mainstream. But we also face the reality that there is a tremendous value in influencing what gets seen.</p> <p>If you can make a website which gets a lot of traffic, there is money to be made there. That’s the attraction of the <span class='caps'>SEO</span> / <span class='caps'>SEM</span> world. They’re not respected by true hackers, but they are huge, and they come in and destroy communities like reddit.</p> <p>One option is we just keep moving, which is what we’ve been doing. From slashdot to kuro5hin, from digg to reddit from reddit to hacker news.. The other option is we try and build in to our systems anti-SEO / <span class='caps'>SEM</span> protections. Find ways to use emergent behavior to find real and relevant content without having it be gameable. Twitter stopped spammers by using tinyurl for all links… Delicious did it by making it so my network is people i choose. The link voting sites will have a hard time. Perhaps we’ll just switch sites every 6 months to a year, but there’s got to be a better way.</p> admin tag:anarchogeek.com,2008-07-06:/article/2008/7/6/good-bye-to-the-purple-mothership-leaving-yahoo 2008-07-06T21:04:00Z 2008-07-06T21:04:00Z Good Bye To The Purple Mothership: Leaving Yahoo <p>I just realized that i forgot to post anything on my blog about this… woops! I left Yahoo Brickhouse in April. I twittered about it, but wasn’t sure what to say in a blog. While at Yahoo i got to do the architecture work and a lot of the development of Yahoo! <a href='http://fireeagle.yahoo.net'>Fire Eagle</a>. We launched the first rails app at Yahoo and were the first to release a working OAuth implementation. Working with Brickhouse was amazing, a great group of people who worked incredibly hard to release an amazing product.</p> <p>Working with, or rather for Yahoo, was not so great. It was a constant painful struggle. Maybe at some point i’ll sit down and write about the relationship the reform movement part of yahoo had with the mothership. While i tried to make things better, i’m not sure that improving the quality of a fortune 500 company is really my cup of tea.</p> <p>I have looked at a number of options since leaving Yahoo, and decided to spend some time coding along side the amazing geeks at <a href='http://entp.com'>entp.com</a>. One time at a foocamp i heard somebody say, “find the smartest group of people you can and work with them.” Entp makes <a href='http://lighthouseapp.com/'>Lighthouse</a> a ticket tracking system that rails itself uses, and a few other apps.</p> <p>Moving to a small agile company is a breath of fresh air. Instead of we need to have a meeting about it, my questions get answered with, “sounds good, <a href='http://edgibbs.com/2007/04/23/josh-susser-on-contributing-to-rails/'>pdi</a>”. Instead of being told that subversion is on the timeline for 2 years from now, everybody’s using git.</p> <p>In addition to working with entp i’m also doing some work as an adviser to <a href='http://mapufacture.com'>mapufacture</a>, <a href='http://change.org'>change.org</a>, and others helping them with scaling, architecture and tech strategy.</p> rabble tag:anarchogeek.com,2008-06-20:/article/2008/6/20/the-future-of-email-from-smtp-to-xmpp 2008-06-20T02:16:00Z 2008-06-20T02:16:00Z The Future of Email: From SMTP to XMPP <p>Email is dead! Long live email!</p> <p>Email has long been the killer app of the internet. It has taken us to a world were everybody has an address and anybody can send an email to anybody else. Email works incredibly well.</p> <p>At the same time, email is totally broken. Address books are painful to maintain, and they don’t tell us about somebody’s ability to actually reach another person. Spam is a major problem, i have no easy way of saying who i want to be able to send me messages, no way of saying, i don’t want messages from you any more. Spam, and getting around spam filters with legitimate email is a huge problem. The vast majority of email is spam.</p> <p>There is a reason the myspace/facebook generation hardly use email. They’ve got a system which solves the spam issue, built in is a buddylist which lets you define who can send you messages. It’s also a realtime system rather than a store and forward system expecting users to be mostly offline. The problem is these message systems are walled gardens.</p> <p>Jabber, and it’s <span class='caps'>XMPP</span> protocol, were built for IM, but they made it super flexible. It can easily be used for email to solve the delivery permission / address book issues. Now i can easily authorize people to send me messages.</p> <p>The addresses are even compatible, so you can have a bridge, attempt to deliver via xmpp and if the domain doesn’t handle xmpp roll back to smtp.</p> <p>Of course i’m far from the first person to have thought of this, it’s come up in <a href='http://mibus.cgcommunity.com/index.php?id=405'>2004</a>, <a href='http://www.deepdarc.com/2006/03/30/email-via-xmpp/'>2006</a> and <a href='http://singpolyma.net/2007/07/replacing-smtp-with-xmpp/'>2007</a>. So the question is, why hasn’t it happened. Well first off, these things don’t just happen on their own, somebody has to do the work, write software, organize it, make the change you want to see.</p> <p>How could we get from here to there? Kill email so that email can live free?</p> <p>Well the way i see it there are several things which need to happen. It’s a chicken and egg issue, nobody is sending email via xmpp because nobody can receive email via xmpp, the clients don’t exist. Nobody’s building xmpp email clients because nobody’s sending email via xmpp to receive.</p> <p>There are some things working towards adoption of xmpp for email. Critically, the email address can stay the same. Many of the alpha geeks already use the same address for their email and their jabber IM accounts. The email address is deeply embedded in the culture and any attempt to vary from it would doom the move to email over xmpp.</p> <p>The second thing which can help lead to adoption of xmpp email is the integration of email / messaging and IM. You see it in yahoo mail, facebook, and myspace. The big email / messaging providers are already routing IM messages alongside the email.</p> <p>The third third thing which will help is we don’t actually have to get very many providers to adopt xmpp email to get critical mass. Despite email’s incredibly federated nature, there are a few providers who have hundreds of millions of accounts. Get one, or several of those providers to switch and provide xmpp email support <b>in addition to</b> smtp email, and you’d be able to use that to shift everybody over. The promise of getting out of spam filters will be enough to get the big senders to jump over, and once you’ve got both sides, then it can take years for the rest of the net to move over, it has to be a gradual process. Once you’ve got a big provider who accepts email via xmpp, then you can work on building out library support, create the email extensions to ejabberd, openfire, etc… and bridges to sendmail, exim, postfix, etc..</p> <p>The obvious people to do this are the google gtalk & gmail teams. They’ve already pushed the idea that my gmail address IS both email and IM. They’ve got the servers running in parallel. It’s simply a matter of building out a test setup, defining how the standard will work, and getting gmail to support it.</p> <p>This is not to say that there aren’t others who could do it. My ex-employer, Yahoo! could do it, but fixing the future of email is probably not a high priority. Microsoft could do it, but they have a hard time adopting open standards and wouldn’t be trusted by the open source developer community who maintain the current technology stack which makes email work. Other than google, the only other player who i could adopting this and pushing it forward is actually <span class='caps'>AOL</span>. While mostly ignored, <span class='caps'>AOL</span> has been pretty decent at adopting and pushing new technology and could see this as a way of getting back in to the lead setting trends for the future.</p> <p>While we wait for somebody big to adopt it, building proofs of concept, making a system which will work, would probably push forward the case for replacing smtp with xmpp as our global email delivery system.</p> rabble tag:anarchogeek.com,2008-05-02:/article/2008/5/2/speaking-about-fire-eagle 2008-05-02T01:00:00Z 2008-05-02T01:00:00Z Speaking about Fire Eagle <p>Last month I spoke about <a href='http://fireeagle.yahoo.com'>Yahoo! Fire Eagle</a> at the <a href='http://ecommmedia.com/'>Emerging Communications Conference</a>. Lee did a great job putting together the conference, and had everything recorded. I feel i did an ok job explaining Fire Eagle, but perhaps i had too much coffee to make up for being on the tail end of a dozen straight days of conferences.</p> <p>So if you’re interested in Fire Eagle as it relates to the mobile and telephony world, this is a good talk. The slides <a href='http://www.slideshare.net/rabble/liberating-location-fire-eagle-ecomm-2008/'>are online at slideshare.net</a>.</p> <embed type='application/x-shockwave-flash' src='http://video.google.com/googleplayer.swf?docid=3606496010130914256&hl=en' id='VideoPlayback' flashvars='' style='width:350px;height:276px'> </embed> <p>It’s humbling to see a video of yourself speaking. Public speaking is really hard. I’ve been trying to work on my presentations, and i’m getting better over time.</p> <p>Next week i’m going to be speaking at xtech in dublin in <a href='http://2008.xtech.org/public/schedule/detail/646'>a longer talk about Fire Eagle</a>. I’ll get in to the actual api’s and bit about building apps with Fire Eagle. In July i’ll be co-speaking with <a href='http://laughingmeme.org'>Kellan</a> about using jabber for web services in <a href='http://en.oreilly.com/oscon2008/public/schedule/detail/4359'>Beyond <span class='caps'>REST</span>? Building Data Services with <span class='caps'>XMPP</span> PubSub</a> at <a href='http://en.oreilly.com/oscon2008/public/content/home'><span class='caps'>OSCON 2008</span></a>. In between i’ll be at <a href='http://www.caboo.se/articles/2008/1/30/caboose-conf-2008'>Google IO</a> and <a href='en.oreilly.com/rails2008/'>Rails Conf</a> / <a href='http://www.caboo.se/articles/2008/1/30/caboose-conf-2008'>Caboose Conf</a>, but thankfully i won’t be speaking, unless i get inspired to do a lightning talk.</p> rabble tag:anarchogeek.com,2008-04-30:/article/2008/4/30/funny-olpc-story-how-do-you-delete-files 2008-04-30T20:15:00Z 2008-04-30T20:15:00Z Funny OLPC Story - How do you delete files? <p>So today i sat in on a meeting with some folks in the Uruguayan government who were trying to get ebook type educational material to laptops of the kids who have them now in uruguay. There are about 200,000 laptops being distributed, and it would cost too much to print books with the material, so they figured these laptop things might be a good way of doing it. In the discussion they told me this little story about tech support and the <span class='caps'>OLPC</span> or Project Ceibal as it’s called in Uruguay.</p> <p>It seems that during the first trial in the Florida Department of Uruguay they were having a problem. The kids it seems were downloading too much stuff from the internet. The laptops have a 1 gb flash drive, so it’s pretty easy to see how it could fill up. So the teachers told the ceibal folks that this was a problem, the drives were filling up and nobody knows how to delete files.</p> <p>Well this is a problem, so there were meetings, and more meetings, how to delete files, they called up the University of Uruguay’s Engineering Faculty and investigated further. After four months of back and forth they had the answer and somebody traveled up to Florida (the uruguayan florida) with the answers and a training to teach the teachers how to delete files. It was after all what they asked for.</p> <p>When they got there the teachers said, “oh, that! The kids figured out how to delete the files and manage them months ago.” Which is of course the whole point of <span class='caps'>OLPC</span>, the kids can use the tech, it’s open, hackable, and explorable.</p> <p>Another story is a friend of mine was visiting his cousin and the cousin was excited because he just got one of the laptops. But he said there was a problem, some of the interface was in english. My friend, being a programer, sat down and tried to figure it out. It seems that was some problem with the packages, he’s not exactly sure what’s wrong. But at one point “Save” was translated as “Salvar” instead of “Guardar” Salvar does mean save, but in the kind of way that Jesus Saves. Not the kind of thing you’d do with files, which is Guardar which might literally be translated something more like ‘to put away’ than ‘save’. I asked the <span class='caps'>OLPC</span> folks about it on irc, and they said that perhaps the build being shipped out in uruguay is out of date with what they currently have released. Clearly they need a good logistics person / team to do release management and handling lots of branched distributions. Not an easy task.</p> <p>On the whole people seem excited about <span class='caps'>OLPC</span>. It would be good if the Uruguayan government could do something about class size, 1 teacher for 40 students is the <span class='caps'>REAL</span> education problem, but the laptops help.</p> rabble tag:anarchogeek.com,2008-04-25:/article/2008/4/25/two-conversations-about-tests-and-software-development 2008-04-25T19:58:00Z 2008-04-25T19:58:00Z Two conversations about tests and software development <p>I’ve had the privilege of working with many developers over the years on a diversity of projects. I like tests, i think they make the software development process more reliable and help keep code from being unmaintainable disasters. So i find it interesting to see why inspires people to write tests, and why they give up on them.</p> <p>Recently i had a very similar conversation with two very different developers, one i’ll call TestFail and the other i’ll call TestHeavy.</p> <blockquote><b>Rabble:</b> “I see there are tests on this project, but they don’t seem to pass anymore.”<br /> <b>TestFail:</b> “Yes, I was writing tests but then things got busy and I couldn’t keep them up. The tests feel out of sync with the application 6 months ago. I was the only developer on the project and i just couldn’t keep up the tests and getting releases out the door.”</blockquote> <p>Then i had another conversation with a different developer on the same subject.</p> <blockquote><b>Rabble:</b> “I see there are a lot of tests for this project.”<br /> <b>TestHeavy:</b> “Yes. The thing is when a project gets really pressured for time it’s the tests which make it possible to add features and keep moving forward. Normally I just develop on my own and don’t tend to work with other developers on projects. I found having tests means i can keep getting releases out the door.”</blockquote> <p>In both cases i’m paraphrasing from memory, but the thing which struck me is that two smart developers used the same two reasons to come up with totally different conclusions around testing. The two principal points are, i’m working on my own, and there is heavy time pressure on releases.</p> <p>The code bases in question, i’ll keep this all anonymous to respect privacy, are also really different. First off, the applications do totally different things, but it’s enough to say that they are both fairly complicated web applications built in rails.</p> <p>TestFail’s application has 44075 lines of application code and 778 lines of tests. Over the last year the code base has grown by over %50. On the other hand, TestHeavy’s code base is 4014 lines of application code and 4802 lines of tests (technically specs as it uses rspec). TestHeavy’s code base is younger, but over the last 6 months it’s only added a couple hundred lines of new code. Many new features have been added, but the size of the application has stated more or less the same.</p> <p>While i clearly prefer TestHeavy’s approach, what puzzles me is the path taken by TestFail. There are many interesting things to be learned by watching the techniques of an effective test driven developer, but that’s kind of an easy problem. Just watch what they do and document it.</p> <p>Harder is to understand why somebody fails. When somebody starts writing tests but finds they aren’t a useful part of their software development practice. It could be considered the ‘falling off the wagon’ problem. Really to me it’s a question of why is testing not the path of least resistance. What needs to happen for a developer to internalize testing.</p> <p>If tests are written, and they are relevant to the the functionality of the application, the code base stays smaller, faster, and is more maintainable. But telling people that it’s a good idea to write tests, even getting them started and using tests isn’t enough. Figuring how to help people continue is even more important. I suspect that a large part of the problem is that people partially start using tests, but they don’t ever get a development environment which is setup to encourage testing. It’s painful and difficult as opposed to making debugging easier and development faster.</p> <p>Does anybody have experience with trying and failing to stick with testing. Why was it?</p> rabble tag:anarchogeek.com,2008-04-13:/article/2008/4/13/building-flex-3-flash-swc-libraries-on-mac-os-x-with-ant-and-flex-builder-3 2008-04-13T21:35:00Z 2008-04-13T21:35:00Z Building flex 3 (flash) swc libraries on mac os x with ant and flex builder 3 <p> I strongly believe in learning new languages and platforms. While i’m super happy with the <a href='http://ruby-lang.org'>ruby</a> / <a href='http://rubyonrails.org'>rails</a> / <a href='http://www.merbivore.com/'>merb</a> world, I know it has it’s limits. Most of the time when i look farther afield i think of hacking on lua, erlang, or smalltalk… But recently i had an app idea which struck me as something which really was a good fit for <a href='http://www.adobe.com/products/air/'>Air</a>. Adobe’s version of Flash to run desktop applications. Let me say at first I though Air was stupid, but over time i’ve come to realize that for some applications, it makes lots of sense. It’s similar to my thinking Flash was stupid until it <a href='http://anarchogeek.com/articles/2006/06/01/video-sites-indymedia-and-the-future-of-non-linear-television'>changed the world of online video</a>, and ActionScript was some stupid director derived toy language until I realized that these days it’s <span class='caps'>EMCA</span> script, basically the same damned thing as Javascript. </p><p> So i set out on the path of building an Air app. I asked my old buddy, <a href='http://dom.net'>Dom</a> and he said there were two <span class='caps'>IDE</span>’s for Flex development, <a href='http://www.adobe.com/products/flex/'>flex</a> is the updated version of flash which is more programming like vs Director scripting like. Flex draws on the java world’s traditions more than the scripting world, a sin may be forgivable if i am able to build this cool app i’ve thought up. For Flex there are two <span class='caps'>IDE</span>’s <a href='http://www.aptana.com/studio'>Apatna </a> (free and ‘professional’ edition) and Adobe’s own <a href='http://www.adobe.com/go/flex_trial'>Flex Builder 3</a> which is payware, but you get a 90 free trial to play with. The core is actually free, the <span class='caps'>SDK</span> to build flex apps and it comes with no <span class='caps'>IDE</span>, but just command line tools. </p><p> Flex draws on Java, there are tools like <a href='http://ant.apache.org/'>ant</a> which are used for all the build processes. Really the <span class='caps'>IDE</span>’s are both based on customized versions of eclipse. I’m not a fan of <span class='caps'>IDE</span>’s they seem to be needed when the development processes has gotten to complicated to fit inside your head and try and make everything point and click. Silliness. Flex can use html to render an interface, but it also has it’s own proprietary xml for laying out interface elements. It creates a dom like thing, which you can attach action script events to… Once you get over how different it is from real web development, at some level it’s the same damned thing. It’s worth stating, that you <a href='http://www.adobe.com/accessibility/index.html'><b>can</b></a> make flash as standards compliant, open, accessible, etc as html and unobtrusive javascript, but nobody seems to actually do it. Just yesterday i was noticing that yahoo map’s flash app wouldn’t let me paste in an address. Just like rails and django encourage you to do the right thing by default, flash defaults to clunky custom interface elements with broken accessibility. </p><p> Anyway, back to what i was saying. How to make this stuff work. There are it seems a lot of people with <a href='http://weblogs.macromedia.com/mxna/index.cfm?query=bySmartCategory&smartCategoryId=4&smartCategoryName=Flash&smartCategoryKey=D03946CE-BE57-8C18-7F13A6688166DAA8'>flash / flex development blogs</a> which is useful, but on the whole i’ve been very unimpressed with the documentation. There’s a <span class='caps'>HUGE</span> amount about how to do various UI widget things, and very little about toolsmithing, libraries, building out flex as a platform. </p><p> The thing is, i know how a rails app works, how php plays with apache and a load balancer. I don’t know how these flex apps come together. It found lots of tutorials on building toy apps, but not a one ever mentioned using a library you find online and incorporating it in to your application. I suspect it’s because the open source tradition is pretty week in the flash world. Just like in VB and Java, because you pay for the <span class='caps'>IDE</span>, it creates a culture of pay to play. It stands in stark contrast to the scripting world of Perl, <span class='caps'>PHP</span>, Python, and Ruby. In the scripting world we build libraries for our own uses, then release them for the community to use and help maintain. The only libraries i’ve found to be released so far in the flex world, come from Adobe employees themselves. Clearly it’s a failure of community that there is repository of open source libraries like <a href='http://search.cpan.org'><span class='caps'>CPAN</span></a>, <a href='http://www.gemtacular.com'>Ruby Gems</a>, <a href='http://pear.php.net/'><span class='caps'>PEAR</span></a>, and the <a href='http://pypi.python.org/pypi'>Python Package Index</a>. What the adobe does have is <a href='http://www.riaforge.org/'><span class='caps'>RIA</span> Forge</a>, as far as i can tell <a href='http://en.wikipedia.org/wiki/Rich_Internet_application'><span class='caps'>RIA</span></a> is some term Macrodobe made up. The thing is, <span class='caps'>RIA</span> forge is just a directory linking to libraries around the web, kind of like <a href='http://raa.ruby-lang.org/'><span class='caps'>RAA</span></a>. It has no build process, no clearly defined way in which libraries are included in your larger application. It solves the, how do i find what’s out there problem, but not really the how do i easily include it in to what i’m building. </p><p> Which brings me to the whole reason i wrote this blog post. I spent the last day or two trying to figure out what to do with libraries like these: <a href='http://code.google.com/p/as3corelib/'>as3corelib</a> and <a href='http://code.google.com/p/as3awss3lib/'>as3awss3lib</a>. They are the core action script 3 libraries for things like md5 hashing, json serialization, and general string, date, and time functionality. The second one is action script 3 library for working with amazon web services. Pretty useful and straight forward stuff. Don’t ask my why the as3corelib isn’t just included for use everywhere all the time, it’s an extreme case of <a href='http://www.python.org/about/'>batteries not included</a>. In ruby i’d run ‘sudo gem install aws-s3’ and i’d magically get the libraries i need. There are pretty straight forward alternatives php, python, and perl. </p><p> But these libraries aren’t distributed as binaries, packages, nor anything easily installable. What do you do get is a note saying: “There is currently no zip archive available. Please check the code out using subversion. ” That’s pretty much it. When you do check out the svn repo you get this:</p> <pre> bas1:~/code/as3awss3lib-read-only rabble$ tree . . `-- src `-- com `-- adobe `-- webapis `-- awss3 |-- AWSS3.as |-- AWSS3Event.as |-- Bucket.as `-- S3Object.as 5 directories, 4 files</pre> <p> For files, in a nested set of directories which seems pretty straight forward. I want to be able to access these files from my app, so i simply did the obvious thing, from a scripting background, copied the whole com dir and children over to my lib directory in the app i’m building. Needless to say that didn’t work. I tried moving around the files to various other directories and that didn’t work either. I read everything I could find in the documentation and on various community created sites, dead ends. I tried asking in the #flex irc channel, nobody seemed to even understand my question. I tried pinging friends who work on flash stuff at Adobe as well, i got blank stares and silence. </p><p> What was going on here? Clearly somebody at Adobe had build this library, clearly it was intended to be used. No where did i find any documentation on how to build these things. The as3awss3lib had more files than as3awss3lib, but still there was no clear path as to what to do with it. Adobe has spent millions of dollars on documentation, help, blogs, building libraries, and trying to create a community around their platform, and I couldn’t figure out how to use a simple library to add to my code? </p><p> I think a lot of it comes down to assumptions. People in flash/flex are mostly focused on user facing eye candy and not on the underlying libraries. There isn’t a lot of discussion about the libraries or the work which goes in to them. Many apps are build and left running as they are. They aren’t things which are maintained and run over time with updates. </p><p> Eventually i tracked down what i needed to do. It is assumed that although the repositories are called libraries, the thing you want to do is compile them in to <a href='http://livedocs.adobe.com/flex/3/html/help.html?content=building_overview_5.html'>swc files</a>. You can’t just include other people’s code as libraries in to your own code tree, you’ve got to compile them. These compiled libraries and ‘assets’ (i guess you can have a ‘library’ of non-code things like images) are called swc files. These files need to be compiled and included in your application, before and separate from the build process for your own code. Again this is a little java like. Not necessarily wrong, but quite different from how most dynamic languages work. ActionScript <b>is</b> a dynamic language, somebody at Adobe clearly fell in love with java as the way enterprise professionals do things, and added some clunky extra steps to the process. </p><p> So now that we know that you can’t just include code in the lib directory of your app and have it be available to your app at run time. This is a big leap. It’s part of why i’ve found nobody who understood my questions. Once i made the leap then it was pretty easy to figure out that i needed to use ant to build the app i tried running ant and got errors. A command line utility and errors, that’s something i can debug! To run ant you simply cd to the build directory and type ant. </p> <pre> bas1:~/code/as3corelib-read-only/build rabble$ ant Buildfile: build.xml properties: lib: BUILD FAILED /Users/rabble/code/as3corelib-read-only/build/build.xml:63: Execute failed: java.io.IOException: C:/Program Files/Adobe/Flex Builder 2 Plug-in/Flex SDK 2/bin/compc.exe: not found Total time: 0 seconds </pre> <p> This brings me to my other issue which i find so surreal about the Flash / Flex / Adobe world. It’s a windows world, everybody else is an after thought. It’s full of arcane paths, and executables have their own funny little suffixes so that the OS can figure out that they are executable. In the unix world, which includes linux, bsd, cygwin on windows, and of course mac os x, there are standard conventions for figuring out the paths to libraries, executables, etc… </p><p> Ant didn’t seem to like spaces in file names so i fixed that, but then there was still a big problem. </p> <pre> ## Change this: # The location of the Flex 2 SDK on your sytem. flex2sdk.bin.dir = C:/Program Files/Adobe/Flex Builder 2 Plug-in/Flex SDK 2/bin flex2sdk.lib.dir = C:/Program Files/Adobe/Flex Builder 2 Plug-in/Flex SDK 2/frameworks/libs ## To this: # The location of the Flex 2 SDK on your sytem. flex2sdk.bin.dir = /Applications/Adobe_Flex_Builder_3/sdks/3.0.0/bin flex2sdk.lib.dir = /Applications/Adobe_Flex_Builder_3/sdks/3.0.0/lib </pre> <p> And and now ant gets a little farther down the path of working. </p><p> <pre>bas1:~/code/as3corelib-read-only/build rabble$ ant Buildfile: build.xml properties: lib: [exec] /Applications/Adobe_Flex_Builder_3/sdks/3.0.0/bin/compc.exe: /Applications/Adobe_Flex_Builder_3/sdks/3.0.0/bin/compc.exe: cannot execute binary file [exec] Result: 126 BUILD SUCCESSFUL Total time: 0 seconds</pre> </p><p> Don’t let the <b><span class='caps'>BUILD SUCCESSFUL</span></b> message trick you! It didn’t actually work. This time it found compc.exe but as you’d expect, this is a mac, and on mac (and it’s unix cousins) exe files don’t run. At first i thought maybe Adobe was doing some craziness where they just decided to make all the executables on every platform .exe. Turns out that wasn’t the case, setting the executable flag didn’t help. What adobe does is include a separate file, sans .exe, which is the version of that app for normal operating systems. So it requires another change to the build.properties file. </p> <pre> #change asdoc.exe = ${flex2sdk.bin.dir}/asdoc.exe compc.exe = ${flex2sdk.bin.dir}/compc.exe mxmlc.exe = ${flex2sdk.bin.dir}/mxmlc.exe #to asdoc.exe = ${flex2sdk.bin.dir}/asdoc compc.exe = ${flex2sdk.bin.dir}/compc mxmlc.exe = ${flex2sdk.bin.dir}/mxmlc </pre> <p> Again if it wasn’t assumed that these libraries would be built in a mono-platform windows only world, then the ant build.xml file would be written in such a way to look in the obvious places. Once everything is in place, then ant works! </p><p> <pre>bas1:~/code/as3corelib-read-only/build rabble$ ant Buildfile: build.xml &lt;/p&gt;&lt;p&gt; properties: &lt;/p&gt;&lt;p&gt; lib: [exec] Loading configuration file /Applications/Adobe_Flex_Builder_3/sdks/3.0.0/frameworks/flex-config.xml [exec] /Users/rabble/code/as3corelib-read-only/bin/corelib.swc (79242 bytes) &lt;/p&gt;&lt;p&gt; BUILD SUCCESSFUL Total time: 7 seconds</pre> </p><p> As far as i can tell, the ./libs/ directory is a good place to put these kinds of libraries. Presumably they get bundled in to your application you build an air / flash swf for distribution. I haven’t gotten that far yet. If i stay motivated and keep moving forward with this project, i’ll keep blogging my way through this mess. I am tempted by the shiny bobble of pretty and small cross platform <span class='caps'>GUI</span> desktop apps which lies on the other end of this journey.</p> <p> It appears that some libraries need to be compiled, like corelib, while others, the as3awss3lib can just be dropped in the src directory with their full path, ./com/adobe/webapis/awss3 What’s not clear is why it’s one way or another. </p>