Friday, December 23, 2011

Trip to St Marry's Island and Udupi


Hi there,

Here I am with one more travel blog, Must say one of the hectic but memorable trip to Udupi. So here are the details.

How to Go 
Udupi is around 62 Km from Mangalore, which is the nearest Airport from here. Although it is very well connected to other cities through Railway as well as Buses. As I am staying in Bangalore, so I go through the Car. By Road it is around 450 Kms from Bangalore, which takes around 10-12 hrs to reach Udupi. Inspite of the long distance, you will enjoy the ride, as this road passes through Western Ghats, which gives you the closure to nature. Must say, awesome beauty and road is also good.

Where to Stay
There are many hotels, lodges near by the Udupi main city. And if you are interested in staying beach resort that is also there. Better you book your accommodation in advance. As it is not very far from the Mangalore, many people prefer to stay in Mangalore too, because there you will find more and better option. But I will suggest you to stay in Udupi itself.

What to Visit
Basically there are two places mainly for which people come here, one is the Krishna Temple and second is island(beach too).Udupi Krishna Temple is very old temple and quite popular too in the region. Although the old temple is not that big, but in that small space itself you will good architecture. Location wise it is situated in the centre of city. So even if you are there for leisure, visit this place too as it is must go place for Udupi.    
                   Second and main place is the St Marry's Island, the story behind the island is, when Vasco da gama first came to India, first he reached here, put a cross as a mark, which in turn gives this place the name "St Marry's island". To go this island, first you need to go to Malpe Harbor, there is Ferry service available to the island. From here real journey starts, I must say this is one of the most beautiful beaches I have ever seen, water is so clean, clear sky, and if you are lucky you will see few dolphins too. it takes 30 mins to reach the island, but you will enjoy each and every minute. Even though area wise it is very small, but it is good, as one side of beach have sand all over, while other have rocks, and did I mention the water clarity(:P). You can sit, roam around, play or whatever you want to do with that place. Just try to be there early, so that you can stay there for atleast 4-5 hours. And remember, last ferry will start from island at 5 PM.
                   After coming from island, you can go to the beach which is known as Malpe beach, although it is not good to take bath as so much sand and salt is there in the water. But you can spend hours just sitting there and watching sun set. And must say white sand has its own charm. I like it.

When to go
As Udupi's weather is same most of the time of year, just avoid the rainy season. Rest of the time you can go. And one more thing it is really hot in the day time, so be ready for sun burn.

Others
You will get proper and all kind of food in Udupi, but be sure what you are eating, as sometimes they serve very weird things with fancy names. And you won't find anything at the island, so if you are planning to stay for long hours, just take drinking water and some snacks too. Apart from that I don't think anything else is required. If anything required it will be your part of experience, your stories to share with others.

Monday, November 7, 2011

SystemProperties in Android: Use them in Framework c files

Hi all,
Here I am with one more android blog. We generally used Sharedpreferences in Android to share information between Activities. But what if you want to have something at the time of boot. For that there is one solution which is systemproperties, using those you can share information or values at the time of boot. So for example if you want to save some settings by user, which should be applicable at the time boot. So do following
SystemProperties.set(String key, String val) // where key is name of property
Now to retrieve it in Java files you can directly use
SystemProperties.get(String key)
But if you want it in boot time it should be in cpp files so use
property_get( String name, char* var, NULL)
/* where name is property name, var is the variable in which u want to store value last parameter is for the default value which will be assigned to var when no property set.*/
And for the java things you can check Systemproperties.java for apis for different type of data
types. Although for cpp it is only supported for string type And if you want to save any property through c files, use property_set() method.
Hope it will you too, as it was really save my day.

Saturday, October 8, 2011

Nandi Hills, Bangalore

Hi folks,

After my android blog post, here it comes one travel blog post. I hope this may continue that every weekend I could have gone to some nice place. So here it comes the night out @ Nandi Hills.

