<?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>gHacks Technology News &#124; Latest Tech News, Software And Tutorials &#187; snippets</title> <atom:link href="http://www.ghacks.net/tag/snippets/feed/" rel="self" type="application/rss+xml" /><link>http://www.ghacks.net</link> <description>A technology news blog covering software, mobile phones, gadgets, security, the Internet and other relevant areas.</description> <lastBuildDate>Fri, 10 Feb 2012 16:53:42 +0000</lastBuildDate> <language>en</language> <sy:updatePeriod>hourly</sy:updatePeriod> <sy:updateFrequency>1</sy:updateFrequency> <generator>http://wordpress.org/?v=3.3.1</generator> <atom:link rel="hub" href="http://pubsubhubbub.appspot.com"/><atom:link rel="hub" href="http://superfeedr.com/hubbub"/> <item><title>OnTopReplica Displays Application Snippets Always On Top</title><link>http://www.ghacks.net/2010/06/17/ontopreplica-displays-application-snippets-always-on-top/</link> <comments>http://www.ghacks.net/2010/06/17/ontopreplica-displays-application-snippets-always-on-top/#comments</comments> <pubDate>Thu, 17 Jun 2010 12:46:50 +0000</pubDate> <dc:creator>Martin Brinkmann</dc:creator> <category><![CDATA[Open Source]]></category> <category><![CDATA[Software]]></category> <category><![CDATA[Windows]]></category> <category><![CDATA[always on top]]></category> <category><![CDATA[ontopreplica]]></category> <category><![CDATA[snippets]]></category> <category><![CDATA[windows software]]></category> <guid
isPermaLink="false">http://www.ghacks.net/?p=26760</guid> <description><![CDATA[Some applications in Windows have an option to be always on top of other open windows even if they become inactive. That&#8217;s a helpful feature for users who want to have the application window in sight all the time. But what about situations where the always on top feature is not offered? What if the [...]]]></description> <content:encoded><![CDATA[<p>Some applications in Windows have an option to be always on top of other open windows even if they become inactive. That&#8217;s a helpful feature for users who want to have the application window in sight all the time. But what about situations where the always on top feature is not offered? What if the entire always on top window is big and clunky so that it reduces the workflow of the user?</p><p>OnTopReplica is the solution. The lightweight program can be used to create always on top snippets of open programs and windows in the Windows operating system.</p><p><span
id="more-26760"></span>It can for instance be used to track a lengthy software installation process by selecting the progress bar of the installation window, download progress, news feeds or other real time information, media contents like videos or parts of messaging programs.</p><div
id="attachment_26761" class="wp-caption alignnone" style="width: 344px"><img
src="http://www.ghacks.net/wp-content/uploads/2010/06/ontopreplica.png" alt="ontopreplica" title="ontopreplica" width="334" height="352" class="size-full wp-image-26761" /><p
class="wp-caption-text">ontopreplica</p></div><p>A transparent window is opened on startup. A right-click on the window displays a context menu with options to create a new always on top snippet.</p><p>Here is one example to see how it works. A search on Google for Football world cup live score displays live scores of world cup matches at the top of the search results.</p><p>A right-click on the OnTopReplica window afterwards opens the context menu. Select a window is used to specify an open window of which contents should be displays always on top of other windows and applications.</p><p>Selecting the Google Chrome window will display the entire window in the OnTopReplica window. It is now possible to use the select region option to draw a rectangle around a region containing the live scores.</p><p>The window will afterwards only display the live scores and nothing else. The application window stays on top all the time. It can be moved around on the desktop or resized to fit the individual needs of the computer user.</p><div
id="attachment_26762" class="wp-caption alignnone" style="width: 355px"><img
src="http://www.ghacks.net/wp-content/uploads/2010/06/always_on_top.png" alt="always on top" title="always on top" width="345" height="240" class="size-full wp-image-26762" /><p
class="wp-caption-text">always on top</p></div><p>The program has options to automatically resize the application window and to position it in one of the corners of the computer screen.</p><p>Two restrictions are in place. The information in the always on top window can only be displayed if the source window continues to display it. This does mean for instance that it is not possible to use the same browser window to surf the Internet while information from it are displayed in the OnTopReplica window.</p><p>The other restriction are other always on top windows. Moving one of those windows will block the view of the OnTopReplica window.</p><p>Another interesting feature that has not been mentioned yet is Click forwarding which allows the user to interact with the source application by clicking on the OnTopReplica window.</p><p>The software program is <a
href="http://www.klopfenstein.net/lorenz.aspx/ontopreplica">available</a> for download at the developer&#8217;s website as a setup and source. (Via <a
href="http://www.shellcity.net/">Shell City</a>)</p> ]]></content:encoded> <wfw:commentRss>http://www.ghacks.net/2010/06/17/ontopreplica-displays-application-snippets-always-on-top/feed/</wfw:commentRss> <slash:comments>3</slash:comments> </item> <item><title>The Scribes experience: It&#8217;s all about productivity!</title><link>http://www.ghacks.net/2010/05/06/the-scribes-experience-its-all-about-productivity/</link> <comments>http://www.ghacks.net/2010/05/06/the-scribes-experience-its-all-about-productivity/#comments</comments> <pubDate>Thu, 06 May 2010 11:22:26 +0000</pubDate> <dc:creator>Jack Wallen</dc:creator> <category><![CDATA[Linux]]></category> <category><![CDATA[Open Source]]></category> <category><![CDATA[Software]]></category> <category><![CDATA[Tutorials Basic]]></category> <category><![CDATA[code]]></category> <category><![CDATA[programming editor]]></category> <category><![CDATA[scribes]]></category> <category><![CDATA[snippets]]></category> <category><![CDATA[text editor]]></category> <guid
isPermaLink="false">http://www.ghacks.net/?p=25197</guid> <description><![CDATA[When a text editor&#8217;s catch phrase is &#8220;Scribes: It&#8217;s about the experience, not features.&#8221; you have to wonder what you are in for. However, Scribes is a very different editor. Scribes is all about making you productive. In fact, the developers of Scribes declare you will become exponentially more productive when using their tool. Why? [...]]]></description> <content:encoded><![CDATA[<p>When a text editor&#8217;s catch phrase is &#8220;Scribes: It&#8217;s about the experience, not features.&#8221; you have to wonder what you are in for. However, Scribes is a very different editor. Scribes is all about making you productive. In fact, the developers of Scribes declare you will become exponentially more productive when using their tool. Why? Because they have implemented only features that focus on productivity. That is why you won&#8217;t find a collection of features that, in the grand scheme of productivity, do nothing.</p><p>In this article, I will introduce you to a different kind of text editor &#8211; <a
title="Scribes" href="http://scribes.sourceforge.net/index.html" target="_blank">Scribes</a>. Upon finishing this article (and giving Scribes a try), you can judge for yourself whether or not Scribes can make you more productive or not.</p><p><span
id="more-25197"></span><strong>Features</strong></p><p>So what does Scribes offer feature-wise:</p><ul><li>Extensible with Python plugins.</li><li>Remote editing.</li><li>Snippets (more on this in a bit).</li><li>Word completion.</li><li>Auto pair completion.</li><li>Smart insertion.</li><li>Auto indent.</li><li>Bookmarks and smart navigation.</li><li>Document switcher.</li><li>Syntax highlighting for over 30 languages.</li></ul><p>For this article I want to focus specifically on one particular feature that is very unique to Scribes (and which does actually boost productivity). That feature is Snippets. But first, let&#8217;s make sure you have Scribes installed.</p><p><strong>Installation</strong></p><p>Installation is simple, because you will find Scribes in your distributions&#8217; standard repositories. Follow these steps:</p><ol><li>Open up your Add/Remove Software tool.</li><li>Search for &#8220;scribes&#8221; (no quotes).</li><li>Mark Scribes for installation.</li><li>Click Apply to install.</li></ol><p>That&#8217;s it!  Now you are ready to get productive.</p><p><strong>Usage</strong></p><div
id="attachment_25198" class="wp-caption alignleft" style="width: 309px"><a
href="http://www.ghacks.net/wp-content/uploads/2010/05/scribes.png"><img
class="size-medium wp-image-25198 " src="http://www.ghacks.net/wp-content/uploads/2010/05/scribes-499x469.png" alt="" width="299" height="281" /></a><p
class="wp-caption-text">Figure 1</p></div><p>You can start up Scribes from the menu or the command line. You will find Scribes in either the <strong>Applications &gt; Accessories </strong>or <strong>Applications &gt; Programming</strong>. If you don&#8217;t find it, you can always hit &lt;Alt&gt;F2 and then type <em>scribes</em> to start it up.</p><p>When you first open up Scribes you might be surprised to see how minimal the main window is (see Figure 1). It&#8217;s that way on purpose &#8211; to make you productive! As you can see there are few bells and whistles. You can toggle the find/replace bar, you can Undo/Redo, you can open documents, you can print, you can open up the options, and you can get help. What you don&#8217;t see, from the GUI is the most useful feature of Scribes &#8211; Snippets. Let&#8217;s see what this is all about.</p><p><strong>Snippets</strong></p><p>A snippet is basically like a permanent, expandable, highly useful clipboard. Imagine you are a programmer with a TON of functions or code pieces that you use frequently. Instead of having to open them and copy/paste them in, with Scribes you can just type a shortcut, hit the Tab button, and that snippet of code will automatically be added to your document. Let&#8217;s see how to create a snippet.</p><div
id="attachment_25199" class="wp-caption alignright" style="width: 310px"><a
href="http://www.ghacks.net/wp-content/uploads/2010/05/template.png"><img
class="size-medium wp-image-25199 " src="http://www.ghacks.net/wp-content/uploads/2010/05/template-500x399.png" alt="" width="300" height="239" /></a><p
class="wp-caption-text">Figure 2</p></div><p>If you click on the drop-down associated with options (directly left of the help button), you will see the Template editor. When that window opens (see Figure 2) you will see a number of different languages listed that you can add templates for. In the example shown I have added a template for the sh language (shell scripting). To add a new template do the following:</p><ol><li>Select the language for your template.</li><li>Click Add.</li><li>In the new window give your template a name, description, and then add the snippet in the Template section.</li><li>Click Save.</li></ol><p>That&#8217;s it. Now let&#8217;s see how you can make use of that template.</p><p>In the main window if you type the word you used for the template name. When that word turns orange you know that Scribes is aware that is a template  and you can hit the Tab key. As soon as you hit the tab key that entire snippet of code will automatically be added to your document. Now that is productive!</p><p><strong>Final thoughts</strong></p><p>Although Scribes isn&#8217;t filled with bells and whistles, the features it does have will directly effect your productiveness. If you are a programmer you should really give Scribes a try. Sure there may be more complex, feature-rich programming editors available, but none of them will have you working as productively, with such a shallow learning curve, as Scribes.</p> ]]></content:encoded> <wfw:commentRss>http://www.ghacks.net/2010/05/06/the-scribes-experience-its-all-about-productivity/feed/</wfw:commentRss> <slash:comments>5</slash:comments> </item> <item><title>Using your own Wiki for coding</title><link>http://www.ghacks.net/2009/04/22/using-your-own-wiki-for-coding/</link> <comments>http://www.ghacks.net/2009/04/22/using-your-own-wiki-for-coding/#comments</comments> <pubDate>Wed, 22 Apr 2009 14:47:41 +0000</pubDate> <dc:creator>Daniel Pataki</dc:creator> <category><![CDATA[Security]]></category> <category><![CDATA[Tools]]></category> <category><![CDATA[Web Development]]></category> <category><![CDATA[snippets]]></category> <category><![CDATA[tiddlywiki]]></category> <category><![CDATA[wiki]]></category> <guid
isPermaLink="false">http://www.ghacks.net/2009/04/22/using-your-own-wiki-for-coding/</guid> <description><![CDATA[The biggest time saver you can implement in your coding practices is some sort of searchable database of all the data you need when you&#8217;re working on a project. I mean code snippets, images, data sets, tips &#38; tricks, whatever you use a lot and can be copy pasted. A great way to manage these [...]]]></description> <content:encoded><![CDATA[<p><img
class="alignleft size-full wp-image-12267" src="http://www.ghacks.net/wp-content/uploads/2009/04/tiddlyspot.gif" alt="tiddlyspot" width="199" height="57" />The biggest time saver you can implement in your coding practices is some sort of searchable database of all the data you need when you&#8217;re working on a project. I mean code snippets, images, data sets, tips &amp; tricks, whatever you use a lot and can be copy pasted. A great way to manage these is a personal Wiki.</p><p><a
href="http://www.tiddlywiki.com/">TiddlyWiki</a> is one such wiki, which you can download as a single file to your hard drive, or your can host it online using <a
href="http://tiddlyspot.com/">TiddlySpot</a>. I recommend you visit the site and download a copy for yourself, there are easy to follow instructions, and no real set up is required.</p><p><span
id="more-12268"></span></p><p>To organize your notes you can use tags, and the whole database is easily searchable from the search box at the top. For example, I usually think up my designs as a single HTML page, without any PHP, just laying out the design. Depending on the general structure of the design I have a few templates at the ready, all in my trusty wiki. To get the one I use for a &#8220;content on the left, sidebar on the right&#8221; layout I just type &#8220;template sidebar right&#8221;, and the first note will be the one containing this layout, I can just copy paste the code into my file.</p><p>There are a number of other uses you can put your Wiki to of course. If you&#8217;re learning to code, you can simply copy the snippets you find and you want to study, and tag them by language, for future reference. You can also store some helpful links, ideas, project plans and so on.</p><p>You can use this is a regular notebook too, the real use of a Wiki is that it is very unobtrusive. You can use the same file for your personal notes, your diary and your coding organizer. Since you can use tags and search, you can display only the tiddlers (or notes) you want, so your coding stuff doesn&#8217;t have to get in the way of your other notes.</p><p>The see the power of a Wiki you really have to take a look yourself, so head on over to TiddlyWiki and grab yourself a copy. Wikis are not everyone&#8217;s cup of tea though, so you may not like it as much, but it is a bit different than most systems so give it a chance, try forcing yourself to use if for a week or two, you&#8217;ll definitely see the benefits.</p><p><strong>If you&#8217;d like to get some more tips and tricks for web development and specific languages like HTML, CSS, PHP and the rest, head on down to <a
title="web development, php, html" href="http://www.bluehost.com/cgi/suspended?d=scriptastique.com">Scriptastique</a> for yumm coding treats!</strong></p> ]]></content:encoded> <wfw:commentRss>http://www.ghacks.net/2009/04/22/using-your-own-wiki-for-coding/feed/</wfw:commentRss> <slash:comments>3</slash:comments> </item> </channel> </rss>
