Blank screen problem in IPhone 3G

My wife’s IPhone got blank screen with no reason at all while reading her text message. She thought this is normal since the battery is near empty, she did recharge it on the wall outlet but still got a black screen. She decided to charge it using USB, iTunes detected it but the battery charging status was not increasing and still its screen remains black. :(

I went to Power Mac to ask if they can repair it and the agent recommended me to go to Globe(Authorized distributor of IPhone here in the Philippines). I went to Globe and the receptionist said that they only accept and repair IPhone purchased from them. This is another problem since her IPhone was purchased abroad. :(

I searched the net and found a solution. Yepey! We just need to RESET it by pressing and holding both Sleep/Wake button and Home button simultaneously for atleast 10 seconds. The screen will clear out and then the Apple Logo will appear on the black background. We just waited for few seconds and Yahoo the screen lit and we saw the beauty of this cool and techy gadget. :)

Btw, here is the link where I got the solution - http://seogadget.co.uk/iphone-display-blank-screen/. Many thanks to the author, you made my wife happy again. :)

Linux where are you?

I miss Linux for more than a year now. After my first company, I have been in the companies which main development OS is Windows. It has been good experience to develop applications in Linux environment. It was robust, the compilation and the performance of the components like the application server is better than Windows. (IMHO)

In order to refresh my Linux knowledge, I installed a virtual linux distro in my Windows machine. Thanks to VMWare for their VMPlayer and Virtual Appliance.

Here are the requirements and steps to run linux in your Windows environment.
1. You need a VMPlayer. You can download the player on this site.
2. You need an appliance for your Linux ditro. I used the CentOS 5 since this disto has features and updates similar to RedHat Enterprise Linux. You can download the appliance at this site.

This appliance is a server edition and in order to have a GUI or X installed you need to use the ff commands.

First you can see all the yum groups available with the command:

yum grouplist

You can install X and Gnome or KDE like this:

yum groupinstall “X Window System” “GNOME Desktop Environment”

or

yum groupinstall “X Window System” “KDE (K Desktop Environment)”

Sang Shin’s J2EE JavaPassion

J2EE Java Passion! Did you know this online tutorial? This is cool, I recommend this to those programmers/developers who are planning to focus on J2EE and also preparing for SCWCD exam.

The lesson started last April 30 but still ongoing. So hurry, register now! :) I have submitted couple of home works to Mr. Sang Shin and I’m planning to finish this lesson. If you need my help from the previous topics just let me know.

Thanks to Mr. Sang Shin!

Passion!

How to setup an Oracle Express Edition DB

1. Insert the Oracle XE installer disk and run the OracleXE.exe.

2. An “Oracle Database 10g Express Edition” dialog will come up to prepare the installation.

3. Click the “Next” button.

4. Tick the “I accept the term in the license agreement” and click the “Next” button.

5. In the “Choose Destination Location” dialog, choose the location folder where setup will install files.

6. In the “Choose Oracle MTS Recovery Service Port” dialog, click the “Next” button. ( Note : Default port may change depending on availability of port.)

7. Optional : In th “HTTP Listener Port” dialog, click the “Next” button.
( Note : Default port may change depending on availability of port.)

8. Enter and confirm a sys/system password and click the “Next” button.

9. A summary of the installation settings will be displayed on the screen, if correct click the “Next” button, if not press the Back Button and fix any incorrect steps. Then click the “Install” button.

10.This will start the installation process and this will take 10 to 15 minutes depends on the speed of your machine.

11. Once complete a message will be displayed to say that the Installation proccess has been completed and then press the “Finish” button, this will launch the database homepage.

How to install Oracle 10G Application Server

1. Insert the Oracle 10g disc and select the setup application. This will open a new terminal indicating “Initializing The Oracle Universal Installer…” After this, the Oracle Application Server 10g [version] Installation dialog box comes up.

2. Choose an Installation Directory and select the Basic Installation Mode, enter the Installtion Type, Instance Name, Administration Username, Administration Password and Confirm Password.

3. The installation starts and this will take 15 to 25 minutes but it depends on the speed of your machine. When the “End of Installation” dialog opens just select the “Exit” button.

4. In the Start Menu, open the Oracle - [Your_SID] >> Oracle Process Manager and select the “Start Oracle Process Manager”.

5. In your browser (IE or Firefox) enter this url http://localhost:[port]/. To see the port used, select the “Oracle Assigned Port Numbers” in Oracle - [Your_SID] > Oracle Process Manager menu and see the port used in http1, http2 and https.

6. Your installation was successful when you see the Oracle Application Server Welcome page.

