Once ij is set up, you can try the following commands at ij-prompt:
Creating a database 'MyDB'
ij> CONNECT 'jdbc:derby:MyDB;create=true';
ij (CONNECTION1)>
Opening a database
ij (CONNECTION1)> CONNECT 'jdbc:derby:MyDB';
Creating tables, inserting records and displaying records is as per standard SQL command set
To close a connection:
ij (CONNECTION1)> DISCONNECT
Saturday, December 8, 2007
Java DB / Apache Derby Operating Instructions (Fedora)
ij is an interactive SQL scripting tool that comes with Derby. It can be used with the Derby Embedded JDBC driver or with a client JDBC driver, such as the Derby Network Client.
Upon setup of Java EE SDK (as per my tutorial), do the following
$ export DERBY_INSTALL=/opt/SDK/javadb
$ export CLASSPATH=DERBY_INSTALL/lib/derby.jar:DERBY_INSTALL/lib/derbytools.jar
$ echo $CLASSPATH
/opt/SDK/javadb/lib/derby.jar:/opt/SDK/javadb/lib/derbytools7.jar:
$
Now,
$ java org.apache.derby.tools.ij
This will start IJ, with the IJ prompt ij>
Upon setup of Java EE SDK (as per my tutorial), do the following
$ export DERBY_INSTALL=/opt/SDK/javadb
$ export CLASSPATH=DERBY_INSTALL/lib/derby.jar:DERBY_INSTALL/lib/derbytools.jar
$ echo $CLASSPATH
/opt/SDK/javadb/lib/derby.jar:/opt/SDK/javadb/lib/derbytools7.jar:
$
Now,
$ java org.apache.derby.tools.ij
This will start IJ, with the IJ prompt ij>
Play MP3 in Fedora without hassles
After fiddling along with GStreamer, Totem, Rhythmbox and more such stuff, I discovered an easy way to play MP3s (though not AAC):
Use LimeWire's in-built media player. Its a simple solution, and I really dont know why it took me so long to figure that out. For those heavy-users of LimeWire, its a handy tool, and avoids the mess of having to install MP3 codecs for hte default players.
Use LimeWire's in-built media player. Its a simple solution, and I really dont know why it took me so long to figure that out. For those heavy-users of LimeWire, its a handy tool, and avoids the mess of having to install MP3 codecs for hte default players.
Thursday, December 6, 2007
FireFTP tested for the first time (5th Dec 2007)
FireFTP, the Firefox-based file transfer utility was tested today
--
Sameer P. Karve
Mobile: +91-98-3344-2464
IEEE Member ID 80599447
--
Sameer P. Karve
Mobile: +91-98-3344-2464
IEEE Member ID 80599447
successfully. The test was carried out on the Brinkster-hosted
CSI-TCET website. This opens ur another world of opportunities, with
me now being able to manage a website, irrepective of the accessing
platform.
--
Sameer P. Karve
Mobile: +91-98-3344-2464
IEEE Member ID 80599447
CSI-TCET website. This opens ur another world of opportunities, with
me now being able to manage a website, irrepective of the accessing
platform.
--
Sameer P. Karve
Mobile: +91-98-3344-2464
IEEE Member ID 80599447
--
Sameer P. Karve
Mobile: +91-98-3344-2464
IEEE Member ID 80599447
--
Sameer P. Karve
Mobile: +91-98-3344-2464
IEEE Member ID 80599447
Sunday, November 25, 2007
Internet Messenger setup in Fedora Core 6
The built-in multi-protocol Internet Messenger GAIM is good enough for use with MSN, GTalk and Yahoo. Here are the settings you need to do for each of the serives. Firstly, go to Applications > Internet > Internet Messenger.
Yahoo accounts
Yahoo accounts
- In the Account dialog, click on Add
- In the Add account dialog, select Protocol as Yahoo
- Screen Name: yourYahooUsername
- Enter the password, select 'Remember password.
- Save. Your account is created. It will log in automatically
- In the Account dialog, click on Add
- In the Add account dialog, select protocol as Jabber
- Screen name is your GMail ID, WITHOUT "@gmail.com"
- Server: gmail.com
- Under the Advanced tab, make Connect Server as talk.google.com
- Leave other options unchanged. Save.
- Your GTalk account will be activated
- In the Add account dialog, select protocol as MSN
- In screen name, enter your COMPLETE Hotmail ID
- Enter the password, remember password
- Your MSN / Hotmail / Windows Live account will be created
Network setup in Fedora Core 6
In today's times, being connected to the Internet has become probably as much as a necessity as food and water and air. Network setup in FC6 is easy, but different than what you've been used to in Windows. This guide is specific to the following environment:
- Location:Mumbai, INDIA
- ISP: MTNL
- Service: Tri-Band ADSL
- Router: UT-Starcom model UT-300R2U
- Router pre-configured with DHCP, bearing local IP 192.168.1.1
- Switch on the router before you switch on the PC
- Go to System > Administration > Network
- Select Device eth0 and click on Edit
- Under the Ethernet Device dialog, select Statically set IP addresses and enter the following Manual IP address settings
- Address: 192.168.1.2
- Subnet Mask: 255.255.255.0
- Default gateway address: 192.168.1.1
- Click OK
- Now, back to Network Configuration dialog, select the DNS tab
- Enter Primary DNS as 203.94.227.43
- Enter Secondary DNS as 203.94.243.70
- Click File > Save
- You can start your browser and ride the waves of the internet !
Printer setup in Fedora Core 6
Printing with FC6 is really easy. Here's how I setup my HP PSC 500 Officejet:
- Switch on your printer before starting your PC
- Log in as root
- Go to System > Administration > Printing
- Click on New Printer
- Printer Name: HP_PSC_500
- Description: HP PSC 500
- Location: Next to monitor
- In Select Connection dialog, select HP PSC 500 LPT parport0 HPLIP
- In Select Printer From Database option, select HP
- Under Models select PSC 500
- Once the printer is installed, the Printer Configuration dialog will be shown
- Select Local Printers > HP_PSC_500
- Click on Make default printer
- Under Printer Options, select Page size as A4
- Select Print test page under the Settings tab
- If the page is printed correctly, no reason to worry!
- Click on Apply and close the Printer Configuration dialog
Java EE SDK Installation Instructions
For as long as this link works, its a good generic reference for anyone wanting to update their JRE in Fedora/Linux. The steps below are specific to installing Sun's Java EE SDK (inclusive of JDK and JRE 1.6.0_06) on Fedora Core 6 32-bit i386. Should you be able to succesfully complete the following steps, you shall have the most enviable Java setups around. Here's how you go about it:
Before we begin, there are a few things you need to know. Whenever I mention something like:
$cd /opt
..it means that the command cd /opt must be typed at the prompt (so called as the dollar prompt) in the Terminal (that is Applications > Accessories > Terminal). Don't worry, you won't see a dollar sign in the terminal, but its just a convention of writing. Note that you must not type the dollar sign while entering the command.
Secondly, there is no such thing as a registry, in Linux. So you don't have to 'install' applications using an installer. You will generally get a .tar.gz or a .zip file from the download sites. These files must be simply extracted, and the resulting folder must be copied to any location of your choice. However, by convention, such folders are copied into /usr/lib/ directory under your file system. (The file system can be accessed from Applications > System Tools > File Browser). However, since there is no installation, some manual configuring effort is required. This effort is largely context dependent, and will vary as per:
Now, with a basic understanding of these things, lets get to the real thing:
Stage 1: Downloading the correct file, to the correct place
Stage 3: Setting up environment variables
export JRE_HOME=/opt/SDK/jdk/jre
export PATH=$JAVA_HOME/bin:$PATH
export J2RE_HOME=/opt/SDK/jdk/jre
export PATH=$J2RE_HOME/bin:$PATH
Stage 4: Configuring the environment for use throughout Fedora
Java(TM) SE Runtime Environment (build 1.6.0_03-b05)
Java HotSpot(TM) Client VM (build 1.6.0_03-b05, mixed mode)
Stage 5: Installing the JRE plugin for Firefox
Now, the final stage remains that of hooking up the JRE with your browser. Assuming you have correctly installed Mozilla Firefox 2.0.0.9 in /usr/lib/firefox do the following:
$ln -s /opt/SDK/jdk/jre/plugin/i386/ns7/libjavaplugin_oji.so /usr/lib/firefox/plugins/libjavaplugin_oji.so
Note that the entire statement above is on a single line, without hitting anywhere in between.
This will complete the entire installation procedure. I know its long and tedious, but trust me, its well worth the effort.
Before we begin, there are a few things you need to know. Whenever I mention something like:
$cd /opt
..it means that the command cd /opt must be typed at the prompt (so called as the dollar prompt) in the Terminal (that is Applications > Accessories > Terminal). Don't worry, you won't see a dollar sign in the terminal, but its just a convention of writing. Note that you must not type the dollar sign while entering the command.
Secondly, there is no such thing as a registry, in Linux. So you don't have to 'install' applications using an installer. You will generally get a .tar.gz or a .zip file from the download sites. These files must be simply extracted, and the resulting folder must be copied to any location of your choice. However, by convention, such folders are copied into /usr/lib/ directory under your file system. (The file system can be accessed from Applications > System Tools > File Browser). However, since there is no installation, some manual configuring effort is required. This effort is largely context dependent, and will vary as per:
- Distribution of Linux (Fedora, RedHat, Ubuntu, Debian, Mandriva, Gentoo.....)
- Version of distribution (Fedora 8, RedHat 10.....)
- The hardware platform for the distribution (i386 in my case, for Intel 32-bit processors)
- Application version you've downloaded
- Where you've saved (or subsequently copied) the extracted folder
Now, with a basic understanding of these things, lets get to the real thing:
Stage 1: Downloading the correct file, to the correct place
- Go to http://java.sun.com
- Select Downloads > Java EE
- Click on Download with JDK
- Accept the License Agreement
- Click on the link to Java EE SDK 5 Update 3 under Linux platform
- If you are using Firefox with default settings, the java_ee_sdk-5_03-linux.bin file will get downloaded to your Desktop
- Once done, copy the bin file to /opt (under your File System)
- Open Applications > Accessories > Terminal
- $cd /opt
- $chmod +x java_ee_sdk-5_03-linux.bin
- $./java_ee_sdk-5_03-linux.bin
- Now, Java's GUI installation will begin.
- Proceed through the installation normally
- At the end, click on Start Server. If the installation proceeded succesfully, you should see a "Your server is up and running" page when you type http://localhost:8080/ in your browser
- Also, a SDK directory will be created under /opt
Stage 3: Setting up environment variables
- Open Applications > Accessories > Text Editor
- Copy paste the following things in a new (blank) file:
export JRE_HOME=/opt/SDK/jdk/jre
export PATH=$JAVA_HOME/bin:$PATH
export J2RE_HOME=/opt/SDK/jdk/jre
export PATH=$J2RE_HOME/bin:$PATH
Stage 4: Configuring the environment for use throughout Fedora
- Now save the file as java.sh in /etc/profile.d under your File System
- Back, to the terminal, do the following things:
- $source /etc/profile.d/java.sh
- $which java
- If you have proceeded correctly upto this stage, you should see /opt/SDK/jdk/jre/bin/java as the result.
- Proceed ahead ONLY IF you get this result. Else, you've gone wrong and must retrace. There's no point in moving forward if you don't get this result.
- Now, continue typing in terminal with the following commands:
- $usr/sbin/alternatives --install /usr/bin/java java /opt/SDK/jdk/jre/bin/java 2
- $usr/sbin/alternatives --config java
- Type 2 and hit enter
- $java -version
- If installation is complete, it should give the following result:
Java(TM) SE Runtime Environment (build 1.6.0_03-b05)
Java HotSpot(TM) Client VM (build 1.6.0_03-b05, mixed mode)
Stage 5: Installing the JRE plugin for Firefox
Now, the final stage remains that of hooking up the JRE with your browser. Assuming you have correctly installed Mozilla Firefox 2.0.0.9 in /usr/lib/firefox do the following:
$ln -s /opt/SDK/jdk/jre/plugin/i386/ns7/libjavaplugin_oji.so /usr/lib/firefox/plugins/libjavaplugin_oji.so
Note that the entire statement above is on a single line, without hitting
This will complete the entire installation procedure. I know its long and tedious, but trust me, its well worth the effort.
Four pillars of internet completed
The migration to Fedora has gained strength, what with the completion of construction of the four pillars of the internet:
- Browser (Mozilla Firefox 2.0.0.9)
- Messenger (GAIM; multi-protocol for GTalk and Yahoo)
- File-sharing (Limewire 4.14)
- Server (Java EE SDK, bundled with JDK+JRE 1.6.0_03)
Shhh...The next episode is about to begin
As if my achievements under Windows were not enough, now the domain of my knowledge acquisition has shifted to Linux (Fedora Core 6, in particular), and how! Today was a landmark day in the migration to Fedora. The dilapidated structure of Fedora 6 (its a very old release; the latest one being Fedora 8) was today strengthened by the addition of 3 great applications:
Through the process, I've learnt a lot of new things like tarballs, echo, export, UNIX file system and so on. I am sure this knowledge will come in handy some day. The how-to's will follow:
- Mozilla Firefox 2.0.0.9
- Java EE SDK (JDK+JRE included)
- Apache Tomcat 6.x
Through the process, I've learnt a lot of new things like tarballs, echo, export, UNIX file system and so on. I am sure this knowledge will come in handy some day. The how-to's will follow:
Saturday, November 24, 2007
Firefox 2.0.0.9 installation on Fedora Core 6
Whew! After all that effort, I finally managed to upgrade the age-old Firefox 1.5 that comes bundled on the FC6 CDs. Here's how:
- Login as root
- Download the installation file (extension tar.gz) to your desktop
- Double-click to open
- Extract to /usr/lib/firefox
- Shut down all running copies of firefox, including download windows, if any
- Delete the firefox 1.5.x.x folder present in /usr/lib
- Open terminal
- $ yum install compat-libstdc++-33
- Proceed throught the installation process, giving Yes (y) wherever required
- Right click on the "Web browser" icon in the icon bar (on top) and select properties
- Change the command to /usr/lib/firefox/firefox
- Restart the system
- Firefox 2.0.0.9 is all yours
Monday, November 19, 2007
The triad will be complete......
I'm not talking about Dobereiner, or about the Musketeers. The triad here is:
1. SonyEricsson K790i multi-media cell-phone
2. SonyErisccon HBH-PV-100 Bluetooth headset
3. SanDisk 4GB MemoryStick Micro (M2)
As if having a great phone didn't suffice, it was complemented a few days back by a disused, practically discarded bluetooth headset that had been lying in my drawer for months after my dad lost interest in it. I always like to collect discarded objects. Not from a historical collector's point of view, but with a will to get them working again. Then, why did it lie disused in my drawer for those many months? I wasn't able to figure out how to pair it with my cell-phone!! After trying all possible combinations on the headset's (3) keys, as well as my cell, I just gave up.
And then, a few days back, while clearing out my drawer, I stumpled upon this thing of great interest. I switched it on. I pressed its volume keys, and heard a ringer. I said, now, this can't be further from the truth. If the LED glows, if the speaker responds, if the volume keys work, it just can't be that the Bluetooth module has failed. That set my thoughts in motion, and I ended up Googling. After just a few minutes of search, I had found the solution. The headset was working, and it was mine!! The purpose behind why I had collected it, in the first place, had been achieved.
Today, it has become an inseparable part of my life. I can no longer imagine holding the phone in my hand for talking. Talking 'hands-free' has now become a way of life. With hands-free, my phone got its best partner. These two formed a beautiful pair.
Tomorrow, they will go one step further, when the card adds the necessary zing to the phone. This combination will be one of the most elaborate and advanced setups in the world. And I will be proud to have engineered this solution, one bit at a time...
1. SonyEricsson K790i multi-media cell-phone
2. SonyErisccon HBH-PV-100 Bluetooth headset
3. SanDisk 4GB MemoryStick Micro (M2)
As if having a great phone didn't suffice, it was complemented a few days back by a disused, practically discarded bluetooth headset that had been lying in my drawer for months after my dad lost interest in it. I always like to collect discarded objects. Not from a historical collector's point of view, but with a will to get them working again. Then, why did it lie disused in my drawer for those many months? I wasn't able to figure out how to pair it with my cell-phone!! After trying all possible combinations on the headset's (3) keys, as well as my cell, I just gave up.
And then, a few days back, while clearing out my drawer, I stumpled upon this thing of great interest. I switched it on. I pressed its volume keys, and heard a ringer. I said, now, this can't be further from the truth. If the LED glows, if the speaker responds, if the volume keys work, it just can't be that the Bluetooth module has failed. That set my thoughts in motion, and I ended up Googling. After just a few minutes of search, I had found the solution. The headset was working, and it was mine!! The purpose behind why I had collected it, in the first place, had been achieved.
Today, it has become an inseparable part of my life. I can no longer imagine holding the phone in my hand for talking. Talking 'hands-free' has now become a way of life. With hands-free, my phone got its best partner. These two formed a beautiful pair.
Tomorrow, they will go one step further, when the card adds the necessary zing to the phone. This combination will be one of the most elaborate and advanced setups in the world. And I will be proud to have engineered this solution, one bit at a time...
4GB: Plans (Part 2)
Coming straight to the point, without beating around the bush, here's what I intend to do with my 4GB card:
1. All my media will be consolidated, and kept in a single location, that is, my cell. My songs, photos, videos, and files. No more syncing. There's just one place to find my matter: my cell.
2. I am a big fan of 'organising'. I've already organised my 430 MP3 files into 26 folders (first), for each letter of the English alphabet, and sub-classified into further folders, whenever each folder exceeds a limit of 20 files, that I've set. All this has been done keeping in mind the feeble processing power of a cell-phone, as compared to a desktop PC. This organising has been done quite a few weeks back, and I'm all ready to take the plunge
3. Further, I discovered to 'construct' playlists. Now someone would call that stupid. Playlists are meant to be constructed :P But there are many more things to be taken care of, when you need to transport those playlists between two devices, and more so, something as disparate as a desktop PC and a tiny multi-function cell-phone. Anyway, having discovered how to 'construct' text-file playlists (M3U) exactly tailored to my requirements, I now plan to organise my collection even further, and actually send those playlists to my cell for playback.
4. Another long-pending dream, that of carrying all my memories with me (at least those in the form of pictures). Now, I'll be able to. Earlier, I had tried a mass-transform using Adobe Photoshop Album Starter Edition software that came bundled in the SonyEricsson PC Suite CD. The mass-transform was to convert 3.2 MP pictures to QVGA (320*240 resolution, the same as my phone's screen size). However, the transform created 'new' files, all bearing the same date of modification. This was a disaster, as my phone's photo album is supposed to show pictures classified by the date on which they were clicked. Now, I think I finally may be able to exploit that feature. Though I doubt how to put 1,000 or more pics in the single 'Camera Album' folder. This procedure is necessary, as it is the only way in which the Timeline View functions. I've tried fiddling with that procedure, already, without success.
5. The songs will take up 2.1 GB, the pics will take 1 GB, the videos 300 MB. Whatever little is left (500 MB or therabout; a 4GB card will always come with a usable space of about 3.7GB) will be used to keep my personal files. However, it is very very important to format the card as soon as it arrives, and transfer a bulk of the files in one go, to prevent them from being fragmented across the card. The major section of songs and pics is intended to be static, that is, no deletion. The remaining space, of videos and files may be reused as required.
1. All my media will be consolidated, and kept in a single location, that is, my cell. My songs, photos, videos, and files. No more syncing. There's just one place to find my matter: my cell.
2. I am a big fan of 'organising'. I've already organised my 430 MP3 files into 26 folders (first), for each letter of the English alphabet, and sub-classified into further folders, whenever each folder exceeds a limit of 20 files, that I've set. All this has been done keeping in mind the feeble processing power of a cell-phone, as compared to a desktop PC. This organising has been done quite a few weeks back, and I'm all ready to take the plunge
3. Further, I discovered to 'construct' playlists. Now someone would call that stupid. Playlists are meant to be constructed :P But there are many more things to be taken care of, when you need to transport those playlists between two devices, and more so, something as disparate as a desktop PC and a tiny multi-function cell-phone. Anyway, having discovered how to 'construct' text-file playlists (M3U) exactly tailored to my requirements, I now plan to organise my collection even further, and actually send those playlists to my cell for playback.
4. Another long-pending dream, that of carrying all my memories with me (at least those in the form of pictures). Now, I'll be able to. Earlier, I had tried a mass-transform using Adobe Photoshop Album Starter Edition software that came bundled in the SonyEricsson PC Suite CD. The mass-transform was to convert 3.2 MP pictures to QVGA (320*240 resolution, the same as my phone's screen size). However, the transform created 'new' files, all bearing the same date of modification. This was a disaster, as my phone's photo album is supposed to show pictures classified by the date on which they were clicked. Now, I think I finally may be able to exploit that feature. Though I doubt how to put 1,000 or more pics in the single 'Camera Album' folder. This procedure is necessary, as it is the only way in which the Timeline View functions. I've tried fiddling with that procedure, already, without success.
5. The songs will take up 2.1 GB, the pics will take 1 GB, the videos 300 MB. Whatever little is left (500 MB or therabout; a 4GB card will always come with a usable space of about 3.7GB) will be used to keep my personal files. However, it is very very important to format the card as soon as it arrives, and transfer a bulk of the files in one go, to prevent them from being fragmented across the card. The major section of songs and pics is intended to be static, that is, no deletion. The remaining space, of videos and files may be reused as required.
4GB: Plans
Now you must be wondering that if I've gone in for such a huge upgrade (by my standards), I must definitely be looking forward to doing a lot of things with it. What would they be? Here's a glance:
I've made the card purchase for Rs. 3,380 from ebay.in (thru their online credit-card based payment service PaisaPay, which I guess is the desi version of PayPal). Its a 4GB Memory Stick Micro (M2) for my Sony Ericsson K790i, which was gifted to me by my parents on the occasion of my 20th birthday in March 2007. All along, I made do with the default 64MB memory card that came in the package.
First things first. Is this card, an overhyped acquisition? NO. There are a lot of things to it. Firstly, ever since the invention of the iPod, it has become customary to carry your entire media collection (music, photos, videos, et all) on your portable device. The PC's role has been limited to downloading that content from the internet (officially, through iTunes store, or more popularly, over P2P networks like Gnutella/LimeWire), and feeding it into your portable media player.
P2P content is more popular, although illegal, because of the fact that it does not content DRM (Digital Rights Management, lookup http://en.wikipedia.org/wiki/DRM), and hence, it is not locked onto a particular proprietary device. If you are a techie, I don't need to explain to you the importance of non-proprietary content.
So, the first and foremost use of the 4GB card is to store ALL of my media in one single location, and more importantly, always have that media with me, wherever I go. Now you must be wondering as to why am I laying such great stress on the media? It is because I own a precious collection of nearly 500 Hindi songs, that have been painstakingly collected from various sources. To add to that, a lot of effort has gone in tagging them with correct album, artist information and album art.
(--- Returning after a break, caused due to call with Petu, for a staggering 36 mins (avg call duration: 36 secs) -----)
(---- And another break, caused due to a call with Silent Assassin, lasting......ummm, forget it, didn't notice (This dude bought a K810, and needed some troubleshooting advice) ----)
Forget it, I'll complete my blog later.......now, there have been too many interruptions, and I need to have dinner.. Cya soon
I've made the card purchase for Rs. 3,380 from ebay.in (thru their online credit-card based payment service PaisaPay, which I guess is the desi version of PayPal). Its a 4GB Memory Stick Micro (M2) for my Sony Ericsson K790i, which was gifted to me by my parents on the occasion of my 20th birthday in March 2007. All along, I made do with the default 64MB memory card that came in the package.
First things first. Is this card, an overhyped acquisition? NO. There are a lot of things to it. Firstly, ever since the invention of the iPod, it has become customary to carry your entire media collection (music, photos, videos, et all) on your portable device. The PC's role has been limited to downloading that content from the internet (officially, through iTunes store, or more popularly, over P2P networks like Gnutella/LimeWire), and feeding it into your portable media player.
P2P content is more popular, although illegal, because of the fact that it does not content DRM (Digital Rights Management, lookup http://en.wikipedia.org/wiki/DRM), and hence, it is not locked onto a particular proprietary device. If you are a techie, I don't need to explain to you the importance of non-proprietary content.
So, the first and foremost use of the 4GB card is to store ALL of my media in one single location, and more importantly, always have that media with me, wherever I go. Now you must be wondering as to why am I laying such great stress on the media? It is because I own a precious collection of nearly 500 Hindi songs, that have been painstakingly collected from various sources. To add to that, a lot of effort has gone in tagging them with correct album, artist information and album art.
(--- Returning after a break, caused due to call with Petu, for a staggering 36 mins (avg call duration: 36 secs) -----)
(---- And another break, caused due to a call with Silent Assassin, lasting......ummm, forget it, didn't notice (This dude bought a K810, and needed some troubleshooting advice) ----)
Forget it, I'll complete my blog later.......now, there have been too many interruptions, and I need to have dinner.. Cya soon
4GB Memory Boost for my cell
The day I've been waiting for, for so long, is finally here. My K790 came bundled with a measly 64 MB memory card, (in addition to 70 MB phone memory), with which I've pulled on for 9 months until now (since March 2007). I always wished to have more memory (everybody does), mainly because this was such an advanced multimedia phone, and that I could do so much with it. But, it was financially unaffordable for me to buy a 2GB card (costing 4,000 Rs. then, and the highest capacity available, to the best of my knowledge). So I waited, and waited more. The prices were coming down steadily. Then the 4GB cards appeared on the market, for about 5,000 Rs. Still too pricey, I thought.
Then there was a jolt. Sandisk released 8GB M2 cards on 18th October 2007. 4GB card prices tumbld down. I planned to buy that 8GB card sometime in March next year. But I put up a discussion on one of the tech forums (http://www.esato.com) regarding the compatibility of this humongous card with my ordinary (:P) cell-phone. To my dismay, I learnt that one smart-ass had contacted Sony Corporation regarding the same, and they had replied that K790 supported only upto 4GB of removable memory.
So, I decided upon buying a 4GB card, sometime, for sure, before I embarked on my IV (Industrial Visit to Delhi-Dehradun, Jan 2008). Then, due to some reasons which cannot be disclosed here, I decided to make a purchase right here, right now. The research had been done for too long (8 months, to be precise). I had tracked the prices for a long time. I knew which deal was VFM and which one was not. I had byhearted the sequence of steps required to go to this particular item on ebay, owing to the innumerable 'wish visits' I had made!
Today, when the day finally came, I just placed the order. I expect the card to be delivered tomorrow, or worst case, the day after, as the seller is in the same city. This card is not just a tiny piece of plastic and silicon measuring 1 sq.cm., its much more than that. How? Read the next post.
Then there was a jolt. Sandisk released 8GB M2 cards on 18th October 2007. 4GB card prices tumbld down. I planned to buy that 8GB card sometime in March next year. But I put up a discussion on one of the tech forums (http://www.esato.com) regarding the compatibility of this humongous card with my ordinary (:P) cell-phone. To my dismay, I learnt that one smart-ass had contacted Sony Corporation regarding the same, and they had replied that K790 supported only upto 4GB of removable memory.
So, I decided upon buying a 4GB card, sometime, for sure, before I embarked on my IV (Industrial Visit to Delhi-Dehradun, Jan 2008). Then, due to some reasons which cannot be disclosed here, I decided to make a purchase right here, right now. The research had been done for too long (8 months, to be precise). I had tracked the prices for a long time. I knew which deal was VFM and which one was not. I had byhearted the sequence of steps required to go to this particular item on ebay, owing to the innumerable 'wish visits' I had made!
Today, when the day finally came, I just placed the order. I expect the card to be delivered tomorrow, or worst case, the day after, as the seller is in the same city. This card is not just a tiny piece of plastic and silicon measuring 1 sq.cm., its much more than that. How? Read the next post.
Sunday, November 18, 2007
PHP Succesful
Good morning to one and all! Had a good night's sleep. With server dreams, ofcourse! So what was it that I dreamt? Having done much of the foundation work, now it was time to try PHP for real. I had done that before, but had lost touch.
So, today, I setup the PHP server for Apache 2.2 Once done, I put the HelloWorld.php file in my htdocs folder in Apache. And simply call the file from my browser. It worked! Now, I am beginning to wonder if PHP should be setup on other servers as well (not concurrently). Watch this space for the answer....
So, today, I setup the PHP server for Apache 2.2 Once done, I put the HelloWorld.php file in my htdocs folder in Apache. And simply call the file from my browser. It worked! Now, I am beginning to wonder if PHP should be setup on other servers as well (not concurrently). Watch this space for the answer....
Saturday, November 17, 2007
Community Server for Testing (CST)
Now that I have come so far, what with four servers running concurrently (see previous posts), I thought, why not do something to help those newbies (like me, formerly) out there, who want to test different web applications/services at little or no cost?
For that, I plan to setup my PC as a community server for testing. I might keep it free, or charge peanuts for its use, just enough to cover the additional load in my electricity bill every month, owing to my PC's increased uptime.
I'll have the four servers running. Developers can upload their service on the required server and test it remotely. Simple, na?
Additionally, it can also be used a resource base. I can theoretically provide unlimited downloads to people, as their 'download' will actually be an 'upload' for my server. And MTNL (my ISP) doesn't charge me for uploading :P . Now thats what I call amazing !!
My Brilliant Brain ! (Hey, thats just an upcoming series on National Geographic Channel. What did you think, I am talking about myself???........Well, maybe you weren't entirely wrong either.........)
For that, I plan to setup my PC as a community server for testing. I might keep it free, or charge peanuts for its use, just enough to cover the additional load in my electricity bill every month, owing to my PC's increased uptime.
I'll have the four servers running. Developers can upload their service on the required server and test it remotely. Simple, na?
Additionally, it can also be used a resource base. I can theoretically provide unlimited downloads to people, as their 'download' will actually be an 'upload' for my server. And MTNL (my ISP) doesn't charge me for uploading :P . Now thats what I call amazing !!
My Brilliant Brain ! (Hey, thats just an upcoming series on National Geographic Channel. What did you think, I am talking about myself???........Well, maybe you weren't entirely wrong either.........)
IIS external accesibility issue resolved
For those of you trying to figure out why IIS asks for username and password when you try to access it from Firefox, or a remote server, here's the solution:
- Go to Control Panel > Administrative Tools > Internet Information Services > (local computer) > Default website
- Right click and select Properties
- Under Directory Security tab > Anonymous access and authentication protocol section > click on the Edit button
- Check (select) Anonymous access (that is, enable it)
- Leave other things unchanged
- Click OK all the way out.
- Restart your server
- Done !
Update: Port manipulations fot Tomcat & IIS
I guess, I never rest. So here's plugging two holes in my previous post, the port manipulations for Apache Tomcat & Microsoft IIS. Here goes:
Apache Tomcat:
Apache Tomcat:
- Go to C:\Program Files\Apache Software Foundation\Tomcat 6.0\conf
- Open server.xml in Dreamweaver or Notepad
- Change Connector port="7777" (for example, from the original 8080 or 80) where protocol="HTTP/1.1"
- Be careful of the latter part. There are multiple 'connector' tags in the whole XML document, but you must change only the right one.
- Save the file and restart the server.
- Confirm at localhost:7777
- Go to Control Panel > Administrative Tools > Internet Information Services > (local computer name) > Default website.
- Right click and select Properties.
- Under the Website tab > Web Identification section > TCP Port > type 6666
- (You can type any port number you wish, as usual)
- Restart the server (software)
Multiple Concurrent Servers - A reality !!
When I wrote my last post, I really wasn't sure if I would be able to run multiple servers on my system concurrently. I made three attempts between my last post, and about 19:30. And those attempts all resulted in failure. But as they say, "When things seem evermore difficult, you are really close to solving the problem". And solve I did.
How? No Googling, for a change !! Just plain common sense (of a techie, ofcourse) (jeez, i m getting vain)
So here's the change you make to your router settings that I already mentioned in my previous post. Under Virtual Server, change the Local port from 8080 (or whatever else) to 0 (zero) A zero number means forward all requests. Do not forget to Save and Reboot.
Then, set the different listening ports for your multitude of servers. I havnt figured out a way of changing Tomcat's port, so I let it remain 8080. I thought it safe to keep IIS on the default (80) port. But I changed the Java Application Server and Apache HTTP as follows:
For Sun Java:
Whew. Finally, I achieved what I set out to achieve. Now I can R.I.P. May god bless my soul. I don't think I'll be posting anytime soon. Cya until then.
How? No Googling, for a change !! Just plain common sense (of a techie, ofcourse) (jeez, i m getting vain)
So here's the change you make to your router settings that I already mentioned in my previous post. Under Virtual Server, change the Local port from 8080 (or whatever else) to 0 (zero) A zero number means forward all requests. Do not forget to Save and Reboot.
Then, set the different listening ports for your multitude of servers. I havnt figured out a way of changing Tomcat's port, so I let it remain 8080. I thought it safe to keep IIS on the default (80) port. But I changed the Java Application Server and Apache HTTP as follows:
For Sun Java:
- Go to localhost:4848 (or whatever administrator port u've set up)
- Login with the administrative username and password (which you must have noted down)
- Go to Configuration > HTTP Service > HTTP Listeners > http-listener-1 > Listener port.
- Enter a random port address between 1025 to 65535. I prefer 5282 (JAVA on ur mobile phone keypad) as it is easy to remember
- Save and Logout.
- Go to C:\Program Files\Apache Software Foundation\Apache 2.2\conf\httpd.conf (or whatever is the equivalent conf directory on your system)
- You can open the file with notepad
- Look for the text Listen
- Change the number after that (should be 8080, or 80, before you make the changes) to any number of your choice (between 1025 and 65535)
- I chose 9393, just like that
- Save the file and close.
- http://localhost/
- http://localhost:8080/
- http://localhost:5282/
- http://localhost:9393/
- http://59.182.147.56/
- http://59.182.147.56:8080/
- http://59.182.147.56:5282/
- http://59.182.147.56:9393/
Whew. Finally, I achieved what I set out to achieve. Now I can R.I.P. May god bless my soul. I don't think I'll be posting anytime soon. Cya until then.
Subscribe to:
Posts (Atom)