Tuesday, June 23, 2009

How Long Does One Sever As A Navy Seal

Here again

another month without news, I thought that at least one update from Tokyo was worth it. Not that nothing happens in Trieste, but it is more difficult to think that might be of interest to someone. If you add the fact that I try to speak as little as possible to work ... In short, fewer films than usual and more bathrooms. but there is always beer and cinema, so a few days ago we saw "Choke." Will I lose the first Transformers, but if someone tries to signature ruin his death sentence.

So I am here again, this time for a few days. The trip is always an odyssey. I'm leaving Friday morning from London to Rome. The flight is at seven-twenty, so I have to wake up (after three Oretta lack of sleep) at about four. Arrival at the bus station and met a crowd of zombies, including a little 'to confuse me completely disappointed. If the bus was headed to Abilene, Texas instead of Ronchi dei Legionari, Friuli Venezia Giulia, could be a horror series B.

Some of the zombies are coming home after a night long and go down before the airport. We arrive at the terminal and go down. There is a strong smell of freshly baked croissants, which I immediately to taste. are even in advance for the flight and I embark directly on that first. I'll wait to Rome.

Let the Po Delta, looks like a maze. When we come to Rome and when we make a long spiral pass through the clouds we're back from the sea.

Fiumicino seems to me the last time even better organized, are puzzled and amazed.

I have so many hours of time, around the shops, I try stuff and try to imagine where people go.

