<?xml version="1.0" encoding="utf-8"?>
<!-- generator="FeedCreator 1.8.0-dev (info@mypapit.net)" -->
<rss version="2.0"  xmlns:atom="http://www.w3.org/2005/Atom">
    <channel>
        <title>Scroll-Lock</title>
        <description><![CDATA[You have been Scroll Locked!]]></description>
        <link>http://scroll-lock.eu/</link>
        <lastBuildDate>Sat, 19 May 2012 02:18:27 GMT</lastBuildDate>
        <generator>FeedCreator 1.8.0-dev (info@mypapit.net)</generator>
		<atom:link href="http://scroll-lock.eu/index.php?option=com_ninjarsssyndicator&amp;feed_id=1&amp;format=raw" rel="self" type="application/rss+xml" />        <item>
            <title>Compile gcc-4.1.2 on Ubuntu 10.04</title>
            <link>http://scroll-lock.eu/index.php?option=com_content&amp;view=article&amp;id=244:compile-gcc-412-on-ubuntu-1004&amp;catid=1:scroll-blog</link>
            <description><![CDATA[<p>I was trying to compile gcc-4.1.2 on Ubuntu x64 10.04 because Maya 2011 requires this version of gcc to be used to compile plugins.</p>
<p><a href="http://download.autodesk.com/us/maya/2011help/index.html?url=./files/Setting_up_your_build_environment_Linux_compiler_requirement.htm,topicNumber=d0e677620">http://download.autodesk.com/us/maya/2011help/index.html?url=./files/Setting_up_your_build_environment_Linux_compiler_requirement.htm,topicNumber=d0e677620</a></p>
<p>There were several issues I encountered, so here is the process that someone needs to do in order to compile it correctly.</p>
<p> </p>
<p>1. You will need to install texinfo  <strong> </strong></p>
<p><strong>sudo apt-get install texinfo</strong></p>
<p>2. Download gcc-4.1.2 from <a href="http://gcc.gnu.org/" target="_blank">http://gcc.gnu.org/</a></p>
<p>3. Create a directory called gcc412</p>
<p><strong>mkdir gcc412 </strong></p>
<p>4. CD into it</p>
<p><strong>cd gcc412</strong></p>
<p>5. Make another directory inside called gcc-build. This is important and is almost never mentioned but you need to have two separate directory trees. One of compiling and one for the source.</p>
<p><strong>mkdir gcc-build</strong></p>
<p>6. Copy the gcc archive to the gcc412 directory and unpack the archive there. Not in the build one.</p>
<p><strong>cp gcc-4.1.2.tar.bz2  .../gcc412</strong></p>
<p><strong>cd .../gcc412<br /></strong></p>
<p><strong>tar jxvf gcc-4.1.2.tar.bz2</strong></p>
<p>7. Go to the build directory</p>
<p><strong>cd gcc-build</strong></p>
<p>8. Now you need to configure . In the Maya documentation they say you need to do this:</p>
<p>../gcc-4.1.2/configure --prefix=/opt/gcc412 --program-suffix=412 --enable-shared --enable-threads=posix --enable-checking=release --with-system-zlib --disable-libunwind-exceptions --enable-__cxa_atexit</p>
<p>But I was having problems if I use these options only so for me this worked instead:</p>
<p><strong>../gcc-4.1.2/configure --prefix=/opt/gcc412 --program-suffix=412 --enable-shared --enable-threads=posix --enable-checking=release --disable-libunwind-exceptions --enable-__cxa_atexit --disable-multilib</strong></p>
<p>Notice the --disable-multilib flag and the missing --with-system-zlib flag.</p>
<p>9. Now because gcc-4.1.2 has a bug and thinks that versions of makeinfo greater than 10 are actually lower than 9 we need to do something manually. In our case if you run makeinfo --version you will see which version was installed by the first step, but it's usually version 13.  Open the Makefile that was created by the ./configure and edit the line where it says:</p>
<p>MAKEINFO = /opt/YOURUSERNAME/newlib-1.15.0/missing makeinfo</p>
<p>and change it to:</p>
<p>MAKEINFO = makeinfo</p>
<p>Save the file.</p>
<p>10. After the configuration run make</p>
<p><strong>make -j 2 bootstrap</strong></p>
<p>11. Run make install as root after that.</p>
<p><strong>su root</strong></p>
<p><strong>make install</strong></p>
<p>12. Then for convenience you can link the freshly compiled gcc412 to point to usr/bin</p>
<p><strong>ls -s /opt/gcc412/bin/gcc412 /usr/bin/gcc412</strong></p>
<p> </p>
<p>I hope this will be in help of somebody else that is struggling with compiling it.</p>
<pre class="codeLine"><br /></pre>]]></description>
            <author> scroll_lock@abv.bg (Administrator)</author>
            <pubDate>Tue, 20 Mar 2012 20:18:20 GMT</pubDate>
            <guid isPermaLink="false">http://scroll-lock.eu/index.php?option=com_content&amp;view=article&amp;id=244:compile-gcc-412-on-ubuntu-1004&amp;catid=1:scroll-blog</guid>
        </item>
        <item>
            <title>Fresh Guacamole</title>
            <link>http://scroll-lock.eu/index.php?option=com_content&amp;view=article&amp;id=243:fresh-guacamole&amp;catid=1:scroll-blog</link>
            <description><![CDATA[<p>Very fresh short animation!</p>
<p> </p>
<p>{iframe width="560" height="315"}http://www.youtube.com/embed/FQMO6vjmkyI{/iframe}</p>]]></description>
            <author> scroll_lock@abv.bg (Administrator)</author>
            <pubDate>Thu, 08 Mar 2012 15:40:21 GMT</pubDate>
            <guid isPermaLink="false">http://scroll-lock.eu/index.php?option=com_content&amp;view=article&amp;id=243:fresh-guacamole&amp;catid=1:scroll-blog</guid>
        </item>
        <item>
            <title>Raspberry Pi</title>
            <link>http://scroll-lock.eu/index.php?option=com_content&amp;view=article&amp;id=242:raspberry-pi&amp;catid=1:scroll-blog</link>
            <description><![CDATA[<p><img src="http://dmkenr5gtnd8f.cloudfront.net/wp-content/uploads/2011/10/rpibannerfinal.gif" border="0" width="654" height="94" /></p>
<p> </p>
<p>Some time ago a colleague with whom we share a passion of making stuff showed me something called Raspberry Pi. It's a pun with the word pie I suppose. The idea is a mini computer with the size of a credit card , which you can buy for extremely low price. Why ? The best explanation probably comes from the Raspberry Pi guys themselves:</p>
<p><a href="http://www.raspberrypi.org/sample-page">http://www.raspberrypi.org/sample-page</a></p>
<p> </p>
<p>" The idea behind a tiny and cheap computer for kids came in 2006, when  Eben Upton was lecturing and working in admissions at Cambridge  University. Eben had noticed a distinct drop in the skills levels of the  A Level students applying to read Computer Science in each academic  year when he came to interview them. From a situation in the 1990s where  most of the kids applying were coming to interview as hobbyist  programmers, the landscape in the 2000s was very different; a typical  applicant now had experience only with web design, and sometimes not  even with that. Fewer people were applying to the course every year.  Something had changed the way kids were interacting with computers. ..."</p>
<p> </p>
<p>In recent years I have been thinking about the same too. When I was growing up I had computers around me to play with. They were quite expensive, but you could get one with the money you saved from summertime jobs and help from your parents.   The computers didn't do much by their own, so you had to make them do something useful. I saw the rise of the dot-com bubble , I was trying to explain to my parents what the computer is and what you can do with it. I was seeing that we are quite different generations and that I can understand the computers in a way that they never will be able to. I thought that the generation coming after me will be so knowledgeable about programming that I can not even fit in my mind. Well it turns out it's not the case. The kids growing up now play on closed hardware and software consoles instead of Amigas and Pravetz 8s. They "design"  web pages instead of hacking code together to make it draw random pixels on the screen. They are tweeting and updating their statuses in FB instead of ssh-ing an obscure server via a modem and chatting with other people on the server. They play angry birds on their phones instead of Doom with Parallel connection between two PCs. The differences are very small, but important and lead to two different places. When you have a hardware and software that you can play with you learn a lot about how it is made. When you have a closed hardware and closed software, this is almost impossible to understand. When you have an open hardware and software (here you can substitute the word "open" with "free" or "open source") it is much easier to see what it is doing and learn how it is doing it. Most of the boys here will see the analogue : Imagine a car toy that your parents gave you for your 11th birthday.  It runs on a track but the car itself doesn't have battery. You are wondering how it runs on the track when there is no electricity in the car itself. You open the car and you see that there is electrical motor , but instead of being powered by a battery in the car, it's powered by a little connection from the track itself. So the next time something on the car breaks you know how it's made and you can fix it yourself without the need to ask your parents to do it. Now imagine the same situation but this time, when you open the car there is just a black box, and you don't see anything in there except a little words saying "Patented" and "Proprietary".  If you need to know how it works, you will have to break this black box and in essence break whatever you are trying to understand how it works. This is the general difference between open source and closed software and hardware. And this is the general difference between the ability to know how something functions and not. That is why things like GNU/Linux, github, FSF and Raspberry Pi are important to our society. There is still a little bit more to be asked from Raspberry Pi though. Currently some parts of the hardware and some parts of the software are still closed. They explained the reason behind this from the fact they tried to make the board as cheaper as possible. The perfect scenario would have been if everything in it is open source, but for now it's not. To see why this is so important you can read a little story by Richard Stallman called "The right to read" You can find it with GPL license in the internets somewhere.</p>
<p> </p>
<p> </p>
<p> </p>]]></description>
            <author> scroll_lock@abv.bg (Administrator)</author>
            <pubDate>Wed, 15 Feb 2012 17:20:46 GMT</pubDate>
            <guid isPermaLink="false">http://scroll-lock.eu/index.php?option=com_content&amp;view=article&amp;id=242:raspberry-pi&amp;catid=1:scroll-blog</guid>
        </item>
        <item>
            <title>Mexico</title>
            <link>http://scroll-lock.eu/index.php?option=com_content&amp;view=article&amp;id=240:mexico&amp;catid=1:scroll-blog</link>
            <description><![CDATA[<p>Last year we went to Mexico and made several timelapse sequences. You can see it here at Vimeo:</p>
<p>{iframe height="281" width="500"}http://player.vimeo.com/video/34482004{/iframe}</p>
<p> </p>
<p>What surprised me yesterday was a timelapse sequence that I found on the internets featuring a shot from the timelapse we shot! It is cool to be plugged there!</p>
<p> </p>
<p>
<object width="560" height="315">
<param name="movie" value="http://www.youtube.com/v/dSREFYyoy-4?version=3&amp;hl=en_US" />
<param name="allowFullScreen" value="true" />
<param name="allowscriptaccess" value="always" /><embed type="application/x-shockwave-flash" width="560" height="315" src="http://www.youtube.com/v/dSREFYyoy-4?version=3&amp;hl=en_US" allowscriptaccess="always" allowfullscreen="true"></embed>
</object>
</p>]]></description>
            <author> scroll_lock@abv.bg (Administrator)</author>
            <pubDate>Tue, 14 Feb 2012 14:32:02 GMT</pubDate>
            <guid isPermaLink="false">http://scroll-lock.eu/index.php?option=com_content&amp;view=article&amp;id=240:mexico&amp;catid=1:scroll-blog</guid>
        </item>
        <item>
            <title>rounding in Python</title>
            <link>http://scroll-lock.eu/index.php?option=com_content&amp;view=article&amp;id=239:rounding-in-python&amp;catid=1:scroll-blog</link>
            <description><![CDATA[<p>Today for the first time after using Python for so many years I found that the representation of rounded floats is different depending how you print it:</p>
<p><strong>test = round(0.1**0.1, 2)<br /><br />print test<br />print [test]</strong></p>
<p>#0.79<br />#[0.79000000000000004]</p>
<p> </p>
<p>I never knew about this and it looked weird at first but then on further investigation I found that <strong>print value</strong> prints the str() conversion of the value, but <strong>print [value]</strong> prints the repr() of value instead.</p>]]></description>
            <author> scroll_lock@abv.bg (Administrator)</author>
            <pubDate>Thu, 02 Feb 2012 20:52:24 GMT</pubDate>
            <guid isPermaLink="false">http://scroll-lock.eu/index.php?option=com_content&amp;view=article&amp;id=239:rounding-in-python&amp;catid=1:scroll-blog</guid>
        </item>
        <item>
            <title>Now when SOPA is over...</title>
            <link>http://scroll-lock.eu/index.php?option=com_content&amp;view=article&amp;id=238:now-when-sopa-is-over&amp;catid=1:scroll-blog</link>
            <description><![CDATA[<p>... is it really over ?</p>
<p>I think not. Some days ago the founder of MegaUpload was arrested and the website shut down. The people should start seeing now in what world we are actually living.  People should start using more free software, start using Tor, if you are a programmer, be involved in free software, don't use eBooks or at least buy them directly from the author and not the publisher, if you are a hardware maker, make a hardware that's not locked and you can actually use for what you really want. Jacob Appelbaum describes it the best:</p>
<p> </p>
<p>
<object width="420" height="315">
<param name="movie" value="http://www.youtube.com/v/GMN2360LM_U?version=3&amp;hl=en_US" />
<param name="allowFullScreen" value="true" />
<param name="allowscriptaccess" value="always" /><embed type="application/x-shockwave-flash" width="420" height="315" src="http://www.youtube.com/v/GMN2360LM_U?version=3&amp;hl=en_US" allowscriptaccess="always" allowfullscreen="true"></embed>
</object>
</p>]]></description>
            <author> scroll_lock@abv.bg (Administrator)</author>
            <pubDate>Thu, 26 Jan 2012 16:11:04 GMT</pubDate>
            <guid isPermaLink="false">http://scroll-lock.eu/index.php?option=com_content&amp;view=article&amp;id=238:now-when-sopa-is-over&amp;catid=1:scroll-blog</guid>
        </item>
        <item>
            <title>WEB GOES ON STRIKE!</title>
            <link>http://scroll-lock.eu/index.php?option=com_content&amp;view=article&amp;id=237:web-goes-on-strike&amp;catid=1:scroll-blog</link>
            <description><![CDATA[<p><a href="http://sopastrike.com/"><img src="http://sopastrike.com/images/time-to-strike-header.png" border="0" width="753" height="90" /></a></p>
<p> </p>
<p>on January 18th in protest of the Internet Censorship Bills.</p>
<p>My website will be down on that date too.</p>]]></description>
            <author> scroll_lock@abv.bg (Administrator)</author>
            <pubDate>Sat, 14 Jan 2012 15:28:40 GMT</pubDate>
            <guid isPermaLink="false">http://scroll-lock.eu/index.php?option=com_content&amp;view=article&amp;id=237:web-goes-on-strike&amp;catid=1:scroll-blog</guid>
        </item>
        <item>
            <title>2012</title>
            <link>http://scroll-lock.eu/index.php?option=com_content&amp;view=article&amp;id=236:2012&amp;catid=1:scroll-blog</link>
            <description><![CDATA[<p>Several days before the end of 2011 , I wanted to write about what  for me was the essence of this year.  Changes. You can see it  everywhere. The status quo of the political regimes around the  world has been challenged. It is happening not only in Iraq, not only in  Lybia, not only in Greece , Moscow or  Wall Street. It is everywhere. The Mayan  calendar says 2012 is the end of one era and new one will come. I can  already see it happening, and I really think it's for good. What the  people of the Occupy Wall Street movement started can not be stopped  easily. I can see the fear in the governments creating things like "The  Patriot Act" and "SOPA". Democratic governments trying to become  totalitarian.This has never worked in the history before and I doubt it will work this time. The people will make the change. Have a great 2012!</p>
<p> </p>
<p style="text-align: center;"><img src="http://scroll-lock.eu/images/stories/TIME-Protester.jpg" border="0" width="339" height="451" /></p>
<p> </p>
<p> </p>]]></description>
            <author> scroll_lock@abv.bg (Administrator)</author>
            <pubDate>Sat, 24 Dec 2011 00:17:18 GMT</pubDate>
            <guid isPermaLink="false">http://scroll-lock.eu/index.php?option=com_content&amp;view=article&amp;id=236:2012&amp;catid=1:scroll-blog</guid>
        </item>
        <item>
            <title>Ice Age Continental Drift #2</title>
            <link>http://scroll-lock.eu/index.php?option=com_content&amp;view=article&amp;id=235:ice-age-continental-drift-2&amp;catid=1:scroll-blog</link>
            <description><![CDATA[<p>The trailer for Ice Age Continental Drift is finally out! It looks awesome and you can see a little bit the pirates in the movie!</p>
<p> </p>
<p>
<object width="560" height="315">
<param name="movie" value="http://www.youtube.com/v/7u2aX7mG2NU?version=3&amp;hl=en_US" />
<param name="allowFullScreen" value="true" />
<param name="allowscriptaccess" value="always" /><embed type="application/x-shockwave-flash" width="560" height="315" src="http://www.youtube.com/v/7u2aX7mG2NU?version=3&amp;hl=en_US" allowscriptaccess="always" allowfullscreen="true"></embed>
</object>
</p>
<p> </p>
<p>Here is a better quality trailer, but you need quicktime for it:</p>
<p><span id="OBJ_PREFIX_DWT907" class="Object"><a href="http://trailers.apple.com/trailers/fox/iceagecontinentaldrift/" target="_blank">http://trailers.apple.com/trailers/fox/iceagecontinentaldrift/</a></span></p>]]></description>
            <author> scroll_lock@abv.bg (Administrator)</author>
            <pubDate>Thu, 17 Nov 2011 16:10:02 GMT</pubDate>
            <guid isPermaLink="false">http://scroll-lock.eu/index.php?option=com_content&amp;view=article&amp;id=235:ice-age-continental-drift-2&amp;catid=1:scroll-blog</guid>
        </item>
        <item>
            <title>Mathematics</title>
            <link>http://scroll-lock.eu/index.php?option=com_content&amp;view=article&amp;id=234:mathematics&amp;catid=1:scroll-blog</link>
            <description><![CDATA[<p>That's the most mathematically correct animation I have seen so far. Good job Aaardman! As always!</p>
<p> </p>
<p>
<object width="560" height="315">
<param name="movie" value="http://www.youtube.com/v/Q5cab4NMHsY?version=3&amp;hl=en_US" />
<param name="allowFullScreen" value="true" />
<param name="allowscriptaccess" value="always" /><embed type="application/x-shockwave-flash" width="560" height="315" src="http://www.youtube.com/v/Q5cab4NMHsY?version=3&amp;hl=en_US" allowscriptaccess="always" allowfullscreen="true"></embed>
</object>
</p>]]></description>
            <author> scroll_lock@abv.bg (Administrator)</author>
            <pubDate>Thu, 27 Oct 2011 13:37:20 GMT</pubDate>
            <guid isPermaLink="false">http://scroll-lock.eu/index.php?option=com_content&amp;view=article&amp;id=234:mathematics&amp;catid=1:scroll-blog</guid>
        </item>
    </channel>
</rss>

