<?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>Toby&#039;s Technical Ramblings &#187; Development</title> <atom:link href="http://tosbourn.com/category/development/feed/" rel="self" type="application/rss+xml" /><link>http://tosbourn.com</link> <description>A web development blog.</description> <lastBuildDate>Mon, 06 Feb 2012 15:08:08 +0000</lastBuildDate> <language>en</language> <sy:updatePeriod>hourly</sy:updatePeriod> <sy:updateFrequency>1</sy:updateFrequency> <item><title>Useful PHP Links</title><link>http://tosbourn.com/2012/02/development/useful-php-links/</link> <comments>http://tosbourn.com/2012/02/development/useful-php-links/#comments</comments> <pubDate>Mon, 06 Feb 2012 14:00:47 +0000</pubDate> <dc:creator>Toby</dc:creator> <category><![CDATA[Development]]></category> <category><![CDATA[PHP]]></category><guid
isPermaLink="false">http://tosbourn.com/?p=841</guid> <description><![CDATA[Another post that will be a dumping ground for useful PHP links I have found over time. Latest Edited: 06/02/12 9 Useful PHP functions &#8211; Including string compression and functions with an arbitrary number of arguments. PHP Security Guide &#8211; A really nice security guide for sites built in PHP.]]></description> <content:encoded><![CDATA[<p>Another post that will be a dumping ground for useful PHP links I have found over time.</p><p><em>Latest Edited: 06/02/12</em></p><p><a
href="http://net.tutsplus.com/tutorials/php/9-useful-php-functions-and-features-you-need-to-know/" target="_blank">9 Useful PHP functions</a> &#8211; Including string compression and functions with an arbitrary number of arguments.</p><p><a
href="http://phpsec.org/projects/guide/" target="_blank">PHP Security Guide</a> &#8211; A really nice security guide for sites built in PHP.</p> ]]></content:encoded> <wfw:commentRss>http://tosbourn.com/2012/02/development/useful-php-links/feed/</wfw:commentRss> <slash:comments>0</slash:comments> </item> <item><title>jQuery Links</title><link>http://tosbourn.com/2012/02/development/jquery-links/</link> <comments>http://tosbourn.com/2012/02/development/jquery-links/#comments</comments> <pubDate>Mon, 06 Feb 2012 13:56:29 +0000</pubDate> <dc:creator>Toby</dc:creator> <category><![CDATA[Development]]></category> <category><![CDATA[JavaScript]]></category> <category><![CDATA[jQuery]]></category><guid
isPermaLink="false">http://tosbourn.com/?p=838</guid> <description><![CDATA[I will add to this overtime but this will be a dumping ground of useful jQuery links I have found. Latest Edited: 06/02/12 Differences Between jQuery .bind() vs .live() vs .delegate() vs .on() &#8211; Exactly as the title suggests! jQuery Fundementals Course &#8211; An excellent free course in jQuery by Rebecca Murphy, hosted on Github.]]></description> <content:encoded><![CDATA[<p>I will add to this overtime but this will be a dumping ground of useful jQuery links I have found.</p><p><em>Latest Edited: 06/02/12</em></p><p><a
href="http://www.elijahmanor.com/2012/02/differences-between-jquery-bind-vs-live.html" target="_blank">Differences Between jQuery .bind() vs .live() vs .delegate() vs .on()</a> &#8211; Exactly as the title suggests!</p><p><a
href="http://jqfundamentals.com/book/index.html" target="_blank">jQuery Fundementals Course</a> &#8211; An excellent free course in jQuery by Rebecca Murphy, hosted on Github.</p> ]]></content:encoded> <wfw:commentRss>http://tosbourn.com/2012/02/development/jquery-links/feed/</wfw:commentRss> <slash:comments>0</slash:comments> </item> <item><title>CakePHP 2.0 Read Recursive</title><link>http://tosbourn.com/2012/01/development/cakephp-2-0-read-recursive/</link> <comments>http://tosbourn.com/2012/01/development/cakephp-2-0-read-recursive/#comments</comments> <pubDate>Mon, 30 Jan 2012 21:53:10 +0000</pubDate> <dc:creator>Toby</dc:creator> <category><![CDATA[Development]]></category> <category><![CDATA[PHP]]></category> <category><![CDATA[CakePHP]]></category><guid
isPermaLink="false">http://tosbourn.com/?p=820</guid> <description><![CDATA[This is something that caught me out several times when I was new to CakePHP, so I thought I would post it here in case you are in a similar situation. Basically I was hitting issues that when I was viewing the variables available to a view (using the CakePHP Debug Toolbar) were I was [...]]]></description> <content:encoded><![CDATA[<p>This is something that caught me out several times when I was new to CakePHP, so I thought I would post it here in case you are in a similar situation.</p><p>Basically I was hitting issues that when I was viewing the variables available to a view (using the CakePHP Debug Toolbar) were I was noticing that I was bringing back far more information than I needed (and occasionally, not enough)</p><p>Bringing back too much information is never a good thing, it is inefficient and a possible security leak.</p><p>The reason for this is that in CakePHP the <code>Read</code>, <code>Find</code> or <code>FindAll</code> takes in a value called <code>Recursive</code>.</p><p>To set the level of recursion you do something similar to the following;</p><pre><code>$this-&gt;Model-&gt;recursive = 1</code></pre><p>There are 4 settings, which can be read about in detail in the <a
href="http://book.cakephp.org/2.0/en/models/model-attributes.html?highlight=recursive%20findall" target="_blank">CakePHP Book</a>, but basically you can use this to make <code>Read</code>, <code>Find</code> or <code>FindAll</code> not perform JOINS (or perform more of them!).</p><p>Be sure that your selections only ever return the data they need to and no more.</p> ]]></content:encoded> <wfw:commentRss>http://tosbourn.com/2012/01/development/cakephp-2-0-read-recursive/feed/</wfw:commentRss> <slash:comments>0</slash:comments> </item> <item><title>CSS Vendor Prefixes &#8211; A potential use case</title><link>http://tosbourn.com/2012/01/design/css-vendor-prefixes-a-potential-use-case/</link> <comments>http://tosbourn.com/2012/01/design/css-vendor-prefixes-a-potential-use-case/#comments</comments> <pubDate>Thu, 26 Jan 2012 10:31:27 +0000</pubDate> <dc:creator>Toby</dc:creator> <category><![CDATA[Design]]></category> <category><![CDATA[Development]]></category> <category><![CDATA[Browsers]]></category> <category><![CDATA[CSS]]></category><guid
isPermaLink="false">http://tosbourn.com/?p=814</guid> <description><![CDATA[You know those moments when you know something won&#8217;t work but you try it anyway just in case the web gods look favourably on you for once? Well I just had one of those and I would like to share it, because I think this is something that the web gods should consider. Vendor prefixes [...]]]></description> <content:encoded><![CDATA[<p>You know those moments when you know something won&#8217;t work but you try it anyway just in case the web gods look favourably on you for once? Well I just had one of those and I would like to share it, because I think this is something that the web gods should consider.</p><p>Vendor prefixes in CSS serve the purpose of allowing browsers to play about with their own implementations of new CSS rules or adding stuff totally unique to them.</p><p>There have been arguments back and forward about how useful these are in production systems and there have been some great tools made to try and reduce how much time we spend in vendor prefix hell, personally I think anything that drives the web forward is a good thing and I think prefixes do that.  But anyway, enough pre-able.</p><p>What I would like to propose is that since we have vendor prefixes anyway, <strong>could we use them to target specific browsers with already known rules</strong>.</p><p>I have an edge case where it would be really nice to be able to do something like;</p><pre>margin-bottom: 59px;
-webkit-margin-bottom: 39px;</pre><p>What this would allow me to do is set the standard margin-bottom to 59px (if it not being 60px makes you twitch, join the club!) but in webkit browsers I would like the margin to be slightly smaller.</p><p>I know this could be misused and end in really sloppy, massive CSS files &#8211; but if used with care (which I promise I would do) it would be a neat way to achieve these odd little hacks that occasionally we need to do.</p> ]]></content:encoded> <wfw:commentRss>http://tosbourn.com/2012/01/design/css-vendor-prefixes-a-potential-use-case/feed/</wfw:commentRss> <slash:comments>0</slash:comments> </item> <item><title>Canonical and Base URLs</title><link>http://tosbourn.com/2012/01/development/canonical-and-base-urls/</link> <comments>http://tosbourn.com/2012/01/development/canonical-and-base-urls/#comments</comments> <pubDate>Wed, 25 Jan 2012 10:30:43 +0000</pubDate> <dc:creator>Toby</dc:creator> <category><![CDATA[Development]]></category> <category><![CDATA[Base]]></category> <category><![CDATA[Canonical]]></category> <category><![CDATA[html]]></category><guid
isPermaLink="false">http://tosbourn.com/?p=809</guid> <description><![CDATA[Canonical URLs According to Wikipedia the word canonical in a Computer Science sense means &#8220;the usual or standard state or manner of something&#8221;, in terms of web development canonical URLs are the preferred URLs as picked by the web developer. So when a website has multiple URLs for the same content specifying a canonical URL [...]]]></description> <content:encoded><![CDATA[<h2>Canonical URLs</h2><p>According to <a
href="http://en.wikipedia.org/wiki/Canonical#Computer_science" target="_blank">Wikipedia</a> the word canonical in a Computer Science sense means &#8220;the usual or standard state or manner of something&#8221;, in terms of web development canonical URLs are the preferred URLs as picked by the web developer. So when a website has multiple URLs for the same content specifying a canonical URL tells search engines which link they should display to the public.</p><p>To use canonical URLs you should place something like the following in the head of your document;</p><pre>&lt;link rel="canonical" href="http://www.example.com/category/my_page.html"&gt;</pre><p>Unfortunately this is only a signal, not a directive &#8211; so search engines don&#8217;t need to follow this, but from what I can see it appears to be a pretty strong signal.</p><p>What is cool is that the canonical link can point to another domain alltogther &#8211; this could be useful if you don&#8217;t have access to do other forms of redirection.</p><h2>Base URLs</h2><p>Base URLs let the web developer specify a documents base URI explicity, this ties in nicely with canonical links which can be relative if you wish and can help with duplicate content issues for linked content coming from your site.</p><p>To use base URLs you should place something like the following in the head of your document;</p><pre>&lt;base href="http://www.example.com/category/my_page.html"&gt;</pre><p>At the first pass you are probably thinking that this is the exact same as the canonical URL we wanted to include, the difference with this is that then we do something like;</p><pre>&lt;img src="../img/myimg.png" alt="my test image" /&gt;</pre><p>And this would relate to http://example.com/img/myimg.png &#8211; pretty cool eh?</p><p>This will basically mean that your canonical URL can be replicated throughout relative links in your site, which improves the chances that search engines will index the URL you want them to index.</p><h2>I don&#8217;t care about SEO &#8211; why should I do this?</h2><p>Some people just don&#8217;t care about ranking well in search engines, and that is fine, but I still think you should look into implementing these tags were appropriate on your website &#8211; here is why.</p><p>I am currently working on a legacy project that is a site that accepts multiple domain names, it then uses some database magic to display different sites depending on the domain. Simple enough. The only issue is that the original developers didn&#8217;t think about the need to provide a canonical URL, so b.com/a/b/c and x.com/a/b/c show the same content across different domains and unfortunately somewhere along the line Google has indexed &#8216;b&#8217; as sitting under x.com instead of b.com &#8211; which just looks wrong (even if you don&#8217;t care about rank)</p><p>Granted this is just an edge base, but it is one of many that can be solved by the correct application of both canonical and base urls.</p><h2>Further Reading:</h2><h3>Canonical Links</h3><ul><li><a
href="http://support.google.com/webmasters/bin/answer.py?hl=en&amp;answer=139394" target="_blank">http://support.google.com/webmasters/bin/answer.py?hl=en&amp;answer=139394</a></li><li><a
href="http://www.mattcutts.com/blog/seo-advice-url-canonicalization/" target="_blank">http://www.mattcutts.com/blog/seo-advice-url-canonicalization/</a></li><li><a
href="http://en.wikipedia.org/wiki/URL_normalization" target="_blank">http://en.wikipedia.org/wiki/URL_normalization</a></li><li><a
href="http://www.seomoz.org/blog/canonical-url-tag-the-most-important-advancement-in-seo-practices-since-sitemaps" target="_blank">http://www.seomoz.org/blog/canonical-url-tag-the-most-important-advancement-in-seo-practices-since-sitemaps</a></li></ul><h3>Base Links</h3><ul><li><a
href="http://www.w3.org/TR/html4/struct/links.html#h-12.4" target="_blank">http://www.w3.org/TR/html4/struct/links.html#h-12.4</a></li></ul> ]]></content:encoded> <wfw:commentRss>http://tosbourn.com/2012/01/development/canonical-and-base-urls/feed/</wfw:commentRss> <slash:comments>0</slash:comments> </item> <item><title>Having FTP in your IDE is part of a broken model</title><link>http://tosbourn.com/2012/01/development/having-ftp-in-your-ide-is-part-of-a-broken-model/</link> <comments>http://tosbourn.com/2012/01/development/having-ftp-in-your-ide-is-part-of-a-broken-model/#comments</comments> <pubDate>Thu, 12 Jan 2012 22:29:44 +0000</pubDate> <dc:creator>Toby</dc:creator> <category><![CDATA[Development]]></category> <category><![CDATA[FTP]]></category> <category><![CDATA[IDE]]></category> <category><![CDATA[Version Control]]></category><guid
isPermaLink="false">http://tosbourn.com/?p=801</guid> <description><![CDATA[I have recently been getting more and more worried about people using FTP on projects that go anywhere near me. It isn&#8217;t that I have anything particularly against the protocol, over the years it has served me well and it still continues to do so when I have the need to use it, but FTP [...]]]></description> <content:encoded><![CDATA[<p>I have recently been getting more and more worried about people using FTP on projects that go anywhere near me.</p><p>It isn&#8217;t that I have anything particularly against the protocol, over the years it has served me well and it still continues to do so when I have the need to use it, but FTP (especially the type tied into most IDEs) can lead you down some pretty scary alleyways on the way to FFFFFUUUUUUU-ville. Here are a couple of things that can happen, I am sure you can think of more;</p><ul><li>You can overwrite a file you didn&#8217;t mean to overwrite.</li><li>You can upload information you don&#8217;t really need to upload (an entire directory, for instance)</li><li>You can delete a file locally that will never be deleted on the server.</li></ul><p>Overwriting a file you didn&#8217;t mean to can cause a lot of headaches &#8211; I am sure I am not the only one who has uploaded an incorrect config file in their time and then crapped themselves when the database suddenly won&#8217;t connect. With something like version control the headache is mitigated by always being able to roll back, FTP however, not so much.</p><p>Uploading something you don&#8217;t want to upload could be if you have a directory of thumbnails but you also have the originals images in them (bad practice, but I am sure it happens!). You upload the entire directory and you inadvertently upload extra information. To a lesser extent this can happen with things like the .svn folders that SVN leaves at its arse.</p><p>My final point is that deleting a file locally (in your IDE) does not then attempt to delete the linked file, or at least it doesn&#8217;t in most of the IDEs I have used, this means that over the course of a project your webserver could become bloated with unnecessary files that could cause potential security risks and if nothing else will increase the size of any backup you take &#8211; potentially confusing people who need to access the files live on the server for whatever reason.</p><p>It is this last point that really has me worried, files being left on a server that people are maybe assuming are gone.</p><p>The old way of developing websites normally involved working on your files in some text editor, maybe testing them locally and then opening up your FTP client to transfer the files onto a dev or test server, then once you were happy you would transfer them from your local machine again onto a live environment.</p><p>This way of doing things just sucks, far too much human interaction, far too much scope for error and it is just boring.</p><p>The next step was for development environments to include FTP modules to allow you to automatically push code from your local machine to your development or live environment, this takes some of the human interaction out of the equation, but I think this is broken and dangerous.</p><p>IDEs have made us feel like there is less scope for error and have taken the monotony out of pushing data using FTP but I think with this relaxed process of uploading comes a relaxed process to how you handle your files and as I have already mentioned FTP is not brilliant at letting you recover from making sloppy mistakes.</p><p>Without firing up an FTP client and seeing on the one hand your local files and on the other your server&#8217;s files you are less likely to notice when you are upload a load of images that maybe shouldn&#8217;t be uploaded, or that certain server directories are full of files long since deleted on your local machine.</p><p>As I said at the start of this article, I do think FTP has served us well, and I think that FTP inside IDEs is a good idea for a couple of use cases, but it has made things too easy without giving us the safety net of something like a good version control system.</p><p>Of course the current best practice tends to be to use some form of version control coupled with some type of deployment solution and this is what I think people and companies should be doing (but that is an entirely different blog post for another night!)</p><p>If you are using FTP for the vast majority of your web project needs, I would urge you to research and consider other methods, I think it will lead to safer development and a happier you!</p> ]]></content:encoded> <wfw:commentRss>http://tosbourn.com/2012/01/development/having-ftp-in-your-ide-is-part-of-a-broken-model/feed/</wfw:commentRss> <slash:comments>0</slash:comments> </item> <item><title>Ruby Fizz Buzz Solution</title><link>http://tosbourn.com/2012/01/development/ruby-fizz-buzz-solution/</link> <comments>http://tosbourn.com/2012/01/development/ruby-fizz-buzz-solution/#comments</comments> <pubDate>Wed, 11 Jan 2012 23:42:07 +0000</pubDate> <dc:creator>Toby</dc:creator> <category><![CDATA[Development]]></category> <category><![CDATA[Ruby]]></category> <category><![CDATA[Fizz Buzz]]></category><guid
isPermaLink="false">http://tosbourn.com/?p=798</guid> <description><![CDATA[I decided as part of my wanted to get to know Ruby a bit better I would go back to basics and try out some of the programming challenges that people new to programming are normally asked to try out. For those that don&#8217;t know, Fizz Buzz is a children&#8217;s game where you count upwards [...]]]></description> <content:encoded><![CDATA[<p>I decided as part of my wanted to get to know Ruby a bit better I would go back to basics and try out some of the programming challenges that people new to programming are normally asked to try out.</p><p>For those that don&#8217;t know, Fizz Buzz is a children&#8217;s game where you count upwards from 1, each time the number is divisible by 3 they have to shout Fizz, each time it is divisible by 5 they have to shout Buzz and each time it is divisible by both 3 and 5 they have to shout &#8216;FizzBuzz&#8217;.</p><p>Obviously this is a trivial task for a seasoned programmer, but it is a nice example to get used to the syntax of a new language.</p><p>This was my first attempt &#8211; pretty boring and self-explanatory;</p><pre>for i in (1..20)
    x = ''
    x += "Fizz" if (i % 3 == 0)
    x += "Buzz" if (i % 5 == 0)
    puts(x.empty? ? i : x)
