Tweeter button

Archive for the ‘Life in China’ Category

OK, vélo volé…

Monday, September 11th, 2006

Après seulement trois semaines de bons et loyaux services, mon vélo a été volé au lac Taihu de Wuxi où j’étais allé me promener hier après-midi… Ce n’était pas spécialement un bon vélo mais apparemment, il était trop neuf pour ne pas attirer l’attention des voleurs. Je suis d’autant plus embêté que ce n’était pas mon vélo mais un vélo inutilisé qu’on m’avait prêté… Je pense qu’ils ont utilisé un fil de fer pour débloquer la serrure car mon antivol était plutôt costaud…

J’en ai parlé avec quelques Chinois et ça l’air d’être monnaie courante ici. Tout le monde s’est plus ou moins déjà fait voler son vélo trois ou quatre fois…

Je compte m’en acheter un nouveau rapidement car c’est tout de même très pratique pour se déplacer mais cette fois j’en prendrai un vieux tout moche. Du moment qu’il roule…

Tunneling

Friday, September 8th, 2006

I am lucky enough to own my own server at an ISP in Paris and I figured out lately that it was freaking (and I mean freaking) easy to create a SSH tunnel between it and my computer here. I just run this single command on my local computer:

$ ssh -N -D 8000 username@serverhost

It creates a SOCKS proxy server (i.e a multipurpose proxy server) listening to the port 8000 of the local machine. All communications on this port go through a SSH (encrypted) tunnel and are then transmitted to the real target by my server.

Then in the Firefox settings (or Gaim or any other client), I just have to define localhost and port 8000 as SOCKS server. It allows me to browse the web as if I were in France. Very useful (I let you guess why). I use the proxy button Firefox extension to quickly switch from using the proxy to not using the proxy.

It does not require root privileges neither on my local machine nor on the server.

Another and maybe more elegant solution is to run an HTTP proxy like Squid on the server and to bind a local port to the port the HTTP proxy is listening to. Something like:

$ ssh -N -L 8000:servertarget:8000 user@serverproxy

Of course, in this case you don’t have to define a SOCKS server but normal HTTP server in the Firefox settings.

Life in China

Friday, September 8th, 2006

Haven’t said anything for quite a long time… The reason is I have been in China for more than two months now and did not have so much time to talk about it here. I arrived in Beijing in early July and spent five days there. Then I stayed a bit more than one month in Dalian (north-east). I studied Chinese every morning at Dalian University of Foreign Languages. In mid-August, I have started an internship in a chinese company in Wuxi (near Shanghai) where I am doing very interesting stuff. I am there till mid-January 2007. I know have a regular access to Internet so I am planning to tell about my experiences here in China.

But because what I will tell is mainly targeted to my family and my friends in real life (it would be quite impersonal to write in English to them) and I miss using my own language, I have decided I would use french for this part of my journal. I don’t want to have a separate journal for French and English, neither I want to have a separate journal for technical and non-technical stuff. So this journal will be multilingual and multipurpose. Just pick what you are interested in!

Pour commencer

Pour resituer un peu le contexte, dans le cadre de mes études à Telecom Lille1 (ENIC), je dois faire au moins un stage à l’étranger. Ayant étudié et étant passionné par les langues japonaise et chinoise, je me suis naturellement tourné vers le Japon et la Chine, où j’ai finalement eu plus de succès. J’ai trouvé un stage d’informatique pour ma 4ème année dans une ville appelée Wuxi, près de Shanghai. Inconnue au bataillon en France mais quand même relativement grande (plus d’un million d’habitants à ma connaissance). Bien sûr, quitte à venir en Chine, cela aurait été dommage de ne pas passer quelques jours à Pékin. J’ai aussi pu étudier le Chinois pendant un mois (en plus de la première année de Licence en France) à Dalian grâce à un partenariat entre l’université de Lille3 et une université locale.

(more…)