"Time doesn't change things. Doing things changes things. Not doing things leaves things exactly as they were."
Dr. Gregory House
Tuesday, April 21, 2009
Saturday, April 11, 2009
kill process from vb script (tried on windows xp)
Dim objWMIService, objProcess, colProcess
Dim xComputer, xProcessKill
Dim killed
xComputer = "."
xProcessKill = "'wiamp.exe'"
Killed = 0 'not yet
value = 1
Set objWMIService = GetObject("winmgmts:" _
& "{impersonationLevel=impersonate}!\\" _
& xComputer & "\root\cimv2")
Set colProcess = objWMIService.ExecQuery _
("Select * from Win32_Process Where Name = " & xProcessKill)
For Each objProcess in colProcess
value = objProcess.Terminate()
If value = 0 Then 'did killed
Killed = 1
End If
Next
' End of WMI Example of a Kill Process
If Killed = 1 Then
MsgBox "I killed it",64,"Yo.."
End If
WScript.Quit
Dim xComputer, xProcessKill
Dim killed
xComputer = "."
xProcessKill = "'wiamp.exe'"
Killed = 0 'not yet
value = 1
Set objWMIService = GetObject("winmgmts:" _
& "{impersonationLevel=impersonate}!\\" _
& xComputer & "\root\cimv2")
Set colProcess = objWMIService.ExecQuery _
("Select * from Win32_Process Where Name = " & xProcessKill)
For Each objProcess in colProcess
value = objProcess.Terminate()
If value = 0 Then 'did killed
Killed = 1
End If
Next
' End of WMI Example of a Kill Process
If Killed = 1 Then
MsgBox "I killed it",64,"Yo.."
End If
WScript.Quit
disable/enable network from command line for script
tried on windows xp
get devcon.exe (just search for it) and copy to system32 folder (or in ur path)
get the hardware id for ur network adaptor by using command
devcon findall * > id.txt
open the text file to see the network id
PCI\VEN_8086&DEV_10BD&SUBSYS_82681043&REV_02\3&11583659&0&C8: Intel(R) 82566DM-2 Gigabit Network Connection
copy the line just before &REV...
and run this command
devcon disable "PCI\VEN_8086&DEV_10BD&SUBSYS_82681043"
note the colon
to enable, just replace it with 'enable'
------------
more from internet
get devcon.exe (just search for it) and copy to system32 folder (or in ur path)
get the hardware id for ur network adaptor by using command
devcon findall * > id.txt
open the text file to see the network id
PCI\VEN_8086&DEV_10BD&SUBSYS_82681043&REV_02\3&11583659&0&C8: Intel(R) 82566DM-2 Gigabit Network Connection
copy the line just before &REV...
and run this command
devcon disable "PCI\VEN_8086&DEV_10BD&SUBSYS_82681043"
note the colon
to enable, just replace it with 'enable'
------------
more from internet
I ran the command:
devcon listclass net
which showed all network adapters (real and virtual) on my WinXP
laptop. The first two are the actual hardware adapters, a built in
Ethernet adapter (Intel) and a wireless PCMCIA Ethernet adapter
(Linksys). The results are presented as a "hardware" device ID
followed by a description:
PCI\VEN_8086&DEV_2449&SUBSYS_30138086&REV_03\4&1351887D&0&40F0:
Intel(R) PRO/100 VE Network Connection
PCMCIA\INSTANT_WIRELESS_-_NETWORK_PC_CARD-317F\1 :
Instant Wireless - Network PC CARD
All the remaining "virtual" adapters have id's that begin with
"ROOT...". Therefore I experimented with the command to disable just
the built in Ethernet adapter:
devcon disable =net PCI\VEN*
which illustrates the use of a wildcard character in the "hardware"
ID.
The output from this command was:
PCI\VEN_8086&DEV_2449&SUBSYS_30138086&REV_03\4&1351887D&0&40F0:
Disabled
1 device(s) disabled.
Sure enough, when I went to view the network connections, this adapter
was disabled. I then did the obvious "undo" command:
devcon enable =net PCI\VEN*
which produced the output:
PCI\VEN_8086&DEV_2449&SUBSYS_30138086&REV_03\4&1351887D&0&40F0:
Enabled
1 device(s) enabled.
Even before going back to view the network connections again, I knew
the command had worked because a balloon popped up over the "Local
Area Connection" on my taskbar to inform that "A network cable is
unplugged." (Quite true, since I'm connected by the wireless adapter
to send this message.)
----------------
Wednesday, February 18, 2009
how religion affects us?
most books, videos i have seen discuss about the violence and hatred religion creates. I agree it is an important point. But i also think there are also many problems with belief in religion. it affects lots of other areas also.
donation to charity-most people are willing to donate a fraction of what they earn. but in most cases it goes to temples, events by religious groups etc and not to charity like cry etc
government revenues- priests in most countries don't pay tax. instead they earn a fat salary without work
time wastage - most people are made to believe by tourism, hotel industry that they need to visit such and such temple for god blessing. they take holidays from jobs. some even goto to temple daily for better blessing.
it leads to promotion of other scams like astrology, rings, yoga as medical solution etc.
health problem, possibly death like upwas in jainism or vegetarianism
donation to charity-most people are willing to donate a fraction of what they earn. but in most cases it goes to temples, events by religious groups etc and not to charity like cry etc
government revenues- priests in most countries don't pay tax. instead they earn a fat salary without work
time wastage - most people are made to believe by tourism, hotel industry that they need to visit such and such temple for god blessing. they take holidays from jobs. some even goto to temple daily for better blessing.
it leads to promotion of other scams like astrology, rings, yoga as medical solution etc.
health problem, possibly death like upwas in jainism or vegetarianism
Sunday, February 8, 2009
single education model?
There is no such thing as one model fits all. Then why do we have a education system which requires ones go through 12 years of same school curriculum? I wonder.
In India, we have 55 % illiterate people. Though I feel it must be much higher. Most people don't go for it because they don't see any obvious advantage of it. In 12 years of school, we learn just to0 many things like light's angle of reflection to finding ions present in a solution to solving complex differential equations etc.
But most people need all these in real life? What does a hotel manager guy need to know about it? A shopkeeper? A truck driver or his manager? a carpenter?
To add to it, we don't learn essential skills like time management, dealing with fear, depression, solving family problems, fraud/scams, basic laws, dealing with death of loved ones, proper nutrition and basic exercise skills etc etc. We don't learn how to aloof ourselves from possible scams like weight lose pills, fairness cream (yes, they don't work), homeopathy etc.
I believe there should be an option of students to get basic education (including literacy) and go for learning job skills as needed.
In India, we have 55 % illiterate people. Though I feel it must be much higher. Most people don't go for it because they don't see any obvious advantage of it. In 12 years of school, we learn just to0 many things like light's angle of reflection to finding ions present in a solution to solving complex differential equations etc.
But most people need all these in real life? What does a hotel manager guy need to know about it? A shopkeeper? A truck driver or his manager? a carpenter?
To add to it, we don't learn essential skills like time management, dealing with fear, depression, solving family problems, fraud/scams, basic laws, dealing with death of loved ones, proper nutrition and basic exercise skills etc etc. We don't learn how to aloof ourselves from possible scams like weight lose pills, fairness cream (yes, they don't work), homeopathy etc.
I believe there should be an option of students to get basic education (including literacy) and go for learning job skills as needed.
Sunday, July 27, 2008
fraud or scams in India.(A list)
I will keeping adding to the list as time passes by...
Fairness cream
http://www.doctorndtv.com/faq/searchdetailfaq.asp?id=12303
Ayurveda and a number of alternate medicines..
Homeopathy
http://nccam.nih.gov/health/homeopathy/
God, miracles etc etc :D
Abs slimming belt
Morning walker
Astrology, Rings, Horoscope, Gemstones
Chawanprash
Fairness cream
http://www.doctorndtv.com/faq/searchdetailfaq.asp?id=12303
Ayurveda and a number of alternate medicines..
Homeopathy
http://nccam.nih.gov/health/homeopathy/
God, miracles etc etc :D
Abs slimming belt
Morning walker
Astrology, Rings, Horoscope, Gemstones
Chawanprash
Saturday, July 26, 2008
online purchasing..
Getting cheap deal is every one's dream. Sometimes these can lead to owning fake items or items that won't last long. In India, most electronic items are heavily taxed. For example, price difference between a laptop in US and India can be easily 30k INR. as such many try to get it from friends in US who are coming to India.
In this article, I will mainly focus on purchasing electronic items and books.
ebay.in, indiaplaza.in, rediff, sify, sapnaonline.com, indiatimes.com, firstandsecond.com are some of the online shops in India.
For international online shops, one can opt for ebay.com, alibris.com, DealExtreme.com, Chinavasion.com, UXCell.com, mp4global.com, TinyDeal.com, kaidomain.com, amazon.com.
RULE: If the item you are purchasing is too cheap, it is probably fake or the seller will dupe you.
My review on some the sites (which by no means is exhaustive)
Ebay. in : Simply pathetic !! I rarely find a deal which offers me cheaper price than what is available in the market. In fact, most of the time, the cost is on higher end . However, if you are purchasing a small item, comparing to 'going to market' to buying online may save time and fuel costs. Mostly people purchase items that are around 200-300 rupees only. There are few items like mitashi mp3/dvd player or atmt mp3 player which are branded and can be purchased at ebay.in.
One can also find some good deals for 2nd hand mobiles if you are not in a big city. For example, say in Bhopal, getting a second handO2 PDA would be difficult and possibly costly than a reputed mumbai seller at ebay.in.
Beware !! buy only from sellers that have really high rating (100+) and that rating did came from selling similar items. For example, if the seller got most of his rating from selling Rs 50 necklace and is now selling 10 high end mobiles at low cost, he is probably fake.
See a small posting my me:
How easy it is to do fraud on ebay.in
http://forums.ebay.in/thread.jspa?threadID=600001746
Rediff.com, Indiatimes.com: Worthless ! No buyer protection !! And many got duped also. Avoid !!
BOOKS: For Indian books, my first choice is sapnaonline. They offer fast shipping, sometimes I got it within 36 hours !! and low cost. Other good options include cb-india.com, sify.
firstandsecond is also a good option if you want to buy international books and can wait around 30 days. You may compare price with alibris.com or ebay.com as their 'like new' books are very cheap but you will have to pay normally $11 as shipping. Compare the total cost and go for cheaper one. I have purchased 3-4 books from alibris.com. Once I got the book whose condition was worse than the condition they described. I emailed alibris about the problem with pics of book and they refunded me my entire money including shipping costs. The only problem is, it takes long time in shipping.
Unfortunately, you cannot buy from amazon marketplace but only amazon.com
DealExtreme.com, Chinavasion.com, UXCell.com, mp4global.com, TinyDeal.com, kaidomain.com
These are well know cheap chinese shops. I haven't purchased from all them but I know about dealextreme.
Dealextreme is great online shop. Their price is simply too good and you can read reviews also.
If you want to buy a portable video player, go for branded mp4 player only like onda, meizu from mp4global.com. Other similar looking items are not worth it.
In India, afaik most electronic items can be imported if their cost is less than 5k (excluding shipping cost), condition is new and it is marked as gift.
There are few exceptions like alkaline batteries. If you buy then from china, you will end up with fine and anti dumping tax. You can, however buy rechargeable Ni mh batteries. In fact, at ebay.com you can get a really good deal for nimh batteries.
(I will keep editing it as and when I get time)
In this article, I will mainly focus on purchasing electronic items and books.
ebay.in, indiaplaza.in, rediff, sify, sapnaonline.com, indiatimes.com, firstandsecond.com are some of the online shops in India.
For international online shops, one can opt for ebay.com, alibris.com, DealExtreme.com, Chinavasion.com, UXCell.com, mp4global.com, TinyDeal.com, kaidomain.com, amazon.com.
RULE: If the item you are purchasing is too cheap, it is probably fake or the seller will dupe you.
My review on some the sites (which by no means is exhaustive)
Ebay. in : Simply pathetic !! I rarely find a deal which offers me cheaper price than what is available in the market. In fact, most of the time, the cost is on higher end . However, if you are purchasing a small item, comparing to 'going to market' to buying online may save time and fuel costs. Mostly people purchase items that are around 200-300 rupees only. There are few items like mitashi mp3/dvd player or atmt mp3 player which are branded and can be purchased at ebay.in.
One can also find some good deals for 2nd hand mobiles if you are not in a big city. For example, say in Bhopal, getting a second handO2 PDA would be difficult and possibly costly than a reputed mumbai seller at ebay.in.
Beware !! buy only from sellers that have really high rating (100+) and that rating did came from selling similar items. For example, if the seller got most of his rating from selling Rs 50 necklace and is now selling 10 high end mobiles at low cost, he is probably fake.
See a small posting my me:
How easy it is to do fraud on ebay.in
http://forums.ebay.in/thread.jspa?threadID=600001746
Rediff.com, Indiatimes.com: Worthless ! No buyer protection !! And many got duped also. Avoid !!
BOOKS: For Indian books, my first choice is sapnaonline. They offer fast shipping, sometimes I got it within 36 hours !! and low cost. Other good options include cb-india.com, sify.
firstandsecond is also a good option if you want to buy international books and can wait around 30 days. You may compare price with alibris.com or ebay.com as their 'like new' books are very cheap but you will have to pay normally $11 as shipping. Compare the total cost and go for cheaper one. I have purchased 3-4 books from alibris.com. Once I got the book whose condition was worse than the condition they described. I emailed alibris about the problem with pics of book and they refunded me my entire money including shipping costs. The only problem is, it takes long time in shipping.
Unfortunately, you cannot buy from amazon marketplace but only amazon.com
DealExtreme.com, Chinavasion.com, UXCell.com, mp4global.com, TinyDeal.com, kaidomain.com
These are well know cheap chinese shops. I haven't purchased from all them but I know about dealextreme.
Dealextreme is great online shop. Their price is simply too good and you can read reviews also.
If you want to buy a portable video player, go for branded mp4 player only like onda, meizu from mp4global.com. Other similar looking items are not worth it.
In India, afaik most electronic items can be imported if their cost is less than 5k (excluding shipping cost), condition is new and it is marked as gift.
There are few exceptions like alkaline batteries. If you buy then from china, you will end up with fine and anti dumping tax. You can, however buy rechargeable Ni mh batteries. In fact, at ebay.com you can get a really good deal for nimh batteries.
(I will keep editing it as and when I get time)
Subscribe to:
Posts (Atom)