Archive

Posts Tagged ‘howto’

Downgrade to Firefox 2 in Ubuntu

May 11th, 2008 No comments

If you use many firefox extensions, then you can understand the meaning of this tutorial.
Many extensions, especially the “non-institutional” ones are not upgraded to firefox 3 so they do not work.

Read more…

Categories: Linux, Tutorial, Ubuntu Tags: , , ,

Time operations using php

December 30th, 2007 No comments

It has been a long time since my last php tutorial.
PHP 4 and 5 have some functions to deal with time but if you need to know the difference between two dates you are without heavy weapon so let’s see how we can do that.
clock
The two args are timestamps. To create timestamp you can use the following php functions:

int mktime  ([ int $hour  [, int $minute  [, int $second  [, int $month  [, int $day  [, int $year  [, int $is_dst  ]]]]]]] )

mktime eturns the Unix timestamp corresponding to the arguments given. This timestamp is a long integer containing the number of seconds between the Unix Epoch (January 1 1970 00:00:00 GMT) and the time specified.
Arguments may be left out in order from right to left; any arguments thus omitted will be set to the current value according to the local date and time.

int time  ( void  )

time returns the current time measured in the number of seconds since the Unix Epoch (January 1 1970 00:00:00 GMT).

Read more…

Categories: PHP, Tutorial Tags: , ,

MP3 to WAV converter

November 24th, 2007 No comments

A quick howto.

mpg123 -w file.wav file.mp3

so you need mpg123. It’s available from debian official repository.

Django: using smtp to send your mail.

November 1st, 2007 No comments

I’ve just found today a really good method to use my gmail account to test if my code works properly to send emails (e.g.: account activation).

df

Read more…

Categories: Python, Tutorial Tags: , , , ,

Install KDE 4 using svn on Debian/Ubuntu

October 27th, 2007 No comments

Hello! This guide is written lurking at techbase.

Read more…