Two US maps:
above: Democrats vs Republicans, US 2008 presidential elections
below: iPhone vs Android, January 2010
domingo, fevereiro 28, 2010
segunda-feira, abril 20, 2009
Cocoa::TTX
NSDate *now = [NSDate date];
NSCalendar *gregorian = [[NSCalendar alloc]
initWithCalendarIdentifier:NSGregorianCalendar];
NSDateComponents *nowComponents = [gregorian components:NSYearCalendarUnit fromDate:now];
NSDateComponents *xmasComponents = [[NSDateComponents alloc] init];
[xmasComponents setDay:25];
[xmasComponents setMonth:12];
[xmasComponents setYear:[nowComponents year]];
NSDate *xmas = [gregorian dateFromComponents:xmasComponents];
int ttx = (int) ([xmas timeIntervalSinceDate:now] / (24 * 60 * 60)) + 1;
NSLog(@"%d", ttx);
[xmasComponents release];
[gregorian release];
NSCalendar *gregorian = [[NSCalendar alloc]
initWithCalendarIdentifier:NSGregorianCalendar];
NSDateComponents *nowComponents = [gregorian components:NSYearCalendarUnit fromDate:now];
NSDateComponents *xmasComponents = [[NSDateComponents alloc] init];
[xmasComponents setDay:25];
[xmasComponents setMonth:12];
[xmasComponents setYear:[nowComponents year]];
NSDate *xmas = [gregorian dateFromComponents:xmasComponents];
int ttx = (int) ([xmas timeIntervalSinceDate:now] / (24 * 60 * 60)) + 1;
NSLog(@"%d", ttx);
[xmasComponents release];
[gregorian release];
segunda-feira, fevereiro 23, 2009
sexta-feira, fevereiro 13, 2009
iPhone: no Google "My Maps"?
The iPhone maps application won't access your personal maps, those markers that you put on maps (the "My Maps") when using Google Maps on your desktop computer.
I didn't notice the omission until I planned a week-end trip putting markers on a map. And then? I realised I was stuck. After googling a bit, I realised the feature wasn't there. After googling a bit more, I realised that some bit and pieces were in place... Hence I made my own service to access my maps on the iPhone.
Visit http://my-maps.appspot.com/ to get details.
Note that Google is not providing public APIs to access this information, and as such they might consider this usage to be abusive, in which case I will have to redraw this service.
I didn't notice the omission until I planned a week-end trip putting markers on a map. And then? I realised I was stuck. After googling a bit, I realised the feature wasn't there. After googling a bit more, I realised that some bit and pieces were in place... Hence I made my own service to access my maps on the iPhone.
Visit http://my-maps.appspot.com/ to get details.
Note that Google is not providing public APIs to access this information, and as such they might consider this usage to be abusive, in which case I will have to redraw this service.
terça-feira, novembro 18, 2008
Lua::TTX
now = os.time()
xmas = os.time{year=os.date("%Y",now),month=12, day=25}
print(math.ceil((xmas-now)/(24*60*60)))
xmas = os.time{year=os.date("%Y",now),month=12, day=25}
print(math.ceil((xmas-now)/(24*60*60)))
quinta-feira, julho 17, 2008
pôr-se nas putas
"pôr-se nas putas"
"pôr-se na alheta"
"dar o baza"
"dar às de vila-diogo"
... all mean "ir-se embora", i.e., to leave
"pôr-se na alheta"
"dar o baza"
"dar às de vila-diogo"
... all mean "ir-se embora", i.e., to leave
segunda-feira, julho 07, 2008
Empadão de Carne
Receita simples, para 4 pessoas
Ingredientes:
Para o recheio:
- 500 grs. de carne de vitela picada
- 1 cebola média
- 2 dl de vinho branco
- 1 dente de alho
- 1 dl caldo de carne
- 2 colheres de sopa de margarina
- 1 colher de sopa de azeite
- 2 colheres de sopa de polpa de tomate
- azeitonas pretas para decorar q.b.
Para o puré:
- 1kg e 200 grs. de batatas
- 1,5 dl de leite
- sal q.b.
- pimenta em pó q.b.
- 1 pitada de noz-moscada
- 1 colher de sopa bem cheia de manteiga ou margarina
- gema de ovo para pincelar q.b.
Preparação:
Recheio:
Leve um tachinho ao lume com a margarina, o azeite e a cebola e alho picados e deixe refogar até alourar. Junte a carne picada, mexa bem, junte o vinho branco, a polpa de tomate e o caldo de carne, tempere com sal e pimenta. Deixe estufar cerca de 15 minutos em lume médio mexendo de vez em quando. Depois de estufada reserve.
Puré:
Descasque lave e coza as batatas, depois de cozidas passe-as no passe-vite, junte ao puré a manteiga ou margarina, o leite e mexa muito bem (o puré deve ficar fofo).
Tempere com sal pimenta e noz-moscada.
Finalmente...
Deite uma camada de puré num pirex e alise, por cima o estufado da carne, tape com o restante puré, pincele com gema de ovo e leve ao forno quente a alourar.
Caso goste, antes de pincelar pode espetar algumas umas azeitonas pretas.
Sirva acompanhado com uma salada verde ou mista.
Adaptado de:
http://www.gastronomias.com/receitas/rec0994.htm
Subscrever:
Mensagens (Atom)