Smarty error with Google Analytics

The error appears after modifing a page and load it for the first time.
If the analytics tracking code removed from the template (*.tpl), the error does not appear.

Solution:

wrap around your js code with {literal} {/literal}

Example:

Read more

Use .htaccess to Deny Access Directory Listing

Don’t have an index in all your directory’s? Many people create a blank index.html file in every directory to prevent directory listing. It’s ok for a small website, but imagine if you have a website that has hundred or thousand directories. The easiest way is to write a htaccess file, include the following line in your .htaccess file to deny access to all the directory listings, if there is no index file.

Options -Indexes

Changing default gateway on MS Windows using command line

Despite the fact this post is quite fat from Ubuntu or Linux I decided to puclish it here as find this usefull and sometimes neccessary.

So here we are on how to update default gateway using command line:

netsh interface ip add address “local area connection” gateway=100.1.1.5
gwmetric=2

How To search for an string in a file using grep

grep searches the input files for lines containing a match to a given pattern list. When it finds a match in a line, it copies the line to standard output (by default), or does whatever other sort of output you have requested with options.

grep can simply be invoked: $ grep ‘STRING’ filename

Read more

Setting the Date and Time in Linux

Run the date command to make sure you have the correct time:

[root@server /root]# date
Thu Sep 20 11:00:06 CDT 2001
[root@server /root]#

If your timezone is correct but the date and/or time needs updating, the following commands will update the date and time. The second command is needed in order to push the date and time into the PC clock.

[root@server /root]# date 092011082001
Thu Sep 20 11:08:00 CDT 2001
[root@server /root]# hwclock --utc --systohc
[root@server /root]#

Free Wordpress themes and Hidden code

If you are using a free wordpress theme, make sure that the footer does not contain hidden code. I’ll show you how to find and unhide that hidden code below, something that many people starting out with Wordpress miss. Such a mistake can have you linking to bad link partners which can cause your site to never rank well with the search engines.

You are who you hang around with, at least that is the way it is on the internet. If your site is on Green Tea and you keep linking to mountain dew, then your site is considered to be about dew, not tea to most search engines.

If you have a site that links to websites considered bad by search engines, you will be penalized and may not recover for years – at that point, you might as well start another site. Read more

XMMS on Ubuntu

I’ve finally got new hdd for my laptop. So I decided to dedicate myself on getting to know more about Desktop version of Ubuntu. Latest copy was installed successfully without any troubles except driver for Nvidia. But that was easily solved by downloading and installing latest driver.

Read more

3 Things in Linux you should NOT Install

While I’m all for promoting the use of Linux and software on Linux, unless you absolutely know what you’re doing, there are certain things you should not install. Entirely too often, I see people on LinuxQuestions.org asking how to configure one of these or why they will not work. So, in no particular order, 3 Things you should NOT Install: Read more

Linux file permissions

The basics of file ownership and permissions on Linux. Learn to understand who are the owners of a file or directory, how the file permissions work and how you can view them, and learn how to set basic file permissions yourself.

Read more

How to change a file’s owner and group in Linux

< chown – change the owner of a file >

You can change the owner and group of a file or a directory with the chown command. Please, keep in mind you can do this only if you are the root user or the owner of the file.

Set the file’s owner:
$ chown username somefile
After giving this command, the new owner of a file called somefile will be the user username. The file’s group owner will not change. Instead of a user name, you can also give the user’s numeric ID here if you want.
Read more

keep looking »



Directory of Computers/Tech Blogs Software