Geek-Press Geeky Blog about software development and kinect




I was surfing the Web around and decided to take a peek on the CloudPT API and I found it very interesting.

For the ones who are not familiar with the CloudPT, the best way to describe it is The Portuguese DropBox.

It is so similar that some API nodes can be used on both dropbox and cloudpt

First thing I tought was build a backup tool in python, and so it was done.

You can check this little piece of code here

Tagged as: , No Comments


CryptoEscudoIn the last months people have been talking a lot about the crypto-currencies, like BitCoins.

In the last week I had learned about a new project called CryptoEscudo. Basically someone had tought that this could be the Portuguese Crysis Solution! And decided to name it agains our old currency.

I recommend reading the official CryptoEscudo website because it is a interessting and ambitious project. I did started to mine some CryptoEscudos and I developed a little application to offer a nice GUI for not so advanced users on the mining topics

You can find binaries and sources here:

And I would proudly accept donation in CESC:




When we are software developers, there is always one time that we  need to develop something in a different language that we had never used before. Sometimes it can be frightfull (but it's a great challenge).

In the beggining of June I started my adventures with Python.


Open Source Checkers Game

Hello Everyone!

In the last month I developed a little checkers game in C++ for Universidade Aberta.
I thought that it was a interesting project for further developments until I have a real and complete game.

Right now it allows Player Vs Player but I would like to add better algorithms for mandatory moves (the ones right now are just a "draft"), add network multiplayer capabilities , add Player Vs AI and a lot if User Interface enhacements!
For the ones that may be curious about this project just check

Feel free to colaborate and/or comment on this projectSintam-se a vontade para colaborar e/ou comentar :)


Tagged as: , , No Comments

LMD – Linux Malware Detect


Ifyou're a sys admin on a shared hosting server you know the headaches you have maintaining all you user accounts. This users / customers upload all the kind of junk scripts with exploits and such on their websites and in this way they compromise not only their accounts but the whole server.

R-FX Networks developed a project thinking on this called LMD - Linux Malware Detect.

This is a small piece of software that detects and monitorizes a range of dangerous scripts on your machine. For me, one of the top features is that anyone can contribute to make the database of known threats grow in order to protect us all. To do this, we simply have to report a file that we believe that may be threat and they analyze that later.

The only flaw I found on this project is the false positives it generates, anyway you can also put that false positive files on a list of ignored files so it won't alert you anymore on the same file.

To read more detailed information about this project just go to their official website

Filed under: Uncategorized 1 Comment

Codebits VI and the project PNS

Another Codebits happened!

Another year full of good things, good talks, good projects, good gifts .....

This year brought me André Gil, Claudia Frutuoso and Gonçalo Basto to make a funny project.

The project is called PNS - Personal Notification System.

The concept is simple, a device that can be added to any garment or accessory that allows a communication bridge between the user and your mobile phone via bluetooth.

This device allows you to interact with your phone without removing it from your pocket, which can be helpful during our jogging session, a meeting, while driving or even in a situation where expose our phone in public is not our intention.

Thus we can set patterns for RGB LEDs that allow us to identify what we are receiving in our mobile phone:  for example a twit, a post on facebook directed at us, a SMS, a call from a certain person. We can also program each button to perform an action on your phone. We can reject or forward a call, send a message back to whoever called us to say that we can't currently talk, send a twitt or foursquare  post with our geographical location, we can even program a button to check the status of the weather on the internet and show a sequence of LEDs as the weather will be.

The boundary between the things we can do with this device and a smartphone is your imagination.

This device can be used by both advanced or basic users,  there is a page like a user community where you could add your code snippets where you can  share to the others or download them to your phone and then assign them to our device .

To carry out this project we used a android phone, an Arduino Uno and a bluetooth module as well as a webapp created using Ink.

Obviously a device with these features has to be small and easy to customize and the final version of our prototype was anything but small although functional!


Another project is already rolling out

A few months ago Nuno Ferro has invited me to collaborate with him in an interesting project.

The main idea is a rental platform for bikes that are spread in a certain location. With the help of some funny devices the user with a card, that should have funds, can take a bike for a ride.

Here is the result.... (this is in portuguese... sorry)


Arduino Leonard

Arduino Leonardo

Arduino Leonardo

For those who are unaware,Arduino Leonardo was already lunched and it brings great features. For me one of the best features is the fact that there is no longer a chip just for the USB connection. The microprocessor Atmel’s ATmegaXU4  already has that funcionality embeded and this allowed a reduction on the cust price. Don't be surprised if the arduino Uno stops being produced in a near future.

Besides this there are some more new features like:

-4 more digital pins,
-1 more PWM pin and improved timers,
-1 more analogue pin,
-Some changes on the Serial Comm
-SDA/SCL pin
-Keyboard and Mouse Emulation.

This emulation point is for me a great addition since we can easily use 2 POTS and a button to create a plug and play device to use the mouse pointer on-sceen or another sample would be a datareader that will send the output directly as a keyboard like some barcode scanner do

To see more details about this fantastic new addition to the Arduino family please visit this link:


Filed under: Geek News No Comments

Codebits 2012

Codebits VI

Codebits VI


And here it is! The 2012 Codebits edition is starting to rock and roll!

For those who don't know what Codebits is I will write a little review about it.

Codebits it's an event organized by SAPO.PT and believe me these guys put a lot of effort on this event, and thanks to their work not only the event is free but they provide food and beverages, a nice welcome pack, and a lot of talks and presentation and awesome partners stands.

This is the biggest and geekiest technological event in Portugal and it worth every single minute in there.

This year (for the ones that already know the event) it will be in the same venue but seems like the place will have some big news (they say that the division that was diving the main stage to the rest of the area will be a fancy curtain allowing the people outside the main stage to see what is happening!).

As every year the 24-hour programming contest will be on the run too...

Remember 800 geeks'n freaks can attend to the event via a pre-selection method so be sharp and stay tuned on!


Resizing all the components on a java.awt.Frame in Java

When we are used to use a programming language, sometimes we get our tasks a little bit automated.

I come from a background in C# and I am now doing some tasks in Java and I found some concept differences very quickly!

Task: Change the size of all the components inside a dialog based on a java.awt.Frame

After some failures figuring out how to reach my goal here is the best result I got.

protected void changeContent(Container parent) 
    for (Component comp : parent.getComponents()) 
        comp.setMaximumSize( new java.awt.Dimension(comp.getWidth()*2, comp.getHeight()*2) );
        comp.setPreferredSize( new java.awt.Dimension(comp.getWidth()*2, comp.getHeight()*2) );
        comp.setSize( comp.getWidth()*2, comp.getHeight()*2);
        if (comp instanceof Container) 
protected void changeFont(Component comp) 
    AffineTransform at = AffineTransform.getScaleInstance(2, 2);
    if (comp.getFont() != null)
        Font font = comp.getFont().deriveFont(at);


In my case, this little methods solved my problems and made my form grow like a charm! I hope this is usefull for someone else...