<?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"
	>

<channel>
	<title>Compdigitec Labs</title>
	<atom:link href="http://www.compdigitec.com/labs/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.compdigitec.com/labs</link>
	<description>The place for Interesting things</description>
	<pubDate>Tue, 23 Dec 2008 22:25:56 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.5.1</generator>
	<language>en</language>
			<item>
		<title>Linking a shared assembly in the Mono C# compiler</title>
		<link>http://www.compdigitec.com/labs/2008/12/23/linking-a-shared-assembly-in-the-mono-c-compiler/</link>
		<comments>http://www.compdigitec.com/labs/2008/12/23/linking-a-shared-assembly-in-the-mono-c-compiler/#comments</comments>
		<pubDate>Tue, 23 Dec 2008 22:25:56 +0000</pubDate>
		<dc:creator>admin</dc:creator>
		
		<category><![CDATA[Linux]]></category>

		<category><![CDATA[#include]]></category>

		<category><![CDATA[#include for C#]]></category>

		<category><![CDATA[C# replacement for #include]]></category>

		<category><![CDATA[c++]]></category>

		<category><![CDATA[gmcs]]></category>

		<category><![CDATA[gmcs -reference:]]></category>

		<category><![CDATA[gmcs link dll]]></category>

		<category><![CDATA[how to link dll mono]]></category>

		<category><![CDATA[link library]]></category>

		<category><![CDATA[Mono]]></category>

		<category><![CDATA[mono c#]]></category>

		<category><![CDATA[mono dll]]></category>

		<category><![CDATA[mono link]]></category>

		<category><![CDATA[mono nrsdfjhy]]></category>

		<category><![CDATA[mono refe]]></category>

		<category><![CDATA[mono reference dll]]></category>

		<category><![CDATA[subsitude for C#]]></category>

		<guid isPermaLink="false">http://www.compdigitec.com/labs/?p=60</guid>
		<description><![CDATA[If you wrote a class in C++ and wanted to use it in many applications, you could simple #include it in each application you wanted to use it in. But if you wrote a class in C# and wanted to use it in many applications, you cannot just #include it, because there is no #include [...]]]></description>
			<content:encoded><![CDATA[<p>If you wrote a class in C++ and wanted to use it in many applications, you could simple #include it in each application you wanted to use it in. But if you wrote a class in C# and wanted to use it in many applications, you cannot just #include it, because there is no #include in the C# language! The solution to this is to <strong>reference</strong> the library. This article will show you in easy steps:</p>
<ol>
<li>After you have written the class, compile it into a library with “<strong>gmcs ClassXyz.cs -target:library</strong>” (replace ClassXyz.cs with your class&#8217;s filename)</li>
<li>The command above should generate a shared library/assembly called ClassXyz.dll.</li>
<li>Now you can compile the application with “<strong>gmcs ProgramXyz.cs -reference:ClassXyz.dll</strong>”.</li>
</ol>
<p>If you found this article useful or helpful, please help Compdigitec spread the word. Don&#8217;t forget to <a title="Subscribe to Compdigitec Labs" href="/labs/feed/">subscribe to Compdigitec Labs</a> for more useful and interesting articles!</p>
]]></content:encoded>
			<wfw:commentRss>http://www.compdigitec.com/labs/2008/12/23/linking-a-shared-assembly-in-the-mono-c-compiler/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Fixing MonoDevelop&#8217;s translation functions</title>
		<link>http://www.compdigitec.com/labs/2008/12/21/fixing-monodevelops-translation-functions/</link>
		<comments>http://www.compdigitec.com/labs/2008/12/21/fixing-monodevelops-translation-functions/#comments</comments>
		<pubDate>Sun, 21 Dec 2008 22:37:04 +0000</pubDate>
		<dc:creator>admin</dc:creator>
		
		<category><![CDATA[Linux]]></category>

		<category><![CDATA[buggy]]></category>

		<category><![CDATA[bugs]]></category>

		<category><![CDATA[C sharp]]></category>

		<category><![CDATA[c++]]></category>

		<category><![CDATA[CodePage 37]]></category>

		<category><![CDATA[CodePage 37 not supported]]></category>

		<category><![CDATA[libmono-i18n2.0-cil]]></category>

		<category><![CDATA[libmono-i18n2.0-cil package]]></category>

		<category><![CDATA[linux C#]]></category>

		<category><![CDATA[Mono]]></category>

		<category><![CDATA[MonoDevelo]]></category>

		<category><![CDATA[monodevelop]]></category>

		<category><![CDATA[MonoDevelop po]]></category>

		<category><![CDATA[po file]]></category>

		<guid isPermaLink="false">http://www.compdigitec.com/labs/?p=59</guid>
		<description><![CDATA[When you install MonoDevelop in Linux, you will find that you cannot open a translation file. The error given is “CodePage 37 not supported”. A workaround for this is to install the libmono-i18n2.0-cil package.
If you found this article helpful or interesting, please help Compdigitec spread the word. Don&#8217;t forget to subscribe to Compdigitec Labs for [...]]]></description>
			<content:encoded><![CDATA[<p>When you install <a rel="nofollow" href="http://www.monodevelop.com/">MonoDevelop</a> in Linux, you will find that you cannot open a translation file. The error given is “<strong>CodePage 37 not supported</strong>”. A workaround for this is to install the <strong>libmono-i18n2.0-cil</strong> package.</p>
<p>If you found this article helpful or interesting, please help Compdigitec spread the word. Don&#8217;t forget to <a href="/labs/feed">subscribe to Compdigitec Labs</a> for more useful or interesting posts!</p>
]]></content:encoded>
			<wfw:commentRss>http://www.compdigitec.com/labs/2008/12/21/fixing-monodevelops-translation-functions/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Disable the jump box of the FAQ in phpBB 3</title>
		<link>http://www.compdigitec.com/labs/2008/12/20/disable-the-jump-box-of-the-faq-in-phpbb-3/</link>
		<comments>http://www.compdigitec.com/labs/2008/12/20/disable-the-jump-box-of-the-faq-in-phpbb-3/#comments</comments>
		<pubDate>Sat, 20 Dec 2008 23:18:56 +0000</pubDate>
		<dc:creator>admin</dc:creator>
		
		<category><![CDATA[PHP]]></category>

		<category><![CDATA[annoy]]></category>

		<category><![CDATA[annoyances]]></category>

		<category><![CDATA[annoying]]></category>

		<category><![CDATA[disable]]></category>

		<category><![CDATA[disable the jump box]]></category>

		<category><![CDATA[faq]]></category>

		<category><![CDATA[faq.php]]></category>

		<category><![CDATA[faq.pph]]></category>

		<category><![CDATA[hacks]]></category>

		<category><![CDATA[jump box]]></category>

		<category><![CDATA[jump box annoy]]></category>

		<category><![CDATA[jump to]]></category>

		<category><![CDATA[jump to fourm]]></category>

		<category><![CDATA[phpbb]]></category>

		<category><![CDATA[phpbb3]]></category>

		<guid isPermaLink="false">http://www.compdigitec.com/labs/?p=58</guid>
		<description><![CDATA[If you think that the “jump to” box at the bottom of the FAQ in the phpBB 3 package is annoying or unessesary, you can use this article to disable it in four easy steps.

Download faq.php from your phpBB3 installation.
Open it with a text editor.
Comment out (add a #) line 170 (“make_jumpbox(append_sid(&#8221;{$phpbb_root_path}viewforum.$phpEx&#8221;));”).
Reupload and you&#8217;re done! [...]]]></description>
			<content:encoded><![CDATA[<p>If you think that the “jump to” box at the bottom of the FAQ in the phpBB 3 package is annoying or unessesary, you can use this article to disable it in four easy steps.</p>
<ol>
<li>Download faq.php from your phpBB3 installation.</li>
<li>Open it with a text editor.</li>
<li>Comment out (add a <span style="font-weight: bold;">#</span>) line 170 (“<span style="font-weight: bold;">make_jumpbox(append_sid(&#8221;{$phpbb_root_path}viewforum.$phpEx&#8221;));</span>”).</li>
<li>Reupload and you&#8217;re done! Go to http://yourforum.example/phpbb_installation_folder/faq.php to test it.</li>
</ol>
<p>If you found this article useful or interesting, please help Compdigitec spread the word. Don&#8217;t forget to subscribe to Compdigitec Labs for more interesting articles!</p>
]]></content:encoded>
			<wfw:commentRss>http://www.compdigitec.com/labs/2008/12/20/disable-the-jump-box-of-the-faq-in-phpbb-3/feed/</wfw:commentRss>
		</item>
		<item>
		<title>phpBB force login hack</title>
		<link>http://www.compdigitec.com/labs/2008/12/16/phpbb-force-login-hack/</link>
		<comments>http://www.compdigitec.com/labs/2008/12/16/phpbb-force-login-hack/#comments</comments>
		<pubDate>Tue, 16 Dec 2008 11:47:25 +0000</pubDate>
		<dc:creator>admin</dc:creator>
		
		<category><![CDATA[PHP]]></category>

		<category><![CDATA[force login]]></category>

		<category><![CDATA[forced login]]></category>

		<category><![CDATA[login]]></category>

		<category><![CDATA[login before view]]></category>

		<category><![CDATA[login or register before view]]></category>

		<category><![CDATA[phpbb]]></category>

		<category><![CDATA[phpbb must login before viewing]]></category>

		<category><![CDATA[privacy]]></category>

		<category><![CDATA[private forum]]></category>

		<category><![CDATA[security hack]]></category>

		<guid isPermaLink="false">http://www.compdigitec.com/labs/?p=57</guid>
		<description><![CDATA[To set up a private forum in phpBB, you could simply make all the forums &#8220;No Access&#8221; to guests and bots. But if they can still view your member list and profiles, that is a security leak. Here is a patch to remedy that by forcing the guest or bot to login before they can [...]]]></description>
			<content:encoded><![CDATA[<p>To set up a private forum in <a rel="nofollow" href="http://www.phpbb.com">phpBB</a>, you could simply make all the forums &#8220;No Access&#8221; to guests and bots. But if they can still view your member list and profiles, that is a security leak. Here is a patch to remedy that by forcing the guest or bot to login before they can see the forum:</p>
<ol>
<li>Open up index.php from your phpBB installation.</li>
<li>After line 25 (&#8221;<strong>$auth-&gt;acl($user-&gt;data);</strong>&#8220;), add the following code:<br />
// Hack to disable anonymous viewing<br />
if ($user-&gt;data['user_id'] == ANONYMOUS || $user-&gt;data['is_bot'])<br />
{<br />
login_box();<br />
} else {</li>
<li>After the line &#8220;<strong>page_header($user-&gt;lang['INDEX']);</strong>&#8220;, add the following code:<br />
// end hack to disable anonymous viewing<br />
};</li>
<li>Re-upload index.php to your web server. Don&#8217;t forget to clear your cache and log out to see the effect.</li>
</ol>
<p>If you found this article useful or helpful, please help Compdigitec by spreading the word. Don&#8217;t forget to subscribe to Compdigitec Labs for more useful and interesting articles!</p>
]]></content:encoded>
			<wfw:commentRss>http://www.compdigitec.com/labs/2008/12/16/phpbb-force-login-hack/feed/</wfw:commentRss>
		</item>
		<item>
		<title>How to fix GCC 4.3&#8217;s removal of old headers</title>
		<link>http://www.compdigitec.com/labs/2008/12/15/how-to-fix-gcc-43s-removal-of-old-headers/</link>
		<comments>http://www.compdigitec.com/labs/2008/12/15/how-to-fix-gcc-43s-removal-of-old-headers/#comments</comments>
		<pubDate>Tue, 16 Dec 2008 00:21:21 +0000</pubDate>
		<dc:creator>admin</dc:creator>
		
		<category><![CDATA[Linux]]></category>

		<category><![CDATA[bugs]]></category>

		<category><![CDATA[c++]]></category>

		<category><![CDATA[error iostream no such file or directory]]></category>

		<category><![CDATA[error iostream.h no such file or directory]]></category>

		<category><![CDATA[fstrea]]></category>

		<category><![CDATA[fstream]]></category>

		<category><![CDATA[fstream.h]]></category>

		<category><![CDATA[G++]]></category>

		<category><![CDATA[g++ 4.3]]></category>

		<category><![CDATA[g++ error]]></category>

		<category><![CDATA[GCC]]></category>

		<category><![CDATA[gcc 4.3]]></category>

		<category><![CDATA[GNU GCC]]></category>

		<category><![CDATA[iostream]]></category>

		<category><![CDATA[iostream.h]]></category>

		<category><![CDATA[removal of pre iso headers]]></category>

		<guid isPermaLink="false">http://www.compdigitec.com/labs/?p=56</guid>
		<description><![CDATA[GCC 4.3 has many new feautures. But unfortunately, it may break many of your application as it removes legacy and backwards compactible headers. Compiling in this case may result in errors such as &#8220;error: iostream.h: No such file or directory&#8220;. This article will describe how to fix it in 3 easy steps:

Go to http://gcc.gnu.org/gcc-4.3/porting_to.html&#8217;s &#8220;Removal [...]]]></description>
			<content:encoded><![CDATA[<p>GCC 4.3 has many new feautures. But unfortunately, it may break many of your application as it removes legacy and backwards compactible headers. Compiling in this case may result in errors such as &#8220;<strong>error: iostream.h: No such file or directory</strong>&#8220;. This article will describe how to fix it in 3 easy steps:</p>
<ol>
<li>Go to <a rel="nofollow" href="http://gcc.gnu.org/gcc-4.3/porting_to.html">http://gcc.gnu.org/gcc-4.3/porting_to.html</a>&#8217;s &#8220;Removal of Pre-ISO headers&#8221; section.</li>
<li>For every header on the left, create it with contents of &#8220;<strong>#include &lt;<em>header_on_the.right</em>&gt;</strong>&#8220;.</li>
<li>Compile your app with your regular compile arguments, adding &#8220;<strong> -I.</strong>&#8221; to the end of it. The dot at the end is very important. Example: &#8220;<strong>g++ foo.cpp -o foo <em>-I.</em></strong>&#8220;</li>
</ol>
<p>If you found this article useful or interesting, please help Compdigitec by spreading the word. Don&#8217;t forget to <a href="/labs/feed">subscribe to Compdigitec Labs</a> for more useful and interesting articles!</p>
]]></content:encoded>
			<wfw:commentRss>http://www.compdigitec.com/labs/2008/12/15/how-to-fix-gcc-43s-removal-of-old-headers/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Mount a FTP share in Ubuntu as a folder</title>
		<link>http://www.compdigitec.com/labs/2008/12/07/mount-a-ftp-share-in-ubuntu-as-a-folder/</link>
		<comments>http://www.compdigitec.com/labs/2008/12/07/mount-a-ftp-share-in-ubuntu-as-a-folder/#comments</comments>
		<pubDate>Sun, 07 Dec 2008 23:16:57 +0000</pubDate>
		<dc:creator>admin</dc:creator>
		
		<category><![CDATA[Linux]]></category>

		<category><![CDATA[curlftpfs]]></category>

		<category><![CDATA[file sharing]]></category>

		<category><![CDATA[ftp]]></category>

		<category><![CDATA[ftp file system]]></category>

		<category><![CDATA[ftp share]]></category>

		<category><![CDATA[how to]]></category>

		<category><![CDATA[linux tools on ftp share]]></category>

		<category><![CDATA[mount]]></category>

		<category><![CDATA[mount ftp linux]]></category>

		<category><![CDATA[mount ftp share]]></category>

		<category><![CDATA[mount ftp ubuntu]]></category>

		<category><![CDATA[network]]></category>

		<category><![CDATA[share]]></category>

		<category><![CDATA[ubuntu]]></category>

		<guid isPermaLink="false">http://www.compdigitec.com/labs/?p=55</guid>
		<description><![CDATA[There are several GUI interfaces for FTP on Linux, such as gFTP and FileZilla. But what if you need to use the powerful Linux command lines on an FTP share? This article will help you mount a FTP share as a folder so you can use your regular Linux tools (grep,nano,mv,rm,ls,etc.) on a FTP share. [...]]]></description>
			<content:encoded><![CDATA[<p>There are several GUI interfaces for FTP on Linux, such as gFTP and FileZilla. But what if you need to use the powerful Linux command lines on an FTP share? This article will help you mount a FTP share as a folder so you can use your regular Linux tools (grep,nano,mv,rm,ls,etc.) on a FTP share. This can be accomplished using <a rel="nofollow" href="http://curlftpfs.sourceforge.net/">cURLFTPfs</a>.</p>
<ol>
<li>If you don&#8217;t already have curlftpfs installed, install it with <strong>sudo apt-get install curlftpfs</strong>.</li>
<li>Replacing the appropriate settings, mount the share with <strong>sudo curlftpfs -o umask=0777,uid=1000,gid=1000,allow_other ftp://username:password@your.ftpserver.here /media/ftpmountedhere</strong>. Make sure that the location to mount to is already created and readable and writable by all users.</li>
<li>To make this permanent, add it to the end of /etc/init.d/rc.local to be able to access the share after reboot.</li>
</ol>
<p>If you found this article useful or interesting, please help Compdigitec spread the word. Don&#8217;t forget to <a title="Subscribe to Compdigitec Labs" href="http://www.compdigitec.com/labs/feed/">subscribe to Compdigitec Labs</a> for more interesting articles!</p>
]]></content:encoded>
			<wfw:commentRss>http://www.compdigitec.com/labs/2008/12/07/mount-a-ftp-share-in-ubuntu-as-a-folder/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Setting up a samba share in Ubuntu 8.04 and above</title>
		<link>http://www.compdigitec.com/labs/2008/11/30/setting-up-a-samba-share-in-ubuntu/</link>
		<comments>http://www.compdigitec.com/labs/2008/11/30/setting-up-a-samba-share-in-ubuntu/#comments</comments>
		<pubDate>Sun, 30 Nov 2008 21:24:19 +0000</pubDate>
		<dc:creator>admin</dc:creator>
		
		<category><![CDATA[Linux]]></category>

		<category><![CDATA[cannot]]></category>

		<category><![CDATA[file sharing]]></category>

		<category><![CDATA[login]]></category>

		<category><![CDATA[login error]]></category>

		<category><![CDATA[login with correct password error]]></category>

		<category><![CDATA[password bug]]></category>

		<category><![CDATA[password bugs]]></category>

		<category><![CDATA[samba]]></category>

		<category><![CDATA[share a folder]]></category>

		<category><![CDATA[sharing]]></category>

		<category><![CDATA[smb]]></category>

		<category><![CDATA[smbpasswd]]></category>

		<category><![CDATA[windows]]></category>

		<guid isPermaLink="false">http://www.compdigitec.com/labs/?p=54</guid>
		<description><![CDATA[After the &#8220;Network Shares&#8221; option was removed in Ubuntu 8.04, there was no longer a unified process to manipulate samba shares. Below is a step by step guide to setting up shares in Ubuntu 8.04 and above.


Open Nautilus in root: Type gksudo nautilus in the terminal or Alt-F2 (run dialog). This is due to the [...]]]></description>
			<content:encoded><![CDATA[<p>After the &#8220;Network Shares&#8221; option was removed in Ubuntu 8.04, there was no longer a unified process to manipulate samba shares. Below is a step by step guide to setting up shares in Ubuntu 8.04 and above.<br />
<img src="/images/labs/nautilus_share.png" alt="Nautils-share in Ubuntu" width="402" height="201" align="right" /></p>
<ol>
<li>Open Nautilus in root: Type <strong>gksudo nautilus</strong> in the terminal or Alt-F2 (run dialog). This is due to the fact that nautilus will not allow you to create shares without the root account.</li>
<li>Navigate to the folder you want to share. Right click the folder and select Properties. Then click on the share tab.</li>
<li>Check the checkbox that is labeled &#8220;Share this folder&#8221;. Type your share name in the &#8220;Share name&#8221; textbox. When you are done, click &#8220;Modify Share&#8221; to apply your settings.</li>
<li>Close &#8216;root&#8217; nautilus.</li>
<li>The folder should now be shared. Check by going to Places =&gt; Network on your menu bar and typing in <strong>smb://localhost/</strong> in the address bar.</li>
<li><em><strong>(Note)</strong></em> If you cannot get into your share even though you typed in correct username and password information, it may be that you have not set a samba password. Do this by typing <strong>smbpasswd</strong> in the terminal. Enter your Ubuntu login password when it asks for a password.</li>
</ol>
<p>If you found this article interesting or useful, please help Compdigitec spread the word. Don&#8217;t forget to <a title="Subscribe to Compdigitec Labs" href="http://www.compdigitec.com/labs/feed/">subscribe to Compdigitec Labs</a> for more interesting articles!</p>
]]></content:encoded>
			<wfw:commentRss>http://www.compdigitec.com/labs/2008/11/30/setting-up-a-samba-share-in-ubuntu/feed/</wfw:commentRss>
		</item>
		<item>
		<title>A few gFTP user interface oddities</title>
		<link>http://www.compdigitec.com/labs/2008/11/29/gftp-user-interface-oddities/</link>
		<comments>http://www.compdigitec.com/labs/2008/11/29/gftp-user-interface-oddities/#comments</comments>
		<pubDate>Sat, 29 Nov 2008 19:01:03 +0000</pubDate>
		<dc:creator>admin</dc:creator>
		
		<category><![CDATA[Linux]]></category>

		<category><![CDATA[control a]]></category>

		<category><![CDATA[control key]]></category>

		<category><![CDATA[control keys]]></category>

		<category><![CDATA[control x]]></category>

		<category><![CDATA[control y]]></category>

		<category><![CDATA[ftp]]></category>

		<category><![CDATA[gftp]]></category>

		<category><![CDATA[glitches]]></category>

		<category><![CDATA[help]]></category>

		<category><![CDATA[oddities]]></category>

		<category><![CDATA[user interface]]></category>

		<guid isPermaLink="false">http://www.compdigitec.com/labs/?p=53</guid>
		<description><![CDATA[gFTP is a very good and lightweight FTP client on Linux. However, a few oddities of the gFTP user interface have been noticed. They are listed below.

Control-A adds a gFTP bookmark instead of select all. This seems a bit weird because usually Control-A means select all.
Control-Z does not undo. Again, Control-U generally means to Undo.
Control-Y [...]]]></description>
			<content:encoded><![CDATA[<p><a title="gFTP" href="http://www.gftp.org/">gFTP</a> is a very good and lightweight <a title="FTP client" rel="nofollow" href="http://en.wikipedia.org/wiki/FTP_client">FTP client</a> on Linux. However, a few oddities of the gFTP user interface have been noticed. They are listed below.</p>
<ul>
<li><strong>Control-A adds a gFTP bookmark instead of select all.</strong> This seems a bit weird because usually Control-A means select all.</li>
<li><strong>Control-Z does not undo.</strong> Again, Control-U generally means to Undo.</li>
<li><strong>Control-Y does not redo.</strong> Same as above, except that Control-Y means to Redo.</li>
<li><strong>No help file.</strong> The help menu is missing a help file, but the interface of gFTP is probably easy enough to figure out without documentation.</li>
</ul>
<p>Besides the above oddities, I think that gFTP is a very good and lightweight FTP client. If you found this article useful or interesting, please help Compdigitec spread the word. Don&#8217;t forget to <a href="/labs/feed">subscribe to Compdigitec Labs</a> for more interesting articles!</p>
]]></content:encoded>
			<wfw:commentRss>http://www.compdigitec.com/labs/2008/11/29/gftp-user-interface-oddities/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Simple timer script for command-line PHP</title>
		<link>http://www.compdigitec.com/labs/2008/11/12/simple-timer-script-for-command-line-php/</link>
		<comments>http://www.compdigitec.com/labs/2008/11/12/simple-timer-script-for-command-line-php/#comments</comments>
		<pubDate>Thu, 13 Nov 2008 00:39:29 +0000</pubDate>
		<dc:creator>admin</dc:creator>
		
		<category><![CDATA[PHP]]></category>

		<category><![CDATA[comand]]></category>

		<category><![CDATA[command line]]></category>

		<category><![CDATA[count]]></category>

		<category><![CDATA[cript]]></category>

		<category><![CDATA[enter]]></category>

		<category><![CDATA[keep track of time]]></category>

		<category><![CDATA[line]]></category>

		<category><![CDATA[lne]]></category>

		<category><![CDATA[minutes]]></category>

		<category><![CDATA[parameters]]></category>

		<category><![CDATA[script]]></category>

		<category><![CDATA[time]]></category>

		<category><![CDATA[timeer]]></category>

		<category><![CDATA[timer]]></category>

		<guid isPermaLink="false">http://www.compdigitec.com/labs/?p=52</guid>
		<description><![CDATA[Are you looking for a simple timer script written in command-line PHP? If so, here is one pre-written (released under the GPL v2 or later):

&#60;?php
define(&#8220;endl&#8221;,&#8220;\n&#8221;);
// Timer script
if($argv[1] == &#8220;&#8221;) {
echo &#8220;Usage: &#8221;.$argv[0].&#8220; minutes&#8221;.endl;
die();
}
$dtime = strtotime(&#8220;+&#8221;.$argv[1].&#8220; minute&#8221;);
while(true) {
echo &#8220;Enter to check time: &#8221;;
$tt = fgets(STDIN);
$i = date(&#8220;i&#8221;,$dtime-time());
$s = date(&#8220;s&#8221;,$dtime-time());
echo &#8220;$i minutes, $s seconds&#8221;.endl;
}
?&#62;

Usage: When launching use first parameter as number or minutes to count (0-59 min). Press enter to check the [...]]]></description>
			<content:encoded><![CDATA[<p>Are you looking for a simple timer script written in command-line PHP? If so, here is one pre-written (released under the GPL v2 or later):</p>
<p><code><span style="color: #000000;"><br />
<span style="color: #0000bb;">&lt;?php<br />
define</span><span style="color: #007700;">(</span><span style="color: #dd0000;">&#8220;endl&#8221;</span><span style="color: #007700;">,</span><span style="color: #dd0000;">&#8220;\n&#8221;</span><span style="color: #007700;">);<br />
</span><span style="color: #ff8000;">// Timer script<br />
</span><span style="color: #007700;">if(</span><span style="color: #0000bb;">$argv</span><span style="color: #007700;">[</span><span style="color: #0000bb;">1</span><span style="color: #007700;">] == </span><span style="color: #dd0000;">&#8220;&#8221;</span><span style="color: #007700;">) {<br />
echo </span><span style="color: #dd0000;">&#8220;Usage: &#8221;</span><span style="color: #007700;">.</span><span style="color: #0000bb;">$argv</span><span style="color: #007700;">[</span><span style="color: #0000bb;">0</span><span style="color: #007700;">].</span><span style="color: #dd0000;">&#8220; minutes&#8221;</span><span style="color: #007700;">.</span><span style="color: #0000bb;">endl</span><span style="color: #007700;">;<br />
die();<br />
}<br />
</span><span style="color: #0000bb;">$dtime </span><span style="color: #007700;">= </span><span style="color: #0000bb;">strtotime</span><span style="color: #007700;">(</span><span style="color: #dd0000;">&#8220;+&#8221;</span><span style="color: #007700;">.</span><span style="color: #0000bb;">$argv</span><span style="color: #007700;">[</span><span style="color: #0000bb;">1</span><span style="color: #007700;">].</span><span style="color: #dd0000;">&#8220; minute&#8221;</span><span style="color: #007700;">);<br />
while(</span><span style="color: #0000bb;">true</span><span style="color: #007700;">) {<br />
echo </span><span style="color: #dd0000;">&#8220;Enter to check time: &#8221;</span><span style="color: #007700;">;<br />
</span><span style="color: #0000bb;">$tt </span><span style="color: #007700;">= </span><span style="color: #0000bb;">fgets</span><span style="color: #007700;">(</span><span style="color: #0000bb;">STDIN</span><span style="color: #007700;">);<br />
</span><span style="color: #0000bb;">$i </span><span style="color: #007700;">= </span><span style="color: #0000bb;">date</span><span style="color: #007700;">(</span><span style="color: #dd0000;">&#8220;i&#8221;</span><span style="color: #007700;">,</span><span style="color: #0000bb;">$dtime</span><span style="color: #007700;">-</span><span style="color: #0000bb;">time</span><span style="color: #007700;">());<br />
</span><span style="color: #0000bb;">$s </span><span style="color: #007700;">= </span><span style="color: #0000bb;">date</span><span style="color: #007700;">(</span><span style="color: #dd0000;">&#8220;s&#8221;</span><span style="color: #007700;">,</span><span style="color: #0000bb;">$dtime</span><span style="color: #007700;">-</span><span style="color: #0000bb;">time</span><span style="color: #007700;">());<br />
echo </span><span style="color: #dd0000;">&#8220;$i minutes, $s seconds&#8221;</span><span style="color: #007700;">.</span><span style="color: #0000bb;">endl</span><span style="color: #007700;">;<br />
}<br />
</span><span style="color: #0000bb;">?&gt;<br />
</span></span></code></p>
<p><strong>Usage:</strong> When launching use first parameter as number or minutes to count (0-59 min). Press enter to check the time.</p>
<p>If you found this script useful or helpful, please help Compdigitec by spreading the word. Don&#8217;t forget to <a href="http://www.compdigitec.com/labs/feed">subscribe to Compdigitec Labs</a> for more interesting articles!</p>
]]></content:encoded>
			<wfw:commentRss>http://www.compdigitec.com/labs/2008/11/12/simple-timer-script-for-command-line-php/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Switching page orientation in OpenOffice.org</title>
		<link>http://www.compdigitec.com/labs/2008/11/06/switching-page-orientation-in-openoffice/</link>
		<comments>http://www.compdigitec.com/labs/2008/11/06/switching-page-orientation-in-openoffice/#comments</comments>
		<pubDate>Thu, 06 Nov 2008 22:09:35 +0000</pubDate>
		<dc:creator>admin</dc:creator>
		
		<category><![CDATA[Linux]]></category>

		<category><![CDATA[Windows]]></category>

		<category><![CDATA[change]]></category>

		<category><![CDATA[horizontal]]></category>

		<category><![CDATA[openoffice]]></category>

		<category><![CDATA[openoffice.org]]></category>

		<category><![CDATA[orientation]]></category>

		<category><![CDATA[page]]></category>

		<category><![CDATA[portrait]]></category>

		<category><![CDATA[switch]]></category>

		<guid isPermaLink="false">http://www.compdigitec.com/labs/?p=47</guid>
		<description><![CDATA[If you need to switch the page orientation (from portarit to landscape, or vise versa), here is how to do it (OpenOffice 2.x and plus):

Start by opening your document in OpenOffice.
Open the &#8220;Format&#8221; menu and click &#8220;Page&#8230;&#8220;.
Go to the &#8220;Page&#8221; tab and choose &#8220;Portrait&#8221; or &#8220;Landscape&#8220;.
You&#8217;re done! Save the document if you wish.

If you found [...]]]></description>
			<content:encoded><![CDATA[<p>If you need to switch the page orientation (from portarit to landscape, or vise versa), here is how to do it (OpenOffice 2.x and plus):</p>
<ol>
<li>Start by opening your document in OpenOffice.</li>
<li><a href="http://www.compdigitec.com/labs/wp-content/uploads/2008/11/2.png"><img class="alignright size-medium wp-image-50" title="Format Menu in OpenOffice.org" src="http://www.compdigitec.com/labs/wp-content/uploads/2008/11/2.png" alt="Format Menu in OpenOffice.org" width="300" height="215" /></a>Open the &#8220;<strong>Format</strong>&#8221; menu and click &#8220;<strong>Page&#8230;</strong>&#8220;.</li>
<li>Go to the &#8220;<strong>Page</strong>&#8221; tab and choose &#8220;<strong>Portrait</strong>&#8221; or &#8220;<strong>Landscape</strong>&#8220;.</li>
<li><a href="http://www.compdigitec.com/labs/wp-content/uploads/2008/11/3.png"><img class="alignright size-medium wp-image-51" title="Changing Page Orientation in OpenOffice.org" src="http://www.compdigitec.com/labs/wp-content/uploads/2008/11/3.png" alt="Changing Page Orientation in OpenOffice.org" width="300" height="216" /></a>You&#8217;re done! Save the document if you wish.</li>
</ol>
<p>If you found this article interesting or helpful, please help <a href="http://www.compdigitec.com/labs/">Compdigitec Labs</a> by spreading the word. Don&#8217;t forget to <a href="/labs/feed">subscribe</a> to <a href="http://www.compdigitec.com/labs/">Compdigitec Labs</a> for more interesting articles!</p>
]]></content:encoded>
			<wfw:commentRss>http://www.compdigitec.com/labs/2008/11/06/switching-page-orientation-in-openoffice/feed/</wfw:commentRss>
		</item>
	</channel>
</rss>
