miércoles, 10 de octubre de 2012

The Scheduler

I have encoded  a simulator  of the scheduler in C for five process, it can be changed, added or modify the service time, thsi work with FIFO or FCFS, enjoy it...


        "Here code"
       |
       |
       V
       scheduler.c

lunes, 8 de octubre de 2012

Do you program stylishly [?]


How to found a good programmer or an excellent developer and don´t die in the try, with a simple test we can to know their skills.
“Write a program that prints the numbers 1 at 100, but for the multiples of three prints “Fizz” instead of the number, and for the multiples of five prints “Buzz”. For the multiples or both, prints “FizzBuzz” ”.

Perhaps a “for” and some “if´s and else´s” can solve the problem, but: is it sufficient? How do you solve? I posting below my solution in language “C” and I hope yours.

#include <stdio.h>
main(){
  int i;
  for( i=1; i<=100; i++ )
      printf( (i%15==0) ? "FizzBuzz ": (i%3==0) ? "Fizz " : (i%5==0) ? "Buzz " : "%d ",i );
}

lunes, 23 de mayo de 2011

Stand By Me - Oasis

Stand By Me

Made a meal and threw it up on Sunday
I´ve got a lot of things to learn
said I would and I´ll be leaving one day
before my heart starts to burn
so what´s the matter with you?
Sing me something new
don’t you know the cold and wind and rain don´t know
they only seem to come and go away

Times are hard when things have got no meaning
I´ve found a key upon the floor
maybe you and I will not believe in
the things we find behind the door.

So what´s the matter with you?
Sing me something new
don’t you know the cold and wind and rain don´t know
they only seem to come and go away

Stand by me nobody knows
the way it´s gonna be (X3)
Stand by me nobody knows
nobody knows the way it´s gonna be

if you are leaving will you take me with you
I´m tired of talking of my phone
there is one thing I can never give you
My heart would never be your home

So what´s the matter with you?
Sing me something new
don´t you know the cold and wind and rain don’t know
the only seem to come and go away

Stand by me nobody knows
the way it´s gonna be (X3)
Stand by me nobody knows
nobody knows the way it´s gonna be

Don´t you know the cold and wind and rain don´t know
the only seem to come and go away

Stand by me nobody knows
the way it´s gonna be (X3)
Stand by me nobody knows
nobody knows the way it´s gonna be


lunes, 9 de mayo de 2011

Gafete de capitan: Mi madre me dio la vida

Gafete de capitan: Mi madre me dio la vida: "Si dice que el amor a la camiseta sólo se compara con el amor a la madre.
El amor al equipo se demuestra con el aguante en las tribunas, ..."

Why?

Why all must to be like the little book?

Study a career
Get a job
Buy a car
Buy a house
Have a nice family

Why?

Be free or die…

lunes, 28 de marzo de 2011

Premises

Premises:

1.- A dog leads a blind

2.- Love is blind

3.- God is love

…conclusion:

A dog leads to God.


lunes, 14 de marzo de 2011

3.14159265358979323846~

Hello, today Monday 14° is Pi´s day.

Ok but, what is Pi?...
…Pi is a irrational number, it is a numerical constant very important used in physical, engineering and mathematical.

Pi is infinite, and is said to be possible to find your phone number a long their figures.

Until 2010, has been calculated 5.000.000.000.000 of figures for Pi.

Pi is like 3.14159265358979323846~ and is the number of times the diameter fits into the circumference of a circle.