Posts filed under 'Uncategorized'

Twitter Site Stream using EventMachine

I’ve spend some time to try to use Twitter Site Streaming API with event machine, so here is just a small snipet of code on how to do it. In fact it’s pretty simple

Just go to your app page on twitter ( http://www.twitter.com/apps ) and go to your application. Get the access token here. You will find also a button “get my access token” where you can get the oauth access token and access token secret.

With these, you will be able to sign the request

require 'rubygems'
require 'eventmachine'
require 'em-http'
require 'json'
require 'oauth'
require 'oauth/client/em_http'

# Edit in your details.
CONSUMER_KEY = "<put your consumer secret key here>"
CONSUMER_SECRET = "<put your consumer key here>"
ACCESS_TOKEN = "<put your access token here>"
ACCESS_TOKEN_SECRET = "<put your access token secrethere>"

def twitter_oauth_consumer
  @twitter_oauth_consumer ||= OAuth::Consumer.new(CONSUMER_KEY, CONSUMER_SECRET, :site => "http://twitter.com")
end

def twitter_oauth_access_token
  @twitter_oauth_access_token ||= OAuth::AccessToken.new(twitter_oauth_consumer, ACCESS_TOKEN, ACCESS_TOKEN_SECRET)
end

EventMachine.run do
		  # now, let's subscribe to twitter site stream
		  # check informaiton on twitter site
		  # here we are followig to user that have signed to our app...
		  toFollow=[17590452,2071231]
		 http = EventMachine::HttpRequest.new('https://betastream.twitter.com/2b/site.json'
).post(:body=>{"follow"=>toFollow.join(",")},
		 	:head => {"Content-Type" => "application/x-www-form-urlencoded"},
		 	:timeout => -1) do |client|
    		twitter_oauth_consumer.sign!(client, twitter_oauth_access_token)
  		end

	  	buffer = ""

		http.stream do |chunk|
    		buffer += chunk
   			while line = buffer.slice!(/.+\r?\n/)
   				puts "handling a new event:"+line
    		end
  		end
   		http.errback { puts "oops" }
   		http.disconnect { puts "oops, dropped connection?" }

 end

For this, I use the eventmachine plugins for ruby, as well as the oauth and em-http plugins.

Please note that you must you https with twitter in order for this to work.

3 comments January 20th, 2011

Amiga memories: Unreal Story in Pix’n'Love

Pix’n'love a nice French fanzine about retro gaming just published an article about one of the game I’ve participed on the Amiga, Unreal (and it’s not the FPS Unreal well know now on PC).
 I’ve mostly made the intro, using a technique called ‘VectorBalls’ .

So here are a few scan of this article, but If you read French, I strongly encourage you to buy it and read it!

2 comments March 23rd, 2010

Twitter Hacked!

This is a translation of an article published in French, on the Korben.info website

twitter fail whale Hack de Twitter   La suite...

I’ve been contacted yesterday by the guy who have hacked Twitter. His pseudo his Hacker Croll (here is the initial reference to Hacker Croll, but in French) and explained to me that he was able to access to the various email boxes of the twitter employee including Evan Williams ones and his wife. This allowed him to have access to all a number of astonishing informations.

He had access to the Paypal, Amazon, Apple , AT&T, MobileMe and Gmail accounts of Evan Williams, Sara Morishige Williams, Margaret Utgoff and Kevin Thau (twitter employees)

Here are the snapshots that the hacker sent to me:

Evan Williams1 Hack de Twitter   La suite...

He was able to access to the Registar information of the Twitter domain name, and he could have been able to redirect twitter domain name to any other IP address (or simply steal the domain name)

Capture 1201 Hack de Twitter   La suite...

Capture 115 Hack de Twitter   La suite...

But the most incredible, was the quantity of internal information that he was able to get on Twitter:

  • the complete list of employees
  • their food preferences
  • their credit card numbers
  • some confidential contracts with Nokia, Samsung, Dell, AOL, Microsoft and others
  • direct emails with web and showbizz personalities
  • phone numbers
  • meeting reports (very informatives)
  • internal document templates
  • time sheet
  • applicant resumes
  • salary grid (time for me to move..lol)

But amongst all these information, you can see some funny things like:

  • the “possible” launch of a TV reality show where contestant will go across USA et will win contests thanks to their followers, with a 100 000$ price at the end (but for a nonprofit organization)
  • Some growing predictions that target 25 millions of users end of 2009, 100 millions ends of 2010, 350 millions ends of 2010…with revenue  that I will not disclose here…
  • A list of new star account like Wyclief Jean, DuranDuran, Cartoon Network, Cisco, UCLA, Guillaume Pepy (CEO of one of the biggest french company, the SNCF), Nirvana, Toshiba, 50 Cents,…. etc…

Capture 1101 Hack de Twitter   La suite...

  • The plan of their new offices with a list of whishes from the employee who would like a sleeping room, a playing room, plants, a chief cuisto, a meditation room, bicycle room, adjustable desks, sport room,washer/dryer, wifi, lockers, wine cellar, an aquarium and others…They seems to have imagination….

Capture 93 Hack de Twitter   La suite...

  • We learn also their idea about Twitter monetization…Of course, we’ve got certified accounts, but also advertising with the ability to put AdSense widget,  or sponsored tweets. Twitter whish also to be the first service to reach the billion of  users (which is highly probable). They defined themself more as a “nervous system” than an alert system.
  • We also learn that french president will soon use Twitter (@NicolasSarkozy ) and that Nicolas Princen which will do this.
  • And we’ve got also some “test” of t-shirt and cap designs

Capture 10621 Hack de Twitter   La suite...

Capture 1032 Hack de Twitter   La suite...

So Twitter has been visited by this hacker. Since then, everything is back to normal thanks to security recommendations:

Capture 1121 Hack de Twitter   La suite...

passwords have been changed. The information given by Hacker Croll is from beginning of may, but are still very instructive. In his mail, Hacker Croll explains the things to learn from this misadventure:

What I would like to say is that even the biggest and the strongest do silly things without realizing it and I hope that my action will help them to realize that nobody is safe on the net. If I did this it’s to educate those people who feel more secure than simple Internet novices.And security starts with simple things like secret questions because many people don’t realise the impact of these question on their life if somebody is able to crack them.

concerning me, I’ve put here only the information that are not against twitter because I am a big fan of Evan and his team works. I’ve just relayed some information of Hacker Croll and what I can tell to Twitter team is that this hacker seems to have a conduct code which will not give any prejudice to the company.

Now, clearly, we see from this hacking demonstration that it’s very easy to guess a simple password from a secrete question, and from this to enter into other account (Facebook, GMail and others) and from this enter in the heart of a company, both in accessing confidential data  but also by paralyzing business symply by getting a few domain names or admin accounts.

So, don’t stop to be paranoid. Don’t use secret question, use a different password for each of your account, don’t put inline sensible documents, etc… In short, be careful..

27 comments July 14th, 2009

A nice and innovative GPS based game

Parallel Kingdom is a new (and far from being released) GPS game based on Android platform. Since a long time locaion based games have been explored, but up to now none really succed to capture enough attraction, mostly because they required poeple to move to play the game which requires a lot of commitment to play the game in a cold winter day!

But this one, Parallel World, seems to contains some interesting concept. You can build virtual elements on top of the real world, and then influence other players. The exact mechanism of the game is not yet explained, but I like the concept, presented by this video.

Add comment February 24th, 2008

Web2.0 outsourcing humour

From Techrunch:

3 comments January 9th, 2008

CTO Handbook — How to care for and feed your CTO

A great piece of reading  (discovered through AboutMobility weblog): CTO Handbook — How to care for and feed your CTO
He defined three types of CTO:

  • The Technical Founder – the person that wrote the code that got the
    company off the ground. Has sweated to give the alpha/beta/product life
    and as a result any criticisms are effectively received/interpreted as
    “Your baby is ugly! Now where’s your Corn Flakes so I can piss in them
    too!” Is never far from code.
  • The Visionary – sometimes seen as the flake without any “real”
    deliverables. Is never far from a whiteboard. Can write code but
    shouldn’t.
  • The Figure Head – parachuted in, probably did or was associated with
    something impressive in a semi-related industry. Doesn’t know most of
    the company but is on a first name basis with most flight crew. Is
    never far from PowerPoint.

The next game, just like CEO is doing, is then to think which part of these description fit in your profile!

1 comment January 9th, 2008

Selling my new iPhone (unlocked)

Yes, I’ve got two of them. Less than one month old, fully unlocked, 1.1.1 software…
See it on eBay: iPhone 8GB unlocked

3 comments December 3rd, 2007

How to never be late….

Mobibase seems to be ahead of everybody in the mobile industry: they already attended or participated to future events…Impressive

Add comment December 2nd, 2007

Facebook and privacy

Just discovered a VERY interesting post about Facebook and privacy:
Facebook Isn’t Private, and 7 Other Things You Should Know.

The most interesting part, is this one, the number four topic:

By posting User Content to any part of the Site, you automatically grant, and you represent and warrant that you have the right to grant, to the Company an irrevocable, perpetual, non-exclusive, transferable, fully paid, worldwide license (with the right to sublicense) to use, copy, publicly perform, publicly display, reformat, translate, excerpt (in whole or in part) and distribute such User Content for any purpose on or in connection with the Site or the promotion thereof, to prepare derivative works of, or incorporate into other works, such User Content, and to grant and authorize sublicenses of the foregoing.

So Facebook can do what they want with content posted on Facebook! Including picture, your profile (your CV?), etc…. A perpetual, non-exclusive, transferable license….

Think of this before creating your own private group to discuss the next big thing, or before posting your perfect pictures… Seems to be the reason why a group named “the Grasshoppers” moved from Facebook to Ning

Through Widgify

Identificateurs Technorati : , ,

1 comment September 9th, 2007

My current favorite blog….

For those who still don’t know it, there is a new great blog which already a star: it’s Marc Andreessen one, blog.pmarca.com . A lot of great post about startup creation, VC, and a lot of other things. Read the “Moby dick theory of big companies” , and the series on “Truth about venture capitalist

Interesting also is the Ouriel Ayon point of view on Marc’s blog. As him, I always wondered how Marc could create so quickly such incredible content, while being involved in many other things.

Add comment July 9th, 2007

Surface computer from Microsoft

I’ve wrote by the past several entries about touchscreen ( The future of board games ) and how interesting this technology is, especially for mass market.
Of course, Microsoft know this too, and just announced “Microsoft Surface“, which provide new way to interact with a computer.
The video is really interesting and demonstrate good use cases:

Add comment May 30th, 2007

Webwag at Innovate07

After Mobease last year, it’s now the time for Webwag to showcase at Innovate07, the 8 of May in Zaragoza, Spain. Nice list of ocmpanies, including some competitors (Pageflakes) but also some intriguing projects (like the Todeka project)
The 8 of May? Might be a good day to do some cool demos and announcements, no?

Technorati Tags: ,

Powered by ScribeFire.

6 comments April 22nd, 2007

Multi touch screen display: another demo

 Another cool and incredible demo of multi touc screen, thanks to Perceptive Pixel:

Through Louis Van Proosdiij Duport blog

Technorati Tags:

powered by performancing firefox

1 comment March 20th, 2007

The truth about Mobile and Web development….

“I used to say that the web browser was the most hostile programming environment ever devised, but that was before I found out about Mobile.”

Douglas CrockFord…

What about mobile web development? :-)

