Luciano De Maria

Programação e Design

Escrever corretamente é importante

Quinta-feira, 31 de Julho de 2008 17:35


Carta de um escritor do NY Times furioso porque tiraram um "a" do artigo dele:


There is no length issue. This is someone thinking "I'll just remove this indefinite article because Coren is an illiterate cunt and i know best".

Well, you fucking don't.


http://www.guardian.co.uk/media/2008/jul/23/mediamonkey

postado por Luciano às

Retorno quebrado

Terça-feira, 29 de Julho de 2008 16:36

Eu sou um fã absoluto do prototype; acho especialmente linda a extensão "each" para fazermos um loop em qualquer array:


var LIs = pnlList.down("ul").childElements();

LIs.each(function (LI){
LI.removeClassName("sel");
});


Mas logo nas primeiras vezes que eu utilizei isso, precisei dar um "break" e não consegui, dava erro:


var LIs = pnlList.down("ul").childElements();

LIs.each(function (LI){

if(LI.hasClassName("sel"))
{
LI.removeClassName("sel");
break;
}
});


Na época, troquei pra "for" normal, e desencanei, sem pensar muito; hoje precisei fazer algo parecido novamente, quando me veio o "estalo":


var LIs = pnlList.down("ul").childElements();

LIs.each(function (LI){

if(LI.hasClassName("sel"))
{
LI.removeClassName("sel");
return;
}
});


Vai praquela lista de "óbvio, mas nem tanto".

Marcadores:

postado por Luciano às

Oferta de Trabalho

Segunda-feira, 28 de Julho de 2008 11:21

Precisa-se de programador formado em ciência da praticidade, com alto nível de noção; o candidato ideal deve saber ler, escrever, e se comunicar com clareza, além de renderizar HTML dentro da cabeça, usar Ajax SEM os controles ASP.NET (usando prototype) e ter C# como linguagem de programação primária; fluência em inglês não é necessária, mas muito bem-vista.

Para trabalhar dentro dos horários normais, segunda a sexta, nas imediações da av. Paulista.

Essa vaga é séria; se alguém por aí está interessado(a), entrar em contato comigo.

postado por Luciano às

Casa do Pai João

Quinta-feira, 24 de Julho de 2008 10:08

Ontem cheguei em casa e tinha correspondência.

Pra mim.
Pra minha namorada.
Pro meu cunhado, que morou conosco por 1 ano.
Pro meu amigo que morou conosco por 6 meses.
Pro meu irmão, que morou conosco por 2 semanas.
Pra minha mãe, que foi pro exterior e usa meu endereço para correspondência.

Eu achei legal, e dei um sorriso; apesar de estar "sozinho" em casa essas semanas, de alguma forma estão todos lá. Nem que seja em "spam".

Marcadores:

postado por Luciano às

Mais uma do Team Foundation

Quarta-feira, 23 de Julho de 2008 14:20

Nos últimos dias nós não estávamos conseguindo acessar a pasta de documentos do projeto; nem pela interface do Visual Studio, nem pelo WebAccess. Via WA ele dava um erro de "bad request".

Pesquisei um pouco na net, não vi nenhum problema parecido, e tive que deixar esse probleminha de lado (nós não usamos muito essa pasta de documentos).

Hoje olhando com mais atenção, vi que o "Default Web Site" do nosso servidor do TFS, que é onde fica o Sharepoint que o TFS usa, estava parado. Foi só iniciá-lo e a pasta "documents" voltou.

Simples, mas ficou uns dias me perturbando.

Marcadores:

postado por Luciano às

Só de preto

13:53

Essa estória é fantástica, e isso acontece em programação o tempo todo; gostaria de ter tempo pra traduzir agora, mas não tenho... vai em inglês mesmo...


...[it] reminds me of one of the run ins I've had with the school psychologist. After our discussion, I've gained a reputation of being unreasonable and my daughter has gained the freedom to construct anything short of atomic bombs without psychological interference.

If I haven't peeved about this in the past, I certainly should have and if I have, I beg the readers' indulgence.

It all started shortly after my ill-fated Parent-Teacher Conference (as did my public school reputation for being unreasonable). Within a week of this conference, I received a phone call from said 'psychologist' requesting that I present myself in his office to discuss my daughter's 'problem'. When questioned, he indicated that the 'problem' was different than the one the teacher and I discussed (which was not addressing adults by first name), but coyly refused to 'discuss a situation of this magnitude over the phone'.

The following day, at the appointed time, I appeared with offspring in tow. Horrified looks resulted and said offspring was shuttled off to play in the gym. Apparently these discussions are SECRET.

He began by folding his hands on top of his desk and wearing his 'saintly, patient' expression. *This* is a man who has not only READ the psych books but *believes* them.

"Has Lauren appeared depressed or been behaving unusually at home?"

"No, she has not."

"Her behavior hasn't changed?!"

"No it hasn't. Pardon my abruptness, but precisely what are you driving at?"

He is now refusing to meet my eyes and fiddling with a paperclip on the desk. Hmmm. I should have trundled my copy of 'Body Language' along with me. He could have fidgeted and I could have merrily looked up all the underlying psychological causes.

"Well, erm...you see, Lauren is using only black crayon when she's drawing and studies have indicated that when this occurs the child is usually depressed and attempting to deal with repressed emotions."

