Casablanca, Morocco
After only ten days…I have left Italy again for another country: Morocco.
I’ll be here for the next 4 months to work at the Casablanca Ubisoft office.
After only ten days…I have left Italy again for another country: Morocco.
I’ll be here for the next 4 months to work at the Casablanca Ubisoft office.
At the end, the last step…
Now it’s time to come back home…more wise? I don’t know…probably more older, but:
“It’s not the years, honey, it’s the mileage.”
Dott. Jones…now i know that it’s fu**ing true!!! ![]()
Yesterday morning i finally arrived in Santiago…now all is more clear
![]() |
![]() |
Next step…Finisterre…the end of the ancient Camino…stay up!
I arrived today in Melida…remain only 50 Km to Santiago and i begin to be a bit tired… ![]()
Here some photos of some pillgrims i met during the walking.
I want to say them a big “Ciao” !!
P.S. François, where are you ???
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
Hi! It is not easy to find an Internet point with an USB connection…but finally i found one! ![]()
The walking is beatyfull and i’m meeting people from all the world…Here some photos…stay up for next update!
![]() |
![]() |
![]() |
![]() |
Finalmente è giunto il momento!
I biglietti sono stati fatti, lo zaino è pronto…le gambe pure (per adesso).
Prima tappa: Il Duomo di Pistoia dove, nella Cappella del Crocifisso, si trova un frammento osseo del cranio di San Giacomo (o più precisamente un pezzetto di apofisi mastoidea, come direbbe il mio amico Dott. Caini).
Da Pistoa nel Medioevo si dice che partisse il cammino dei Cavalieri alla volta di Santiago, pertanto ho deciso anche io di partire da questa città. Farò in treno il tratto da Pistoia a Saint Jean Pied de Port, dove inizia il cammino a piedi vero e proprio.
La storia del ritrovamento del corpo di San Giacomo è molto bella, ne includo la parte principale, presa dal libro “Cammino di Santiago” delle Parrocchia San Michele Arcangelo:
Dice la tradizione che un eremita di nome Pelagio (uomo del mare), che viveva in un luogo chiamato Solovio (attualmente sede della chiesa di San Fiz de Solovio, nell’attuale Santiago de Compostela), osservò durante numerose notti, nel bosco di Libredón, delle luci nel cielo, simili a stelle cadenti, che rischiaravano un punto preciso del bosco (anno 813). Quella stella rivelatrice e artefice del ritrovamento della tomba di San Giacomo, diventerà un’altro dei simboli legati all’Apostolo ed al suo culto. Ma non si trattò di una semplice pioggia di stelle, la rotta del Cammino di Santiago è impressa da sempre nella volta celeste ed è nota col nome di Via Lattea. Per questo motivo, il cammino che porta alla città di Santiago è detto anche “Cammino delle stelle”.
Da qui il nome Santiago de Compostela, cioè San Giacomo del Campo di Stelle.
Bon! Si parte!
All the times that I’ve cried
Keeping all the things I knew inside
And it’s hard, but it’s harder
To ignore it
If they were right I’d agree
But it’s them they know, not me
Now there’s a way and I know
That i have to go away
I know I have to go
(Cat Stevens, Father and Soon)
If you see this post, then it works! Hello World!
Some photos from my journey. As you can see the lake and the nature are very beatyfull…Great place to live!!
Some days ago I have had to resolve (but i have not
) a likeable optimization problem about strings in C. The problem is:
Given the function:
void reverse(char* str, int len)
that reverse the string pointed by str with length len, is possible to implement this function without using anymore temporary variables?
As example:
if the original string is “Hello World!”, the reversed string is “!dlroW olleH”.
Obviously it’s a student exercise and the cases where a real programmer would do such a thing are probably quite rare. However…let’s go!
First, we can implement the function using only one temporary variable, temp for swapping:
void reverse(char* str, int len)
{
char temp;
while (--len >= 0)
{
temp = *str;
*str = str[len];
str[len] = temp;
str++; len––;
}
}
Practically, we use two indexes to scan the string: with the first, we scan the string from left to right while, with the second one, from right to left. Each time we swap the characters at the positions defined by indexes.
But we can also do better! temp can be omitted if we use binary operator XOR. Magically:
void reverse(char* str, int len)
{
while (--len >= 0)
{
*str ^= str[len];
str[len] ^= *str;
*str ^= str[len];
str++; len––;
}
}
So, we have implemented a string reverse function without any temporary variables. I think this is the better optimization, let me know if anyone can do better.