<?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>Nefaria.com &#187; General</title>
	<atom:link href="http://nefaria.com/category/general/feed/" rel="self" type="application/rss+xml" />
	<link>http://nefaria.com</link>
	<description>☠ ☠ ☠ ☠ ☠ ☠</description>
	<lastBuildDate>Mon, 12 Mar 2012 14:03:40 +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>Windows 7 Printers &amp; 0x8007007E (The specified module could not be found) &#8230;</title>
		<link>http://nefaria.com/2012/03/windows-7-printers-0x8007007e-the-specified-module-could-not-be-found/</link>
		<comments>http://nefaria.com/2012/03/windows-7-printers-0x8007007e-the-specified-module-could-not-be-found/#comments</comments>
		<pubDate>Mon, 12 Mar 2012 13:41:19 +0000</pubDate>
		<dc:creator>musashi</dc:creator>
				<category><![CDATA[General]]></category>
		<category><![CDATA[I.T.]]></category>
		<category><![CDATA[HP]]></category>
		<category><![CDATA[printers]]></category>

		<guid isPermaLink="false">http://nefaria.com/?p=1031</guid>
		<description><![CDATA[So here&#8217;s the scenario: (1) A Windows Server 2003 (x86) print server (2) A bunch of HP printers using HP&#8217;s universal driver &#8212; specifically, the PCL5 driver. All printers are connected to the aforementioned server via the network. (3) A bunch of Windows 7 Pro x64 clients with the aforementioned PCL5 driver installed. Problem: Printers [...]]]></description>
			<content:encoded><![CDATA[<p><strong><span style="text-decoration: underline;">So here&#8217;s the scenario:</span></strong></p>
<p>(1) A Windows Server 2003 (x86) print server</p>
<p>(2) A bunch of HP printers using HP&#8217;s universal driver &#8212; specifically, the PCL5 driver. All printers are connected to the aforementioned server via the network.</p>
<p>(3) A bunch of Windows 7 Pro x64 clients with the aforementioned PCL5 driver installed.</p>
<p><strong><span style="text-decoration: underline;">Problem:</span></strong></p>
<p>Printers (on x64 clients) won&#8217;t map &#8212; the client machines can&#8217;t connect to the HP printers on the server. You may get various error messages/symptoms; I discovered this problem when a domain login script wouldn&#8217;t map printers. Here&#8217;s a simplified example of what the script might look like:</p>
<div class="code_block">Set objNetwork = CreateObject(&#8216;WScript.Network&#8217;)<br />
objNetwork.AddWindowsPrinterConnection &#8216;\\server\\printer&#8217;</div>
<p>Whenever the domain login script ran, the following error would appear:</p>

<a href="http://nefaria.com/wp-content/gallery/miscellaneous-media/vbserror.png" title="" class="shutterset_singlepic980" >
	<img class="ngg-singlepic" src="http://nefaria.com/wp-content/gallery/cache/980__320x240_vbserror.png" alt="vbserror" title="vbserror" />
</a>

<p>The error message reads:</p>
<div class="code_block">Error: The specified module could not be found.<br />
Code: 8007007E<br />
Source: (null)</div>
<p>You may also get an error with the following code:</p>
<div class="code_block">Error: Cannot connect to printer<br />
Code: 0000007E</div>
<p><span style="text-decoration: underline;"><strong>What causes this?</strong></span></p>
<p>When the 32 bit universal driver is installed on the server, a registry key is created:</p>
<div class="code_block">HKLM\SYSTEM\CurrentControlSet\Control\Print\Printers\&lt;printer name&gt;\CopyFiles\BIDI</div>
<p>This key exists to tell the client that it needs to copy a dll file to in order for the printer to work on the client machine. The problem is that the path points to the 32 bit version of the driver (which makes sense, because the print server is a 32 bit machine). The 64 bit clients need the 64 bit version of the driver &#8212; which you&#8217;ve already installed on the client machines (you did install it&#8230; right?) Whenever the 64 bit client tries to load this 32 bit module, the above error(s) is(/are) the result; additionally, you&#8217;ll see the following error in the Event Viewer:</p>
<p><img src='http://nefaria.com/wp-content/gallery/miscellaneous-media/printer-error-that-causes-vbs-error.png' alt='printer-error-that-causes-vbs-error' class='ngg-singlepic ngg-center' width="97%" /></p>
<p>As it turns out, this is a very easy problem to fix; just delete the BIDI key. The client machines will no longer be told that they need to copy the wrong file and they&#8217;ll connect just fine. But what about 32 bit clients? Well I haven&#8217;t noticed any ill-effects from deleting the key but I&#8217;d imagine that the worst that can happen is that you might have to install the PCL 5 driver on the 32 bit clients rather than having the server do it whenever a client attempts to connect to a shared printer. As I said though, I haven&#8217;t noticed any problems yet and 32 bit machines are on their way out anyway. Hopefully this post saves someone else some time.</p>
<p><strong><span style="text-decoration: underline;">Further Reading:</span></strong></p>
<p><a href="http://social.technet.microsoft.com/Forums/en-US/winserverprint/thread/44ca5958-4588-4710-b231-a4a5ebdb3611/" target="_blank">http://social.technet.microsoft.com/Forums/en-US/winserverprint/thread/44ca5958-4588-4710-b231-a4a5ebdb3611/</a></p>
<p><a href="http://www.lewisroberts.com/2011/09/08/windows-cannot-connect-to-the-printer-0x0000007e/" target="_blank">http://www.lewisroberts.com/2011/09/08/windows-cannot-connect-to-the-printer-0x0000007e/<br />
</a></p>
<p><a title="http://helpforsure.wordpress.com/tag/copyfilesbidimodule/" href="http://helpforsure.wordpress.com/tag/copyfilesbidimodule/" target="_blank">http://helpforsure.wordpress.com/tag/copyfilesbidimodule/</a></p>
]]></content:encoded>
			<wfw:commentRss>http://nefaria.com/2012/03/windows-7-printers-0x8007007e-the-specified-module-could-not-be-found/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>new jQuery stuff!</title>
		<link>http://nefaria.com/2011/08/new-jquery-stuff/</link>
		<comments>http://nefaria.com/2011/08/new-jquery-stuff/#comments</comments>
		<pubDate>Thu, 18 Aug 2011 17:08:46 +0000</pubDate>
		<dc:creator>musashi</dc:creator>
				<category><![CDATA[Development]]></category>
		<category><![CDATA[General]]></category>
		<category><![CDATA[I.T.]]></category>
		<category><![CDATA[Programming / Scripting]]></category>

		<guid isPermaLink="false">http://nefaria.com/?p=1020</guid>
		<description><![CDATA[Check it out: http://nefaria.com/project_index/jqueryfilebrowser/ Enjoy!]]></description>
			<content:encoded><![CDATA[<p>Check it out: <a href="http://nefaria.com/project_index/jqueryfilebrowser/">http://nefaria.com/project_index/jqueryfilebrowser/</a></p>
<p>Enjoy!</p>
]]></content:encoded>
			<wfw:commentRss>http://nefaria.com/2011/08/new-jquery-stuff/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Today&#8217;s Relevant Quote</title>
		<link>http://nefaria.com/2010/11/todays-relevant-quote/</link>
		<comments>http://nefaria.com/2010/11/todays-relevant-quote/#comments</comments>
		<pubDate>Wed, 10 Nov 2010 12:27:45 +0000</pubDate>
		<dc:creator>musashi</dc:creator>
				<category><![CDATA[General]]></category>
		<category><![CDATA[Rants]]></category>

		<guid isPermaLink="false">http://nefaria.com/?p=967</guid>
		<description><![CDATA[&#8220;When a candidate for public office faces the voters he does not face men of sense; he faces a mob of men whose chief distinguishing mark is the fact that they are quite incapable of weighing ideas, or even of comprehending any save the most elemental — men whose whole thinking is done in terms [...]]]></description>
			<content:encoded><![CDATA[<p><em>&#8220;When a candidate for public office faces the voters he does not face men of sense; he faces a mob of men whose chief distinguishing mark is the fact that they are quite incapable of weighing ideas, or even of comprehending any save the most elemental — men whose whole thinking is done in terms of emotion, and whose dominant emotion is dread of what they cannot understand. So confronted, the candidate must either bark with the pack or be lost&#8230; All the odds are on the man who is, intrinsically, the most devious and mediocre — the man who can most adeptly disperse the notion that his mind is a virtual vacuum. The Presidency tends, year by year, to go to such men. As democracy is perfected, the office represents, more and more closely, the inner soul of the people. We move toward a lofty ideal. On some great and glorious day the plain folks of the land will reach their heart&#8217;s desire at last, and the White House will be adorned by a downright moron.&#8221;</em>  &#8212; <a href="http://en.wikiquote.org/wiki/H._L._Mencken">H.L. Mencken</a></p>
]]></content:encoded>
			<wfw:commentRss>http://nefaria.com/2010/11/todays-relevant-quote/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>What Patton would have said&#8230;</title>
		<link>http://nefaria.com/2010/09/what-patton-would-have-said/</link>
		<comments>http://nefaria.com/2010/09/what-patton-would-have-said/#comments</comments>
		<pubDate>Thu, 02 Sep 2010 13:47:16 +0000</pubDate>
		<dc:creator>musashi</dc:creator>
				<category><![CDATA[General]]></category>
		<category><![CDATA[Rants]]></category>

		<guid isPermaLink="false">http://nefaria.com/?p=950</guid>
		<description><![CDATA[Yesterday I received a chain-letter in my inbox. I&#8217;m not going to repost it here, but here&#8217;s a few links: Link #1 (scroll down a bit) Link #2 Anyway, I get quite a lot of chain-letters like this so it goes without saying that I don&#8217;t respond to all of them. However, sometimes I feel [...]]]></description>
			<content:encoded><![CDATA[<p>Yesterday I received a chain-letter in my inbox. I&#8217;m not going to repost it here, but here&#8217;s a few links:</p>
<p><a href="http://www.thunderrun.us/2009/11/what-patton-would-have-said.html">Link #1</a> (scroll down a bit)</p>
<p><a href="http://www.topix.com/forum/city/buffalo-ny/TO9Q4URMMVHRL9LBB">Link #2</a></p>
<p>Anyway, I get quite a lot of chain-letters like this so it goes without saying that I don&#8217;t respond to all of them. However, sometimes I feel compelled to do so, depending on the content and/or the issue being &#8220;discussed&#8221; (I use that term lightly). This particular letter struck a nerve with me; it&#8217;s full of the usual nationalistic/fascist psychobabble &#8212; it&#8217;s obvious that it was written specifically for a certain subsection of American society. </p>
<p>*sigh*  &#8230;</p>
<p>Anyway, here&#8217;s my response:</p>
<div class="code_block">
<p>Indeed, this is a disgrace. But I think that this point needs clarification. The disgrace isn&#8217;t with the Muslim Americans who wish to exercise their right to religious freedom by building a mosque or community center on privately owned property; the disgrace is that some Americans are trying to deny other Americans from exercising that right.</p>
<p>This e-mail claims that the group who wants to build the mosque is an extremist group. However, by any realistic measure, this couldn&#8217;t be further from the truth. The proponents of this claim say that the leader of the group has ties to a man who supports extremism and funds madrasas(sp?), but notice how they never actually name this person. </p>
<p>Alwaleed bin Talal. This is the man they&#8217;re talking about. Who is he? For starters, he&#8217;s a Saudi prince, but that&#8217;s not as interesting as this next fact:</p>
<p>He is also the part owner (2nd largest shareholder) of News Corp, which is the parent company of Fox News &#8212; the main media outlet that has been relentlessly stirring the pot on the issue of the &#8220;terror mosque&#8221;.</p>
<p>So, either Fox News is funding terrorism via Alwaleed bin Talal, which means that Fox News is funding the construction of this &#8220;terror mosque&#8221; while simultaneously opposing it; or Fox News isn&#8217;t funding terrorism *and* the members of the group building the mosque are actually peaceful American Muslims just trying to exercise their right to practice their religion &#8212; a right guaranteed by the Constitution &#8212; in the face of immense xenophobia and ignorance on behalf of everyone opposed to the building of the mosque.</p>
<p>But &#8220;what about this radical Imam?&#8221; you might be asking. Oh you mean Imam Feisal Abdul Rauf; the same guy who has been working with the U.S. State Department (since the Bush administration) to promote religious tolerance in the Arab world.</p>
<p>Read that again.</p>
<p>The Imam &#8212; the leader of the group building the &#8220;terror mosque&#8221;, worked with the U.S. State Department on at least two separate occasions in 2007 and is currently working with the State Department to promote religious tolerance amongst Muslims.</p>
<p>&#8230;Some &#8220;radical&#8221; he surely is.</p>
<p>By now a few things should be painfully obvious:</p>
<p>(1) The Muslim group building the mosque is not a collection of terrorists, extremists, America-haters, etc. </p>
<p>(2) Fox News is keeping this non-issue going because it&#8217;s good for ratings.</p>
<p>(3) Opponents of the mosque actually have no valid reason to oppose it, all of the &#8220;reasons&#8221; they have can be attributed to not knowing the details of the situation (mentioned previously), xenophobia (i.e., fear of people of other races/nationalities/religions), racism, politically or religiously-motivated hatred of Muslims, or just plain stupidity.</p>
<p>Again, I find it absolutely disgusting that any American would work to restrict the rights of another American, while claiming this to be his or her &#8220;patriotic duty&#8221;. There is no greater enemy to the United States than this fever of ultra-nationalism that gripped our nation around the throat&#8230; we truly are on the road to fascism. Let me put it this way: There is nothing &#8220;patriotic&#8221; or &#8220;American&#8221; about ignorantly laboring to limit the Constitutionally protected rights of fellow Americans just because their religion or even their politics disagree with yours.</p>
<p>I also think it&#8217;s worth repeating that on 9/11, it wasn&#8217;t just Christians who died when the twin towers fell. Within the walls of the WTC buildings, many people of different races, nationalities, and religions carried out their daily routines &#8212; Christians, Muslims, Jews, Buddhists, Baha&#8217;is, etc., all died in the attack. </p>
<p>&#8230;and one more thing</p>
<p>The despicable acts committed at Abu Garib <em>were</em> atrocities, and Iraq had absolutely nothing to do with the 9/11 attacks so attempting to justify them by invoking 9/11 is either disingenuous or ignorant&#8230; or both. Also, two wrongs don&#8217;t make a right.</p>
<p>###</p>
<p>But maybe General Patton would have something to say about the current state of our nation&#8230;</p>
<p>I wonder if he would question the wisdom of fighting a virtually un-winnable war on two fronts &#8212; one of those war fronts being a product of deception, corruption, and outright lies on behalf of the Bush administration&#8230; I wonder if he&#8217;d question the integrity of the leaders who started war in Iraq and then let their corporate pals practically rape the treasury department in the form of charging the government and the taxpayers exorbitant bills for sub-par or completely nonexistent services&#8230;</p>
<p>I wonder if he would be proud that half a century after WWII, the citizens of his homeland have forgotten the lessons of the Weimar Republic and the Nazis, and instead are happily marching down the road to fascism themselves&#8230;</p>
<p>I wonder if he would be proud that our politicians have embraced fearmongering as a means of controlling the populace&#8230;</p>
<p>Somehow, I doubt it.</p>
<p>But in the end it doesn&#8217;t really matter because he&#8217;s not around to comment on current events, so any speculation about what he may or may not have said is completely pointless. Whomever wrote this e-mail, claiming to know what Patton would have said, has no way of knowing if he or she were right, so it might just be a good idea to ignore useless drivel like this rather than forward it on to others.</p>
<p>In closing, I&#8217;d like to issue a challenge:</p>
<p>If you claim to be a patriot, educate yourself about what the Constitution and other founding documents *really* say. Don&#8217;t just continue believing in a rosy interpretation of what you imagine them to mean just because it fits your biases, politics, prejudices, etc. Recognize that ALL citizens of this great nation deserve the same rights as guaranteed by the Constitution. There are no &#8220;privileged&#8221; classes based on race, gender, religion, political beliefs, or sexual orientation &#8212; under the laws of our secular government, we are all equals. And if you really, really think that you&#8217;re a patriot, read the following excerpt from William N. Grigg, and then take a hard look around you. Take a hard look at what this nation has become. Take a hard look at what YOU have become&#8230; and then do something about it.</p>
<p>Quote:</p>
<p><em>While the terms patriotism and nationalism can refer to the same thing — the love of one’s native country — in practice they have acquired very different meanings. Nationalism, in practice, describes not to the love of a country but rather the veneration of its central government.</p>
<p>As historian John J. Dwyer notes, nationalism is a degenerate impostor of patriotism. &#8220;The patriot says, `I love my country,’ works for its good, and defends it if necessary — against enemies within and without,&#8221; writes Dwyer. &#8220;He strives and prays not primarily that God will bless his country, but that his country will bless God. The nationalist, meanwhile, says, `My country is better than yours.’ `My country is the greatest there has ever been.’ `The greatest nation on God’s green earth.’ `They hate my country because it is so good.’&#8221;</p>
<p>Nationalism focuses on the State, rather than the community. It is unambiguously based on zero-sum assumptions about power, and nationalists define victory in terms of imposing their will on others.</em></p>
<p>Source: </p>
<p>http://freedominourtime.blogspot.com/2007/03/patriotism-vs-nationalism.html</p>
<p>###</p>
<p>Sincerely,</p>
<p>Charles Hamilton<br />
U.S. Army Iraq War Veteran (2003)
</p></div>
]]></content:encoded>
			<wfw:commentRss>http://nefaria.com/2010/09/what-patton-would-have-said/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>jqueryFileTree connector script for python cgi</title>
		<link>http://nefaria.com/2010/08/jqueryfiletree-connector-script-for-python-cgi/</link>
		<comments>http://nefaria.com/2010/08/jqueryfiletree-connector-script-for-python-cgi/#comments</comments>
		<pubDate>Tue, 10 Aug 2010 15:49:12 +0000</pubDate>
		<dc:creator>musashi</dc:creator>
				<category><![CDATA[General]]></category>
		<category><![CDATA[I.T.]]></category>
		<category><![CDATA[Development]]></category>
		<category><![CDATA[jquery]]></category>
		<category><![CDATA[Programming / Scripting]]></category>
		<category><![CDATA[python]]></category>

		<guid isPermaLink="false">http://nefaria.com/?p=934</guid>
		<description><![CDATA[If you use jquery and haven&#8217;t messed with the jqueryFileTree plugin, I&#8217;d highly recommend you do so. It&#8217;s pretty neat, and there are connector scripts already written in various languages for use with this plugin. However, there wasn&#8217;t one for python cgi (there was one for django however). So, I wrote my own! Try it [...]]]></description>
			<content:encoded><![CDATA[<p>If you use jquery and haven&#8217;t messed with the <a href="http://abeautifulsite.net/blog/2008/03/jquery-file-tree/">jqueryFileTree</a> plugin, I&#8217;d highly recommend you do so. It&#8217;s pretty neat, and there are <a href="http://abeautifulsite.net/blog/2008/03/jquery-file-tree/#connectors">connector scripts</a> already written in various languages for use with this plugin. However, there wasn&#8217;t one for python cgi (there was one for django however). So, I wrote my own! Try it out:</p>
<div class="code_block">
<font color="#8080ff">#!/usr/bin/python</font></p>
<p><font color="#8080ff">#&nbsp;jqueryFileTree connector script for python cgi</font><br />
<font color="#8080ff">#&nbsp;Version: 1.0 / 10 August 2010</font><br />
<font color="#8080ff">#&nbsp;Author: Charles Hamilton / musashi@nefaria.com</font><br />
<font color="#8080ff">#&nbsp;Released under the GNU GPLv3</font><br />
<font color="#8080ff">#&nbsp;Modifications and improvements are welcome</font></p>
<p><font color="#ff40ff">import</font>&nbsp;os, cgi, cgitb, urllib, re<br />
cgitb.enable() <br />
form = cgi.FieldStorage()</p>
<p><font color="#ffff00">print</font>&nbsp;&#8217;<font color="#ff6060">Content-Type: text/html</font><font color="#ff40ff">\n\n</font>&#8216;<br />
<font color="#ffff00">print</font>&nbsp;&#8217;<font color="#ff6060">&lt;ul class=&quot;jqueryFileTree&quot; style=&quot;display: none;&quot;&gt;</font>&#8216;</p>
<p>path = urllib.unquote(form['<font color="#ff6060">dir</font>'].value)</p>
<p>dirs = []<br />
files = []</p>
<p>filelist = sorted(os.listdir(path))</p>
<p><font color="#ffff00">for</font>&nbsp;object <font color="#ffff00">in</font>&nbsp;filelist:<br />
&nbsp;&nbsp;&nbsp;&nbsp;<font color="#ffff00">if</font>&nbsp;os.path.isfile(path + &#8216;<font color="#ff6060">/</font>&#8216;&nbsp;+ object):<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;ext = os.path.splitext(object)<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;files.append(&#8216;<font color="#ff6060">&lt;li class=&quot;file ext_</font>&#8216;&nbsp;+ re.sub(&#8216;<font color="#ff6060">\.</font>&#8216;, &#8221;, ext[1]) + &#8216;<font color="#ff6060">&quot;&gt;&lt;a href=&quot;#&quot; rel=&quot;</font>&#8216;+ path + object + &#8216;<font color="#ff6060">&quot;&gt;</font>&#8216;+ object + &#8216;<font color="#ff6060">&lt;/a&gt;&lt;/li&gt;</font>&#8216;)<br />
&nbsp;&nbsp;&nbsp;&nbsp;<font color="#ffff00">elif</font>&nbsp;os.path.isdir(path + &#8216;<font color="#ff6060">/</font>&#8216;&nbsp;+ object):<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;dirs.append(&#8216;<font color="#ff6060">&lt;li class=&quot;directory collapsed&quot;&gt;&lt;a href=&quot;#&quot; rel=&quot;</font>&#8216;+ path + object +&#8217;<font color="#ff6060">/&quot;&gt;</font>&#8216;&nbsp;+ object + &#8216;<font color="#ff6060">&lt;/a&gt;&lt;/li&gt;</font>&#8216;)</p>
<p><font color="#ffff00">for</font>&nbsp;d <font color="#ffff00">in</font>&nbsp;dirs:<br />
&nbsp;&nbsp;&nbsp;&nbsp;<font color="#ffff00">print</font>&nbsp;d</p>
<p><font color="#ffff00">for</font>&nbsp;f <font color="#ffff00">in</font>&nbsp;files:<br />
&nbsp;&nbsp;&nbsp;&nbsp;<font color="#ffff00">print</font>&nbsp;f</p>
<p><font color="#ffff00">print</font>&nbsp;&#8217;<font color="#ff6060">&lt;/ul&gt;</font>&#8216;<br />
</font>
</div>
]]></content:encoded>
			<wfw:commentRss>http://nefaria.com/2010/08/jqueryfiletree-connector-script-for-python-cgi/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
	</channel>
</rss>

