May 2006


May 31, 2006: 8:34 pm: hcanoApplications, How-To, SySAdmin, Windows

Did you have that cool program that only runs in interactive mode?

Are you needing to put some files working in the “service” mode?

So this the is the real juice.

To make a program run like a service you need two things:

  1. SrvInstW: this program is located on Resource Kit from Microsoft
  2. SrvAny : another tool from microsoft

The srvany is like an interface between your application and the windows systems, in fact you use the SrvInstW to run the srvany, and you put your program to run by parameter.

This works in this way:

Srvany -> runs srvany –> runs your program in service mode.

Ok, enough of theory here is the real thing:

First run the SrvInstW

and follow these steps

  1. OPen the InsSrvW Opening

2. Next , choose local machine Opening

3. Next, enter the name of the new serviceName of The Service

4. Next, choose the appilcation !! use srvany.exe !!Choose srvany.exe

5. Next, SrvinstW-5.JPG

6. Use the System account or enter the logon user,System Account
7. Choose the automatic and Finish!Automatic

Ok, Now you are thinking:

“I am done with the srvany.exe and what about MY APPLICATION????”

Now polish your skills in regedit and do this:

Use Regedit:

go to HLK\Local Machine\System\CurrentControlSet\Service\Your service name

Make another key: Parameteres

Make a new string sz called Application

Put the full path of your application on this string like this picture

Regedit

And it is done….

If you have more questions on anything related to this, please enter in our forum, we are friendly and don’t bite :)

May 6, 2006: 3:37 am: hcanoErrors, How-To, PHP-Mysql, SySAdmin, charset

One of these days, I was doing a job for one parent me.

His site is a simple database with portuguese words and what I only had to do was a query and display the results.

But when the results came, the results that had accentuation or special characters all come wrong.

So looking in the internet, and chatting we have two main answers for this question:

1- use collate with convert and do some voodoo magic

2- Use the utf8 and fix all.

You have to understand two things.

The mysql usually works by default with the utf8 encoding.

With you are doing a query and showing it on a web page, your web page has to use the same charset (Utf8).

on your page you must have something like this to use the utf8

” ….meta http-equiv=”Content-Type” content=”text/html; charset=utf-8″