1 comment January 12th, 2007

5 things you don’t know about me

 Well, seems that I’ve also been tagged for “5 things you don’t know about me”, but twice! The objective of the game is to give five “unknown” facts about you, and spread this virally to five other people…

  So this came from Seb and Wendong!

  • I started to work as a game developer for UbiSoft during my student period. Ported a crap game, and had to get a serious job in the telecommunications later on.

  • I was in Africa (Zaïre that came later Republic Democratic of Congo) and enjoyed some civil war
  • I’ve made a lot of pirate TV decoders during my engineering school! (for
    Canal+)
  • I am now a definitive Ruby On Rails addict! The best productivity boost since I’ve discovered Java, 11 years ago.

  • I own a collection of “museum computers and console”, like Vectrex, ZX81,  Colecovision, Atari Lynx, Gizmodo, etc….

  So, let’s follow the link with a few suggestions for the next providers of these five facts:

- Pascal Darre
- tmenguy (everything and the software universe)
- Philiipe Kerignard (truc de ouf in French)
- Fred Brunel
- Alexander Cassovici ( Mobitrends)

Technorati Tags: ,

2 comments January 9th, 2007

Augmented Reality: Total Immersion moving on CellPhone?

Earlier this year, I had a post about potential interest of augmented reality on mobile. It seems that Total Immersion, the leader of this sector – well now with a famous demo 2004 presentation  haves also plans for mobile.
Here is a video which shows some potential usage of AR on mobile for advertising for instance. Sorry, the video is in french. Examples includes “augmented reality advertising”, and the manipulation of a small character. I am sure that there are much more interesting scenarios than these one, so let’s see….
On negative things is that the demo still running on a PC, and very little to do with mobile now. One of the great things with AR on mobile, is that the concept of a camera phone allows you to use the mobile as a “window” or a “lens” that transform what you see. This feeling does not happen with the current demo where you have to look in a different direction to see the results. Hope that before 3GSM this will be solved (Total Immertion plans to demonstrate it on 3Gsm next year).


