Ruby NET::SCP and custom server ports

An example for the ruby gem Net::SCP and custom server ports:

require "rubygems"
require 'net/scp'

Net::SSH.start("www.theserver.com", "theuser", {:password => "thepassword",:port => 22202}) do |ssh|
  ssh.scp.download! "/your_server_remote_path/what.pdf","/local_path/test.pdf"
end

git colors

put this into HOME/.gitconfig to get some fancy colors using git

[color]

        ui = auto

[color “branch”]

        current = yellow reverse

        local = yellow

        remote = green

[color “diff”]

        meta = yellow bold

        frag = magenta bold

        old = red bold

        new = green bold

        whitespace = red reverse

[color “status”]

        added = yellow

        changed = green

        untracked = cyan

[core]

        whitespace=fix,-indent-with-non-tab,trailing-space,cr-at-eol

[alias]

        st = status

        ci = commit

        br = branch

        co = checkout

        df = diff

        lg = log -p

        lol = log —graph —decorate —pretty=oneline —abbrev-commit

        lola = log —graph —decorate —pretty=oneline —abbrev-commit —all

        ls = ls-files

joomla

Playing a little bit with the new Joomla 1.6 BETA. I don’t like joomla’s way of loading and defining the components: class PortfolioViewPortfolios extends JView

some challenges for me please !

I’ve been busy in the last few weeks with a project website. It’s finished now, but I still have to do lots of legal work in the background.

Now, after finishing this work, I don’t know what to do. What should I code next ? Or should I further improve the project’s code. I don’t think so, ‘cause the project isn’t offically launched yet and everything is running fine so far.

So, I’ve played a little bit with the android sdk, made some research with javascript, jqeury and so on. HTTP streaming was also interesting but everything seems so easy. It seems like there is no challange anymore to me (it’s obvious that there are still many challenges!) at present. I have absolutly no clue what I should do at present but I need work ;)

back in the game

Hell yeah,

I’m back in the game again. My contract for a full employment expired today and I’m fully self employed again !

But for now… I’m waiting for my girlfriend finishing cooking ;) Hope it will taste good ! ;)

See ya soon people !

nginx

Well, well…. I’m trying to configure nginx with rails & php support on my snow leopard machines. Rails is working, php still makes some problems…..

Finally , the ce arrived :)

Finally , the ce arrived :)

It’s one of those days again. Even after one hour of being woken up, you’re still completely down. Coffee, doesn’t help. Energy drinks, doesn’t help.

So what the hell should I do to stay awake while working? The solution was so obvious to me, that I couldn’t see in the first minutes.

Music ! Special music ! ;) It was time for Kataklysm! Listen to the song and you’ll be awake!

Objective-C :/

I’ve started coding on the game. Better said, I’m learning Objective-C again. I didn’t use the language for over one year and forgot almost everything ‘bout the language. This sucks!

hot summer

It’s a very hot summer here in Germany. Even at night, it’s a about 30°C in my apartement. Working is nearly impossible. That’s the reason why I haven’t done so much in the last few days.

However, my iPhone 4G will arrive today or tomorrow ! So, THAT’s a reason to start coding again ! ;)

I’ve coded some GUI stuff for the game editor so far, and I’m fairly impressed with the QtGraphics-Toolkit. Writing an editor is so simple with this library. Lots of stuff like drag’n’drop, selections etc. is already implemented. Really nice.

Tomorrow evening, we at lightparc.com will have a final shooting with a friend of mine. He will be away for a few weeks ‘cause of some personal reasons. So we decided to do one great shooting with some really hot girls. Said and done ! ;) Maybe, I will post some photos in the next few days.