In flight does not happen anything special. The lights stay off for most of the time (I suspect to save on the number of meals, but I'm not sure) and I see a couple of films: "The international" and "He's Just Not That Into You". With twelve hours of travel pretend that what you look ... Also considered that "The Reader" and "Gran Torino" I had already seen. Study something.

The pilot must have an unnatural love for the broken lines and the red trace on the screen in the center of the corridor reminiscent of Indiana Jones movie.

A Narita I have to deliver a questionnaire on swine fever, while controlling the temperature of the workforce of people with infrared cameras. Visa, fingerprints and are here again. The Narita Express

confirm that Japan is full of greenery. The impressions that I had the first time all return, but they are familiar. I know the way to the guesthouse:-Waseda Shinjuku-Takadanobaba. The guy at the front desk has a moment of astonishment when she sees that I know where is the vacuum cleaner. I tell him I've been here, I'm not a seer.

I leave my stuff and I get to campus, where I meet Yuasa. On the road known to have demolished a building near the park and the convenient store in front of the Waseda University has been closed. The tower and blue grigiain middle of the campus has become silver. We eat rice with curry and slowly we get to work. The heat is terrible.

When I meet the teachers and Tasaka Ohba ask me how I find myself in Trieste: fine.

the evening eat Okonomiyaki (a kind of pizza cooked to the plate on the table) in Shinjuku and I'm going back to sleep.

Thursday, May 21, 2009

How To Make An Invader M Pillow

Swimming in the Fermi Sea

Okay, it's been almost two months. On time scales of the Internet are changing to three or four generations. The blog has been taken for finished I had to remove the dust before you start a new post. Someone asked if I died, which explains the wreath was delivered to me today ...

I did several things that I should speak up and probably not remember them all. Maybe I will post more.

At Easter we visited Padua and Verona. Both beautiful. In Padua, we visited an exhibition on Galileo (almost a professional duty) and the university's historic building (Palazzo del Bo).

Meanwhile, almost suddenly - Or maybe not so slowly that I noticed - it's nice weather. That means light and sun, breeze, warm and all the other usual things. But it also means a crowd of aspiring swimmers on buses in the morning, I fill with screams and envy. From the beginning of next week to bring the suit in sissa ...

I started eating at the table on the opposite side of the park, and most study in the library, but I could finally begin to exploit the huge terrace of my office. Despite all my efforts to find a supervisor remains unexhausted. It's exhausting to have to talk all day, and returned in the evening with the feeling of not having done nothing - not bad.

In my titanic effort to cancel any semblance of privacy, I joined last.fm in order to record the names of my musical tastes. Since listening obsessively few things at a time, every time I need to change and there will always be someone around to advise me, but if you prefer.

My next move have been fixed, maintained close and I booked the tickets to Tokyo.

Gulls night on the square unit is a sight that I hope to photograph you soon ...

For now I can not think of anything else, good night everyone.

Thursday, March 26, 2009

Punjabi Lohri Invitation Cards

The Theory at the End of Time

few new minor, but all put together can be worth a few lines. I finally

the badge of 'ICTP , Number 8000359, which is the first (I can understand that you care very much ...) and a first twin. It allows me to acedo the canteen and the library in the evening. Not that I want to try it soon ...

Along with the badge (which brings to five the number of identification cards that I own) I took also the fundamental key to the coffee machine. I had to share my set of keys into two, because it starts to become too cumbersome.

I still wonder if I was asleep or to be discussed if we really invent the first interstellar travel or a metal self-cleaning, always shine for ships. I mean, how credible are the ships of the Star Wars prequels? Maybe

did you know, but it seems that the Chinese have a lot of loanwords from English, so in China greet each other with "Hi" or "Hello". At the very least curious.

I have photos of the Persian New Year, They

Fahimeh and Zhaleh, SBP in the industry.


But the backgrounds were quite different ...



The title comes from talk of Juan Martín Maldacena , who was today awarded the ICTP Dirac Medal, along with Joseph Polchinski . While he wondered what kind of world awaits us at the edge of time (or on board a space-time negative curvature ) ha consigliato agli astanti - che erano tantissimi, tanto che mi sono seduto sui gradini della lecture hall - di leggere "Il ristorante alla fine dell'universo" di Douglas Adams!

Sunday, March 22, 2009

Watery Cm2 Days Before Period

Automatic bindings to C + + libraries

As I wrote last time, this post will be about lqt, and first of all about what lqt does.

Qt's and KDE's native language is C++, however some people wants to use them in a different language (in my case Lua) so many bindings have been created for these libraries. There are several methods you can use to do this.

The simplest way in principle is to write the bindings by hand: most languages have some way to communicate with C/C++ so, by writing wrappers for all the functions and methods in the library, you can create the modules you want. For example if you have this

int foo(int);

you can write this (in C)
   int call_foo(lua_State *L) { 
int ret;
int arg;
arg = lua_tointeger(L, 1); /* take the first argument */
ret = foo(arg);
lua_pushinteger(L, ret); /* give the return value to Lua */
return 1;
}

This function can then be used when a Lua script calls foo().

If you had instead "int bar(int);" only a single line needs to be changed, while the rest is boilerplate code. This fact is not Lua-specific at all and in fact many solutions have been created to make bindings more automated. Java bindings to Qt are created this way, and also Swig and SMOKE just to name a few.

Most of the automated generators require an "API description" file that tells the generator which functions, classes and methods it should wrap, with their arguments and members. This is the case for QtJambi and Swig (and tolua/tolua++). So someone has to write down this description in the first place, but for big libraries it is not so easy. QtSoftware can pay someone to write and mantain this file, but what about KDE?

KDE has SMOKE that takes a better approach because it parses the C++ code, with almost no manual work required. The headers are changed; run it again; you have new bindings; stop.

(SMOKE has many other qualities, such as being language agnostic. Stuff for another post/author)

What lqt does is basically the same as SMOKE, but specialized for Lua, and using a different tool. While SMOKE uses the perl based "kalyptus" to generate the wrappers, I used the parser written by Roberto Raggi. Since a well written C++ parser like this is officially a Big Thing(TM), there are uncountable copies and versions around the marble (the last one I'm aware of is in QtCreator). Thus it's difficult to make it clear which one you are talking about. The one lqt uses was written for KDevelop4 and used in QtJambi. I usually call it RPP for the sake of brevity, until Roberto gives it an official name and versioning system.

My little tool "cpptoxml" just dumps the data structure of RPP into an XML. This simple step has drawn some attention to cpptoxml, while the main work is actually done by RPP. Then a Lua script takes this XML and writes the binding modules. Peter wrote a sane build system, so the bindings can also be used on Windows and OSX. And in the end you can write your Lua program using Qt:
   require'qtcore' 
require'qtgui'

app = QApplication(1 + select('#', ...), {arg[0], ...})

hello = QPushButton(QString("Hello Planet!"))
hello:resize(140, 40)
hello:show()
app.exec()

I was planning to Show Some complex example with cool stuff like WebKit But I'd rather leave something for the next post.