<?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>Streaky's Blog &#187; Paste2.org</title>
	<atom:link href="http://mybrokenlogic.com/category/paste2/feed/" rel="self" type="application/rss+xml" />
	<link>http://mybrokenlogic.com</link>
	<description>Just another WordPress weblog</description>
	<lastBuildDate>Wed, 10 Mar 2010 03:34:23 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Next Generation Pastebins</title>
		<link>http://mybrokenlogic.com/2010/03/06/next-generation-pastebins/</link>
		<comments>http://mybrokenlogic.com/2010/03/06/next-generation-pastebins/#comments</comments>
		<pubDate>Sat, 06 Mar 2010 21:55:25 +0000</pubDate>
		<dc:creator>streaky</dc:creator>
				<category><![CDATA[PHP]]></category>
		<category><![CDATA[Paste2.org]]></category>

		<guid isPermaLink="false">http://mybrokenlogic.com/?p=47</guid>
		<description><![CDATA[It&#8217;s been my goal since the day I started paste2 to figure out how I can bring something new to the pastebin concept. I&#8217;ve targetted performance (already fast, but improved again in the new code), tried to make the interface as uncluttered as possible (which is also much improved in the new code) and paste2 [...]]]></description>
			<content:encoded><![CDATA[<p>It&#8217;s been my goal since the day I started paste2 to figure out how I can bring something new to the pastebin concept. I&#8217;ve targetted performance (already fast, but improved again in the new code), tried to make the interface as uncluttered as possible (which is also much improved in the new code) and paste2 is about to get the <a href="http://www.akamai.com/" target="_blank">Akamai</a> treatment on it&#8217;s assets with the new code. Not wanting to just compete and be like other pastebins, I&#8217;ve been trying to figure out &#8211; for over 3 years now in fact, where pastebins should go next. I&#8217;m absolutely convinced now that the next step for pastebins is &#8216;live&#8217;  real-time collaberative editing.</p>
<p>After seeing this happening in a IRC channel not long back, being done inside <a href="http://etherpad.com/" target="_blank">an editor</a> that is really designed for creating word processed style documents, but with code, I&#8217;m absolutely sure it&#8217;s the way forward.</p>
<p>The problem of course is that this stuff isn&#8217;t easy. I already have a plan to do it using some parts of google mobwrite, and building the server side in PHP because it&#8217;ll be faster &#8211; and I&#8217;ll trust myself more if a bug comes up to know the language ins and outs, which while I can write Python I don&#8217;t really trust it or myself. I could easily just do it easily using mobwrite in it&#8217;s entirety but the performance wouldn&#8217;t be great, and like I said &#8211; if something came up it&#8217;d probably push my Python knowledge.</p>
<p>Problem is getting it done. I was thinking about (and started) writing the whole thing into the new code, but I&#8217;ve changed my mind &#8211; I&#8217;m going to push the new code out on the new application server, then start working on that.</p>
<p>There&#8217;s some other good pastebins around, since paste2 came on the scene (at the time pastebin.com was down basically all the time) some other new ones have popped up and are helping improve the competition in the &#8216;market&#8217;, which can&#8217;t be a bad thing. Even pastebin.com has had a redesign now (after <a href="http://blog.dixo.net/2010/02/19/pastebin-com-has-a-new-owner/" target="_blank">being sold</a>).</p>
]]></content:encoded>
			<wfw:commentRss>http://mybrokenlogic.com/2010/03/06/next-generation-pastebins/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Downtime Update</title>
		<link>http://mybrokenlogic.com/2010/03/03/downtime-update/</link>
		<comments>http://mybrokenlogic.com/2010/03/03/downtime-update/#comments</comments>
		<pubDate>Wed, 03 Mar 2010 17:44:08 +0000</pubDate>
		<dc:creator>streaky</dc:creator>
				<category><![CDATA[Paste2.org]]></category>

		<guid isPermaLink="false">http://mybrokenlogic.com/?p=42</guid>
		<description><![CDATA[Yesterday&#8217;s issue still isn&#8217;t properly resolved.
The bootloader is effectively broken, it&#8217;s actually doing a netboot right now which is ugly and it doesn&#8217;t solve the problem I was trying to sort out in the first place.*
I&#8217;m planning some downtime in the next few days to move paste2.org to a different server so I can do [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://mybrokenlogic.com/2010/03/01/current-downtime/" target="_blank">Yesterday&#8217;s issue</a> still isn&#8217;t properly resolved.</p>
<p>The bootloader is effectively broken, it&#8217;s actually doing a netboot right now which is ugly and it doesn&#8217;t solve the problem I was trying to sort out in the first place.*</p>
<p>I&#8217;m planning some downtime in the next few days to move <a href="http://paste2.org/">paste2.org</a> to a different server so I can do an OS reload on that one and set it up how I want it. I may even end up putting <a href="http://xen.org/" target="_blank">Xen</a> or ESX Server or something on it for a bit more flexibility and run servers out of that which will give me a bit more room to play around (probably some mirroring between multiple VMs, one of which running solaris so I can use dtrace on it).</p>
<p>Just to update on the new paste2 code, I&#8217;m currently polishing off the application server I&#8217;ve been working on for what seems like decades now. Whilst doing this I&#8217;m also trying to put together a realtime(-ish) collaberative editor &#8211; so multiple people can edit the same file at the same time, and see updates that other people have made in close-to realtime. By realtime I mean a few seconds later of course &#8211; the tech involved of course has latency and also, worse can&#8217;t be continously updated for server resources reasons (it&#8217;s not feasible to be continiously connected to a http server, though it is possible), you have to work smart and get as close to realtime as resources and the technogy allows. This isn&#8217;t new by any means, the likes of etherpad have done it before &#8211; but I want to target it at the people who use paste2 rather than people say putting together a rich text doc for example.</p>
<p>* If anybody cares &#8211; effectively Grub has made a horific mess of the server, no matter what I do I can&#8217;t get rid of it, even using dd on the MBR region of the disk isn&#8217;t getting the job done. I need a custom kernel for <a href="http://www.latencytop.org/" target="_blank">latencytop</a> and so I don&#8217;t have to run VMWare workstation anymore, wanted to get <a href="http://www.vmware.com/products/server/" target="_blank">VMWare server</a> running in it&#8217;s place which I had issues with before but now the will to get it fixed.</p>
<p><strong>Update (6 March 2010):</strong></p>
<p>The issues have been resolved after a server reload yesterday &#8211; the original problem was easily cured once I got GRUB out the way. Now the box is very happily running on LILO with no issues that I know about.</p>
]]></content:encoded>
			<wfw:commentRss>http://mybrokenlogic.com/2010/03/03/downtime-update/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Current Downtime</title>
		<link>http://mybrokenlogic.com/2010/03/01/current-downtime/</link>
		<comments>http://mybrokenlogic.com/2010/03/01/current-downtime/#comments</comments>
		<pubDate>Mon, 01 Mar 2010 15:16:47 +0000</pubDate>
		<dc:creator>streaky</dc:creator>
				<category><![CDATA[Paste2.org]]></category>

		<guid isPermaLink="false">http://mybrokenlogic.com/?p=39</guid>
		<description><![CDATA[I kinda broke the server, as a continuation of yesterday&#8217;s downtime around midnight GMT &#8211; trying to fix the issue that caused it and juggling the RAID array.
The good news is that nothing is lost &#8211; just having an issue trying to get into the server, my KVM access isn&#8217;t working correctly right now. I [...]]]></description>
			<content:encoded><![CDATA[<p>I kinda broke the server, as a continuation of yesterday&#8217;s downtime around midnight GMT &#8211; trying to fix the issue that caused it and juggling the RAID array.</p>
<p>The good news is that nothing is lost &#8211; just having an issue trying to get into the server, my KVM access isn&#8217;t working correctly right now. I could reboot the entire thing with root on one of the drives and it may work except for the fact / is mounted on RAID rather than /dev/sda1 so it&#8217;ll boot the kernel then give up.</p>
<p>Shouldn&#8217;t be long now, I have a ticket with the DC which I&#8217;m waiting on a response to.</p>
]]></content:encoded>
			<wfw:commentRss>http://mybrokenlogic.com/2010/03/01/current-downtime/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Deleted More Than 10% of Pastes</title>
		<link>http://mybrokenlogic.com/2010/01/22/deleted-more-than-10-percen-of-pastes/</link>
		<comments>http://mybrokenlogic.com/2010/01/22/deleted-more-than-10-percen-of-pastes/#comments</comments>
		<pubDate>Fri, 22 Jan 2010 22:49:39 +0000</pubDate>
		<dc:creator>streaky</dc:creator>
				<category><![CDATA[Paste2.org]]></category>

		<guid isPermaLink="false">http://mybrokenlogic.com/?p=36</guid>
		<description><![CDATA[Due to some EXTREMELY badly behaved robot UA&#8217;s I&#8217;ve had to remove about 17k pastes from paste2.org, due to the exceptional load they put on the server. This is related to my earlier paste, I now know who it is and why, and all the data they were going after has been forcibly removed from [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://mybrokenlogic.com/wp-content/uploads/2010/01/localhost.localdomain-if_eth0-day.png"><img class="alignright size-full wp-image-37" title="This isn't really the problem.." src="http://mybrokenlogic.com/wp-content/uploads/2010/01/localhost.localdomain-if_eth0-day.png" alt="" width="495" height="271" /></a>Due to some EXTREMELY <a href="http://www.w3.org/Protocols/rfc2616/rfc2616-sec14.html#sec14.43" target="_blank">badly behaved</a> robot UA&#8217;s I&#8217;ve had to remove about 17k pastes from paste2.org, due to the exceptional load they put on the server. This is related to my <a href="http://mybrokenlogic.com/2009/11/09/running-a-pastebin/" target="_blank">earlier paste</a>, I now know <a href="http://board.jdownloader.org/showthread.php?p=64972">who it is and why</a>, and all the data they were going after has been forcibly removed from the site.</p>
<p>Some things just aren&#8217;t worth the effort. This is one of those things.</p>
<p>It&#8217;s not the bandwidth, the CPU time or even frankly the illegality of what the content links to &#8211; it&#8217;s the fact that these idiots can&#8217;t write code that plays nice (well, they are Java developers, so what can you expect?), and on top of that &#8211; instead of using a real user agent which would give developers, server admins and the like (i.e. me, in this case) information about who it is doing the damage so it can be discussed and hopefully come to some kind of fix &#8211; they <a href="http://svn.jdownloader.org/repositories/diff/jd/trunk/src/jd/plugins/decrypter/Paste2Org.java?rev=10436" target="_blank">RANDOMISE their UA string</a>.</p>
<p>If I may quote (and mangle) one of my <a href="http://en.wikipedia.org/wiki/ReGenesis" target="_blank">favourite TV shows</a> &#8211; &#8220;I let them play in my sandbox; and they went and shit in it&#8221;.</p>
<p>Please don&#8217;t ask me to restore these pastes, they&#8217;re gone forever. The risk was paste2 would become impossible for me to keep paying for out my own pocket.</p>
]]></content:encoded>
			<wfw:commentRss>http://mybrokenlogic.com/2010/01/22/deleted-more-than-10-percen-of-pastes/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
		<item>
		<title>Running a Pastebin&#8230;</title>
		<link>http://mybrokenlogic.com/2009/11/09/running-a-pastebin/</link>
		<comments>http://mybrokenlogic.com/2009/11/09/running-a-pastebin/#comments</comments>
		<pubDate>Mon, 09 Nov 2009 16:25:18 +0000</pubDate>
		<dc:creator>streaky</dc:creator>
				<category><![CDATA[Paste2.org]]></category>
		<category><![CDATA[ddos mitigation]]></category>
		<category><![CDATA[high load]]></category>
		<category><![CDATA[mirroring]]></category>

		<guid isPermaLink="false">http://mybrokenlogic.com/?p=24</guid>
		<description><![CDATA[Is hard work sometimes.
Paste2.org&#8217;s code is written to be fast, the problem with doing that is if I leave it alone for a day it can take large amounts of traffic that isn&#8217;t legitimate without really notifying me because the load doesn&#8217;t go high enough for the server to start alerting me that things are [...]]]></description>
			<content:encoded><![CDATA[<p>Is hard work sometimes.</p>
<p>Paste2.org&#8217;s code is written to be fast, the problem with doing that is if I leave it alone for a day it can take large amounts of traffic that isn&#8217;t legitimate without really notifying me because the load doesn&#8217;t go high enough for the server to start alerting me that things are going wrong.</p>
<p>Take last night for example, I just happened to look at munin and I saw the first spike of this (the part with the big red updates block in the graph):</p>
<p><a href="http://mybrokenlogic.com/wp-content/uploads/2009/11/crawl-fail.png"><img class="alignright size-full wp-image-25" title="Fail" src="http://mybrokenlogic.com/wp-content/uploads/2009/11/crawl-fail.png" alt="Fail" width="495" height="343" /></a>This event which peaked at almost 400 queries/second (and if I tell you paste2.org hardly does any SQL queries, you&#8217;ll get why I was pretty pissed off when I noticed this), was pretty massive traffic comming from a lot of different IPs &#8211; which a lot of people would assume is a DDoS attack, I&#8217;m pretty sure is somebody trying to mirror the site.</p>
<p>If I may slide slightly off-topic for a second it&#8217;s a bit of a win for the much-hated query cache &#8211; look at the numbers of cache hits &#8211; when your MySQL server is set up right and your code is asking the right questions.</p>
<p>You&#8217;ll notice that the number of queries drops off at around midnight, this is the point when I noticed something is amiss and did something about it.</p>
<p>I have a script that scours the access log and adds the IPs it pulls out to an IPTables Chain, which, naturally, stops all inbound connections.</p>
<p>The problem is until about 5 minutes ago it was all manually ran, because in the past people have got the idea after a few rounds of that.</p>
<p>Not this time, note what happens after midnight &#8211; it slowly picks up again until it&#8217;s just as bad as it was. Now the whole thing for the last few minutes has been completely automated.</p>
<p>In case you&#8217;re wondering, whilst it&#8217;s nice having the site load tested, there&#8217;s two main issues: firstly nobody has ever asked if they can have the paste files, or told me why they want them all, and secondly &#8211; as you&#8217;ll see from the first part with all the updates, they were triggering the code which determines if they&#8217;re a robot or not and decides if they should update the last viewed date &#8211; which in turn determines when old posts should be deleted. That&#8217;s probably the worst part of people doing stuff like this &#8211; that it screws up the reliability of a system which is essentially a spam removal process. Legit posts that people need will be visited and kept, spam won&#8217;t be visited and thus get deleted after a time &#8211; all these posts are now marked as updated last night and the 95% that will be actually spam, will survive in the site for another 60 days.</p>
<p>I wonder how long it will be until these clowns get the message. Anyways, I can go back to my day job now the script is chugging away on its own.</p>
]]></content:encoded>
			<wfw:commentRss>http://mybrokenlogic.com/2009/11/09/running-a-pastebin/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Takedown Requests&#8230;</title>
		<link>http://mybrokenlogic.com/2009/05/20/takedown-requests/</link>
		<comments>http://mybrokenlogic.com/2009/05/20/takedown-requests/#comments</comments>
		<pubDate>Wed, 20 May 2009 06:39:16 +0000</pubDate>
		<dc:creator>streaky</dc:creator>
				<category><![CDATA[Paste2.org]]></category>

		<guid isPermaLink="false">http://mybrokenlogic.com/?p=19</guid>
		<description><![CDATA[&#8230; are lame.
I feel for sites like TPB sometimes. That is I mean, they suck legal defence (&#8220;we&#8217;re just like Google&#8221; indeed), but they must get so many takedown requests for random crap every day than most people get spam.
I get one every few weeks. People like to post NFOs and lists of files on [...]]]></description>
			<content:encoded><![CDATA[<p>&#8230; are lame.</p>
<p>I feel for sites like TPB sometimes. That is I mean, they suck legal defence (&#8220;we&#8217;re just like Google&#8221; indeed), but they must get so many takedown requests for random crap every day than most people get spam.</p>
<p>I get one every few weeks. People like to post NFOs and lists of files on paste2, and somebody comes along and complains about it. The requests to take these posts down annoys me.</p>
<p>Instead of just asking politely at first they start off with the legal threats. &#8220;We demand you take blah blah down else we&#8217;ll sue you and the next 14 generations of your offspring, fuck you very much&#8221;. I&#8217;ve had one sat in my inbox for a while from Fox, I keep re-reading it to make sure I wasn&#8217;t imagining it&#8217;s content.<span id="more-19"></span></p>
<p>I&#8217;m not a big fan of taking pastes off the site generally, if you think something on the site is infringing somebody&#8217;s copyright you&#8217;re probably mistaken &#8211; it won&#8217;t let you posts content as long as books and people can&#8217;t upload movies and music, so what&#8217;s the deal?</p>
<p>Well it turns out Fox didn&#8217;t take too kindly to <a href="http://paste2.org/p/175608" target="_blank">people posting Wolverine release NFO files</a>. Now I hate TPB&#8217;s we&#8217;re just like Google defence, because frankly it&#8217;s pretty retarded &#8211; I don&#8217;t disagree in many way&#8217;s what they&#8217;re trying to do but I think we should all stop for a minute and say it like it is &#8211; their defence was pure idiocy. Back to my point though, the majority of the pastes these guys are getting upset about are so many steps removed from copyrighted content it&#8217;s not even funny.</p>
<p>Firstly, the stuff Fox got upset about was a bunch of NFO pastes, which if you don&#8217;t know what they are, essentially when a group releases something they ripped or whatever, they add a file in which basically says what that release is, which group did it, usually some ASCII art and usually some info about the group (yes I know, I&#8217;m trying to do a lazy idiot&#8217;s guide to here, <a href="http://en.wikipedia.org/wiki/.nfo" target="_blank">ask wikipedia</a>). Anyway, look at the link above, I defy anybody to tell me what IP that paste infringes on.</p>
<p>The other type of takedown I&#8217;ve been getting lately are ones where people have been pasting lists of links to download files, I&#8217;ve actually been deleting these as requests come in, but I&#8217;m getting a bit bored of it really. Paste2 isn&#8217;t the problem, it&#8217;s people hosting the files, talk to them.</p>
<p>I guess what I&#8217;m saying is two things, firstly, I got no issue with NFOs being posted, indeed they arguably have their own artistic merit, at worst are free advertising and it&#8217;s not my fault if the studios can&#8217;t find a real movie distribution platform that makes people turn to piracy.</p>
<p>Secondly, if I get many more &#8220;we demand you&#8221; emails for random crap that doesn&#8217;t infringe on anything, I&#8217;m going to start demanding I ignore such emails and demanding they go to /dev/null. Ask me nicely, and I might play nice. Keep the BS up and I&#8217;ll happily call your bluff and see you in court.</p>
<p>Last thing is, <a href="http://paste2.org/files/FOLLOW-UP%20NOTIFICATION%20OF%20COPYRIGHT%20INFRINGEMENT%20-%20UNAUTHORIZED%20PRETHEATRICAL%20RELEASE%20MATERIAL.htm" target="_blank">the email that I&#8217;ve been sat on for a while</a>, that annoys me so much I&#8217;ve totally ignored except for looking at every now and then when I need cheering up.</p>
]]></content:encoded>
			<wfw:commentRss>http://mybrokenlogic.com/2009/05/20/takedown-requests/feed/</wfw:commentRss>
		<slash:comments>7</slash:comments>
		</item>
		<item>
		<title>Paste2.org Updates</title>
		<link>http://mybrokenlogic.com/2009/02/18/paste2org-updates/</link>
		<comments>http://mybrokenlogic.com/2009/02/18/paste2org-updates/#comments</comments>
		<pubDate>Wed, 18 Feb 2009 17:47:56 +0000</pubDate>
		<dc:creator>streaky</dc:creator>
				<category><![CDATA[PHP]]></category>
		<category><![CDATA[Paste2.org]]></category>
		<category><![CDATA[application server]]></category>
		<category><![CDATA[emacs]]></category>

		<guid isPermaLink="false">http://mybrokenlogic.com/?p=10</guid>
		<description><![CDATA[So I&#8217;ve been working on a major Paste2.org update for a while now. One of the major things I&#8217;m currently doing with it is making it work in the application server I described in my previous post. The improvements in performance will mean it&#8217;ll scale to the traffic increases it&#8217;s been getting for some time [...]]]></description>
			<content:encoded><![CDATA[<p>So I&#8217;ve been working on a major <a href="http://paste2.org/" target="_blank">Paste2.org</a> update for a while now. One of the major things I&#8217;m currently doing with it is making it work in the application server I <a href="http://mybrokenlogic.com/2009/02/18/back-in-the-game-with-1-swing/" target="_blank">described in my previous post</a>. The improvements in performance will mean it&#8217;ll scale to the traffic increases it&#8217;s been getting for some time to come without needing to upgrade it&#8217;s infrastructure. A few times paste2 has came very close to breaking into the top 10k sites in the Alexa rankings, and consistently hanging around the 20k mark, meaning it&#8217;s my most successful personally-owned site to date. To some people it might not be that impressive but I guess it&#8217;s a bit of a milestone for sites I personally own.</p>
<p>I&#8217;ve also either added or are working on adding a few new features.<span id="more-10"></span></p>
<div id="attachment_11" class="wp-caption alignright" style="width: 160px"><a href="http://mybrokenlogic.com/wp-content/uploads/2009/02/p2-new-screenshot.png"><img class="size-thumbnail wp-image-11" title="New Screenshot (paste2.org)" src="http://mybrokenlogic.com/wp-content/uploads/2009/02/p2-new-screenshot-150x150.png" alt="Screenshot of the new template, I know, the logo is horrible!" width="150" height="150" /></a><p class="wp-caption-text">Screenshot of the new template, I know, the logo is horrible!</p></div>
<p>The first one that&#8217;s pretty much done is diffing between pastes. Essentially you can diff between pastes and in the page you&#8217;d be able to quickly, on the click of one button, be able to show the diff of the two pastes without messing around entering numbers.</p>
<p>Secondly the site has a new theme that I&#8217;m pretty happy with now. It&#8217;s lighter and much cleaner, and will hopefully provide a better experience for users.</p>
<p>I also want to add (text) file uploading to paste2 when creating pastes. When you have a big file pasting it in a browser window can be really annoying.</p>
<p>Another major project I want to do is to have a remote API using probably <a href="http://en.wikipedia.org/wiki/SOAP" target="_blank">SOAP</a> for people that want to create tools for interacting with the site.</p>
<p>I&#8217;ll be trying to get a beta up as soon as I can but some current work commitments mean I can&#8217;t spend as much time on it as I&#8217;d like.</p>
<p>On the note of scripts interacting with paste2 I was contacted by <a href="http://www.emacswiki.org/emacs/AndyStewart" target="_blank">Andy Stewart</a> regarding the Emacs script he created for interacting with paste2.org. After a few emails back and forth I implemented a feature for getting raw content of pastes so they can be grabbed by <a href="http://www.emacswiki.org/cgi-bin/emacs/Paste2" target="_blank">his script</a>. I don&#8217;t use Emacs personally, but it looks useful.</p>
]]></content:encoded>
			<wfw:commentRss>http://mybrokenlogic.com/2009/02/18/paste2org-updates/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
