BeeTagg is a free QR code reader for mobile, it can read from image or directly from camera:
http://www.beetagg.com/
for generating QR code also you can use following websites:
http://qrcode.kaywa.com/
http://code.google.com/apis/chart/docs/gallery/qr_codes.html
for example following QR code is softminer.net
Tuesday, November 30, 2010
Calling Thread Method with Parameter
using System; using System.Collections.Generic; using System.Diagnostics; using System.IO; using System.Reflection; using System.Runtime; using System.Runtime.CompilerServices; using System.Security; using System.Text; public class MainClass { public static void Main() { Thread paramThread = new Thread(ParameterizedFunction); paramThread.Start("Test"); paramThread.Join(); } private static void ParameterizedFunction(string o) { Console.WriteLine("Param worker: {0}", o); } }
Wednesday, November 10, 2010
Threading in C#
Sometimes you need to do two different task and you want that the task do simultaneously or one task wait for other task to finish.
in the following example , there are three different Thread and when you join the Thread they will wait until all joined thread finished.
for more information you can check here
in the following example , there are three different Thread and when you join the Thread they will wait until all joined thread finished.
using System; using System.Threading; class MyThread { public int count; public Thread thrd; public MyThread(string name) { count = 0; thrd = new Thread(this.run); thrd.Name = name; thrd.Start(); } void run() { Console.WriteLine(thrd.Name + " starting."); do { Thread.Sleep(500); Console.WriteLine("In " + thrd.Name + ", count is " + count); count++; } while (count < 10); Console.WriteLine(thrd.Name + " terminating."); } } class MainClass { public static void Main() { Console.WriteLine("Main thread starting."); MyThread mt1 = new MyThread("Child #1"); MyThread mt2 = new MyThread("Child #2"); MyThread mt3 = new MyThread("Child #3"); mt1.thrd.Join(); Console.WriteLine("Child #1 joined."); mt2.thrd.Join(); Console.WriteLine("Child #2 joined."); mt3.thrd.Join(); Console.WriteLine("Child #3 joined."); ThreadStart mythred = new ThreadStart(test); Thread t = new Thread(mythred); t.Start(); t.Join(); Console.WriteLine("Main thread ending."); } private static void test() { Thread.Sleep(3000); Console.WriteLine("My thread finished"); } }
for more information you can check here
Sunday, November 7, 2010
Domain Records
the main important NS record which shows where the hosting configurations is:
for example: www.test.com
ns1.domain.com
ns2.domain.com
then what you need to do is to add a new domain to your hosting plan:
when you add the domain to your host then the A record will automatically refer to web server:
for example web server is on x.x.x.x server then the A record will be on this IP.
the MX will also on the webserver configuration
Domain server---------------- Host --------------- Webhosting
www.test.com ---------------> domain.com
ns1.domain.com---------------> A --------------> x.x.x.x
ns2.domain.com --------------> Cname
for example: www.test.com
ns1.domain.com
ns2.domain.com
then what you need to do is to add a new domain to your hosting plan:
when you add the domain to your host then the A record will automatically refer to web server:
for example web server is on x.x.x.x server then the A record will be on this IP.
the MX will also on the webserver configuration
Domain server---------------- Host --------------- Webhosting
www.test.com ---------------> domain.com
ns1.domain.com---------------> A --------------> x.x.x.x
ns2.domain.com --------------> Cname
Thursday, November 4, 2010
word wrap in Table
the words will break in TD when there is a space between the words. but when there is no space it will not break even if you specify a width to it.
example: 111111111111111111 will not break
1111111111111 2222222222 will break to
1111111111111
2222222222
solution in IE : use style="word-wrap: break-word";
this tag is working just in Internet explorer, solution for other browser is to use:
example: 111111111111111111 will not break
1111111111111 2222222222 will break to
1111111111111
2222222222
solution in IE : use style="word-wrap: break-word";
this tag is working just in Internet explorer, solution for other browser is to use:
<wbr>
­
in between.
­