mercredi 28 septembre 2011

Mots de jeux...

"Des notes repères"

"Le cône d'encens"

...more to come...

Massive

Nouveau ORM sur github, très léger (surtout comparé à entity).
Un fichier de 500 lignes à ajouter à une solution.Net et pouf la magie des dynamic (Phil va pas aimer) et des var à l'oeuvre !  Aussi, "Rails approach in mind" (Martin va aimer ça).


Y'a des meta, des validations, du crud, y'a que les join qui sont difficiles supposément.

Référence à Hanselman qui l'a utilisé pour refaire son blog.

Autres tendances techno 2011

Node.js ?  Encore Scott H.  Écrire son site tout en JS !
Knockout Un js pour avoir du MVVM (intègre aussi le jquery-tmpl)

Des connaissances à acquérir...

C# de f# (ps y'a aussi une librarie js pour ça..)
http://csharpindepth.com/Articles/Chapter5/Closures.aspx


mardi 20 septembre 2011

Les problèmes du jour !


Problème Circulaire
Toutes les techniques du web ne fonctionnent pas (changer le scope de la navigation property, mettre une décoration ScriptIgnore au champ ddans la classe Meta associée)
A circular reference was detected while serializing an object of type 'ProjectMvc.Models.Model'.
(Et oui, ce sont des modèles de modèles)


Les postes Windows 7 des graphistes
Sont nouveaux à Visual Web Developer 2010 et demandent à la compile de projets (MVC) d'avoir SDK 7.0a


Warning    1    Task attempted to find "AL.exe" in two locations. 1) Under the "C:\Program Files (x86)\Microsoft SDKs\Windows\v7.0A\bin\NETFX 4.0 Tools\" processor specific directory which is generated based on SdkToolsPath 2) The x86 specific directory under "C:\Program Files (x86)\Microsoft SDKs\Windows\v7.0A\bin\NETFX 4.0 Tools\" which is specified by the SDKToolsPath property. You may be able to solve the problem by doing one of the following:  1) Set the "SDKToolsPath" property to the location of the Microsoft Windows SDK.

Error    2    Task could not find "AL.exe" using the SdkToolsPath "C:\Program Files (x86)\Microsoft SDKs\Windows\v7.0A\bin\NETFX 4.0 Tools\" or the registry key "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Microsoft SDKs\Windows\v7.0A". Make sure the SdkToolsPath is set and the tool exists in the correct processor specific location under the SdkToolsPath and that the Microsoft Windows SDK is installed



"running msbuild fails to read sdktoolspath" - StackOverflow
Microsoft Windows SDK for Windows 7 and .NET Framework 4 (7.1 winsdk_web.exe) (marchae avec un xp et VWD installé du ISO)

"task could not find al.exe using the sdktoolspath" = copy al.exe from
C:\Program Files\Microsoft SDKs\Windows\v7.1\bin\NETFX 4.0 Tools\
to
C:\Program Files\Microsoft SDKs\Windows\v7.0A\bin\NETFX 4.0 Tools\

Yé (peut-être dans program files x64...)! (utiliser WindowsSdkVer.exe du folder setup pour prendre le bon)


Dans un serveur loin de chez vous
Un EntityDataSource avec OnInserted="ds_InsertedUpdated". Ça marche super bien local (as usual). Le point net est à 4 les deux. L'identity est là les deux...

var news = e.Entity as ProwebModel.News;
var newsId = news.NewsId;

[NullReferenceException: Object reference not set to an instance of an object.]







mercredi 8 juin 2011

Exchange likes it clear !

MailEnable standard 4.26 log : (taken with SmartSniff)

EHLO mail.gogogagagugu.qc.ca
250-proweb.ca [206.47.10.666], this server offers 5 extensions
250-AUTH LOGIN
250-SIZE 51200000
250-DSN
250-HELP
250 AUTH=LOGIN

If one of theses command doesn't appear (ex. 250-) microsoft exchange servers will stop the process and send a "#5.5.0 smtp;500 Non RFC-compliant response received" bounce mail to the outlook client (the sender).  I say ms-exchange but I succeed with some; but all the errors come from some of them.

Act II
But why did ME server could forget to write one command of the list ?
Because of the tech who try to hack ME registry to gives a feature (DSN "Delivery Status Notification Confirmations") to a demanding client.  But with missing values in the HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Mail Enable\Mail Enable\Connectors\SMTP\Extensions\DSN registry key...


Conclusion/Moral
2 problem solved in 1 time !  
Next time, when something "seems" to affect nothing, remove all traces anyway !

jeudi 24 mars 2011

Microsoft cloue la porte

La prog est un sport dangereux et par chance Microsoft est là avec son papier bulle !

IE n'aime pas google map. Pas assez sécuritaire une apostrophe dans le src du iframe et/ou dans le link qui s'en suit.  
Il prompt une erreur : "Internet Explorer a modifié cette page pour empêcher le script de site à site" (testé dans ie6, ie7, ie8, ie9)


Après avoir retiré l'apostrophe du mal, pour ajouter l'insulte à l'injure, le logo Google map est "buggément" retiré et ce soir ... Faut le voir pour le croire !

Pour se venger, google map ralentit le débit de ce browser ! "Toujours en cours de chargement. Connexion lente? Utilisez le guide de dépannage ou du HTML de base." (tout allait bien dans Chrome...)



Dans le même ordre d'idée, .net 4 encode les Attributes.Add pour plus de sécurité (et oui, j'ai pigé ça dans Dora ;-) Moi qui aimait bien passer mes projets .net 2 à 4 plus vite que mon ombre, me voilà enchanté !

J'aime beaucoup les figures de style dans les posts ainsi que joutes verbales, ex :
"Nailing the doors of your house shut would improve the security of your house but it would make it unreasonably difficult to enter."




Pourquoi tester un site web après sa mise en ligne ? Les droits d'écriture, l'adresse smtp/email du formulaire, images ou fichiers manquants ou mal exportés (lire bug du ftp, bytes=0...). Il faut maintenant ajouter à ça les iframe google map en IE !

Citrix, mon ami

Juste une petite note pour vous dire de ne JAMAIS essayer de mettre un service web sur un web interface Citrix. C'est DANGEREUX ;-) Voir ici ce que wikipedia relate sur Citrix, section relationship with Microsoft ;-)

Y'a-t-il un lien à faire ici ? Je pense que oui ! Ici François Paradis qui vous dit, bonne nuit !


UPDATE 9/6/2011: ça fonctionne en mettant AUTH:UNPROTECTED_PAGES à 
/site/WebService.asmx et surtout [WebMethod(EnableSession = true)] à la méthode.