How to Reach there ?
It's around 60-65 Kms from Bangalore City. And around 25 Kms from Airport. So if you are staying in Bangalore just go to Makeri Circle, take the straight road to Airport, and just before the bridge, there is a road which is heading towards Hyderabad, take the road and after around 5 kms you will find a left turn for Nandi Hills. Its 21 Kms from there.

What to See ??
Basically this is Sun-rise point, you can admire the Scenic beauty from the top peak. And it is awesome, and hide and seek of Sun makes it more awesome. After reaching there, you won't think that "on top of cloud" is just a phrase. Apart from the view, there are few gardens and temple over there. And off-course it was part of Tipu Sultan kindom, there is one big pond and Tipu Sultan's summer place.

When to go ?
I think if you leave Bangalore around 3:30 AM, it would be great as it will take you around 2 hrs to reach there, and most importantly the doors doesn't open till 6:15 AM. So you can plan accordingly. They charge for the tickets as well as parking tickets. One more thing if you have 4 wheeler, they will allow you to go till the top, otherwise you have to walk around 1 Km. But believe me this place is not meant for Cars or other 4 wheeler. As you will enjoy each and every minute of your bike ride.

Others
You will find many shops, if you want to purchase something like snacks or something. Even at the ticket counter also there is a shop for such items. And yeah, don't forget to enjoy the chai or coffee on the Highway. While returning you can stop at McD too, which have started Breakfast, believe me I was starving while returning back. Also carry your jacket, as it will be cold in night in Bangalore whatever season it is.

In last I can say, it is must see place in Bangalore. So just give it a try.

CountDownTimer a great alternate of AlarmManager in Android

Hi Guys,
few days back I was looking for a solution to execute a functionality after some time from my activity. Generally in these cases developer uses AlarmManager to send Action or Activity and handle it in their accordingly. But there are few limitations with AlarmManager like you have to set your alarm for a fix time from boot-up or start. So to overcome this I used CountDownTimer class. This is the same class which is used in StopWatch application, so it is reliable as well as easy to use. Although it’s use is pretty straight forward and mentioned in the API. I will explain it here with the same example.
Example :
new CountdownTimer(30000, 1000) {

 public void onTick(long millisUntilFinished) {

 mTextField.setText("seconds remaining: " + millisUntilFinished / 1000);

}

 public void onFinish() {

  mTextField.setText("done!");

}

 }.start();
Here 30,000(30 sec) is the timer till it will go, 1000(1 sec) is every step to reach there. Here there are two  methods which needs to be override, first is onTick() which will be called on every step. So it means it will be called on every second in this case till 29 sec. After that onFinish() method will be called and execution control will come out of it.
So suppose if you want to start some activity after 30 sec. just put that intent and sendBroadcast() in th onFinish() method.
Hope this will help you.

Friday, August 26, 2011

Android : Calling the other package activity from the current package Activity

Hi All,
After a long time one more android blog, or you can say a new problem which I encounter. In general cases we call activity using intent within the same package. but what if we want to call some other package activity. So here is the solution. Here I will be using the name convention as Calling Activity as First Activity and Called Activity as Final Activity.
Method 1 : Using setClass() method in Intent class.
It is the same thing which you do in normal scenario but with a little tweak in it. In FirstActivity where ever you want to call other activity from other package, put following code
Intent i = new Intent();
i.setClassName("com.android.finalactivity", "com.android.finalactivity.FinalActivity");
startActivity(i);
/* Here com.android.finalactivity is the package name and com.android.finalactivity.FinalActivity is full class name. */
Now go to the AndroidManifest.xml of the FirstActivity and Add following line
activity android:name=”com.samsung.finalactivity.FinalActivity” in application tag.
It will work fine.
Method 2. Using action name
For this first go to your Final Activity and Modify the Manifest file like this :
Instead of the action android :name =”android.intent.action.MAIN” Use
action android:name=”finalApplication.intent.LAUNCH”
Now go to your FirstActivity.java and write
Intent i = new Intent("finalApplication.intent.LAUNCH");
startActivity(i);
Here no need to change AndroidManifest file for FirstApplication.
Hope it helps.

Tuesday, August 16, 2011

