yum install mlocate
yum install diffutils.i386
yum -y install pcre-devel
yum install php-devel.i386
ntpdate step-systime: Operation not permitted in a XEN VPS
Leave a comment | Filed under Drupal Linuxecho 1 > /proc/sys/xen/independent_wallclock
ntpdate -b pool.ntp.org
Should detaching from the wallclock resolve this issue, you can make this change permanent by adding the following line to your “/etc/sysctl.conf” file:
xen.independent_wallclock=1
Thanks to Danny@linode
drupal views 2 theming: access other fields value in your field template
Leave a comment | Filed under Drupalif you need access other fields in your field template, you can access them by
<?
echo $row->{$view->field['FIELD_ID']->field_alias};
?>
You will be able to add some logic to your template like
<?
if($row->{$view->field[field_B_value]->field_alias})
{
echo $output ;
}
else
{
echo “B is not available”;
}
?>
Note the ‘FIELD_ID’ can be something different depending on the field type. it can be “field_B_nid” (if it is node reference), or “field_B_value” [...]
Windows 2003 Server can not access SharePoint Webdav Folder by UNC
Leave a comment | Filed under SharePointWindows 2003 server has service “WebClient” disabled by default.
This service has to be on in order to access “File Share” by SharePoint Webdav. Below are the procedures to enable this service.
1. Login to the server with administrator account. Click Start–>Run, type in services.msc, press enter.
2. Locate the service called “WebClient”, Double click this service. The [...]
use the following before you start your query
mysql_query(“SET CHARACTER SET utf8″, $connection);
http://www.cyberciti.biz/tips/force-iptables-to-log-messages-to-a-different-log-file.html
According to man page:
Iptables is used to set up, maintain, and inspect the tables of IP packet filter rules in the Linux kernel. Several different tables may be defined. Each table contains a number of built-in chains and may also contain user defined chains.
By default, Iptables log message to a /var/log/messages file. However you can [...]
SharePoint Prompts Login when Opening a XLSX file on a Publishing Site
Leave a comment | Filed under SharePointSolution:
Edit the file “serverfilesExcelServer.xml” under C:\Program Files\Common Files\Microsoft Shared\Web Server Extensions\12\TEMPLATE\XML
Comments this line:
<Mapping FileExtension=”xlsx” RedirectUrlTemplate= “/_layouts/xlviewer.aspx?id=|0″ NoGetRedirect=”TRUE”/>