<?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>VéloFille &#187; Tech</title>
	<atom:link href="http://velofille.com/category/tech/feed/" rel="self" type="application/rss+xml" />
	<link>http://velofille.com</link>
	<description>Blog of Liz Awesome Quilty</description>
	<lastBuildDate>Fri, 16 Dec 2011 01:31:14 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>Dell Studio 17&#8243;  1749 &#8211; Ubuntu linux suspend and hibernate problems</title>
		<link>http://velofille.com/2011/09/10/dell-studio-17-1749-ubuntu-linux-suspend-and-hibernate-problems/</link>
		<comments>http://velofille.com/2011/09/10/dell-studio-17-1749-ubuntu-linux-suspend-and-hibernate-problems/#comments</comments>
		<pubDate>Sat, 10 Sep 2011 03:03:10 +0000</pubDate>
		<dc:creator>Liz Quilty</dc:creator>
				<category><![CDATA[Informative]]></category>
		<category><![CDATA[Tech]]></category>

		<guid isPermaLink="false">http://velofille.com/?p=1347</guid>
		<description><![CDATA[I have a really awesome Dell studio 17&#8243; laptop. It works brilliantly with Ubuntu since the day i got it, however during an upgrade at sometime, it suddenly stopped suspending and hibernating. This was annoying more than anything, but still fine. I hunted for months high and low for an answer, and could find nothing [...]]]></description>
			<content:encoded><![CDATA[<div class="tweetmeme_button" style="float: right; margin-left: 10px;">
			<a href="http://api.tweetmeme.com/share?url=http%3A%2F%2Fvelofille.com%2F2011%2F09%2F10%2Fdell-studio-17-1749-ubuntu-linux-suspend-and-hibernate-problems%2F"><br />
				<img src="http://api.tweetmeme.com/imagebutton.gif?url=http%3A%2F%2Fvelofille.com%2F2011%2F09%2F10%2Fdell-studio-17-1749-ubuntu-linux-suspend-and-hibernate-problems%2F&amp;source=velofille&amp;style=normal&amp;service=ow.ly&amp;b=2" height="61" width="50" /><br />
			</a>
		</div>
<p>I have a really awesome Dell studio 17&#8243; laptop. It works brilliantly with Ubuntu since the day i got it, however during an upgrade at sometime, it suddenly stopped suspending and hibernating.</p>
<p>This was annoying more than anything, but still fine. I hunted for months high and low for an answer, and could find nothing in any log files. I saw many complaints and bugfixes of which non seemed to work.</p>
<p>The machine suspended fine, it just never came back from that. It sat with a blank screen until i power cycled it to get it going.</p>
<p>So, i had 4 days off work, and decided to get to the bottom of this silly bug. I could only assume that it was something preventing it from resuming, either kernel, module, or software.</p>
<p>Again, nothing in the logs anywhere. Finally i stumbled over this bug <a href="https://bugs.launchpad.net/ubuntu/+source/linux/+bug/748994">https://bugs.launchpad.net/ubuntu/+source/linux/+bug/748994</a></p>
<p>In the comments the following fix worked brilliantly for me.</p>
<p>Steps:</p>
<p>1. Create new file /etc/modprobe.d/blacklist-suspend.conf with the following two lines:</p>
<p>blacklist firewire_core<br />
blacklist firewire_ohci</p>
<p>2. Run: sudo update-initramfs -u</p>
<p>3. Reboot and check that the modules were not loaded by running: lsmod | grep firewire</p>
<p>4. Suspend the machine and bring it back up.</p>
<p>5. Hibernate the machine and bring it back up.</p>
<p>Both suspend and hibernate work now.</p>
<div class="plus-one-wrap"><g:plusone href="http://velofille.com/2011/09/10/dell-studio-17-1749-ubuntu-linux-suspend-and-hibernate-problems/"></g:plusone></div>]]></content:encoded>
			<wfw:commentRss>http://velofille.com/2011/09/10/dell-studio-17-1749-ubuntu-linux-suspend-and-hibernate-problems/feed/</wfw:commentRss>
		<slash:comments>5</slash:comments>
		</item>
		<item>
		<title>WordPress Widget for Google+ posts</title>
		<link>http://velofille.com/2011/08/24/wordpress-widget-for-google-posts/</link>
		<comments>http://velofille.com/2011/08/24/wordpress-widget-for-google-posts/#comments</comments>
		<pubDate>Wed, 24 Aug 2011 06:52:02 +0000</pubDate>
		<dc:creator>Liz Quilty</dc:creator>
				<category><![CDATA[Tech]]></category>
		<category><![CDATA[code]]></category>
		<category><![CDATA[feed]]></category>
		<category><![CDATA[google]]></category>
		<category><![CDATA[plugin]]></category>
		<category><![CDATA[plus]]></category>
		<category><![CDATA[syndication]]></category>
		<category><![CDATA[widget]]></category>
		<category><![CDATA[wordpress]]></category>

		<guid isPermaLink="false">http://velofille.com/?p=1325</guid>
		<description><![CDATA[If you want a wordpress plugin that feeds your PUBLIC posts to your blog in a widget &#8211; test mine for me and let me know how that works for you go into &#8216;Add plugin&#8217; and search for &#8216;google plus feed widget&#8217; and it should be at the top (made by Liz Quilty). Direct link [...]]]></description>
			<content:encoded><![CDATA[<div class="tweetmeme_button" style="float: right; margin-left: 10px;">
			<a href="http://api.tweetmeme.com/share?url=http%3A%2F%2Fvelofille.com%2F2011%2F08%2F24%2Fwordpress-widget-for-google-posts%2F"><br />
				<img src="http://api.tweetmeme.com/imagebutton.gif?url=http%3A%2F%2Fvelofille.com%2F2011%2F08%2F24%2Fwordpress-widget-for-google-posts%2F&amp;source=velofille&amp;style=normal&amp;service=ow.ly&amp;b=2" height="61" width="50" /><br />
			</a>
		</div>
<p>If you want a wordpress plugin that feeds your PUBLIC posts to your blog in a widget &#8211; test mine for me and let me know how that works for you</p>
<p>go into &#8216;Add plugin&#8217; and search for &#8216;google plus feed widget&#8217; and it should be at the top (made by Liz Quilty). Direct link is <a href="http://wordpress.org/extend/plugins/google-plus-feed-widget/" target="_blank">http://wordpress.org/extend/plugins/google-plus-feed-widget/</a></p>
<p>Unzip into your plugins dir. Enable the plugin in wordpress, then go to your widgets menu. Drag it where ever you want it, and make sure you add your Google ID into its config (otherwise it defaults to mine). </p>
<p>Let me know any bugs, addons or similar required .</p>
<p>See it working just over there &#8212;>></p>
<div class="plus-one-wrap"><g:plusone href="http://velofille.com/2011/08/24/wordpress-widget-for-google-posts/"></g:plusone></div>]]></content:encoded>
			<wfw:commentRss>http://velofille.com/2011/08/24/wordpress-widget-for-google-posts/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Syndicating your Google Plus Feed into your WordPress Blog</title>
		<link>http://velofille.com/2011/08/18/syndicating-your-google-plus-feed-into-your-wordpress-blog/</link>
		<comments>http://velofille.com/2011/08/18/syndicating-your-google-plus-feed-into-your-wordpress-blog/#comments</comments>
		<pubDate>Thu, 18 Aug 2011 08:02:20 +0000</pubDate>
		<dc:creator>Liz Quilty</dc:creator>
				<category><![CDATA[Informative]]></category>
		<category><![CDATA[Tech]]></category>
		<category><![CDATA[feed]]></category>
		<category><![CDATA[g+]]></category>
		<category><![CDATA[google]]></category>
		<category><![CDATA[plus]]></category>
		<category><![CDATA[rss]]></category>
		<category><![CDATA[syndicating]]></category>
		<category><![CDATA[wordpress]]></category>

		<guid isPermaLink="false">http://velofille.com/?p=1310</guid>
		<description><![CDATA[&#160; Somebody mentioned that it was hard/impossible to do this, and i know that a few people will want to. So i figured i would hunt about and see if it was possible, and it is! It&#8217;s not even too difficult! First of all, go to http://plusfeed.appspot.com/ &#8211; it gives you an rss feed of [...]]]></description>
			<content:encoded><![CDATA[<div class="tweetmeme_button" style="float: right; margin-left: 10px;">
			<a href="http://api.tweetmeme.com/share?url=http%3A%2F%2Fvelofille.com%2F2011%2F08%2F18%2Fsyndicating-your-google-plus-feed-into-your-wordpress-blog%2F"><br />
				<img src="http://api.tweetmeme.com/imagebutton.gif?url=http%3A%2F%2Fvelofille.com%2F2011%2F08%2F18%2Fsyndicating-your-google-plus-feed-into-your-wordpress-blog%2F&amp;source=velofille&amp;style=normal&amp;service=ow.ly&amp;b=2" height="61" width="50" /><br />
			</a>
		</div>
<p>&nbsp;</p>
<p>Somebody mentioned that it was hard/impossible to do this, and i know that a few people will want to. So i figured i would hunt about and see if it was possible, and it is! It&#8217;s not even too difficult!</p>
<p>First of all, go to <a href="http://plusfeed.appspot.com/" target="_blank">http://plusfeed.appspot.com/</a> &#8211; it gives you an rss feed of all your public posts (this will only work for public posts sorry). My URL for my rss feed is <a href="http://plusfeed.appspot.com/114228869493885222559" target="_blank">http://plusfeed.appspot.com/114228869493885222559</a> , yours will look similar, just grab the id number from your profile page URL and add it after the domain.<br />
<a href="http://velofille.com/wp-content/uploads/2011/08/profileid.png"><img class="aligncenter size-full wp-image-1313" title="profileid" src="http://velofille.com/wp-content/uploads/2011/08/profileid.png" alt="" width="700" height="260" /></a></p>
<p>Now go to your WordPress , login, to go Plugins &gt; Add New . Search for and find the plugin called FeedWordPress and install/activate it.<br />
Now it should show you your feed in that syndication tab, you can click the &#8216;update now&#8217; button to load the last few posts.</p>
<table border="0">
<tbody>
<tr>
<td>Now you will notice a new menu bottom left called &#8216;Syndication&#8217;, click on that, then add in the URL above from plusfeed.appspot.com into the box named &#8220;New source&#8221;. It will confirm the look/feel, and add it.<br />
Now you can click the &#8216;update&#8217;</td>
<td><a href="http://velofille.com/wp-content/uploads/2011/08/menu.png"><img class="size-full wp-image-1316" title="menu" src="http://velofille.com/wp-content/uploads/2011/08/menu.png" alt="" width="157" height="191" /></a></td>
</tr>
</tbody>
</table>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p><a href="http://velofille.com/wp-content/uploads/2011/08/syndicated1.png"><img class="aligncenter size-full wp-image-1314" title="syndicated1" src="http://velofille.com/wp-content/uploads/2011/08/syndicated1.png" alt="" width="700" height="116" /></a></p>
<p>&nbsp;</p>
<h2>Updating</h2>
<p>Now click on the Feeds and Updates menu below it, look for the drop down box and choose &#8216;Look for updates after page loads&#8217;. You can do updates before the page loads, but this means if a person comes to your blog they are sitting waiting for the page to load whilst it does background grabbing of data.<br />
From here you are away working, feel free to fiddle with other settings.<br />
<a href="http://velofille.com/wp-content/uploads/2011/08/updates.png"><img class="aligncenter size-full wp-image-1315" title="updates" src="http://velofille.com/wp-content/uploads/2011/08/updates.png" alt="" width="677" height="332" /></a></p>
<p>&nbsp;</p>
<p>I found i prefer the link to go to the blog post rather than link to the google+ link, so i go to Posts and Links menu, and scroll down to Links, then choose &#8216;The local copy on this website&#8217;</p>
<p><a href="http://velofille.com/wp-content/uploads/2011/08/postssandlinks.png"><img class="aligncenter size-full wp-image-1312" title="postssandlinks" src="http://velofille.com/wp-content/uploads/2011/08/postssandlinks.png" alt="" width="462" height="125" /></a></p>
<div class="plus-one-wrap"><g:plusone href="http://velofille.com/2011/08/18/syndicating-your-google-plus-feed-into-your-wordpress-blog/"></g:plusone></div>]]></content:encoded>
			<wfw:commentRss>http://velofille.com/2011/08/18/syndicating-your-google-plus-feed-into-your-wordpress-blog/feed/</wfw:commentRss>
		<slash:comments>6</slash:comments>
		</item>
		<item>
		<title>Removing spam users from wordpress with bbforum using SQL</title>
		<link>http://velofille.com/2011/08/16/removing-spam-users-from-wordpress-with-bbforum-using-sql/</link>
		<comments>http://velofille.com/2011/08/16/removing-spam-users-from-wordpress-with-bbforum-using-sql/#comments</comments>
		<pubDate>Tue, 16 Aug 2011 10:45:59 +0000</pubDate>
		<dc:creator>Liz Quilty</dc:creator>
				<category><![CDATA[Tech]]></category>
		<category><![CDATA[bbpress bbforum wordpress hack sql mysql users spam remove delete]]></category>

		<guid isPermaLink="false">http://velofille.com/?p=1283</guid>
		<description><![CDATA[I have a wordpress blog, actually i have a lot of them, which uses the bb forum plugin as well as the main site. This particular forum attracts a lot of spam signups, this can bog down the database once it gets to the point of over 11k or more, and its a security risk [...]]]></description>
			<content:encoded><![CDATA[<div class="tweetmeme_button" style="float: right; margin-left: 10px;">
			<a href="http://api.tweetmeme.com/share?url=http%3A%2F%2Fvelofille.com%2F2011%2F08%2F16%2Fremoving-spam-users-from-wordpress-with-bbforum-using-sql%2F"><br />
				<img src="http://api.tweetmeme.com/imagebutton.gif?url=http%3A%2F%2Fvelofille.com%2F2011%2F08%2F16%2Fremoving-spam-users-from-wordpress-with-bbforum-using-sql%2F&amp;source=velofille&amp;style=normal&amp;service=ow.ly&amp;b=2" height="61" width="50" /><br />
			</a>
		</div>
<p>I have a wordpress blog, actually i have a lot of them, which uses the bb forum plugin as well as the main site.<br />
This particular forum attracts a lot of spam signups, this can bog down the database once it gets to the point of over 11k or more, and its a security risk (and pain in the butt). I have implemented several plugins to stop sign ups but they still eventually find their way around things.</p>
<p>So today i decided that i really wanted to be rid of all the users that had not commented or posted on the forum. I had previously found plugins that did this for wordpress itself, but they do not work with the bb forums. Often they check if a person has commented on the wordpress, but not if they have posted on the forum.</p>
<p>Anyway i figured it would be a simple mysql query, so hunted about the forum and made the following up</p>
<p><code>DELETE FROM wp_users<br />
WHERE wp_users.id NOT<br />
IN (<br />
SELECT user_id<br />
FROM wp_comments<br />
)<br />
AND wp_users.id NOT<br />
IN (<br />
SELECT poster_id<br />
FROM bb_posts<br />
)<br />
AND wp_users.id NOT<br />
IN (<br />
SELECT post_author<br />
FROM wp_posts<br />
)<br />
</code><br />
Then of course you need to hunt out and remove all the other meta data, i used something like this<br />
<code>DELETE FROM wp_usermeta<br />
WHERE wp_usermeta.user_id NOT<br />
IN (<br />
SELECT id FROM wp_users<br />
)</code></p>
<p>It probably pays to check before deleting, and swap the first &#8220;DELETE FROM&#8221; for a &#8220;SELECT * FROM&#8221; to view the data.<br />
It also probably pays to delete the user from wp_usermeta by id and other places (will update later)<br />
Hope this helps somebody, let me know of any other places the data needs to be removed from if you know more.</p>
<p>ps. my PC crashed hard whilst writing this, i lost the exact MySQL query i used so redid this from scratch &#8211; let me know if i missed any bits or you get any errors.</p>
<div class="plus-one-wrap"><g:plusone href="http://velofille.com/2011/08/16/removing-spam-users-from-wordpress-with-bbforum-using-sql/"></g:plusone></div>]]></content:encoded>
			<wfw:commentRss>http://velofille.com/2011/08/16/removing-spam-users-from-wordpress-with-bbforum-using-sql/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Finding a Flash video in chrome &#8211; Saving files open but deleted</title>
		<link>http://velofille.com/2011/05/19/finding-a-flash-video-in-chrome-saving-files-open-but-deleted/</link>
		<comments>http://velofille.com/2011/05/19/finding-a-flash-video-in-chrome-saving-files-open-but-deleted/#comments</comments>
		<pubDate>Thu, 19 May 2011 01:20:07 +0000</pubDate>
		<dc:creator>Liz Quilty</dc:creator>
				<category><![CDATA[Informative]]></category>
		<category><![CDATA[Tech]]></category>
		<category><![CDATA[file descriptor]]></category>
		<category><![CDATA[Linux]]></category>

		<guid isPermaLink="false">http://velofille.com/?p=1261</guid>
		<description><![CDATA[Flash movies are online, but sometimes i want to save some for offline usage so i can watch them later or offline (laptops) etc. Often there is no way to save/download these files, but they are not held in the tmp dir or cache as they used to be due to changes in flash. In [...]]]></description>
			<content:encoded><![CDATA[<div class="tweetmeme_button" style="float: right; margin-left: 10px;">
			<a href="http://api.tweetmeme.com/share?url=http%3A%2F%2Fvelofille.com%2F2011%2F05%2F19%2Ffinding-a-flash-video-in-chrome-saving-files-open-but-deleted%2F"><br />
				<img src="http://api.tweetmeme.com/imagebutton.gif?url=http%3A%2F%2Fvelofille.com%2F2011%2F05%2F19%2Ffinding-a-flash-video-in-chrome-saving-files-open-but-deleted%2F&amp;source=velofille&amp;style=normal&amp;service=ow.ly&amp;b=2" height="61" width="50" /><br />
			</a>
		</div>
<p>Flash movies are online, but sometimes i want to save some for offline usage so i can watch them later or offline (laptops) etc.<br />
Often there is no way to save/download these files, but they are not held in the tmp dir or cache as they used to be due to changes in flash. In Linux this is easy to overcome using the following methods. This also works for any file that&#8217;s been deleted but is still running in memory.</p>
<p>First, you need to find what or where the file is. For flash try</p>
<pre>
velofille@apple:~$ sudo lsof |grep Flash
npviewer.  8774  velofille   16u      REG                9,1 253092771     396153 /tmp/FlashXXDfgiS7 (deleted)
velofille@apple:~$
</pre>
<p>Bingo, i found my file! Of course the file /tmp/FlashXXDfgiS7 is deleted, so i cant just copy it like the good old days. Now i can copy that file from the proc filesystem using the following</p>
<pre>
cat /proc/8774/fd/16 > movie.flv
</pre>
<p>Now to breakdown where i got those parms from. The 8774 is the pid and 2nd number on the line, the 16 was from the &#8217;16u&#8217; which is the file descriptor . So when you do your lsof you can change those according to what you have open.<br />
To find files open from a particular app, use ps to find the pid, then use</p>
<pre>
lsof -p 8774
</pre>
<p>Output is something like this</p>
<pre>
chrome  26572 velofille  mem    REG                9,1  1285536   1836431 /usr/lib/x86_64-linux-gnu/libX11.so.6.3.0
chrome  26572 velofille  mem    REG                9,1   141088   3146088 /lib/x86_64-linux-gnu/ld-2.13.so
chrome  26572 velofille  DEL    REG               0,16           34257353 /dev/shm/.com.google.chrome.i96CPN
chrome  26572 velofille  DEL    REG               0,16           34257687 /dev/shm/.com.google.chrome.W9M2O5
chrome  26572 velofille  mem    REG                9,1   377352   4587538 /opt/google/chrome/libppGoogleNaClPluginChrome.so
chrome  26572 velofille    0r   CHR                1,3      0t0      5778 /dev/null
chrome  26572 velofille    1u   REG               0,20   953173   5767170 /home/velofille/.xsession-errors
chrome  26572 velofille    2u   REG               0,20   953173   5767170 /home/velofille/.xsession-errors
chrome  26572 velofille    3u   REG               0,20   953173   5767170 /home/velofille/.xsession-errors
chrome  26572 velofille    4r  FIFO                0,8      0t0  34257284 pipe
chrome  26572 velofille    5u  unix 0xffff88002c61f740      0t0  34257940 socket
chrome  26572 velofille    6u  sock                0,7      0t0  34257281 can't identify protocol
chrome  26572 velofille    7u   CHR                1,9      0t0      5783 /dev/urandom
</pre>
<p>The only ones you can take like this are the ones with a file descriptor to play with.</p>
<p>Good luck, an have fun!</p>
<div class="plus-one-wrap"><g:plusone href="http://velofille.com/2011/05/19/finding-a-flash-video-in-chrome-saving-files-open-but-deleted/"></g:plusone></div>]]></content:encoded>
			<wfw:commentRss>http://velofille.com/2011/05/19/finding-a-flash-video-in-chrome-saving-files-open-but-deleted/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

