Tuesday, July 5, 2011

Google Plus and Picasa

I don't want to share my picasa Album.... And there is no option for doing the same... :-( ...

So... till that time, no google plus :)

Solution ::
Make your album private...

Issue::
But Why should I make my album private???? I just want a different storage for my google + photos.. that's it...
why should I goto my picasa once again.. to make all my albums private???



Wednesday, June 22, 2011

Cookies in GWT

Google Web Toolkit (GWT) supports cookies similar to other web technologies. GWT provides methods for setting cookies for specified time duration, for specific domains and paths.

Below is a code to set a cookie for a duration of one day.
Date dt= new Date();
long dtlong = dt.getTime();
dtlong = dtlong + (1000 * 60 * 60 * 24);//setting cookie for one day
dt.setTime(dtlong);

//static method
Cookies.setCookie("cookieName", "cookieValue", dt);

When retrieving the cookies, you have to specify only the name of the cookie, nothing related to duration. If the cookie is found in the browser for this domain (not expired); value will be returned.
Cookies.getCookie("cookieName");//provide name as an argument

If the cookie does not exist, you should look for cookie before setting it again.
String strCookie = Cookies.getCookie("cookieName");
if(strCookie == null)
{
//set cookie again after informing user on expiration.
}

Tuesday, February 8, 2011

Rangilu Rajkot (રંગીલુ રાજકોટ)









Rajkot (Gujarati: રાજકોટ Rājkot is the 4th largest city in the state of Gujarat, India. Rajkot is the 28th urban agglomeration in India, with a population more than 1.43 million as on 2008. Rajkot is ranked 22nd in Th

e world's fastest growing cities and urban areas from 2006 to 2020.

Rajkot is a city of Gujarat state in India and administrative headquarters of the Rajkot District, 245 km from the state capital Gandhinagar, located on the banks of the Aji River and Nyari River. Rajkot was the capital of the then Saurashtra state from 15 April 1948 to 31 October 1956 before merging in bilingual Bombay State on 1 November 1956. Rajkot was merged into Gujarat State from bilingual Bombay state on May 1, 1960.


Culture

The people in Rajkot are predominantly vegetarians and are vehemently against any form of hunting. This could be the main reason for the survival of rich fauna in this city. The women in Rajkot are very fond of jewelry. Large chains, pendants and other heavy gold jewelry are a common sight during marriages, festivals and family functions. The Rajkot men love to flaunt thick gold chains and numerous rings on their fingers to give the glimpse of theier royalty. The attire changes with the season and approaching festivals. The ladies normally wear the Gujarati flavour of the Sari and men can be seen in flowing Kurtas and in the formal wears (shirts and trouseres).



Under Bridge Circle, Rajkot

Rajkot is multicultural. One can find many languages, like Gujarati, Hindi, Urdu, English, Sindhi, Bengali, Tamil, Malayalam and Marathi. However, only Gujarati, Hindi, Urdu, and English are well understood. Rajkot is the part of Kathiyawad. Because of this people of Rajkot are famous as Kathiyawadi.

Rajkot is frequently referred to as "Rangilu Rajkot" (રંગીલુ રાજકોટ) meaning colorful Rajkot. The people of Rajkot like to enjoy themselves to the fullest no matter which season or time of the day. You can find them eating out at 1 am. people mostly close their business between 1.30 pm to 4.30 pm and sleep at home. There is often a saying "સુરત તો સુરત છે પણ રાજકોટ ખુબસુરત છે" (Surat may be beautiful, but cannot stand against the beauty of Rajkot).


Festival

Rajkot is a city of festivals. Garba, a dance form, is popular both with men and women and is performed during the Navratri festival. The dance starts before midnight and continues until dawn. Mata Ambe, who rides a Lion, has a special reverential status with any highly religious Gujarati. The 'Janmastami Mela' organizes by for five days at the Race Course grounds to celebrate Janmastami. Diwali is the New Year for Hindus and people celebrate by doing Ma Laxmi Pujan. Moharam is new year of Muslim. Muslim's also celebrate ramzan Eid and bakri Eid. Rajkot Municipality arranges the Firecracker Show for the citizens of Rajkot. People clean and paint their houses and purchase new clothes to wear on New Year's Day. Dhuleti is the colour festival and Mahashivratri is God Shiva's day. People also celebrate Uttarayan (Makar Sankranti) on 14 January by flying kites from their terraces. Other holidays are Ganesh Utsava, Ram Navami, Mahavir Jayanti etc. Since Rajkot has people from many different castes and races, their various celebrations occur throughout the year.



Economy

The city contributes to the economy of the state with heavy and small scale industries under the patronage of Gujarat Industrial Development Corporation (GIDC) and Gujarat State Financial Corporation (GSFC). The economy of Rajkot got another shot in the arm with 28 crore World Bank aid for development of infrastructure of the city. Many a renowned business houses made a beeline for grabbing the property market in the city, before it skyrockets. The plans are already in place to beautify and modernize the ancient city, including a Rock Garden, ala Chandigarh. Another 25 crore project to rebuild the Kaiser-e-Hind, the only major bridge linking to the city, is already nearing completion. All such infrastructure development will add to the economic wealth and promote the local business houses.

Sister cities

Rajkot has one sister city.[36] Leicester Rajkot Twinning Association is going to build Leicester House with collaboration of RMC in Rajkot.[37][38]


I feel proud to be a part of Rajkot....

Sources:::

Wikipedia and many more

Saturday, January 29, 2011

Music Night



Awesome music night at BITS...


one can never forget this one... :)

