Showing posts with label lnmiit. Show all posts
Showing posts with label lnmiit. Show all posts

Monday, February 20, 2012

Android: Push Platform logs in Kernel logs

Hi all,
Its good to write a new post after a long long time. So here I am with a very useful post about the debugging. Sometimes debugging your application could be a problem, when you don’t know whether this issue is because of platform code or kernel code. Specifically I must say, you will feel this scenario when you have to measure some time, and you need to decide whether this is coming from the kernel side or platform side. But as platform and kernel code uses different type of time-stamp, it is almost impossible to debug. So for that there is one command in the adb itself. Here are the steps :
1. Go to adb shell.
2. Type “logcat -f /dev/ksmg
3. just use dmesg or cat /proc/kmsg to see the complete logs.
Here is one prerequisite, your phone should be rooted. otherwise you won’t have permission to the above steps. I hope it will help you.

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.

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

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.

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.

Monday, April 18, 2011

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.

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.

Thursday, September 2, 2010

android.view.WindowManager$BadTokenException: Unable to add window -- token null is not for an application

Hi guys,
if you are facing this problem then it is problem with your context which you are passing in the AlertDialog, so make sure you are passing the Context which is initialized by
Context context = this;

And some times in case of Service, you can face this problem while you are using the correct Context. In that case use the following code before show() method.

AlertDialog ad;
// code for creating. .create();
ad.getWindow().setType(WindowManager.LayoutParams.TYPE_SYSTEM_DIALOG);
ad.show();

It will work.

Monday, June 14, 2010

noclassdefFounderror map view google maps android

Hi,
If you are facing the  NoClassDefFound Error while using Maps, it means you are not using the Google Api. I mean to say is you need to use Google API in Target in place of Android x.x (version). And also dont forget to include maps.jar. And three modification in xml files.
1. you need to include the Map Key in the main.xml (layout file).
2. you need to add in application attribute in Manifest file.
3. finally you need to give uses-permission to access internet. So add the following line.

Friday, April 30, 2010

Unable to set current music track as status in Gtalk



If you are facing difficulty in setting your current music track as status message, here are simple steps to make it work
Step 1. Uninstall your Gtalk.
Step 2. Exit Windows Media Player( it is mandatory), otherwise changes will not be reflected.
Step 3. Download latest version of Gtalk.
Step 4. Right click on your installer and click on "Run As Administrator".

It will work fine.

Monday, March 29, 2010

Android : Conversion to Dalvik format failed with error 1

If you are facing the Conversion to Dalvik format failed with error 1 error, then it is generally removed by cleaning the project, so just do Project->Clean. And sometimes it is also caused if you are using external jars, so if you are getting Conversion to Dalvik format failed with error 1 error, make sure there is no external jars.

Unable to resolve target 'Google Inc.:Google APIs:3'

Hi guys,
If you are facing the ”Unable to resolve target ‘Google Inc.:Google APIs:3′” problem, then what you should try is just open the default.properties file in the project folder and modify the target asandroid-3. This is also applicable for API version also.

Thursday, December 24, 2009

Bsnl Broadband Type 2 modem Setting

Hi,
If you want to configure your type II modem, for multiple system, then here is the solution, first follow the steps defined in the following link
http://www.calcuttatelephones.com/dataoneinstall/mu08.html

Now open the http://192.168.1.1 and there open WAN settings, now select PPPoE service, if it is there then delete and create it again, now choose the default option, in the intermediate step it will ask for username password, enter the details, reboot it.
Hope it will help.



P.S Take care the security measure.

Tuesday, November 17, 2009

Come back

I think it has been a long time since I write something, but let start all over again, now in next few posts I will give you information about the sites which can be very useful to you.

Wednesday, May 6, 2009

Nostalgia

Nostalgia...... this is the name of a function which our institute gave us for our
farewell party. I wont say that I don't know how these four years of my graduation passed away but yeah really I will miss them. I still remember the first day of my junior year,My father did come with me to say all the best for the new life which I was going to start. As most of us were never been in hostel, we all were very thrilled with this experience. And other thing which was making us nervous was "Ragging". I think as soon as a freshman got admission in any College, he start making every possible act which can be done with him.
I know for some of them this may not be a good experience but I really think it helped us very much in many scenarios, although some of us loose our shame during the ragging but there were so many funny incidents which were there to make us happy. Some of my friends came up with qualities which even they don't know about it himself.It was the phase which just passed away, but still sometime we think about that time it makes us smile. Those non-veg jokes, funny postures and non-veg plays....I can't forget them.

