Latest Publications

PhpList 2.10.10 Greek Support UTF-8

Well this is how you can set up a greek phplist installation to send greek newsletters:

  1. First of all open texts/greek.inc and change the $strCharSet  to  ‘utf-8′;
  2. Then save the file as UTF-8 nobom
  3. Open admin/send_core.php and find the lines
  4. line 1034 change .htmlentities(iconv(’ISO-8859-1′,’UTF-8′,$subject),ENT_QUOTES,’UTF-8′) to .htmlentities($subject,ENT_QUOTES,’UTF-8′)
  5. Line 1040 change htmlentities(iconv(’ISO-8859-1′,’UTF-8′,$from),ENT_QUOTES,’UTF-8′) to htmlentities($from,ENT_QUOTES,’UTF-8′)

That’s it all done your emails will be saved and send with the correct character set. Enjoy


Bookmark and Share

Biznet Infoservices Ltd

Install SSHFS on CentOS 5.2

Many of you probably tried to install sshfs on a centos operating system but had no luck with yum or build from source cause of strange message saying that

checking for SSHFS… configure: error: The pkg-config script could not be found or is too old.  Make sure it is in your PATH or set the PKG_CONFIG environment variable to the full path to pkg-config.

The simple and quick method is the following. Please chech the versions for future releases. Run everything as root

# cd ~

# wget http://downloads.sourceforge.net/project/fuse/fuse-2.X/2.8.1/fuse-2.8.1.tar.gz?use_mirror=garr

# wget http://downloads.sourceforge.net/project/fuse/sshfs-fuse/2.2/sshfs-fuse-2.2.tar.gz?use_mirror=garr

# yum install gcc glib2-devel

# tar zxf fuse-2.8.1.tar.gz && cd fuse-2.8.1

#./configure && make && make install

# tar zxf sshfs-fuse-2.2.tar.gz && cd sshfs-fuse-2.2

#./configure && make && make install

One more step to be able to use fuse

# echo “/usr/local/lib” >> /etc/ld.so.conf

# ldconfig

and you are done!

Enjoy!


Bookmark and Share

Biznet Infoservices Ltd

Flush DNS cache in Leopard

There is something in leopard and all operating systems that bothered me since i started playing around with ip’s and generaly started being a system admin. How do i flush quick and dirty my machines dns query cache without restarting my network connections? Well in other systems dont know yet, but in leopard i found this great terminal command/application:

DSCACHEUTIL

Take a look at the first rows in man

dscacheutil(1)            BSD General Commands Manual           dscacheutil(1)

NAME
dscacheutil — gather information, statistics and initiate queries to the Directory Service
cache.

SYNOPSIS
dscacheutil -h
dscacheutil -q category [-a key value]
dscacheutil -cachedump [-buckets] [-entries [category]]
dscacheutil -configuration
dscacheutil -flushcache
dscacheutil -statistics

DESCRIPTION
dscacheutil does various operations against the Directory Service cache including gathering
statistics, initiating lookups, inspection, cache flush, etc.  This tool replaces most of the
functionality of the lookupd tool previously available in the OS.

Well if you ever need to flash you dns queries just do:

$ sudo dscacheutil -flushcache


Bookmark and Share

Biznet Infoservices Ltd