StackPanel e Click Event – Microsoft Silverlight

Leave a comment

Silverlight  4

Alcune volte è utile gestire l’evento di Click su un intero StackPanel.

Un link [1] utile dove spiega che è necessario impostare

<StackPanel Backround="Transparent" .. />

Per poter catturare gli eventi click sull’oggetto StackPanel.

[1] Ivan Dragoev e l’evento Click sullo StackPanel http://www.silverlightshow.net/items/Tip-Force-firing-MouseLeftButtonDown-event-on-any-place-in-a-StackPanel.aspx

CSharp Application without Visual Studio

Leave a comment

A way to test your code without using Visual Studio. By using LINQPad.

CSharp Static Constructor

Leave a comment

Un costruttore statico in C# viene chiamato on-demand, a differenza del C++.

http://blogs.msdn.com/b/oldnewthing/archive/2007/08/15/4392538.aspx

iOs5 – iPhone iPad Development

Leave a comment

Common Errors & Crash

Modules

Best Practices

Validation on Apple Store

iPad si prende 1,98 Euro

Leave a comment

iPad appena acceso. Acceso all’Apple Store ed ecco che mi vengono addebitati 1.98 Euro.

A quanto pare è una tecnica per verificare se la carta di credito fornita sia reale.

“..queste sono solo e soltanto prenotazioni che Apple esegue per confermare i dati della carta di credito. Non si traducono infine in veri addebiti e, con il tempo, decadono…”
da http://www.saggiamente.com/blog/2011/01/10/cosa-sono-le-198e-che-itunes-e-mac-app-store-prenotano-sulla-carta-di-credito

..E’ il check di validità della tua carta di credito inserita. Ma non prende nulla. Ti comparirà 1,98 anche quando spenderai 0,79 perché molte carte hanno 1,98 come limite minimo dell’invio di sms..avrai lo stesso effettuo se cambi i dati della carta o se per altri cambi chiede una riverifica della carta.” (Luca, il 17/ott 2011)

1 JavaScript Regex Sample

Leave a comment

You have an url pathname in this way and you would like to find some parameter into it:

url "/library/catalogue/sort/TITLE/page/1/books/n/chapters/n/articles/n"

/\/books\/(.*?)\//ig.test(location.pathname)
> ["/books/n/", "n"]

/\/books\/(.*?)\//ig.match(location.pathname)
> true

#1 – JavaScript Regex has to be reset. See this http://stackoverflow.com/questions/1520800/why-regexp-with-global-flag-in-javascript-give-wrong-results
for further informations.

1 way to check if an element exists

Leave a comment

Good tutorial to discover element existance in JavaScript. See http://en.support.wordpress.com/code/posting-source-code

XHTML Rules

Leave a comment

  1. I file .xht rispettano lo standard XHTML.
  2. Non è possibile usare funzioni con document.write().
  3. Firefox mostra il punto di errore di un file XHTML, Chrome no.
  4. IE non interpreta i files XHTML in quanto tali, non è attendibile.
  5. Il tag <xsl deve avere un namespace => xmlns=”http://www.w3.org/1999/xhtml”
  6. I vari includi devono avere un namespace => xmlns=”http://www.w3.org/1999/xhtml”

(David Lomuscio il 6/ott 2011)

1 Tip to Find Files with Powershell

Leave a comment

Powershell snippet I used to find “SignTool.exe” into filesystem.

PHP and Closures

Leave a comment

Web refrences to the anonymous function in PHP:

  1. http://php.net/manual/en/functions.anonymous.php
  2. http://codeutopia.net/blog/2009/02/20/closures-coming-in-php-53-and-thats-a-good-thing
  3. http://justafewlines.com/2009/10/making-use-of-php-closures

Older Entries

Follow

Get every new post delivered to your Inbox.