Archive for the ‘Tutorial’ category

How to autostart service in linux ubuntu

April 8th, 2011

I was creating a program using python for my linux box and I need this program runs every time when the server booting. I was googling how to get this done, some are suggesting to edit the rc.d file then add our line in there. That’s work though, but I found something better, we can manage what service will be started on booting using rcconf.

You will need to install rcconf from repository to get this work,

apt-get install rcconf

Once installed you can use it by entering this command

rcconf

The rcconf will display what service/program that located in /etc/init.d/, mark the service you want to start manually then save it.

That’s it, so simple and easy :)

What people search:

Powershell enable execution of script

April 4th, 2011

By default powershell prevent the user to run a script file (.ps1), in order to enable the execution of script we have to manually enable it.

First check your powershell execution policy

Get-ExecutionPolicy
Restricted

If it shows “Restricted” then you will have to enable it

We can use "Unrestricted" phrase to enable it

Set-ExecutionPolicy Unrestricted

It will prompt confirmation, if you want it to force put "-f" in the command. The command will look like this

Set-ExecutionPolicy Unrestricted -f

Now you can run your scripts on your Powershell.

What people search:

How to Flush DNS Cache in Windows XP

March 18th, 2011

If you have a domain and set a new nameserver for your domain, your computer will not access the server behind your new nameserver. It’s happened because your computer cached the DNS so when you trying to access your server using the domain, it will always redirected to previous server. The DNS cacheĀ  will be updated automatically after period of time, max time for this update is 2 x 24 hours.

To manually flush your DNS cache on Windows XP, you can use this command in command prompt. Open your command prompt by pressing Windows Button + R, then type cmd.

Use this command.

ipconfig /flushdns

What people search:

XML-RPC on IPhone

August 25th, 2009

Hi, after play along to implement XML-RPC on IPhone finally I made it. I tried googling to find some articles that related to XML-RPC on IPhone, and those article drag me to WordPress application for IPhone. This application using XML RPC to communicate IPhone with the WordPress Blog, so the idea is grab the XML-RPC function from the WP application and implement it on our application. First we need to download WordPress for IPhone source code, you can download it here. » Read more: XML-RPC on IPhone

What people search:

How to connect MySQL in Prado Framework

July 18th, 2009

Hello!

This is my first article tutorial in this blog, today my friend have a problem connecting SQL databases with PRaDO framework. I have used this framework several years ago, and it’s quite easy to make a website with Prado. This time I will write how to connect MySQL with Prado, insert data, and display it in the web page.

First, I’m using XAMPPLITE as webserver, XAMPPLITE is lite version of XAMPP, but if you are using XAMPP it’s ok. Download XAMPP.

After you finish the XAMPP download, continue with download Prado framework. Download Prado.

Install the XAMPP, and extract the prado framework in htdocs folder.

The optional prado-cli.php PHP script file in the framework directory provides command line tools to perform various tedious takes in Prado. The prado-cli.php can be used to create Prado project skeletons, create initial test fixtures, and access to an interactive PHP shell. We will use command line tool to generate our prado project. » Read more: How to connect MySQL in Prado Framework

What people search: