Search found 212 matches

by chris
Mon May 27, 2013 6:49 pm
Forum: General
Topic: Shell get yesterdays date
Replies: 1
Views: 57582

Re: Shell get yesterdays date

You can do this by adding --date="-1 day"

date +"%A, %B %-d, %Y" --date="-1 day"

or even shorter
date +"%A, %B %-d, %Y" -d yesterday

You can also get the day for tomorrows or work with months or week.
date +"%A, %B %-d, %Y" -d tomorrow
date +"%A, %B %-d, %Y"
date +"%A, %B %-d, %Y" -d "-1 ...
by chris
Mon May 27, 2013 6:49 pm
Forum: Shell
Topic: Shell get yesterdays date
Replies: 1
Views: 59198

Re: Shell get yesterdays date

You can do this by adding --date="-1 day"

date +"%A, %B %-d, %Y" --date="-1 day"

or even shorter
date +"%A, %B %-d, %Y" -d yesterday

You can also get the day for tomorrows or work with months or week.
date +"%A, %B %-d, %Y" -d tomorrow
date +"%A, %B %-d, %Y"
date +"%A, %B %-d, %Y" -d "-1 ...
by chris
Mon Mar 18, 2013 5:37 pm
Forum: HTML
Topic: CSS valign table
Replies: 1
Views: 81571

Re: CSS valign table

you are looking for vertical-align:top (equals valign=top in html)

But I think it won't work for the entire table,
you'll have to put (a separated class) in <tr> or <td>

so something like this:
<table class=test_table>
<tr class=test_tr>
<td>cell1</td>
<td>cel2
test</td>
</tr>
</table>

css ...
by chris
Wed Feb 27, 2013 9:03 pm
Forum: Servers
Topic: Solved: Log-file flooded with udevd error message
Replies: 2
Views: 78108

Re: Log-file flooded with udevd error message

I had the same problem after a restart of one of my servers.

It was the kernel that was too old.
I think udev needs kernel 3.0 or newer to use this function (Not sure)

I regularly update my programs, but rarely recompile the kernel.
This happens when your server runs for years on end.

Anyway I ...
by chris
Tue Feb 19, 2013 8:46 pm
Forum: MySQL
Topic: What does /*!40001 SQL_NO_CACHE */ * means
Replies: 1
Views: 65183

Re: What does /*!40001 SQL_NO_CACHE */ * means

This query is almost certainly due to a mysql dump being run on the database.
Those are the style of queries it submits to extract the data for the dump.

Check for the time when it happens, it might be a backup that is running.

# Time: 130219 18:11:35
# User@Host: user[host] @ localhost ...
by chris
Wed Feb 13, 2013 8:10 pm
Forum: General
Topic: Resize script for gimp
Replies: 3
Views: 82083

Re: Resize script for gimp

Some people had problems with GIMP 2.6.
So here is the updated version:
(define (gimp_test_resize pattern img-width dir prefix)
(let* ((filelist (cadr (file-glob pattern 1)))) ;Get list of files
(while (not (null? filelist))
(let* ((filename (car filelist))
(new_filename (string-append dir ...
by chris
Thu Jan 31, 2013 7:04 pm
Forum: General
Topic: Test websites Windows 8with modern.ie
Replies: 0
Views: 98107

Test websites Windows 8with modern.ie

Microsoft has launched a new tool
that test you site for common problems.

Most importantly it check for compatibility issues with Internet Explorer 9 and 10 (and windows 8)

http://www.modern.ie
by chris
Mon Jan 07, 2013 9:14 pm
Forum: HTML
Topic: Difference between DIV-tag and SPAN-tag
Replies: 1
Views: 69475

Re: Difference between DIV-tag and SPAN-tag

<DIV> is more like a paragraph and <SPAN> is not.

The DIV element gives you the chance to define the style of whole sections of the HTML. You can define a division of your page as a call out and give that area a different style from the surrounding text.

Because the CENTER element has been ...
by chris
Sun Jan 06, 2013 1:52 pm
Forum: MySQL
Topic: Solved: mysqldump: Got errno 28 on write
Replies: 2
Views: 79367

Re: mysqldump: Got errno 28 on write

Basically it means you run out of disk-space.

Liberate some space and try again.
by chris
Tue Nov 13, 2012 8:26 pm
Forum: PHP
Topic: PHP Warning: preg_match(): Compilation failed: missing ) at
Replies: 5
Views: 121795

Re: PHP Warning: preg_match(): Compilation failed: missing

If you still have problems even with

Code: Select all

$pattern="/\b".preg_quote($c_line[1])."\b/i";
Try
$pattern="/\b".preg_quote($c_line[1],'/')."\b/i";
It should escape any 'bad' character.