Wayanad, Kerala

Hi guys,

Here I am with the new travel blog entry, Last weekend I visited the Wayanad, Kerala. As the Kerala tourism's punch line "God's own Country", I am completely agree with them. Kerala have so much greenery and natural views that you will completely enjoyed. So here are the details if you have any plan to visit this place in future.

How to Reach : If you are going from Bangalore, you can go by Bus. It is on NH 212 and around 270 KMs from Bangalore. As after Mysore, you have to cross the Forest. It is advisable that you plan your journey accordingly as Forest Department closes the door from both side (from mysore side and from sulthan bathery side) around 8 PM. Other way is you can come through Calicut which is around 65 KMs from Wayanad.

When to go : Although you can visit this place anytime in year, but I will suggest you should go in rainy season. As the color of nature will be at its maximum during that period.

What to visit: As I mentioned its the place of Nature View. There are many Water falls, Dam, Peaks, Temples etc. Here I will mention few of the major attractions.

Chembra Peak : This is the Highest point in Wayanad. you have to take the tickets from the Forest depatment, which will cost you 500 bucks(for group). When you start you will think that its no good because you will find a proper road. But after 1.5 Kms walking, you will reach the point from where you will find the main treking, Its very steap and slippery. So be sure you have proper shoes for it and try to take as less thing
as possible. Take water bottles with you, and if you are ok with drinking water falls, then no need to carry bottles. Main view point will be two lakes over there which I find worth going. One of those lakes is in
Heart Shape which have many small fishes in it, in shrt it is awesome thing to do.

Kuruwa Dweep : This is also major attraction. I am not able to write about it as due to rains it was closed or drowned in the water. But if you are lucky you can go there too. Its around 35 Kms from Kalpetta.

Edakkal Caves : This is 27kms from kalpetta which opens 9 AM to 4:30 PM. This place have lots of caves, so you are interested in it, Here is the mystery is waiting for you.

Soochipara Waterfalls : This is 25 Kms from Kalpetta. Nice place to go, you have to trek a little bit to reach the place. But the water flow and the view is good from there.

Banasura Sagar Dam : Distance from Kalpetta 21 Kms. This place is also good. This is Asia's 2nd Largest Natural Dam. Awesome place, View is great from there, you will get some nice snaps from there. Also Speed boat is also available there.

Pookot Lake : This place I didn't like much. As a very small lake is there, in which they have pedal boats and a small Aquarium. The problem with this place is, it is not well maintained at all.

Apart from these places there are few others waterfalls and 2-3 Sanctuary. In this Sanctuary you can find deers, elephants, and lucky then tigers too.

Food : If you are vegeterian, than you can face some problem. As there are only few restaurants. So better you go with some packed stuff with you, so that you wont run out of food. Although you can find Kerala paratha, Dosa with little bit of effort.

Hotels : Guys, book your hotels atleast 1 week before. As we faced a lot of problem to find good hotels as we went in the peak season.

I think this place is worth going once. So go and visit the God's own Country.

Tuesday, July 19, 2011

Steps to Setup Anonymous FTP Server in Ubuntu using vsftpd

Hi All,

There are many articles on setting FTP server in Ubuntu using vsftpd, but I found that  most of them don't talk about the Anonymous FTP server. So here are the details.
Step 1. Install vsftpd
         > sudo apt-get install vsftpd

Step 2. Need to change the configuration file so that anonymous user can access it.
        > sudo chmod  777 /etc/vsftpd.conf
        > sudo gedit /etc/vsftpd.conf
        > look for anonymous_enable and put its value as YES.
        > if you want to enable local access also, set local_enable as YES.
        > Most important give the directory location where you will put all the files which you want to share.
        for that look for anon_root, if not there then put it there and set its value with location like /home/ftp.

Step 3. your ftp server has been configured now. just start the service
        > sudo service vsftpd restart   or   sudo /etc/init.d/vsftpd start

That's it. just type the ip in browser and you will be able to see all the files in the /home/ftp folder.

