Daniel Gafitescu Freelance web developer focused on open source solutions


The artist

Impressive! This is the best movie I have seen this year so far and it's most likely and I think I should won a Oscar.

Almost no dialog , black and white , filmed in 36 days but the emotions that you get in the end are just .

It's the opposite of what Avatar is : expensive , long time to make and famous cast.

Go see The Artist at cinema!

Mark : 9/10


Filed under: Uncategorized No Comments

Manage a GitHub repository in Netbeans 7.1

GitHub create repository

A bit of introduction

As with latest Netbeans version 7.1 it comes with git support integrated inside the IDE, along with SVN and Mercurial.

Since GitHub has become such a popular site for keeping open source repositories as well as private projects ( many companies like Facebook , Twitter are using it to keep their private repositories ).

Since my IDE of choice is  Netbeans I couldn't clone a public repository that I have created on GitHub only using Netbeans ( hope there's a solution and maybe it will be added in a future version it will be added to the IDE but as far as I have tried I coudn't do it).

So in order to create the origin and master branch I had to download and use a separate tool which is easy to install and work with and you have the whole process explained  on GitHub's Set Up page .

If you are a Mac User I advise that you use GitHub for Mac which I have used and works great!

Setup the repository on GitHub

If you don't have an account on github go ahead and create one if you allready have click on the "New Repository" button .

GitHub create repository

GitHub create repository

You are going to be redirected to a form where you need to enter a project title and a description.

After you have created the repository you are redirect to a page where you are instructed how to create the general setting of your name and email , initialize the repository and create the origin and master branches.

Taking the next steps in command line

The steps that are listed in the repository detail page need to be done in command line. As mentioned before everything is explained in detail  on GitHub Setup page.

Since I am on windows I have downloaded the latest Git for Windows installed it , generated a ssh key and add it to my account settings. Once you read that you need to enter the commands listed on the repository detail page on the Git Bash.

 As you can see from the image I setup all in d:\www\codeigniter but you can put it anywhere you want because right after last command I am going to delete it completely so I can clone it again from Netbeans.

Now if you go to the repository detail page all you are going to see it's the readme file.


Netbeans setup

1) Team > Git > Clone

2) Clone the repository , you enter the repository url along with the user/password

3) Select master branch

4) Save to a destination directory. Please note that I have initialized the project from command line in d:\www\codeigniter . Before doing this next step I went and deleted all the files including the hidden ones.

5) Create project from cloned sources

6) Next the project will be created and I will add the new files to it , in my case I have downloaded Codeingiter 2 and add it to the project and I will commit the files using the commit command from the context menu

7) Next you will need to enter the commit message and select the files that you need to add to the commit.

8) After this commit if you go the github repository page you will see that nothing has changes this is because the git system works. Commit will be done one the local created repository

If you open the output view from the Netbeans windows you will see something like this :

9) Next step will be doing the Remote push to Github , and this is done by selecting from the context menu Git > Remote > Push

10) Next you need to select the remote repository from dropdown :

11) Select the Local Branch

12) Update local references which basically copies the master local branch to origin/master branch remote.

13) After this if you go to github repository page you will see all files listed.

And that's it. Again if someone else know how to do this without downloading the command line tool directly for Netbeans let me know.

It would be nice the guys from Netbeans would add this feature in the near future.


The Iron Lady

I liked this movie a lot and it's one of the best bibliographic movies that I have seen.
I have seen in the past  a English similar movie with the life of Margaret Thatcher but those two simple can not be compared.
Meryl Streep will most like with this year Oscar for Best Performance by an Actress in a Leading Role.
My rating : 7/10


Breaking Bad

Every life comes with a death sentence.

4 season poster

This tv show is for me in top 3 favorite drama after Lost and Med Mad.  It's just finished the 4th season last year and this year will be the last one , but the show get better from season to season. I watched every episode as soon as I could and I am looking forward to the finale.


First blog post : when , how and most importantly why!

I should have started this blog years ago and for some reason I postponed it a couple of time, but I felt that now it's the right  moment.

I will have most of my post about programming , movies , tv shows and the books I read.

Most of the posts will be in English just because... it's everywhere .


Filed under: Personal 1 Comment