YamWow

I am pretty lucky in the sense that  Yammer, the company I work for, sends me every now and then to their headquarters in San Francisco for a week or two. The interesting thing is that most of the time the reason to go there is to partecipate to the company hack day. I am glad for that and I usually respond to it by giving my best at trying to hack on something valuable not only for my ego but for the value of the company as well. This time around however I embarked on a different journey and found myself helping a talented team pimpimng up our company foosball table, you read well foosball table.

Working with hardware is a different kind of experience to the one I am used to and puts a different meaning to the word hacking, at least to me. Everything is brittle, mistakes cannot be solved with a cmd+z. Anyway, we got our table working but we couldn’t ship it to San Francisco (how unfortunate), also we got most of the stuff working by the time we got there so we had some time to spare for the presentation. There is where my colleague Ray and I got the idea that we should have done a presentation video, one that would tell and sell the story about the project. Soon enough we start writing down a set of interesting ideas, mad ideas to be true. We do this late at night, after a couple of drinks and still jet lagged. Things got out of scope pretty fast but we end up with a script wich we think is funny even during breakfast the day after. 

I managed to shoot everything with my Canon 100D (SL1) mounting a Sigma 18-200mm a Manfrotto MKC3 a cheap Chinese shotgun mic and using whatever lights we could find around the office. Two days in total between shooting and editing and this is what we got.

A Special thanks to all the guys at Yammer that helped out with the hack and the video: Ray, Nick, Daniel, Vanessa, Jim, Jed, John and Eliot.

I recently upgraded my iPad 2 with an Air, a very impressive piece of hardware. To justify the purchase I wondered the AppStore for a good game to play. I am not a gamer anymore, I spend far too much time in front of a computer at work to justify more hours behind a gamepad, which is totally bullshit, because my evenings are full of couch & TV nevertheless. Anyway, after the usual unfulfilling experience of searching the AppStore, I go back to google and find a game called Republic. The download takes a while and it's already 10PM by the time I tap on the icon to play and it's well past midnight when I finish the first free chapter and realize that it's bed time.

The story behind the game is pretty simple: helping a girl named Hope to escape from facility she is trapped in. The player sees the world through the eyes of CCTV cameras paced everywhere around and that can be changed or moved. I found it pretty ingenious especially the way it let the player wondering around from camera to camera to see the position of the guards before sending the protagonist in. On top of that the player can also hack into computers, electronic door locks and what not.

The company behind the game is called Camouflaj, it has been formed by a bunch of game geniuses previously working on titles of the caliber of Metal Gear Solid, Halo and F.E.A.R. The game as been funded through a kickstarted campaign. The result is an innovative and immersive story. A touch of genius: each and every enemy you encounter has a passport that you can check. Some of them are actual bakers; brilliant!

Interesting also the choice of releasing a 1st chapter for free (in my rusted case more than 2 hours of gameplay) and then make the other chapters available with inApp purchase, as opposed to the standard monetization scams schemes we see so often in the AppStore nowadays.

Check it out on the AppStore

Republique

I recently upgraded my iPad 2 with an Air, a very impressive piece of hardware. To justify the purchase I wondered the AppStore for a good game to play. I am not a gamer anymore, I spend far too much time in front of a computer at work to justify more hours behind a gamepad, which is totally bullshit, because my evenings are full of couch & TV nevertheless. Anyway, after the usual unfulfilling experience of searching the AppStore, I go back to google and find a game called Republic. The download takes a while and it’s already 10PM by the time I tap on the icon to play and it’s well past midnight when I finish the first free chapter and realize that it’s bed time.

The story behind the game is pretty simple: helping a girl named Hope to escape from facility she is trapped in. The player sees the world through the eyes of CCTV cameras paced everywhere around and that can be changed or moved. I found it pretty ingenious especially the way it let the player wondering around from camera to camera to see the position of the guards before sending the protagonist in. On top of that the player can also hack into computers, electronic door locks and what not.

The company behind the game is called Camouflaj, it has been formed by a bunch of game geniuses previously working on titles of the caliber of Metal Gear Solid, Halo and F.E.A.R. The game as been funded through a kickstarted campaign. The result is an innovative and immersive story. A touch of genius: each and every enemy you encounter has a passport that you can check. Some of them are actual bakers; brilliant!

Interesting also the choice of releasing a 1st chapter for free (in my rusted case more than 2 hours of gameplay) and then make the other chapters available with inApp purchase, as opposed to the standard monetization scams schemes we see so often in the AppStore nowadays.

Check it out on the AppStore

Xcode Playground

WWDC is over and we are left with the latest and greatest toys to try. One of the most amazing news comes in the flavour of a brand new development language called Swift and the ability in Xcode 6 to play with it in a simple and accessible way. This is called Xcode playground. With this new feature it is super easy to write and test code without having to create a new project every time. I have been developing for a decade and each and every machine I got had at least one folder called tests and there was nothing to do with TDD in it!