"Ah."

At this point, I was having considerable difficulty repressing one of my own emotions....namely laughter. What rocks do these nitwits crawl out from under? Realizing that my original response would be a Bad Thing, I quickly pasted my Concerned, But Amused Parental Expression on and continued:

"Have you considered asking Lauren her reasons for using black crayon?"

Shock. Horror. Complete dismay. He actually began stammering. One does not ask the child. It could cause deep-seated emotional problems, stunt their growth, cause them to suffer from low self-esteem and possibly begin hanging about on street corners with gangs of second graders.

I excused myself from his office, ostensibly to collect myself, in actuality to collect my offspring from the gym. I arrived at said gym to find my depressed, repressed, emotionally devastated monster attempting to deal with her deep-seated frustration at not being able to reach the rings. Was she crying, fussing or sulking? Nope. She was trying to negotiate with the custodialdrone for a stepladder. At this point, I decided she was entitled to draw with black crayons the rest of her life, if that's what she wanted.

We meandered back to the office and I ignored the look of distress that was shot at me. I parked my recombinant DNA in a chair with orders to 'Behave like a lady.' (Yeah, I know. So sue me.) The conference resumed, this time I addressed my questions to Lauren.

"Lauren, Mr. Shit-for-Brains indicates that you only use black crayon when you're drawing."

"Yeah."

"Do you like drawing in black?"

"No."

"Then why do you do it?"

I was treated to the expression that is reserved for humouring slightly thick parents and watched as my offspring pasted on her Mom's Old Lady But Harmless Expression:

"They make us line up in alphabetical order when they pass out the crayons. And I'm always last in line...there's nothing left but black!"

I turned to witness what our psychological brainchild is making of all this. He has gone strangely quiet. Fine. This interview is over as far as I'm concerned. Although I confess, I couldn't resist lobbing one more over the fence at him.

"Thank you sooooo much for your concern regarding my daughter's emotional well-being. I suppose your job would be much easier if all depressions could be cured by simply starting the crayon box from the other end of the queue. In the future however, do you think you could at least ask her before you haul me in here?"

He managed to mutter something which I took for assent neither Lauren or myself has heard anything from him since.

postado por Luciano às

72 horas

Quarta-feira, 16 de Julho de 2008 23:53


E contando...

postado por Luciano às

Pequenas maravilhas modernas

Sexta-feira, 11 de Julho de 2008 15:57

Pode parecer idiota, mas quem me ensina um atalho útil já ganha 1 de status.

Atalho de hoje: alt+x+d, no Windows Explorer, é Exibir > Detalhes.

Esse tava óbvio e eu nunca prestei atenção!

(porém, em Windows em inglês, deve ser outro...)

Marcadores:

postado por Luciano às

Team Foundation - Erro ao criar novo projeto

Quarta-feira, 2 de Julho de 2008 11:00

Ainda não expliquei exatamente a quem quer que talvez esteja lendo isso que agora estou trabalhando como administrador do Team Foundation aqui da empresa onde eu trabalho.

Nosso servidor de TFS morreu na sexta-feira passada, e depois de instalar tudo de novo e restaurar os bancos, hoje tive um problema ao criar um novo projeto. O wizard passa da criação do Project Site, mas falha no upload dos relatórios. A mensagem de erro é mais ou menos assim:

Event Description: TF30162: Task "Populate Reports" from Group "Reporting" failed
Exception Type: Microsoft.TeamFoundation.Client.PcwException
Exception Message: TF30225: Error uploading report : Work Item with Tasks

Exception Message: The current action cannot be completed because the user data source credentials that are required to execute this report are not stored in the report server database. ---> The current action cannot be completed because the user data source credentials that are required to execute this report are not stored in the report server database.


A solução foi entrar na página de configuração do Reporting Services, dentro de http://servidor/reports, abrir os links do TfsOlapReportDS e do TfsReportDs, e configuar ambos para utilizar a opção "Credentials stored securely in the report server", pôr os dados da conta que roda os reports (geralmente, servidor\TFSReports) e deixar a checkbox "Use as Windows credentials when connecting to the data source" marcada e a "Impersonate the authenticated user after a connection has been made to the data source" desmarcada.

Eu sei que esse post está meio porco, e não tem nem comentários pra eu ver se ajudou alguém, estou em processo de revisar esse blog e adicionar mais coisas relativas à trabalho, e ao TFS. Só achei que essa dica era boa demais pra não postar em lugar nenhum, então foi assim mesmo... espero que ajude alguém.

Alías, quando rola uma mensagem "contact your Team Foundation Administrator", e essa pessoa é você, a sensação é de avanço na carreira e medo ao mesmo tempo ;)

Marcadores:

postado por Luciano às

Maus dias

Terça-feira, 1 de Julho de 2008 09:07

Ontem tive um dia péssimo, mas cheguei em casa e logo ao entrar Carol me "flasheou".

Eu até comentei "agora você me fez feliz, de verdade" .

E ela: "eu sei".

postado por Luciano às

Run run run

09:06

We gonna run, run, run to the cities of the future

Take what we can

And bring it back home

So take me down

To the cities of the future

Everybody's happy

And I feel at home!

Marcadores:

postado por Luciano às