Sunday, November 29, 2009

Nca Cheer Leather Jackets

Google Car in Catania

Friday occurred on my second encounter with a google car, the last time apart from the fact that I was with my scooter and I was dazed with astonishment to see a google car in Comiso I am not past for the mind to capture that moment!
Friday but I had the time and the readiness to pull out my cell phone camera to document this strange (iihih)
The model is the same but this time I saw red! Note
foreign number plates!



the photos I have taken here: 37.525521,15.079507
(coordinates of the place)

the strange thing is that the way in which I have already met "viewizzata" into action after being released from traffic has been turned right after a cross! time is certainly also not been immortalized!
Sooner or later I'll find out!

Thursday, November 26, 2009

How To Send Sms After Baby Born

Chess passion! Simulation


Wow I still feel the adrenaline around the body! I'm tight as a violin string ... Earlier in

Carondina ended the 4th game of chess the day. It was a long time since I was not playing well, that I felt that rush of power that you can not control that make you vibrate the tip of the toes to the tips deicapelli ....

not remember what it meant to have the patience to wait for the right moment, daring to sacrifice your pieces and the incredible feeling you get from releasing all the tension in an instant when accumalta ruling after a fight to the death "check mad. " Perhaps part
più bella è vedere il tuo avversario che ti guarda con un sorriso fatto solo per non darti la soddisfazione di non mostrarti che in realtà ti spezzerebbe in due molto volentieri

Gli scacchi sono un gioco fantastico! Non è un semplice gioco di logica, è anche e sopratutto una sfida psicologica contro il tuo avversario! Devi combattere contro il tuo corpo per tenerlo calmo e non mostrare la tensione che provi. Tra una mossa ed un altra spesso rimango imbambolato ad osservare l'avversario ed ogni suo minimo movimento , i tendini delle mani, l'espressione sul volto etc...

Ok per oggi mi fermo qui. Non credo di essere riuscito a trasmettervi quello che ho provato... forse semplicemente è impossibile!

In any case, here are the outcome of games today!
I re-examined after a lot of years my roommate and dear old Roberth opponent with whom I attended a course of chess in seventh grade! (Was since then that do not challenge)

Finally I played the last two games against Joao, my other roommate Brazilian, who last match gave me a hard time but in the end whoever takes the win!

Well ladies and gentlemen, the outcome was:
Corsair Corsair
Roberth 2-0 2-0 Joao

not bad!

Thursday, November 12, 2009

Megan Goods Hair Cut On Game

roll of a dice (java) ^ 2

The exercise is to simulate the roll of a dice and produce output in the number of launches that were needed to lure the same face for 5 consecutive launches.

The simulation of the launch, you get the class using Math.random (), which generates a random number (if I remember correctly a double) between 0 and 1. multiply the value for the number of possibilities we want to achieve (in our case the number of sides of the dice, 6 in all) and carry out the casting for " (int) " in order to approximate the value to an integer.
At this point the results will be: 0 1 2 3 4 5
Since we are interested in the values \u200b\u200bfrom 1 to 6, we add 1 to the value obtained.

for the rest of the code is as follows:

  1. / *

  2. This program simulates the roll of a dice and count the number of extractions

  3. necessary so that 'bait 5 times the same number. The result obviously varies from time to time!

  4. * /

  5. public class Fiverand

  6. {

  7. public static void main (String [ ] args )

  8.     {

  9.         int c = 0 ;

  10.         int temp = 0 ;

  11.         int n = 0 ;

  12. do

  13. {

  14. c + + ;

  15. int launch = (int ) ( ; ( Math . random ( ) ) * 6 + 1 ) ; //lancio del dado

  16.                    

  17.             if ( temp == lancio ) / / count how many times you come out the same number

  18. {

  19. n + +;

  20. }

  21. else / / reset the counter

  22. {

  23. n = 1 ;

  24. temp = launch ;

  25. }

  26. System. out. println (c + "=" + launch ) ; / / print the number of extraction, and the number drawn

  27. }

  28. while (n ! = 5) ; / / the cycle is repeated until the count and 'other than 5 ;


  29. System. out. println ( "were needed" c + + "cast the die for 5 consecutive extractions of a number, and the number and 'status:" + temp) ;

  30. }

  31. }



