<?xml version="1.0" encoding="UTF-8"?> <rss version="2.0" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:sy="http://purl.org/rss/1.0/modules/syndication/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" ><channel><title>FoOlRulez &#187; foolz.us</title> <atom:link href="http://foolrulez.org/blog/tag/foolz-us/feed/" rel="self" type="application/rss+xml" /><link>http://foolrulez.org/blog</link> <description>We translate it because we want to read it!</description> <lastBuildDate>Wed, 16 May 2012 08:58:42 +0000</lastBuildDate> <language>en</language> <sy:updatePeriod>hourly</sy:updatePeriod> <sy:updateFrequency>1</sy:updateFrequency> <generator>http://wordpress.org/?v=3.3.2</generator> <item><title>FoOlz.us and how to make YOURLS work with Nginx.</title><link>http://foolrulez.org/blog/2009/08/foolz-us-make-yourls-work-on-nginx/</link> <comments>http://foolrulez.org/blog/2009/08/foolz-us-make-yourls-work-on-nginx/#comments</comments> <pubDate>Sun, 30 Aug 2009 22:19:22 +0000</pubDate> <dc:creator>woxxy</dc:creator> <category><![CDATA[FoOls/Randomness.]]></category> <category><![CDATA[Games/Informatics.]]></category> <category><![CDATA[foolz.us]]></category> <category><![CDATA[Nginx]]></category> <category><![CDATA[yourls]]></category><guid isPermaLink="false">http://foolrulez.org/blog/?p=3118</guid> <description><![CDATA[FoOlRulez own (useless) URL shortening service goes ON AIR. Just another random tool that works on our server.]]></description> <content:encoded><![CDATA[<p style="text-align: justify;">Sometimes I wonder&#8230; why do I do such things?</p><p style="text-align: justify;">Well, honestly I am a megalomaniac, and all the most famous websites have an URL shortening service for their own service. Since (one day) FoOlRulez will be the biggest website evar, I thought&#8230; why not adding the short URL service early? Doing it was far harder than thinking of it.</p><p style="text-align: justify;">You know, we aren&#8217;t using a LAMP (Linux-Apache-MySQL-PHP) server, but an Nginx powered server (LNMP sounds weird tho). This means most of the software needs some fix to work correctly, though it will work much faster. This means YOURLS, the software I intended to use, needed some fix as well.</p><p style="text-align: justify;">For this fix, I had to find a solution, and I have found it here: <a href="http://showfom.com/yourls/">使用 Yourls 强化你的短网址系统 &#8211; Showfom&#8217;s Blog</a>.<br /> I have no idea what that URL says&#8230; but hey, I found the fix to make YOURLS work!</p><p style="padding-left: 60px; text-align: justify;"><code>if (!-f $request_filename){<br /> set $rule_0 1$rule_0;<br /> }<br /> if (!-d $request_filename){<br /> set $rule_0 2$rule_0;<br /> }<br /> if ($rule_0 = "21"){<br /> rewrite ^/([0-9a-z]+)/?$ /yourls-go.php?id=$1 last;<br /> }</code></p><p style="text-align: justify;">Gibberish? No this is the code you need to make it work in your Nginx installation! Paste it where you need it. If you don&#8217;t know how comment here and I&#8217;ll explain a bit further.</p><p style="text-align: justify;">Anyway, this made everything work&#8230; a bit of styling of the homepage et voilà!</p><p style="text-align: justify;"><a href="http://foolz.us">http://foolz.us</a></p><p style="text-align: justify;">It works! I can&#8217;t believe it myself!</p><p style="text-align: justify;">Let&#8217;s go a bit more indeep with <a href="http://yourls.org">YOURLS</a>. This is a very complete script to make your own URL shortener, by:</p><ul><li style="text-align: justify;"><a href="http://lesterchan.net/">Lester Chan</a> / <a href="http://twitter.com/gamerz">@GamerZ</a> on Twitter</li><li><a href="http://planetozh.com/">Ozh RICHARD</a> / <a href="http://twitter.com/ozh">@Ozh</a> on Twitter</li></ul><p>I think they&#8217;re the same who made a few of the plugins I use in this WordPress blog (yeah they are). Anyway, this script is powerful enough to not leave you dry mouthed: you get an API to use the URL shortening service on your server from anywhere, the admin menu lets you control the tidbits you need (ok, most of the controls are via code, but it&#8217;s easily done with the explanations), the code has explanation for most of the lines &#8211; I in fact edited it to fit my needs better.</p><p>Best part of all, it comes with a WordPress plugin, that hooks to the shortening service and makes a short url for every post: even this one post has a shortening url. Then you get automatic submission of the post to Twitter after publishing. The button to submit to twitter on the top is my creation by using the functions (wordpress hooks) that YOURL for WordPress provides.</p> ]]></content:encoded> <wfw:commentRss>http://foolrulez.org/blog/2009/08/foolz-us-make-yourls-work-on-nginx/feed/</wfw:commentRss> <slash:comments>25</slash:comments> </item> <item><title>Personal short URLs: do it on your own server!</title><link>http://foolrulez.org/blog/2009/08/personal-short-urls-do-it-on-your-own-server/</link> <comments>http://foolrulez.org/blog/2009/08/personal-short-urls-do-it-on-your-own-server/#comments</comments> <pubDate>Fri, 21 Aug 2009 14:28:43 +0000</pubDate> <dc:creator>woxxy</dc:creator> <category><![CDATA[Games/Informatics.]]></category> <category><![CDATA[domain]]></category> <category><![CDATA[foolz.us]]></category> <category><![CDATA[script]]></category> <category><![CDATA[short url]]></category> <category><![CDATA[shorty]]></category> <category><![CDATA[tighturl]]></category> <category><![CDATA[yourls]]></category><guid isPermaLink="false">http://foolrulez.org/blog/?p=2963</guid> <description><![CDATA[Took me a day to try three scripts, thanks to our out-of-standard-server. But that only made it cooler.]]></description> <content:encoded><![CDATA[<p>Yesterday I was looking at the billing for the domain (FoOlRulez.org costing the wonder of 9$ a year), so I noticed that there was a year discount for .us that will let you pay only THREE DOLLARS for the first year (and nine from the next). So why not get one cheap .us&#8230; and play with it.</p><p>So I bought a short url domain: <a href="http://foolz.us" target="_parent">http://foolz.us</a>. Most likely it does not work yet.</p><div id="attachment_2974" class="wp-caption alignnone" style="width: 327px"><a href="http://cdz.foolrulez.org/blog/wp-content/uploads/2009/08/foolzus1.png"><img class="size-full wp-image-2974" title="foolzus" src="http://cdz.foolrulez.org/blog/wp-content/uploads/2009/08/foolzus1.png" alt="foolzus" width="317" height="145" /></a><p class="wp-caption-text">Random logo I made in 5 minutes.</p></div><p>Have you noticed websites like techcrunch having <a href="tcrn.ch" target="_parent">tcrn.ch</a> as short url for personal purpose: I am trying to pull the same thing, not like I have any use for it, but just to experiment something new for the wonderful price of THREE DOLLARS. And what would you think about extra subdomains like <a href="cant.foolz.us">cant.foolz.us</a>&#8230; that as for now won&#8217;t work of course.</p><p>So I started testing a few piece of software (rather, scripts) yesterday. There are some that you can buy, but FoOls is cheap, so we work on open source. All of these need a LAMP (Linux, Apache, MySQL, PHP&#8230; the most standard web server).</p><p><a href="http://cdz.foolrulez.org/blog/wp-content/uploads/2009/08/Immagine-2.png"><img class="alignleft size-full wp-image-2964" title="Immagine 2" src="http://cdz.foolrulez.org/blog/wp-content/uploads/2009/08/Immagine-2-58x157-custom.png" alt="Immagine 2" width="58" height="157" /></a>The first one I tried is rather simple to use and really anyone would be able to use it. <a href="http://get-shorty.com/" target="_parent">Shorty</a> needs just the database and a folder on the website to work, no further setups. Too bad that this comes with a price: the features are really limited, and only the administrator can use it. This is the ideal for who wants a really simple and quite solid system on the own website, but it&#8217;s good for nothing for someone who needs to implement it around the website, and let it be used by the public. What&#8217;s more, the updates are dead since 2006.</p><p>So I declare this script <span style="color: #ff0000;">DISCARDED</span>.</p><p><a href="http://cdz.foolrulez.org/blog/wp-content/uploads/2009/08/Immagine-32.png"><img class="alignleft size-full wp-image-2969" title="Immagine 3" src="http://cdz.foolrulez.org/blog/wp-content/uploads/2009/08/Immagine-32.png" alt="Immagine 3" width="32" height="110" /></a>The next one I checked is <a href="http://tighturl.com/project/" target="_parent">TightURL</a>.  Honestly, I dislike this kind of website from the beginning, and I never understand why so many open source websites have to be just HTML skeletons, as they make harder to find stuff. But over this, this script is surely better than Shorty, full of customization&#8230; via coding, making it good for use only to experienced developers. Now, I could work a bit and modify it so I could implement it, but how many headaches should I have over this? We&#8217;re bloggers (scanlators), so the most we want to retouch via coding is the style of our website!</p><p>Since I am kind of lazy (and scared) to go edit the code, I declare this script <span style="color: #ff0000;">DISCARDED</span>.</p><p><a href="http://cdz.foolrulez.org/blog/wp-content/uploads/2009/08/yourls-logo.png"><img class="alignleft size-full wp-image-2971" title="yourls-logo" src="http://cdz.foolrulez.org/blog/wp-content/uploads/2009/08/yourls-logo.png" alt="yourls-logo" width="90" height="201" /></a>Another script I tried is <a href="http://yourls.org/" target="_parent">Yourls</a>. The webpage this time is that of a standard help for WordPress, which is nice, very human. This script seems to include what the two listed before have and more: it&#8217;s quite easy to use, the setup is nothing different than Shorty, yet, this time I can decide if I want a private short linker or a public one. The interface instead is still only text: it&#8217;s just an example over which one can style his own website, which is perfect, bloggers like to style the themes. The rest is taken care of through an admin panel, which gives pretty much all the control you need, unlike Shorty. But that&#8217;s not all: there&#8217;s an API that lets you implement the script anywhere from your website (think of having it automatic for twitter), and even a WordPress plugin able to give a short link to every post.</p><p>This is why I will use this last script, so, at least for now, it&#8217;s <span style="color: #008000;">APPROVED</span>.</p> ]]></content:encoded> <wfw:commentRss>http://foolrulez.org/blog/2009/08/personal-short-urls-do-it-on-your-own-server/feed/</wfw:commentRss> <slash:comments>1</slash:comments> </item> </channel> </rss>