end</pre><p>My thinking was that I wanted to keep my puts to a minimum and maintain readability, I think this does just that.</p><p>Once I completed the task I started looking around for more creative solutions and stumbled on <a
href="http://fizzbuzz.rubyforge.org/svn/trunk/lib/fizzbuzz.rb" target="_blank">this code</a>;</p><p>Some of the solutions are just awesome &#8211; fizzbuzz_sequence7_reverse especially wins it for me and I think if ever I need to show anyone Fizz Buzz I will think up more of the &#8216;exotic&#8217; ways of doing it like these guys did.</p> ]]></content:encoded> <wfw:commentRss>http://tosbourn.com/2012/01/development/ruby-fizz-buzz-solution/feed/</wfw:commentRss> <slash:comments>0</slash:comments> </item> <item><title>Useful Web Developer Bookmarklets</title><link>http://tosbourn.com/2012/01/development/useful-web-developer-bookmarklets/</link> <comments>http://tosbourn.com/2012/01/development/useful-web-developer-bookmarklets/#comments</comments> <pubDate>Wed, 11 Jan 2012 12:44:50 +0000</pubDate> <dc:creator>Toby</dc:creator> <category><![CDATA[Development]]></category> <category><![CDATA[Bookmarklet]]></category> <category><![CDATA[Google Maps]]></category><guid
isPermaLink="false">http://tosbourn.com/?p=793</guid> <description><![CDATA[A bookmarklet is normally some JavaScript that you save as a bookmark that will let you apply that JavaScript to a particular page. Here will be a growing list of bookmarklets that I use regularly. Getting coordinates from Google Maps Code: javascript:javascript:void(prompt('',gApplication.getMap().getCenter())); Use Case: When you are attempting to get the coordinates of a location, [...]]]></description> <content:encoded><![CDATA[<p>A bookmarklet is normally some JavaScript that you save as a bookmark that will let you apply that JavaScript to a particular page.</p><p>Here will be a growing list of bookmarklets that I use regularly.</p><h3>Getting coordinates from Google Maps</h3><p>Code:</p><pre>javascript:javascript:void(prompt('',gApplication.getMap().getCenter()));</pre><p>Use Case:</p><p>When you are attempting to get the coordinates of a location, you can use Google Maps to find the location and click on this bookmarklet, it will alert the coordinates onto the screen.</p><p>Originally From:</p><p><a
href="https://groups.google.com/a/googleproductforums.com/forum/#!category-topic/maps/base-map-data/Vp90rs-mZCE">https://groups.google.com/a/googleproductforums.com/forum/#!category-topic/maps/base-map-data/Vp90rs-mZCE</a></p><h3>Creating Wireframes from websites</h3><p>Code:</p><p>The code is all on the <a
href="http://www.wirify.com/" target="_blank">official website</a>.</p><p>Use Case:</p><p>When you like the look of a design but want to almost reverse engineer it into its basic parts.</p><p>Originally From:</p><p><a
href="http://www.wirify.com/" target="_blank">http://www.wirify.com/</a></p><p>&nbsp;</p> ]]></content:encoded> <wfw:commentRss>http://tosbourn.com/2012/01/development/useful-web-developer-bookmarklets/feed/</wfw:commentRss> <slash:comments>0</slash:comments> </item> <item><title>Updating PHP5.2 to PHP5.3 using apt-get</title><link>http://tosbourn.com/2012/01/development/updating-php5-2-to-php5-3-using-apt-get/</link> <comments>http://tosbourn.com/2012/01/development/updating-php5-2-to-php5-3-using-apt-get/#comments</comments> <pubDate>Fri, 06 Jan 2012 14:26:17 +0000</pubDate> <dc:creator>Toby</dc:creator> <category><![CDATA[Development]]></category> <category><![CDATA[PHP]]></category> <category><![CDATA[Server]]></category><guid
isPermaLink="false">http://tosbourn.com/?p=790</guid> <description><![CDATA[There are already a couple of guides online already about this, but none of them seemed complete or at least I had to do some extra digging to solve things perhaps unique to my setup. Here is what I have done to update PHP5.2 to PHP5.3 using apt-get; You will need to execute the following [...]]]></description> <content:encoded><![CDATA[<p>There are already a couple of guides online already about this, but none of them seemed complete or at least I had to do some extra digging to solve things perhaps unique to my setup.</p><p>Here is what I have done to update PHP5.2 to PHP5.3 using apt-get;</p><p>You will need to execute the following commands as root or sudo them.</p><ol><li>Back everything up.</li><li>Make sure everything is backed up (seriously).</li><li>Add some lines to your sources list<br
/> <strong>vi /etc/apt/sources.list</strong></p><pre># php5.3
deb http://php53.dotdeb.org oldstable all
deb-src http://php53.dotdeb.org oldstable all</pre></li><li>Request some public keys;<br
/> <strong> gpg &#8211;keyserver keys.gnupg.net &#8211;recv-key 89DF5277 </strong><br
/> <strong>gpg -a &#8211;export 89DF5277 | sudo apt-key add -</strong></li><li>Update your system<br
/> <strong>apt-get update</strong><br
/> <strong>apt-get dist-upgrade </strong></li><li>(optional, I had to do this for my GD library) update php5-gd<br
/> <strong>apt-get -f install php5-gd</strong></li><li><span
style="color: #000000;">Test your sites.</span></li><li><span
style="color: #000000;">Take a new backup with your new setup.<br
/> </span></li></ol> ]]></content:encoded> <wfw:commentRss>http://tosbourn.com/2012/01/development/updating-php5-2-to-php5-3-using-apt-get/feed/</wfw:commentRss> <slash:comments>0</slash:comments> </item> <item><title>Too many posts about the same thing on your Twitter timeline?</title><link>http://tosbourn.com/2012/01/development/too-many-posts-about-the-same-thing-on-your-twitter-timeline/</link> <comments>http://tosbourn.com/2012/01/development/too-many-posts-about-the-same-thing-on-your-twitter-timeline/#comments</comments> <pubDate>Fri, 06 Jan 2012 09:35:40 +0000</pubDate> <dc:creator>Toby</dc:creator> <category><![CDATA[Development]]></category> <category><![CDATA[jQuery]]></category> <category><![CDATA[Twitter]]></category><guid
isPermaLink="false">http://tosbourn.com/?p=787</guid> <description><![CDATA[I was getting annoyed about the amount of posts about one particular topic on my timeline this morning and I decided I could fix the issue with some jQuery. var term = $('.twitter-anywhere-tweet-box-editor').val(); $(".stream-item:contains('" + term + "')").css('display','none'); If you save it as a bookmarklet you can use this by typing the term you want [...]]]></description> <content:encoded><![CDATA[<p>I was getting annoyed about the amount of posts about one particular topic on my timeline this morning and I decided I could fix the issue with some jQuery.</p><p><code><br
/> var term = $('.twitter-anywhere-tweet-box-editor').val();<br
/> $(".stream-item:contains('" + term + "')").css('display','none');<br
/> </code></p><p>If you save it as a bookmarklet you can use this by typing the term you want to disappear from your timeline in the search box and then clicking the bookmarklet.</p><p><code>javascript:var term = $('.twitter-anywhere-tweet-box-editor').val();$(".stream-item:contains('" + term + "')").css('display','none');</code></p><p>That has no practical application really as it doesn&#8217;t persist over page reloads and only lets you do one phrase at a time, but it helped me vent some frustration at dumb tweets!</p> ]]></content:encoded> <wfw:commentRss>http://tosbourn.com/2012/01/development/too-many-posts-about-the-same-thing-on-your-twitter-timeline/feed/</wfw:commentRss> <slash:comments>0</slash:comments> </item> </channel> </rss>
<!-- Served from: tosbourn.com @ 2012-02-10 00:30:34 by W3 Total Cache -->