Video: Total Immersion – On10

Through Codors Blogs

Technorati Tags: , ,

2 comments December 15th, 2006

A new patent war ahead : Surfkitchen on dynamic download?


Surfkitchen, a provider of ODP (On Device Portal) is on the way to have a UK patent that  – if I understand it well – might generate a lot of troubles if granted. This patent cover the download of dynamically generated data that is trigerred by an SMS.

 First, let’s look at the abstract:

Abstract of EP1536613

A method of server initiated download of information is described. When a server (5) determines that content (26,28) is stored which is to be made available to a remote device (1;2) the server (5) dispatches a signal to the appropriate remote device (1,2) in the form of a non HTTP message such as an SMS message which has a predefined format. When such a signal is received, this indicates to the remote device (1;2) that content to download exists. A browser program (14) on the remote device (1;2) then responds to the received message by forming a conventional HTTP link to the server (5) and requests location data identifying the location of content (26,28) to download from the server (5). When the browser program (14) receives the requested location data the browser program (14) utilises the location data to generate instructions to cause copies of the content (26;28) to be downloaded via the HTTP link.

So the patent seems to cover the fact that you notify a mobile through SMS that a content is available on the server. Then, the mobile answer by forming an HTTP request to download this content from the server.

This seems quite broad, and might cover many existing services/technologies:

  • MMS ( See Wikipedia definition ) . A notification is send to the client, using SMS or Wap Push and then the phone generate an HTTP request to download the contents.
  • Wap Push, more generally speaking, is just sending a link (an URL) to a mobile phone, so it trigger by definition an HTTP request.

