May 13

Login as root

### Create a folder `installer` ###
mkdir /installer
cd /installer

### Download the installer from apachefriends usin wget ###
wget http://www.apachefriends.org/download.php?xampp-linux-1.6.8a.tar.gz

### Unpack the tar ball to folder `/opt` and install service ###
tar xvfz xampp-linux-1.6.8a.tar.gz -C /opt

lvl=`egrep :initdefault: /etc/inittab|cut -d: -f2`

cd /etc/rc.d/rc${lvl}.d

ln -s /opt/lampp/lampp S99lampp

ln -s /opt/lampp/lampp K01lampp

### Start Server ###
cd /opt/lampp
./lampp start
./lampp status

Tagged with:
Apr 20

I have installed Canon 5400 in our network, and found an option to add the printer with its MAC address in the installer, then wondered if that’s possible with a network printer to retrieve its MAC from my PC, although I know what its IP address. Here’s the solutions

1. Click Start -> Run, type cmd and click Ok
2. Type ping xxx.xxx.xxx.xxx, replacing xxx.xxx.xxx.xxx with the IP address of the computer who’s MAC address you want to retrieve( in my case its 192.168.0.3)
3. After the ping response has finished, type arp -a
4. Under Internet Address, locate the IP address you just pinged. In the same line, the corresponding MAC address is listed under Physical Address

You will see something like:
192.168.0.1 00-17-16-00-33-b4 dynamic
192.168.0.2 00-50-04-ee-99-c2 dynamic
192.168.0.3 00-00-b4-ce-2a-ac dynamic

Tagged with:
Mar 24

Most of the developers nowadays prefer to rewrite URLs for (Search Engine Optimization)SEO. This code is sample on how to strip symbols from a string.

<?php
function urify($str){
  return str_replace(" ","-",trim(ereg_replace("[^A-Za-z0-9[:space:]]", "", $str)));
}
$string = "I really hate symbol on my URL - 12345 What the !£$%^& ~!@#$%^&*()_+=-[]{}";
echo urify($string);
?>

Output is:
I-really-hate-symbol-on-my-URL–12345-What-the

Tagged with:
Mar 19

Google Currency Conversion API

Well, the api is pretty straight forward.
I found it from the Curreny Conversion gadget of iGoogle.

Here is the example:

http://www.google.com/ig/calculator?hl=en&q=1USD%3D%3FPHP

Here is templage in php:

$amount = "1";
$from_Currency = "USD";
$to_Currency = "PHP";

$query_URL = "http://www.google.com/ig/calculator?hl=en&q=$amount$to_Currency.%3D%3F$to_Currency";

The resposnse looks like this:
{lhs: “1 U.S. dollar”,rhs: “45.6704421 Philippine pesos”,error: “”,icc: true}

Not sure if Google is credible to use for conversation, however, if we are just working on simple project, this will be a good help. :-D

Feb 19

If you’re looking for an easy way to extract emails from Craigslist but want to avoid tying up your computer and your connection – http://craigslist.pasukan.com web based will fit your needs perfectly.

Unlike other Craigslist email extractor software that causes Craigslist to blacklist your server or IP address and causes your computer to slow to a crawl, http://craigslist.pasukan.com collects email effortlessly through the web. Enjoy always-on access to the latest, up-to-date emails directly from Craigslist. Target your mailings more precisely by targeting on the exact city and category you want to promote to. Make your message heard by getting only the most recent emails available the email addresses based on the information you supply, so you’re assured of smart results – every time.

Forget dealing with CAPTCHA bypassing and having your account suspended. http://craigslist.pasukan.com works from anywhere to give you all the details you need – right when you need them.

Tagged with:
Feb 04

Dante’s Inferno hid passwords for their website http://hellisnigh.com in the source code of various websites. When you enter them all you get to download a zip file called “earthly_rewards_dantes_inferno.zip”. I’ll let you know what it is once it finishes (46MB and climbing) — the website is really slow right now. You can probably try to download it directly here, let me know if it doesn’t work: http://www.hellisnigh.com/files/earthly_rewards_dantes_inferno.zip

Password 1: excommunicate
Password 2: scythe
Password 3: grafter
Password 4: styx
Password 5: unbaptized
Password 6: alighieri

Password 1 is found in the source of http://digg.com, 2 on http://dailymotion.com, 3 on http://gamespot.com, 4 on http://ign.com, 5 on http://gamesradar.com, 6 on http://wwe.com

Tagged with:
Jan 22

I use Hostgator as my hosting company. I love them – great service, tons of space and no long term obligations. And the servers are fast. Now, another reason to love them – running Subversion repositories on your server with the caveat – you can only have one account to account to access that repository. If you develop by yourself, and I do for now, it’s not a problem. So how do you do it – assuming you are a Java coder using Eclipse on Windows?

1. Send Hostgator support a request to get SSH access to your server. They will ask you to send in a picture id and once that is cleared, you should be good to go. A matter of a day or two.

2. Install Subclipse SVN plugin for Eclipse. The Subversive plugin DOES NOT WORK.

3. Install the really good Tortoise SVN client

