tag:blogger.com,1999:blog-139744592024-03-13T13:39:02.523+01:00Yogarinespend your money before it runs outYogarinehttp://www.blogger.com/profile/09879815475926786440noreply@blogger.comBlogger55125tag:blogger.com,1999:blog-13974459.post-56406767603158867132011-03-04T22:56:00.014+01:002013-03-01T11:17:05.469+01:00Gekraakte OV-chipkaart: de oplossing<b>EDIT 09-03-2011: Op verzoek van een collega, nu met plaatjes!</b><br />
<b><br />
</b><br />
<h3>
Het Probleem</h3>
De recente problemen met de OV-chipkaart zijn een mooi voorbeeld van hoe het ontbreken van <abbr title="informatietechnologie">IT</abbr>-professionals in de politiek ons een hele hoop extra belastingcenten kan kosten. De interne cryptografie van de <abbr title="Openbaar Vervoer">OV</abbr>-chipkaart is al een poosje (sinds 2005) gekraakt. Dat is ook niet iets waar je verbaasd over moet zijn. Uiteindelijk is met voldoende tijd en moeite elke vaste cryptografische sleutel te kraken.<br />
<br />
Inmiddels is er al software op internet te vinden waarmee iedereen met een <a href="http://nl.wikipedia.org/wiki/Radio_frequency_identification" title="Radio Frequency Identification">RFID</a> kaartlezer de inhoud van een chipkaart kan kopiëren en aanpassen. Zo kunnen ze dus kunstmatig hun saldo ophogen door het saldo aan te passen of hoog houden door oude kopieën van de gegevens op hun kaart terug te plaatsen.<br />
Ook is het nu mogelijk om je kaart zogenaamd "in te checken" op een station naar keuze. Het apparatuur van de conducteurs beschikt niet over de middelen om te checken met de servers van het hoofdkantoor of de kaart ook daadwerkelijk is ingecheckt, en controleert enkel of de op de kaart zelf staat dat deze is ingecheckt.<br />
<br />
<div style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;">
Je zal je nu misschien afvragen: hoe is het mogelijk dat éénieder de inhoud van de kaart kan wijzigen, en dat dit vervolgens geaccepteerd wordt door elke kaartlezer. Wel, het is heel simpel. Er valt zoals de kaarten nu gebruikt worden niet te verifiëren door wie de data op de kaart als laatste is aangepast.</div>
<br />
De eerstgenoemde methode is nog vrij makkelijk achteraf te detecteren, aangezien elke kaart een ID heeft, en de hoofdcentrale van <a href="http://www.translink.nl/">Trans Link Systems</a> weet hoeveel saldo er op een elke kaart zou moeten staan achteraf worden alle check-ins bij een dagelijkse "sync" gecontroleerd, en zullen kaarten waarbij de aangegeven saldo niet overeenkomt met wat er op zou moeten staan worden geblokkeerd.<br />
De tweede methode is <a href="http://tweakers.net/nieuws/72918/tls-trekt-vijf-jaar-uit-voor-vervanging-mifare-chip.html">vooralsnog niet te detecteren</a>. Waarschijnlijk omdat de kaartleesapparatuur van de conducteurs nog geen gegevens bijhoudt over hoeveel saldo er stond op elke kaart die ze gelezen hebben, en er ook nog geen procedure is om deze gegevens na elke dienst te uploaden naar de centrale servers van TLS.<br />
<br />
<h3>
De niet-oplossing</h3>
<a href="http://www.translink.nl/content.asp?languageID=NL&pageID=32&itemID=38&ref=/content.asp%3FlanguageID%3DNL%26pageID%3D32">Het antwoord van TLS</a>: Ze zijn (betere) fraudedectiestystemen aan het ontwikkelen, en ze willen in de loop van vijf jaar nieuwere, zogenaamd beter beveiligde, SmartMX-chips introduceren...<br />
Het is heel erg teleurstellend dat <abbr title="Trans Link Systems">TLS</abbr> op de proppen komt met zo'n hersenloze oplossing. Ten eerste zijn de oude kaarten nog een lange tijd geldig (tenzij je mensen dwingt over te stappen op de nieuwe kaart, TLS heeft echter zelf aan aangegeven dat ze dat niet van plan zijn) wat dus het probleem de komende vijf jaar nog niet oplost. En ten tweede kan je op je vingers natellen dat deze nieuwe chips net zo rap gekraakt zullen worden als de vorige. Bovendien zijn fraudedectiesystemen enkel in staat de fraude achteraf op te sporen. En het zal niet lang duren voordat fraudeurs nieuwe truuks vinden om om de detectie heen te komen.<br />
Maar waar ik echt boos om maak is het feit dat het probleem met de huidige kaarten net zo makkelijk op te lossen is. Geen nieuwe chips, geen fraudedetectiesystemen, geen vervolgingen, en de huidige kaarten zullen over tien jaar net zo veilig zijn als nu.<br />
<br />
Ja, je leest het goed. Jouw belastingcenten worden verspild aan zaken die van het begin af aan al voorkomen hadden kunnen worden, als TLS een beetje snuggere programmeurs in dienst had gehad.<br />
<br />
<h3>
De oplossing</h3>
Door aanpassingen in de software kan worden voorkomen dat er überhaupt ooit fraude gepleegd wordt. Het grote probleem van de overheid en de ontwikkelaars van het hele OV-chipkaart systeem is namelijk dat ze teveel focussen op het versleutelen en verbergen van gegevens. Terwijl het probleem een hele andere is: Namelijk het kunnen _verifiëren_ of gegevens op de kaart wel op de kaart zijn gezet door de juiste partij. Geen enkele cryptografie is zo sterk dat deze nooit gebroken kan worden, dus daar moet je ook nooit vanuit gaan. Als je mindset er één is dat je er sowieso vanuit gaat de je cryptografische sleutels gebroken worden, dan word je gedwongen creatievere oplossingen te verzinnen.<br />
Terwijl ik het deze week met een collega, die zelf ook in zijn vrije tijd met RFID chips speelt, had over de problemen met de OV-chipkaart, kwam spontaan de oplossing bij me op. Als de check-ins gesigned zouden worden, dat wil zeggen voorzien van een digitale handtekening, zou je makkelijk kunnen controleren of de signature klopt. En Hoe langer ik er over nadacht, des te meer ik ervan overtuigd raakte dat dit _de_ oplossing is, en des te kwader ik werd dat dit niet door de programmeurs, die waarschijnlijk een stuk beter betaald krijgen, en hoger opgeleid zijn dan ik, bij TLS verzonnen had kunnen worden.<br />
<br />
Natuurlijk komt mijn idee om de check-ins te signen niet zomaar uit de lucht vallen. In verband met mijn werk bij <a href="https://www.transip.nl/">TransIP</a> zit ik namelijk bovenop de ontwikkelingen ontremt <abbr title="Domain Name System Security Extensions">DNSSEC</abbr>. <a href="http://en.wikipedia.org/wiki/Domain_Name_System_Security_Extensions">DNSSEC</a> is een uitbreiding op het <abbr title="Domain Name System">DNS</abbr> protocol waarbij DNS entries voorzien worden van signatures zodat de validiteit van DNS requests kan worden geverifieerd. Dit is nodig omdat het DNS protocol gevoelig is voor zogenaamde man-in-the-middle attacks, waarbij een server van een kwaadwillend persoon zich voordoet als een legitieme DNS server, en zo aangepaste DNS records terugstuurt, waardoor webbrowsers naar andere sites kunnen worden geleid, zoals bijvoorbeeld phishing-sites.<br />
<table align="center" cellpadding="0" cellspacing="0" class="tr-caption-container" style="margin-left: auto; margin-right: auto; text-align: center;"><tbody>
<tr><td style="text-align: center;"><a href="https://lh5.googleusercontent.com/-zap8FNZu4a8/TXa5heHZc8I/AAAAAAAAHbw/2vXUvwBj8_Y/s1600/1.+DNS+%2528zonder+DNSSEC%2529.png" imageanchor="1" style="margin-left: auto; margin-right: auto;"><img border="0" height="165" src="https://lh5.googleusercontent.com/-zap8FNZu4a8/TXa5heHZc8I/AAAAAAAAHbw/2vXUvwBj8_Y/s400/1.+DNS+%2528zonder+DNSSEC%2529.png" width="400" /></a></td></tr>
<tr><td class="tr-caption" style="text-align: center;">Hier zie je de normale werking van DNS zonder DNSSEC. De client vraagt om het IP dat bij een domein hoort, en de DNS levert het IP en vervolgens kan de informatie van de webserver horend bij het domein opgehaald worden.</td></tr>
</tbody></table>
<table align="center" cellpadding="0" cellspacing="0" class="tr-caption-container" style="margin-left: auto; margin-right: auto; text-align: center;"><tbody>
<tr><td style="text-align: center;"><a href="https://lh6.googleusercontent.com/-DiwrM52iWgM/TXa59mHh7dI/AAAAAAAAHb0/BfMyKvWwHJ0/s1600/2.+DNS+-+man-in-the-middle+aanval.png" imageanchor="1" style="margin-left: auto; margin-right: auto;"><img border="0" height="166" src="https://lh6.googleusercontent.com/-DiwrM52iWgM/TXa59mHh7dI/AAAAAAAAHb0/BfMyKvWwHJ0/s400/2.+DNS+-+man-in-the-middle+aanval.png" width="400" /></a></td></tr>
<tr><td class="tr-caption" style="text-align: center;">Bij een man-in-the-middle aanval doet een aanvaller zich voor als een DNS server, waardoor de de client naar een alternatieve webserver geleid kan worden.</td></tr>
</tbody></table>
<br />
Wel nu. Vervang de DNS server in voorgaande verhaal met een NS-checkin paal, de webbrowser met de RFID lezer van de conducteur en de man-in-the-middle met een laptop+kaartlezer die nep incheckt, en je ziet al snel heel veel overeenkomsten tussen de twee situaties.<br />
<br />
<table align="center" cellpadding="0" cellspacing="0" class="tr-caption-container" style="margin-left: auto; margin-right: auto; text-align: center;"><tbody>
<tr><td style="text-align: center;"><a href="https://lh6.googleusercontent.com/-D7AXNZDC-mw/TXa6Z_3sJJI/AAAAAAAAHb4/hv2AyO3iA-k/s1600/5.+OV-chipkaart+-+man-in-the-middle+aanval.png" imageanchor="1" style="margin-left: auto; margin-right: auto;"><img border="0" height="166" src="https://lh6.googleusercontent.com/-D7AXNZDC-mw/TXa6Z_3sJJI/AAAAAAAAHb4/hv2AyO3iA-k/s400/5.+OV-chipkaart+-+man-in-the-middle+aanval.png" width="400" /></a></td></tr>
<tr><td class="tr-caption" style="text-align: center;">Dit is de "man-in-the-middle" variant van de OV-chipkaart. Met behulp van een computer kan de inhoud van een OV-chipkaart bijten de checkin-paal om gewijzigd worden, zonder dat de gegevens gevalideerd kunnen worden.</td></tr>
</tbody></table>
Toen de veiligheidsproblemen van DNS aan het licht kwamen, is bewust niet gekozen voor <a href="http://nl.wikipedia.org/wiki/Secure_Sockets_Layer" title="Secure Sockets Layer">SSL</a>, <abbr title="Transport Layer Security">TLS</abbr> of een andere vorm van encryptie. De voornaamste reden hiervoor is dat, aangezien vrijwel het gehele internet afhankelijk is van DNSSEC, er gekozen moest worden voor een backwards-compatible oplossing. Daarnaast zou encryptie alleen maar meer overhead creëren, waardoor DNS requests veel langer zouden duren, en veel meer wereldwijde traffic zouden genereren. Sowieso is encryptie overkill als je bedenkt dat DNS records gewoon publieke informatie zijn.<br />
<table align="center" cellpadding="0" cellspacing="0" class="tr-caption-container" style="margin-left: auto; margin-right: auto; text-align: center;"><tbody>
<tr><td style="text-align: center;"><a href="https://lh4.googleusercontent.com/-QIOyblhKHUI/TXa7C1JKuSI/AAAAAAAAHb8/GzeCuoXpkKk/s1600/3.+DNS+%2528met+DNSSEC%2529.png" imageanchor="1" style="margin-left: auto; margin-right: auto;"><img border="0" height="166" src="https://lh4.googleusercontent.com/-QIOyblhKHUI/TXa7C1JKuSI/AAAAAAAAHb8/GzeCuoXpkKk/s400/3.+DNS+%2528met+DNSSEC%2529.png" width="400" /></a></td></tr>
<tr><td class="tr-caption" style="text-align: center;">Met behulp van DNSSEC kan de validiteit van een DNS record gevalideerd worden aan de hand van de signature.</td></tr>
</tbody></table>
<table align="center" cellpadding="0" cellspacing="0" class="tr-caption-container" style="margin-left: auto; margin-right: auto; text-align: center;"><tbody>
<tr><td style="text-align: center;"><a href="https://lh4.googleusercontent.com/-FjGZAE_GQ44/TXa7XD8tWuI/AAAAAAAAHcA/GXpKqEhmjWo/s1600/4.+DNS+-+DNSSEC+vs+man-in-the-middle+aanval.png" imageanchor="1" style="margin-left: auto; margin-right: auto;"><img border="0" height="166" src="https://lh4.googleusercontent.com/-FjGZAE_GQ44/TXa7XD8tWuI/AAAAAAAAHcA/GXpKqEhmjWo/s400/4.+DNS+-+DNSSEC+vs+man-in-the-middle+aanval.png" width="400" /></a></td></tr>
<tr><td class="tr-caption" style="text-align: center;">In het geval van een man-in-the-middle aanval zal de aanvaller niet in staat zijn de juiste signature te genereren, aangezien hij niet over de correcte private key beschikt.</td></tr>
</tbody></table>
Nu terug naar de OV-chipkaart. We hebben hetzelfde man-in-the-middle probleem. We hebben ook gezien dat (betere) encryptie, hoewel de persoonlijke OV-chipkaart wel degelijk persoonlijke informatie als naam en geboortedatum bevat, niet de oplossing is. -Nieuwe chips met nieuwe vormen van encryptie zullen in een kwestie van weken ook gekraakt zijn.- Uiteindelijk draait het nog maar om één ding: dat te achterhalen moet zijn of de gegevens op de kaart een legitieme oorsprong hebben.<br />
<br />
Hoe gaat dit alles in zijn werk? Wel, er zullen enkele aanpassingen gemaakt moeten worden in de software van de incheckapparaten, en de software van de checkapparaten van de conducteurs. Bij het inchecken wordt, naast de gebruikelijke gegevens die op de kaart worden weggeschreven, een digitale handtekening weggeschreven, inclusief een publieke sleutel die gebruikt kan worden om deze te verifieren. Bovendien wordt er nog een extra controle-veld meegeschreven om deze publieke sleutel weer te verifiëren.<br />
Zoals ik al zei: de truuk is om er bij voorbaat vanuit te gaan dat alles gekraakt zal worden. Zelfs signing keys worden op den duur gekraakt. Het mooie van dit systeem is echter dat het niet uit maakt of het gekraakt wordt. Let op:<br />
<br />
De check-in informatie wordt immers gesigned aan de hand van een private key op het check-in apparaat. Dit hoeft geen sterke key te zijn, hij zal namelijk sowieso maar, laten we zeggen, twee dagen geldig zijn. (Of minder, ik heb geen idee hoe lang een check-in maximaal geldig kan zijn.) Dat betekent dat, zelfs als het een kraker lukt om binnen die tijd deze sleutel te kraken, hij na die twee dagen weer een nieuwe sleutel moet kraken. Dat is ook de reden dat de publieke key mee moet op de kaart. Deze wordt immers gegenereerd samen met de private key.<br />
<br />
De controlehash op de kaart dient om te verifieren of de key _zelf_ wel door een geautoriseerd apparaat is gegenereerd, en niet door iemand thuis. De private/public keys op het check-in apparaat worden namelijk zelf ook gesigned aan de hand van de zogenaamde key signing key (KSK). Deze Key Signing Key is een veel sterkere sleutel (4096-bit of hoger) aangezien deze maximaal een jaar mee moet kunnen gaan.<br />
<br />
Wij gaan er echter, zoals het hoort, weer vanuit dat ook deze sleutel op een gegeven moment gekraakt kan worden, of wellicht gestolen (door een check-in paal af te breken een mee te nemen). Wanneer dit gebeurd kan deze echter onmiddellijk een nieuwe sleutel uitgerold worden, en de oude revoked worden. Omdat de check-in key maar zo kort geldig is, is de periode waarin de oude KSK nog onderstuend en dus gebruikt kan worden nooit langer dan 2 dagen. Dan kan onze fraudeur weer een 4096-bit key gaan proberen te kraken, of een andere check-in paal gaan slopen.<br />
<br />
Met deze controlegegevens op de kaart is vervolgens altijd te controleren of de data werkelijk is aangepast door een apparaat dat daar de juiste sleutel voor heeft. Zo niet, dan kan deze worden afgewezen.<br />
<table align="center" cellpadding="0" cellspacing="0" class="tr-caption-container" style="margin-left: auto; margin-right: auto; text-align: center;"><tbody>
<tr><td style="text-align: center;"><a href="https://lh3.googleusercontent.com/-LJA-3QQGVDI/TXa75g1qiKI/AAAAAAAAHcE/umggdELAoEw/s1600/6.+OV-chipkaart+met+signatures.png" imageanchor="1" style="margin-left: auto; margin-right: auto;"><img border="0" height="166" src="https://lh3.googleusercontent.com/-LJA-3QQGVDI/TXa75g1qiKI/AAAAAAAAHcE/umggdELAoEw/s400/6.+OV-chipkaart+met+signatures.png" width="400" /></a></td></tr>
<tr><td class="tr-caption" style="text-align: center;">Bij een OV-chipkaart met signatures zijn de gegevens op de kaart altijd te valideren, a la DNSSEC.</td></tr>
</tbody></table>
<table align="center" cellpadding="0" cellspacing="0" class="tr-caption-container" style="margin-left: auto; margin-right: auto; text-align: center;"><tbody>
<tr><td style="text-align: center;"><a href="https://lh5.googleusercontent.com/-6DZv8k2kRD8/TXa8MEWCXPI/AAAAAAAAHcI/ddwWPSyE-2A/s1600/7.+OV-chipkaart+met+signatures.png" imageanchor="1" style="margin-left: auto; margin-right: auto;"><img border="0" height="166" src="https://lh5.googleusercontent.com/-6DZv8k2kRD8/TXa8MEWCXPI/AAAAAAAAHcI/ddwWPSyE-2A/s400/7.+OV-chipkaart+met+signatures.png" width="400" /></a></td></tr>
<tr><td class="tr-caption" style="text-align: center;">En net als bij DNSSEC zal een </td></tr>
</tbody></table>
<br />
Je leest het, de onnozelheid van onze overheid en transportbedrijven kost ons weer klauwen met geld. Wel goed. De oplossing voor alle problemen heeft u zojuist kunnen lezen. Misschien dat iemand bij TLS dit ooit leest. Misschien dat hij zelfs nog wel wil toegeven dat dit inderdaad de oplossing zou kunnen zijn. Maar ik heb er een hard hoofd in dat het er ooit nog van komt. Mocht jij er optimistischer over zijn, voel je dan vrij om deze post door te linken, sturen of <a href="http://twitter.com/home?status=OV-chipkaart:%20De%20oplossing:%20http://bit.ly/f6x6Do" target="_blank">tweeten</a>. Misschien dat we iemand ergens wakker kunnen schudden en dit OV-chipkaart fiasco eindelijk eens kunnen beëindigen.Yogarinehttp://www.blogger.com/profile/09879815475926786440noreply@blogger.com20tag:blogger.com,1999:blog-13974459.post-56378117172540599102010-07-23T13:29:00.011+02:002018-07-03T13:33:36.481+02:00Ubuntu packages for Eclipse EPIC, bzr, ADT and CDT<p>Hi all,</p>
<p>Good news. I just uploaded packages for Eclipse EPIC (Perl Editor and IDE), BzrEclipse and ADT (Android Development Tools) to <a href="http://blog.yogarine.com/2009/10/eclipse-plugin-packages-for-ubuntu.html">my PPA</a>.</p>
<p>Also, as some of you might have noticed, a while ago I've also added packages for Eclipse CDT (C/C++ Development Tools).</p>
<p>So if you're an EPIC, bzr, ADT or CDT user, now it only takes 30 seconds to set up your development environment. ;-) Check <a href="http://blog.yogarine.com/2009/10/eclipse-plugin-packages-for-ubuntu.html">my previous post</a> for installation instructions.</p>
<p>I hope these packages will be useful for some of you!</p>Yogarinehttp://www.blogger.com/profile/09879815475926786440noreply@blogger.com7tag:blogger.com,1999:blog-13974459.post-40284638759501783792009-10-29T21:42:00.013+01:002018-07-03T13:33:36.350+02:00Eclipse plugin PPA for Ubuntu<p>Since Ubuntu 9.10 "Karmic Koala" the universe repository _finally_ contains proper packages for Eclipse 3.5! However, it misses packages for many plugins, so I packaged some popular plugins and uploaded them to my Eclipse PPA.</p>
<p>You can add my repository by entering this on the terminal:<br/>
<code>sudo add-apt-repository ppa:yogarine/eclipse && sudo apt-get update</code></p>
<p>Now you can install the Eclipse plugins like you would any other application in Ubuntu, e.g.:<br/>
<code>sudo apt-get install eclipse-pdt</code></p>
<p>The following packages are available (among others):
<ul>
<li>eclipse-pdt (PHP Development Tools)</li>
<li>eclipse-cdt (C/C++ Development Tools)</li>
<li>eclipse-adt (Android Development Tools)</li>
<li>eclipse-wtp (Web Tools Platform)</li>
<li>eclipse-dtp (Data Tools Platform)</li>
<li>eclipse-bzr (Bazaar)</li>
<li>eclispe-subclipse (Subclipse)</li>
<li>eclipse-epic (Perl Editor and IDE)</li>
</ul></p>
<p>For a full list of available packages, and more info about this PPA, check <a href="http://bit.ly/eclipse-ppa">http://bit.ly/eclipse-ppa</a></p>
<p>Enjoy!</p>Yogarinehttp://www.blogger.com/profile/09879815475926786440noreply@blogger.com55tag:blogger.com,1999:blog-13974459.post-6476437956687201802009-08-11T12:57:00.007+02:002018-07-03T13:33:36.611+02:00Eclipse 3.5 "Galileo" packages for Ubuntu<p><strong>UPDATE 29/10/2009: Ubuntu 9.10 Karmic Koala finally has a proper Eclipse 3.5 packages, but you'll probably still be interested in my plugins: <a href="http://blog.yogarine.com/2009/10/eclipse-plugin-packages-for-ubuntu.html">take a look here</a></strong></p>
<p><strong>I've stopped providing packages for older versions of Ubuntu. I recommend you upgrade to at least Ubuntu 9.10.</strong></p>
<del><p>If you're both an Ubuntu user and a developer using Eclipse, you probably know about the humiliating state the Eclipse packages in the Ubuntu repository are in at the moment. The latest version available in Jaunty is Eclipse 3.2!</p>
<p>So I decided to set up a PPA with up-to-date eclipse packages and also packages for many of it's more popular plugins. To use it, just add the following line to your software sources list:
<code>deb http://ppa.launchpad.net/yogarine/eclipse/ubuntu jaunty main</code>
</p><p>And then run the following on the terminal to add my gpg key:
<code>wget http://www2.yogarine.com/eclipse-ppa.key -O- | sudo apt-key add - && sudo apt-get update</code></p>
<p>Now you can install my eclipse packages like you normally would, e.g.:
<code>sudo apt-get install eclipse-pdt</code>
Will install the Eclipse PHP Development Tools and all it's dependencies.</p>
<p>For a list of available packages and more info check:
<a href="https://edge.launchpad.net/~yogarine/+archive/eclipse">https://edge.launchpad.net/~yogarine/+archive/eclipse</a></p></del>Yogarinehttp://www.blogger.com/profile/09879815475926786440noreply@blogger.com26tag:blogger.com,1999:blog-13974459.post-72629944483948059152009-06-16T12:00:00.008+02:002010-07-21T12:04:45.016+02:00Opera Unite: the good, the bad and the ugly<p>So I tried out <a href="http://unite.opera.com/">Opera Unite</a>, and here are my first impressions:</p>
<p><strong>Good:</strong><br/>
<ul>
<li>The Opera Unite proxy that allows you to serve even behind a firewall, very nifty. Even experienced SysAdmin's have a hard time with this in some cases. The Opera Unite solution Just Works™.</li>
<li>Works fine cross-browser (on the client side)</li>
</ul></p>
<p><strong>Bad:</strong><br/>
<ul>
<li>No option to use Opera Unite with your own domain or proxy (very proprietary to me)</li>
<li>No way to backup/sync collection of installed services.</li>
<li>No real open social network framework features included, as I had hoped...</li>
<li>PHP? Python? Java?</li>
</ul></p>
<p><strong>Ugly:</strong><br/>
<ul>
<li>The Opera Unite server simply is terminated when you close Opera, without warning! FAIL!</li>
<li>No auto-update functionality for installed services</li>
<li>Force-reinstall to reactivate a deleted service, huh?</li>
</ul></p>
<p>So basically all you get is a very fancy proxy for hosting pages with server-side JavaScript, all baked into a proprietary browser, accessible from a proprietary domain...</p>
<p>Good idea for a Firefox Extension though... ;-) Oh wait! That <a href="https://addons.mozilla.org/en-US/firefox/addon/3002">allready exists</a> (well except for the proxy part anyway)!</p>Yogarinehttp://www.blogger.com/profile/09879815475926786440noreply@blogger.com0tag:blogger.com,1999:blog-13974459.post-13210535746829063332009-06-04T09:46:00.002+02:002009-06-04T10:38:49.076+02:00Status update<p>Hey folks, it's been a while since I posted. Just for my future referral (I don't keep a diary), and the interest of anyone that cares, I thought I'd sum up what I've been up to lately.</p> <p>In December or so I decided I got fed up with Brazil (more about that in future posts) and started planning my trip back to Holland. So I quit my job in February and left for Holland end of march.
Thanks to the fact that I actively started looking for a job in the Netherlands as early as January it didn't take me long to get a new job in the Netherlands. So in April I started my new job as web developer at <a href="http://www.q-pon.nl">Q-pon</a>.</p> <p>So, as for <a href="https://launchpad.net/vulpes">Vulpes</a>, that project is currently on hold due to lack of free time on my part. If anyone wishes to continue development on Vulpes, let me know!
<a href="https://launchpad.net/libfox">LibFox</a>, on the other hand, is now being developed on in an internal branch at Q-pon. Though I still need to ask my boss for permission to distribute the changes. There are some really neat new features in there though.</p> <p>I also finally got myself a proper phone, a <a href="http://en.wikipedia.org/wiki/HTC_Dream">T-Mobile G1</a>. :-) It's thanks to this phone that I finally have time to write on my blog again. (This post was written on my G1 in the train to work.) </p> <p>So that's it for now. I will be following up soon with some more stuff I have been wanting to write down for a while now. Stay tuned.</p>Yogarinehttp://www.blogger.com/profile/09879815475926786440noreply@blogger.com1tag:blogger.com,1999:blog-13974459.post-78607527319160390342009-01-29T00:54:00.006+01:002009-01-29T15:09:53.149+01:00Seven things you probably don't know about meHappy new year! (oh and Mery Christmas as well...)
Yeah that's really late, I've been just really busy lately. And <a href="http://twitter.com/yogarine">twitter</a> also has reduced my need to post.
Anyway, I got <a href="http://blog.feliperibeiro.com/2009/01/seven-things-you-probably-dont-know-about-me.html">tagged</a> by <a href="http://feliperibeiro.com/">Felipe Ribeiro</a> to follow some meme that seems to be hip in the PHP community right now, and since he speaks so highly of me (<q>crazy dutch nerd troll</q>) I guess I'm obliged to follow his lead. ;-) So here we go, seven things you probably don't know about me:
1. I started coding with <a href="http://en.wikipedia.org/wiki/BASIC">BASIC</a> on an old <a href="http://en.wikipedia.org/wiki/Commodore_128">C128</a> and later an <a href="http://en.wikipedia.org/wiki/Atari_8-bit_family">Atari XE</a>, when I was about 11-12 years old, way back in 1995.
2. I spend the whole day listening to game soundtracks, movie soundtracks and <a href="http://www.ocremix.org">game soundtrack ReMixes</a> while I work.
3. I'm shortsighted (<a href="http://en.wikipedia.org/wiki/Miopia">myopic</a>) and use <a href="http://en.wikipedia.org/wiki/Contact_lens">contact lenses</a>. 6.5 degrees in the left eye, and 6.0 in the right eye.
4. I'm heavily addicted to <a href="http://en.wikipedia.org/wiki/Caffeine">caffeine</a>. On average I drink 4 to 5 cups of coffee per day. To detoxify I need to stay off the coffee for at least 7 days. Whenever I try I give up after one day because of the headache it causes. :-P
5. I'm <a href="http://en.wikipedia.org/wiki/Epilepsy">epileptic</a>.
6. The name "Yogarine" comes from a Dutch salad sauce called "Yogorine", which is a form of "Yogonaise": <a href="http://en.wikipedia.org/wiki/Mayonaise">Mayonaise</a> mixed with <a href="http://en.wikipedia.org/wiki/Yoghurt">Yoghurt</a>. Most people say it fits me well because I'm kinda... Yaknow... pale.
7. I'm an <a href="http://en.wikipedia.org/wiki/Atheism">atheist</a>, <a href="http://en.wikipedia.org/wiki/Materialism">materialist</a> and <a href="http://en.wikipedia.org/wiki/Critical_rationalism">critical rationalist</a>.
There you go, seven things you <del>don't</del> <ins>didn't</ins> know about me. Now you can all see what a wonderful, interesting and genius person I am!
Anyway, now it's my turn to tag. *evil laughter* Aaaaand I choose you:
- <a href="http://joostruis.blogspot.com/">Joost Ruis</a>, another crazy Dutch nerd.
- <a href="http://rosivaldo.googlepages.com/">Rosivaldo Azevedo</a>, even though he doesn't have a blog. He'd better create one!
- <a href="http://www.splitbrain.org/">Andreas Gohr</a>, a PHP developer I secretly admire, responsible for <a href="http://www.dokuwiki.org/dokuwiki">DokuWiki</a>.
- <a href="http://www.marcosjr.info/">Marcos Júnior</a>
- <a href="http://theoziran.org/">Theoziran Lima</a>
- <a href="http://www.verzijlbergh.com/">Björn Verzijlbergh</a>, another Dutch guy.
- <a href="http://nerdson.com/">Karlisson Bezerra</a>, faz um quadrinho, vai!
Well guys, here are the rules:
- Link your Original tagger(s), and list these rules on you blog
- Share seven facts about yourself in the post - some random, some weird.
- Tag seven people at the end of your post by leaving their names and the links to their blogs.
- Let them know they’ve been tagged by leaving a comment on their blogs and/or Twitter.
Have fun! ;-)Yogarinehttp://www.blogger.com/profile/09879815475926786440noreply@blogger.com0tag:blogger.com,1999:blog-13974459.post-83941696340365716202008-10-09T14:45:00.005+02:002008-10-09T16:43:58.517+02:00A look at Opera 9.6Opera 9.6 got released recently, and I decided to take a look at it to see if it has anything to offer over the <a href="http://www.getfirefox.com/">Firefox</a>+<a href="http://www.naan.net/trac/wiki/TwitterFox">Twitterfox</a>+<a href="http://www.foxmarks.com/">Foxmarks</a>+<a href="http://flashgot.net/">FlashGot</a>+<a href="http://getfiregpg.org/">FireGPG</a>+<a href="https://wiki.mozilla.org/Labs/Ubiquity">Ubiquity</a> combination that I'm using now.
One of the things I like about Opera is that they take the Linux crowd seriously. Their site offers binaries for every major distro. Installing Opera in Ubuntu is as simple as downloading the .deb, and installing it by double-clicking it.
Then then the Opera <acronym title="End User License Agreement">EULA</acronym> showed up. Since it isn't a particulary lengthy license, and I wondered why a freeware program like Opera would even need an EULA, I read it through. Then I stumbled upon the following:
<blockquote>YOU ACKNOWLEDGE THAT THE SOFTWARE IS NOT INTENDED FOR USE IN (I) ON-LINE CONTROL OF AIRCRAFT, AIR TRAFFIC, AIRCRAFT NAVIGATION OR AIRCRAFT COMMUNICATIONS; OR (II) IN THE DESIGN, CONSTRUCTION, OPERATION OR MAINTENANCE OF ANY NUCLEAR FACILITY.</blockquote>
<acronym title="laughing out load">lol</acronym>. Tipical legal absurdaties like these really made me consider not agreeing to the license, but what the heck, I agreed.
The new theme is very vista-ish, and doesn't integrate with my Ubuntu theme at all. I also really wonder when they will switch from QT3 to QT4. (So much for Opera taking Linux serious I guess.) Sure, Opera is completely skinnable, but the menu still looks... ugly. And you can't guarantee a skin is available that fits with my desktop theme.
Anyway, let's look at features.
Let's start with my bookmarks. Hey, Opera didn't import my Firefox bookmarks! There is [File]->[Import]->[Import Netscape/Firefox Bookmarks] but it doesn't offer support for the new Firefox3 SQLite format. So I first have to export my Firefox bookmarks to HTML, blah. Anyway, after importing they are all placed in a "Netscape bookmarks" subfolder. No problem, just manage my bookmarks and reorganise things. :-)
Opera has a quicksearch from the address bar just like Firefox, which is notably faster. It doesn't have a quick bookmark button like Firefox does, which is one of the things I love about Firefox 3. The quickest way to bookmark in Opera is Ctrl+D, which still pops up a window. The other means are two or three clicks away.
Okay, now sync my favorites! [File]->[Syncronize Opera]. There... Now my bookmarks are synced! Yay! Gah! Wait! It seems I had already synced my bookmarks before (probably when I tried Opera 9.2) and now... All my old bookmarks got added as well! So now most of my bookmark folders show up two times! Argh! What lame syncing method are they using at Opera? It doesn't even filter out the doubles! *sigh* Okay, let me filter out the old folders. Done...
Opera also doesn't allow me to subscribe to feeds using Google Reader, instead subscribing it to it's own feed reader, which sucks. Who needs freedom of choice anyway? Grrr. Also it's feed autodiscovery sucks.
Next: Twitter. I easily found a neat Twitter widget. But it always keeps a windows open... Crap. No match for TwitterFox. Ah well, I could still use a desktop twitter client I guess. ;-)
Download manager integration? Couldn't find it... But I guess there's nothing wrong with Opera's built in download manager.
Opera's mail client also doesn't offer GPG integration. Meh. I also couldn't find anything like FireGPG. And it doesn't even have check-spelling-as-you-type. Crap.
Finally, I couldn't find anything matching Ubiquity either.
So I hereby declare that Opera 9.60 still can't match Firefox 3. Even though it _is_ much faster and it interface is much snappier than Firefox overall. It won't make me more productive...
sudo apt-get --purge remove operaYogarinehttp://www.blogger.com/profile/09879815475926786440noreply@blogger.com4tag:blogger.com,1999:blog-13974459.post-78271901064239963232008-10-07T20:06:00.007+02:002008-10-07T20:19:24.916+02:00My DesktopAfter reading <a href="http://www.splitbrain.org/blog/2008-09/28-because_everybody_is_doing_it">this post</a>, I simply couldn't resist posting my Desktop:
<a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://4.bp.blogspot.com/_4abn2pGpgIQ/SOum9PSuSSI/AAAAAAAAC8w/83JCWo8wbm8/s1600-h/Screenshot.png"><img style="margin: 0px auto 10px; display: block; text-align: center; cursor: pointer;" src="http://4.bp.blogspot.com/_4abn2pGpgIQ/SOum9PSuSSI/AAAAAAAAC8w/83JCWo8wbm8/s400/Screenshot.png" alt="" id="BLOGGER_PHOTO_ID_5254476961265109282" border="0" /></a>Yup, that's my son.
<a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://4.bp.blogspot.com/_4abn2pGpgIQ/SOunOwwn9tI/AAAAAAAAC84/tjcGfiPJnyM/s1600-h/Screenshot-1.png"><img style="margin: 0px auto 10px; display: block; text-align: center; cursor: pointer;" src="http://4.bp.blogspot.com/_4abn2pGpgIQ/SOunOwwn9tI/AAAAAAAAC84/tjcGfiPJnyM/s400/Screenshot-1.png" alt="" id="BLOGGER_PHOTO_ID_5254477262306670290" border="0" /></a>
Eclipse and Firefox. Everything a web developer needs. ;-)Yogarinehttp://www.blogger.com/profile/09879815475926786440noreply@blogger.com0tag:blogger.com,1999:blog-13974459.post-42194880503907720342008-10-03T21:32:00.002+02:002008-10-03T21:35:08.294+02:00Pandora: Open Source handheldWow, I'm definitly getting one of these. It's a homebrewers wet dream come true:
<blockquote>"How did this system come to be?
The Pandora is a unique machine. It was designed based on the input of thousands of forum users with one goal in mind - to make the ultimate open source handheld device.
How powerful is it?
It is by far the most powerful handheld in the world both in terms of raw CPU power and 3D graphics capability, it will be able to handle things such as Firefox3 or Quake3 with ease."</blockquote>
<a href="http://openpandora.org/">http://openpandora.org/</a>Yogarinehttp://www.blogger.com/profile/09879815475926786440noreply@blogger.com1tag:blogger.com,1999:blog-13974459.post-81155167492890085672008-08-28T22:54:00.002+02:002008-09-11T04:06:19.414+02:00Hug a developer today!<object width="425" height="344"><param name="movie" value="http://www.youtube.com/v/1lqxORnQARw&hl=en&fs=1"></param><param name="allowFullScreen" value="true"></param><embed src="http://www.youtube.com/v/1lqxORnQARw&hl=en&fs=1" type="application/x-shockwave-flash" allowfullscreen="true" width="425" height="344"></embed></object>
Not everyone at once please! <;o)Yogarinehttp://www.blogger.com/profile/09879815475926786440noreply@blogger.com0tag:blogger.com,1999:blog-13974459.post-74745383968969299572008-04-27T16:32:00.007+02:002009-11-24T18:30:03.654+01:00Get your compile optimizations straightI guess that 90% of all Desktop Linux users probably will never ever have to worry about this, since they'll never compile a single executable in their life. But for people that occasionally compile a program, this post might be interesting, especially since I never ever see people writing about this subject when they talk about compiling programs from scratch.
You see, when you compile C/C++ programs on Linux, the compiler (GCC in almost all cases) allows you to set special options to optimize the program for use on a certain CPU model. However, if these options aren't set then any source package you compile will be compiled with whatever default optimization settings the author has set for you. Often this will mean your program will be optimised for generic i686 (Pentium 2/AMD K6-2) processors, with little extra optimization and in some cases even debug signals enabled.
Fortunately it's pretty simple to set your own settings that should be used whenever you compile a program. Almost all make scripts use these three environment variables: CHOST, CFLAGS and CXXFLAGS.
First you need to figure out what the best flags for your CPU are. To find out exactly what kind of CPU you have, type <q>cat /proc/cpuinfo</q> on the terminal. After that head over to <a href="http://en.gentoo-wiki.com/wiki/Safe_Cflags">http://en.gentoo-wiki.com/wiki/Safe_Cflags</a> to find the best CFLAGS for your CPU.
Once you know what your CFLAGS are, you need to set them before you go compile your source package. Do this using the <q>export</q> command, like this:
<blockquote>export CHOST="i686-pc-linux-gnu"
export CFLAGS="-march=pentium4 -O2 -pipe -fomit-frame-pointer"
export CXXFLAGS="-march=pentium4 -O2 -pipe -fomit-frame-pointer"</blockquote>
You have to do this <strong>before</strong> you run the ./configure script for it to have any effect. Also, these variables only last for as lang as your have your terminal open. If you switch to another terminal, or close it, you'll have to export the CFLAGS again.
After this, your program should now compile with the CFLAGS you set, you can check this by keeping a close eye on the output when you run make.
So now you want to always have these CFLAGS set automatically whenever you start your computer and open a new terminal? Easy! Just edit /etc/environment and add your CFLAGS to that file (without the export part). After that you'll have to restart for the default environment settings to be applied.
One CFLAGS option that you might want to change depending on the program you are compiling is the -O# flag. It defines the optimization level used. -O2 stands for normal optimization, whereas -O1 stands for little optimization and -O3 for maximum optimization. The tradeoff for using -O3 instead of -O2 is mostly the memory usage of the program. So normally you'll only want to use -O3 for media programs that you don't run continually on your computer, like mplayer/ffmpeg etc. However when compiling an application that you run all the time, like Firefox, Pidgin or driver modules, I recommend you use -O2 because the small increase in CPU performance doesn't justify the increased memory usage. Besides, -O3 tends to make programs less stable as well.Yogarinehttp://www.blogger.com/profile/09879815475926786440noreply@blogger.com0tag:blogger.com,1999:blog-13974459.post-58408059300307178312008-04-15T21:58:00.007+02:002008-04-15T23:31:53.409+02:00Carambola<strong>[ENGLISH POST FOLLOWS]</strong>
Carambola é um software, escrito em PHP, de controle academico que eu desenvolvi quando eu estava trabalhando na Universade Estadual da Paraíba (UEPB), e ainda esta sendo usado la. (<a href="http://matricula.uepb.edu.br/">http://matricula.uepb.edu.br/</a>, <a href="http://alunos.uepb.edu.br/">http://alunos.uepb.edu.br/</a>) Eu sempre tive planos de ajeitar o codigo mais um pouco e começar um projeto direitinho, mais nunca tive o chance pra fazer isso.
Agora não trabalho mais na UEPB e por enquanto não tenho mais tempo para continuar o desenvolvimento de Carambola, mais resolvi lancar o codigo fonte aqui para que outros quem estão interesados em um Controle Academico completamente livre podem continuar. Sente-se a vontade de perguntar sobre duvidas, mandar patches ou relatar bugs aqui no meu blog.
Muitas coisas estao faltando (como uma forma de adicionar alunos ou disciplinas), então ainda tem muita coisa pra fazer.
Esta tudo licenciado pelo GPLv3, divertem-se! ;-)
<strong>Instruçoes:</strong>
Precisa de um servidor web (como Apache) com PHP, e MySQL.
Cria um novo banco de dados (exemplo: carambola)
Imprta carambola.sql pro teu novo banco de dados. Pode user phpMyAdmin ou rodar <q>mysql -u root -p carambola < carambola.sql</q>.
Copia connect.php-dist para connect.php e modifica ele para configura Carambola para teu banco de dados.
<strong>[ENGLISH]</strong>
Carambola is a piece of software, written in PHP, for academic controls (universities etc) that I developed while I was working at the State University of Paraíba (UEPB), and is still in use there. I always planned on cleaning up the code and create a proper project with a nice website for it, but never had a chance to do so.
Now I no longer work ate UEPB and I won't have time to continue working on Carambola any time soon, so I decided to release the source here to see if anyone else is interested in developing a completely free Academic Control system. Feel free to ask, send me patches or report bugs here on my blog.
Many things are still missing (like ways to actually add students or disciplinas), so there is still a lot of work to do here.
Everything is licensed under the GPLv3, enjoy! ;-)
<strong>Instructions:</strong>
You'll need a webserver with PHP configured, and MySQL.
Create a new db (for example: carambola)
Import the carambola.sql file into the newly created table. Either use phpMyAdmin or run <q>mysql -u root -p carambola < carambola.sql</q>.
Copy connect.php-dist to connect.php and configure it for your database.
<strong>[GET IT!]</strong>
Download: <a href="http://www2.yogarine.net/carambola-0.5.3.tar.bz2">http://www2.yogarine.net/carambola-0.5.3.tar.bz2</a>
Trunk:
<blockquote>svn co svn://svn.yogarine.net/carambola/trunk carambola</blockquote>
0.5.3 branch:
<blockquote>svn co svn://svn.yogarine.net/carambola/branches/0.5.3 carambola-0.5.3</blockquote>Yogarinehttp://www.blogger.com/profile/09879815475926786440noreply@blogger.com5tag:blogger.com,1999:blog-13974459.post-91443488042844262132008-04-14T20:36:00.005+02:002008-04-14T20:48:49.299+02:00JunoI saw Juno yesterday, (it's still in the cinema here in Brazil,) and now I have a new actrice to add to my favorite list (Ellen Page). I've also instantly become a fan of Diablo Cody. I'll be keeping a close eye on those two girls from now on. I'm just waiting to see what great movies we can expect from them.
We'll have some more of those, please!
<object width="425" height="355"><param name="movie" value="http://www.youtube.com/v/PdebyvYkLZ4&hl=en&rel=0&color1=0x2b405b&color2=0x6b8ab6"></param><param name="wmode" value="transparent"></param><embed src="http://www.youtube.com/v/PdebyvYkLZ4&hl=en&rel=0&color1=0x2b405b&color2=0x6b8ab6" type="application/x-shockwave-flash" wmode="transparent" width="425" height="355"></embed></object>Yogarinehttp://www.blogger.com/profile/09879815475926786440noreply@blogger.com0tag:blogger.com,1999:blog-13974459.post-47876606831369456072008-03-07T14:28:00.015+01:002009-08-14T10:04:40.492+02:00O homem realmente foi a luaAndré Basílio é um idiota.
Já faz um tempinho que um colega meu me mostrou o site <a href="http://www.afraudedoseculo.com.br/">http://www.afraudedoseculo.com.br/</a>, onde André mostra com "evidencias" que o homem nunca foi pra lua, e até hoje fico furioso quando eu leio a merda que essa cara fica falando.
Tudo bem, eu também não sou muito fã dos Americanos, mais não é certo aproveitar da ignorância dos outros para ganhar pontos como André faz. E sempre tem que respeitar as conquistas que um pais consegue fazer. E se tiver algo a reclamar, venha com boas evidencias. Está parecendo que André está com um tipo de inveja nacionalista.
Da pra ver que André 1.) não tem o mínimo conceito de fotografia, telecomunicações e física ou 2.) ele realmente quer enganar pessoas só para ganhar publicidade.
De toda forma ele é uma idiota. Odeio ele.
Vamos ver as "provas":
<strong>1. Existem diversas fotos com sombras em várias direções, sendo que a única fonte de luz deveria vir do Sol.</strong>
Os fotos a que André refere são fotos panorâmicas ou de grande ângulo... Todo mundo pode tirar fotos panorâmicos até com uma câmera simples. É só tirar um foto, virar um pouco pra a direita, tirar outro, virar um pouco mais... etc. Quando você for colar os fotos você vai perceber que as sombras apontem cada mais pra esquerda, porque você estava virando para a direita.<p></p><p align="left">Ate com fotos panorâmicas tirados com cameras especializados vc percebe que as sombras mudam de posição.</p><p align="left">Pareça que o câmera que o time do Apollo 11 levou pra a lua tinha um lente Biogon 38mm f/4.5 para tirar esse fotos panorâmicos... Com um anglo grande assim sempre acontece distorção. Mais quem não sabe porra nenhum de fotografia também não sabe disso né?
Mais informações:
<a title="http://en.wikipedia.org/wiki/Panoramic_photography" href="http://en.wikipedia.org/wiki/Panoramic_photography" id="h0qm">http://en.wikipedia.org/wiki/Panoramic_photography</a>
<a title="http://en.wikipedia.org/wiki/Hasselblad" href="http://en.wikipedia.org/wiki/Hasselblad" id="remh">http://en.wikipedia.org/wiki/Hasselblad</a>
<strong>2 - Fotos com diferentes tamanhos da Terra, vista da Lua, evidenciando montagens desproporcionais.</strong>
Já ouviu falar em "zoom"? Nas fotos que ele mostra ate da pra perceber que no foto onde a terra parece mais perto, o superfície da lua esta menos arrendado... Eles usarem mais zoom do que no outro foto.
<strong>3 - Existem milhares de fotos com penumbra, sendo que é impossível haver penumbra na Lua pela ausência da atmosfera.</strong>
Penumbra não tem nada a ver com a atmosfera, mais com o tamanho do do objeto iluminoso! Volta pra segundo grão pra estudar fisica! E pode ser o reflexo do chão e ate do outro astronauta (que tirou a foto) que ilumina um astronauta quando esta na sombra. As roupas das astronautas também são branco-claro enquanto a poeira na lua é cinza, por isso que as sombras no chão são mais escuros. (E ainda nem falei sobre o rango dinâmico da câmera, etc, etc...)
<strong>4 - Faltam as estrelas no fundo de todas as fotos. Com a ausência da atmosfera, as estrelas tornam-se ainda mais reluzentes.</strong>
O brilho das estrelas relativo aos objetos na lua e tão fraco que não aparecem no foto. Vai estudar fotografia rapaz...
<strong>5 - Nas fotos e vídeos, a bandeira dos EUA fica tremulando ao vento. Só que, não existe vento na Lua porque lá não há atmosfera.</strong>
Esta tremulando? Realmente? Você pode ver isso num FOTO? Incrível! Tudo bém, existe um video onde da pra ver a bandeira se mechendo... Na hora que ele colocado no solo. E como não tem a resistencia de uma atmosfera na lua, ele demora mais do que normal para ficar parado.
A bandeira foi segurado com um pequeno tubo, pra poder ficar em pé. Se esta parecendo que a bandeira fica tremulando é porque ele estava dobrado.
<strong>6 - Em centenas de fotos, vê-se as pegadas dos astronautas na Lua. Mas, sem oxigênio e umidade, é complicado que haja a formação de pegadas.</strong>
Que viajem é essa? Desde quando precisa de oxigênio e umidade para formar pegadas!? A lua é tudo coberto por poeira! Na poeira da pra formar pegadas como em qualquer outra substancia com bastante cohersia.
<strong>7 - Embaixo de um dos pés do Módulo Lunar, há indícios de alguém ter levado um montinho de terra para o pé não ficar no ar.</strong>
Os pés não são perfeitamente planos. E no impacto o pé empurrou a areia (Terra não é, né? A final estamos na LUA! <;o) pra os lados, criando um montinho.
<strong>8 - Pelo que se vê nas fotos, não houve pouso do Módulo Lunar. Ele teria sido colocado delicadamente lá. Não há marcas dos propulsores da nave.</strong>
Porque nas ultimas etapas do pouso quase não é preciso usar os propulsores, como a gravidade é apenas 1/6 do que da terra.
<strong>9 - No mesmo lugar onde o pé do astronauta cria uma profunda pegada na superfície lunar, o pé do módulo lunar se mostra muito delicado na superfície da Lua, sem causar qualquer estrago.</strong>
Os pegadas são "profundos"? Onde? A camada de poeira é fino... E também os pés são grandes e rondados e ainda mais tem QUATRO deles... Ja sentou com uma cadeira numa lugar irregular? Não ficou balançando?
<strong>10 - Pelo tamanho do Módulo Lunar, dificilmente existiria nele combustível suficiente para colocá-lo em órbita.</strong>
Na lua 1.) existe apenas 1/6 da gravidade da terra e 2.) não tem atmosfera pra causar resistência.
<strong>11 - Não existem, até hoje, filmes fotográficos que resistam à enorme variação de temperatura na Lua.</strong>
André diz: <em>"Segundo a NASA, as câmeras utilizadas para tirar as fotografias foram de modelo HASSELBLAD 500EL munidas de filme Kodak especial (vide <a href="http://www.hq.nasa.gov/alsj/a11/a11-hass.html">www.hq.nasa.gov/alsj/a11/a11-hass.html</a>) e de um revestimento de prata que foi colocado nas câmeras para deixá-las mais resistentes às variações térmicas, mas creio eu que não o suficiente para suportar as extremas variações de temperatura da Lua. A temperatura na Lua varia tanto, que seria impossível trazer de lá uma única fotografia para ser exibida na Terra. Só para se ter idéia, a temperatura na Lua varia de -153ºC à noite a +107ºC durante o dia, conforme dados obtidos na NASA no endereço <a href="http://solarsystem.nasa.gov/features/planets/moon/moon.html">http://solarsystem.nasa.gov/features/planets/moon/moon.html</a>."</em>
Ahh claro, VOCÊ creia que não é o suficiente. Pois... E eu com isso?
Para ser mais conciso: A temperatura da <em>superfície da Lua</em> varia de -153ºC a 107ºC, a Lua não tem atmosfera, lembra? E uma dia na Lua dura 28 dias, por isso que a temperatura do solo chega ate esses temperaturas... Um câmera revestida com prata reflete muito mais radiação do que o superfície da lua. No pouco tempo que eles usarem as câmeras (eles geralmente não andarem mais do que 7 horas por vez) a temperatura não mudaria tanto assim. Também pausarem nas sombras de vez em quando para esfriar. E de fato no Apollo 12 eles queimarem um câmera, apontando ele pro sol sem querer.
<strong>12 - Em 1969, os astronautas conversavam, da Lua, com a NASA, na Terra, em tempo real. Esta tecnologia não existe até hoje.</strong>
Tempo real? Tem algum fonte? Pelo que eu sei sempre tive um delay de ums 10 segundos? E esse delay não tem nada a ver com a tecnologia, mais com a velocidade de ondas radiografas. (300.000 km/s)
<strong>13 - A radiação solar incidente na Lua, sem atmosfera, é mortal para qualquer ser humano.</strong>
Posso saber, então, como os astronautas já desde das anos 80 conseguem fazer manutenção em satélites em plena espaço?
Vai se informar rapaz: <a title="http://en.wikipedia.org/wiki/Spacesuit" href="http://en.wikipedia.org/wiki/Spacesuit" id="p_c.">http://en.wikipedia.org/wiki/Spacesuit</a>
<strong>14 - Dificilmente existiriam roupas espaciais, na época, que resistissem às enormes variações de temperaturas da Lua (-153ºC a +107ºC).</strong>
Baseado em que?
Mais uma vez: Temperaturas da <em>superfície da Lua</em>. A roupa só precisa proteger contra o radiação (térmica, ultravioleta, etc)
<a title="http://en.wikipedia.org/wiki/Spacesuit" href="http://en.wikipedia.org/wiki/Spacesuit" id="hzts">http://en.wikipedia.org/wiki/Spacesuit</a>
<strong>15 - Dificilmente existiriam roupas espaciais, na época, que resistissem à ausência da pressão atmosférica na Lua.</strong>
Veja a minha resposta na pergunta 13.
<a title="http://en.wikipedia.org/wiki/Spacesuit" href="http://en.wikipedia.org/wiki/Spacesuit" id="baum">http://en.wikipedia.org/wiki/Spacesuit</a>
<strong>16 - Extrema semelhança do ambiente das fotos "da Lua" com o Deserto de Nevada, nos Estados Unidos.</strong>
<a title="http://en.wikipedia.org/wiki/Mojave_Desert" href="http://en.wikipedia.org/wiki/Mojave_Desert" id="ujv_">http://en.wikipedia.org/wiki/Mojave_Desert</a>
Você acha?
<strong>17 - Evidência de Stanley Kubrick na NASA, que teria a auxiliado na criação dos efeitos especiais utilizados na fraude.</strong>
Stanley Kubrick tava trabalhando junto com <a title="Arthur C. Clarke" href="http://en.wikipedia.org/wiki/Arthur_C._Clark">Arthur C. Clarke</a> na criação do filme 2001: A Space Odysee. Stanley Kubrick era uma perfeccionista e queria tudo o mais realista que possivel...
O imagem <a title="http://www.afraudedoseculo.com.br/images/kubrick3.jpg" href="http://www.afraudedoseculo.com.br/images/kubrick3.jpg" id="kylu">http://www.afraudedoseculo.com.br/images/kubrick3.jpg</a> é do set desse filme...
<strong>18 - O homem só teria ido à Lua por seis vezes, exatamente durante a gestão de Richard Nixon, num prazo de três anos. Após isso, nunca mais o homem teria voltado à Lua.</strong>
Em 1975 a guerra fria já estava se acalmando, e ainda mais tinha o crise econômico dos anos 70. Depois que a guerra fria acabou, não tive mais incentivo para ir pra lua...
E o projeto Apollo já começou na época de Kennedy e o presidente Johnson também ajudou muito no desenvolvimento do projeto Apollo.
<a title="http://en.wikipedia.org/wiki/Apollo-Soyuz_Test_Project" href="http://en.wikipedia.org/wiki/Apollo-Soyuz_Test_Project" id="suf6">http://en.wikipedia.org/wiki/Apollo-Soyuz_Test_Project</a>
<a title="http://en.wikipedia.org/wiki/Space_Race" href="http://en.wikipedia.org/wiki/Space_Race" id="fwg1">http://en.wikipedia.org/wiki/Space_Race</a>
<strong>19 - Richard Nixon, envolvido em falcatruas que mancharam a imagem dos Estados Unidos, foi o principal articulador do escandaloso Caso Watergate, o qual culminou em sua renúncia durante o primeiro processo de impeachment estadunidense. Sua história o condena.</strong>
E que isso tem a ver com a NASA? A final, ele só fez dar o dinheiro a eles.
E também isso não conta como fato, é apenas um insinuação.
<strong>20 - Evidência de manipulação na foto do "Jogo dos 7 erros" mostra várias cruzes distorcidas, mas tais cruzes não poderiam estar distorcidas nem mesmo por lentes objetivas, que ficam do lado externo da câmera, já que essas cruzes fazem parte de um recurso interno do equipamento.</strong>
Essa foi uma foto panorâmica, criado juntando várias fotos... Por isso que ocorre distorção. Se tivesse estudado fotografia você ia saber disso.
E ae, que você acha? O homem foi pra Lua ou não? Pensa antes de ir na onda de algum idiota que nem sabe do que esta falando.
<span style="font-weight: bold;">[UPDATE]</span>
Depois de ter escrito esse post, achei outros sites (em Inglés) que também falem sobre esse hoax:
<a href="http://www.badastronomy.com/bad/tv/foxapollo.html">http://www.badastronomy.com/bad/tv/foxapollo.html</a>
<a href="http://www.uwgb.edu/dutchs/PSEUDOSC/ConspiracyTheoryDidWeGototheMoon.htm">http://www.uwgb.edu/dutchs/PSEUDOSC/ConspiracyTheoryDidWeGototheMoon.htm</a>
<a href="http://www.braeunig.us/space/hoax.htm">http://www.braeunig.us/space/hoax.htm</a>
</p><p align="left">E André Basílio até ganhou um premio do dragão invisivel:
<a href="http://www.projetoockham.org/dragao_entrada.html">http://www.projetoockham.org/dragao_entrada.html</a>
</p><p align="left">Basicamente tão falando as mesmas coisas que eu, mas em mais detalhes. Se você quiser aprofundar mais nesse assunto, aqui é um bom começo: <a href="http://www.badastronomy.com/bad/misc/apollohoax.html">http://www.badastronomy.com/bad/misc/apollohoax.html</a></p>Yogarinehttp://www.blogger.com/profile/09879815475926786440noreply@blogger.com27tag:blogger.com,1999:blog-13974459.post-77903653973365622832008-03-03T03:50:00.003+01:002008-03-03T04:38:16.620+01:00Games I'd love to see ported to PSPList of open source games I'd love to see ported to the PlayStation Portable:
<ul><li><a href="http://www.wesnoth.org/">Battle for Wesnoth</a></li><li><a href="http://stargus.sourceforge.net/">Stargus</a> / <a href="http://wargus.sourceforge.net/">Wargus</a> /<a href="http://www.stratagus.org/">Strategus</a></li><li><a href="http://freeciv.wikia.com/">FreeCiv</a></li><li><a href="http://www.globulation2.org/">Globulation 2
</a></li><li><a href="http://www.warsow.net/">Warsow</a></li><li><a href="http://pingus.seul.org/">Pingus</a></li><li><a href="http://lincity-ng.berlios.de/">LinCity-NG</a></li></ul>Whenever I get the opportunity I'll probably have a look at Battle for Wesnoth. I was allready messing a bit with <a href="http://www.reptilelabour.com/software/chromium/">Chromium B.S.U.</a> but I got kinda stuck and just didn't have the time to really look at it properly. (I think it was trying to get libPNG or OpenAL to copile properly.) Anyway, last month I noticed <a href="http://royale.zerezo.com/">Royale</a> was allready taking care of a <a href="http://royale.zerezo.com/psp/">port of Chromium B.S.U. for the PSP</a>. I guess I'll grab his patch some day to at least learn what he did to get it working.
Battle for Wesnoth will probably be a lot more work though. And don't coun't on me having time for that anytime soon. ;)Yogarinehttp://www.blogger.com/profile/09879815475926786440noreply@blogger.com7tag:blogger.com,1999:blog-13974459.post-14366569747422377642008-02-24T13:17:00.008+01:002008-06-23T16:52:44.230+02:00Converting MP4 video for the PSP (h264/AVC) on LinuxAfter my <a href="http://yogarine.net/2006/11/encoding-psp-compliant-mp4-files-with.html">earlier post</a> about converting video for the PSP proved to be pretty popular, I decided to do a new, easier, better and improved guide.
Well, here it is, as promised. It took me a while because I had a lot of other things on my head the last few months. Well, better late then never, so they say.
This time we're going to do MPEG-4 AVC (aka H.264) instead of plain old MPEG-4 ASP I used in the last post.
A lot of things have happened since I wrote that other guide more than a year ago. First of all, I've learned a lot more about the PSP's compression techniques, mostly thanks to Robert Swain's <a href="http://rob.opendot.cl/">great blog</a>. Secondly, newer firmwares released by Sony have loosened up the restrictions for Video on the PSP. So first I'll show you a updated list of the restrictions for video on the PSP in AVC (AFAIK):<ul><li>MPEG-4 File Format</li><li>MPEG-4 AVC Video codec</li><ul><li>H.264 Main Profile up to Level 3.0</li><li>Any framerate up to 30 fps</li><li>Up to 2 reference frames</li><li>Arithmetic Coding (CABAC)</li><li>Width/Height must be a multiple of 16</li><li>Allowed Resolutions:</li><ul><li>Any resolution up to 320x240</li><li>352x240 (VCD)</li><li>352x480 (CVD)</li><li>480x272 (Native)</li><li>720x480 (DVD)</li></ul><li>No 8x8 transform
</li><li>No reference b-frames
</li></ul><li>MPEG-4 AAC Audio codec</li><ul><li>48000 kHz</li></ul></ul>We no longer have to use the command-line tool ffmpeg, thanks to a great piece of software called <a href="http://fixounet.free.fr/avidemux/">Avidemux</a>. If you're using Ubuntu 8.04 LTS, Avidemux 2.4.1 comes in the repository so all you have to do is install the 'avidemux' pakage through your prefered method. Older versions of Ubuntu come with Avidemux 2.3 which, unfortunately, can't handle the PSP format properly. So in that case I recommend you to go over at <a href="http://www.getdeb.net/">GetDeb</a> and download an <a href="http://www.getdeb.net/app.php?name=Avidemux">Ubuntu package of the latest version of Avidemux</a> there. If you're not using Ubuntu, check <a href="http://fixounet.free.fr/avidemux/download.html">http://fixounet.free.fr/avidemux/download.html</a> to see if there are any packages of Avidemux 2.4 or higher for your Linux distribution.
To install the package in Ubuntu, just double-click it and let gdebi do the rest.
Another tool that can help a lot when working with video, and a great video player in general, is mplayer. In Ubuntu you can install it from the repository. (sudo apt-get install mplayer)
After installing Avidemux, run it. In Ubuntu it should be in the [Applications]->[Audio & Video] menu. Avidemux' interface is pretty straightforward. The first step is to load the video that you want to convert. To do that just click the <span style="font-weight: bold;">[Open]</span> button in the toolbar, select your video and click Ok. It is possible Avidemux will ask you whether you want to index or rebuild the frames for you video. Just click Yes and let it do it's work.
After opening your video, you can play it and browse trough it like any other media player.
<a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://bp0.blogger.com/_4abn2pGpgIQ/R40O-QLsIYI/AAAAAAAABDY/pc6TviAbf2M/s1600-h/avidemux_with_video.png"><img style="margin: 0px auto 10px; display: block; text-align: center; cursor: pointer;" src="http://bp0.blogger.com/_4abn2pGpgIQ/R40O-QLsIYI/AAAAAAAABDY/pc6TviAbf2M/s400/avidemux_with_video.png" alt="" id="BLOGGER_PHOTO_ID_5155793611067761026" border="0" /></a>Now let's convert this video!
Avidemux comes with a preset that will automatically configure it to convert to PSP-compatible video. All you have to do is go to the <span style="font-weight: bold;">[Auto]</span> menu and select <span style="font-weight: bold;">[PSP (H.264)]</span>. Then a little dialog window will show up.
<a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://bp3.blogger.com/_4abn2pGpgIQ/R40QwALsIZI/AAAAAAAABDg/cFNrhpVw6vQ/s1600-h/avidemux_auto_psp_dialog.png"><img style="margin: 0px auto 10px; display: block; text-align: center; cursor: pointer;" src="http://bp3.blogger.com/_4abn2pGpgIQ/R40QwALsIZI/AAAAAAAABDg/cFNrhpVw6vQ/s400/avidemux_auto_psp_dialog.png" alt="" id="BLOGGER_PHOTO_ID_5155795565277880722" border="0" /></a><span style="font-weight: bold;">Target type</span> can be <span style="font-weight: bold;">PSP 480*272</span> or PSP full res (720x480). Full res is only really useful if you have a PSP Slim and want to play your movie on TV through the Video-out cable. (The PSP's native resolution is 480x272, while standard NTSC resolution is 720x480.) Converting at the higher resolution will, as you probably know or guessed, result in a bigger file. (Around 700 MB for a whole movie vs. 400 MB for a movie at lower resolution.)
If you know the<span style="font-weight: bold;"> aspect ratio</span> of your movie you can configure this as well. If you don't, just leave both at <span style="font-weight: bold;">1:1</span>.
After confirming this dialog, if you're in a hurry, you <span style="font-style: italic;">could</span> just click Save, choose a destination and Avidemux would produce a file that's perfectly playable on your PSP. <span style="font-weight: bold;">However</span>, the default encoder options used by Avidemux will produce large files with comparably lower quality, so I really recommend you go through this guide.
Also, you might want to take a look at the filters to make sure the video will look exactly the way you want it to.
First let's optimize the codec options. Click on <span style="font-weight: bold;">[Configure]</span> on the left panel under the <span style="font-weight: bold;">Video</span> codec dropdown box.
<a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://bp0.blogger.com/_4abn2pGpgIQ/R40b5QLsIaI/AAAAAAAABDo/qZa6YBvWBMw/s1600-h/avidemux_x264_config_bitrate.png"><img style="margin: 0px auto 10px; display: block; text-align: center; cursor: pointer;" src="http://bp0.blogger.com/_4abn2pGpgIQ/R40b5QLsIaI/AAAAAAAABDo/qZa6YBvWBMw/s400/avidemux_x264_config_bitrate.png" alt="" id="BLOGGER_PHOTO_ID_5155807818819576226" border="0" /></a>The first and probably most important step in improving the encoding quality and reduce size is to change the <span style="font-weight: bold;">Encoding Mode</span> from One Pass to <span style="font-weight: bold;">Two Pass</span>. This will make Avidemux encode the video two times, the first pass serves to analyse the video for scene changes etc. so it can encode the video more efficiently in the second pass.
If you are encoding for 480x272 resolution, set the <span style="font-weight: bold;">bitrate</span> to <span style="font-weight: bold;">384 kbit/s</span>, that will be plenty with all optimizations enabled. If you are going for full res (720x480) you should choose a higher resolution, like 632 kbit/s 768 kbit/s.
Now go through all the tabs and set the options exactly like you see them in the pictures below. I'm not going to explain what every option does, but just trust me when I say that this will configure the encoder for super-mega-uber-optimized encoding.
<a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://bp1.blogger.com/_4abn2pGpgIQ/R40fIgLsIbI/AAAAAAAABDw/3IqPVcBb3Qo/s1600-h/avidemux_x264_config_motion.png"><img style="margin: 0px auto 10px; display: block; text-align: center; cursor: pointer;" src="http://bp1.blogger.com/_4abn2pGpgIQ/R40fIgLsIbI/AAAAAAAABDw/3IqPVcBb3Qo/s400/avidemux_x264_config_motion.png" alt="" id="BLOGGER_PHOTO_ID_5155811379347464626" border="0" /></a>The <span style="font-weight: bold;">Motion & Misc</span> tab.
<a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://bp2.blogger.com/_4abn2pGpgIQ/R40iAwLsIcI/AAAAAAAABD4/CJZrxeUcTo0/s1600-h/avidemux_x264_config_partitions.png"><img style="margin: 0px auto 10px; display: block; text-align: center; cursor: pointer;" src="http://bp2.blogger.com/_4abn2pGpgIQ/R40iAwLsIcI/AAAAAAAABD4/CJZrxeUcTo0/s400/avidemux_x264_config_partitions.png" alt="" id="BLOGGER_PHOTO_ID_5155814544738361794" border="0" /></a>The <span style="font-weight: bold;">Partitions & Frames</span> tab.
<a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://bp1.blogger.com/_4abn2pGpgIQ/R40jHgLsIdI/AAAAAAAABEA/fcO5xBkvS_s/s1600-h/avidemux_x264_config_rate.png"><img style="margin: 0px auto 10px; display: block; text-align: center; cursor: pointer;" src="http://bp1.blogger.com/_4abn2pGpgIQ/R40jHgLsIdI/AAAAAAAABEA/fcO5xBkvS_s/s400/avidemux_x264_config_rate.png" alt="" id="BLOGGER_PHOTO_ID_5155815760214106578" border="0" /></a>The only changes on the <span style="font-weight: bold;">Rate Control</span> tab are <span style="font-weight: bold;">Scene Cut Threshold: 40</span> and <span style="font-weight: bold;">Max IDR frame interval: 300</span>
You don't have to change anything on the More tab, just click <span style="font-weight: bold;">OK</span> now.
After this tedious process it is a good idea to save the current configuration as a project, so you don't have to open up this page every time you decide to encode some videos. Click <span style="font-weight: bold;">[File]</span>-><span style="font-weight: bold;">[Save Project]</span>. Avidemux doesn't dictate any file extension, but for your own sanity it might be a good idea to make up one of your own. I just tend to call them 'foo.project'. (Yes, not very creative, I know.)
Now that you have saved the current project, whatever happens, you won't have to go and configure all those settings again. You can open projects through [File]->[Load/Run Project...].
One of the coolest things of Avidemux (well, at least for videophiles like me) is the ease with which you can configure filters. In the main Avidemux window click on <span style="font-weight: bold;">[Filters]</span> under the <span style="font-weight: bold;">Video</span> section on the sidebar and the Video Filter Manager will pop-up, it looks something like this.
<a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://bp1.blogger.com/_4abn2pGpgIQ/R40vBgLsIeI/AAAAAAAABEI/ni_F8lP2qh8/s1600-h/avidemux_video_filter_manager.png"><img style="margin: 0px auto 10px; display: block; text-align: center; cursor: pointer;" src="http://bp1.blogger.com/_4abn2pGpgIQ/R40vBgLsIeI/AAAAAAAABEI/ni_F8lP2qh8/s400/avidemux_video_filter_manager.png" alt="" id="BLOGGER_PHOTO_ID_5155828851274424802" border="0" /></a>On the left you see all available filters, on the right you see the filters currently applied to the video.
Now Avidemux tries to act somewhat intelligent when you choose an 'auto'-preset. Basicly it will resize the video so it fits in the PSP's resolution, and then add black borders to fill up the remaining space. That means that if your movie is too wide (like the cinematic 2.35:1 aspect), it will add black borders above and under the video. If it's too narrow (like good ol' 4:3 video) it will add borders left and right.
However if your video uses a non-square pixel (anamorphic) resolution, your video might get deformed on the PSP if Avidemux can't figure out what the correct aspect of the source video should be. If you want to know if the video is anamorphic, open it with mplayer from the command line. Look out for a line containing something like 720x480 => 853x480. If the resolution is adjusted, (it shows to different resolutions) the video is anamorphic. (NOTE: if you have a widescreen monitor you have to edit /etc/mplayer/mplayer.conf and add/change the option "aspect = 16:10", assuming your monitor's aspect ratio is 16:10. Otherwise mplayer will assume your monitor is 4:3 and adjust all videos correspondingly.)
Another problem is that when a video is allready letterboxed (ie. a widescreen movie that allready contains black borders), Avidemux will still add borders left and right, resulting in black borders all around the video.
I will handle 2 different use cases here to help you understand everything better.
<span style="font-weight: bold;font-size:130%;" >Anamorphic Video</span>
This is most common with downloaded music clips, older television shows, etc.
I found out I got an anamorphic video by playing it with mplayer from the command line first, one of the lines it outputted on the terminal was:
VO: [xv] 352x240 => 352x270 Planar YV12
The resolution of this vid is 352x240, but it is in fact in 4:3 perspective. Mplayer figured this out and automatically adjusted the resolution.
Actually, I could allready have guessed it was anamorphic by just looking at the video in any video player, see it was a normal 4:3 video, and noting that the resolution is not 4:3. (352/4*3 = 264)
Now Avidemux's isn't as smart as mplayer, and will think the vid is 352x240 with square pixels. The PSP preset will just resize it in the same preset so that it fits, and then add black borders. First of all, with 4:3 video black borders aren't necessary at all, and just make the video bigger, so first we remove the 'Add black borders' filter (just select the filter and click the minus button).
<a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://bp1.blogger.com/_4abn2pGpgIQ/R41RxgLsIfI/AAAAAAAABEQ/aPf-AwPQFww/s1600-h/avidemux_video_filter_4-3.png"><img style="margin: 0px auto 10px; display: block; text-align: center; cursor: pointer;" src="http://bp1.blogger.com/_4abn2pGpgIQ/R41RxgLsIfI/AAAAAAAABEQ/aPf-AwPQFww/s400/avidemux_video_filter_4-3.png" alt="" id="BLOGGER_PHOTO_ID_5155867059303490034" border="0" /></a>Now we change the MPlayer resize filter (select the filter, click configure) so that it resizes the video to a 4:3 resolution. It might seem logical to just resize it to 352x264 but there's one detail: 264 isn't dividable by 16, so the PSP won't play it. Instead it's better to just resize 4:3 video to 320x240 (it's the highest real 4:3 resolution that will cleanly divide and fits in the PSP's native resolution).
<span style="font-weight: bold;font-size:130%;" >Cropping Widescreen Video</span>
<span style="font-size:100%;">Ok, so now we have a movie in it's original 2.35:1 widescreen format.</span> The PSP prefix will just resize it to 480 x something and then add borders. If you want the video to be in it's original form, without any cropping, that's okay. However, the PSP's screen isn't a 42" TV. So it's sometimes a good idea to crop the movie so it will fit optimally on your PSP's display.
Figure out the videos resolution before going to the filters. (You can find out everything about a video inside Avidemux by clicking the little properties button.)
The first step is to remove the black borders filter, the resize filter and any other filters. Then you add a crop filter.
Now you need to do some math. For example, my video is 620x256. I want to crop it to 16:9, so I do 256 / 9 * 16 = 455.111. So the cropped size is going to be 455x256. That means I need to crop a total of 620 - 455.111 = 164.889. Divide that by 2 and you get 82,44. In other words, I crop 83 pixels from one side and 82 pixels from the other.
After you have applied the crop filter, all that is left is to resize the movie to the proper 480x272 resolution.
Anyway, whenever you're happy with your settings all you need to do is save the video and voila. Remember that you can see what the resulting video will look like by clicking on the combobox that sais 'Input' and changing it to 'Output'.
Well there you have it, now you can easily convert your favorite videos to your PSP. Have fun!
<span style="font-weight: bold;">[UPDATE 23/06/2008]</span>
Updated the list of restrictions on the PSP.Yogarinehttp://www.blogger.com/profile/09879815475926786440noreply@blogger.com54tag:blogger.com,1999:blog-13974459.post-75411804506199350902007-12-23T13:18:00.000+01:002007-12-23T13:27:12.145+01:00TravelingI'll be spending this christmas in João Pessoa, without any PC or WiFi hotspot closeby, so looks like you'll have to wait a little bit longer for my post about how to easily convert video for your PSP on Linux. ;) Probably until wednesday or perhaps thursday. Unless, of course, my wife let's me spend some time and money in a lanhouse. ;) I also copied the post to my PSP and I have ucLinux with vim on my PSP as well so I can work on the post whenever I get bored. (Good practice for using the onscreen keyboard as well, har har.)
So as I probably won't post again until after Christmas, I want to wish all of you a very merry christmas! (But not a happy new year, yet, because I'll be back by then. <;o)Yogarinehttp://www.blogger.com/profile/09879815475926786440noreply@blogger.com2tag:blogger.com,1999:blog-13974459.post-48237343429208564182007-12-20T22:00:00.000+01:002007-12-21T13:20:48.927+01:00Ten reasons to buy a PSPWhenever I start showing (off), or talking about my/the PSP, I quickly find myself repeating the same features over and over in an attempt to make someone buy a PSP as well.
So to make my life easier I now present: Ten reasons to buy a PSP or, "get your own" ;)
<span style="font-weight:bold;">1. Pictures</span>
The PSP was always a great way to show your pictures to friends & family. No more dragging around large foto albums that can only cary so much pictures, just grab your PSP and you have al your albums at hand. Pictures aren't big in terms of disk space so you can place thousands of them on a 2GB memstick and still have plenty of room to spare. The PSP's 4.3" display is great for viewing fotos and if you need more detail you can always just zoom in and pan with the analog nub. You can also easily send your pictures to other PSP's over WiFi.
And if you pop in a Go!Cam the PSP turns into a simple digital camera. True, 1.3 Megapixel (1280x960 at 24bpp) isn't a lot to write home about but for the price ($45 - $50) it's a good deal and makes your PSP experience a lot more fun. (Ohh, and the Go!Cam can film too, 480x272 at 30fps)
As of firmware 3.70 it's also possible to play MP3's while you're viewing pictures.
<span style="font-weight:bold;">2. Music</span>
The PSP can play MP3, AAC, ATRAC3 and WMV. So basicly it's all you need when you're on the road and want to listen music. It comes with a little remote control cable extension, which means you can just lock the PSP control and use the extension to switch music. The PSP Phat is only a little heavier than the avarage diskman, and the PSP Slim is 33% lighter... The unit will fit into most pockets.
<span style="font-weight:bold;">3. Video</span>
When the PSP was launched, UMD Video was promoted as a major feature. UMD Video wasn't quite the success Sony hoped it would be, but what's interesting is the codec that Sony decided to use: H.264, aka AVC. Sure, the PSP also supports good old-fasion MP4 but the quality/size ratio of AVC is much and much better. With AVC you can fit a 90m movie into 400MB. AVC used to be very restricted on the PSP but with more recent firmwares Sony has decided to loosen the restrictions of AVC on the PSP.
There are many free programs out there that make converting a video from DVD or from a file a breeze.
The new PSP Slim even let's you watch your videos on the TV thanks to a TV-out connecter.
<span style="font-weight:bold;">4. Games</span>
In the end, no matter how much features you load it with, at it's heart the PSP is still a handheld game console. There are loads of great games available for it and their graphic quality is on par with most that the PS2 can offer.
Some games that deserve mentioning here: Metal Gear Solid: Portable Ops, Final Fantasy VII: Crisis Core, Final Fantasy Tactics: The Lion War, Burnout Dominator, LocoRoco, and lot's more.
Ohh and a Gran Turismo is still in the works. ;-)
<span style="font-weight:bold;">5. Internet</span>
The PSP has a built-in WiFi adapter, so whenever there's a WiFi network available you can go and surf the internet. :)
<span style="font-weight:bold;">6. Emulation</span>
Thank's to the homebrew community the PSP now has a range of emulators. Some notable ones:
POPS (PlayStation, comes with the firmware and is unlocked using <a href="http://www.dark-alex.org/">Dark-Alex' M-33</a>)
<a href="http://strmnnrmn.blogspot.com/">Daedalus</a> (Nintendo 64)
<a href="http://yoyofr92.free.fr/psp/snespsp.html">SnesPSP TYL</a> (Super Nintendo Entertainment System)
<a href="http://gpsp-dev.blogspot.com/">gpSP</a> (Nintedo Game Boy Advance)
<a href="http://mirakichi.hp.infoseek.co.jp/software/RIN.html">RIN</a> (Nintendo Game Boy Color)
<a href="http://nj-emu.tfact.jp/">CPS2PSP</a> (Capcom Play System 2)
<a href="http://nj-emu.tfact.jp/">MVSPSP</a> (Neo Geo MVS)
<a href="http://notaz.gp2x.de/pico.php#PSP">Picodrive</a> (Sega CD / Genesis)
<span style="font-weight:bold;">7. GPS</span>
The GPS addon helps you never get lost again!
<span style="font-weight:bold;">8. Easy Backup</span>
One of the things that a lot of people don't really think about, but can be of big importance in some cases, is the fact that you can easily backup the savegames of your PSP games through USB. Anyone who has ever lost a PS2 Memory Card with all their Final Fantasy savegames on it will understand how important this is.
<span style="font-weight:bold;">9. Integration with the PS3</span>
If you've got PS3, than you can watch and listen all the media you have stored on your PS3 on your PSP. This can be done through ad-hoc WiFi at home, or thanks to the LocationFree player which let's you play your media from any place on the earth.
<span style="font-weight:bold;">10. Homebrew community</span>
There is a big and (mostly) friendly community of PSP users that like to create their own programs for the PSP. From calendar applications to a port of the Linux kernel. Anything you can imagine can be done thanks to these homebrew apps.
Are there any great features here I forgot? Let me know...Yogarinehttp://www.blogger.com/profile/09879815475926786440noreply@blogger.com2tag:blogger.com,1999:blog-13974459.post-38307432480166571322007-12-20T14:49:00.000+01:002007-12-20T15:08:56.622+01:00Metah Geah Sold: The Secret ScriptsThe following will only be funny for people who have played Metal Gear Solid.
<span style="font-style:italic;">"Terrorist have taken over Holy Mozes Island. They're demanding that the government turn over the stinking, smelly, hairy, rotten remains of Big Daddy-O. They say that if their demands are not met, they'll launch a nuclear weapon."
"Your mission is to infiltrate. O yeah, and while you're at it bring some woopers! Ohh, and Sniper doesn't want meat on it. A vegetarian burger perhaps..."</span>
<span style="font-weight:bold;">Cambell:</span> "We'll launch a one-man SDV..."
<span style="font-weight:bold;">Snake:</span> "What's an SDV?"
<span style="font-weight:bold;">Cambell:</span> "Don't know but it sounds cool!"
<span style="font-weight:bold;">Snake:</span> "Sounds boring..."
<span style="font-style:italic;">"There are six members of FOX-HOUND involved in a romantic relationship. Psycho Mantis, with his powerful... Ehr... 'Abilities'. He went to deep into the 'dark side'."</span>
<span style="font-weight:bold;">Cambell:</span> "Sniper Wolf, the beautifull, the hot, the beautifull..."
<span style="font-weight:bold;">Snake:</span> "Ehr... You allready said that colonel...?"
<span style="font-weight:bold;">Cambell:</span> "O yeah. Well..."
<span style="font-style:italic;">"Decoy Octopus, master of disguise. Fits any shape you like, or at least for Wolf he did... Playing dressing up is his fav game."</span>
<span style="font-style:italic;">"Vulcan Raven, the beautifull and h... O no, that was Wolf, ehr..."</span>
<span style="font-style:italic;">"And Revolver Ocelot, specialist in bondage and likes leather."</span>
<span style="font-weight:bold;">Cambell:</span> "And finally, in charge of them... FOX-HOUND's squad leader, Liquid Snake."
<span style="font-weight:bold;">Snake:</span> "Liquid Snake?"
<span style="font-weight:bold;">Cambell:</span> "The man with the same code name as you. He likes his woopers with cheese."
<span style="font-style:italic;">"And well Wolf... Wolf is a..."</span>
<span style="font-weight:bold;">Snake:</span> "Colonel, can you hear me?"
<span style="font-weight:bold;">Cambell:</span> "Wait a minute Snake, I got my wife on another line. I'll put you on hold..."
<span style="font-weight:bold;">Cambell:</span> "This is Mei Ling. She designed your underwear so it won't freeze. Contact her if you have any questions about them."
<span style="font-weight:bold;">Mei Ling:</span> "Nice to meet you, Snake."
<span style="font-weight:bold;">Snake:</span> "If it weren't for your underwear, my mojo would've turned into a popsicle out there."
<span style="font-weight:bold;">Mei Ling:</span> "Anti-freezing boxers, Snake. All of the Genome Soldiers in this exercise are using it."
<span style="font-weight:bold;">Snake:</span> "I see. I'm relieved to hear that. Already tested, huh? But will these underpants... Well...?"
<span style="font-weight:bold;">Mei Ling:</span> "Snake, in China they say <span style="font-style:italic;">'Use toilet'</span>. Man get smelly underpants if he not relieve himself in proper place... And the guards will smell him.'."
<span style="font-weight:bold;">Snake:</span> "I can't just knock on the door and ask them to let me in."
<span style="font-weight:bold;">Cambell:</span> "Snake, use the vent."
<span style="font-weight:bold;">Snake:</span> "On second thought, knocking on the door wasn't such a bad idea..."
<span style="font-weight:bold;">Mei Ling:</span> "Snake, listen to what Lao-Tze said..."
<span style="font-weight:bold;">Snake:</span> "I dont wanna know!"
<span style="font-style:italic;">"Snake, this is McDonell Miller. You still owe me 500 bucks."</span>
<span style="font-weight:bold;">Mei Ling:</span> "In China, they say..."
<span style="font-weight:bold;">Snake:</span> "Fuck China! I'll never go there!"
<span style="font-weight:bold;">Snake:</span> "Naomi, the Chief! What happened!?"
<span style="font-weight:bold;">Naomi:</span> "I...I don't know. It looked like a post orgasmic death syndrome, but we won't be able to tell for sure without doing an autopsy."
<span style="font-weight:bold;">Snake:</span> "Gray Fox... Colonel, that Ninja is Gray Fox. No doubt about it."
<span style="font-weight:bold;">Cambell:</span> "Are you sure?"
<span style="font-weight:bold;">Snake:</span> "No but it says so in the script."
<span style="font-weight:bold;">Snake:</span> "So why'd you change? You'd be a lot better off dressed like one of them."
<span style="font-weight:bold;">Meryl:</span> "...I got tired of disguising myself. The truth is... the uniform smelled like blood..."
<span style="font-weight:bold;">Snake:</span> "Ohw, so you're having your period...?"
<span style="font-weight:bold;">Otacon:</span> "Do you think love can bloom even on a battlefield?"
<span style="font-weight:bold;">Snake:</span> "Oh believe me I make love everywhere..."
<span style="font-style:italic;">"This is the voicemail of Roy Cambell, please leave a message after the beep..."</span>
<span style="font-weight:bold;">Fox:</span> "Snake, we're not tools of the government or anyone else! Fighting was the only thing... the only thing I was good at, but... At least I always fought for what I believed in... Snake... farewell."
<span style="font-weight:bold;">Snake:</span> "Fox, shut up! You're so melodramatic... I don't need your problems!"
<span style="font-weight:bold;">Liquid:</span> "Die!!"
<span style="font-weight:bold;">Liquid:</span> "Foolish man. He prayed for death... and it found him."
<span style="font-weight:bold;">Snake:</span> "Thanks Liquid! He was starting to get on my nerves."
Normal blogging will continue later today.Yogarinehttp://www.blogger.com/profile/09879815475926786440noreply@blogger.com0tag:blogger.com,1999:blog-13974459.post-81521299780660794802007-12-20T00:31:00.000+01:002007-12-20T15:51:13.435+01:00Status UpdateYes... I'm still alive. I thought since the end of the year is coming closer, I'd just post a little status update about what I've been up to, for who's interested (and for who isn't... :P).
And what a year it has been. Professionaly, I've grown a lot this year. A year ago I was still working 12 hours a day (4 hours a day as network admin, 8 hours as computer lab auxiliary) at two jobs, now I've quit one job and got promoted at the other, now working 8 hours as a PHP programmer. 6 months ago I still though I wasn't fit out to be a programmer at all... Now I'm working as one fulltime. Sure, I always liked programming... But I always thought myself more a netadmin/sysadmin kinda guy. Guess I am a lot more capable than I thought. 8)
Besides all this, I also founded a company with two friends of mine a few months ago: LinFox Informatica. There's not too much activity there yet though... Just working hard to get two projects into at least a sort-of-beta state.
Speaking of growing, my 2,5 year old son is growing like mad. It's insane how fast kids learn at this age...
This year has also been the year of the PSP. This little tool has really changed my life. Especially since I got my hands on the Go!Cam.
Anyway, I going o try to update my blog a little more from now on. It's not that I don't have enough interesting stuff to talk about. The reasons that I haven't updated this blog a lot is mostly a mixture of $lack_of_time + $lazyness + 'nobody reads my blog anyway'.$mentality ...
Well, after taking a quick look at Google Analytics I know that last part isn't true. It seems that mostly my post about video converting for the PSP has been quite popular, so I guess I'll follow up with a post about that tomorrow since I actually made quite a lot of progress in that area recently.
So, err... Well, good to be back. :) Ohh and don't forget to comment if you have anything interesting to say.Yogarinehttp://www.blogger.com/profile/09879815475926786440noreply@blogger.com4tag:blogger.com,1999:blog-13974459.post-72128667810163091732007-08-17T02:22:00.000+02:002007-12-20T15:48:47.461+01:002 years old<object width="425" height="350"><param name="movie" value="http://www.youtube.com/v/IZb6nco7FHk"></param><param name="wmode" value="transparent"></param><embed src="http://www.youtube.com/v/IZb6nco7FHk" type="application/x-shockwave-flash" wmode="transparent" width="425" height="350"></embed></object>Yogarinehttp://www.blogger.com/profile/09879815475926786440noreply@blogger.com0tag:blogger.com,1999:blog-13974459.post-77646226739101382872007-02-10T14:17:00.003+01:002008-02-25T01:41:48.387+01:00PSP Homebrew: legal statusWhile having nothing to do on a saturday at work, I decided to read the Sony PSP System Software EULA. My main motivation was that I wanted to awnser the following questions:
<ul><li>Is downgrading the PSP illegal?</li><li>Is homebrew illegal?</li><li>Is Dark AleX's custom firmware illegal?</li></ul>Before reading through this please bear in mind <abbr title="I Am Not A Lawyer">IANAL</abbr>, and my theorising is mostly based on the contents of the <abbr title="End User License Agreement">EULA</abbr>. Some of the restrictions in this EULA have not been tested in court and could possibly not be enforcable. Most of them are also incompatible with <a href="http://en.wikipedia.org/wiki/Fair_use">Fair Use</a>. That's why they like to use <span style="font-style:italic;">"To the fullest extent permitted by law,"</span> all the time.
<b>Is downgrading the PSP illegal?</b>
I'll go through all the relevent phrases of the EULA one by one:
<blockquote>To the extent permitted by applicable law, your rights to use or access the current version of the System Software shall cease upon installation of a newer version of the System Software onto your PSP™ system.</blockquote>
This probably depends on where you live. You see, as far as Sony's concerned, you'll lose your license to old version of the firmware as soon as you upgrade to a new one. Pretty sneaky. (Though this, for as far as I know, is untested in court and I *think* it probably wouldn't make it. After all, I think having a back up of older firmwares and reinstalling them would comply as Fair Use.)
So what does that mean? Well, if you have firmware 3.10, and you upgrade to 3.11, then you lose all your rights to use 3.10 ever again. This line does not say that you may not install an older version before 3.10. And if you buy a new PSP, and you never installed any upgrade in the first place, you never lost any rights to use any firmware at all.
<blockquote>SCE does not grant any license to System Software obtained by users in any manner other than SCE's authorized distribution methods.</blockquote>
Now this is a problem. It means: If you download a PSP firmware from anywhere except for Sony's official websites or sources, you are not allowed to install it. So that means that downloading the firmware from qj.net means that, according to Sony, you're not allowed to install and/or use that firmware.
<blockquote>You may not lease, rent, sublicense, publish, modify, adapt, or translate any portion of the System Software.</blockquote>
Yup, sites like qj.net are probably breaking copyright law by hosting the Sony firmwares. If Sony ever sends them a cease and desist letter, they would have to comply, and take all of the old firmwares offline. That would make it harder for people to find old firmwares through regular channels.
<blockquote>You may not (i) use any unauthorized, illegal, counterfeit, or modified hardware or software in connection with the System Software, including use of such tool to bypass, disable, or circumvent any encryption, security, or authentication mechanism for the PSP™ system;</blockquote>
In other words, it says: you're not allowed to use downgraders or other exploiters. This sentence alone makes downgrading a PSP an illegal act, since all downgraders depend on security exploits or modified hardware.
<blockquote>(iii) use any hardware or software to cause the System Software to accept or use unauthorized, illegal, or pirated software or hardware;</blockquote>
Basicly the same as above.
<blockquote>(iv) obtain the System Software in any manner other than through SCE's authorized distribution methods;</blockquote>
Stating again that you aren't allowed to download the Software from anywhere but the official Sony site.
So since 1.) sites are (probably) not allowed to publish any version of the firmware, 2.) you're not allowed to download firmware from anywere but Sony's site (and there are no old firmware versions there) and 3.) you're not allowed to use any unauthorized software with the System Software, downgrading breaks the EULA, and obviously voids your PSP's warranty.
<b>Is homebrew illegal?</b>
Ignoring the fact that most of the time you have to downgrade your PSP to use homebrew in the first place, there are some specific sentences that make running homebrew itself a violation of the UELA. (Even if they ran without downgrading your PSP.)
<blockquote>(i) use any unauthorized, illegal, counterfeit, or modified hardware or software in connection with the System Software, including use of such tool to bypass, disable, or circumvent any encryption, security, or authentication mechanism for the PSP™ system;</blockquote>
Homebrew is never authorized, so there you have it.
<blockquote>(iii) use any hardware or software to cause the System Software to accept or use unauthorized, illegal, or pirated software or hardware;</blockquote>
This also makes it illegal to use homebrew enablers like HEN and eLoader.
<blockquote>(v) exploit the System Software in any manner other than to use it in your PSP™ system in accordance with the accompanying documentation and with authorized software or hardware, including use of the System Software to design, develop, update, or distribute unauthorized software or hardware for use in connection with the PSP™ system for any reason.</blockquote>
And this states you're not allowed to use your PSP to even develop homebrew.
<b>Is Dark AleX's custom firmware illegal?</b>
When first thinking about Dark_AleX's legal situation, I first thought that only installing
and using his custom firmware actually breaks the EULA. For the same reason as using any homebrew breaks it.
But perhaps even Dark_AleX himself could get in trouble:
<blockquote>To the fullest extent permitted by law, you may not reverse engineer, decompile, or disassemble any portion of the System Software, or create any derivative works, or otherwise attempt to create System Software source code from its object code.</blockquote>
You see, Dark-AleX was smart to only release a tool that creates a custom firmware from original firmwares. So basicly who's creating the actual derivative is the one who uses the tool.
But, it can be proven that to create this tool, he himself had to at least 1.) decrypt the firmware, and 2.) use the original firmware to develop it. So possibly Sony could tell Dark_AleX to stop developing his custom firmware... But in the end I don't have any idea how enforceable this statement is in the first place. Even Sony says: "To the fullest extent permitted by law". Meaning not even they're sure about it.
<span style="font-weight:bold;">So does this all mean we should all hide in fear of Sony's lawsuits...?</span>
Well I don't think you have to worry about that. First of all, laws differ all over the planet, and Sony can't be 100% sure they'd win all their cases. And they have better things to do than go and sue every single homebrew user.
And as for homebrewers like Dark_AleX... If they keep playing smart, and also keep releasing as much as their software as possible under GPL (contrary to some devs believe, releasing risky software as Free & Open Source software makes it harder to sue the developers) they don't have much to worry about.
You can however be very sure that if you use homebrew or install custom firmware, you'll void your guarantee... ;-) Keep that in mind.Yogarinehttp://www.blogger.com/profile/09879815475926786440noreply@blogger.com7tag:blogger.com,1999:blog-13974459.post-45095600335727681552006-12-27T11:45:00.000+01:002007-12-20T15:50:53.892+01:00All PSone games running on PSP!<a href="http://lan.st/showthread.php?p=1135">Hail to Dark_AleX!!!</a>
I can´t believe what Sony is <a href="http://forums.maxconsole.net/showthread.php?t=40526">keeping away from us PSP owners!</a> :@Yogarinehttp://www.blogger.com/profile/09879815475926786440noreply@blogger.com0tag:blogger.com,1999:blog-13974459.post-69614446146301282862006-11-23T14:46:00.000+01:002007-12-20T15:52:54.361+01:00PlayStation 3 vs. Xbox 360I found a very article that gives a very good in dept explanation about the PS3's and the 360's hardware, which demystifies a lot of common knowledge up till now:
<a href="http://dpad.gotfrag.com/portal/story/35372/">http://dpad.gotfrag.com/portal/story/35372/</a>Yogarinehttp://www.blogger.com/profile/09879815475926786440noreply@blogger.com1