Sunday, January 25, 2009

How to disable "autoplay" of removable devices.

Auto-play of medias such as CDs, USB flash drives, etc. is usually the common culprit of virus infection these days. This is enabled by default installation of Windows.

To disable it, execute these simple procedures below in chronological order:
  1. Type gpedit.msc on command prompt or start menu \ run
  2. You will see the "group policy" management console window, select Local Computer Policy \ Computer Configuration \ Administrative Templates \ System under the tree view.
  3. You will see an item in the right side pane called Turn off Autoplay.
  4. Double click the item, and set the radio button to Enabled, and change the "Turn off Autoplay on" to All Drives.

Friday, January 2, 2009

server-side send email scripts (simplest and working)

PHP
$to = "recipient@example.com";
$subject = "Hi!";
$body = "Hi,\n\nHow are you?";
if (mail($to, $subject, $body)) {
echo("Message successfully sent!");}
else {
echo("Message delivery failed...");}

ASP
Set objMessage = CreateObject("CDO.Message") objMessage.Subject = "test"
objMessage.From = "emailaddr@domains.ext"
objMessage.To = request.Form("emailadd")
objMessage.TextBody = "Blah"
objMessage.Configuration.Fields.Item
("http://schemas.microsoft.com/cdo/configuration/sendusing") = 2
objMessage.Configuration.Fields.Item
("http://schemas.microsoft.com/cdo/configuration/smtpserver") = "localhost"
objMessage.Configuration.Fields.Item
("http://schemas.microsoft.com/cdo/configuration/smtpserverport") = 25
objMessage.Configuration.Fields.Update
objMessage.Send
* mail server should be running and functioning
* mail server's mail service configuration should be considered

Thursday, December 25, 2008

Mark Wahlberg wearing Manny Pacquiao Shirt

I just bumped with this pix of Mark during the holiday season with her daughter at LA. It's just cool to see Hollywood stars as fan of Manny.

Monday, December 22, 2008

solved problem: New SQL Server Registration failed: server does not exist or access denied. ConnectionOpen(Connect())

After downgrade of SQL server due to speed problems both on local and remote production server, I can't re-register the remote production server in enterprise manager on local machine.

After many research and googling, registration on the other way/side is successfull but all resolutions on local failed.

Solution:
Remove Server Alias of remote server from local Client Network Utility. This alias makes the remote server name as local that's why it can't connect.

Thursday, December 18, 2008

Importance of a System

Whether its a web-based cms, a windows based application, etc., during any stage of the development we must always remember the long-term goal or the importance of the system we are developing. This is where a programmer's thinking usually fails differently from a project manager.

"Never defeat its purpose", that's what I always say. Otherwise, your efforts are nothing but waste.

Priority for users and administrators are different.

For users, what matters is that they get what they need from the system and that it works perfectly fine when they need it. Top importance for them are:
  1. Content
  2. User-friendliness
  3. Speed
  4. Graphics/Design (least important)
For system administrators, what's important usually are complaints or profit. If nobody audits sys ad's failures, then users are least of sys ad's concerns which is very wrong. Users are the life of the system. If they don't accept it, it's dead. They are the one who test the system into stability. Another thing that will lead to complaint is if something wrong or anything bad happens to the system therefore sys ad's priority are/should be:
  1. Users concerns (list above)
  2. Functionality (bugs, developer's)
  3. Security (vulnerabilities, backup)

Thursday, December 4, 2008