Friday, April 29, 2011

полезное: для работы

Credit card numbers

Credit card numbers that conform to the Luhn formula (MOD 10 check). Usefull for testing e-commerce sites (because they should get past any pre-validation you do, and be declined at the card processor or bank stage).

In testing situations any expiry date within the next 3 years should work.


Thursday, April 28, 2011

3000 API






конвертирование текста в имидж

We can easily convert text to image in C# by using System.Drawing namespace. Here these tips will guide you how to create bitmap image from text. It’s using Graphics property of System.Drawing namespace to convert text to bitmap image and place the image in a picture box. The Graphics class provides methods for drawing to the display device.

от чудесной корпускулы


Комфортная еда


Оказывается, мода на рецепты по ГОСТу и прочую кулинарную реконструкцию - это старый мировой тренд и называется он comfort food. По ссылке в вики-статье все сказано, я просто резюмирую вкратце - термин появился в конце семидесятых и охватывает целый пласт кулинарии от ностальгичиского до культурного. Любая еда, дающая человеку психологическое чувство покоя и защищенности, является комфортной:

Monday, April 25, 2011

установка shaw экаунта на vpad7.

Open Email application
Menu: Add account
email adress: chernikov@shaw.ca
pw ***

click on Next button
What type of account is this? POP3

username: chernikov
pw ****
POP3 server: shawmail.vc.shawcable.net

click on Next

SMTP server: shawmail.vc.shawcable.net
authentication none
not require username/pw


Sunday, April 24, 2011

различные таймеры в дот-нете


All about .NET Timers - A Comparison




Threads and Timers are the most common things that you need for your application. Any work that needs to be done in background without intervening the work that is running in the foreground needed to be done using a Thread. We create Threads to delegate a long running process in background so that the UI remains unblocked. Timers on the other hand are a special module which runs after a certain interval of time in background. So you would think Timers will also create a new Thread in background and run the module associated with it after a certain time. This is not always true.
In this post, I will compare most of the timers available with .NET right now, and later on discuss about DispatcherTimer in WPF.

чудесная статья про программирование. добрая.

What a programmer does for a living

What a programmer does for a living is best illustrated by writing a program yourself.
So, today, you'll write your first program!
"But I don't know how to!"
Don't worry, you'll manage, it is not all that hard. The program is going to be in a language called "English".

Thursday, April 21, 2011

это самое.


Китайские СМИ: Землетрясение в Японии - результат неудачного ядерного подземного испытания.

json

Convert DataSet or XML to JSON using VB.NET


I searched high and wide for something simple to do this and every function I found basically reinvented the wheel from scratch. If you do any amount of searching, you can find the JavaScriptSerializer object which will convert objects to JSON. Sounds easy enough...WRONG! Even converting an empty DataSet will return a circular reference exception.

overloads

In the MS doc "New features in C# 4.0" there is this example
of applying "Betterness rules" to overload resolution...

Given these overloads of M..

M(string s, int i = 1);
M(object o);
M(int i, string s = “Hello”);
M(int i);

which does M(5) use?

Given these overloads, we can see the working of the betterness rules. M(string,int) is not applicable because 5 doesn’t convert to string. M(int,string) is applicable because its second parameter is optional, and so, obviously are M(object) and M(int).
M(int,string) and M(int) are both better than M(object) because the conversion from 5 to int is better than the conversion from 5 to object.
Finally M(int) is better than M(int,string) because no optional arguments are omitted.
Thus the method that gets called is M(int).

Ok, clear enough for this example...but I hope I don't have to debug code
that uses this feature a lot!



отсюда

инструменты визуализации данных

http://www.computerworld.com/s/article/print/9215504/22_free_tools_for_data_visualization_and_analysis

Free data analysis

Thursday, April 7, 2011

Sunday, April 3, 2011

мониторинг веб-сайта

A simple and free website surveillance utility implemented in VBScript. Configured as a scheduled task, one or more URLs can be monitored for availability and content can be checked. When a site or URL is down, or if the content returned (or a specified fragment of it) does not match the last returned content, an alert email is sent to a specified email address.