Anyway, the ability to write some test code is only one of the interesting features of playgrounds. Far more intriguing is the ability of writing documentations that contains some example code that can be run and changed on the spot. As I see it every github swift project in the future will have a README file as well as a playground one. This was the first intent when I wrote MarkdownToPlayground an utility written in swift to convert markdown files to playground documentations.

In order to achieve that I had to understand how playgrounds work:
A playground is a a bundle directory which contains all the files that are needed for running the playground itself. Specifically you can find:

section-1.swift

That’s an easy one, is naturally the swift file with the source code you want to play with.

Documentation

This is the folder that contains the HTML and the CSS files that are rendered in between the swift source code. The HTML files contains not only the tags of the content section but full pages representation, so even if there is only a single title on top of your swift code that would be incapsulated inside an html and body tag - and an head as well. I didn’t play too much with the CSS to see how far can be pushed, however there seams to be a minimum requirement on the section top and bottom padding otherwise the HTML documentation seams to be rendered on top of the swift code. Finally of course, a reference to the CSS file need to be imported in all the html header files.

contents.xcplayground

This is an XML file format containing the reference and the order of all the pieces of documentation and swift code that have to be rendered on the playground. It will look something like this: 


<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<playground version='3.0' sdk='macosx' allows-reset='YES'>
    <sections>
        <documentation relative-path='section-0.html'/>
        <code source-file-name='section-2.swift'/>
        <documentation relative-path='section-2.html'/>
        <documentation relative-path='section-3.html'/>
    </sections>
    <timeline fileName='timeline.xctimeline'/>
</playground>

timeline.xctimeline

This file is not present at the beginning, nor is its reference on the contents.xcplayground file. It will appear as soon as the playground get modified by writing code into it. As a result of playing with pieces of code on the playground the swift files will be duplicated and a reference to the original file kept.

Working on the HTML and CSS for a custom playground could be quite a frustrating experience. At the moment of writing XCode 6 is not production stable and further more a change on the HTML/CSS source will not automatically trigger changes to the playground. The solution seams to be to close and reopen the playground file altogether. However there is a way to trigger the playground refresh by opening the Project Navigator (cmd + 1), adding any other file to it and then switching between them.

At the moment of writing there doesn’t seam a way of importing external classes or frameworks to the playground. Sam Marshall and Boris Bügling are trying crazy things to dlopen frameworks inside it but with no easy solution.

the-magazine app, the newspaper underdog

Very recently Marco Arment released his news stand app the-magazine with the clear intent of selling articles on subscription leveraging his tech competence as well as the one of many others in the tech community - Guy EnglishJason SnellAlex Payne, and Michael Lopp in the first issue alone. It seams odd to pay for articles in the internet age, and this is especially true for tech articles, so why Mr. Instapaper decided to go this way?  If you know Marco Arment, either because you read his blog or listen to the 5by5 podcast he hosts, the path he chose makes a bit more sense. Why? I guess because it removes complexity from the business model and it is more transparent with users.

Here it comes the theory: If you pay for the contents you are the user and the customer. If you don’t pay, revenues are generated by sponsors or ads, at which point the customer is the sponsor  and the users are just eye balls. From the publisher perspective, this massively complicate things as now he/she needs to balance attentions between those two entities. Now balance is the tricky and deceptive part of it. If the user is not the customer with interest on the article, the article itself becomes a tool and not the product, so effort in the form, or precisely the better form, is put instead of the content. You can argue that good writers keep producing good articles, but then nobody can escape from being polluted by the evolution of styles and formats. Text messaging and further more Twitter had changed the way people write. At the same level bloggers and writers drift slightly everyday to the format led by colleagues writers, which is not necessary driven by the content of what they write. And so on, shifting the balance at tiny bits.

So that is what I think is the idea from which Marco and Co. are trying to stir away. I agree with that, every time in my life I had the possibility to see behind the production curtains of the media machine, be it a website, paper, radio or TV, I always felt that sense of being part of a scam, that somehow all the professional work that was driving so many among me was mislead to the wrong effort of squeezing another ad in instead of creating a better user experience. A penny for every time I heard the sentence “you know, advertisers pay the bills/your salary!”.

I think this is a noble effort, maybe it will not work, but it will be still worth failing trying. Marco itself writes in the first editorial If it doesn’t turn a profit within two months I’ll shut it down.. Let’s hope not.

merlin

merlin:

John Cleese - “A Lecture on Creativity”

danforth:

John Cleese lectures on the topic of creativity.

Per Back to Work #62: Cultural Molasses.

Seriously: this wonderful video has had a huge impact on how I think about creativity. For years.

Unfortunately, the copy I’ve had and repeatedly enjoyed “fell off the back of a truck,” so I had no way to share it.

Now, (via danforth), I can finally share and highly recommend it.

And, I really, really do encourage you to watch it. Really. All the way through. It’s just terrific.

Extremely connected with something a bit newer by Jonah Lehrer:

http://www.youtube.com/watch?v=Ufnp89NOreI&feature=g-user-u