In second year when we became senior, I cant describe the power which you got, believe me it's like you are the emperor of that part of the world. Royal treatment which you get and the feeling of being more experienced really give you a great satisfaction to the pain which you took in your junior year.Other years were equally important. We did and learned a lot of things, enjoyed our college fest and organizing it was great experience.
I cant forget the nights of exams when you are running
room to room in a hope that somebody would have already read the course and will help
you to understand the jargon of electronics equation. I cant forget the nights when you spend the whole night in watching movie or playing Online Games. I cant forget the parties which we enjoyed together. I know this phase wont come back, but these college days give you so much to remember you cant live without feeling sorry to loose these days.

Tuesday, May 5, 2009

Gtalk : some tricks and and tips


It’s good to write after a long time, as I was busy with exams and all, now I am back and will try to write continuously. So yesterday I was using my gtalk and I think, is it possible to make my status message more creative looking ? and for the answer I just went to Google BABA and as always He gave me the solution, So here are some tricks which I got from the a specific blog.

shortcuts

# F9: Open Gmail to send an email to your friend
# F11: Start a call with your friend
# F12: Stop the current call
# ESC: Close the current window
# ALT + ESC: Minimize the current window
# TAB: Switch between multiple chat windows
# CTRL + I: Same as TAB
# SHIFT + TAB: Same as TAB but in reverse order
# CTRL + TAB: Same as SHIFT + TAB
# Windows + ESC: Open Google Talk (if it’s minimized, or in the tray)

Conversation text

* A message can be 32767 characters long.
* Certain smileys are recognized by Google Talk and will be shown in blue.
:-| :-O :-x:-P:-D;-):-(:| :O :x:P:D:):( ;-| ;-O ;-x ;-P ;-D ;-) ;-( ;| ;O ;x ;P ;D ;) ;( B-| B-O B-x B-P B-D B-) B-( B’( BO Bx BD B) B( B) And you can put a ‘ between the characters to get another one shown in blue.
* To write text in bold, put it between *asteriks*
* To write text in italic, put it between _underscores_
* You can insert special characters like ♥♫☺ with ‘Start / Programs / Accessories / System Tools / Character Maps’.

Conversation Window

* Drag a conversation window on top of another and they will dock together.
* Drag a file onto the chat history and you’ll send the file to the selected contact.
* When you see a message notification, you can right click it to close it without focusing the conversation window.

Conference Calls

* What you need to do to have conference calls: Open up a copy of Google Talk on all computers with which you wish to conference. After one copy is opened make a new shortcut for Google Talk but at the end of it add /nomutex. If you installed it to the default folder then your shortcut should read “C:\Program Files\Google\Google Talk\googletalk.exe” /nomutex. Open 2 instances of the software on every user’s computer. After this start a chain: User 1 should connect on one instance to user 2. User 2 will connect on his second instance to user 3. User 3 will connect using his second instance back to user 1. With this chain everyone is connected to everyone.

Nickname & Status Message

* You can change your name in the Google Account page.
or To change the nickname need to go to your Gmail account and change the name there. Choose Settings, Accounts, and then Edit info. Click on the second radio button, and enter your custom name.
As a result all of your emails will have that nick as well, there is no way to seperate the two.
* You can add a website in your custom message, it will be clickable when someone opens a conversation window with you.

Mtech Admission dates at different iits

The results of different IITs are posted below.

1.IISC April 21st……The results you can know on that day itself….But actual result will come in June 1st week.

2.April 25th ….IITM and IITD results will be out.

3.May 5th …..IITB results will be out.

4.May 7th,8th…IITK interview…..The results will be in last week that is on 27th ,28th May.

5.May 12th to May 31st….IITD Interviews.

6.25th May …IITB second offer. 7.29,30th May…..IITKGP First counselling.

8.June 1st week…..IISc ME Mtech results

9.8-12 th June…..IISc MSc interview.

10.June 15th….IITB final offer.

11.June 16th….IITKGP second round of counselling.

12. IIT roorkee

Interview/Written Test - June 01, 2009 (Monday)

Announcement of merit list based on GATE percentile and Interview/Written Test June - 02, 2009 (Tuesday)

Counselling for admission - June 02 & 03, 2009 (Tuesday & Wednesday)

for more details check the iit’s site. there may be some modifications.