Aleksandar's computer workshop

Let's see what Aleksandar was fixing today.
My findings, tips & tricks related to computers, internet, programming and other stuff I was working with.

Windows Vista Battery Saver

Some rumors are saying that AERO interface is draining the laptop battery due to intensive GPU usage.
 
There is small utility which "optimizes" the Vista options. Does it really works on your laptop you have to test yourself.
Here are few articles related to this issue:

FreePBX Music on Hold troubleshooting

To add custom MP3 files to Music on Hold folder you can use FTP, SCP 
or any other file transfer method.
Upload the file to this location:
/var/lib/asterisk/mohmp3
After that yo have to "fix" the security rights with:
chown -vR asterisk.asterisk /var/lib/asterisk/mohmp3
chmod -v 775 /var/lib/asterisk/mohmp3
chmod -v 664 /var/lib/asterisk/mohmp3/*
In case you still want to use web interface and plan to upload larger mp3 music on hold files, change the “max filesize” from 2M to 20M in
nano /etc/php.ini
More details related to FreePBX Production Install Guide (CentOS v5.x, Asterisk v1.4.x, FreePBX v2.4.x) visit this URL:

Why 99% of Power Supply Reviews Are Wrong

http://www.hardwaresecrets.com/article/410

http://forums.hardwaresecrets.com/why-99-power/1937
http://forums.hardwaresecrets.com/why-99-power/1937/2



1. The use of a multimeter is a declaration that the person has no idea of what they are dealing with. Multimeters sample at their designed rate and display an average which completely masks the underlying reality of wildly shifting loads. (If this were not the case, multimeters would have a blur for their least significant digits.)
2. Voltage is EVERYTHING. The current don't flow 'til the voltage says go. Current is merely the result of a voltage differential and is limited by the resistance to it.
3. The 'resistance' (readers please note the quotes before madly posting that there is more than simple dc resistance in play) presented to each rail of the PSU is a maelstrom of shifting values. One moment just a tad, at another, a gargantuan jump. It is to this nightmare that the PSU must react. Testing with static loads is a joke.
4. The specs for PSUs are NOT expressed as 'averages' - if your voltages show a sag, you're 'near the edge', if not 'in deep doodoo'! If the voltage(s) spike/sag outside the limits, ALL BETS ARE OFF.
5. PSUs are mostly 'snake oil' - sold to the indifferent and the gullible (not to mention the adamantly ignorant). I remain convinced that a 'cheap' PSU costs $2.95 to manufacture while a 'quality' unit costs $4.95; the rest is packaging, transportation, advertising and mark-up, mark-up and more mark-up.
6. The 'rating' of a PSU is pretty well WHATEVER the vendor wants it to be; they're the ones who set the parameters for the derivation. (I remember some 30-odd years ago reading an article showing how a stereo amplifier that had true specs of 5W/channel, 20-20K +/- 0.5%, THD/IMD under 1.0% could be advertised as a 200W/channel unit - LEGALLY!) The soul bragging about his 650W Q-Tec has yet to discover that it is 'rated' in peak (transient) power, not continuous (where it would be lucky to hit 425W) and that that particular brand has garnered such a bad rep that it has been abandoned.
7. PSUs are made with 'industrial' grade components (+/- 20%). The actual capacity of an assembled unit will fall in a classic bell-shaped pattern. The bean-counters are the ones who decide the 'most profitable point' between 'returns' and 'reputation'. (Anyone still believe ANTECs are 'built like tanks'? There was a time...)
8. The 'average' system draws less than 200W from the wall socket. Those who cannot grasp the difference between 'average' at the wall and instantaneous 'peak' (all rails SIMULTANEOUSLY) at the PSU output will continue to live on their 'luck of the draw', convinced that a 450W unit can run anything.
I doubt I will ever see a PSU evaluation that actually 'tests' the PSU's ability to maintain voltages within spec (down to the microsecond, or at least millisecond) while each rail was being jumped (both up and down) by 1,2,3...max amps from each possible point (1, 2, 3...max amps), SIMULTANEOUSLY at RANDOM rates. But then, I doubt there is a PSU that could pass.
And considering that component manufacturers are no more forthcoming in their actual peak demands, it probably doesn't matter.
Caveat emptor.

cdonts on Windows 2003

Server object error 'ASP 0177 : 800401f3'

Server.CreateObject("CDONTS.NewMail") Server.CreateObject failed windows 2003

I am working on IIS 6...and I cannot even find the dll smtpsvg.dll when I run regsvr32...
My createobject fails everytime :(.
I first started dickering around with permissions, then I realized the dll isn't even on the server. What mind-bogglingly basic error am I making here?Set Msg = server.createobject("CDONTS.Newmail")Thanks for any guidance! :)

you're using Windows 2003 Server you need to use Server.CreateObject("CDO.Message")")CDo runs on Windows 2003, CDONTs does not.Here is the code I use:  I wouldn't screw around with the configuration as mentioned...alwasy seems to mess it up.  All default should work fine with your host:Code below works, I use it: uses port 25, no configuration. Had problem with configuration on local machine.strTo = "toemail@yourdomain.com"    'Make sure the From field has no spaces.strFrom = "fromemail@yourdomain.com"strSubject = "Your Subject"strBody = "The content of email"' Create an instance of the NewMail object.Set objCDOMail = Server.CreateObject("CDO.Message")' Set the properties of the objectobjCDOMail.Sender = StrFromobjCDOMail.To = strToobjCDOMail.Subject = strSubjectobjCDOMail.TextBody = strBody' Some of the more useful ones I've included samples of here:'objCDOMail.Cc = "mailto:sschofield@aspfree.com;steve@aspfree.com"   Notice this sending to more than one person!'objCDOMail.Bcc = "sschofield@aspfree.com;steve@aspfree.com"'objCDOMail.Importance = 1'objCDOMail.AttachFile "c:\path\filename.txt", "filename.txt"' Send the message!objCDOMail.Send' Set the object to nothing because it immediately becomes' invalid after calling the Send method + it clears it out of the Server's Memory.Set objCDOMail = Nothing


: I am getting the error "Server.CreateObject Failed": on the following line of code on a Windows Server 2003 box::: 
Set oCDONTS = Server.CreateObject("CDONTS.NewMail"):: Is CDONTS no longer included with Server 2003?: Any advice on how to address this problem would: be most welcome.~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~CDONTS (CDO for NT Server) is deprecated. It was included with Windows 2000for backwards compatibility.Options:a) Use CDOSYS instead (CDO for Windows 2000). Joshua posted a link, or youcan use:http://msdn.microsoft.com/library/?url=/library/en-us/exchanchor/htms/msexchsvr_cdowin2000.asp?frame=trueto get to the home page/b) Get a copy of CDONTS off an old machine and register it on your WIndows2003 Server. I would only recommend doing this if you have a lot of oldercode already that uses CDONTS and you have moved the site over to a Windows2003 Server. Since CDONTS is not supported on Windows 2003 Server you don'tknow how long it'll keep working.