http://jaldeepvasavada.blogspot.com/2011/01/hectic-day-at-bits.html

Friday, January 28, 2011

Life at BITS

coolest dayyyyyyyyy

no work........but still managed to get 1 project...

and applied for 5 more.. :-)

awesome work pressure.. + count to infinity no. of projects


let's see

:)

Life at BITs is awesome..

Tuesday, January 25, 2011

Hectic Day at BITS

Today we got our first assignment of RC (Reconfigurable Computing)...

Dont know what to do... !!!

Let's see... :-)

The assignment stuff and lecture stuff are completely different...

A very hectic day at BITS Pilani... the institute which is known for the same... :)

AND - XOR Effect

Suppose you have an 8-bit binary number and you want to find 1's complement of it:

(I am taking assumption to explain the method, this method works well with any binary representation of the number)

Assumption: Let's say the 8-bit number is 10011110.

Method-

1 0 0 1 1 1 1 0
1 1 1 1 1 1 1 1 Apply XOR of the 2 numbers
--------------
0 1 1 0 0 0 01

So, we are able to find a 1's complement of the number 10011110 with a single XOR function as shown in this simple example.

This method works for any binary number representation.

Suppose you have an 8-bit binary number and you want to check whether the number is non-zero or not:

(I am taking assumption to explain the method, this method works well with any binary representation of the number)

Assumption: Let's say the 8-bit number is 10011110.

Method-

1 0 0 1 1 1 1 0
1 1 1 1 1 1 1 1 Apply AND of the 2 numbers
--------------
1 0 0 1 1 1 1 0

So, we are able to find a number 10011110, from which we can say that the number is non-zero, with a single AND function as shown in this simple example.

This method works for any binary number representation.

However, this method is useful to check for a single bit whether it is zero or not.

As an example:

We will check for the input 10011110, whether the bit at position 3 is '0' or not. (considering the Least significant bit as 1st bit)

10 0 1 1 1 1 0
000 00 1 0 0 Apply AND of the 2 numbers
--------------
000 00 1 0 0

Here, the result is >0. Therefore,
we can say that for a number 10011110, the bit at position 3 (
10011110) is 1.

In general, to check the nth bit for the number, keep the nth bit as 1 and reset the rest of the bits in the input number, with which you are going to perform AND operation.