What day were you born?

14 08 2015

Simple JavaScript function that calculates your birthday day of week:

function getBirthday(myDay)
{
var daysOfWeek = ["Sunday", "Monday", "Tuesday", "Wednesday", "Thursday", "Friday", "Saturday"]; //array with the days of week
alert("I was born in a: " + daysOfWeek[myDay.getDay()]); //getDay returns the days of week (0-6 day of week. 0 == sunday)
}

var myDay = new Date(1969,10,25);
getBirthday(myDay);

Result:
Screenshot from 2015-08-15 00:18:03





ArnoldC

25 09 2014

ArnoldC is an imperative programming language where the basic keywords are replaced with quotes from different Schwarzenegger movies.

  • Every ArnoldC program must have a main method as following:
IT'S SHOWTIME
[statements]
YOU HAVE BEEN TERMINATED
  • The syntax to print a string, is:
TALK TO THE HAND "happy families are all alike"
  • Keyword for RETURN:
I'LL BE BACK
  • An Hello World, looks like this:
IT'S SHOWTIME
TALK TO THE HAND "hello world"
YOU HAVE BEEN TERMINATED

Check more details about ArnoldC programming language, here: https://github.com/lhartikk/ArnoldC/wiki/ArnoldC

You can search for other existent esoteric programming languages, such as “OOK!” (a programming language derived from Brainfuck and designed to be understood by Orang Utans.), here: http://en.wikipedia.org/wiki/Esoteric_programming_language





HP computers are racist?

25 09 2014

The face tracking feature of the HP web cam will not recognize or track black faces.

You have to watch this video.

It is hilarious!





Drones used for Amazon deliveries…

2 12 2013

“One day, Prime Air vehicles will be as normal as seeing mail trucks on the road today.”

More details here: http://www.amazon.com/b?ref_=tsm_1_yt_s_amzn_mx3eqp&node=8037720011

Cool!





IT Private Jokes #15

16 11 2013




IT Private Jokes #14

8 11 2013

Please copy the following text into Google translate. Then, click on the listen button and enjoy:

pv zk pv pv zk pv zk kz zk pv pv pv zk pv zk zk pzk pzk pvzkpkzvpvzk kkkkkk bsch





Smartforms: Printing Several Forms in One Print Request

18 10 2013

If you need to print several forms with the same print job request, first you need to retrieve the name of the function module generated from the Smart Form, by using the SSF_FUNCTION_MODULE_NAME.

Then, call the function fm_name setting the components of the CONTROL_PARAMETERS structure using the following rule:

1st call:
NO_OPEN = SPACE.
NO_CLOSE = ‘X’.
nth call:
NO_OPEN = ‘X’.
NO_CLOSE = ‘X’.
last call:
NO_OPEN = ‘X’.
NO_CLOSE = SPACE .

  • Example:
data: control_parameters type ssfctrlop .

*You must set the following parameters before the 1st call:
control_parameters-no_open = space .
control_parameters-no_close = 'X'.

call function 'SSF_FUNCTION_MODULE_NAME' (...)
call function fm_name (...)

*Supposing this is the last call, you must set parameters like this:
control_parameters-no_open = 'X' .
control_parameters-no_close = space .

call function 'SSF_FUNCTION_MODULE_NAME' (...)
call function fm_name (...)

If you follow this procedure, all smartforms will be associated to the same spool request.
You can check it on SP01 transaction.