<?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>Cgsbay &#187; Linux</title>
	<atom:link href="http://cgsbay.com/category/linux/feed/" rel="self" type="application/rss+xml" />
	<link>http://cgsbay.com</link>
	<description>Just another personal website</description>
	<lastBuildDate>Sat, 13 Mar 2010 13:26:50 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
		<item>
		<title>Offline math program for iPhone</title>
		<link>http://cgsbay.com/offline-math-program-for-iphone/</link>
		<comments>http://cgsbay.com/offline-math-program-for-iphone/#comments</comments>
		<pubDate>Sat, 13 Mar 2010 12:59:01 +0000</pubDate>
		<dc:creator>cgs</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[OS]]></category>
		<category><![CDATA[Python]]></category>
		<category><![CDATA[Windows]]></category>
		<category><![CDATA[iPhone]]></category>
		<category><![CDATA[iPod Touch]]></category>
		<category><![CDATA[math]]></category>
		<category><![CDATA[terminal]]></category>

		<guid isPermaLink="false">http://cgsbay.com/?p=155</guid>
		<description><![CDATA[Hi, I have got an iPod Touch and I&#8217;ve always wanted a good math program for my iPod. I wanted one with all the things that I needed to calculate: integrals, diffs, limits, matrices, &#8230; but there was nothing for the iPhone. I looked up and in the AppStore and I found Wolfram Alpha, but [...]]]></description>
			<content:encoded><![CDATA[<p>Hi, I have got an iPod Touch and I&#8217;ve always wanted a good math program for my iPod. I wanted one with all the things that I needed to calculate: integrals, diffs, limits, matrices, &#8230; but there was nothing for the iPhone. I looked up and in the AppStore and I found Wolfram Alpha, but it has two things I don&#8217;t like: it&#8217;s online and it has no memory.</p>
<div align="center"><img src="http://files.cgsbay.com/uploads/Images/sympylogo.png"></div>
<p>So I looked up in Cydia an over the Internet and I didn&#8217;t find anything. I decided  to try to compile GNU Octave, but it was very difficult, then I found that I could install python from Cydia. I did it and I found a module called <a href="http://code.google.com/p/sympy/">sympy</a> that does everything I wanted, it&#8217;s like a small matlab for your iPhone. You can see all the things this module does <a href="http://docs.sympy.org/tutorial.html">here</a>. It&#8217;s really easy to get it working, here there are the requirements:</p>
<p>- Jailbroken iPhone<br />
- Python (you can download it form Cydia)</p>
<p>And the steps:</p>
<p><strong>Installation</strong></p>
<p><strong>1.</strong> In your iPhone, you need the Telesphoreo Tangelo source, that comes by default, anyway, it&#8217;s: http://apt.saurik.com and if you don&#8217;t have it a package called Terminal.</p>
<div align="center"><img src="http://www.files.cgsbay.com/uploads/Images/cydiapy.PNG"></div>
<p><strong>2.</strong> Now, in Cydia click into search and type python and download &#8220;Python&#8221; (not &#8220;iPhone/Python&#8221;).<br />
<strong>3.</strong> From your computer download the .tar.gz file of Sympy from <a href="http://code.google.com/p/sympy/downloads/list">here</a>. You should download the latest one, in this case it&#8217;s sympy-0.6.6.tar.gz<br />
<strong>4.</strong> You&#8217;ll find a folder called sympy-version where version is the version, i.e.: sympy-0.6.6. To avoid problems extract the folder in your desktop and rename it to sympy.</p>
<div align="center"><img src="http://www.files.cgsbay.com/uploads/Images/sympy-linux.png"></div>
<p><strong>5.</strong> From your computer copy the folder sympy directly inside your Media folder inside your iPhone. To copy files in your iPhone use <a href="http://cgsbay.com/mount-iphone-ipod-touch-over-usb-in-linux/">iFuse</a> if you are not on Lucid (if you&#8217;re on Lucid you don&#8217;t need anything!), and <a href="http://www.iphone-explorer.com/">iPhone Explorer</a> if you&#8217;re on Windows or on a Mac. The media folder is the default folder when you browse your iPhone with this programs. Some folders inside of Media are DCIM, iTunes_Control, or Photos.</p>
<p>(Note: The next steps: 6-8 may not be needed, if you want, try the manual without them and tell me if it worked.)</p>
<p><strong>6. </strong> It&#8217;s almost done, now open your iPhone Terminal and type su. Type your root password, if you don&#8217;t have changed it, it should be alpine, if you have problems look up in google, I also don&#8217;t know if this step is needed or not, if you have problems try to avoid this part.</p>
<p><strong>7. </strong> Now put this code in your Terminal:</p>
<p><code>cd /var/mobile/Media/sympy</code></p>
<p>And this one:<br />
<code><br />
chmod +x setup.py<br />
</code></p>
<p><strong>8. </strong> Now type this in your Terminal:</p>
<p><code>python setup.py</code></p>
<p><strong>Running Sympy (after installation)</strong></p>
<p>Even if you get errors executing setup.py don&#8217;t worry, as I don&#8217;t know if steps 6-8 are needed, I&#8217;ve done them but I doubt if they were needed. Ok, the point is that you have sympy installed. Now let&#8217;s see how you can open it. Close your terminal and open it again. Then put this code:</p>
<p><code>cd /var/mobile/Media/sympy</code></p>
<p>And then this one:</p>
<p><code>python</code></p>
<p>And&#8230; finally this one:</p>
<p><code>from sympy import *</code></p>
<p>You&#8217;re done, everything is fine. You can use the program, let&#8217;s do an example:</p>
<div align="center"><img src="http://www.files.cgsbay.com/uploads/Images/integration-sympy.PNG"></div>
<p><code>x=symbol('x')<br />
pprint(integrate(1/(x**3+1),x))</code></p>
<p>Enjoy!</p>
<p><strong>How to open Sympy faster</strong></p>
<p>If you want to open Sympy faster, <a href="http://www.files.cgsbay.com/uploads/Linux/sympy.zip">download this bash file</a> I&#8217;ve created. Put it in /bin and give it executing permissions. To do this, just copy the file to Media in your iPhone and then, in your iPhone Terminal:</p>
<p><code>cd Media<br />
su<br />
cp 'sympy' '/bin'<br />
cd /bin<br />
chmod +x sympy<br />
</code></p>
<p>Then, to run Sympy, open your Terminal, type sympy and then inside the Python prompt type:</p>
<p><code>from sympy import *</code></p>
]]></content:encoded>
			<wfw:commentRss>http://cgsbay.com/offline-math-program-for-iphone/feed/</wfw:commentRss>
		<slash:comments>6</slash:comments>
		</item>
		<item>
		<title>Fixing left click with Flash</title>
		<link>http://cgsbay.com/fixing-left-click-with-flash/</link>
		<comments>http://cgsbay.com/fixing-left-click-with-flash/#comments</comments>
		<pubDate>Sun, 07 Mar 2010 16:02:57 +0000</pubDate>
		<dc:creator>cgs</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[flash]]></category>
		<category><![CDATA[left click]]></category>
		<category><![CDATA[ubuntu]]></category>

		<guid isPermaLink="false">http://cgsbay.com/?p=151</guid>
		<description><![CDATA[Hi, I&#8217;m testing Ubuntu Lucid Alpha 3 and it looks very well. I&#8217;ve downloaded the latest themes and the OS work smoothy. It still has a lot of bugs, for example the application called Gwibber which is used to connect all your social accounts don&#8217;t work. Syncing the ipod touch don&#8217;t work although you can [...]]]></description>
			<content:encoded><![CDATA[<p>Hi, I&#8217;m testing Ubuntu Lucid Alpha 3 and it looks very well. I&#8217;ve downloaded the latest themes and the OS work smoothy. It still has a lot of bugs, for example the application called Gwibber which is used to connect all your social accounts don&#8217;t work. Syncing the ipod touch don&#8217;t work although you can view the files.</p>
<p>But I&#8217;m writing this because I&#8217;ve always had problems with the left click in Flash programs on Ubuntu, it doesn&#8217;t matter if it&#8217;s Karmic or Lucid, it always fails. Anyway, the fix is very simple, here is what you have to do:</p>
<div align="center"><img src="files/uploads/Images/Linux/npviewer.png"></div>
<p>
You need to edit the file /usr/lib/nspluginwrapper/i386/linux/npviewer, for example using gedit. So, you can put in the terminal:</p>
<p><code>gksudo gedit /usr/lib/nspluginwrapper/i386/linux/npviewer</code></p>
<p>And you need to add this:</p>
<p><code>export GDK_NATIVE_WINDOWS=1</code></p>
<p>before the last line. You can see how it looks the file edited in my computer, but you could have more or less lines in yours. Then you save and restart your session by logging out and logging in again. That&#8217;s all. I&#8217;ve found this <a href="http://www.ubuntugeek.com/fix-for-flash-is-not-recognizing-mouse-clicks.html">here</a>. They also give you another method that I haven&#8217;t tested, but if you want to try it at your own peril&#8230; Oh, I almost forget, if you want to upgrade your system, the post say that you should quit this line before doing it.</p>
]]></content:encoded>
			<wfw:commentRss>http://cgsbay.com/fixing-left-click-with-flash/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Kolibri, a graphical OS in a floppy disk</title>
		<link>http://cgsbay.com/kolibri-a-graphical-os-in-a-floppy-disk/</link>
		<comments>http://cgsbay.com/kolibri-a-graphical-os-in-a-floppy-disk/#comments</comments>
		<pubDate>Thu, 31 Dec 2009 16:57:38 +0000</pubDate>
		<dc:creator>cgs</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[OS]]></category>
		<category><![CDATA[floppy disk]]></category>
		<category><![CDATA[Kolibri]]></category>
		<category><![CDATA[light]]></category>

		<guid isPermaLink="false">http://cgsbay.com/?p=116</guid>
		<description><![CDATA[Sometimes you find weird apps in Internet, but this time I found a whole operating system that can be saved in a floppy disk. You could say, ok, MsDos also fits there, but Kolibri is a graphical OS. Of course it hasn&#8217;t got much freatures, but it has games, a text editor, a small browser, [...]]]></description>
			<content:encoded><![CDATA[<p>Sometimes you find weird apps in Internet, but this time I found a whole operating system that can be saved in a floppy disk. You could say, ok, MsDos also fits there, but Kolibri is a graphical OS. Of course it hasn&#8217;t got much freatures, but it has games, a text editor, a small browser, &#8230; and it&#8217;s written in assembly!</p>
<p style="text-align: center;"><object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" width="425" height="344" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,40,0"><param name="allowFullScreen" value="true" /><param name="allowscriptaccess" value="always" /><param name="src" value="http://www.youtube.com/v/v4EkcZgEcVo&amp;hl=en_US&amp;fs=1&amp;" /><param name="allowfullscreen" value="true" /><embed type="application/x-shockwave-flash" width="425" height="344" src="http://www.youtube.com/v/v4EkcZgEcVo&amp;hl=en_US&amp;fs=1&amp;" allowscriptaccess="always" allowfullscreen="true"></embed></object></p>
<p>You can <a href="http://www.kolibrios.org/">download</a> it from here. You also can download the disk image in order to emulate it with <a href="http://www.virtualbox.org/">VirualBox</a> or whatever.</p>
]]></content:encoded>
			<wfw:commentRss>http://cgsbay.com/kolibri-a-graphical-os-in-a-floppy-disk/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How to mount iPod/iPhone in Karmic Koala and more distros!</title>
		<link>http://cgsbay.com/ipod-iphone-karmic-koala/</link>
		<comments>http://cgsbay.com/ipod-iphone-karmic-koala/#comments</comments>
		<pubDate>Mon, 28 Dec 2009 22:30:09 +0000</pubDate>
		<dc:creator>cgs</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[iPhone]]></category>
		<category><![CDATA[iPod Touch]]></category>
		<category><![CDATA[ifuse]]></category>
		<category><![CDATA[karmic koala]]></category>
		<category><![CDATA[ubuntu]]></category>

		<guid isPermaLink="false">http://cgsbay.com/?p=79</guid>
		<description><![CDATA[I know, iFuse didn&#8217;t work in Karmic Koala. I don&#8217;t really use much the iPod now, so I really didn&#8217;t need it working in Linux, but I found the way to do it. First of all, thanks to this thread because it made me find the problem and the way to repair it. The code [...]]]></description>
			<content:encoded><![CDATA[<p>I know, iFuse didn&#8217;t work in Karmic Koala. I don&#8217;t really use much the iPod now, so I really didn&#8217;t need it working in Linux, but I found the way to do it.</p>
<p>First of all, thanks to <a href="http://ubuntuforums.org/showthread.php?p=8563416">this thread</a> because it made me find the problem and the way to repair it. The code in the forum was almost right. The second line had an error, that was because you couldn&#8217;t get iPod Touches/iPhones working (at least in the latest versions of iFuse).</p>
<p>Now, let&#8217;s see how to mount the iPod Touch/iPhone over USB in Karmic Koala with iFuse.</p>
<p style="text-align: center; "><img class="aligncenter" src="http://files.cgsbay.com/uploads/Images//ipod-karmic.png" alt="iPod Touch in Karmic Koala" /></p>
<p><strong>1. </strong>If you don&#8217;t have iFuse <a href="http://cgsbay.com/mount-iphone-ipod-touch-over-usb-in-linux/">read this post</a>, it explains you how to install it in different versions of Ubuntu and it gives a link to the page of the project, so if you use other distro you won&#8217;t have problems <img src='http://cgsbay.com/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /> </p>
<p><strong>2.</strong><strong> </strong> After getting iFuse installed in your computer you&#8217;ll connect your iPod Touch/iPhone as always and you won&#8217;t get it mounted, what&#8217;s the problem? It&#8217;s very simple, there&#8217;s not a mounting point for your device! The solution is very easy. This is the code you must insert in your terminal:</p>
<p><code>sudo mkdir /media/iPod<br />
sudo ifuse mount /media/iPod</code></p>
<p>Depending of your version, if the second line gives you an error, try instead:</p>
<p><code>sudo ifuse /media/iPod</code></p>
<p>* Note: You can use the name you want, I&#8217;ve done it with iPod, but you can put whatever.</p>
<p>That&#8217;s it! The first one creates a folder iPod inside media and the second one tells ifuse where it has to mount your device!</p>
<p>Having problems? I don&#8217;t know if this work with all the firmwares of your iPod Touch/iPhone. I can assure that the 3.0 version of iPhone OS works perfectly and the previous ones I think that also work. However, I can&#8217;t assure you if this will work in new versions of iPhone OS (although I think it will work, don&#8217;t worry). If you have one of the newest, just try it and tell me in the comments if it works!</p>
<p>If after all of this you can&#8217;t mount your iPod Touch or iPhone, leave a comment explaining the problem and I will try to help you, and also consider (as the worse option) emulating Windows XP with VirtualBox.</p>
<p><strong>Note #1:</strong> I think that each time you plug in your iPod Touch or iPhone you have to mount it manually, it&#8217;s easy, just type:</p>
<p><code>sudo ifuse mount /media/iPod</code></p>
<p>(If this line fails, again, use <code>sudo ifuse /media/iPod </code> instead)</p>
<p>Changing /media/iPod if you want by the folder where you want to mount it. If you want to unplug it, just do it, and if you want to unmount it, you also have to do it manually, because if you do right click at least my pc gives me an error of permissions, so if you want to unmount it, it&#8217;s also very simple:</p>
<p><code>sudo umount /media/iPod</code></p>
<p>If someone knows how to do this faster&#8230; I think that with nautilus-actions it would not be difficult to implement a graphical way, I have to check it, if I find a way I&#8217;ll tell you.</p>
<p><strong>Note #2:</strong> Terminal in Linux is interesting. I&#8217;m learning how to do programs for that, if I know more I&#8217;ll do one to auto mount and auto unmount the iPod Touch /iPhone. Meanwhile, you can do this:</p>
<div style="text-align: center;"><img src="http://files.cgsbay.com/uploads/Images/mount-ipod-touch.png" alt="" width="444" height="56" /></div>
<p><strong>0.</strong> I&#8217;ll do with the folder /media/iPod, use the one you want, but first create it if you don&#8217;t have it yet with:</p>
<p><code>sudo mkdir media/iPod</code></p>
<p><strong>1.</strong> Create a launcher in the menu and select &#8220;application in terminal&#8221;. Call it Mount iPod Touch or whatever, and in command insert:</p>
<p><code>sudo ifuse mount media/iPod</code></p>
<p>And if this line fails, use this instead:</p>
<p><code>sudo ifuse media/iPod</code></p>
<p><strong>2.</strong> Create another launcher in the menu, select &#8220;application in terminal&#8221; and call it Unmount iPod Touch if you want. Then add in command this line:</p>
<p><code>sudo umount /media/iPod</code></p>
<p>Optional: Put <a href="http://files.cgsbay.com/uploads/Images/ipod-touch.png">this icon</a>, (do it by dragging the image) it&#8217;s really cool. If you use Gnome-Do as me, it&#8217;s very fast and useful as you can press super+space and write mount ipod and enter and your iPod will be mounted, and type unmount ipod an your iPod will be unmounted!</p>
]]></content:encoded>
			<wfw:commentRss>http://cgsbay.com/ipod-iphone-karmic-koala/feed/</wfw:commentRss>
		<slash:comments>26</slash:comments>
		</item>
	</channel>
</rss>

