<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/">
<channel>
<title>Snipplr - shadevampire</title>
<link>http://snipplr.com/users/shadevampire</link>
<description>Recent snippets posted on Snipplr.com</description>
<language>en-us</language>
<pubDate>Thu, 23 May 2013 05:48:12 GMT</pubDate>
<item>
<title>(C++) Qt drag and drop files or directories</title>
<link>http://snipplr.com/view/58458/qt-drag-and-drop-files-or-directories/</link>
<description><![CDATA[ <p>You have to implement 2 protected virtual methods in your widget you want to accept file or directory drops:
- void dragEnterEvent(QDragEnterEvent *event)
- void dropEvent(QDropEvent *event)

And also you have to call setAcceptDrops(true); on this widget before it could accept drops.</p> ]]></description>
<pubDate>Mon, 05 Sep 2011 23:25:24 GMT</pubDate>
<guid>http://snipplr.com/view/58458/qt-drag-and-drop-files-or-directories/</guid>
</item>
<item>
<title>(Windows PowerShell) Convert every music file into 192kbps mp3 in a given \"targetdir\" folder with ffmpeg on Windows</title>
<link>http://snipplr.com/view/58152/convert-every-music-file-into-192kbps-mp3-in-a-given-targetdir-folder-with-ffmpeg-on-windows/</link>
<description><![CDATA[ <p></p> ]]></description>
<pubDate>Thu, 25 Aug 2011 07:50:03 GMT</pubDate>
<guid>http://snipplr.com/view/58152/convert-every-music-file-into-192kbps-mp3-in-a-given-targetdir-folder-with-ffmpeg-on-windows/</guid>
</item>
<item>
<title>(C++) Reliably Checking Windows Bitness (32-bit or 64-bit) With C++</title>
<link>http://snipplr.com/view/57165/reliably-checking-windows-bitness-32bit-or-64bit-with-c/</link>
<description><![CDATA[ <p>See on the source (url)</p> ]]></description>
<pubDate>Wed, 27 Jul 2011 01:55:47 GMT</pubDate>
<guid>http://snipplr.com/view/57165/reliably-checking-windows-bitness-32bit-or-64bit-with-c/</guid>
</item>
<item>
<title>(Python) Python minimal SQLite sandbox</title>
<link>http://snipplr.com/view/56395/python-minimal-sqlite-sandbox/</link>
<description><![CDATA[ <p>It's from the original python doc.</p> ]]></description>
<pubDate>Mon, 11 Jul 2011 17:59:11 GMT</pubDate>
<guid>http://snipplr.com/view/56395/python-minimal-sqlite-sandbox/</guid>
</item>
<item>
<title>(Windows PowerShell) echo print the directory in which the bat bath file is in (it's not the working directory, it's the directory of the bat!)</title>
<link>http://snipplr.com/view/55292/echo-print-the-directory-in-which-the-bat-bath-file-is-in-its-not-the-working-directory-its-the-directory-of-the-bat/</link>
<description><![CDATA[ <p></p> ]]></description>
<pubDate>Thu, 16 Jun 2011 06:56:56 GMT</pubDate>
<guid>http://snipplr.com/view/55292/echo-print-the-directory-in-which-the-bat-bath-file-is-in-its-not-the-working-directory-its-the-directory-of-the-bat/</guid>
</item>
<item>
<title>(Windows PowerShell) echo print text to file with windows batch bat</title>
<link>http://snipplr.com/view/55290/echo-print-text-to-file-with-windows-batch-bat/</link>
<description><![CDATA[ <p>echo "hello" >> tmp.txt will append the text "hello" to tmp.txt
echo "world" > tmp.txt will overwrite the existing tmp.txt 's content, and after this it will only contain "world"</p> ]]></description>
<pubDate>Thu, 16 Jun 2011 06:28:50 GMT</pubDate>
<guid>http://snipplr.com/view/55290/echo-print-text-to-file-with-windows-batch-bat/</guid>
</item>
<item>
<title>(Windows PowerShell) Echo print the current working directory in windows batch file</title>
<link>http://snipplr.com/view/55289/echo-print-the-current-working-directory-in-windows-batch-file/</link>
<description><![CDATA[ <p></p> ]]></description>
<pubDate>Thu, 16 Jun 2011 06:24:19 GMT</pubDate>
<guid>http://snipplr.com/view/55289/echo-print-the-current-working-directory-in-windows-batch-file/</guid>
</item>
<item>
<title>(C++) Compress a file in pure Qt with qCompress</title>
<link>http://snipplr.com/view/55033/compress-a-file-in-pure-qt-with-qcompress/</link>
<description><![CDATA[ <p>decompress can be made similarly. Qt compression cannot handle folders, you have to manage this.</p> ]]></description>
<pubDate>Thu, 09 Jun 2011 02:16:34 GMT</pubDate>
<guid>http://snipplr.com/view/55033/compress-a-file-in-pure-qt-with-qcompress/</guid>
</item>
<item>
<title>(C++) windows check battery status in c++</title>
<link>http://snipplr.com/view/54867/windows-check-battery-status-in-c/</link>
<description><![CDATA[ <p></p> ]]></description>
<pubDate>Sat, 04 Jun 2011 08:41:01 GMT</pubDate>
<guid>http://snipplr.com/view/54867/windows-check-battery-status-in-c/</guid>
</item>
<item>
<title>(C) Windows C API for running an application as admin</title>
<link>http://snipplr.com/view/54841/windows-c-api-for-running-an-application-as-admin/</link>
<description><![CDATA[ <p>for return codes see the documentation: http://msdn.microsoft.com/en-us/library/bb762153(v=vs.85).aspx</p> ]]></description>
<pubDate>Fri, 03 Jun 2011 23:14:08 GMT</pubDate>
<guid>http://snipplr.com/view/54841/windows-c-api-for-running-an-application-as-admin/</guid>
</item>
<item>
<title>(XML) Windows manifest file for requesting admin privilege</title>
<link>http://snipplr.com/view/54840/windows-manifest-file-for-requesting-admin-privilege/</link>
<description><![CDATA[ <p>also here's the related Wiki article: http://en.wikipedia.org/wiki/User_Account_Control

it seems that assemblyIdentity is not required</p> ]]></description>
<pubDate>Fri, 03 Jun 2011 22:59:18 GMT</pubDate>
<guid>http://snipplr.com/view/54840/windows-manifest-file-for-requesting-admin-privilege/</guid>
</item>
<item>
<title>(Objective C) draw to a UIImage with CoreGraphics</title>
<link>http://snipplr.com/view/54835/draw-to-a-uiimage-with-coregraphics/</link>
<description><![CDATA[ <p>input: width, height and inputImage
output: outputImage</p> ]]></description>
<pubDate>Fri, 03 Jun 2011 20:41:12 GMT</pubDate>
<guid>http://snipplr.com/view/54835/draw-to-a-uiimage-with-coregraphics/</guid>
</item>
<item>
<title>(C++) Rename filtered files in directory with Qt</title>
<link>http://snipplr.com/view/54785/rename-filtered-files-in-directory-with-qt/</link>
<description><![CDATA[ <p>for more info see the link</p> ]]></description>
<pubDate>Thu, 02 Jun 2011 21:14:16 GMT</pubDate>
<guid>http://snipplr.com/view/54785/rename-filtered-files-in-directory-with-qt/</guid>
</item>
<item>
<title>(PHP) Automatically get latest download link from Sparkle in PHP</title>
<link>http://snipplr.com/view/54637/automatically-get-latest-download-link-from-sparkle-in-php/</link>
<description><![CDATA[ <p></p> ]]></description>
<pubDate>Tue, 31 May 2011 19:53:05 GMT</pubDate>
<guid>http://snipplr.com/view/54637/automatically-get-latest-download-link-from-sparkle-in-php/</guid>
</item>
<item>
<title>(C#) C# FileSystemWatcher example code from MSDN</title>
<link>http://snipplr.com/view/54606/c-filesystemwatcher-example-code-from-msdn/</link>
<description><![CDATA[ <p></p> ]]></description>
<pubDate>Tue, 31 May 2011 00:18:26 GMT</pubDate>
<guid>http://snipplr.com/view/54606/c-filesystemwatcher-example-code-from-msdn/</guid>
</item>
<item>
<title>(C++) Qt notification window - growl like, mac specific</title>
<link>http://snipplr.com/view/54603/qt-notification-window--growl-like-mac-specific/</link>
<description><![CDATA[ <p></p> ]]></description>
<pubDate>Mon, 30 May 2011 22:12:36 GMT</pubDate>
<guid>http://snipplr.com/view/54603/qt-notification-window--growl-like-mac-specific/</guid>
</item>
<item>
<title>(Python) pastebin parser</title>
<link>http://snipplr.com/view/54574/pastebin-parser/</link>
<description><![CDATA[ <p>"This is the source code to the program I used to scrape these 'public pastes' from pastebin.com. Use at your own peril!" - from the mentioned link</p> ]]></description>
<pubDate>Sun, 29 May 2011 23:05:39 GMT</pubDate>
<guid>http://snipplr.com/view/54574/pastebin-parser/</guid>
</item>
</channel>
</rss>