Mumbo Jumbo
Some usesful and not so useful ramblings…
Some usesful and not so useful ramblings…
Aug 30th
While using in for table cells, this CSS tag works as expected. Just use following code to vertically align content in the table cell. <td style=”vertical-align:middle”> … </td> Do you enjoy this blog? Do you find the information helpful? Then go ahead and treat me to a coffee or send me a tip! I love
Aug 13th
Ran into a really weird today. On my Windows 7 desktop, I was able to browse network just fine and even access internet while nobody in the LAN was able to access anything on my desktop. When I went to the “Network and Sharing Center”, I saw that it is showing “Unidentified Network” for my
Aug 5th
If you are having problems sending mails from your SMTP server, you can test the sending server using telnet. Same steps work for Linux and Windows but in windows, telnet does not accept backspace so if you enter something wrong, do not try to edit it, just press enter and re-enter the command and also
Jul 17th
Though I have a lot of gripes against iPhone, biggest was lack for support for A2DP support in the iPhone 2G (original iPhone). Yes yes, easiest solution will be to just go buy the new iPhone 4, but I guess I just hate Apple way too much. Anyways coming back to the topic, now you can
Jul 13th
By default Apache allows directory browsing but unless it is needed for your application to work, you should disable it. You can disable it by either using .htaccess or editing the configuration file of your web server. Disable directory browsing using .htaccess: Open your .htacces file If there is any entry which reads “Options Indexes”
Jul 7th
How to check is your PC/ Server is connected to the internet…. there are more than one ways to do that – using wininet.dll, calling for DNS resolution, pinging a internet server, calling a web page and checking for response status and as I wanted to be sure that client is able to reach my
Jul 1st
Many a times you run into scenario where only one instance of a class should be created in your application. If you need to know more about Singleton pattern, this article “Singleton pattern” provides good reading. There are quite a few ways to implement this (singleton) but after doing some search on the net found
Jun 29th
Recently needed to convert the time into Unix format in C#. Since the Unix time format is basically a count of the seconds passed since 1/1/1970 (Unix epoch), this can be easily done using the DateTime object. ?View Code CSHARP1 int unixTime = (int) (DateTime.UtcNow – new DateTime(1970, 1, 1)).TotalSeconds; If you are trying to
Jun 29th
If you getting error 1275 while creating virtual port for GPSGate in Vista/ Windows 7 64 bit, here is the fix from their forums.. If you use 64-bit Vista or Windows 7 please follow those steps. (If you are unsure, simply install GpsGate normally first, if Virtual ports does not work – follow those steps)
Jun 29th
Quick note to myself From a string: ?View Code CSHARP1 MyEnum foo = (MyEnum) Enum.Parse(typeof(MyEnum), yourString); From an int: ?View Code CSHARP1 MyEnum foo = (MyEnum) yourInt; Do you enjoy this blog? Do you find the information helpful? Then go ahead and treat me to a coffee or send me a tip! I love Barista’s