XAMPPLITE MINI CONTROL

lunes, 3 de noviembre de 2008 Sin comentarios

XAMPPLITE MINI CONTROL

Utilizando el XAMPPLITE aveces tengo problemas con el xampp-control.exe para iniciar o deneter Apache y MySQL asi que decidi hacer un pequeño programa.

Aqui el codigo fuente compilarno en VB.NET 2008:

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
Public Class Form1
    Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
        xampplite.run_services()
    End Sub
    Private Sub Button2_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button2.Click
        xampplite.stop_services()
    End Sub
End Class
 
Module xampplite
    Sub run_services()
        run_batch("C:\xampplite\apache_start.bat")
        run_batch("C:\xampplite\mysql_start.bat")
    End Sub
    Sub stop_services()
        run_batch("C:\xampplite\apache_stop.bat")
        run_batch("C:\xampplite\mysql_stop.bat")
    End Sub
    Sub run_batch(ByVal x As String)
        Dim psi As New ProcessStartInfo
        psi.FileName = x
        psi.WorkingDirectory = "C:\xampplite\"
        psi.WindowStyle = ProcessWindowStyle.Hidden
        Process.Start(psi)
    End Sub
End Module
Categories: develop, windows Tags: , ,

QEMU Emulator

sábado, 1 de noviembre de 2008 Sin comentarios

QEMU Emulator

QEMU is a great emulator, like VMware or VirtualBox you can use to manage many guest operating system on your computer of course you need a lot of RAM

Install on Debian:

apt-get install qemu
wget http://bellard.org/qemu/kqemu-1.3.0pre11.tar.gz
tar xvzf kqemu-1.3.0pre11.tar.gz
cd kqemu-1.3.0pre11
./configure
make
make install

To load kqemu on Windows:

net start kqemu

To load kqemu on GNU/Linux:

modprobe kqemu

Port redirection use the flag option “-redir” some examples:

-redir tcp:8000::80  # redirect host port 8000 to port 80 on the guest.
-redir tcp:22::22 # ssh server on the guest

Note: I have a little trouble to install kqemu.inf on Windows Vista Bussiness i need to download the setup file on “Accelerators” section on QEMU for Win32

Damn Small Linux is a light distro use old kernel but run very wheel on old computer systems, you can run on CD-Rom, USB or Embedded System (using QEMU emulator)

Some times you need test some software but you want to install on your personal computer system, emulate and test the software is the best solution

Categories: network, unix/linux, windows Tags: ,

El Caudillo del Sur

viernes, 31 de octubre de 2008 3 comentarios

El Caudillo del Sur

El dia de hoy tuve la oportunidad tomarme una fotografia con el hijo de Emiliano Zapata, como la mayoria de las personas saben, Emiliano Zapata jugo un papel muy importante en la Revolución Mexicana.


Fotografia con Don Diego Zapata:

Diego Zapata Fotografias de EsMas

Don Diego Zapata es todo un personaje es una persona humilde que apesar de sus años se encuentra muy bien conservado ademas de que tiene un excelente sentido del humor.

Le preguntaron que cual era el “secreto” para llegar a viejo y estar bien conservado el respondio, nada de beber, nada de fumar, luego alguien le pregunto y las mujeres, Don Diego no respondio solo se empezo a reir.

Categories: personal Tags:

Electronic Game Show 2008

lunes, 27 de octubre de 2008 4 comentarios

Electronic Game Show 2008

El pasado domingo fui al Electronic Game Show 2008 aqui algunas fotos:
























Categories: games, personal Tags:

Using Windows ? Don’t Kill Yourself

lunes, 27 de octubre de 2008 Sin comentarios

Using Windows ? Don’t Kill Yourself

Supose you are Linux user and you have a Windows system.

Alternatives: Cygwin, Mingw or Colinux

You need some (or all) of this interpreters:
Perl, PHP, Python and Ruby

Modify the %PATH%

Example you have a bin dir, on C:\ to include the executables on the %PATH% do this:

1
set PATH=%PATH%;C:\bin\

On Windows Vista, you can use your mouse:

computer > properties > Advances system settings > (continue) > Advanced > Enviroment Variables > System Variables > Path (edit)

Example run Kompozer on cmd.exe but no modify %PATH%

1
2
: kompozer.bat save on %WINDIR%
@"C:\Program Files\Kompozer\kompozer.exe"

Doble click on your scripts to run:

1
2
3
4
5
6
7
8
: Perl Scripts
 assoc .pl=Perl.File
 ftype Perl.File=C:\strawberry\perl\bin\perl.exe "%1" %*
 set PATHEXT=%PATHEXT%;.pl
: Python Scripts
 assoc .py=Python.File
 ftype Python.File=C:\Python26\python.exe "%1" %*
 set PATHEXT=%PATHEXT%;.py

Note:
On Windows Vista you need run cmd.exe as Administrator don’t work as normal user

Apache, PHP and MySQL ?
XAMPP and Server2Go

Notes:
XAMPP: simple, quick and easy install.
Server2Go: is great to make CD demo of a Web Application.

Using Perl or Python as CGI on Windows ?

Using Python 2.6

1
#!\python26\python.exe

Using Strawberry Perl:

1
#!\strawberry\perl\bin\perl.exe

Now your script works on http://localhost/cgi-bin/script.cgi

Categories: develop, unix/linux, windows Tags: , , , , ,

Switch to our mobile site