2014/07/29

How to convert JSON object to Dictionary in C# ?

How to generate bitmap from url in C# ?

How to convert byte array to string and string to byte array in C# ?

How to get HTML page content programatically in C# ?

Polish NIP validation

Email address validation in C#

Not exacly compatible with iso:

Convert datetime to timestamp and timestamp to datetime in C#

How to convert encoding from one to another in C# ?

How to remove directory with all its files and subdirs recursively ?

How to check if url is valid in C# ?

How to compute MD5 in C# ?

How to add column to table in TSQL ?

Syntax from msdn

2014/07/20

Generate random number in C#

2014/07/15

Insert Google Analitics code to Prestashop

Be carefull. You should not have any strings in your smarty template like this:
"{x.."
, because it's reserved for smarty variable and Prestashop uses smarty templates Instead use this:
"{ x...".
F.g:
<script>
  (function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
  (i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
  m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
  })(window,document,'script','//www.google-analytics.com/analytics.js','ga');

  ga('create', 'UA-....', 'auto');
  ga('send', 'pageview');
</script>
->
<script>
  (function(i,s,o,g,r,a,m){ i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
  (i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
  m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
  })(window,document,'script','//www.google-analytics.com/analytics.js','ga');

  ga('create', 'UA-....', 'auto');
  ga('send', 'pageview');
</script>

2014/07/14

How to read value returned by stored procedure - TSQL ?

http://msdn.microsoft.com/en-us/library/ms188332.aspx

2014/07/07

How to disconnect Skype from Microsoft or Facebook account?

Solution in polish is here

Adding two integers without temporary variable - C#

Read collection from configuration file app.config in C#

App.config:
Service classes:
Usage: