Friday, December 24, 2010

C Post

This is my compilation of some C questions I have googled and gathered from the web.



(1) unsigned int x = -1; x >>= 2 .What will the value of X?

Value of X will be --> UINT_MAX ( Maximum int Value in the System)
UINT_MAX is defined in the <limits.h>


Therefore :
 x >>= 2 = Integral part of (UINT_MAX/4 (a>>b = a /2^b))

UINT_MAX is also equal to the 0xFFFFFFFF ( that is size of Intezer on a system*2 times F ) 
For example if the size of Intezer is 4 bytes(32 bit) the value of Max int = (2^32) -1
This solution can also be made to find out the size of an intezer on a machine.But for that you have to store the bigger values like 4294967295((2^32) -1)
Alternate way to find out the Size of Intezer is  to find the difference between the &(x) and &(x++) .


(2) Accessing a function Pointer via Structure - Hidden OOPS ?


#include<stdio.h>
void (*funcPtr)();
typedef struct test
{
int x;
char y;
void (*ptr)();

}tstruct;
void show()
{
printf("Demoi \n");
}
void main()
{
tstruct z;
z.x = 100;
z.y = 900;
z.ptr = show;
z.ptr();


}

This programm shows some hidden feature of how OOPs can be implemented using the C.If we assign x as n boolean flag for accessing the function pointed to by the ptr variable , I am sure we can do some OOP stuff here with this code.

(3) What is the structure of the programme in the memory?



More ...to be contniued..!





Friday, December 10, 2010

And finalyy got Nokia N900 !!

..well its been 2 yrs at nokia..and Nokia has given me for all those valuable effortless, bugless contribution I have made to the society via Nokia..reallly!!! Nossss its just a policy..we get a new phone for ervy two years completeion and a new laptop for evry three yr completeion..i hope I am not befriending wikileaks here...HR are you listening...!! Kidding....this is the first resistive Touch , MMS less, 3.5 g, 5 mxpl, 28 gb memory, --LINUXXXXXXX based mobile phone..yeah its the maemo from Nokiee..in the smart phone segment..(ya you got me right I am boasting implicitly for my not-so-usefull-googlish-skill )..pretty good descent digg-me-more device ..first and the last of Nokia's Linux tryst in the smart phone cateogary ..in the class of.embedded device..last because now maemo will come with meego..(truly speaking not an embedded device as I can open an Xterminal and use it for building any other application using some not-so-junk linux shell..and if I can use it for that how it could be the embedded device..need to revise my definition of ED..).It didnt get much good appreciation from the user community...though the developer/testers/debuggers community boasted it most..the commercialization of an open source is the crux of the blog...maemo, meego(maemo+goblin) and of course our anti-nokiee community(android folowers) share the 90% of the the Mobile OS code)...all seems to be the same... who will win..is the question ..whose answer lies totalyy on the consumer..that means the UI...that means teh -the application --that means(TM) -framework- Qt or XYZt(possible for anti-nokia)-TM- commercialization of APplication framework consultant-TM-..list is short...!!

N9.....





so where do I go from here...!!

Tuesday, November 2, 2010

IKU - Dummy UI looks



Profile Id for assisted mode

In the assisted mode the contactor needs to know the contact number of the target which can be achieved by scanning for the Target’s profile Id which is the registered user for the CCA application, using BT.The scanning result will give the Profile ID which can be send to the CCA server for further processing. Target column on the UI shows the Profile Picture and the Profile Id column shows the Profile Id of the mobile owner, so that the contactor may come to know the profile Id of the Target which he can send to the CCA server.



Profile Id:

Profile Id is the uniquie Id for identifying the Phone using this application.

G(a,b,c) will be an algorithm which will generate a (profile Id) string Pattern which will have the information of Phone’s Profile.This will help contactor to identify the Profile Id of the target which he will send to the CCA server for discovering the common contacts.The contactor’s application will give him The UI shown above, with the profile Id of the target, which he will send to the CCA server.

G(a,b,c) =

a = Phone number

b = IMEI number

c = 48 bit BT MAC address

This is one proposal for an Algorithm:

The last 3 bits of component (b, c) and full 10 bits of Phone number are combined together and a string pattern is generated, which will be the profile Id and can be sent to the CCA server

e.g. if a = 919008025304

b = 354552017299159

c = 00:62:25:25:1A:4B

G(a,b,c) = 159-0A-4B-919008025304

The CCA server will then maps the profile Id with the profile Id in the database wether it is registered or not, if yes it will search for the corresponding number and send the result back to the contactor








Sunday, October 31, 2010

IKU Design...Assisted mode..

Again the diagram is self explainatory...I will keep the text un documented this time too, to get the comprehending Picture anytime I looked at it.

IKU Design...Autonomous mode..



..

There is a big opportunity to extend messaging functionality onto S40 handsets and in emerging markets.The application aims to serve the business purpose towards this direction.The application aims at building the social networking via SMS.This could be later integrated with the Mailing services, once become a hit and the consumer response.More over CCA server can be merged into the OVI server which is integrating its services under a common unified umbrella – “Ovi”

Currently, there are two common modes of communictaion widely used amongst people, namely internet and mobile Phones. And, we can access the internet from our mobile handsets.

Current GPRS based service: Needs GPRS or GPRS activated/supported on mobile phones. Social networking sites aim at having the facility of GPRS facilites in the handsets, and needs an application which runs on WAP. GPRS is a mandatory requirement.

Proposed SMS based service: It doesn’t need GPRS always to connect with friends. All you need is a single SMS which will give you enough information about how many of your friends/acquaintances are in common with the new friend. This is an SMS based service.The size of the contacts which can be downloaded or sent from the server is much less than the WAP content.

It is a combintation of messaging server with one server application running at the server side and the client running at the Mobile device side.


With the advent of 3g/4gs evrytign is going to come on cloud and Mobile phones are going to be the best means to read through them.Going forward, inclusion of GPRS to this applicaton will make it more powerful as other contents like common music, pictures, maps and profiles can be accessed/Shared as well.



Autonomous :












"IKU .- I know You ..." application Idea trailer ...

This small video on an application Idea(Hw/sw) can be used for any phone...having full app support for social networking...!!
For more details comment/Contact me..


..Phoentricks for fools ..just the two..!





.......Well what could you expect form a guy working for a phone company will post about...Phone tricks..for the fools..and later word is more typically pointing towards a special kind of fools..by the end of the blog you will come to know who they are..but can be mis used in hell lot of ways...I m trying here to be a professional blogger :P ....mind my words...stuff is more important...

here comes the trick one...this is possible with only S60 phones (or may be any other phone too but wirth trying..but not in S40 ohones)...S60 is the Symbian phone, Symbian which is now an open source since Nokia acquired it, those were the old S60 phones having Symbian version < 3 , now more latest version having greater UI effect using Symbain s^3 or Symbian s^4 will be coming in the markets..so the trick is..
..While calling you just have to browse through th gallery and simulatenously turn ON the music(or play the music)which you want to play simultaneously while the call is on going.., and you will see the melodious song being played behind your call...and you can talk simulataneosuly...do ...turn the volume up and down,increase the bass, twist the equalizers pause the song at the important "quotes" and resume it on the go ,create a playlist of you own words and echo it on the other side of the ears.. i tried it in S40 phone,it didnt happen, i found the internal servers are voice protected and dont allow the voice routing through the audio channel , well but we have Symbian and high end(costly) phones which does this....
Another trick,,you may like this more than first one..
if you are sitting in a closed range room and want to dote around on a hot anti-ur-sex stranger...or straightly any- one.. change the phone Visible name on the Blue-tooth settings to the crisp message(use your twitter-sense) and try connecting the phone you want to connect with ...you must know the type of the phone ur stranger is holding(have a good eye on it)..lest you could end up connecting with a 80 yr old termagant , beware what she is carying in her hands..obviously when you try to connect to that phone the name of the phone will come on the UI like "I love you red Top girl" trying to connect or Accept "u asshole " type of message...
be sure to catch the expression and make out what next you have to do....
woooooahhhhhhhhhhhhh u got it...!!
use it at your good will or mis use it at your own peril..!!!

Sunday, October 10, 2010

..Nokia Phone Book Bug.in S40 phone.

Phone number recognition Bug in nokia phone book in NOkia S40 phone....reproduce it like this...

.Save a number 123456789 with name ABC , ..now make a call...UI will show calling ABC..
.Now make another call to the number XY3456789,this number has to be different from the above one by just 2 first numbers like XY can be 10,11(but not 12),13, 14,15,16,1,7,18,19 ., you will see the UI showing calling ABC only !!!!!!!!!!! or both XY can be different from the original one this will happen !!!!