<?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>techhack.co.uk</title> <atom:link href="http://www.techhack.co.uk/feed/" rel="self" type="application/rss+xml" /><link>http://www.techhack.co.uk</link> <description>fixing the unfixable!</description> <lastBuildDate>Fri, 30 Dec 2011 19:24:22 +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>Restore MySQL database from .frm files</title><link>http://www.techhack.co.uk/2011/12/30/restore-mysql-database-from-frm-files/</link> <comments>http://www.techhack.co.uk/2011/12/30/restore-mysql-database-from-frm-files/#comments</comments> <pubDate>Fri, 30 Dec 2011 19:23:58 +0000</pubDate> <dc:creator>Robert Longworth</dc:creator> <category><![CDATA[Apache]]></category> <category><![CDATA[MySQL]]></category> <category><![CDATA[Web]]></category> <category><![CDATA[.frm]]></category> <category><![CDATA[database]]></category> <category><![CDATA[ibdata1]]></category> <category><![CDATA[MYSQL]]></category> <category><![CDATA[Restore]]></category> <guid
isPermaLink="false">http://www.techhack.co.uk/?p=353</guid> <description><![CDATA[So you need to restore a MySQL database from the files which were on a server and don&#8217;t have a proper SQL dump which you can just easily import, d&#8217;oh! Below is a brief example from a WAMP server of how this can be done. Before starting you should stop the WAMP services, orÂ at leastÂ restart the services whenÂ promptedÂ to start them. On the old server instance navigate to the MySQL data folder by default this should look something similar to &#8220;C:\wamp\bin\mysql\mysql5.1.53\data\&#8221; &#8230; <a
href="http://www.techhack.co.uk/2011/12/30/restore-mysql-database-from-frm-files/">Continue reading <span
class="meta-nav">&#8594;</span></a>]]></description> <content:encoded><![CDATA[<p>So you need to restore a MySQL database from the files which were on a server and don&#8217;t have a proper SQL dump which you can just easily import, d&#8217;oh!</p><p>Below is a brief example from a WAMP server of how this can be done.</p><p>Before starting you should stop the WAMP services, orÂ at leastÂ restart the services whenÂ promptedÂ to start them.</p><p>On the old server instance navigate to the MySQL data folder by default this should look something similar to <em>&#8220;C:\wamp\bin\mysql\mysql5.1.53\data\&#8221;</em> where <em>&#8220;mysql5.1.53&#8243;</em> will be the version number of the previously installed MySQL database.</p><p>Inside this folder you should see a few files and folders. The folders are the actual MySQL databases, and contain a bunch of .frm files which we will require. You should recognise the folder names as the database names. These folder and all their contents can be copied directly to your MySQL data folder, you can neglect the default databases mysql,Â performance_schema, test<em>.</em></p><p>If you started the server now you will see the databases are picked up, however the databases will contain none of the tables which were copied across. In order for the contents of the database to be picked up, back in the data folder you should see a file <em>&#8220;ibdata1&#8243;</em>,Â this is the data file for tables,Â copy this directly into the data folder, you should already have a file in your new data folder called <em>&#8220;ibdata1&#8243; so youÂ </em>may wish to rename this toÂ <em>&#8220;ibdata1.bak&#8221;</em> before copying across theÂ <em>&#8220;ibdata1&#8243;</em> from the old MySQL data folder.</p><p>Once this has been done Restart all the WAMP services. You can use PhpMyAdmin to check if your databases have beenÂ successfullyÂ restored.</p> ]]></content:encoded> <wfw:commentRss>http://www.techhack.co.uk/2011/12/30/restore-mysql-database-from-frm-files/feed/</wfw:commentRss> <slash:comments>0</slash:comments> </item> <item><title>Fix for Outlook 2010 &#8220;None of your e-mail accounts could send to this recipient.&#8221;</title><link>http://www.techhack.co.uk/2011/09/17/fix-for-outlook-2010-none-of-your-e-mail-accounts-could-send-to-this-recipient/</link> <comments>http://www.techhack.co.uk/2011/09/17/fix-for-outlook-2010-none-of-your-e-mail-accounts-could-send-to-this-recipient/#comments</comments> <pubDate>Sat, 17 Sep 2011 11:56:22 +0000</pubDate> <dc:creator>Robert Longworth</dc:creator> <category><![CDATA[Email]]></category> <category><![CDATA[Office]]></category> <category><![CDATA[Software]]></category> <category><![CDATA[Web]]></category> <category><![CDATA[/CleanAutoCompleteCache]]></category> <category><![CDATA[bounce back]]></category> <category><![CDATA[cant send email]]></category> <category><![CDATA[fix]]></category> <category><![CDATA[Microsoft Office 2010]]></category> <category><![CDATA[nk2]]></category> <category><![CDATA[Outlook]]></category> <category><![CDATA[Outlook 2010]]></category> <guid
isPermaLink="false">http://www.techhack.co.uk/?p=334</guid> <description><![CDATA[Microsoft Outlook generates and maintains a nickname list that is used by both the automatic name checking and the automatic completion features. If the autocomplete cache is corrupted, Outlook may be unable to recognise recipients, offer incorrect recipients when automatically completing the e-mail address, send the message to the wrong person or not send the message at all replying with an instant bounce back &#8220;None of your e-mail accounts could send to this recipient&#8221;. Unlike earlier versions of Outlook that &#8230; <a
href="http://www.techhack.co.uk/2011/09/17/fix-for-outlook-2010-none-of-your-e-mail-accounts-could-send-to-this-recipient/">Continue reading <span
class="meta-nav">&#8594;</span></a>]]></description> <content:encoded><![CDATA[<p>Microsoft Outlook generates and maintains a nickname list that is used by both the automatic name checking and the automatic completion features. If the autocomplete cache is corrupted, Outlook may be unable to recognise recipients, offer incorrect recipients when automatically completing the e-mail address, send the message to the wrong person or not send the message at all replying with an instant bounce back &#8220;None of your e-mail accounts could send to this recipient&#8221;.</p><p>Unlike earlier versions of Outlook that store the nickname cache in a NK2 file on your hard drive, Outlook 2010 stores the nickname cache in your primary message store. If you are using a Microsoft Exchange Server account, your nickname cache is stored in a hidden message in your mailbox. This allows the autocomplete feature to be retrieved from any computer you may use your email from.</p><p>If you are receiving the bounce back like the one shown below and your autocomplete cached has become corrupt we can clean it, unlike earlier versions of Outlook simply renaming the autocomplete file wonâ€™t fix the issue as the list will be downloaded again next time you open Outlook.</p><pre><strong>From:</strong> System Administrator
Your message did not reach some or all of the intended recipients.
The following recipient(s) cannot be reached:
'<a href="mailto:name@domain" target="_blank">name@domain</a>' on 17/09/2011 12:30
None of your e-mail accounts could send to this recipient.</pre><p>Before clearing the autocomplete cache you may wish to backup the file. The autocomplete file can be found in the following location C:\Users\%username%\AppData\Local\Microsoft\Outlook\RoamCache\Stream_Autocomplete*.dat. You can quickly locate this folder by pasting %APPDATA%\Microsoft\Outlook into Windows Explorer or the Run dialog. Now copy and rename this file for safe keeping.</p><p>You can now safely clear the autocomplete cache by following one of the methods listed below:</p><p><strong>Method 1</strong></p><ul><li>With Outlook 2010 open, click File &gt; Options</li><li>Click the Mail tab</li><li>Under Send Messages, click Empty Auto-Complete List</li></ul><p>Outlook will generate a new nickname cache.</p><p>&nbsp;</p><p><strong>Method 2</strong></p><ul><li>Â Â Â  Click Start &gt; Run.</li><li>Â Â Â  Launch Outlook with the clean autocomplete switch &#8211; <code>Outlook.exe /CleanAutoCompleteCache</code></li></ul><p>Note If Outlook is not installed in the default location, you must point to the path of Outlook.exe.</p><p>Outlook will generate a new nickname cache.</p> ]]></content:encoded> <wfw:commentRss>http://www.techhack.co.uk/2011/09/17/fix-for-outlook-2010-none-of-your-e-mail-accounts-could-send-to-this-recipient/feed/</wfw:commentRss> <slash:comments>0</slash:comments> </item> <item><title>cmd asking to &#8220;Open With&#8221;</title><link>http://www.techhack.co.uk/2011/09/13/cmd-asking-to-open-with/</link> <comments>http://www.techhack.co.uk/2011/09/13/cmd-asking-to-open-with/#comments</comments> <pubDate>Tue, 13 Sep 2011 19:04:08 +0000</pubDate> <dc:creator>Robert Longworth</dc:creator> <category><![CDATA[Server]]></category> <category><![CDATA[Windows]]></category> <category><![CDATA[Windows 7]]></category> <category><![CDATA[cmd]]></category> <category><![CDATA[command prompt]]></category> <category><![CDATA[open with]]></category> <guid
isPermaLink="false">http://www.techhack.co.uk/?p=323</guid> <description><![CDATA[Like me, you may have run into the problem that when you go to Start &#62; Run and type in &#8220;cmd&#8221;, you are getting prompted with an &#8220;Open With&#8221; dialog which is asking what program you would like to open cmd with. This problem can occur when there is another file named CMD on your system, typically in your profile folder. To help locate the rouge file causing the issue you can run the following command in the Run dialog &#8230; <a
href="http://www.techhack.co.uk/2011/09/13/cmd-asking-to-open-with/">Continue reading <span
class="meta-nav">&#8594;</span></a>]]></description> <content:encoded><![CDATA[<p>Like me, you may have run into the problem that when you go to Start &gt; Run and type in &#8220;cmd&#8221;, you are getting prompted with an &#8220;Open With&#8221; dialog which is asking what program you would like to open cmd with. This problem can occur when there is another file named CMD on your system, typically in your profile folder.</p><p>To help locate the rouge file causing the issue you can run the following command in the Run dialog<br
/> <code>%comspec% /k dir "%userprofile%\cmd*" /s</code></p><p>This line will open cmd and run the dir command on your profile searching for any files with word &#8220;cmd&#8221; in their title, and display them accordingly.</p><p>Now we want to remove the offending file using the list of files we have just created. You could delete the file, however, I would suggest renaming or moving the file to a alterative location. Using the list navigate to the paths provided rename/move/delete the file in question. You may want to do one file at a time and try entering &#8220;cmd&#8221; in the Run dialog again to determine which of the files was causing the problem.</p><p>When you type a program name into the Run dialog, Windows searches for the file in the following locations and executes the first one it finds:</p><ol><li>User Profile folder</li><li>App Paths registry key</li><li>Folders included in the PATH variable</li></ol><p>If you haven&#8217;t managed to fix the problem by working through the user profile, you could next try looking through the App Paths with regedit. Enter &#8220;regedit&#8221; into the Run dialog and then navigate to &#8220;HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\App Paths&#8221;. We want to delete any key which may have been created for cmd.exe.<span
style="color: #ff0000;"> Warning: you should first backup the registry before making any changes! To do this you can select the key you are going to change, right-click the key and select export, browsing to a location you would like to save the backup. When using regedit don&#8217;t delete anything you are unsure of, as you could cause damage to your system.<br
/> </span></p><p>If you haven&#8217;t managed to fix the issue then you have another place we can still check! Go to the PATH environmental variables by right-clicking &#8220;Computer&#8221; or &#8220;My Computer&#8221; depending upon your Operating System, select &#8220;Advanced System Settings&#8221; or &#8220;System Properties&#8221;, select the &#8220;Advanced&#8221; tab and press the &#8220;Environmental Variables&#8221; button. You should see a dialog similar to that of below. <span
style="color: #ff0000;">Warning: becareful not to delete any part of the PATH as you may cause damage to your system.</span></p><div
id="attachment_324" class="wp-caption alignnone" style="width: 932px"><img
class="size-full wp-image-324" title="PATH Enviromental Variable" src="http://www.techhack.co.uk/wp-content/uploads/2011/09/path_variable.jpg" alt="PATH Enviromental Variable" width="922" height="738" /><p
class="wp-caption-text">PATH Enviromental Variable</p></div><p>Much like the first step we tried earlier you can sift through the different file locations provided in the Path variable and check to see if you can find any stray &#8220;cmd&#8221; titled files. Again rename/move/delete the offending file, and test &#8220;cmd&#8221; in the Run diaglog.</p><p>Finally if you believe the files appeared on your system without your assistance, then itâ€™s highly recommended that you run a scan for Viruses and Malware. If you have no anti-virus or anti-malware software then you could try using one of the following <a
title="Malwarebytes Anti-Malware" href="http://www.malwarebytes.org/" target="_blank">Malwarebytes Anti-Malware</a>, <a
title="SUPERAntiSpyware" href="http://www.superantispyware.com/" target="_blank">SUPERAntiSpyware</a>, <a
title="Spybot Search &amp; Destroy" href="http://www.safer-networking.org/index2.html" target="_blank">Spybot Search &amp; Destroy</a>, <a
title="Ad-Aware" href="http://www.lavasoft.com/" target="_blank">Ad-Aware</a>, <a
title="Microsoft Security Essentials" href="http://www.microsoft.com/en-gb/security_essentials/default.aspx" target="_blank">Microsoft Security Essentials</a>, <a
title="Combofix" href="http://www.combofix.org/" target="_blank">Combofix</a>.</p> ]]></content:encoded> <wfw:commentRss>http://www.techhack.co.uk/2011/09/13/cmd-asking-to-open-with/feed/</wfw:commentRss> <slash:comments>0</slash:comments> </item> <item><title>Make your website more mobile friendly</title><link>http://www.techhack.co.uk/2011/09/08/make-your-website-more-mobile-friendly/</link> <comments>http://www.techhack.co.uk/2011/09/08/make-your-website-more-mobile-friendly/#comments</comments> <pubDate>Thu, 08 Sep 2011 22:06:41 +0000</pubDate> <dc:creator>Robert Longworth</dc:creator> <category><![CDATA[Android]]></category> <category><![CDATA[Mobile]]></category> <category><![CDATA[browsing]]></category> <category><![CDATA[css]]></category> <category><![CDATA[mobile]]></category> <category><![CDATA[scale]]></category> <category><![CDATA[viewport]]></category> <guid
isPermaLink="false">http://www.techhack.co.uk/?p=310</guid> <description><![CDATA[Mobile browsers often have no scroll bars or resize buttons, instead the user pans around a webpage by moving their finger across the screen and zooms by double-tapping or pinching the screen. The way users interact with web content on the desktop and mobile are not the same. The viewport on a desktop is the visible area of the webpage, the user resizes the viewport by resizing the window. If the webpage is larger than the viewport, then the user &#8230; <a
href="http://www.techhack.co.uk/2011/09/08/make-your-website-more-mobile-friendly/">Continue reading <span
class="meta-nav">&#8594;</span></a>]]></description> <content:encoded><![CDATA[<p>Mobile browsers often have no scroll bars or resize buttons, instead the user pans around a webpage by moving their finger across the screen and zooms by double-tapping or pinching the screen. The way users interact with web content on the desktop and mobile are not the same.</p><p>The viewport on a desktop is the visible area of the webpage, the user resizes the viewport by resizing the window. If the webpage is larger than the viewport, then the user scrolls to see more of the webpage. When the viewport is resized the web browser may change the documentâ€™s layout.</p><p>Following Apple Safari&#8217;s lead many mobile browsers use the viewport as the area that determines how content is laid out and where text wraps on the webpage. The viewport can be larger or smaller than the visible area.</p><p>Using the double tap and pinch gestures, users can change the scale of the viewport but not the size. The only exception is when the user changes from portrait to landscape orientation, under certain circumstances change the webpage layout.</p><p>You can set the viewport size and other properties of your webpage, to help improve the presentation of the webpage, with just a single line of meta code in the header of your website.</p><p><code>&lt;meta name="viewport" content="width=device-width,initial-scale=0.5,user-scalable=yes" /&gt;</code></p><p>In this example code snippet above we have set the content of the website to be equal to the width of the device. The initial scale to 50% and to allow the user to scale the webpage of their own accord.</p><p>Typically, you set the viewport width to match your web content. If your webpage is narrower than the default width then set the viewport width to the width of your webpage. E.g. width=720</p><p>You can adjust the initial scale of the website, where 1.0 = 100%. You may wish to do this if mobile devices aren&#8217;t seeing the entire width of a page or the text is so small it has become unreadable. E.g. initial-scale=0.5</p><p>If desired you can prevent the end user the ability to scale the webpage themselves. E.g. user-scalable=no</p><p>See below for examples of how the initial scale value effects the presentation of the webpage.</p><div
id="attachment_315" class="wp-caption alignnone" style="width: 412px"><img
class="size-full wp-image-315" title="Viewport Default" src="http://www.techhack.co.uk/wp-content/uploads/2011/09/viewport_default.jpg" alt="" width="402" height="361" /><p
class="wp-caption-text">Viewport Default</p></div><div
id="attachment_316" class="wp-caption alignnone" style="width: 373px"><img
class="size-full wp-image-316" title="Viewport Scale 1.0" src="http://www.techhack.co.uk/wp-content/uploads/2011/09/viewport_1.jpg" alt="Viewport Scale 1.0" width="363" height="361" /><p
class="wp-caption-text">Viewport Scale 1.0</p></div><div
id="attachment_318" class="wp-caption alignnone" style="width: 493px"><img
class="size-full wp-image-318" title="Viewport Scale 1.5" src="http://www.techhack.co.uk/wp-content/uploads/2011/09/viewport_150.jpg" alt="Viewport Scale 1.5" width="483" height="463" /><p
class="wp-caption-text">Viewport Scale 1.5</p></div><div
id="attachment_319" class="wp-caption alignnone" style="width: 373px"><img
class="size-full wp-image-319" title="Viewport Scale 0.5" src="http://www.techhack.co.uk/wp-content/uploads/2011/09/viewport_50.jpg" alt="Viewport Scale 0.5" width="363" height="361" /><p
class="wp-caption-text">Viewport Scale 0.5</p></div><p>Other CSS properties worth noting down when developing more mobile friendly sites include the min-width and max-width properties. These properties are useful when dealing with floating elements where you want elements to remain on the same line as one another. Providing enough width for two elements to fit side-by-side without any overlap.</p> ]]></content:encoded> <wfw:commentRss>http://www.techhack.co.uk/2011/09/08/make-your-website-more-mobile-friendly/feed/</wfw:commentRss> <slash:comments>0</slash:comments> </item> <item><title>Install printers on login using a VBScript</title><link>http://www.techhack.co.uk/2011/09/04/install-printers-on-login-using-a-vbscript/</link> <comments>http://www.techhack.co.uk/2011/09/04/install-printers-on-login-using-a-vbscript/#comments</comments> <pubDate>Sun, 04 Sep 2011 20:44:56 +0000</pubDate> <dc:creator>Robert Longworth</dc:creator> <category><![CDATA[Printers]]></category> <category><![CDATA[Windows]]></category> <category><![CDATA[automatic]]></category> <category><![CDATA[install]]></category> <category><![CDATA[login]]></category> <category><![CDATA[printer]]></category> <category><![CDATA[VBScript]]></category> <guid
isPermaLink="false">http://www.techhack.co.uk/?p=297</guid> <description><![CDATA[To save yourself the manual work of installing printers on client pc you could write a short bit of code to get this to happen automatically on login, with the use of a simple VBScript, particularly useful in a large company or organisation such as a school where there could be 100&#8242;s of PCs to setup. The process will consist of 2 stages. Firstly we want to run the VBScript on login. If you already use a login bat on &#8230; <a
href="http://www.techhack.co.uk/2011/09/04/install-printers-on-login-using-a-vbscript/">Continue reading <span
class="meta-nav">&#8594;</span></a>]]></description> <content:encoded><![CDATA[<p>To save yourself the manual work of installing printers on client pc you could write a short bit of code to get this to happen automatically on login, with the use of a simple VBScript, particularly useful in a large company or organisation such as a school where there could be 100&#8242;s of PCs to setup.</p><p>The process will consist of 2 stages. Firstly we want to run the VBScript on login. If you already use a login bat on login to perform tasks such as mapping network drives then you could do this by adding the following line to the login bat file to call the VBScript.</p><p><code>WScript.exe "\\SERVERNAME\SYSVOL\DOMAINNAME\scripts\SCRIPTNAME.vbs"</code></p><p>Where you would replace the SERVERNAME, DOMAINNAME and SCRIPTNAME with your own configuration.</p><p>If you don&#8217;t run a login.bat then you could set the VBScript to be called in the Active Directory, as shown below. This option is under the profile tab of a users account.</p><p><img
class="alignnone size-full wp-image-299" title="Login script" src="http://www.techhack.co.uk/wp-content/uploads/2011/09/login_script.jpg" alt="Login script" width="596" height="537" /></p><p>The second stage is the VBScript itself.</p><p><code>On Error Resume Next<br
/> Set netPrinter = CreateObject("WScript.Network")<br
/> netPrinter.AddWindowsPrinterConnection "\\<code>SERVERNAME</code>\PRINTERNAME"<br
/> netPrinter.SetDefaultPrinter "\\SERVERNAME\<code>PRINTERNAME</code>"</code></p><p>Lets go into a little more detail. The first line pretty much explains itself, if there are any problems the script won&#8217;t simply holt but jump onto the next line and attempt to continue running. The second line is creating an object of type WScript.Network. The third line is where you will want to begin tailoring it to your own scenario, this is adding a connection for the printer, here you should add the hostname or IP address of the machine the printer is installed upon, followed by the name of the printer itself. Finally if you are adding multiple printers, using the fourth line of code, you could set which printer you would like to be the default printer.</p> ]]></content:encoded> <wfw:commentRss>http://www.techhack.co.uk/2011/09/04/install-printers-on-login-using-a-vbscript/feed/</wfw:commentRss> <slash:comments>0</slash:comments> </item> <item><title>CSS transitional effect example</title><link>http://www.techhack.co.uk/2011/09/04/css-transitional-effect-example/</link> <comments>http://www.techhack.co.uk/2011/09/04/css-transitional-effect-example/#comments</comments> <pubDate>Sun, 04 Sep 2011 18:02:40 +0000</pubDate> <dc:creator>Robert Longworth</dc:creator> <category><![CDATA[CSS]]></category> <category><![CDATA[Web]]></category> <category><![CDATA[-moz-transition]]></category> <category><![CDATA[-o-transition]]></category> <category><![CDATA[-webkit-transition]]></category> <category><![CDATA[Cascading Style Sheets]]></category> <category><![CDATA[css]]></category> <guid
isPermaLink="false">http://www.techhack.co.uk/?p=291</guid> <description><![CDATA[Use CSS to create smooth transitional effects. Move and change elements without the need of plugins like Adobe Flash or Java. Using lightweight, simple and efficient code. However all these advantages of Cascading Style Sheets do have one main noticeable disadvantage, in order to see these effects, the end client must be using a web browser with supports such effects. See the search bar above for an example &#8211; this works smoothly in Mozilla Firefox, Google Chrome and Opera. Internet &#8230; <a
href="http://www.techhack.co.uk/2011/09/04/css-transitional-effect-example/">Continue reading <span
class="meta-nav">&#8594;</span></a>]]></description> <content:encoded><![CDATA[<p>Use CSS to create smooth transitional effects. Move and change elements without the need of plugins like Adobe Flash or Java. Using lightweight, simple and efficient code. However all these advantages of Cascading Style Sheets do have one main noticeable disadvantage, in order to see these effects, the end client must be using a web browser with supports such effects.</p><p>See the search bar above for an example &#8211; this works smoothly in Mozilla Firefox, Google Chrome and Opera. Internet explorer will only display the before and after goal, none of the effects to transition from one stage to another.</p><p>To use the effects you must have a before and after goal. In the example below we will set a default width property and a different width propertyÂ on hover.</p><p>The next stage is to add a duration property (-transition-duration) for the effect, the larger the number the slower and more gradual the effect. We can name which properties we would like this transition to affect, separated by commas for multiple properties such as width and background or you can put all to effect all differing properties (-transition-property). Finally set the timing function (-transition-timing-function) to select the type of transition. Unfortunately this will have to be done for each of the main engines.</p><p><code>#search {<br
/> -webkit-transition-duration: 600ms;<br
/> -webkit-transition-property: width;<br
/> -webkit-transition-timing-function: ease;<br
/> -moz-transition-duration: 600ms;<br
/> -moz-transition-property: width;<br
/> -moz-transition-timing-function: ease;<br
/> -o-transition-duration: 600ms;<br
/> -o-transition-property: width;<br
/> -o-transition-timing-function: ease;<br
/> width: 50px;<br
/> }<br
/> #search:hover{<br
/> width: 200px;<br
/> }</code></p> ]]></content:encoded> <wfw:commentRss>http://www.techhack.co.uk/2011/09/04/css-transitional-effect-example/feed/</wfw:commentRss> <slash:comments>0</slash:comments> </item> <item><title>Extract a print driver .inf from an executable .exe</title><link>http://www.techhack.co.uk/2011/09/04/extract-a-print-driver-inf-from-an-executable-exe/</link> <comments>http://www.techhack.co.uk/2011/09/04/extract-a-print-driver-inf-from-an-executable-exe/#comments</comments> <pubDate>Sun, 04 Sep 2011 17:33:03 +0000</pubDate> <dc:creator>Robert Longworth</dc:creator> <category><![CDATA[Printers]]></category> <category><![CDATA[Server]]></category> <category><![CDATA[Windows]]></category> <category><![CDATA[Windows 7]]></category> <category><![CDATA[7-zip]]></category> <category><![CDATA[driver]]></category> <category><![CDATA[executable]]></category> <category><![CDATA[inf]]></category> <category><![CDATA[install]]></category> <category><![CDATA[printer]]></category> <guid
isPermaLink="false">http://www.techhack.co.uk/?p=274</guid> <description><![CDATA[Ever get stuck with the screen below? Where you want to install a printer but can&#8217;t find the driver .inf only an executable bundled with various vendor software you don&#8217;t want installing or perhaps the bundled software won&#8217;t detect your printer so you need to enter these manually. Not a problem. Like a .zip file an .exe is a compressed file containing several other files and whats more we can open an executable, with a program such as 7-zip, to &#8230; <a
href="http://www.techhack.co.uk/2011/09/04/extract-a-print-driver-inf-from-an-executable-exe/">Continue reading <span
class="meta-nav">&#8594;</span></a>]]></description> <content:encoded><![CDATA[<p>Ever get stuck with the screen below? Where you want to install a printer but can&#8217;t find the driver .inf only an executable bundled with various vendor software you don&#8217;t want installing or perhaps the bundled software won&#8217;t detect your printer so you need to enter these manually.</p><div
id="attachment_279" class="wp-caption alignnone" style="width: 407px"><img
class="size-full wp-image-279" title="Installing Your Printer Driver" src="http://www.techhack.co.uk/wp-content/uploads/2011/09/installing_printer.jpg" alt="Installing Your Printer Driver" width="397" height="340" /><p
class="wp-caption-text">Installing Your Printer Driver</p></div><p>Not a problem. Like a .zip file an .exe is a compressed file containing several other files and whats more we can open an executable, with a program such as <a
title="7-zip" href="http://www.7-zip.org/" target="_blank">7-zip</a>, to extract individual files. In our case we will want to extract the driver for the printer.</p><p>The first task is to locate and download the required driver from the vendors website.</p><p>A printer may have various different flavours of Printer Control Language drivers available. It&#8217;s important to select the correct driver to prevent issues down the line. Some common types include PCL5, PCL6 and PS.</p><p>PCL5 comes in various flavours of Printer Control Languages PCL5 is the oldest printer language, used only in Networks that are UNIX-based. PCL5C are also an older printer language, but written for Colour Printers. PCL5E is the latest release of this printer language and allows for a greater DPI (Dots per Inch). PCL5 may be required for some older applications to print correctly.</p><p>PCL6 is a relatively new printer language and is becoming more popular.</p><p>PS (PostScript) drivers are used for high quality printing.</p><p>After we have downloaded our executable file containing the driver we need the next step is to open the file with <a
title="7-zip" href="http://www.7-zip.org/" target="_blank">7-zip</a>. You can do this either by launching the software and opening the archive or right-click on your file and select: 7-zip &gt; Open archive.</p><p><img
class="alignnone size-full wp-image-280" title="Open executable containing print driver" src="http://www.techhack.co.uk/wp-content/uploads/2011/09/open_driver.jpg" alt="Open executable containing print driver" width="407" height="363" /></p><p>Extract the .inf file to a location of your choice, I tend to settle for a self-explanatory location such as C:\drivers\printers\ simply encase I want to use the driver again at a later date.</p><p><img
class="alignnone size-full wp-image-281" title="Extract print driver" src="http://www.techhack.co.uk/wp-content/uploads/2011/09/extract_driver.jpg" alt="Extract print driver" width="567" height="423" /></p><p>Now select the driver within the windows printer installer and continue your installation</p><p><img
class="alignnone size-full wp-image-283" title="Locate driver and install printer" src="http://www.techhack.co.uk/wp-content/uploads/2011/09/installing_printer1.jpg" alt="Locate driver and install printer" width="397" height="340" /></p> ]]></content:encoded> <wfw:commentRss>http://www.techhack.co.uk/2011/09/04/extract-a-print-driver-inf-from-an-executable-exe/feed/</wfw:commentRss> <slash:comments>0</slash:comments> </item> <item><title>A simple cmd batch script to backup MYSQL for WAMP servers</title><link>http://www.techhack.co.uk/2011/05/02/a-simple-cmd-batch-script-to-backup-mysql-for-wamp-servers/</link> <comments>http://www.techhack.co.uk/2011/05/02/a-simple-cmd-batch-script-to-backup-mysql-for-wamp-servers/#comments</comments> <pubDate>Mon, 02 May 2011 21:20:26 +0000</pubDate> <dc:creator>Robert Longworth</dc:creator> <category><![CDATA[Apache]]></category> <category><![CDATA[Server]]></category> <category><![CDATA[Web]]></category> <category><![CDATA[Windows]]></category> <category><![CDATA[apache]]></category> <category><![CDATA[Backup]]></category> <category><![CDATA[MYSQL]]></category> <category><![CDATA[script]]></category> <category><![CDATA[WAMP]]></category> <guid
isPermaLink="false">http://www.techhack.co.uk/?p=199</guid> <description><![CDATA[Here&#8217;s aÂ quick and simple guide to creating a short script to backup your MYSQL databases for your WAMP server. To do this we will create a .bat file using notepad, or your favourite text editor, you can then even go onto automating the execution of this script using the in-built Windows Task Scheduler. I won&#8217;t bother going into detail, if you&#8217;ve already setup a WAMP server I assume you&#8217;re pretty capable with a computer already and the script is only &#8230; <a
href="http://www.techhack.co.uk/2011/05/02/a-simple-cmd-batch-script-to-backup-mysql-for-wamp-servers/">Continue reading <span
class="meta-nav">&#8594;</span></a>]]></description> <content:encoded><![CDATA[<p>Here&#8217;s aÂ quick and simple guide to creating a short script to backup your MYSQL databases for your WAMP server.</p><p>To do this we will create a .bat file using notepad, or your favourite text editor, you can then even go onto automating the execution of this script using the in-built Windows Task Scheduler. I won&#8217;t bother going into detail, if you&#8217;ve already setup a WAMP server I assume you&#8217;re pretty capable with a computer already and the script is only a basic example for you to tailor and play with, but can be a lifesaver in nasty situations!</p><p>Open up notepad and writeÂ the script as shown below &#8211; changing any options to suit your own circumstances.</p><p><em>echo off</em><br
/> <em>cd C:wampbinmysqlmysql5.1.53bin</em><br
/> <em>cls</em><br
/> <em>mysqldump -u user -p password database1_name &gt; C:sql_dumpsdatabase1_name.sql</em><br
/> <em>echo database1 sql dump created</em><br
/> <em>mysqldump -u root database2_name &gt; C:sql_dumpsdatabase2_name.sql</em><br
/> <em>echo database2 sql dump created</em><br
/> <em>echo &#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211;</em><br
/> <em>echo All SQL Database Backups Completed</em><br
/> <em>echo &#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211;</em><br
/> <em>pause</em></p><p>Save the file as backup.bat. This script will now be executable and can be run to backup and take dumps of yourÂ databases.</p><p>A further look into what each line of the script is doing&#8230;</p><p><em>echo off</em><br
/> <em><span
style="color: #ff0000;">Turns off command-echoing</span></em><br
/> <em>cd C:wampbinmysqlmysql5.1.53bin</em><br
/> <em><span
style="color: #ff0000;">Change directory to where your mysqldump.exe executable is installed</span></em><br
/> <em>cls</em><br
/> <em><span
style="color: #ff0000;">Clears the screen. The user doesn&#8217;t need to see what we&#8217;ve been doing yet.</span></em><br
/> <em>mysqldump -u user -p password database1_name &gt; C:sql_dumpsdatabase1_name.sql</em><br
/> <em><span
style="color: #ff0000;">Creates a dump of the database called database1_name to the location C:sql_dumps as a file named database1_name.sql,Â using the MYSQL account details of username user and password password.</span></em><br
/> <em>echo database1 sql dump created</em><br
/> <em><span
style="color: #ff0000;">Displays a message to say this step has been completed</span></em><br
/> <em>mysqldump -u root database2_name &gt; C:sql_dumpsdatabase2_name.sql</em><br
/> <em><span
style="color: #ff0000;">Creates a second dumpÂ for a secondÂ database called database2_name to the location C:sql_dumps as a file named database2_name.sql, using the MYSQL root account.</span></em><br
/> <em>echo database2 sql dump created</em><br
/> <em><span
style="color: #ff0000;">Displays a message to say this step has been completed</span></em><br
/> <em>echo &#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211;</em><br
/> <em>echo All SQL Database Backups Completed</em><br
/> <em>echo &#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211;</em><br
/> <em><span
style="color: #ff0000;">Displays a message to say all steps have been completed</span></em><br
/> <em>pause</em><br
/> <em><span
style="color: #ff0000;">Suspends processing of the batch file displaying &#8220;Press any key to continue&#8230;&#8221;. I have simply added a pause to theÂ end of the script to allowÂ the user to see that the script has run and the messages which have been displayed.</span></em></p><p>Just a quick note you should notice I change directory to where the mysqldump.exe lives, the path for this maybe slightly different for yourself depending on where you placed your WAMP installation. To prevent you from having to take this step you could add the directory to the Windows Enviroment Variables&#8230; Path <em>(Right-Click Computer &#8211; Advanced system properties)</em>, however this is only an optional extra step.</p> ]]></content:encoded> <wfw:commentRss>http://www.techhack.co.uk/2011/05/02/a-simple-cmd-batch-script-to-backup-mysql-for-wamp-servers/feed/</wfw:commentRss> <slash:comments>0</slash:comments> </item> <item><title>Take ownership of files with denied access in Windows using Command Prompt</title><link>http://www.techhack.co.uk/2011/04/18/take-ownership-of-files-with-denied-access-in-windows-using-command-prompt/</link> <comments>http://www.techhack.co.uk/2011/04/18/take-ownership-of-files-with-denied-access-in-windows-using-command-prompt/#comments</comments> <pubDate>Mon, 18 Apr 2011 18:40:27 +0000</pubDate> <dc:creator>Robert Longworth</dc:creator> <category><![CDATA[Server]]></category> <category><![CDATA[Windows]]></category> <category><![CDATA[Windows 7]]></category> <category><![CDATA[denied access]]></category> <category><![CDATA[File and directory access control]]></category> <category><![CDATA[ownership]]></category> <category><![CDATA[rights and permissions]]></category> <guid
isPermaLink="false">http://www.techhack.co.uk/?p=189</guid> <description><![CDATA[If you must access a file or a folder that you do not have rights to, you must first take ownership of that file or folder. When you do this, you replace the security permissions that were originally created for the file or folder. To do this via Command Prompt you can use the &#8220;takeown&#8221; command. A simple example would be: takeown /f test.txt -Â  which would take ownership of the file test.txt as the current user In the example &#8230; <a
href="http://www.techhack.co.uk/2011/04/18/take-ownership-of-files-with-denied-access-in-windows-using-command-prompt/">Continue reading <span
class="meta-nav">&#8594;</span></a>]]></description> <content:encoded><![CDATA[<p>If you must access a file or a folder that you do not have rights to, you must first take ownership of that file or folder. When you do this, you replace the security permissions that were originally created for the file or folder.</p><p>To do this via Command Prompt you can use the &#8220;takeown&#8221; command.</p><p>A simple example would be:</p><p><em>takeown /f test.txt </em>-Â  which would take ownership of the file test.txt as the current user</p><p>In the example below &#8211; <em>takeown /f * /r /d y</em> &#8211; I have navigated into the parent folder TestFolder to take owner ship of all files and folders (including sub-directories) as the current user, and have specified that I would like to take ownership when prompted.</p><div
id="attachment_194" class="wp-caption alignnone" style="width: 530px"><img
class="size-full wp-image-194" title="Takeown Command" src="http://www.techhack.co.uk/wp-content/uploads/2011/04/takeown_command.jpg" alt="Takeown Command" width="520" height="246" /><p
class="wp-caption-text">Takeown Command</p></div><p>You should get a message of success for each object this is carried out upon.</p><p>There are several useful arguments which can be used with the &#8220;takeown&#8221; command as demonstrated above.</p><p>/s &lt;Computer&gt; &#8211; Specifies the hostname or IP address of a remote computer (<strong>do not use backslashes</strong>). The default value is the local computer. This parameter applies to all of the files and folders specified in the command.</p><p>/u [&lt;Domain&gt;]&lt;User name&gt; &#8211; Runs the script with the permissions of the specified user account. The default value is system permissions.</p><p>/p [&lt;Password&gt;] &#8211; Specifies the password of the user account that is specified in the /u parameter.</p><p>/f &lt;File name&gt; &#8211; Specifies the file name or directory name pattern. You can use the wildcard character * when specifying the pattern. You can also use the syntax ShareNameFileName.</p><p>/a &#8211; Gives ownership to the Administrators group instead of the current user.</p><p>/r &#8211; Performs a recursive operation on all files in the specified directory and subdirectories.</p><p>/d {Y | N} &#8211; Suppresses the confirmation prompt that is displayed when the current user does not have the &#8220;List Folder&#8221; permission on a specified directory, and instead uses the specified default value.</p><p>Y: Take ownership of the directory.<br
/> N: Skip the directory.</p><p>Note that you must use this option in conjunction with the /r option.</p> ]]></content:encoded> <wfw:commentRss>http://www.techhack.co.uk/2011/04/18/take-ownership-of-files-with-denied-access-in-windows-using-command-prompt/feed/</wfw:commentRss> <slash:comments>0</slash:comments> </item> <item><title>Format a hard drive with Command Prompt</title><link>http://www.techhack.co.uk/2011/03/31/format-a-hard-drive-with-command-prompt/</link> <comments>http://www.techhack.co.uk/2011/03/31/format-a-hard-drive-with-command-prompt/#comments</comments> <pubDate>Thu, 31 Mar 2011 20:34:46 +0000</pubDate> <dc:creator>Robert Longworth</dc:creator> <category><![CDATA[Windows]]></category> <category><![CDATA[Windows 7]]></category> <category><![CDATA[cmd]]></category> <category><![CDATA[command line]]></category> <category><![CDATA[command prompt]]></category> <category><![CDATA[format]]></category> <guid
isPermaLink="false">http://www.techhack.co.uk/?p=156</guid> <description><![CDATA[In Windows I would normally be driven to either format a drive through the Disk Management console or by right-clicking on a drive in Windows Explorer and selecting the &#8220;Format&#8230;&#8221; option, but there can be advantages to formatting a driver through Command Prompt. For example if you are reformatting a drive which previously had an Operating System on the drive you can find there are System Partitions on the drive which can&#8217;t be seen in Windows Explorer and refuse to &#8230; <a
href="http://www.techhack.co.uk/2011/03/31/format-a-hard-drive-with-command-prompt/">Continue reading <span
class="meta-nav">&#8594;</span></a>]]></description> <content:encoded><![CDATA[<p>In Windows I would normally be driven to either format a drive through the Disk Management console or by right-clicking on a drive in Windows Explorer and selecting the &#8220;Format&#8230;&#8221; option, but there can be advantages to formatting a driver through Command Prompt. For example if you are reformatting a drive which previously had an Operating System on the drive you can find there are System Partitions on the drive which can&#8217;t be seen in Windows Explorer and refuse to format in the Disk Management console.</p><p>Note this is only a quick guide for Formatting Drives from Command Line, there are many more options available at your disposal. For a detailed insight to the options available for the DiskPart tool visit <a
title="DiskPart Command-Line Options" href="http://technet.microsoft.com/en-us/library/cc766465%28WS.10%29.aspx" target="_blank">Microsofts Technet</a>. In the example I have formatted an external hard drive for use of file storage in a Windows Operating System environment.</p><p>In order to format a drive through Command Prompt firstly lets open the prompt.</p><p>Click Start &gt; Run and type &#8220;CMD&#8221;, pressing Enter should open a new terminal.</p><div
id="attachment_161" class="wp-caption alignnone" style="width: 443px"><img
class="size-full wp-image-161" title="Start CMD" src="http://www.techhack.co.uk/wp-content/uploads/2011/03/start_cmd.jpg" alt="Start CMD" width="433" height="280" /><p
class="wp-caption-text">Start CMD</p></div><p>&nbsp;</p><p>We need to next start the Disk Part tool, type &#8220;DISK PART&#8221; into the Command Line and press Enter.</p><div
id="attachment_174" class="wp-caption alignnone" style="width: 690px"><img
class="size-full wp-image-174" title="Start Disk Part" src="http://www.techhack.co.uk/wp-content/uploads/2011/03/start_disc_part.jpg" alt="Start Disk Part" width="680" height="166" /><p
class="wp-caption-text">Start Disk Part</p></div><p>&nbsp;</p><p>Next let&#8217;s display and identify which volume we would like to format. Type &#8220;list volume&#8221; and press Enter. You should see a list of available volumes. Identify the one which you wish to format, be careful selecting the wrong volume will spell disaster!</p><div
id="attachment_177" class="wp-caption alignnone" style="width: 691px"><img
class="size-full wp-image-177" title="List Volume" src="http://www.techhack.co.uk/wp-content/uploads/2011/03/list_volume.jpg" alt="List Volume" width="681" height="315" /><p
class="wp-caption-text">List Volume</p></div><p>&nbsp;</p><p>Type &#8220;select volume &lt;x&gt;&#8221; and press Enter, where &lt;x&gt; is the volume you wish to focus on.</p><div
id="attachment_179" class="wp-caption alignnone" style="width: 689px"><img
class="size-full wp-image-179" title="Select Volume" src="http://www.techhack.co.uk/wp-content/uploads/2011/03/select_volume.jpg" alt="Select Volume" width="679" height="345" /><p
class="wp-caption-text">Select Volume</p></div><p>&nbsp;</p><p>Type &#8220;clean&#8221; and press Enter. This removes any and all partition or volume formatting from the disk in focus.</p><div
id="attachment_180" class="wp-caption alignnone" style="width: 693px"><img
class="size-full wp-image-180" title="Clean" src="http://www.techhack.co.uk/wp-content/uploads/2011/03/clean.jpg" alt="Clean" width="683" height="344" /><p
class="wp-caption-text">Clean</p></div><p>&nbsp;</p><p>Type &#8220;create partition primary&#8221; and press Enter. This creates a primary partition on the current disk. After you create  the partition, the focus automatically shifts to the new partition. It is possible to create multiple partitions if you like. To do this you would add the option size=&lt;x&gt; where &lt;x&gt; is the size in megabytes (MB) you would like the partition to be. If no size is specified, like in my example, the partition continues until there is no more unallocated space.</p><div
id="attachment_181" class="wp-caption alignnone" style="width: 690px"><img
class="size-full wp-image-181" title="Create Partition" src="http://www.techhack.co.uk/wp-content/uploads/2011/03/create_partition.jpg" alt="Create Partition" width="680" height="348" /><p
class="wp-caption-text">Create Partition</p></div><p>&nbsp;</p><p>Type &#8220;format fs=ntfs quick label=test&#8221; and press Enter. This will now perform a quick format, using a ntfs file system and labelling the drive &#8220;test&#8221;. You may wish to use the file system fat32 in place of ntfs if you would like to use the drive with other operating systems.</p><div
id="attachment_182" class="wp-caption alignnone" style="width: 688px"><img
class="size-full wp-image-182" title="Format" src="http://www.techhack.co.uk/wp-content/uploads/2011/03/format.jpg" alt="Format" width="678" height="345" /><p
class="wp-caption-text">Format</p></div><p>&nbsp;</p><p>Lastly type &#8220;assign letter &lt;x&gt;&#8221; and press Enter, where &lt;x&gt; is the letter you would like to assign the drive.</p><div
id="attachment_183" class="wp-caption alignnone" style="width: 692px"><img
class="size-full wp-image-183" title="Assign Drive Letter" src="http://www.techhack.co.uk/wp-content/uploads/2011/03/assign_drive_letter.jpg" alt="Assign Drive Letter" width="682" height="347" /><p
class="wp-caption-text">Assign Drive Letter</p></div><p>You can close the Disk Part tool and Command Prompt using the &#8220;exit&#8221; command. You should now see your freshly formatted drive in My Computer, ready to use.</p> ]]></content:encoded> <wfw:commentRss>http://www.techhack.co.uk/2011/03/31/format-a-hard-drive-with-command-prompt/feed/</wfw:commentRss> <slash:comments>0</slash:comments> </item> </channel> </rss>