android.database.sqlite.SQLiteException: table already exists

Hi guys,
Many times I have faced this problem when I tried to call the db.execSQL(CREATE_TABLE) after  openOrCreateDatabase(DATABASE_NAME,Context.MODE_PRIVATE, null); function. And generally it happens when you are trying to create a table in the same database which already have one or more table in i, other situation is when you are running the same program again and again and the same table is already in the database. So to solve this issue you just need to modify your CREATE_TABLE string(which is creating the table).
Generally we directly use “create table TABLE_NAME” which create problem, so instead of it just add one more thing in it, now create table using string “create table if not exists TABLE_NAME”. It will solve your problem. Hope it will help you.

Saturday, July 9, 2011

Bootable Pen Drive : Install Windows using Pen Drive

Hi,

Here is my another experience and blog for it. Today I tried to format my Lappy because it was getting slowed and now and then it was showing some dll errors. But after deleting the partition I came to know that my CD Rom is not working at all. So I have to go for the other option which is installing through pen drive. So here are the steps:
Step 1. go to command prompt. (If you are Vista / Windows 7 user do it in administrative mode.)
Step2. Type Diskpart
Step3. then type LIST DISK
Step 3. It will show you the list of disk. Observe the size. identify which is your pen drive.let us assume it is DISK 1. Now type following commands one by one
>CLEAN
>CREATE PARTITION PRIMARY
>SELECT PARTITION 1     – This 1 remains same always.
>ACTIVE
>FORMAT FS=FAT32
>ASSIGN
>EXIT
Step 4. Copy CD/DVD contents to Pen Drive
> xcopy e:\*.* /s/e/f f:\
where e:\ is your source DVD drive, f:\ is target Pen Drive

Step 5.Change BIOS Settings in the target system
Give your Pen Drive priority as 1. Now just save settings and reboot with Pen Drive inserted in it.
That's it. you are ready with your Windows Pen Drive. :)

Tuesday, June 21, 2011

The action cannot be completed because the file is open in another program

Hi All,

One more troubleshooting utility I found today, which I would like to share with you. sometimes we face this problem that we are not able to delete the files, it shows one pop-up saying that "The action cannot be completed because the file is open in another program."
This happens because some other application has lock on this, so to remove there is free utility available called "Unlocker".
                 You just need to right click on the file and click on Unlocker option. There the file will be shown as processes, just select and click on "Unlock". Thats it. Now your file is ready to delete. ;)



Friday, June 17, 2011

Remove Write Protection from external Hard disk


Hi All,

Sometimes you face the problem that when you try to remove few files or directories from your external hard-disk, it says that if you want to modify it, please remove write protection from external hard disk. So here is the simple solution, I also found it on some discussion forum.
Step 1. Start -> Run -> regedit.exe
Step 2. Go to
Computer\HKEY_LOCAL_MACHINE\System\CurrentControlSet\Contro l\StorageDevicePolicies
If StorageDevicePolicies is not there then create a new key. 
Step 3Now Click on StorageDevicePolicies and on the right-hand side there should be a DWORD value labelled "WriteProtect".
Step 4Do the same with the following two locations (creating any non-existent keys/values along the way):
HKEY_LOCAL_MACHINE\SYSTEM\ControlSet001\Control
HKEY_LOCAL_MACHINE\SYSTEM\ControlSet002\Control


I hope this will help.

Friday, April 22, 2011

Ice Skiing in Korea (Jisan Ski Resort)


As I mentioned earlier Korea is very vibrant and energetic in terms of adventure sports, So here is the details for the Skiing in Korea. I heard a lot about Jisan Ski resort which is very near to Suwon. So Here I am with the details.

How to reach there???
There is free bus service available from the Jisan Resort itself. What you need to do is register to Jisan Ski Resort. And do it 1 or 2 days before, as reservation is required. So this reservation includes Entry ticket as well as the bus ticket. And bus pick-up stand details you can get from the website which is http://www.jisanresort.co.kr/eng/intro02_01.html
It’s around 45 minute’s journey from Suwon.

