Wednesday, November 01, 2006

Enable/Disable Searching Files with unregistered extensions

I wanted to search a function name in VB.Net files, that is with vb as extenstion. But it was not giving any results, so this app solved the problem.


Enable/Disable Searching Files with unregistered extensions

Enjoy IT!

Monday, July 03, 2006

Doing Case insensitive search through IndexOf

I just wanted to do a simple case insensitive search in VB.NET 2003. But the MS doesnt allow that with the string object itself. So how you do it

dim i as integer = System.Globalization.CultureInfo.CurrentCulture.CompareInfo.IndexOf(stringtosearch, searchstring,System.Globalization.CompareOptions.IgnoreCase)

I dont know why MS hid this method so faaaaaaaaaaaaaaaaaar.

Enjoy IT

Doing Case insensitive search through IndexOf

I just wanted to do a simple case insensitive search in VB.NET 2003. But the MS doesnt allow that with the string object itself. So you do it

dim i as integer = System.Globalization.CultureInfo.CurrentCulture.CompareInfo.IndexOf(stringtosearch, searchstring,System.Globalization.CompareOptions.IgnoreCase)

Enjoy IT

Tuesday, June 13, 2006

Too Busy

I have been too busy these days, with the projects. And mostly with GPRS modems (who ever got this idea)

Wednesday, April 26, 2006

Wednesday, April 19, 2006

A Wake-On-LAN sample from VB.NET

Wake-On-LAN standard is based on a Magic Packet and is used to wake up PCs from remote. This VB.NET sample shows how to power up PCs using Wake-On-LAN, also called WOL or wake-up-on-LAN


' ********************************************************************
' Wake-On-LAN sample - power on a remote PC, based on its MAC address
'Requires freeware ASocket.dll to run the sample.
'Download it from http://www.vahland.com/asocket/asocket.dll
'and register it (REGSVR32 asocket.dll) on your machine.
'
' IMPORTANT:
'Online manual: http://www.vahland.com/asocket/manual.htm
' ********************************************************************
Sub Main()
Dim objWol As ASOCKETLib.WOLClass = New ASOCKETLib.WOL()
Dim objConstants As Constants = New Constants()
Dim strMAC As String = "00-10-4B-BA-7A-51"
Console.WriteLine("WakeUp " & strMAC & " ...")
objWol.WakeUp(strMAC)
Console.WriteLine("Result: " & objWol.GetErrorDescription(objWol.LastError))
Console.WriteLine("Ready.")
System.Threading.Thread.Sleep(5000)
End Sub

Thursday, March 09, 2006

Flash MX and Unicode

Want to write Arabic or Uni code characters in Flash MX, here it is how

Flash MX and Unicode


Enjoy IT!

Wednesday, February 08, 2006

JavaScript Accept Focus Until Closed

I want to keep the focus on a browser window until it was closed, meaning i didnt want it to minize.
Here is how you do it.

Just add this to the body tag
onblur='self.focus();'



Enjoy ID

dialing a 800 number throug Modem

The problem:
Giving key press to the modem after dialing a number or should i say answering the IVR.

to dial a number the command is

ATDT8001111111;

But after this, i was facing a problem to answer the IVR. Like it asked
"For Arabic Press 1" or "For english press 2", i was unable to send these digits.

The Solution:

ATDTn#n;
where # will be the number that u want to send.

Enjoy IT!

Thursday, January 26, 2006

StopBadware.org

Google, Lenova and Sun are trying something new to fight Spyware, but they call it Badware. hope they succeed.

Monday, January 23, 2006

Trip to Pakistan

It was great going to pakistan after 1 year 1 month, i left jeddah on 3 of January, and came back on 20 of January 2006. But it was a whole lot of fun being there. Managed to attend 1 Eid, 1 mehendi, 2 weddings, 2 Lunch, 2 dinners (Dont ask how! :D), did skip a few events too, apart from these.

Best Smartphones/tech of 2019

So I was looking for the best tech of 2019. Here it goes: New Pixel 3 XL Google - Pixel 3 XL with 64GB Memory Cell Phone (Unlocked) - ...