XinSpace

SharePoint, Drupal and Other Random Notes

yum install mlocate

yum install diffutils.i386

Tagged with

yum -y install pcre-devel

Tagged with

yum install php-devel.i386

Tagged with

echo 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

Tagged with , ,

if 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” [...]

Tagged with , ,

Windows 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);

Tagged with ,

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 [...]

Solution:
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”/>