It
La prima Nanata
No, non è il convincere la Lega che ha il ministero della “Sicurezza” e degli “Interni” la prima Nanata: quella è solo politica nel frattempo di calmierare e comprare Bossi&Co. Non è nemmeno mimare il fucile sulla giornalista russa che fa la domanda scomoda (e personale) a Putin: quello è il suo normale spirito da goliardico maschilista italiota. Ignorando, tra l’altro, che Putin davvero li uccide i giornalisti scomodi O_o ...
Personalize your $PS1
Fancy $PS1 setting The code to make the Bash prompt looks like mine is (~/.bashrc): 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 case $TERM in xterm*|rxvt*) TITLEBAR='\[\033]0;\u@\h:\w\007\]' ;; *) TITLEBAR="" ;; esac; PS1="${TITLEBAR}\n\[\033[0;0m\][\033[0;32m\]time: \ \[\033[0m\]\[\033[1;31m\]\t\[\033[0m\]\[\033[0;0m\]]-\ [\[\033[0m\]\[\033[0;32m\]host: \[\033[0m\]\ \[\033[1;31m\]\h\[\033[0m\]\[\033[0;0m\]]-\ [\[\033[0m\]\[\033[0;32m\]user: \[\033[0m\]\[\033[1;31m\]\u\ \[\033[0m\]\[\033[0;0m\]]-[\[\033[0m\]\[\033[0;32m\]bash: \ \[\033[0m\]\[\033[1;31m\]\v\[\033[0;0m\]]\n\ \[\033[0;0m\][\[\033[0;32m\]cwd: \[\033[0m\]\[\033[1;31m\]\w\ \[\033[0m\]\[\033[0;0m\]]# " Thanks to Bash Prompt HOWTO.
Apache Hadoop on Mac OS X
For some reasons I started to play with Apache Hadoop (Core): Hadoop is a software platform that lets one easily write and run applications that process vast amounts of data. Here’s what makes Hadoop especially useful: Scalable: Hadoop can reliably store and process petabytes. Economical: It distributes the data and processing across clusters of commonly available computers. These clusters can number into the thousands of nodes. Efficient: By distributing the data, Hadoop can process it in parallel on the nodes where the data is located. This makes it extremely rapid. Reliable: Hadoop automatically maintains multiple copies of data and automatically redeploys computing tasks based on failures. Hadoop implements MapReduce, using theHadoop Distributed File System (HDFS). MapReduce divides applications into many small blocks of work. HDFS creates multiple replicas of data blocks for reliability, placing them on compute nodes around the cluster. MapReduce can then process the data where it is located. Hadoop has been demonstrated on clusters with 2000 nodes. The current design target is 10,000 node clusters. I followed the Quickstart guide and I can confirm that it works on [en:Mac OS X] too, but I managed only to make it run in “standalone” mode: usefull for first-stage development and debugging. ...
Video of the Day
> Title: Bill Gates: the last day at Microsoft. I know that probably this is OLD, but… this is really funny! I have to say that [en:Bill Gates] surprised me for being so ironic about himself, his money and his power! I still don’t like you Bill, but at least you are better than big-fat-idiot-[en:Steve Ballmer].
How Google works
I was looking for info about [en:MapReduce] and I thought that would have been a good idea to take a look at the Tech Talks published by Google. Here we go. Title: 2007 Seattle Conference on Scalability: MapReduce Used on Large Geographic Data Sets Location: Google Tech Talks June 23, 2007 Speaker: Barry Brumitt, Google Inc. Abstract: MapReduce is a programming model and library designed to simplify distributed processing of huge datasets on large clusters of computers. This is achieved by providing a general mechanism which largely relieves the programmer from having to handle challenging distributed computing problems such as data distribution, process coordination, fault tolerance, and scaling. While working on Google maps, I’ve used MapReduce extensively to process and transform datasets which describe the earth’s geography. In this talk, I’ll introduce MapReduce, demonstrating its broad applicability through example problems ranging from basic data transformation to complex graph processing, all the in the context of geographic data. ...
Innovation lesson from Pixar
Innovation is one of the major topics that all the Big companies speaks all the time about: how, what, when… Innovation? When the reality is of a little/medium size company, Innovation is easy: you don’t need to convince, motivate, move people. Teams with “Innovation in mind” just pop out from the ground… and a good manager just need to feed and support them. But when it comes to big companies, with budgets of millions, with Customers that are even bigger… it’s like trying to move an Elephant using one man and a cord. Mission Impossible. But. There are brave companies. Companies that plays the game smart. And those company lead Innovation. Apple? Yes, please! This article is indirectly about Apple: it’s about Pixar. It’s an interview to the Director of a different great movies in Pixar that brought “Innovation where looked impossible”: Phillip Bradley Bird (aka Brad Bird). ...
First Official iPhone SDK Interface Builder Tutorial
I received this letter from Apple this morning: Log in to the iPhone Dev Center and download the third beta version of the iPhone SDK. Make sure to take advantage of all the development resources available to you in the iPhone Dev Center, including updated documentation such as the iPhone OS Programming Guide, a new tutorial for creating iPhone applications using Interface Builder, and the latest release notes. ...
Into the Android
Last 2/3 months I used a bit of my free time studying Android the so called “Google OS”, that is the result of the Open Handset Alliance. In this relatively short amount of time I had the possibility to collect information from the official sources, as well as from very interesting and active forums (like this one and this one). I had also the possibility to meet other experts during the Android Code Day event (here a summary what we did there). It was a very good place to ask important business related questions: I should say that the Google Developer Advocate Jason Chen was very keen to answer my tricky questions ;-) . Spending other words on this here is quite pointless: half of the web speaks about it (while the other half speaks about iPhone ;) ). But I would like to share part of the result of this study: * A Presentation: "Into the Android" [[PDF](http://downloads.detronizator.org/intotheandroid/Into the Android.pdf) | [HTML+Flash](http://downloads.detronizator.org/intotheandroid/Into the Android.html)] * Video #1: MWC - Android running on different ARM-based devices [[mp4](http://downloads.detronizator.org/intotheandroid/MWC - Android running on different ARM-based devices.mp4)] * Video #2: MWC - Android running on E2831 [[mp4](http://downloads.detronizator.org/intotheandroid/MWC - Android running on E2831.mp4)] * Source code of the Application I developed for study (actually, is just the [Tutorial](http://code.google.com/android/intro/tutorial.html) that comes with the [SDK](http://code.google.com/android/download.html) with much more internal documentation ;) ): [VSNotepad.tar.gz](http://downloads.detronizator.org/intotheandroid/VSNotepad.tar.gz). The presentation explains different details of the Development process using the code of this application as an example. The video are also on Youtube and embedded here after the jump. ...
Loop Rebooting iPhone: how to fix it
I was playing with my Jailbroken iPhone when I decided to install OpenSSH and login. 1 minute after I discovered there is a password I should use to login: for user root is alpine for user mobile is dottie After I connected to my loved iPhone trough SSH (don’t be impatient: it takes a minute or two for it’s ARM cpu to generate the Keys), I changed straightaway the password for both the above named users (using just passwd). ...