4. Set up an environment variable called SVN_SSH. To do that, go to the Windows Control Panel -> System -> Advanced -> Environment Variable -> New (under the bottom Window). For variable name enter the value SVN_SSH and for its value enter c:\\Program Files\\TortoiseSVN\\bin\\TortoisePlink.exe (assuming you installed Tortoise SVN in the default location).

5. Start Eclipse and go to the Subclipse options: Window -> Preferences -> Team -> SVN . There, for the SVN Interface select “SVNKit (Pure Java)”. Click OK to store the setting.

6. Now, using Putty or some other SSH tool, SSH to your account. You will need to set up a repository for your project. To do that, create the directory that will be used as repository, say /myrepo. Now, create an Subversion repository inside that directory: svnadmin create myrepo.

7. Create a new project by checking out the repository from SVN. To do that, in Eclipse, go to: File -> New -> Other -> SVN -> Checkout Project From SVN.

8. The ‘Checkout from SVN’ window will appear. There select to create a new repository location

9. For the URL, enter: svn+ssh://@:2222/home//. In other words, if your domain is example.com, your admin user name is joey and the path to your repository is /myrepo, then your URL will be svn+ssh://joey@example.com:2222/home/joey/myrepo

10. Another popup window will follow that will ask you for your SSH user name. Enter the details and make sure they are saved.

11. You should be good to go at that point as the rest of the process is the normal project checkout scheme used by Subclipse.

Tagged with:
Jan 13

Unlocking ZTE MF627 / MF626

Please Only Proceed If You Are Capable Of Understanding These Instructions! You Do This At Your Own Risk!
If You Run Vista Do Not Try It, Only XP
Make sure no simcard is inserted in the dongle.
Plug it into the back of PC! As usb hubs and front ports can sometimes cause issues.
If not already done so allow modem to install drivers.

Let XP say “Device is installed & ready for use” Go to Start\Control Panel\System\Device Manager\ Make sure dongle is installed with drivers.
Download and extract the file: ZTE MF627 Unlocker

Run Flash Updater, when it has found device the download button will become active.
Click Download and leave it to flash, Mine took 18 minutes.
Do not unplug or use PC or you may break your dongle!
When it has finished it will tell you!

Extras:
Unplug it & put in your Vodafone/T-mobile/Orange or O2 Sim or whatever.
Run the auto run file and install Telstra connection manager, make sure there is no other connection manager installed, if there is then uninstall first.

Depending on your type of sim you need to add the right config file for your provider.
Search Google for the right APN etc for whatever type of sim you have.
For an O2 sim on a contract it was-
Click settings, Click Add, Config Name = O2Dial Number= *99#user = fasterpass= password APN= mobile.o2.co.uk DNS servers= 193.113.200.195 DNS servers= 193.113.200.195 I left the rest default and set the O2 config as the default provider.

Tagged with:
Dec 30

You can also browse the net using your China Phone’s Built-in Browser

SMART USERS

(Working po sya as of September 3, 2009, just try to dig for some working webproxies)

1. Goto Services, Data Account,and set the following:
Account Name: SmartGPRS
APN: Internet
Username & Password: (Leave it Blank)
Authentication Type: Normal

2. Goto WAP, Settings, Edit Profile, Select a Blank Profile, Edit Profile
Rename Profile: Smart INTERNET
Homepage: http://wap.smart.com.ph
Data Account: SmartGPRS (The one we have created earlier)
Connection Type: HTTP (enter Proxy Address: 010.102.061.046, Port: 8080)
Username & Password: (Leave it Blank)

3. SAVE and ACTIVATE your Profile

4. Then, go back to WAP and Input desired freesite+proxy combinations
Example: wap.chat-central.net.mycroc.com

5. FINALLY, you can now enter desired URL (e.g. http://www.esato.com)

GLOBE USERS

1. Goto Services, Data Account,and set the following:
Account Name: GlobeGPRS
APN: http.globe.com.ph
Username & Password: (Leave it Blank)
Authentication Type: Normal

2. Goto WAP, Settings, Edit Profile, Select a Blank Profile, Edit Profile
Rename Profile: Globe INTERNET
Homepage: http://3g.myglobe.com.ph
Data Account: GlobeGPRS(The one we have created earlier)
Connection Type: HTTP (Proxy Address: Blank; Port: Blank)
Username & Password: (Leave it Blank)

3. SAVE and ACTIVATE your Profile

4. Then, go back to WAP and Input desired freesite+proxy combinations
Example: 3g.myglobe.com.ph.1h1.net
Example: 3g.myglobe.com.ph.mycroc.com

5. FINALLY, you can now enter desired URL (e.g. http://www.esato.com)

PHProxies for GLOBE & SMART USERS

Set the following:
Homepage:
http://wap.smart.com.ph/dahr.php or
http://wapx.amob.com/dahr.php or
any Smart or Globe Freesites (be sure to affix /dahr.php after the Freesites)

IP: 66.235.176.200 2 Port 80
(to have the Numeric IP Address of the Phproxies, just go to the command prompt and Ping the address)
ex. ping streetfreeze.com

Tagged with:
preload preload preload