Search found 180 matches

by chris
Sun Nov 19, 2017 8:07 pm
Forum: HTML
Topic: html CSS style second line spacing
Replies: 1
Views: 14615

Re: html CSS style second line spacing

Found a solution.

Code: Select all

li {
    list-style-type: disc;
    list-style-position: inside;
    text-indent: -4em;
    padding-left: 5em;
}
by chris
Sun Nov 19, 2017 8:03 pm
Forum: HTML
Topic: html CSS style second line spacing
Replies: 1
Views: 14615

html CSS style second line spacing

Hi, I would like that a second line (and following lines) has an indent. So that the first line is more to the left than the other lines. <ul> <li>Text</li> <li>Text</li> <li>Reeeeaaaaaaal loooooooooooooooooooooong tttteeeeexxxxtt and it has a second line.</li> </ul>
by chris
Thu Sep 28, 2017 6:40 pm
Forum: SQL
Topic: Limit digits after decimal points in SQL
Replies: 1
Views: 12732

Re: Limit digits after decimal points in SQL

I know 2 ways:
With round

Code: Select all

SELECT ROUND( AVG(number) , 2 ) FROM table;
Or with DECIMAL:

Code: Select all

SELECT ( AVG(number) AS DECIMAL(16, 2) )FROM table;
Both should work
by chris
Wed Mar 29, 2017 8:45 pm
Forum: HTML
Topic: wrap long words in table
Replies: 1
Views: 15255

Re: wrap long words in table

You can use CSS,

Code: Select all

 td{word-wrap: break-word;}
by chris
Wed Mar 15, 2017 7:10 pm
Forum: PHP
Topic: end php script
Replies: 1
Views: 13558

Re: end php script

You can use exit //exit program normally exit; exit(); exit(0); //this program ran successfully/without errors" //exit with an error code exit(1); exit("error text"); //octal You can also use die() , wich is the same but mostly used with a error code die("There was a fatal error&...
by chris
Tue Jan 24, 2017 11:04 pm
Forum: Apache
Topic: SOLVED: httpd (pid 4561?) not running
Replies: 2
Views: 22083

Re: httpd (pid 4561?) not running

Did you try:

Code: Select all

/etc/init.d/apache2 restart

It also possible that the process crashed.
Look for the file

Code: Select all

/run/apache2.pid
If it exists, delete it;
and retry.
by chris
Thu Dec 22, 2016 8:23 am
Forum: Servers
Topic: bincimap reset password
Replies: 1
Views: 36467

Re: bincimap reset password

I'm not sure,
but I thought that Binicimap used system users and passwords.

I don't have a system with bincimap,
so I can't test it.
by chris
Wed Nov 23, 2016 8:26 pm
Forum: General
Topic: cannot access /var/spool/cron/crontabs: Permission denied
Replies: 2
Views: 17466

Re: cannot access /var/spool/cron/crontabs: Permission denied

There can be several reasons:

check that the group crontab has all the necessary rights

Code: Select all

chown root:crontab /usr/bin/crontab
chmod g+s /usr/bin/crontab

Code: Select all

chown root:crontab /var/spool/cron/crontabs
chmod u=rwx,g=wx,o=t /var/spool/cron/crontabs
by chris
Wed Nov 09, 2016 9:32 pm
Forum: MySQL
Topic: MYSQL ERROR 1878 (HY000): Temporary file write failure.
Replies: 1
Views: 18078

Re: MYSQL ERROR 1878 (HY000): Temporary file write failure.

When you do a ALTER TABLE in MySQL it re-create the table,
so two copies of the table exists on the system.

So you need enough free space.
specially in /tmp/
Because this dir is used as default.
you can change it in /etc/mysql/my.cnf

Code: Select all

tmpdir          = /tmp
by chris
Tue Nov 08, 2016 7:51 pm
Forum: Servers
Topic: Lots of audit messages polluting my logs
Replies: 1
Views: 12700

Re: Lots of audit messages polluting my logs

It look like you have hardening on your system. but the audit service is not running Check it with the following command (as root) /etc/init.d/auditd status If not start it /etc/init.d/auditd start It will direct the messages to the proper log: /var/log/audit/audit.log It will not solve any of the p...