<?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"
	>

<channel>
	<title>Just answer the F*#king question &#187; Windows</title>
	<atom:link href="http://www.jatfq.com/archives/category/usefull-stuff/windows/feed" rel="self" type="application/rss+xml" />
	<link>http://www.jatfq.com</link>
	<description>Saving the world from dicks with forum logins ...</description>
	<pubDate>Mon, 03 Nov 2008 17:18:18 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.6</generator>
	<language>en</language>
			<item>
		<title>Black screen when playing all video in Windows</title>
		<link>http://www.jatfq.com/archives/55</link>
		<comments>http://www.jatfq.com/archives/55#comments</comments>
		<pubDate>Thu, 04 Sep 2008 19:00:30 +0000</pubDate>
		<dc:creator>Sime</dc:creator>
		
		<category><![CDATA[Windows]]></category>

		<guid isPermaLink="false">http://www.jatfq.com/?p=55</guid>
		<description><![CDATA[So, the other night I decided to clean up my PC and install XP Service pack 3, update my ATI drivers etc etc.
After the reboot, went to play some of my videos, only to find the video display to be black. Audio was fine, everything looked dandy. VLC, Media Player, Nero all refused to show [...]]]></description>
			<content:encoded><![CDATA[<p>So, the other night I decided to clean up my PC and install XP Service pack 3, update my ATI drivers etc etc.</p>
<p>After the reboot, went to play some of my videos, only to find the video display to be black. Audio was fine, everything looked dandy. VLC, Media Player, Nero all refused to show the video.</p>
<p>Doubling checking the codecs, everything looked fine.</p>
<p>The solution - in the back of my head I remembered settings in the Catalyst Control Center. Look under VIDEO and then BASIC color. For some reason, USE APPLICATION SETTINGS was unchecked, and the brightness turned down to zero. I still can&#8217;t set it back up higher, but checking the USE APPLICATION SETTING box fixes the issue.</p>

<span class="slashdigglicious">
<a href="http://slashdot.org/bookmark.pl?url=http%3A%2F%2Fwww.jatfq.com%2Farchives%2F55&amp;title=Black+screen+when+playing+all+video+in+Windows" title="Slashdot It!"><img src="http://slashdot.org/favicon.ico" height="16" width="16" alt="[Slashdot]" /></a>
<a href="http://digg.com/submit?phase=2&amp;url=http%3A%2F%2Fwww.jatfq.com%2Farchives%2F55&amp;title=Black+screen+when+playing+all+video+in+Windows" title="Digg This Story"><img src="http://digg.com/favicon.ico" width="16" height="16" alt="[Digg]" /></a>
<a href="http://reddit.com/submit?url=http%3A%2F%2Fwww.jatfq.com%2Farchives%2F55&amp;title=Black+screen+when+playing+all+video+in+Windows" title="Reddit"><img src="http://reddit.com/favicon.ico" width="16" height="16" alt="[Reddit]" /></a>
<a href="http://del.icio.us/post?url=http%3A%2F%2Fwww.jatfq.com%2Farchives%2F55&amp;title=Black+screen+when+playing+all+video+in+Windows" title="Save to del.icio.us" onclick="window.open('http://del.icio.us/post?v=4&amp;noui&amp;jump=close&amp;url=http%3A%2F%2Fwww.jatfq.com%2Farchives%2F55&amp;title=Black+screen+when+playing+all+video+in+Windows', 'delicious', 'toolbar=no,width=700,height=400'); return false;"><img src="http://del.icio.us/favicon.ico" width="16" height="16" alt="[del.icio.us]" /></a>
<a href="http://www.facebook.com/share.php?u=http%3A%2F%2Fwww.jatfq.com%2Farchives%2F55" title="Share on Facebook"><img src="http://www.facebook.com/favicon.ico" width="16" height="16" alt="[Facebook]" /></a>
<a href="http://www.google.com/bookmarks/mark?op=edit&amp;output=popup&amp;bkmk=http%3A%2F%2Fwww.jatfq.com%2Farchives%2F55&amp;title=Black+screen+when+playing+all+video+in+Windows" title="Save to Google Bookmarks"><img src="http://www.google.com/favicon.ico" width="16" height="16" alt="[Google]" /></a>
<a href="http://www.stumbleupon.com/submit?url=http%3A%2F%2Fwww.jatfq.com%2Farchives%2F55&amp;title=Black+screen+when+playing+all+video+in+Windows" title="Stumble it!"><img src="/icon_stumbleupon.gif" width="16" height="16" alt="[StumbleUpon]" /></a>
</span>]]></content:encoded>
			<wfw:commentRss>http://www.jatfq.com/archives/55/feed</wfw:commentRss>
		</item>
		<item>
		<title>IP reported as 0.0.0.0 in Apache access log</title>
		<link>http://www.jatfq.com/archives/16</link>
		<comments>http://www.jatfq.com/archives/16#comments</comments>
		<pubDate>Tue, 30 Oct 2007 23:33:56 +0000</pubDate>
		<dc:creator>Sime</dc:creator>
		
		<category><![CDATA[Windows]]></category>

		<guid isPermaLink="false">http://www.jatfq.com/archives/16</guid>
		<description><![CDATA[If you are running Apache on a Windows 2000 server, and notice your access logs are coming up with 0.0.0.0 IP addresses
0.0.0.0 - - [30/Oct/2007:19:29:11 -0400] &#8220;GET /ad_images/siam.gif HTTP/1.1&#8243; 304 -
or similar, in your WordPress install posts are coming from a 0.0.0.0 IP, check your httpd.conf, and add the following line:
Win32DisableAcceptEx 
at the top of [...]]]></description>
			<content:encoded><![CDATA[<p>If you are running Apache on a Windows 2000 server, and notice your access logs are coming up with 0.0.0.0 IP addresses</p>
<p><code>0.0.0.0 - - [30/Oct/2007:19:29:11 -0400] &#8220;GET /ad_images/siam.gif HTTP/1.1&#8243; 304 -</code></p>
<p>or similar, in your WordPress install posts are coming from a 0.0.0.0 IP, check your httpd.conf, and add the following line:</p>
<p><code>Win32DisableAcceptEx </code></p>
<p>at the top of the file. Restart Apache and your should be ok!</p>

<span class="slashdigglicious">
<a href="http://slashdot.org/bookmark.pl?url=http%3A%2F%2Fwww.jatfq.com%2Farchives%2F16&amp;title=IP+reported+as+0.0.0.0+in+Apache+access+log" title="Slashdot It!"><img src="http://slashdot.org/favicon.ico" height="16" width="16" alt="[Slashdot]" /></a>
<a href="http://digg.com/submit?phase=2&amp;url=http%3A%2F%2Fwww.jatfq.com%2Farchives%2F16&amp;title=IP+reported+as+0.0.0.0+in+Apache+access+log" title="Digg This Story"><img src="http://digg.com/favicon.ico" width="16" height="16" alt="[Digg]" /></a>
<a href="http://reddit.com/submit?url=http%3A%2F%2Fwww.jatfq.com%2Farchives%2F16&amp;title=IP+reported+as+0.0.0.0+in+Apache+access+log" title="Reddit"><img src="http://reddit.com/favicon.ico" width="16" height="16" alt="[Reddit]" /></a>
<a href="http://del.icio.us/post?url=http%3A%2F%2Fwww.jatfq.com%2Farchives%2F16&amp;title=IP+reported+as+0.0.0.0+in+Apache+access+log" title="Save to del.icio.us" onclick="window.open('http://del.icio.us/post?v=4&amp;noui&amp;jump=close&amp;url=http%3A%2F%2Fwww.jatfq.com%2Farchives%2F16&amp;title=IP+reported+as+0.0.0.0+in+Apache+access+log', 'delicious', 'toolbar=no,width=700,height=400'); return false;"><img src="http://del.icio.us/favicon.ico" width="16" height="16" alt="[del.icio.us]" /></a>
<a href="http://www.facebook.com/share.php?u=http%3A%2F%2Fwww.jatfq.com%2Farchives%2F16" title="Share on Facebook"><img src="http://www.facebook.com/favicon.ico" width="16" height="16" alt="[Facebook]" /></a>
<a href="http://www.google.com/bookmarks/mark?op=edit&amp;output=popup&amp;bkmk=http%3A%2F%2Fwww.jatfq.com%2Farchives%2F16&amp;title=IP+reported+as+0.0.0.0+in+Apache+access+log" title="Save to Google Bookmarks"><img src="http://www.google.com/favicon.ico" width="16" height="16" alt="[Google]" /></a>
<a href="http://www.stumbleupon.com/submit?url=http%3A%2F%2Fwww.jatfq.com%2Farchives%2F16&amp;title=IP+reported+as+0.0.0.0+in+Apache+access+log" title="Stumble it!"><img src="/icon_stumbleupon.gif" width="16" height="16" alt="[StumbleUpon]" /></a>
</span>]]></content:encoded>
			<wfw:commentRss>http://www.jatfq.com/archives/16/feed</wfw:commentRss>
		</item>
		<item>
		<title>Reseting your disks from PIO to DMA</title>
		<link>http://www.jatfq.com/archives/15</link>
		<comments>http://www.jatfq.com/archives/15#comments</comments>
		<pubDate>Fri, 26 Oct 2007 17:32:28 +0000</pubDate>
		<dc:creator>Sime</dc:creator>
		
		<category><![CDATA[Windows]]></category>

		<guid isPermaLink="false">http://www.jatfq.com/archives/15</guid>
		<description><![CDATA[If you are having issues with your PC, noticeable by your Media player crapping out whenever your Hard Disk or CD/DVD is accessed or by your mouse sticking, check this piece of VBscript that resets your devices from PIO ( software ) mode to DMA ( hardware ). Sometimes windows will switch over to software [...]]]></description>
			<content:encoded><![CDATA[<p>If you are having issues with your PC, noticeable by your Media player crapping out whenever your Hard Disk or CD/DVD is accessed or by your mouse sticking, check this piece of VBscript that resets your devices from PIO ( software ) mode to DMA ( hardware ). Sometimes windows will switch over to software mode without even telling you ( thats nice ) and this will detect and reset those settings.</p>
<p>For the original script check it out <a href="http://winhlp.com/node/10">here</a></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
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
</pre></td><td class="code"><pre class="vb"><span style="color: #808080;">' Visual Basic Script program to reset the DMA status of all ATA drives</span>
&nbsp;
<span style="color: #808080;">' Copyright © 2006 Hans-Georg Michna</span>
&nbsp;
<span style="color: #808080;">' Version 2007-04-04</span>
&nbsp;
<span style="color: #808080;">' Works in Windows XP, probably also in Windows 2000 and NT.</span>
<span style="color: #808080;">' Does no harm if Windows version is incompatible.</span>
&nbsp;
<span style="color: #b1b100;">If</span> <span style="color: #b1b100;">MsgBox</span><span style="color: #66cc66;">&#40;</span><span style="color: #ff0000;">&quot;This program will now reset the DMA&quot;</span>_
  &amp; <span style="color: #ff0000;">&quot; status of all ATA drives with Windows drivers.&quot;</span> _
  &amp; <span style="color: #b1b100;">vbNewline</span> &amp; <span style="color: #ff0000;">&quot;Windows will redetect the status after &quot;</span>_
  &amp; <span style="color: #ff0000;">&quot;the next reboot, therefore this procedure&quot;</span> _
  &amp; <span style="color: #b1b100;">vbNewline</span> &amp; <span style="color: #ff0000;">&quot;should be harmless.&quot;</span>, _
    <span style="color: #b1b100;">vbOkCancel</span>, <span style="color: #ff0000;">&quot;Program start message&quot;</span><span style="color: #66cc66;">&#41;</span> _
  = <span style="color: #b1b100;">vbOk</span> <span style="color: #b1b100;">Then</span>
&nbsp;
RegPath = <span style="color: #ff0000;">&quot;HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\&quot;</span>_
  &amp; <span style="color: #ff0000;">&quot;Control\Class\{4D36E96A-E325-11CE-BFC1-08002BE10318}\&quot;</span>
ValueName1Master = <span style="color: #ff0000;">&quot;MasterIdDataChecksum&quot;</span>
ValueName1Slave = <span style="color: #ff0000;">&quot;SlaveIdDataChecksum&quot;</span>
ValueName2Master = <span style="color: #ff0000;">&quot;UserMasterDeviceTimingModeAllowed&quot;</span>
ValueName2Slave = <span style="color: #ff0000;">&quot;UserSlaveDeviceTimingModeAllowed&quot;</span>
ValueName3 = <span style="color: #ff0000;">&quot;ResetErrorCountersOnSuccess&quot;</span>
MessageText = <span style="color: #ff0000;">&quot;The following ATA channels have been reset:&quot;</span>
MessageTextLen0 = <span style="color: #b1b100;">Len</span><span style="color: #66cc66;">&#40;</span>MessageText<span style="color: #66cc66;">&#41;</span>
ConsecutiveMisses = <span style="color: #cc66cc;">0</span>
<span style="color: #b1b100;">Set</span> WshShell = WScript.<span style="color: #b1b100;">CreateObject</span><span style="color: #66cc66;">&#40;</span><span style="color: #ff0000;">&quot;WScript.Shell&quot;</span><span style="color: #66cc66;">&#41;</span>
&nbsp;
<span style="color: #b1b100;">For</span> i = <span style="color: #cc66cc;">0</span> <span style="color: #b1b100;">to</span> <span style="color: #cc66cc;">999</span>
  RegSubPath = <span style="color: #b1b100;">Right</span><span style="color: #66cc66;">&#40;</span><span style="color: #ff0000;">&quot;000&quot;</span> &amp; i, <span style="color: #cc66cc;">4</span><span style="color: #66cc66;">&#41;</span> &amp; <span style="color: #ff0000;">&quot;\&quot;</span>
&nbsp;
  <span style="color: #808080;">' Master</span>
&nbsp;
  <span style="color: #b1b100;">Err</span>.<span style="color: #66cc66;">Clear</span>
  <span style="color: #b1b100;">On</span> <span style="color: #b1b100;">Error</span> <span style="color: #b1b100;">Resume</span> <span style="color: #b1b100;">Next</span>
  WshShell.<span style="color: #66cc66;">RegRead</span> RegPath &amp; RegSubPath &amp; ValueName1Master
  errMaster = <span style="color: #b1b100;">Err</span>.<span style="color: #66cc66;">Number</span>
  <span style="color: #b1b100;">On</span> <span style="color: #b1b100;">Error</span> <span style="color: #b1b100;">Goto</span> <span style="color: #cc66cc;">0</span>
  <span style="color: #b1b100;">If</span> errMaster = <span style="color: #cc66cc;">0</span> <span style="color: #b1b100;">Then</span>
    <span style="color: #b1b100;">On</span> <span style="color: #b1b100;">Error</span> <span style="color: #b1b100;">Resume</span> <span style="color: #b1b100;">Next</span>
    WshShell.<span style="color: #66cc66;">RegDelete</span> RegPath &amp; RegSubPath &amp; ValueName1Master
    WshShell.<span style="color: #66cc66;">RegDelete</span> RegPath &amp; RegSubPath &amp; ValueName2Master
    <span style="color: #b1b100;">On</span> <span style="color: #b1b100;">Error</span> <span style="color: #b1b100;">Goto</span> <span style="color: #cc66cc;">0</span>
    MessageText = MessageText &amp; <span style="color: #b1b100;">vbNewLine</span> &amp; <span style="color: #ff0000;">&quot;Master&quot;</span>
  <span style="color: #b1b100;">End</span> <span style="color: #b1b100;">If</span>
&nbsp;
  <span style="color: #808080;">' Slave</span>
&nbsp;
  <span style="color: #b1b100;">Err</span>.<span style="color: #66cc66;">Clear</span>
  <span style="color: #b1b100;">On</span> <span style="color: #b1b100;">Error</span> <span style="color: #b1b100;">Resume</span> <span style="color: #b1b100;">Next</span>
  WshShell.<span style="color: #66cc66;">RegRead</span> RegPath &amp; RegSubPath &amp; ValueName1Slave
  errSlave = <span style="color: #b1b100;">Err</span>.<span style="color: #66cc66;">Number</span>
  <span style="color: #b1b100;">On</span> <span style="color: #b1b100;">Error</span> <span style="color: #b1b100;">Goto</span> <span style="color: #cc66cc;">0</span>
  <span style="color: #b1b100;">If</span> errSlave = <span style="color: #cc66cc;">0</span> <span style="color: #b1b100;">Then</span>
    <span style="color: #b1b100;">On</span> <span style="color: #b1b100;">Error</span> <span style="color: #b1b100;">Resume</span> <span style="color: #b1b100;">Next</span>
    WshShell.<span style="color: #66cc66;">RegDelete</span> RegPath &amp; RegSubPath &amp; ValueName1Slave
    WshShell.<span style="color: #66cc66;">RegDelete</span> RegPath &amp; RegSubPath &amp; ValueName2Slave
    <span style="color: #b1b100;">On</span> <span style="color: #b1b100;">Error</span> <span style="color: #b1b100;">Goto</span> <span style="color: #cc66cc;">0</span>
    <span style="color: #b1b100;">If</span> errMaster = <span style="color: #cc66cc;">0</span> <span style="color: #b1b100;">Then</span>
      MessageText = MessageText &amp; <span style="color: #ff0000;">&quot; and &quot;</span>
    <span style="color: #b1b100;">Else</span>
      MessageText = MessageText &amp; <span style="color: #b1b100;">vbNewLine</span>
    <span style="color: #b1b100;">End</span> <span style="color: #b1b100;">If</span>
    MessageText = MessageText &amp; <span style="color: #ff0000;">&quot;Slave&quot;</span>
  <span style="color: #b1b100;">End</span> <span style="color: #b1b100;">If</span>
&nbsp;
  <span style="color: #b1b100;">If</span> errMaster = <span style="color: #cc66cc;">0</span> <span style="color: #b1b100;">Or</span> errSlave = <span style="color: #cc66cc;">0</span> <span style="color: #b1b100;">Then</span>
    <span style="color: #b1b100;">On</span> <span style="color: #b1b100;">Error</span> <span style="color: #b1b100;">Resume</span> <span style="color: #b1b100;">Next</span>
    WshShell.<span style="color: #66cc66;">RegWrite</span> RegPath &amp; RegSubPath &amp; ValueName3, <span style="color: #cc66cc;">1</span>, <span style="color: #ff0000;">&quot;REG_DWORD&quot;</span>
    <span style="color: #b1b100;">On</span> <span style="color: #b1b100;">Error</span> <span style="color: #b1b100;">Goto</span> <span style="color: #cc66cc;">0</span>
    ChannelName = <span style="color: #ff0000;">&quot;unnamed channel &quot;</span> &amp; <span style="color: #b1b100;">Left</span><span style="color: #66cc66;">&#40;</span>RegSubPath, <span style="color: #cc66cc;">4</span><span style="color: #66cc66;">&#41;</span>
    <span style="color: #b1b100;">On</span> <span style="color: #b1b100;">Error</span> <span style="color: #b1b100;">Resume</span> <span style="color: #b1b100;">Next</span>
    ChannelName = WshShell.<span style="color: #66cc66;">RegRead</span><span style="color: #66cc66;">&#40;</span>RegPath &amp; RegSubPath &amp; <span style="color: #ff0000;">&quot;DriverDesc&quot;</span><span style="color: #66cc66;">&#41;</span>
    <span style="color: #b1b100;">On</span> <span style="color: #b1b100;">Error</span> <span style="color: #b1b100;">Goto</span> <span style="color: #cc66cc;">0</span>
    MessageText = MessageText &amp; <span style="color: #ff0000;">&quot; of &quot;</span> &amp; ChannelName &amp; <span style="color: #ff0000;">&quot;;&quot;</span>
    ConsecutiveMisses = <span style="color: #cc66cc;">0</span>
  <span style="color: #b1b100;">Else</span>
    ConsecutiveMisses = ConsecutiveMisses + <span style="color: #cc66cc;">1</span>
    <span style="color: #b1b100;">If</span> ConsecutiveMisses &gt;= <span style="color: #cc66cc;">32</span> <span style="color: #b1b100;">Then</span> <span style="color: #b1b100;">Exit</span> <span style="color: #b1b100;">For</span> <span style="color: #808080;">' Don't search unnecessarily long.</span>
  <span style="color: #b1b100;">End</span> <span style="color: #b1b100;">If</span>
<span style="color: #b1b100;">Next</span> <span style="color: #808080;">' i</span>
&nbsp;
<span style="color: #b1b100;">If</span> <span style="color: #b1b100;">Len</span><span style="color: #66cc66;">&#40;</span>MessageText<span style="color: #66cc66;">&#41;</span> &lt;= MessageTextLen0 <span style="color: #b1b100;">Then</span>
  MessageText = <span style="color: #ff0000;">&quot;No resettable ATA channels with &quot;</span>_
     &amp; <span style="color: #ff0000;">&quot;Windows drivers found. Nothing changed.&quot;</span>
<span style="color: #b1b100;">Else</span>
  MessageText = MessageText &amp; <span style="color: #b1b100;">vbNewline</span> _
    &amp; <span style="color: #ff0000;">&quot;Please reboot now to reset and redetect the DMA status.&quot;</span>
<span style="color: #b1b100;">End</span> <span style="color: #b1b100;">If</span>
&nbsp;
<span style="color: #b1b100;">MsgBox</span> MessageText, <span style="color: #b1b100;">vbOkOnly</span>, <span style="color: #ff0000;">&quot;Program finished normally&quot;</span>
&nbsp;
<span style="color: #b1b100;">End</span> <span style="color: #b1b100;">If</span> <span style="color: #808080;">' MsgBox(...) = vbOk</span>
&nbsp;
<span style="color: #808080;">' End of Visual Basic Script program</span></pre></td></tr></table></div>


<span class="slashdigglicious">
<a href="http://slashdot.org/bookmark.pl?url=http%3A%2F%2Fwww.jatfq.com%2Farchives%2F15&amp;title=Reseting+your+disks+from+PIO+to+DMA" title="Slashdot It!"><img src="http://slashdot.org/favicon.ico" height="16" width="16" alt="[Slashdot]" /></a>
<a href="http://digg.com/submit?phase=2&amp;url=http%3A%2F%2Fwww.jatfq.com%2Farchives%2F15&amp;title=Reseting+your+disks+from+PIO+to+DMA" title="Digg This Story"><img src="http://digg.com/favicon.ico" width="16" height="16" alt="[Digg]" /></a>
<a href="http://reddit.com/submit?url=http%3A%2F%2Fwww.jatfq.com%2Farchives%2F15&amp;title=Reseting+your+disks+from+PIO+to+DMA" title="Reddit"><img src="http://reddit.com/favicon.ico" width="16" height="16" alt="[Reddit]" /></a>
<a href="http://del.icio.us/post?url=http%3A%2F%2Fwww.jatfq.com%2Farchives%2F15&amp;title=Reseting+your+disks+from+PIO+to+DMA" title="Save to del.icio.us" onclick="window.open('http://del.icio.us/post?v=4&amp;noui&amp;jump=close&amp;url=http%3A%2F%2Fwww.jatfq.com%2Farchives%2F15&amp;title=Reseting+your+disks+from+PIO+to+DMA', 'delicious', 'toolbar=no,width=700,height=400'); return false;"><img src="http://del.icio.us/favicon.ico" width="16" height="16" alt="[del.icio.us]" /></a>
<a href="http://www.facebook.com/share.php?u=http%3A%2F%2Fwww.jatfq.com%2Farchives%2F15" title="Share on Facebook"><img src="http://www.facebook.com/favicon.ico" width="16" height="16" alt="[Facebook]" /></a>
<a href="http://www.google.com/bookmarks/mark?op=edit&amp;output=popup&amp;bkmk=http%3A%2F%2Fwww.jatfq.com%2Farchives%2F15&amp;title=Reseting+your+disks+from+PIO+to+DMA" title="Save to Google Bookmarks"><img src="http://www.google.com/favicon.ico" width="16" height="16" alt="[Google]" /></a>
<a href="http://www.stumbleupon.com/submit?url=http%3A%2F%2Fwww.jatfq.com%2Farchives%2F15&amp;title=Reseting+your+disks+from+PIO+to+DMA" title="Stumble it!"><img src="/icon_stumbleupon.gif" width="16" height="16" alt="[StumbleUpon]" /></a>
</span>]]></content:encoded>
			<wfw:commentRss>http://www.jatfq.com/archives/15/feed</wfw:commentRss>
		</item>
		<item>
		<title>Windows Process Monitor</title>
		<link>http://www.jatfq.com/archives/12</link>
		<comments>http://www.jatfq.com/archives/12#comments</comments>
		<pubDate>Tue, 16 Oct 2007 15:09:07 +0000</pubDate>
		<dc:creator>Sime</dc:creator>
		
		<category><![CDATA[Windows]]></category>

		<guid isPermaLink="false">http://www.jatfq.com/archives/12</guid>
		<description><![CDATA[Haven&#8217;t seen much of this, but this can be really handy for detecting vermin and seeing what the hell is going on with your windows machine
http://www.microsoft.com/technet/sysinternals/utilities/processmonitor.mspx
Wanna see why your harddrive is getting trashed? Need to see what Netbeans is upto? This shows all file and I/O access on your machine, think of it as Etheral [...]]]></description>
			<content:encoded><![CDATA[<p>Haven&#8217;t seen much of this, but this can be really handy for detecting vermin and seeing what the hell is going on with your windows machine</p>
<p><a href="http://www.microsoft.com/technet/sysinternals/utilities/processmonitor.mspx">http://www.microsoft.com/technet/sysinternals/utilities/processmonitor.mspx</a></p>
<p>Wanna see why your harddrive is getting trashed? Need to see what Netbeans is upto? This shows all file and I/O access on your machine, think of it as Etheral for processes. Great tool, and free.</p>
<p>The only caveat, tends to reboot your machine if you have a lot of stuff going on.</p>

<span class="slashdigglicious">
<a href="http://slashdot.org/bookmark.pl?url=http%3A%2F%2Fwww.jatfq.com%2Farchives%2F12&amp;title=Windows+Process+Monitor" title="Slashdot It!"><img src="http://slashdot.org/favicon.ico" height="16" width="16" alt="[Slashdot]" /></a>
<a href="http://digg.com/submit?phase=2&amp;url=http%3A%2F%2Fwww.jatfq.com%2Farchives%2F12&amp;title=Windows+Process+Monitor" title="Digg This Story"><img src="http://digg.com/favicon.ico" width="16" height="16" alt="[Digg]" /></a>
<a href="http://reddit.com/submit?url=http%3A%2F%2Fwww.jatfq.com%2Farchives%2F12&amp;title=Windows+Process+Monitor" title="Reddit"><img src="http://reddit.com/favicon.ico" width="16" height="16" alt="[Reddit]" /></a>
<a href="http://del.icio.us/post?url=http%3A%2F%2Fwww.jatfq.com%2Farchives%2F12&amp;title=Windows+Process+Monitor" title="Save to del.icio.us" onclick="window.open('http://del.icio.us/post?v=4&amp;noui&amp;jump=close&amp;url=http%3A%2F%2Fwww.jatfq.com%2Farchives%2F12&amp;title=Windows+Process+Monitor', 'delicious', 'toolbar=no,width=700,height=400'); return false;"><img src="http://del.icio.us/favicon.ico" width="16" height="16" alt="[del.icio.us]" /></a>
<a href="http://www.facebook.com/share.php?u=http%3A%2F%2Fwww.jatfq.com%2Farchives%2F12" title="Share on Facebook"><img src="http://www.facebook.com/favicon.ico" width="16" height="16" alt="[Facebook]" /></a>
<a href="http://www.google.com/bookmarks/mark?op=edit&amp;output=popup&amp;bkmk=http%3A%2F%2Fwww.jatfq.com%2Farchives%2F12&amp;title=Windows+Process+Monitor" title="Save to Google Bookmarks"><img src="http://www.google.com/favicon.ico" width="16" height="16" alt="[Google]" /></a>
<a href="http://www.stumbleupon.com/submit?url=http%3A%2F%2Fwww.jatfq.com%2Farchives%2F12&amp;title=Windows+Process+Monitor" title="Stumble it!"><img src="/icon_stumbleupon.gif" width="16" height="16" alt="[StumbleUpon]" /></a>
</span>]]></content:encoded>
			<wfw:commentRss>http://www.jatfq.com/archives/12/feed</wfw:commentRss>
		</item>
		<item>
		<title>Capturing websites to an image</title>
		<link>http://www.jatfq.com/archives/11</link>
		<comments>http://www.jatfq.com/archives/11#comments</comments>
		<pubDate>Fri, 21 Sep 2007 22:08:26 +0000</pubDate>
		<dc:creator>Sime</dc:creator>
		
		<category><![CDATA[PHP]]></category>

		<category><![CDATA[Windows]]></category>

		<guid isPermaLink="false">http://www.jatfq.com/archives/11</guid>
		<description><![CDATA[This is a &#8220;thinking outside the box&#8221; way to automatically snap a website and save it to a JPG.  It uses webswoon, a great little app, a little buggy here and there but it does the job.
You will need:
Webswoon
Apache + PHP ( Note: Apache MUST be running as a standalone, not as a service [...]]]></description>
			<content:encoded><![CDATA[<p>This is a &#8220;thinking outside the box&#8221; way to automatically snap a website and save it to a JPG.  It uses <a href="http://www.alcenia.com/webswoon/">webswoon</a>, a great little app, a little buggy here and there but it does the job.</p>
<p><strong>You will need:</strong><br />
Webswoon<br />
Apache + PHP ( Note: Apache MUST be running as a standalone, not as a service )<br />
A Windows Machine to run it on ( oh stop crying ) - I use an old PIII with Windows 2000 installed.</p>
<p>Right, I&#8217;m gonna assume everything is installed.  Are you asking me why Apache must be running standalone? Because webswoon is actually a wrapper for the IE ActiveX object ( or something like that ). For IE to run it need a desktop to run on with color depth and all those funky things. Services don&#8217;t have a desktop, so IE can&#8217;t run. There may be a way around it, frankly I haven&#8217;t the time to make it work.</p>
<p>Now configure webswoon:</p>
<p><code>openbrowserwindow=0<br />
thumbnailwidth=150<br />
thumbnailheight=110<br />
browserwidth=850<br />
browserheight=640<br />
waitdelay=2<br />
updatecaptures=0<br />
updatedays=60<br />
updatehours=0<br />
updatemins=0<br />
exportfolder=C:\Program Files\Apache Group\Apache2\htdocs\captures<br />
capturefilenameformat=%z.%e<br />
ignoreurl=<br />
imageformat=JPG<br />
timeoutdelay=13<br />
deletecaptures=0<br />
removeborder=1<br />
loopmode=0<br />
loopdelay=60<br />
jpegcompression=80<br />
automode=0<br />
showbrowsererror=0<br />
language=en<br />
disablejavascript=1<br />
resizecapture=1<br />
cropmethod=1<br />
keepmargins=1<br />
blankmargin=20<br />
canvawidth=1200<br />
canvaheight=6000</code></p>
<p>&#8220;exportfolder&#8221; does not really matter as we override that later. You can play with the other settings, have at them.</p>
<p>Now, we create a batch file, somewhere that Apache can get hold of it:</p>
<p><code>cd "{path to webswoon}"<br />
"{path to webswoon}\webswoon_console" -f %1 -o "{where ur captures are going}"</code></p>
<p>Fill out the curly brackets with your own paths, and save as capture.bat</p>
<p>Now the PHP file thusly:</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
</pre></td><td class="code"><pre class="php"><span style="color: #000066;">error_reporting</span><span style="color: #66cc66;">&#40;</span><span style="color: #cc66cc;">0</span><span style="color: #66cc66;">&#41;</span>;
&nbsp;
<span style="color: #808080; font-style: italic;">// Use ur frickin imagination here ...</span>
<span style="color: #0000ff;">$path</span> = <span style="color: #ff0000;">&quot;C:/Program Files/WebSwoon&quot;</span>;
&nbsp;
<span style="color: #0000ff;">$url</span> = <span style="color: #0000ff;">$HTTP_GET_VARS</span><span style="color: #66cc66;">&#91;</span><span style="color: #ff0000;">&quot;URL&quot;</span><span style="color: #66cc66;">&#93;</span>;
<span style="color: #b1b100;">if</span><span style="color: #66cc66;">&#40;</span><span style="color: #000066;">empty</span><span style="color: #66cc66;">&#40;</span><span style="color: #0000ff;">$url</span><span style="color: #66cc66;">&#41;</span><span style="color: #66cc66;">&#41;</span><span style="color: #b1b100;">return</span>;
<span style="color: #0000ff;">$filename</span> = <span style="color: #ff0000;">&quot;/lists/&quot;</span>.getmicrotime<span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span>.<span style="color: #ff0000;">&quot;.txt&quot;</span>;
<span style="color: #0000ff;">$file</span> = <span style="color: #000066;">fopen</span><span style="color: #66cc66;">&#40;</span><span style="color: #0000ff;">$path</span>.<span style="color: #0000ff;">$filename</span>,<span style="color: #ff0000;">&quot;w+&quot;</span><span style="color: #66cc66;">&#41;</span>;
<span style="color: #000066;">fputs</span><span style="color: #66cc66;">&#40;</span><span style="color: #0000ff;">$file</span>,<span style="color: #ff0000;">&quot;http://&quot;</span>.<span style="color: #0000ff;">$url</span>.<span style="color: #ff0000;">&quot;<span style="color: #000099; font-weight: bold;">\r</span><span style="color: #000099; font-weight: bold;">\n</span>&quot;</span><span style="color: #66cc66;">&#41;</span>;
<span style="color: #000066;">fclose</span><span style="color: #66cc66;">&#40;</span><span style="color: #0000ff;">$file</span><span style="color: #66cc66;">&#41;</span>;
&nbsp;
<span style="color: #808080; font-style: italic;">// Add the absolute path to your batch file</span>
<span style="color: #808080; font-style: italic;">// I just coded it here a c:\</span>
<span style="color: #0000ff;">$exec</span> = <span style="color: #ff0000;">&quot;c:<span style="color: #000099; font-weight: bold;">\c</span>apture.bat $filename&quot;</span>;
<span style="color: #0000ff;">$WshShell</span> = <span style="color: #000000; font-weight: bold;">new</span> COM<span style="color: #66cc66;">&#40;</span><span style="color: #ff0000;">&quot;WScript.Shell&quot;</span><span style="color: #66cc66;">&#41;</span>;
<span style="color: #0000ff;">$WshShell</span>-&gt;<span style="color: #006600;">Run</span><span style="color: #66cc66;">&#40;</span><span style="color: #ff0000;">&quot;$exec&quot;</span>, <span style="color: #cc66cc;">0</span>, <span style="color: #000000; font-weight: bold;">true</span><span style="color: #66cc66;">&#41;</span>;
<span style="color: #000066;">unlink</span><span style="color: #66cc66;">&#40;</span><span style="color: #0000ff;">$path</span>.<span style="color: #0000ff;">$filename</span><span style="color: #66cc66;">&#41;</span>;</pre></td></tr></table></div>

<p>This allows you to pass the URL ( without HTTP in this case ) as a parameter (&#8221;URL&#8221;) but you can do this many other ways, this is just the way I do it.</p>
<p>So, PHP comes along, creates a file, named with the current time in milliseconds and sets the contents to the URL we want to capture. This file normally has to be in the webswoon directory ( I put it in the &#8220;lists&#8221; subdirectory ). We then call our batch file to launch webswoon in command line mode, which will read the list of URLs and capture them to our output directory, with a filename of {MD5 filename}.jpg</p>
<p>Another note is that the PHP exec() function doesn&#8217;t work in this instance ( at least, it didn&#8217;t when I wrote the original code ), so we use a windows shell object ( essentially use Explorer to run the batch file )</p>
<p><code>$WshShell = new COM("WScript.Shell");<br />
$WshShell->Run("$exec", 0, true);</code></p>
<p>Webswoon will sometimes get stuck under it&#8217;s own feet. It is set to timeout after 15 seconds, but some pages will screw that up. So I have a scheduled job that runs a windows version of the unix KILL command thusly:</p>
<p><code>kill -f webswoon*</code></p>
<p>It runs every so often just to tidy things up.</p>
<p>Want to see a working example of all this stuff?</p>
<p><a href="http://convert.springheadmedia.com/webshot/index.php">http://convert.springheadmedia.com/webshot/index.php</a></p>

<span class="slashdigglicious">
<a href="http://slashdot.org/bookmark.pl?url=http%3A%2F%2Fwww.jatfq.com%2Farchives%2F11&amp;title=Capturing+websites+to+an+image" title="Slashdot It!"><img src="http://slashdot.org/favicon.ico" height="16" width="16" alt="[Slashdot]" /></a>
<a href="http://digg.com/submit?phase=2&amp;url=http%3A%2F%2Fwww.jatfq.com%2Farchives%2F11&amp;title=Capturing+websites+to+an+image" title="Digg This Story"><img src="http://digg.com/favicon.ico" width="16" height="16" alt="[Digg]" /></a>
<a href="http://reddit.com/submit?url=http%3A%2F%2Fwww.jatfq.com%2Farchives%2F11&amp;title=Capturing+websites+to+an+image" title="Reddit"><img src="http://reddit.com/favicon.ico" width="16" height="16" alt="[Reddit]" /></a>
<a href="http://del.icio.us/post?url=http%3A%2F%2Fwww.jatfq.com%2Farchives%2F11&amp;title=Capturing+websites+to+an+image" title="Save to del.icio.us" onclick="window.open('http://del.icio.us/post?v=4&amp;noui&amp;jump=close&amp;url=http%3A%2F%2Fwww.jatfq.com%2Farchives%2F11&amp;title=Capturing+websites+to+an+image', 'delicious', 'toolbar=no,width=700,height=400'); return false;"><img src="http://del.icio.us/favicon.ico" width="16" height="16" alt="[del.icio.us]" /></a>
<a href="http://www.facebook.com/share.php?u=http%3A%2F%2Fwww.jatfq.com%2Farchives%2F11" title="Share on Facebook"><img src="http://www.facebook.com/favicon.ico" width="16" height="16" alt="[Facebook]" /></a>
<a href="http://www.google.com/bookmarks/mark?op=edit&amp;output=popup&amp;bkmk=http%3A%2F%2Fwww.jatfq.com%2Farchives%2F11&amp;title=Capturing+websites+to+an+image" title="Save to Google Bookmarks"><img src="http://www.google.com/favicon.ico" width="16" height="16" alt="[Google]" /></a>
<a href="http://www.stumbleupon.com/submit?url=http%3A%2F%2Fwww.jatfq.com%2Farchives%2F11&amp;title=Capturing+websites+to+an+image" title="Stumble it!"><img src="/icon_stumbleupon.gif" width="16" height="16" alt="[StumbleUpon]" /></a>
</span>]]></content:encoded>
			<wfw:commentRss>http://www.jatfq.com/archives/11/feed</wfw:commentRss>
		</item>
	</channel>
</rss>
