<?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>Sniptools &#187; Tips/Tricks</title> <atom:link href="http://sniptools.com/tag/tipstricks/feed/" rel="self" type="application/rss+xml" /><link>http://sniptools.com</link> <description>Design &#38; Technology Observations</description> <lastBuildDate>Tue, 15 May 2012 09:23:41 +0000</lastBuildDate> <language>en</language> <sy:updatePeriod>hourly</sy:updatePeriod> <sy:updateFrequency>1</sy:updateFrequency> <generator>http://wordpress.org/?v=3.3.2</generator> <xhtml:meta xmlns:xhtml="http://www.w3.org/1999/xhtml" name="robots" content="noindex" /> <item><title>KeepVid: saving videos from Youtube or Vimeo, from anywhere</title><link>http://sniptools.com/webtools/keepvid-saving-videos-from-youtube-or-vimeo-from-anywhere</link> <comments>http://sniptools.com/webtools/keepvid-saving-videos-from-youtube-or-vimeo-from-anywhere#comments</comments> <pubDate>Mon, 02 Feb 2009 04:54:06 +0000</pubDate> <dc:creator>Shanx</dc:creator> <category><![CDATA[Web Tools]]></category> <category><![CDATA[Tips/Tricks]]></category> <category><![CDATA[video]]></category><guid
isPermaLink="false">http://sniptools.com/?p=455</guid> <description><![CDATA[If you use Firefox (and if not, what are you waiting for?) you are familiar with useful extensions such as Video Downloader, which allow you to save local copies of the videos you watch on websites such as Youtube or Vimeo. You can then watch these videos whenever you please. But this doesn't account for [...]]]></description> <content:encoded><![CDATA[<p>If you use Firefox (and if not, what are you waiting for?) you are familiar with <a
href="https://addons.mozilla.org/en-US/firefox/search?q=video++downloader&#038;cat=all">useful extensions</a> such as Video Downloader, which allow you to save local copies of the videos you watch on websites such as Youtube or Vimeo. You can then watch these videos whenever you please.</p><p>But this doesn't account for those rare but possible times when you are not on your machine, or don't have access to a browser set up to your tastes. No extensions available.</p><p>That's where "<a
href="http://keepvid.com/">KeepVid</a>" comes in. Just enter your URL and it automatically extracts any video(s) found on that website and allows you to download in both FLV and MP4 formats. The MP4 would play on your Nokia, iPhone, or Blackberry too. The FLV file is a flash viewer file, and easily played using common video players–if you don't have <a
href="http://www.videolan.org/vlc/">VLC</a>, get it pronto.</p><p>Here's a straightforward screenshot:</p><p><img
src="http://farm4.static.flickr.com/3299/3246681630_d42704b048.jpg" alt="KeepVid screenshot saving a Youtube video" /></p> ]]></content:encoded> <wfw:commentRss>http://sniptools.com/webtools/keepvid-saving-videos-from-youtube-or-vimeo-from-anywhere/feed/</wfw:commentRss> <slash:comments>1</slash:comments> </item> <item><title>Disable auto completion in Firefox address bar</title><link>http://sniptools.com/webtools/disable-auto-completion-in-firefox-address-bar</link> <comments>http://sniptools.com/webtools/disable-auto-completion-in-firefox-address-bar#comments</comments> <pubDate>Wed, 27 Aug 2008 09:50:57 +0000</pubDate> <dc:creator>Shanx</dc:creator> <category><![CDATA[Web Tools]]></category> <category><![CDATA[Browser]]></category> <category><![CDATA[Firefox]]></category> <category><![CDATA[Tips/Tricks]]></category><guid
isPermaLink="false">http://sniptools.com/?p=370</guid> <description><![CDATA[Firefox 3 has a "feature" that auto-fills a website that you wish to go to as you're typing in the Location bar. I wanted to turn this off, but without turning off other auto complete functionality: I want to retain the autocomplete in forms (which can be managed from Tools -&#62; Options -&#62; Privacy) I [...]]]></description> <content:encoded><![CDATA[<p>Firefox 3 has a "feature" that auto-fills a website that you wish to go to as you're typing in the Location bar.</p><p>I wanted to turn this off, but <span
style="text-decoration: underline;">without</span> turning off other auto complete functionality:</p><ul><li>I want to retain the autocomplete in forms (which can be managed from <code>Tools -&gt; Options -&gt; Privacy</code>)</li><li>I also want to retain the autocomplete in the search box on the right (which can be turned off by right-clicking inside the box, and then checking off "<code>Show Suggestions</code>")</li></ul><p>But the Location Bar is a somewhat more involved beast. After hunting in the innards of "<code>about:config</code>" I discovered that this was possible. Just follow these steps:</p><ol><li>In the location bar, type <code>about:config</code>. The location bar is of course the place where you type URLs. Note that this is your internal Firefox configuration. Don't mess with it.</li><li>In the text box that appears at the top of this page, enter <code>browser.urlbar.maxRichResults </code>as the preference name. (Tip: copy it from here and paste it into that box.)</li><li>Set the value to 0 if you wish to disable the auto-complete altogether. I have it set to 2 so I get some suggestions but it doesn't crowd up the experience.</li></ol> ]]></content:encoded> <wfw:commentRss>http://sniptools.com/webtools/disable-auto-completion-in-firefox-address-bar/feed/</wfw:commentRss> <slash:comments>10</slash:comments> </item> <item><title>Remember WEP wireless password on Nokia e61i (any e-Series)</title><link>http://sniptools.com/vault/remember-wep-wireless-password-on-nokia-e61i</link> <comments>http://sniptools.com/vault/remember-wep-wireless-password-on-nokia-e61i#comments</comments> <pubDate>Sat, 02 Aug 2008 14:23:16 +0000</pubDate> <dc:creator>Shanx</dc:creator> <category><![CDATA[Miscellaneous]]></category> <category><![CDATA[System Maintenance]]></category> <category><![CDATA[mobile]]></category> <category><![CDATA[Nokia]]></category> <category><![CDATA[Tips/Tricks]]></category> <category><![CDATA[wireless]]></category> <category><![CDATA[wlan]]></category><guid
isPermaLink="false">http://sniptools.com/?p=338</guid> <description><![CDATA[I use the Nokia e61i as my mobile. Instead of my telco's data plan (which offers me a meagre 1GB per month) I simply prefer to use my home wireless LAN when I am at home. Until recently I used the wireless "access point" without any secure settings, but have had to move to WEP [...]]]></description> <content:encoded><![CDATA[<p>I use the Nokia e61i as my mobile. Instead of my telco's data plan (which offers me a meagre 1GB per month) I simply prefer to use my home wireless LAN when I am at home. Until recently I used the wireless "access point" without any secure settings, but have had to move to WEP now due to cheeky neighbors.</p><p>Problem: Nokia's WLAN option kept prompting me for the WEP key *everytime* I would connect to my email or any website.</p><p>After googling for a good many days and bumbling around on Nokia's forums, I have finally figured out how to make Nokia remember the cotton-picking password. Simple answer: you need to lose your cached WLAN entry, which may be stored as a non-WEP access point.</p><p>Here are the more detailed steps:</p><ol><li>Delete your current WLAN access point you've created for the E61i. This is the secret sauce.</li><li>Now, under<p><code>Tools &gt; Settings &gt; Connection &gt; Access Points<br
/> </code><br
/> Select Options and create a new access point using "default settings". We'll tweak them below.</li><li>Under <strong><em>Connection Name</em></strong>, pick a name for your connection. This doesn't have to be your wireless network's SSID, but you can keep it under the same name.</li><li>Under <strong><em>Data Bearer</em></strong>, select WLAN.</li><li>Under <em>WLAN Network Name</em>, select manual entry and type in your SSID name.</li><li>Under <strong><em>Network Status</em></strong> mark "Hidden".</li><li><strong><em>Network Mode</em></strong> will be the default: "Infrastructure".</li><li>Under <strong><em>WLAN Security Mode</em></strong>, choose your security type. For instance, mine is WEP, so that's what I selected.</li><li>Under <strong><em>WLAN Security Settings</em></strong>, go to WEP key settings and define your encryption level, format, and key. For instance, for WEP you might have 64 bit, ASCII, and "xyzabc" as your level, format, and key respectively. If you don't know this stuff, this entire tutorial is perhaps not for you, otherwise you know what these values are. (You can always login as admin user into your wireless router and reconfirm these settings for your specific case.)</li></ol><p>That's it. You can now connect to some website or your email server on your mobile phone, select the WLAN with the name you chose in Step 3 above, and your Nokia e-series phone will remember your WEP password for good. Finally.</p> ]]></content:encoded> <wfw:commentRss>http://sniptools.com/vault/remember-wep-wireless-password-on-nokia-e61i/feed/</wfw:commentRss> <slash:comments>0</slash:comments> </item> <item><title>Save SSH password for use in &quot;Terminal&quot; (OSX or *Nix)</title><link>http://sniptools.com/mac-osx/save-ssh-password-in-terminal</link> <comments>http://sniptools.com/mac-osx/save-ssh-password-in-terminal#comments</comments> <pubDate>Sat, 19 Jul 2008 04:37:39 +0000</pubDate> <dc:creator>Shanx</dc:creator> <category><![CDATA[Mac OSX]]></category> <category><![CDATA[System Maintenance]]></category> <category><![CDATA[Linux]]></category> <category><![CDATA[OSX]]></category> <category><![CDATA[SecureCRT]]></category> <category><![CDATA[SSH]]></category> <category><![CDATA[Terminal]]></category> <category><![CDATA[Tips/Tricks]]></category> <category><![CDATA[Windows]]></category><guid
isPermaLink="false">http://sniptools.com/cms/?p=163</guid> <description><![CDATA[How to set up time-saving shortcuts for SSH in Mac OSX or Linux, a bit like SecureCRT on Windows. ]]></description> <content:encoded><![CDATA[<p>Anyone who runs hosted remote servers and has to log into remote terminals for regular use, it is vital to have shortcuts that allow for quick login. SSH2 is the recommended way.</p><p>On Windows, there is the fantastic SSH2 tool <a
href="http://www.vandyke.com/products/securecrt/">SecureCRT</a>. Or if you're cash crunched, a combination of Putty and Putty Connection Manager works for many.</p><p>On Mac OSX and Unix/Linux systems, one doesn't truly need an SSH client at all, because the "<a
href="http://www.osxterminal.com/">Terminal</a>" application is inbuilt. People talk of iTerm and such, but I have still to see a value add for such tools.</p><p>But one does miss the convenience of SecureCRT on OSX, because I have still to find a true SecureCRT alternative for the Mac platform. Something that allows me to make pre-determined connections so I can just click on them to connect (which tools like <a
href="http://www.grepsoft.net/jellyfissh.html">JellyfiSSH</a> do) and then logs me in directly without prompting for a password (which JellyfiSHH does not do).</p><p>So I have simply made aliases in my [code].profile[/code] file, which gets executed everytime you start your Terminal window (so it's a good place to put your shortcuts and any code you wish to execute when the terminal starts, such as paths).</p><ol><li>Start the Terminal.</li><li>Open the profile file for the current user (you).</li><div
class="wp_syntax"><div
class="code"><pre class="bash" style="font-family:monospace;">pico .profile</pre></div></div><li>Enter a new line for our shortcut.</li><div
class="wp_syntax"><div
class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #7a0874; font-weight: bold;">alias</span> <span style="color: #007800;">s</span>=<span style="color: #ff0000;">'ssh -2 -p 22 user@host.com'</span></pre></div></div></ol><p>Quick explanation for that command in step 3. The letter "s" is the shortcut I make for connecting to the sniptools.com server. Change it to what you wish. This will mean that when I start Terminal, all I need to do is type "s" and it connects me via SSH to the sniptools.com server. The "-p" switch is an important one because some of us with paranoid security settings might have a different port number than the default port 22 for secure SSH. The rest user/host stuff is self-explanatory. The "-2" is to force SSH2 connections instead of older vanilla SSH.</p><p>Now. Save the profile file and source it to try it out:</p><div
class="wp_syntax"><div
class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #7a0874; font-weight: bold;">source</span> .profile</pre></div></div><p>Sourcing is only for this one time, for your current Terminal window, which had already executed the profile file *before* we added this alias. When you start a new Terminal session, these aliases et al will be automatically set for you.</p><p>Done. Now your profile has the alias for "s". From now when you type "s" in your Terminal, it will connect, but it will ask you for a password. To get rid of the nagging password, we need to create public authentication key for the domain. This, in fact is what SecureCRT does behind the scenes on Windows too.</p><p>Here are the steps to accomplish this. Run these <strong>one-time</strong> commands in order from the Terminal window.</p><div
class="wp_syntax"><table><tr><td
class="line_numbers"><pre>1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
</pre></td><td
class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #666666; font-style: italic;"># generate pub and priv keys, leave the passphrase empty</span>
<span style="color: #666666; font-style: italic;"># (simply press ENTER when asked for it)</span>
<span style="color: #c20cb9; font-weight: bold;">ssh-keygen</span>
&nbsp;
<span style="color: #666666; font-style: italic;">#copy the pub key to the remote computer</span>
<span style="color: #666666; font-style: italic;">#(change port number if different from the usual 22)</span>
<span style="color: #666666; font-style: italic;">#change &quot;user&quot; to your user name</span>
<span style="color: #666666; font-style: italic;">#change &quot;host&quot; to your domain name</span>
<span style="color: #c20cb9; font-weight: bold;">scp</span> <span style="color: #660033;">-P</span> <span style="color: #000000;">22</span> ~<span style="color: #000000; font-weight: bold;">/</span>.ssh<span style="color: #000000; font-weight: bold;">/</span>id_rsa.pub user<span style="color: #000000; font-weight: bold;">@</span>host:~<span style="color: #000000; font-weight: bold;">/</span>
&nbsp;
<span style="color: #666666; font-style: italic;">#log on to the remote computer</span>
<span style="color: #c20cb9; font-weight: bold;">ssh</span> <span style="color: #660033;">-p</span> <span style="color: #000000;">22</span> user<span style="color: #000000; font-weight: bold;">@</span>host
&nbsp;
<span style="color: #666666; font-style: italic;">#create the .ssh directory in the root login directory, if it doesn't already exist</span>
<span style="color: #c20cb9; font-weight: bold;">mkdir</span> .ssh
&nbsp;
<span style="color: #666666; font-style: italic;">#append key to file</span>
<span style="color: #c20cb9; font-weight: bold;">cat</span> id_rsa.pub <span style="color: #000000; font-weight: bold;">&gt;&gt;</span> ~<span style="color: #000000; font-weight: bold;">/</span>.ssh<span style="color: #000000; font-weight: bold;">/</span>authorized_keys
&nbsp;
<span style="color: #666666; font-style: italic;">#delete the public key file, no longer needed</span>
<span style="color: #c20cb9; font-weight: bold;">rm</span> <span style="color: #660033;">-f</span> id_rsa.pub
&nbsp;
<span style="color: #666666; font-style: italic;">#log off the remote server</span>
<span style="color: #7a0874; font-weight: bold;">exit</span>
&nbsp;
<span style="color: #666666; font-style: italic;">#logon to the remote server, without password prompt</span>
<span style="color: #c20cb9; font-weight: bold;">ssh</span> <span style="color: #660033;">-2</span> <span style="color: #660033;">-p</span> <span style="color: #000000;">22</span> user<span style="color: #000000; font-weight: bold;">@</span>host</pre></td></tr></table></div><p>That's it. This is a huge timesaver. Now all I need to do to login to the sniptools.com server is type one letter, "s" in the Terminal, and I'm on! Follow these instructions for each host you connect to on a regular basis and you'll love the convenience henceforth.</p> ]]></content:encoded> <wfw:commentRss>http://sniptools.com/mac-osx/save-ssh-password-in-terminal/feed/</wfw:commentRss> <slash:comments>19</slash:comments> </item> <item><title>Customize Microsoft Office 2007 blue ribbon UI to Office 2003</title><link>http://sniptools.com/windows/customize-microsoft-office-2007-blue-ribbon-ui-to-office-2003</link> <comments>http://sniptools.com/windows/customize-microsoft-office-2007-blue-ribbon-ui-to-office-2003#comments</comments> <pubDate>Thu, 17 Jul 2008 17:34:17 +0000</pubDate> <dc:creator>Shanx</dc:creator> <category><![CDATA[System Maintenance]]></category> <category><![CDATA[Windows]]></category> <category><![CDATA[Excel]]></category> <category><![CDATA[Microsoft]]></category> <category><![CDATA[MS Word]]></category> <category><![CDATA[Office]]></category> <category><![CDATA[Powerpoint]]></category> <category><![CDATA[Tips/Tricks]]></category><guid
isPermaLink="false">http://sniptools.com/cms/?p=160</guid> <description><![CDATA[Take the hideous new blue look of Microsoft Office 2007 "blue ribbon" and make it more palatable to eyes that are accustomed to Office 2003. ]]></description> <content:encoded><![CDATA[<p>So I finally got around to installing Office 2007. This is what it looked like:</p><div
class="wp-caption aligncenter" style="width: 510px"><img
title="Office 2007 - First Look" src="http://farm4.static.flickr.com/3034/2677351944_1319c8a9af.jpg" alt="Office 2007 - First Look" width="500" height="305" /><p
class="wp-caption-text">Office 2007 — First Look</p></div><p>Now I don't know about you, but to me this bloo-ey look is hideous.I am not on Vista yet, by choice, so that sky blue gradation thing going on the top was not my cuppa. Why software designed for a certain platform cannot honor a user's general system UI preferences is beyond me, but Office 2007 does insist on having it's own look and feel. As though the new ribbon clutter was not enough.</p><p>I wanted to get rid of those ribbons to begin with. So I downloaded the the free version of <a
href="http://pschmid.net/office2007/ribboncustomizer/index.php">Ribbon Customizer</a>. They offer some Pro version but it does things I don't particularly care about. Alternatively, there is <a
href="http://toolbartoggle.com/">ToolbarToggle</a>, but on their site I did not seem to catch a free version, and I was unwilling to pay for this stuff.</p><p>The RibbonCustomizer install is pretty straightforward and when you start Word 2007 after its installation, here is how Word looks. There is an additional item in the View menu at the end:</p><div
class="wp-caption aligncenter" style="width: 730px"><img
title="Word 2007 after RibbonCustomizer" src="http://farm4.static.flickr.com/3146/2676534653_6594a869a3_o.gif" alt="Word 2007 after RibbonCustomizer" width="720" height="391" /><p
class="wp-caption-text">Word 2007 after RibbonCustomizer</p></div><p>I clicked on the obvious menu option to make ClassicUI my first menu tab. This is what this does:</p><div
class="wp-caption aligncenter" style="width: 819px"><img
title="Classic 2003 interface" src="http://farm4.static.flickr.com/3146/2677351776_0d12dcc876_o.gif" alt="Classic 2003 interface" width="809" height="494" /><p
class="wp-caption-text">Classic 2003 interface</p></div><p>That's a good start, but I now wanted to clean up some other stuff. Fortunately, Microsoft chose to include the additional "Minimize Ribbon" feature, which contextually hides the ribbon when your focus is on writing inside the document. So let's do that:</p><div
class="wp-caption aligncenter" style="width: 819px"><img
title="Minimize the Word 2007 ribbon" src="http://farm4.static.flickr.com/3237/2676534517_1552a04ccb_o.gif" alt="Minimize the Word 2007 ribbon" width="809" height="494" /><p
class="wp-caption-text">Minimize the Word 2007 ribbon</p></div><p>Now to get rid of the forced Blue. Click on the "More Commands" option in the menu shown in the screenshot above. Choose Silver and make other adjustments to your taste:</p><div
class="wp-caption aligncenter" style="width: 628px"><img
title="Choose silver" src="http://farm4.static.flickr.com/3021/2677351580_16e1a9b57a_o.gif" alt="Choose silver" width="618" height="373" /><p
class="wp-caption-text">Choose silver</p></div><p>Now this is what Word 2007 looks like, with minimized ribbon, classic 2003 UI, and a somewhat less intrusive silver gradient:</p><p><img
class="aligncenter" title="Office 2007 with minimized ribbon, classic 2003 UI, and silver color" src="http://farm4.static.flickr.com/3293/2676534383_437b64de15_o.gif" alt="" width="1001" height="408" /></p><p>Phew. I also recommend setting the default "Save" options as your regular Word ".doc" instead of the new ".docx" (or other .xlsx and .pptx equivalents) as that is a bit more standard even today in 2008.</p> ]]></content:encoded> <wfw:commentRss>http://sniptools.com/windows/customize-microsoft-office-2007-blue-ribbon-ui-to-office-2003/feed/</wfw:commentRss> <slash:comments>14</slash:comments> </item> <item><title>Convert subtitles from ssa to srt with Subtitle Workshop</title><link>http://sniptools.com/webtools/convert-subtitles-from-ssa-to-srt-with-subtitle-workshop</link> <comments>http://sniptools.com/webtools/convert-subtitles-from-ssa-to-srt-with-subtitle-workshop#comments</comments> <pubDate>Wed, 25 Jul 2007 04:04:06 +0000</pubDate> <dc:creator>Shanx</dc:creator> <category><![CDATA[Audio/Video]]></category> <category><![CDATA[Web Tools]]></category> <category><![CDATA[subtitles]]></category> <category><![CDATA[Tips/Tricks]]></category> <category><![CDATA[video]]></category><guid
isPermaLink="false">http://sniptools.com/?p=330</guid> <description><![CDATA[I use the excellent Submerge to flatten subtitles into my AVI files and other movies. But sometimes, subtitles are available from sources such as SubScene or AllSubs as not the usual *.srt files (SubRip format) but as *.ssa or *.sub. While searching for a converter between the captioned formats, Google did not turn up too [...]]]></description> <content:encoded><![CDATA[<p>I use the excellent Submerge to flatten subtitles into my AVI files and other movies. But sometimes, subtitles are available from sources such as <a
href="http://www.subscene.com">SubScene</a> or <a
href="http://allsubs.org">AllSubs</a> as not the usual <code>*.srt</code> files (<a
href="http://en.wikipedia.org/wiki/SubRip">SubRip</a> format) but as <code>*.ssa</code> or <code>*.sub</code>.</p><p>While searching for a converter between the captioned formats, Google did not turn up too much. After some searching I found a nifty little utility that allows you to convert between many formats of subtitles. It's Windows only, so if you are not on Windows you may have to use this within a virtual machine:</p><p><a
href="http://www.afterdawn.com/software/video_software/subtitle_tools/subtitle_workshop.cfm/v2_51   ">Download Subtitle Workshop</a></p><p>Usage is as simple as loading a subtitle file from the File menu, and then Save As and Bob's your uncle.</p> ]]></content:encoded> <wfw:commentRss>http://sniptools.com/webtools/convert-subtitles-from-ssa-to-srt-with-subtitle-workshop/feed/</wfw:commentRss> <slash:comments>7</slash:comments> </item> <item><title>Upgrade Zend Optimizer on Cpanel WHM</title><link>http://sniptools.com/system-maintenance/upgrade-zend-optimizer-on-cpanel-whm</link> <comments>http://sniptools.com/system-maintenance/upgrade-zend-optimizer-on-cpanel-whm#comments</comments> <pubDate>Sat, 12 May 2007 05:22:32 +0000</pubDate> <dc:creator>Shanx</dc:creator> <category><![CDATA[System Maintenance]]></category> <category><![CDATA[cpanel]]></category> <category><![CDATA[PHP]]></category> <category><![CDATA[SSH]]></category> <category><![CDATA[Tips/Tricks]]></category> <category><![CDATA[Zend]]></category><guid
isPermaLink="false">http://sniptools.com/cms/?p=147</guid> <description><![CDATA[upgrade zend optimizer on cpanel
]]></description> <content:encoded><![CDATA[<p>Simple little trick to get to the latest version.</p><p>Most <a
href="http://www.cpanel.net/products/cPanelandWHM/linux/try_cp_whm.htm">Cpanel/WHM</a> servers come with <a
href="http://www.php.net">PHP</a> and <a
href="http://www.zend.com">Zend</a> installed. With the recent (and important) update of PHP 5.2.1, the <a
href="http://www.zend.com/products/zend_optimizer">Zend Optimizer</a> that is installed by default (version 3.0.1 as of this writing) breaks.</p><p>You might begin to see a message like this:</p><div
class="code">[26-Apr-2007 10:32:49] PHP Warning: Zend Optimizer does not support this version of PHP — please upgrade to the latest version of Zend Optimizer in Unknown on line</div><p>To fix this, simply login to your SSH as root and execute the following command to upgrade Zend Optimiser:</p><blockquote><p><code>/scripts/installzendopt <span
style="color: #ee0000;">3.2.8</span></code></p></blockquote><p>Note that if you skip the version number, Zend Optimizer 3.0.1 will be installed by default. The trick is to specify the version as above. This will also work in the future, so as long as you know the latest released version of Zend Optimizer, just replace the red text above with that number.</p> ]]></content:encoded> <wfw:commentRss>http://sniptools.com/system-maintenance/upgrade-zend-optimizer-on-cpanel-whm/feed/</wfw:commentRss> <slash:comments>2</slash:comments> </item> <item><title>Microsoft Firefox 2007</title><link>http://sniptools.com/windows/microsoft-firefox-2007</link> <comments>http://sniptools.com/windows/microsoft-firefox-2007#comments</comments> <pubDate>Sat, 05 May 2007 08:29:36 +0000</pubDate> <dc:creator>Shanx</dc:creator> <category><![CDATA[Web Tools]]></category> <category><![CDATA[Windows]]></category> <category><![CDATA[Tips/Tricks]]></category><guid
isPermaLink="false">http://sniptools.com/cms/?p=145</guid> <description><![CDATA[microsoft firefox 2007
]]></description> <content:encoded><![CDATA[<p>I have to admit, I'm just in it for the "RSS".</p><p><span
id="more-145"></span></p><h3>Hilarious shtick</h3><p>Get one now! Keep a credit card handy.</p><p><a
href="http://www.msfirefox.com/firefox-full-features.html"><img
src="http://www.msfirefox.com/images/stories/msff07box.jpg" /></a></p> ]]></content:encoded> <wfw:commentRss>http://sniptools.com/windows/microsoft-firefox-2007/feed/</wfw:commentRss> <slash:comments>0</slash:comments> </item> <item><title>How to truly erase all data from your hard disk?</title><link>http://sniptools.com/windows/how-to-truly-erase-all-data-from-your-hard-disk</link> <comments>http://sniptools.com/windows/how-to-truly-erase-all-data-from-your-hard-disk#comments</comments> <pubDate>Wed, 02 May 2007 05:32:16 +0000</pubDate> <dc:creator>Shanx</dc:creator> <category><![CDATA[System Maintenance]]></category> <category><![CDATA[Windows]]></category> <category><![CDATA[Tips/Tricks]]></category><guid
isPermaLink="false">http://sniptools.com/cms/?p=137</guid> <description><![CDATA[recover deleted files
]]></description> <content:encoded><![CDATA[<p>Interesting post from ZDNet buoys an important concept to know, but only barely scratches the surface of the issue.</p><p><span
id="more-137"></span></p><p>This ZDNet post brings up a good point: <a
href="http://blogs.zdnet.com/storage/?p=129">How to REALLY erase a hard drive</a>. You know when you want to delete a file on a machine, it doesn't truly get deleted. It is saved somewhere on the hard disk because hard disks have in-built protection features.</p><p>Now it this really something to rejoice? Not really. If you've ever deleted a file while you were being stupid, trust me, it'd be easier to float in the Niagara than to recover your document. I was in a similar soup recently, and searched far and wide (ok, I did start with Google), I even paid for a few commercial ones, but the truth is that erasing a hard drive using pretty much any tool which overwrites the entire drive at least once will make any data on it unrecoverable.</p><p>Can someone do it in principle? You know, like those men in white in FBI crime labs? I read recently in Forsyth's <a
href="http://www.amazon.com/Afghan-Frederick-Forsyth/dp/0399153942/">The Afghan</a> (and I am sure such examples abound in crime thriller novels and Hollywood) that recovering hard disks was brushed off as a trivial matter. Not quite, not so soon. I asked a friend who's been in reconnaissance in his draft, and he says it's amazing what they *can* recover. For instance, some labs will claim to be able to pull data of a drive put through an industrial chipper–one little bit at a time, on a magnetic microscope, for tens of thousands of dollars.</p><p>However, you overwrite it once, and you'll be told the same thing: it is irrecoverable, not even with the microscope.</p><p>But since this is actually a post about file recovery and undelete software, I'll include a couple of recommendations: <a
href="http://dban.sourceforge.net/">Darik's Boot and Nuke (DBAN)</a> is a superb FREE utility that works well. If you want a paid piece of software, I've tried a few but found <a
href="http://www.r-undelete.com/">R-Undelete</a> to be the best.</p><p>If you use Linux, check out this detailed <a
href="http://www.engadget.com/2005/03/15/how-to-erase-old-hard-disks/">visual guide from Engadget</a> (although there's always the dreaded <a
href="http://www.bellevuelinux.org/shred.html">shred</a> command which is a pretty secure delete as it blasts random data over the file multiple times.)</p><div
class="quote">PS: If you're really, really destroying a hard disk for legal or other reasons, you shouldn't be reading google stuff anyway. Toss the disk into an searing oven and you can rest assured there's very little recoverable from melted metal <img
src="http://sniptools.com/cms/wp-includes/images/smilies/icon_wink.gif?348443" alt=';)' class='wp-smiley' /></div> ]]></content:encoded> <wfw:commentRss>http://sniptools.com/windows/how-to-truly-erase-all-data-from-your-hard-disk/feed/</wfw:commentRss> <slash:comments>1</slash:comments> </item> <item><title>Fix for Cpanel update that breaks mysqlhotcopy</title><link>http://sniptools.com/hosting/fix-mysqlhotcopy-broken-by-cpanel-upgrade</link> <comments>http://sniptools.com/hosting/fix-mysqlhotcopy-broken-by-cpanel-upgrade#comments</comments> <pubDate>Mon, 02 Apr 2007 11:10:00 +0000</pubDate> <dc:creator>Shanx</dc:creator> <category><![CDATA[Hosting]]></category> <category><![CDATA[Unix]]></category> <category><![CDATA[cpanel]]></category> <category><![CDATA[database]]></category> <category><![CDATA[Databases]]></category> <category><![CDATA[mysql]]></category> <category><![CDATA[SSH]]></category> <category><![CDATA[Tips/Tricks]]></category><guid
isPermaLink="false">http://sniptools.com/cms/?p=135</guid> <description><![CDATA[fix mysqlhotcopy broken by cpanel upgrade
]]></description> <content:encoded><![CDATA[<p>The recent upgrades of Cpanel have been a pain because they've broken mysqlhotcopy. Not kosher. Fortunately fixing this is pretty straightforward by simply downgrading the DBD module of Perl, on which mysqlhotcopy relies.</p><p><span
id="more-135"></span></p><h3>The recent upgrades of Cpanel have been a pain because they've broken <code>mysqlhotcopy</code>. Not kosher. Fortunately fixing this is pretty easy, by simply downgrading the DBD module of Perl, which <code>mysqlhotcopy</code> relies on.</h3><p>Usually the error is something like this:</p><div
class="code">Invalid db.table name 'DBNAME.USERNAME`.`campaign' at /usr/bin/mysqlhotcopy line 854.</div><p>To solve this, simply downgrade the DBD to version 4.001. Create a script anywhere on your root folder as, say, <code>dbd-downgrade.sh</code>:</p><div
class="wp_syntax"><table><tr><td
class="line_numbers"><pre>1
2
3
4
5
6
7
8
9
</pre></td><td
class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #666666; font-style: italic;">#!/bin/sh</span>
<span style="color: #7a0874; font-weight: bold;">cd</span> <span style="color: #000000; font-weight: bold;">/</span>usr<span style="color: #000000; font-weight: bold;">/</span>src
<span style="color: #c20cb9; font-weight: bold;">wget</span> <span style="color: #660033;">-O</span> dbd.tar.gz  <span style="color: #ff0000;">&quot;http://search.cpan.org/CPAN/authors/id/C/CA/CAPTTOFU/DBD-mysql-4.001.tar.gz&quot;</span>
<span style="color: #c20cb9; font-weight: bold;">gzip</span> <span style="color: #660033;">-cd</span> dbd.tar.gz <span style="color: #000000; font-weight: bold;">|</span> <span style="color: #c20cb9; font-weight: bold;">tar</span> xf -
<span style="color: #c20cb9; font-weight: bold;">rm</span> <span style="color: #660033;">-rf</span> dbd.tar.gz
<span style="color: #7a0874; font-weight: bold;">cd</span> DBD-mysql-<span style="color: #000000;">4.001</span>
<span style="color: #c20cb9; font-weight: bold;">perl</span> Makefile.PL
<span style="color: #c20cb9; font-weight: bold;">make</span>
<span style="color: #c20cb9; font-weight: bold;">make</span> <span style="color: #c20cb9; font-weight: bold;">install</span></pre></td></tr></table></div><p>Then of course <code>chmod</code> the file to executable (644) and run it:</p><div
class="code">./dbd-downgrade.sh</div><p>Then try your <code>mysqlhotcopy</code> command again. It should work. The only thing to consider is that if your Cpanel is setup to upgrade automatically, it may rebuild DBD. You may need to downgrade the DBD again, until this thing is fixed!</p><p>If after this update, you see the error for RELOAD privileges, like this…</p><pre>DBD::mysql::db do failed: Access denied; you need the RELOAD privilege for this operation at /usr/bin/mysqlhotcopy line 472.</pre><p>…then simply login to mysql as "root" user through the root SSH terminal, and execute the following command:</p><pre class="bash" >mysql&gt;  grant all privileges on *.* to root@localhost;
mysql&gt;  flush privileges;</pre><p>Done. That should do it. Let me know if it doesn't.</p><h3>A more long term fix</h3><p>MySQL bug list has a <a
href="http://bugs.mysql.com/bug.php?id=27303">couple of suggested fixes</a>. If you are comfortable with Perl, you can edit the code in <code>/usr/bin/mysqlhotcopy</code> and have it solved in a better way.</p> ]]></content:encoded> <wfw:commentRss>http://sniptools.com/hosting/fix-mysqlhotcopy-broken-by-cpanel-upgrade/feed/</wfw:commentRss> <slash:comments>4</slash:comments> </item> </channel> </rss>
<!-- Performance optimized by W3 Total Cache. Learn more: http://www.w3-edge.com/wordpress-plugins/

Minified using disk: basic
Page Caching using disk: enhanced (User agent is rejected)
Database Caching 4/11 queries in 0.003 seconds using disk: basic
Object Caching 1258/1273 objects using disk: basic

Served from: sniptools.com @ 2012-05-21 19:30:08 -->