Session Management Problem in IE

If you have problem with Session Management using IE and the URL rewriting doesnt work, here is the solution and nice references for your problem…

Go to “Tools” menu –> “Internet Options” –> “Security” –> select the “Local Intranet” icon –> click on “sites…”
–> disable the first checkbox “Include all local (intranet) sites not ..” –> click “ok”
Go to the “Privacy” tab –> click “Advanced…” –> check the first checkbox “Override…” and block cookies for first-party and third-party –> uncheck the last checkbox “Always allow session cookies.

References :
Yacoblog
Javaranch Thread

Creating tablespace and schema in Oracle

Here are the steps in creating Tablespace and Schema in Oracle.

Tablespace
1. Open your Oracle Enterprise Manager Console and from Left menu go to Storage->Tablespaces.
2. Right-click on this and select Create in the menu.
3. Specify your tablespace name and specify the size to 40MB or any size you want.
4. Click Create button.

Schema
1. In the Left menu of the Oracle Enterprise Manager Console click on Schema.
2. In the right panel (Schema Management), click on the Create link. You can also click on the Create icon (green box in the leftmost menu).
3. From the Create popup window, click on User, then click the Create button.
4. From the Create User window, specify the name (this will be your schema name)
5. Specify the Default Tablespace you’ve created (default value is Users).
6. In the Role tab, specify Connect, Resource (optional DBA if you want DBA rights).
7. In the System tab, specify Unlimited Tablespace.
8. Click on Create button and your schema is now complete.

Note : In Oracle, Schema is also a User.

Got this error - javax.xml.transform. TransformerFactoryConfigurationError: Provider org.apache.xalan.processor. TransformerFactoryImpl not found

I got this error when running the admin application of my new company. It is a web application running via JNLP. JNLP is an XML-based technology for launching Java executables over the Web.

This error usually happened when you are using Java 1.5 and Tomcat. The workaround here is to remove the xml-apis.jar from [TOMCAT_HOME]\common\endorsed folder. This site explained the reason and solution for this error. :)

Got this error - “Execution failed:java.io.IOException: CreateProcess: jarsigner.exe -keystore”

With my new project I tried compiling codes using Ant build tool in Eclipse and got this error when building the build.xml file…

Execute failed: java.io.IOException: CreateProcess: jarsigner.exe -keystore [keystore_path] -storepass [store_password] [path_of_jar_to_be_signed] [alias] error=2

I asked my colleague about this problem but unfortunately they didn’t know the solution either. :(

So I turn to my bestfriend Google… oppss our best friend rather. :)

I found out that this is only a Path problem and you need to add the JDK bin in your Path. For Windows, go to Control Panel >> System >> Advanced Tab >> Environment Variables and for linux just add the JDK bin in the Path declaration in /etc/profile.

Note: You need to start Eclipse to make this work.

Here is another good reference. :)

Automatic login using SSH

I tried this one using my account on our server and here are the steps…

Step 1: Create public/private key pair with ssh-keygen.

baldoza@ubuntu:~$ ssh-keygen -t dsa
Generating public/private dsa key pair.
Enter file in which to save the key (/home/baldoza/.ssh/id_dsa):
Created directory ‘/home/baldoza/.ssh’.
Enter passphrase (empty for no passphrase):
Enter same passphrase again:
Your identification has been saved in /home/baldoza/.ssh/id_dsa.
Your public key has been saved in /home/baldoza/.ssh/id_dsa.pub.
The key fingerprint is:
89:c0:4a:a2:9f:58:f7:28:e4:e4:4e:2a:33:7e:fb:0c baldoza@ubuntu
baldoza@ubuntu:~$

Step 2: Upload your public key to your home directory on cvs.colibria.com: (Note that this file may contain multiple keys, so you might have to append to it, also ensure that mask is 600, using “chmod 600 .ssh/authorized_keys2″. If you have to create the .ssh folder, make sure its mask is 700.)

baldoza@ubuntu:~$ scp .ssh/id_dsa.pub baldoza@[server_address]:/home/users/baldoza/.ssh/authorized_keys2
baldoza@[server_address] password:
id_dsa.pub

Step 3: Test setup by logging in to server without giving password:

baldoza@ubuntu:~$ ssh [server_address]
Passphrase:
baldoza@ubuntu:~$

Step 4 (optional): let ssh-add give away your passhrase upon query:

baldoza@ubuntu:~$ ssh-add
Enter passphrase for /home/baldoza/.ssh/id_dsa:
baldoza@ubuntu:~$

If this doesn’t work you may follow the steps on this site.

Cheers! :)