it will produce output in all walks of life and finally made the string that indicates to us the number of extractions that occurred and the number of "lucky"

soon!

Potete trovare tutti i miei programmi quì .

Monday, November 9, 2009

Free Teacher And Student Kissing

Recurrence of the Passover version (Java)

Oggi vi propongo una versione modificata del codice postato ieri , ho eliminato qualche stringa di codice inutile per il calcolo che devo andare ad eseguire, ho modificato la formattazione dell'output ed infine ho inserito un ciclo che mi permette di calcolare la data di diversi anni che vanno da un anno x ad un anno y nel mio caso ho deciso di calcolare tutti i 916 anni che potevo calcolare con l'algoritmo precedente.

Ecco il codice:

  1. public class Pasqua916

  2. {

  3. public static void main (String [ ] args )

  4. {/ / algorithm for calculating the Christian Easter according to the Gregorian calendar (arithmetic method of Gauss) http://it.wikipedia.org/wiki/Calcolo_della_Pasqua # Metodo_aritmetico_di_Gauss

  5. int y = 1583; / / Gregorian year between 1583 and 2499

  6. while (y ! = 2500 )

  7. {

  8. to int y = 19% ;

  9.           int b = y % 4 ;

  10.             int c = y % 7 ;

  11.             int m = 0 ;

  12.             int n = 0 ;

  13. / / assignment m and n according to the century of y

  14. if ( y> = 1583 & & y \u0026lt;= 1699)

  15. {

  16.                 m = 22 ;

  17.                 n = 2 ;

  18.             }

  19.             else if ( y >= 1700 && y <= 1799 )

  20.             {

  21.                 m = 23 ;

  22.                 n = 3 ;

  23.             }

  24.             else if ( y >= 1800 && y <= 1899 )

  25.             {

  26.                 m = 23 ;

  27.                 n = 4 ;

  28.             }

  29.             else if ( y >= 1900 && y <= 2099 )

  30.             {

  31.                 m = 24 ;

  32.                 n = 5 ;

  33.             }

  34.             else if ( y >= 2100 && y <= 2199 )

  35.             {

  36.                 m = 24 ;

  37.                 n = 6 ;

  38.             }

  39.             else if ( y >= 2200 && y <= 2299 )

  40.             {

  41.                 m = 25 ;

  42.                 n = 0 ;

  43.             }

  44.             else if ( y >= 2300 && y <= 2399 )

  45.             {

  46.                 m = 26 ;

  47.                 n = 1 ;

  48.             }

  49.             else if ( y >= 2400 && y <= 2499 )

  50.             {

  51.       m = 25 ;

  52. n = 1 ;

  53. }

  54. / / compute d and e

  55.             int d = ( 19 * a + m ) % 30 ;      

  56.             int e = ( 2 * b + 4 * c + 6 * d + n ) % 7 ;

  57. / / calculate the days

  58. if ( d + and \u0026lt; 10)

  59. {

  60. ; March int d = and + + 22; / / March case

  61. System. out. Println ( and + "=" March + + "/ 03" ) ;

  62. }

  63. else

  64. {

  65. int April = d + and - 9 ;

  66. if ( April == 26) / / exception April 1

  67. System. out. println (y + "= 19/04" ) ;

  68.                 else if ( aprile == 25 && e == 6 && a > 10   ) //eccezione 2 aprile

  69.             System. out. println (y + "= 18/04" ) ;

  70. else / / generic case in April

  71. System . out . println ( y + " = " + aprile + "/04" ) ;

  72.             }

  73.             y ++;

  74.       }

  75. }

  76. }



You can find here all my programs .

Sunday, November 8, 2009

Best Color Shirt For Light Grey Suit

