<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>①nline promoters™ &#187; Online Promoters :: </title>
	<atom:link href="http://online.promoters.ro/feed" rel="self" type="application/rss+xml" />
	<link>http://online.promoters.ro</link>
	<description>Online Promoters™ :: Web Development made simple</description>
	<lastBuildDate>Sat, 18 Feb 2012 17:55:03 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Named Bind SELinux error: dumping master file: tmp-xxx: open: permission denied</title>
		<link>http://online.promoters.ro/web-design-development/named-bind-selinux-error-dumping-master-file-tmp-xxx-open-permission-denied.html</link>
		<comments>http://online.promoters.ro/web-design-development/named-bind-selinux-error-dumping-master-file-tmp-xxx-open-permission-denied.html#comments</comments>
		<pubDate>Fri, 13 Jan 2012 18:41:43 +0000</pubDate>
		<dc:creator>Mr. Fülöp - Online Promoters</dc:creator>
				<category><![CDATA[named-bind-selinux]]></category>

		<guid isPermaLink="false">http://online.promoters.ro/?p=1559</guid>
		<description><![CDATA[When configuring DNS servers running BIND (named), on a slave server you might encounter the following error when the slave is trying to update its zones from the master server: named[25319]: zone tlthost.net/IN: Transfer started. named[25319]: transfer of 'tlthost.net/IN' from 192.168.xx.xxx#53: connected using 192.168.xx.xxx#59827 named[25319]: dumping master file: tmp-NrfJj6zM6s: open: permission denied named[25319]: transfer of [...]]]></description>
			<content:encoded><![CDATA[<p>When configuring DNS servers running BIND (named), on a slave server you might encounter the following error when the slave is trying to update its zones from the master server:<br />
<code><br />
named[25319]: zone tlthost.net/IN: Transfer started.<br />
named[25319]: transfer of 'tlthost.net/IN' from 192.168.xx.xxx#53: connected using 192.168.xx.xxx#59827<br />
<strong>named[25319]: dumping master file: tmp-NrfJj6zM6s: open: permission denied</strong><br />
named[25319]: transfer of 'tlthost.net/IN' from 192.168.xx.xxx#53: failed while receiving responses: permission denied<br />
named[25319]: transfer of 'tlthost.net/IN' from 192.168.xx.xxx#53: end of transfer<br />
</code><br />
Assuming that your named folders and files have the proper ownership and permissions, usually: named named and 770, you might want to check your SELinux status. If you made a fresh install you should have all the proper permission by default excepting those of the custom folders that you might have.</p>
<p>Perhaps you have copied some configuration files from another system and those files have not been yet &#8220;indexed&#8221; (relabeled) by SELinux. In this case SELinux is assuming them as &#8220;alien&#8221; files and thus the resulting error.</p>
<p><strong>Disabling SELinux IS NOT AN OPTION! You should solve the issues that prevents your linux system from working properly, WITHOUT DISABLING SELinux.</strong></p>
<p>Relabel the systemfile at boot time:</p>
<pre><strong>[root@linux hack]# </strong>touch /.autorelabel &amp;&amp; reboot</pre>
<p>SELinux can be disabled completely at bootup by passing selinux=0 to the kernel command line. This will completely disable SELinux until a reboot, and you will need to relabel files when rebooting to ensure proper operation.</p>
<p>If you cannot afford a reboot then take a look at the SElinux fixfiles command:</p>
<pre><strong>[root@linux hack]# </strong>/sbin/fixfiles check</pre>
<p>fixfiles can be used to relabel the entire filesystem based on the current policy, or to relabel a packaged application’s files based on the information included in that application’s rpm package.</p>
<p>A better alternative for temporarily disabling SELinux is to put the system into permissive mode. Permissive mode will log actions that would have been denied, but will not actually deny them. This contrasts with the normal enforcing mode that will actively deny access to actions not explicitly allowed by the currently running policy.<br />
To put the system into permissive mode, issue the command setenforce 0 while in the sysadm_r role or pass enforcing=0 to the kernel command line at bootup. To resume enforcing mode, issue the command setenforce 1. Issuing the command <strong>getenforce</strong> will return the mode SELinux is running currently.<br />
SELinux modes can also be set by editing the SELinux config file located at /etc/selinux/config. The SELINUX= line can be set to enforcing, permissive, or disabled, and will take effect upon the next reboot.</p>
<p>SELinux status:</p>
<pre><strong>[root@linux hack]# </strong>[root@linux hack]# cat /selinux/enforce</pre>
<p>Enable SELinux:</p>
<pre><strong>[root@linux hack]# </strong>echo 1 &gt; /selinux/enforce</pre>
<p>Disable SELinux:</p>
<pre><strong>[root@linux hack]# </strong>echo 0 &gt; /selinux/enforce</pre>
<p>Further reading about SELinux Administration can be found here: <a title="SELinux Administration" href="http://bit.ly/AkNz75" rel="nofollow" target="_blank">http://bit.ly/AkNz75</a> here: <a title="SELinux Explained" href="http://bit.ly/xMTj4Q" target="_blank" rel="nofollow">http://bit.ly/AzFiTA</a> nd here: <a title="SELinux Manual" href="http://bit.ly/AzFiTA" target="_blank" rel="nofollow">http://bit.ly/AzFiTA</a></p>
]]></content:encoded>
			<wfw:commentRss>http://online.promoters.ro/web-design-development/named-bind-selinux-error-dumping-master-file-tmp-xxx-open-permission-denied.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>XenServer: Use graphic card 3D in VM &#8211; Mapping the GPU to a VM</title>
		<link>http://online.promoters.ro/web-design-development/xenserver-use-graphic-card-3d-in-vm-mapping-the-gpu-to-a-vm.html</link>
		<comments>http://online.promoters.ro/web-design-development/xenserver-use-graphic-card-3d-in-vm-mapping-the-gpu-to-a-vm.html#comments</comments>
		<pubDate>Wed, 28 Dec 2011 14:49:21 +0000</pubDate>
		<dc:creator>Mr. Fülöp - Online Promoters</dc:creator>
				<category><![CDATA[XenServer]]></category>

		<guid isPermaLink="false">http://online.promoters.ro/?p=1553</guid>
		<description><![CDATA[Mapping the GPU to a VM This section explains how to use GPU Passthrough to assign a PCI graphics card to a guest operating system. The following is a detailed step-by-step guide for XenServer, provided that your system meets the hardware and firmware requirements described above. Enable IOMMU on the host. Edit “/boot/extlinux.conf” and add [...]]]></description>
			<content:encoded><![CDATA[<p><strong><strong>Mapping the GPU to a VM</strong></strong></p>
<p>This section explains how to use GPU Passthrough to assign a PCI graphics card to a guest operating system.</p>
<p>The following is a detailed step-by-step guide for XenServer, provided that your system meets the hardware and firmware requirements described above.</p>
<div>
<ul>
<li value="1">Enable IOMMU on the host.<br />
Edit “/boot/extlinux.conf” and add<strong><br />
iommu=1 iommu_inclusive_mapping=1 </strong>right after all the instances of /boot/xen.gz<br />
As an example a line with those options looks like this:<strong><br />
append /boot/xen.gz iommu=1 iommu_inclusive_mapping=1 com1=115200,8n1 console=com1,vga dom0_mem=752M lowmem_emergency_pool=1M crashkernel=64M@32M &#8212; /boot/vmlinuz-2.6-xen root=LABEL=root-rqrdbtjz ro console=tty0 xencons=hvc console=hvc0 &#8212; /boot/initrd-2.6-xen.img</strong></li>
</ul>
</div>
<div>
<ul>
<li value="2">Regenerate the bootloader executing: <strong>extlinux /boot</strong></li>
</ul>
</div>
<div>
<ul>
<li value="3">Run the following command as root on the XenServer host:<strong><br />
echo ‘modprobe pciback’ &gt;&gt; /etc/rc.local</strong></li>
</ul>
</div>
<div>
<ul>
<li value="4">Reboot the XenServer host:<br />
Check if &#8216;pciback&#8217; module is loaded in dom0 using<strong><br />
#lsmod | grep pciback</strong>If it is not loaded then use following command to load &#8216;pciback&#8217;<strong><br />
#modprobe pciback</strong></p>
<p>To verify if &#8216;pciback&#8217; is successfully loaded use following command<strong><br />
#lsmod | grep pciback</strong></p>
<p>It should show the output like below<strong><br />
pciback     37768 0</strong></li>
</ul>
</div>
<div>
<ul>
<li value="5">Assign a PCI graphics card to a virtual machine. Get a list of PCI devices in the system executing <strong>lspci</strong>. You should see one or more devices like this: <strong><br />
02:00.0 VGA compatible controller: nVidia Corporation GT200GL [NVIDIA Quadro FX 3800] (rev a1)</strong></li>
</ul>
</div>
<div>
<ul>
<li value="6">Assign one of them to a virtual machine executing the following command: <strong><br />
xe vm-param-set other-config:pci=0/0000:02:00.0 uuid=uuid_of_the_VM</strong><br />
where 02:00.0 is the PCI bus address of the graphics card you want to assign<br />
Use the command <strong>xe vm-list</strong> to get the uuid of the virtual machine.</li>
</ul>
</div>
<div>
<ul>
<li value="7">Boot the virtual machine and install the correct driver for the new device. NVIDIA Display Adapter should be seen in Computer Management &gt; Device Manager &gt; Display Adapter which indicates that the GPU direct mapping is successful.</li>
</ul>
</div>
<div>
<ul>
<li value="8">Install XenDesktop Virtual Desktop Agent followed by HDX 3D Pro Graphics on the virtual machine.</li>
</ul>
<p><a href="http://support.citrix.com/article/CTX125574" rel="nofollow">Source</a></p>
</div>
]]></content:encoded>
			<wfw:commentRss>http://online.promoters.ro/web-design-development/xenserver-use-graphic-card-3d-in-vm-mapping-the-gpu-to-a-vm.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>XenServer: Import Failed when importing hard drive image vhd vmdk with XenCenter</title>
		<link>http://online.promoters.ro/web-design-development/xenserver-import-failed-when-importing-hard-drive-image-vhd-vmdk-with-xencenter.html</link>
		<comments>http://online.promoters.ro/web-design-development/xenserver-import-failed-when-importing-hard-drive-image-vhd-vmdk-with-xencenter.html#comments</comments>
		<pubDate>Mon, 26 Dec 2011 22:46:19 +0000</pubDate>
		<dc:creator>Mr. Fülöp - Online Promoters</dc:creator>
				<category><![CDATA[XenServer]]></category>
		<category><![CDATA[virtual hard drive]]></category>
		<category><![CDATA[virtualization]]></category>
		<category><![CDATA[xencenter]]></category>
		<category><![CDATA[xenserver]]></category>

		<guid isPermaLink="false">http://online.promoters.ro/?p=1543</guid>
		<description><![CDATA[If you want to import a virtual hard drive image or package (vmdk, vhd, ofv, ova etc) to XenServer using XenCenter you might encounter an error which says nothing but: IMPORT FAILED ! After a lot of research and reading I found that you NEED to HAVE INSTALLED a Virtual Machine which actually handles the transfer and which [...]]]></description>
			<content:encoded><![CDATA[<p>If you want to import a virtual hard drive image or package (vmdk, vhd, ofv, ova etc) to XenServer using XenCenter you might encounter an error which says nothing but:<strong> IMPORT FAILED !</strong><br />
After a lot of research and reading I found that you <strong>NEED</strong> to <strong>HAVE INSTALLED</strong> a Virtual Machine which actually handles the transfer and which is not installed by default. There is a bash script that comes with XenServer called <strong>TransferVM which you should run in order to install this Transfer Virtual Machine.</strong></p>
<p>How to solve:</p>
<p>-<strong> Log in to your host (XenServer)</strong> using the console or ssh;<br />
<code><strong>[root@xenserver]#</strong> cd /opt/xensource/packages/files/transfer-vm</strong><br />
<strong>[root@xenserver]# ls -l</strong><br />
total 3684<br />
-rw-r--r-- 1 root root 134 May 20 2010 65-install-transfer-vm<br />
-rwxr-xr-x 1 root root 478 May 20 2010 do-copy<br />
-rwxr-xr-x 1 root root 613 May 20 2010 do-transfer<br />
-rwxr-xr-x 1 root root 1784 May 20 2010 install-transfer-vm.sh<br />
-rw-r--r-- 1 root root 3747840 May 20 2010 transfer-vm.xva<br />
-rwxr-xr-x 1 root root 491 May 20 2010 uninstall-transfer-vm.sh<br />
<strong>[root@xenserver]# ./install-transfer-vm.sh script</strong><br />
Importing XenServer Transfer VM... done.<br />
</code></p>
<p>Now you can go back to XenCenter and start your virtual hard drive image Import.<br />
Further explanations and troubleshooting can be found <a style="text-decoration: underline;" href="http://blogs.citrix.com/2010/12/09/diagnosing-xenserver-appliance-wizard-failures/" rel="nofollow">here</a> .</p>
]]></content:encoded>
			<wfw:commentRss>http://online.promoters.ro/web-design-development/xenserver-import-failed-when-importing-hard-drive-image-vhd-vmdk-with-xencenter.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Cannot boot Cd-rom or other removable devices (USB) after bios upgrade</title>
		<link>http://online.promoters.ro/web-design-development/cannot-boot-cd-rom-or-other-removable-devices-usb-after-bios-upgrade.html</link>
		<comments>http://online.promoters.ro/web-design-development/cannot-boot-cd-rom-or-other-removable-devices-usb-after-bios-upgrade.html#comments</comments>
		<pubDate>Sat, 26 Nov 2011 14:17:43 +0000</pubDate>
		<dc:creator>Mr. Fülöp - Online Promoters</dc:creator>
				<category><![CDATA[BIOS]]></category>

		<guid isPermaLink="false">http://online.promoters.ro/?p=1532</guid>
		<description><![CDATA[You may find yourself in a situation when after a bios upgrade (rewriting of the bios firmware) your system won&#8217;t recognize your cd-rom or other removable devices like Usb sticks. Some bioses retain the configuration after upgrading them some won&#8217;t and will require you to reconfigure the bios. I strongly suggest that after any bios [...]]]></description>
			<content:encoded><![CDATA[<p>You may find yourself in a situation when after a bios upgrade (rewriting of the bios firmware) your system won&#8217;t recognize your cd-rom or other removable devices like Usb sticks.<br />
Some bioses retain the configuration after upgrading them some won&#8217;t and will require you to reconfigure the bios.<br />
I strongly suggest that after any bios upgrade you clear the CMOS. This means that you will clear all the values which remained saved from the previous bios. After clearing the CMOS you will have to reconfigure your BIOS. Usually it should work fine with default values so for the usual user BIOS reconfiguration is not a must.</p>
<blockquote><p><strong>Clear the CMOS after bios upgrade</strong> and your new bios should now recognize your cd-rom and other removable media like usb.</p></blockquote>
]]></content:encoded>
			<wfw:commentRss>http://online.promoters.ro/web-design-development/cannot-boot-cd-rom-or-other-removable-devices-usb-after-bios-upgrade.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Linux basic network configuration tools</title>
		<link>http://online.promoters.ro/web-design-development/linux-basic-network-configuration-tools.html</link>
		<comments>http://online.promoters.ro/web-design-development/linux-basic-network-configuration-tools.html#comments</comments>
		<pubDate>Thu, 24 Nov 2011 14:06:03 +0000</pubDate>
		<dc:creator>Mr. Fülöp - Online Promoters</dc:creator>
				<category><![CDATA[Networking]]></category>

		<guid isPermaLink="false">http://online.promoters.ro/?p=1527</guid>
		<description><![CDATA[Linux basic network configuration tools Here are some network configuration tools (depending on your system you might not have some of them) Check their availabillity with the whereis command, ex: [root@linux hack]# whereis netconf netconf A GUI interactive interface available on Redhat 6.1 linuxconf A GUI interactive interface available on Redhat 6.1 which includes netconf [...]]]></description>
			<content:encoded><![CDATA[<h3>Linux basic network configuration tools</h3>
<p>Here are some network configuration tools (depending on your system you might not have some of them)</p>
<p>Check their availabillity with the <strong>whereis</strong> command, ex:<br />
<strong>[root@linux hack]#</strong> <strong>whereis netconf</strong></p>
<table>
<tbody>
<tr>
<td nowrap="nowrap">netconf</td>
<td width="10"></td>
<td>A GUI interactive interface available on Redhat 6.1</td>
</tr>
<tr>
<td nowrap="nowrap">linuxconf</td>
<td width="10"></td>
<td>A GUI interactive interface available on Redhat 6.1 which includes netconf configuration.</td>
</tr>
<tr>
<td nowrap="nowrap">netconfig</td>
<td width="10"></td>
<td>A GUI step by step interface</td>
</tr>
<tr>
<td nowrap="nowrap">ifconfig</td>
<td width="10"></td>
<td>A text based program to configure the network interface. Type &#8220;man ifconfig&#8221; for info.</td>
</tr>
</tbody>
</table>
<p>These programs will modify values in the following files:</p>
<ul>
<li>/etc/sysconfig/network &#8211; Defines your network and some of its characteristics.</li>
<li>/etc/HOSTNAME &#8211; Shows the host name of this host. IF your name is &#8220;myhost&#8221; then that is exactly the text this file will contain.</li>
<li>/etc/resolv.conf &#8211; Specifies the domain to be searched for host names to connect to, the nameserver address, and the search order for the nameservers.</li>
<li>/etc/host.conf &#8211; Specifies the order nameservice looks to resolve names.</li>
<li>/etc/hosts &#8211; Shows addresses and names of local hosts.</li>
<li>/etc/networks &#8211; Provides a database of network names with network addresses similar to the /etc/hosts file. This file is not required for operation.</li>
<li>/etc/sysconfig/network-scripts/ifcfg-eth* &#8211; There is a file for each network interface. This file contains the IP address of the interface and many other setup variables.</li>
</ul>
<h3>Analysis Tools</h3>
<ul>
<li>netstat &#8211; Displays information about the systems network connections, including port connections, routing tables, and more. The command &#8220;netstar -r&#8221; will display the routing table.</li>
<li>traceroute &#8211; This command can be used to determine the network route from your computer to some other computer on your network or the internet. To use it you can type &#8220;route IPaddress&#8221; of the computer you want to see the route to.</li>
<li>nslookup &#8211; Used to query DNS servers for information about hosts.</li>
<li>arp &#8211; This program lets the user read or modify their arp cache.</li>
<li>tcpdump &#8211; This program allows the user to see TCP traffic on their network.</li>
<li>dig(1) &#8211; Send domain name query packets to name servers for debugging or testing.</li>
</ul>
<p><small><br />
source: <a title="source" rel="nofollow" href="http://www.comptechdoc.org/os/linux/usersguide/linux_ugbasicnet.html" target="_blank">http://www.comptechdoc.org/os/linux/usersguide/linux_ugbasicnet.html</a></small></p>
]]></content:encoded>
			<wfw:commentRss>http://online.promoters.ro/web-design-development/linux-basic-network-configuration-tools.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>RTNETLINK answers: Invalid argument</title>
		<link>http://online.promoters.ro/web-design-development/rtnetlink-answers-invalid-argument.html</link>
		<comments>http://online.promoters.ro/web-design-development/rtnetlink-answers-invalid-argument.html#comments</comments>
		<pubDate>Thu, 24 Nov 2011 13:52:09 +0000</pubDate>
		<dc:creator>Mr. Fülöp - Online Promoters</dc:creator>
				<category><![CDATA[Networking]]></category>

		<guid isPermaLink="false">http://online.promoters.ro/?p=1521</guid>
		<description><![CDATA[While setting up the network in a linux environment you may encounter this error: RTNETLINK answers: Invalid argument First check your /etc/sysconfig/network-scripts/ifcfg-ethX script &#8230; For more linux networking commands check this post. If you use static IP addressing you might want to check out the following commands: - check out the network adapters: [root@linux hack]# /sbin/ifconfig [...]]]></description>
			<content:encoded><![CDATA[<p>While setting up the network in a linux environment you may encounter this error: RTNETLINK answers: Invalid argument<br />
First check your <strong>/etc/sysconfig/network-scripts/ifcfg-ethX</strong> script &#8230;<br />
For more linux networking commands check <a title="Linux networking tools" rel="nofollow" href="/?p=1527" target="_blank">this post</a>.<br />
If you use static IP addressing you might want to check out the following commands:<br />
- check out the network adapters:<br />
<code><strong>[root@linux hack]# </strong><strong>/sbin/ifconfig</strong></code><br />
- Use Linux &#8216;<strong>netstat</strong>&#8216; command to display or view kernel IP routing table:<br />
<code><strong>[root@linux hack]# </strong><strong>netstat -r</strong></code><br />
- The route add command below show the example to add network and host to the routing table.</p>
<p><code><strong>[root@linux hack]# </strong><strong>route add -net 10.1.0.0 netmask 255.255.0.0 gw 10.2.0.1 eth0</strong><br />
<strong>[root@linux hack]# </strong><strong>route add -host 10.10.0.5 netmask 255.255.0.0 gw 10.2.0.1 eth0</strong></code></p>
<p>- Adding a default route by using route command.</p>
<p><code><strong>[root@linux hack]# </strong><strong>route add default gw 10.10.0.1 eth0</strong></code></p>
<p>If you use dhcp (dhcpclient) and encounter the error in discussion then you might want to check your dhcpserver configuration and also the ip class(subnet) allocation. If you have not properly configured the dhcp server so that it serves the right broadcast address and gateway you will encounter the error.<br />
Here is an <a title="Ip calculator" href="http://jodies.de/ipcalc" rel="nofollow" target="_blank">IP calculator</a> that is very helpful &#8230;</p>
<p><small>some info from:  <a href="http://www.labtestproject.com/linnet/routing.html" rel="nofollow">http://www.labtestproject.com/linnet/routing.html</a></small></p>
]]></content:encoded>
			<wfw:commentRss>http://online.promoters.ro/web-design-development/rtnetlink-answers-invalid-argument.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>DDR  DDR 2  DDR 3 SO DIMM</title>
		<link>http://online.promoters.ro/web-design-development/ddr-ddr-2-ddr-3-so-dimm.html</link>
		<comments>http://online.promoters.ro/web-design-development/ddr-ddr-2-ddr-3-so-dimm.html#comments</comments>
		<pubDate>Thu, 13 Oct 2011 14:47:12 +0000</pubDate>
		<dc:creator>Mr. Fülöp - Online Promoters</dc:creator>
				<category><![CDATA[Memory]]></category>
		<category><![CDATA[hardware]]></category>

		<guid isPermaLink="false">http://online.promoters.ro/?p=1517</guid>
		<description><![CDATA[Q: Are DDR and DDR2 SODIMM memory modules compatible? A: No. DDR2 memory modules have basically the same dimensions as the DDR modules, but because of different voltages and pin configurations, DDR2 modules have a different &#8220;key&#8221; or notch in their connector to prevent them from being plugged into an incompatible socket. DDR2 memory modules will only [...]]]></description>
			<content:encoded><![CDATA[<p><strong>Q: </strong>Are DDR and DDR2 SODIMM memory modules compatible?</p>
<p><strong>A: </strong>No. DDR2 memory modules have basically the same dimensions as the DDR modules, but because of different voltages and pin configurations, DDR2 modules have a different &#8220;key&#8221; or notch in their connector to prevent them from being plugged into an incompatible socket. DDR2 memory modules will only fit in systems and motherboards designed to specifically support DDR2 memory. A DDR2 SODIMM will not fit in the DDR memory slot.</p>
]]></content:encoded>
			<wfw:commentRss>http://online.promoters.ro/web-design-development/ddr-ddr-2-ddr-3-so-dimm.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Blank screen in Code Igniter &#8211; CI &#8211; after upgrade &#8211; 5.2.6 PHP server [SOLVED]</title>
		<link>http://online.promoters.ro/web-design-development/blank-screen-in-code-igniter-ci-after-upgrade-5-2-6-php-server-solved.html</link>
		<comments>http://online.promoters.ro/web-design-development/blank-screen-in-code-igniter-ci-after-upgrade-5-2-6-php-server-solved.html#comments</comments>
		<pubDate>Tue, 27 Sep 2011 17:18:42 +0000</pubDate>
		<dc:creator>Mr. Fülöp - Online Promoters</dc:creator>
				<category><![CDATA[Code igniter]]></category>

		<guid isPermaLink="false">http://online.promoters.ro/?p=1443</guid>
		<description><![CDATA[If you are a Code Igniter developer and you are using PHP 5.2.6 you might be interested in this post. Getting a blank screen can mean a LOT of things. In an particular scenario while running PHP 5.2.6 (on a Windows machine) when installing/upgrading to Code Igniter 2.0.3 you get a blank screen. This happens [...]]]></description>
			<content:encoded><![CDATA[<p>If you are a Code Igniter developer and you are using PHP 5.2.6 you might be interested in this post. Getting a blank screen can mean a LOT of things. In an particular scenario while running PHP 5.2.6 (on a Windows machine) when installing/upgrading to Code Igniter 2.0.3 you get a blank screen. This happens because the current version of PHP does not support a function and the error is suppressed by @ sign. Supposedly this function was added after PHP 5.2.3 was released, but this error was found on a server running PHP 5.2.6.</p>
<p><strong>[SOLUTION]</strong><br />
In your &#8220;system&#8221; folder from your CI core files edit this file /database/drivers/msyql/<strong>mysql_driver.php</strong>, in line 125, by replacing the function &#8220;db_set_charset&#8221; with the following one.</p>
<pre class="brush: php; title: ; notranslate">
	/**
	 * Set client character set
	 *
	 * @access	public
	 * @param	string
	 * @param	string
	 * @return	resource
	 */
	function db_set_charset($charset, $collation)
	{
		static $use_set_names;

		if ( ! isset($use_set_names))
		{
			// mysql_set_charset() requires PHP &amp;amp;gt;= 5.2.3 and MySQL &amp;amp;gt;= 5.0.7, use SET NAMES as fallback
			$use_set_names = (version_compare(PHP_VERSION, '5.2.3', '&amp;amp;gt;=') &amp;amp;amp;&amp;amp;amp; version_compare(mysql_get_server_info(), '5.0.7', '&amp;amp;gt;=')) ? FALSE : TRUE;
		}

		if ($use_set_names)
		{
        // not supported on some servers (i.e. mediatemple)!
        if(function_exists('mysql_set_charset'))
            return mysql_set_charset($charset, $this-&amp;amp;gt;conn_id);
        else
            return @mysql_query(&amp;amp;quot;SET NAMES '&amp;amp;quot;.$this-&amp;amp;gt;escape_str($charset).&amp;amp;quot;' COLLATE '&amp;amp;quot;.$this-&amp;amp;gt;escape_str($collation).&amp;amp;quot;'&amp;amp;quot;, $this-&amp;amp;gt;conn_id);
		}
	}
</pre>
<p><strong>This should get you going!</strong></p>
<p>Source: <a title="Blank page Code Igniter 2.0 mysql driver" href="https://github.com/EllisLab/CodeIgniter/issues/352" rel="nofollow" target="_blank">Code Igniter forum</a></p>
]]></content:encoded>
			<wfw:commentRss>http://online.promoters.ro/web-design-development/blank-screen-in-code-igniter-ci-after-upgrade-5-2-6-php-server-solved.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Where is the wordpress.com API key located?</title>
		<link>http://online.promoters.ro/web-design-development/where-is-the-wordpress-com-api-key-located.html</link>
		<comments>http://online.promoters.ro/web-design-development/where-is-the-wordpress-com-api-key-located.html#comments</comments>
		<pubDate>Mon, 05 Sep 2011 21:04:24 +0000</pubDate>
		<dc:creator>Mr. Fülöp - Online Promoters</dc:creator>
				<category><![CDATA[Wordpress]]></category>

		<guid isPermaLink="false">http://online.promoters.ro/?p=1433</guid>
		<description><![CDATA[Find out where is the wordpress.com API key located. If you have a wordpress.com account just login and follow this link: http://apikey.wordpress.com/]]></description>
			<content:encoded><![CDATA[<h1>Find out where is the wordpress.com API key located.</h1>
<p>If you have a wordpress.com account just login and follow this link:</p>
<p><a title="Wordpress.com API Key location" href="http://apikey.wordpress.com/" target="_blank" rel="nofollow">http://apikey.wordpress.com/</a></p>
]]></content:encoded>
			<wfw:commentRss>http://online.promoters.ro/web-design-development/where-is-the-wordpress-com-api-key-located.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>MySQL CURDATE() and NOW() vs. PHP date() &#8211; heavy server load</title>
		<link>http://online.promoters.ro/web-design-development/mysql-curdate-and-now-vs-php-date-heavy-server-load.html</link>
		<comments>http://online.promoters.ro/web-design-development/mysql-curdate-and-now-vs-php-date-heavy-server-load.html#comments</comments>
		<pubDate>Wed, 01 Jun 2011 12:28:46 +0000</pubDate>
		<dc:creator>Mr. Fülöp - Online Promoters</dc:creator>
				<category><![CDATA[PHP - MySQL - HTML]]></category>
		<category><![CDATA[conclusion]]></category>
		<category><![CDATA[date function]]></category>
		<category><![CDATA[datex]]></category>
		<category><![CDATA[dd]]></category>
		<category><![CDATA[language php]]></category>
		<category><![CDATA[mysql curdate function]]></category>
		<category><![CDATA[mysql table]]></category>
		<category><![CDATA[native mysql]]></category>
		<category><![CDATA[now]]></category>
		<category><![CDATA[online]]></category>
		<category><![CDATA[online promoters]]></category>
		<category><![CDATA[php date]]></category>
		<category><![CDATA[promoters]]></category>
		<category><![CDATA[server load]]></category>
		<category><![CDATA[yyyy]]></category>

		<guid isPermaLink="false">http://fulop.wordpress.com/?p=1115</guid>
		<description><![CDATA[Let&#8217;s assume the following: - we have a MySQL table with some fields like &#8220;product&#8221;, &#8220;dateX&#8221; and &#8220;dateY&#8221;; - the &#8220;product&#8221; is a &#8220;varchar&#8221; type; - the &#8220;dateX&#8221; and &#8220;dateY&#8221; field type is &#8220;date&#8221; &#8211; YYYY-MM-DD; SCENARIO 1: If we are using the mysql NOW() and CURDATE() native function the query would look like this: [...]]]></description>
			<content:encoded><![CDATA[<p>Let&#8217;s assume the following:<br />
- we have a MySQL table with some fields like &#8220;product&#8221;, &#8220;dateX&#8221; and &#8220;dateY&#8221;;<br />
- the &#8220;product&#8221; is a &#8220;varchar&#8221; type;<br />
- the &#8220;dateX&#8221; and &#8220;dateY&#8221; field type is &#8220;date&#8221; &#8211; YYYY-MM-DD;</p>
<p><strong>SCENARIO 1: </strong><br />
If we are using the mysql NOW() and CURDATE() native function the query would look like this:</p>
<pre class="brush: php; title: ; notranslate"> SELECT product FROM table WHERE dateX &lt;= NOW() and dateY &gt;= CURDATE() </pre>
<p><strong>SCENARIO 2: </strong><br />
If we use PHP date(&#8220;Y-m-d&#8221;) and assume the variable</p>
<pre class="brush: php; title: ; notranslate"> $php_date = date(&quot;Y-m-d&quot;); </pre>
<p>the query would be sth. like:</p>
<pre class="brush: php; title: ; notranslate"> SELECT product FROM table WHERE dateX &lt;= '$php_date' and dateY &gt;= '$php_date'  </pre>
<blockquote><p>CONCLUSION:<br />
I noticed a HUGE LACK in PERFORMANCE while using the native MySQL NOW() and CURDATE() function as opposed to the second scenario when using the string date generated by the php date function.</p>
<p>On a particular project, I work at, the page load was affected by a difference of more than 8 Seconds which is unacceptable.</p></blockquote>
<p>As always I look forward to your comments&#8230;</p>
]]></content:encoded>
			<wfw:commentRss>http://online.promoters.ro/web-design-development/mysql-curdate-and-now-vs-php-date-heavy-server-load.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

