Friday, July 13, 2007

How to crash/hang PHPEclipse/Subclipse in Windows

  1. Create a new php file
  2. insert the following code


    <?php
    /*
    * Created on Jul 13, 2007
    *
    * To change the template for this generated file go
    * to Window - Preferences - PHPeclipse - PHP - Code
    * Templates
    */
    ?>
    <!DOCTYPE html PUBLIC
    "-//W3C//DTD HTML 4.01 Transitional//EN"
    "http://www.w3.org/TR/html4/loose.dtd">
    <html>
    <head>
    <meta
    equiv="Content-Type"
    content="text/html; charset=ISO-8859-1">
    <title>Product Info</title>
    </head>
    <body onmouseout="javascript:window.close();">
    Comming soon: some real cool stuff.
    </body>
    </html>

  3. Save file
If anyone can save this code in PHPEclipse without hanging Eclipse in Windows send me your system details. If anyone knows a setting that will prevent this from hanging let me know.

Thursday, June 7, 2007

Make your website compatible with CA Personal Firewall

If your website has pages originally written pre CSS that use bitmaps for spacing and to ensure minimum widths, then there is a good chance that your website is unusable/viewable for customers of CA Personal Firewall. If your online sales have dropped off since January, that is February's sales are 10%-20% less than February 2006 and your January 2007 sales were better than January 2006, then you need to install CA Personal Firewall or find someone that has it on their computer to test your website.

Saturday, February 24, 2007

Asteroid Zone 1.5 for Motorola L2

This will probably work on other cellphones too, not just the L2 and probably not just Motorola cells. Asteroids.jad, Asteroids.jar


You can find the original version of Asteroid Zone 1.4 at http://jfdoue.free.fr/index.html. In 1.4 you could not hold down left to keep rotating left or right to keep rotating right or fire to keep shooting. So 1.5 acts more like you'd expect, to keep spinning, hold down the left or right. To stop spinning, let go of left or right.

Just For Fun

package carton;

public class Class {
public static void main(String[] args) {
long
a=0x89859e,
b=0x6c81ca,
x = 1000,
y=513,
z=(long)Math.pow(x*10,2),
w=51387901,
u=8,
t = b;
a = (
(
(
(a * x) + (y=108) + 405
) * z
) + (
w=10003301
) + 41384600
) * (
(u=10)-2
) + (
t = (
(
(
(b * x) + y
) * z
) + w
) * u
) - (b = t);
String n = "0" + a + b;
for(int i = 0; i < n.length()-1; i+=3) {
System.out.print(
(char)Integer.parseInt(n.substring(i,i+3).trim())
);
}
}

}

Install Java Applications Onto Motorola L2

Does anyone out there know how to install JADs onto a Motorola L2 via bluetooth?

Friday, February 23, 2007

So you already have a usb cable that fits your Motorola L2

If you already have a USB cable that fits your Motorola L2 and all you want to do is charge your cell phone via USB instead of carrying the AC adapter with you everywhere you go, you need to install the driver, without the driver installed, it won't charge the cellphone. You can download the driver here.

How to make your own ringtone for a Motorala L2

  1. Record, edit, find, create the ringtone you want and save it as an mp3 file, let's say phone.mp3.
  2. Download lame, extract to C:\Program Files\lame
  3. Put C:\Program Files\lame in your PATH
  4. lame.exe -b 32 -m m -h -B 48 --resample 24 phone.mp3 compatible.mp3
  5. If your computer does not have bluetooth, buy a Targus USB Bluetooth adapter for $19 or cheaper.
  6. Once you have bluetooth set up and working on your PC, then on your cellphone: Menu->Settings->Connection->Bluetooth Link->Setup->Find Me
  7. On your PC, right click the Bluetooth logo in the Systray->Bluetooth Setup Wizard...->Follow the instructions until Motorola L2 is listed.
  8. Enable OBEX File Transfer
  9. On your Desktop double click My Bluetooth Places and then navigate to My Bluetooth Places\Entire Bluetooth Neighborhood\Motorola L2\OBEX File Transfer\audio
  10. Paste your ringtone (In the example above it would be called compatible.mp3) into My Bluetooth Places\Entire Bluetooth Neighborhood\Motorola L2\OBEX File Transfer\audio
  11. When the upload finishes, on your cellphone: Menu->My Stuff->Sounds->compatible->Menu->Apply as Ringtone