Archive for August, 2008

A freepascal clock

Saturday, August 30th, 2008

A basical console clock written in freepascal by me, even if it’s an old language, I have to practice on it for school.

Here you got the code, I’ve added little comments but it isn’t a lot. hh = hour mm = minutes ss= seconds

(more…)

C & FPC

Friday, August 29th, 2008

C programming and pascal, that’s what I’m doing for the moment, I have an exam in 5 days, man I hate it.

Just finished a clock in C: you give the time for tomorrow and he’ll count it down. But it’s basic:

#include
#include

int main(int argc, char *argv[])
{
long hh, mm,th, tm, ts;

printf(“Reveil a quelle heure(24) minutes? \t”);
scanf(“%ld”, &hh);
scanf(“%ld”, &mm);

th= hh+24; //ceci pr une journee
tm = 60 – mm;
ts=0;
while(th>=hh)
{
if(ts>0){ts-=1; sleep(1000);}
else if(tm>0){ts=60; tm–;}
else if (th>hh){ts=60; tm=60; th–;}
else if (th=hh){if(ts>0){ts–;}}
system(“cls”);
printf(“%ld : %ld : %ld”, th, tm, ts);

}

system(“PAUSE”);
return 0;
}

I’m more or less pleased but still the infinite refreshments aren’t what I wanted and sorry about the comment but in exercises I don’t use them (more…)

Windows Sysinternals

Saturday, August 23rd, 2008

I’ve been searching for this for so long and now I have found it, I lost it before. If you want to do some lame shit in the windows console, well, here we have some system tools that could just do the thing you needto have.

Windows Sysinternals: Documentation, downloads and additional resources.

Desktops

Saturday, August 23rd, 2008

It would probably be unholy but for users that want more then one desktop like in linux, on their windows vista, here’s the app.

Desktops.

NSF and the Birth of the Internet

Friday, August 22nd, 2008

The history of the internet, nicely done, now you don’t have to read the wikipedia entry. And it’s enjoyable to browse the site

nsf.gov – NSF and the Birth of the Internet – Special Report.

Restful_authentication

Wednesday, August 20th, 2008

This is probably one of the easiest authantication plugins for rails. I’m learning it at the moment and it isn’t easy, the biggest obstacle is the tutorials that often are but available for rails 1.x.x.

Railscasts – restful_authentication.

Ubuntu to lame

Wednesday, August 20th, 2008

Now that I’m using Ubuntu 8.04 on my laptop as primary system, I had the chance to check out many things on it and it displeases me greatly. The bugs I found:

  1. Firefox is still running even if everything is closed
  2. Movie player crashes if you fast forward a bit
  3. emerald and compiz run with problems
  4. Less control over what you install rails is at version 2.1.x and I updated but still if I run
    rails appname

    and then

    firefox 0.0.0.0:3000

I get rails version 2.0.2 and I already reinstalled ubuntu just for that

Ubuntu has issues and if I can get gentoo running on my laptop I’ll change gladly. Unfortunantly gentoo has problems in virtualbox something with xorg server so I have to check that out.

About Me

Here I'll share my knowledge, discovery and experience related to my hobby and work. Most articles on this site are related to blog design, short reviews, tips and make money online. More

Find entries :