Firefox output in the command prompt on Windows? Foxyeah!

On Linux and MacOS is quite normal to see the standard output in the shell when running Firefox from the command prompt. On Windows, this isn’t that easy, as the “-console” command line switch creates a new window that quickly disappears when Firefox shuts down. Luckily, there’s an interesting option that seems to produce the desired behaviour on Windows: “-attach-console“. As reported on MDN, “[…] use -attach-console to use the existing console....

August 31, 2015 · 1 min · Alessio Placitelli

Fixing Seagate/Maxtor HDDs with a Raspberry Pi: 0 LBA, BSY and CC erros

Just imagine this scenario: one day you turn off your pc and you try to turn it on the following day. And it doesn’t or, more precisely, your trustworthy Maxtor/Seagate HDD (Model No. STM3320614AS) is no longer detected during the boot or shows a size of 0GB. You get mad, you get angry. Then you try to figure out how to get your data back. It appears that, due to a firmware bug, some particular Maxtor and Seagate HDDs lock up their SATA port (BSY bug) or corrupt show as 0 sized (0 LBA)....

June 1, 2014 · 3 min · Alessio Placitelli

Visual Studio project generation for Mozilla Firefox

Recently, the Mozilla Firefox build interface, aka mach, was enhanced with a great feature for Windows developers: the ability to generate Visual Studio project files. Such project files are not maintained in mozilla-central, hence the need for a way to generate them. Thanks to the awesome work done by Gregory Szorc, generating project files using mach is as simple as issuing the following command: [bash] ./mach build-backend backend=VisualStudio [/bash] The solution file will be available in your object directory, under the msvc folder (i....

March 22, 2014 · 1 min · Alessio Placitelli

Mercurial and patch queues for dummies

Lately I’ve started contributing to Mozilla Firefox with some patches (yay! It’s an awesome project… consider contributing 😉 ). It was a good excuse to practice with Mercurial, the distributed revision control software used by Mozilla. I’m mainly a Git user and I have to admit I was a little puzzled at first and had to adapt to the new workflow. In this article I will try to answer some of the questions I had during my learning phase....

February 9, 2014 · 1 min · Alessio Placitelli

Spinethica: giovani, lavoro, alienazione? Meglio la rivoluzione!

E’ nato Spinethica.it, un progetto giornalistico per raccontare storie tra alienazione e rivoluzione. Ma cosa vuol dire e di cosa parlano? Questo è un estratto dalla loro pagina “Chi Siamo“: Cos’è Spinethica Spinethica è una realtà giornalistica che racconta le storie di una generazione liquida, in costante ed inevitabile adattamento alle forme della società. Realizza un giornalismo multimediale localizzato a Roma e dintorni: cronaca, politica, cultura, innovazione, tecnologia e scienza....

April 18, 2013 · 1 min · Alessio Placitelli

Cross-compilation in cygwin for the Raspberry-Pi: ./configure and CMake

I’m having a lot of fun these days with my Raspberry-pi! Since I’ve already built my own tool chain to cross-compile from my Windows plus Cygwin machine and setup my IDE to compile and debug my software using it, I finally started to compile some projects. Unfortunately I had to face a couple of problems: how to make the ./configure script use my tool chain to generate Raspberry-Pi binaries in cygwin?...

August 9, 2012 · 2 min · Alessio Placitelli

Cross-compilazione in cygwin per Raspberry-pi: ./configure e CMake

Mi sto proprio divertendo in questi giorni con la Raspberry-Pi! Dato che ho generato la mia tool chain per cross-compilare da Windows con cygwin ed impostato il mio IDE, ho finalmente iniziato a compilare qualche software ed effettuare qualche porting. Tuttavia ho dovuto affrontare un paio di questioni che mi hanno fatto perdere la mattinata, ovvero da cygwin come compilo un software per Raspberry-Pi usando configure, make e make install mediante la tool chain che ho generato?...

August 9, 2012 · 2 min · Alessio Placitelli

Raspberry Pi: tool chain per cross-compilazione su Windows Cygwin

Sono finalmente riuscito a compilare una tool chain funzionante per cross-compilare dalla mia macchina Windows 7 per Raspberry Pi. Mi ci è voluto un po’, ma grazie a dei preziosissimi interventi di Ian Linsdell sul forum di Raspberry Pi (ed un po’ di fortuna!) sono riuscito nell’impresa. La tool chain contiene le versioni Linaro di GCC (gcc-linaro-4.6-2012.07) e GDB (gdb-linaro-7.4-2012.06) compilate con opzione hardfp. Per installarla è sufficiente estrarre l’archivio nella cartella /opt/cross/x-tools in Cygwin (i....

August 8, 2012 · 1 min · Alessio Placitelli

Raspberry Pi: Windows Cygwin cross-compilation toolchain

I finally succeeded in compiling a working cross-compilation tool chain for my Raspberry Pi. It took me a while, but thanks to some valuable posts on the Raspberry Pi forum by Ian Linsdell and some luck I finally made it. The tool chain contains the Linaro versions of GCC (gcc-linaro-4.6-2012.07) and GDB (gdb-linaro-7.4-2012.06) compiled with the hardfp option. Simply unpack the archive in the /opt/cross/x-tools folder of your Cygwin installation (i....

August 8, 2012 · 1 min · Alessio Placitelli

Remote cross debugging: Windows to Raspberry-Pi

In the past few days I’ve spent quite a lot of time on my new shining Raspberry-Pi. It’s an amazing little devil, worth every Euro I spent! Since I’ve planned to deploy a software component of my augmented reality system on this board, I needed to figure out how to remotely debug it in order to troubleshoot any issue I would run into. It took me some time, but thanks to the friends on Raspberry Pi Forum and to this awesome tutorial I finally made it: I can deploy my software to the raspberry-pi from Eclipse CDT and debug from my comfortable Windows 7 machine....

August 3, 2012 · 6 min · Alessio Placitelli