If you dig one step further, it appears that the patent highlight the fact that it’s not really an URL to the exact location which is sent. It only trigger the fact that some informations are available, and then, the server identify the user and only send the relevant information….

  • [0019] Having the server 5 send an initial content update signal which indicates the existence of content to be downloaded from the server 5 but which does not indicate the location of that content gives rise to many advantages.
  • [0020] Firstly as the signal does not identify the location of any particular item of content, a single signal can be sent to a remote device to enable the remote device 1, 2 to download multiple items of content. The fact that a single signal can be sent reduces the amount of data which is transmitted to the remote device via the non http link.
  • [0021] Additionally, since data identifying the locations of content to be downloaded only needs to be generated after the browser program 14 has initiated a communications link between the remote device 1; 2 and the server 5, this data will identify current locations for content to be downloaded even when there is a delay between the sending of the initial content update signal and the initiating of a communications link by the browser program 14. The possibility that content from within the content store 24 is deleted in the interim between notification of the existence of content and the dispatch of a request to download content from a location and hence a requested item of content is no longer available is therefore reduced.

Translation: the data to be downloaded is created dynamically. In other words, the link might be http://myservice.com/get/tomsoft  ( or just http://myservices.com/get if the user is automatically identified) and then the answer content depend of the user: it’s a dynamic content/page creation….

So if the result of the SMS sent is a dynamic page, then you might be concerned by this patent.

It might be the case of SyncML, where HTTP synchronisation can be triggered by an SMS for instance.

In fact, many services trigerred by SMS might be covered by this patent. MobileScope have plenty of these, but we are not the only one in the industry. Of course, as a competitor to SurfKitchen, we are more concerned by such patent.
But many deployement of applications are done through SMS/WapPush, and it’s not always a link a static ressource, but to a ressource that might depend of your handset for instance.

Note: the patent is not yet awarded, but in a final phase.

So I would be curious to get your feedback/views on this? Does anybody in the industry feel concerned by this?

Technorati Tags: , , ,

3 comments December 7th, 2006

Snap preview…

Just added a few services on this blog: MyBlogLog on the right sidebar, and also Snap preview…This service add nice automatic preview when you move the mouse on top of a link. Really net, and was just a line of JavaScript to add in the template….

Technorati Tags: ,

3 comments November 21st, 2006

Getting Real, getting free

For those who have missed it, Getting Real, the book written by  basecamp creators ( 37 signals), is now available for free on the Web, here: Getting Real

1 comment November 3rd, 2006

xfruits: RSS feeds on steroids?

Small note to highlight this nice service: xFruits
This allows you to do different things with existing RSS feeds:

  • Aggregator RSS : umtiple RSS feeds transformed into one feed
  • RSS to Web: display in a plain web page an RSS feed
  • RSS to mobile: same for mobile
  • Post to RSS: publish through email
  • RSS to PDF: display a feed as a PDF document

Some grayed features, so probably comming in the next monthes are:

  • RSS to mail
  • File to RSS
  • Composer?

The RSS aggregator and RSS to PDF are in my view the most interesting and innovative usage.
As an example, here is the xFruit result of this RSS feed as a PDF: xFruits
The result is clean and could be used as a document in some meetings for instance. This open some interesting idea of usage, especially in the enterprise…

Technorati Tags: , ,

Add comment October 17th, 2006

Previous Posts


Calendar

May 2013
M T W T F S S
« Aug    
 12345
6789101112
13141516171819
20212223242526
2728293031  

Archives

  • August 2012
  • August 2011
  • January 2011
  • August 2010
  • March 2010
  • September 2009
  • July 2009
  • April 2009
  • February 2009
  • December 2008
  • October 2008
  • July 2008
  • Most Recent Posts

    Most Recent Comments

    Calendar

    May 2013
    M T W T F S S
    « Aug    
     12345
    6789101112
    13141516171819
    20212223242526
    2728293031  

    Posts by Month

    Posts by Category

    Feeds