A french/american blog with some hungarian spices…
Archive for May, 2007
In NYC this weekend!
May 23rd
Hello!
Small personal message: I will be in New York city from friday to monday included, if you are around, let me know!
After the shipping container… the aluminum-paneled house
May 23rd
A 56 year old aluminum-paneled house for sell by auction house Christie’s…
alphabet version 3
May 19th
Third answer to my alphabet question:
#include <stdio.h> void main () { char Array[26] = { 'a', 'b', ... 'z'}; int i; for (i = 0; i <= 26; i++) { printf(%c\\n, *Array[i]); } exit; }
Download this code: alphabet_3.c
There is no typo in the transcript. What do you think? Is my question ‘too hard’? Is it not ‘appropriate’ for a ‘C’ developer position?
Note pour plus tard… revisiter mes passwords
May 19th
Petite commande pour generer des mots de passe a dormir debout:
apg -m 8 -x 12 -a 1 -n 8
alphabet version 2
May 18th
Second answer… again, there is no typo, this is the pure transcript of the candidate’s answer.
main(argc, argv[]) { int i = 0; char a[26] = { 'a', 'b', 'c', ...'z'} for (i = 0; i <=26; i++) { printf("%d/n", a[i]%); } return; }
Download this code: alphabet_2.c
With this question, I’m realizing that array usage in C, is clearly not clear for everyone.
alphabet version 1
May 17th
First answer to my alphabet question:
void printAlphabet(void) { char a[21]; for (i = 0; i <26; i++) { if (i == 0) { a[i] = 'a'; } else { a[i] = a[i - 1]++; } } a[26] = '\\0'; printf("alphabet %s\\n", a); }
Download this code: alphabet_1.c
This might print the alphabet… but it will crash… I recopy the program as is… there is no typo from my side.
After this question, I asked more questions on how to use array in C. This person was terribly confused on how to use array in C.
Ceiling Height Alters How You Think
May 16th
Check this link:
http://www.livescience.com/health/070507_high_ceilings.html
and on the same subject:
http://www.livescience.com/technology/051223_future_office.html
Recycling shipping containers
May 11th
Here is a really cool idea, recycle old shipping containers to create housing.
The explanation in video here:
http://www.youtube.com/watch?v=65C9OLvmjpI
Some interesting links:
- http://www.bobvila.com/BVTV/Bob_Vila/Video-0203-06-1.html
- http://www.sfgate.com/cgi-bin/article.cgi?f=/g/a/2006/06/16/carollloyd.DTL
- http://bldgblog.blogspot.com/2006/09/container-home-kit.htm
If you feel like starting to build your home, here is a cool link to start
My vim cheat codes
May 10th
I nerver remember how to use macros in vim… quick post for later:
qregister – Start macro recording into the named register. For instance, qa starts recording and puts the macro into register a.
q – End recording.
@register – Replay the macro stored in the named register. For instance, @a replays the macro in register a.