Recurrence of the Passover (Java)

Did you know that the calculation of the anniversary of one of the most important festivals such as Easter for Catholics is not a trivial matter!

Like most of the Catholic feast of Easter is also a mixture of traditions from other religions, in fact the date of Easter has to do with the Jewish Passover (which is entirely different What! remember that Jews do not believe in coming of the Messiah! therefore would have no meaning for them to celebrate the Catholic Easter), which is based on the phases of the moon.

Obviously the motion of the moon is different from Earth and from year to year x date is different! To top it off, Easter is celebrated on the Sunday following the date x!

I say only that the calculation is not trivial at all and I will only refer you to the Wikipedia page where it is described the algorithm that I used! Do not try to explain why the algorithm is already complicated by his own! I used the algorithm of Gauss semlice which is much more than the other proposed in the wikipedia page and has the advantage of indicating the exact date!

here's the code:

  1. public class Easter

  2. {

  3. public static void main ( String [ ] args )

  4. {/ / algorithm for Christian the calculation of Easter according to the Gregorian calendar (arithmetic method of Gauss) http://it.wikipedia.org/wiki/Calcolo_della_Pasqua # Metodo_aritmetico_di_Gauss

  5. int y = 2010 ; / / Gregorian year between 1583 and 2499

  6. final to int y = 19% ;

  7. final int b = y % 4 ;

  8.         final int c = y % 7 ;

  9.         int m = 24 ;

  10.         int n = 5 ;

  11.     / / assignment m and n according to the century of y

  12. if ( y> = 1583 & & y \u0026lt;= 1699)

  13. {

  14. m = 22 ;

  15.             n = 2 ;

  16.         }

  17.         else if ( y >= 1700 && y <= 1799 )

  18.         {

  19.             m = 23 ;

  20.             n = 3 ;

  21.         }

  22.         else if ( y >= 1800 && y <= 1899 )

  23.         {

  24.             m = 23 ;

  25.             n = 4 ;

  26.         }

  27.         else if ( y >= 1900 && y <= 2099 )

  28.         {

  29.             m = 24 ;

  30.             n = 5 ;

  31.         }

  32.         else if ( y >= 2100 && y <= 2199 )

  33.         {

  34.             m = 24 ;

  35.             n = 6 ;

  36.         }

  37.         else if ( y >= 2200 && y <= 2299 )

  38.         {

  39.             m = 25 ;

  40.             n = 0 ;

  41.         }

  42.         else if ( y >= 2300 && y <= 2399 )

  43.         {

  44.             m = 26 ;

  45.             n = 1 ;

  46.         }

  47.         else if ( y >= 2400 && y <= 2499 )

  48.       {

  49. m = 25 ;

  50. n = 1 ;

  51. }

  52. / / compute d and and

  53.         int d = ( 19 * a + m ) % 30 ;      

  54.         int e = ( 2 * b + 4 * c + 6 * d + n ) % 7 ;

  55.   / / calculate the days

  56. if (d + and \u0026lt; 10)

  57. {

  58. int March = d + and + 22 ; The Case March

  59. System. out. println ( "The Passover of the Gregorian year" y + + "falls on the day" + + March the month of March " ; ) ;

  60. }

  61. else

  62. {

  63. int April = d + and - 9 ;

  64. if (April == 26 ) //eccezione 1 aprile

  65.                 System . out . println ( "La pasqua dell anno gregoriano " + y + " cade nel giorno 19 del mese di aprile" ) ;

  66.           Else if ( April == 25 & & and == 6 & & to > 10 ) / / exception on April 2

  67. System. out. println ( "The Passover of the Gregorian year " + y + " falls within 18 days of April " ) ;

  68. else / / generic case in April

  69. System. out. println ( "The Passover of the Gregorian year" + y + "falls on the day" + + April "April" ) ;

  70. ;}

  71. }

  72. }



If you ended up here because they're looking for the date of Passover in a year x between the 1583 and 2499, I'll just ask that calculation.