tricks

Godaddy enable index.html

Dragan Eror's picture
ubuntu server image

To enable index.html on GoDaddy server you should write just one line into your '.htaccess' file in root folder on your site.

DirectoryIndex index.php index.html index.htm home.html
Note!
All files need to be writen into single line

P.S. If don't already have .htaccess file, create it (dot at the begining is important part of file name).

MSI GX600PX - Ubuntu Auto Headphones Sound Switch

Dragan Eror's picture

I had have a problem with headphones sound switch on my MSI GX600PX-12EU notebook. When I plug headphones, sound was active on speakers and headphones both. This was a problem when I listen a music while working in the same room with somebody.

headphone

I found cool and easy solution to fix this problem.

  1. You need to open text editor with root permissions and edit file /etc/modprobe.d/alsa-base.conf
    You can do this with hit

How to setup Drupal cron job on GoDaddy hosting?

Dragan Eror's picture

I suppose there is more than one way to do that. This is how I did this...

First, you need to go to your hosting manager page
Then from 'Content' tab choose 'Cron Manager'

Create Cron Job (from top right button)

In the 'Cron Job Title' field write some title (example: 'your_domain cron job')
In 'Command' field you should write

/usr/bin/wget -O - -q -t1 http://your_domain/cron.php

and choose 'Hourly' from selection list.
From 'Minute' selection list choose on witch minute cron will run... (example: 'x:15').

Ping kroz mrežu

Dragan Eror's picture
network

Kako saznati koliko je mašina trenutno u mreži i koje su im IP adrese?
Tako što ćete u terminal ukucati sledeću komandu...

for ip in $(seq 1 254); do ping -c 1 192.168.1.$ip>/dev/null; \
[ $? -eq 0 ] && echo "192.168.1.$ip UP" || : ; done

Izvor: http://nultibitovi.net/node/91

CUPS - Common UNIX Printing System

Dragan Eror's picture

Nekom će se kad tad desiti da će nešto stampati pod ubuntu-om i da će morati da iz nekog rasloga prekine proces ili više print procesa...

Na windowsu se print proces pojavljuje u system tray-u. U ubuntu postoji CUPS server koji vodi računa o ovim stvarima.
Pristupa mu se iz browser-a.

Možete ga naći na adresi

http://localhost:631/

i odande upravljati svim vašim print procesima...

Remove FireFox focus ring from links on your site

Dragan Eror's picture

If you use Firefox web browser then you know about annoying dotted border around links when you click on them.
You can easy fix that thing if you carefully follow next few steps.

  1. Open new tab or new window in your Firefox

  2. In address bar type next

    about:config

    and pres enter

  3. You will see warining page. Something like this

Generic Syntax Highlighter - GeSHi

Dragan Eror's picture

Yesterday I found great Generic Syntax Highlighter class.
Searching more I found 'geshifilter' Drupal module for GeSHi class, after I was implement it into this Drupal site.

With GeSHi you can make your code examples more readable for users!

You can see examples of GeSHi below!

Telekom Srbija, router Huawei EchoLife HG520s admin pass

Dragan Eror's picture

Da bi dobili administratorske privilegije na router-u HG520s dovoljno je da se ulogujete koristeci username

admin

i password

ztonpk

Detaljnije informacije i tutorijale o prosleđivanju portova na pomenutom modelu router-a možete pogledati na http://www.portforward.com/english/routers/port_forwarding/Huawei/EchoLife-HG520s/EchoLife-HG520sindex.htm.

Drupal logout under site-maintenance offline

Dragan Eror's picture

This is my solution. Update site status directly in database. Please copy/paste next MySQL queries into terminal or into phpMyAdmin's SQL Query window!

First to do:

UPDATE variable SET value = 's:1:"0";' WHERE name= 'site_offline';

Second to do:

DELETE FROM cache WHERE cid = 'variables';

After that your Drupal website is back online and you can Administrating again ;)

You're settling for good when there's awesome.  Upgrade to Firefox 3.5!