What to do???
Basically two things are available there one is Ice-Skiing and other is Snow boarding. There are around 7 courts for the same. So according to your practice you can try different courts, But I will suggest try only one thing in a day otherwise you won’t enjoy. Ice-board and Skiing kit you can take from the shops which are there in that area. Try to take these kits from the place which is nearest to the court. Otherwise you have to carry all the kits, which is very tiring effort. .

When to go???
You can check the timings of buses, and you can plan accordingly.

Etc:
There may be some offer available through banks, especially with Citi bank Credit Card. Because one of my friend only paid 10K while for the same I paid 50K won. And also try to take Group Discount.

Monday, April 18, 2011

Bungee Jumping in Korea


Last month I visited Cheung Pung Land for the bunugee. I know place name sounds very strange and funny, but it has loads of excitement in it. So here I am with another blog about this thrilling place.
How to reach there???
As I was in Suwon, so I will describe you according to that. This place Cheung Pung Land is nearest to Jae Cheon city. So go to Suwon bus Terminal and take bus to Jae Cheon bus express terminal. It’s a 2.5 hrs journey. Then you have to take local bus to go to the Cheung Pung Land, there are few buses like 982, 954 and 960. And be patient while waiting for these buses, as frequency is very less. This is also 1 hr journey.

What to do??
I can understand that it’s very long journey but believe this pain worth it. So there are mainly three rides: Bungee Jumping, Big Swing and Ejection seat. Although these are main attractions but apart from it there are Artificial mountaineering, Artificial ground, Trekking and Cruise. So it is complete day entertainment package.

When to go???
I will suggest you take bus, which leave 8 ‘O’ clock from Suwon bus terminal. So you can reach at the place by 12. Then you can start riding these rides. And Return bus timings are 15pm/16.45/18.30/20.00 pm. Try to go in summer, as it will be favorable time.

Etc:
If you need any other details like rates and others, you can refer the site http://www.riverland.co.kr/

Han(hangang) River


I have been planning to write this blog about my trips in Korea. Although it is not very big country like India, but it has very rich tourism experience. Here I would like to share some knowledge how to reach there and what to do.

How to reach there???
Although it was my second time when I went there but every time I get confused. Nearest metro station to the river is Yeouinaru which is on Subway line number 5. So if you are coming from Suwon, get down at Singil station and then change the line to 5. Take exit 2, and here you are.

What to do???
Lots of activity you have there to do. Cycling, specially double seater and triple seater( who haven’t tried these cycles, I know how attractive they are). You can try paddle-boating, speed boat and in last Cruise.
If you have enough time left then you can also go for 63 building which is just near to Han river. It has Wax Museum, Sea world and of-course view of Han River and city from the 63rd floor.

When to go????
I will suggest you go on Sunday and try to take Cruise in the slot of 7:30. Because by that time it will be almost night, and you can take the night view of Han River which is really good. And I think they have some fireworks and all that day. And try to be there by 4 'o' Clock, otherwise you will surely miss few things.

Etc.
There you will have enough shops for eatables, if you are hungry. KFC , GS25 and one coffee shop is there. So food won’t be issue.

Wednesday, February 16, 2011

some useful commands

little endian to big endian or vice-versa


temp = ( ( ((temp) & 0x000000FF) << 24) | (((temp) & 0x0000FF00) << 8 ) | (((temp) & 0x00FF0000)>>8) |(((temp)&0xFF000000)>>24));


Mount or unmount
mount -o remount rw /system 


Grep command
grep "" -rni --include=*.{java,} *


adb reboot download


logcat -f /dev/kmsg &

Tuesday, January 25, 2011

Android:R can not resolved.

Hi guys,
If you are facing this problem, it means there is some problem in the gen folder in your project. So the best solution to remove this error is to Clean build your project. So just go to Project -> Clean. It will clean the project and now build the project. If it doesn’t work then its better you delete gen folder and do the above steps again.
And Still if it doesn’t work I will suggest you to take back-up of your project and create a new project and now copy the content from old folder to new one. It will work.