dracoblue.net

Facebook Client for node.js 1.3.0

Today I have an update for the

Facebook Client for node.js finished.

The version 1.3.0 is a graph and rest api client for facebook. It has support for the latest stable nodejs 0.4.x.

Now it's possible to post data (for instance into your news feed):

facebook_session.graphCall(
    "/me/feed", {
        "message":"I love node.js!"
    },
    'POST'
)(function(result) {
    console.log('The new feed post id is: ' + result.id);
});

All you need to do is to specify the method parameter (defaults to GET).

Thanks to

jharlap for this addition.

Also thanks to tslater and shaisultanov. They found an issue with expires-time (which is fixed now) and requested the brand new FacebookSession#isValid method, which tells you if the session is really alive.

Source may be found at node-facebook-client@github.

The package is also available by using npm:

$ npm install facebook-client

In javascript, node-facebook-client, node.js, open source by DracoBlue @ 26 Apr 2011 | 150 Words

Installing php 5.3.5/5.3.6 on Ubuntu Maverick/Lucid

Latest Version for PHP 5.3 on Ubuntu is just PHP 5.3.3. This is not so good, if you want to have some of the plenty bugfixes which will be shipped with a later version.

If you want to upgrade to 5.3.5 (5.3.6 support may come later), you can use this inofficial ppa by the nginx user at launchpad:

https://launchpad.net/~nginx/+archive/php5.

For ubuntu maverick just create a file:

$ gedit /etc/apt/sources.list.d/php5-ppa.list

with the contents

deb http://ppa.launchpad.net/nginx/php5/ubuntu maverick main
deb-src http://ppa.launchpad.net/nginx/php5/ubuntu maverick main

and run:

$ sudo apt-get update
$ sudo apt-get dist-upgrade

Now you have php-5.3.5 installed on your ubuntu box! Have fun.

In linux, php, ubuntu by DracoBlue @ 13 Apr 2011 | 118 Words

Custom identity file (id_rsa.pub) with git client

Whenever you want to use a custom identity file with ssh, you usually use the -i parameter.

$ ssh -i ~/.ssh/other_id_rsa [email protected]

This will validate against ~/.ssh/otheridrsa.pub and not the default one at ~/.ssh/id_rsa.pub.

If you want to use this with the default git client, it won't work. You cannot specify the identity file when cloning/pulling from or pushing to a repository, yet.

So:

$ git remote add origin ssh://[email protected]:repository.git
$ git pull origin master

will fail, because it's using the default rsa key at ~/.ssh/id_rsa.

Instead you can use this workaround.

Adjust your ~/.ssh/config and add:

Host example
  Hostname example.com
  User myuser
  IdentityFile ~/.ssh/other_id_rsa

Now use the ssh host alias as your repository:

$ git remote add origin example:repository.git
$ pull origin master

And it should use the otheridrsa-key!

In linux, ssh by DracoBlue @ 20 Mar 2011 | 155 Words

GoogleMails verschicken, ohne "Im Auftrag von"

Es gab mal einen

Blog-Eintrag auf dem Gmail-Blog, welcher erklärt hat, wie man seinen eigenen smtp server benutzen kann. Dadurch würde die "Im Auftrag von"-Information z.B. in Outlook nicht mehr angezeigt.

Das toole ist nun, dass das nicht nur klappt, wenn man einen eigenen smtp-server hat! Ich hab mal versucht smtp.gmail.com als eigenen Server einzufügen, und siehe da: "Im Auftrag von" ist verschwunden!

In articles, google mail by DracoBlue @ 24 Jan 2011 | 65 Words

Send GoogleMails from another address without "on behalf of"

There was a blogpost on gmailblog a while back, which explained how to use a own smtp server to avoid the "on behalf of" message in clients like Outlook.

The cool thing, this does not only work, if you have a custom smtp-server! I tried to add smtp.gmail.com as custom server: the "on behalf of" was gone!

In articles, google mail by DracoBlue @ 24 Jan 2011 | 58 Words

Page 12 - Page 13 - Page 14

Give something back

Were my blog posts useful to you? If you want to give back, support one of these charities, too!

Report hate in social media Campact e.V. With our technology and your help, we protect the oceans from plastic waste. Gesellschaft fur Freiheitsrechte e. V. The civil eye in the mediterranean

Recent Dev-Articles

Read recently

Recent Files

About