<?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>~ overflow ~ &#187; issues</title>
	<atom:link href="http://www.overflow.biz/blog/lang/en-us/tag/issues/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.overflow.biz/blog</link>
	<description>Coding and Internet Randomness</description>
	<lastBuildDate>Sun, 08 Jan 2012 23:34:17 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<language>en-us</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Microsoft SQL+IIS Migration</title>
		<link>http://www.overflow.biz/blog/lang/en-us/2009/09/04/mssql-iis-migration?utm_source=rss&amp;utm_medium=rss&amp;utm_campaign=mssql-iis-migration</link>
		<comments>http://www.overflow.biz/blog/lang/en-us/2009/09/04/mssql-iis-migration#comments</comments>
		<pubDate>Fri, 04 Sep 2009 19:56:13 +0000</pubDate>
		<dc:creator>z3n</dc:creator>
				<category><![CDATA[Notes]]></category>
		<category><![CDATA[Tips & Hints]]></category>
		<category><![CDATA[crypt errors]]></category>
		<category><![CDATA[iis]]></category>
		<category><![CDATA[issues]]></category>
		<category><![CDATA[mssql]]></category>
		<category><![CDATA[problems]]></category>
		<category><![CDATA[sql]]></category>
		<category><![CDATA[windows]]></category>

		<guid isPermaLink="false">http://www.overflow.biz/blog/?p=222</guid>
		<description><![CDATA[Problem:
Migrate a SQL 2000 DB to a 2005 Server and IIS 6.0 to IIS 7.0.
Extra Issues:
- SQL2000 is full of procedures, views and identity tables (+200 each)
- Coder who built tables/procedures was lame, so there might be NULL values where it shouldn&#8217;t among with other things, like STRINGs being converted to DATE, INT, etc.
- Also [...]]]></description>
			<content:encoded><![CDATA[<p><strong>Problem:</strong></p>
<p>Migrate a SQL 2000 DB to a 2005 Server and IIS 6.0 to IIS 7.0.</p>
<p><strong>Extra Issues:</strong></p>
<p>- SQL2000 is full of procedures, views and identity tables (+200 each)<br />
- Coder who built tables/procedures was lame, so there might be NULL values where it shouldn&#8217;t among with other things, like STRINGs being converted to DATE, INT, etc.<br />
- Also includes lame asp coding.<br />
<em>- CRYPT MICROSOFT ERRORS (CRITICAL)</em></p>
<p><strong>More Problems:</strong></p>
<p>I don&#8217;t know why people still using microsoft, everything is against it. Not only the OS, but everything (ASP, SQL, VB, IE, Office, etc) related to microsoft is bad.</p>
<p>When you start to get those `error: XXXXXXXXX` like you know you&#8217;re screwed, why:</p>
<p>- Error codes aren&#8217;t clear and used by many different instances.. guess what, none of them will fit your issue;<br />
- Microsoft KB isen&#8217;t accurate;<br />
- Sometimes, Microsoft KB might present you the right answer, but it will be the last one on a list of 10 possible solutions, since they don&#8217;t have much control on the crypt errors themselfs, no wonder;<br />
- Microsoft KB likes to do inaccurate automatic translations of the content (if your not english native), meaning that, if you eventually forgot that, you will be lead to another issue caused by the automatic translation.<br />
- MSSQL don&#8217;t have `limit x` on delete/update queries, unless you do a huge workaround that will lead to more issues.<br />
- IIS complies with MSSQL, also showing crypt errors, making the debugging impossible for non-computer beings (eg.: you).<br />
- IIS crypt errors can be more funny when it simple shows `Bad Request`  or `Application Error` and NOTHING ELSE.<br />
- IIS likes to get stuck, if you try to restart/stop/start/recicle a service that takes too much time to happen, IIS manager simply shows a message `Service not responding` and abort the operation, sometimes it abort the operation and a few minutes later it happens, other times it just don&#8217;t happen and/or get stuck then you need to reboot;<br />
- Copying database straight from the 2000 server to a local 2005 server gives the following error: `Error, please check your log`; Checking `your log` gives lots, lots of crypt non-sense errors in my native language, guess what? 0 results on google.<br />
- The error above takes 30 minutes to happen, nothing is copied, but there&#8217;s a 300mb .mdb file.<br />
- If you do a `SCRIPT DATABASE` you will not get the whole data or/and tables will not have identity columns or/and some data may be corrupted (even deatched);<br />
- If you do a `IMPORT/EXPORT` procedure, you will fall on the VERY SAME problems above, but now you may also get timeout crypt message;<br />
- You can only edit top 300 lines on MSSMS, sorted by MSSMS&#8217; will;<br />
- [db_name].[dbo].[tbl_name] will not appear on the automatic generated scripts, but if you forget to add it your script will miserabily fail with a non-crypt error message (first time) &#8212; that only happens if you use MSSMS;<br />
- Can&#8217;t stand that green circle looping;<br />
- MSSMS 2005 and 2008 are about the same, meaning you will have the same errors, so don&#8217;t even try to update;<br />
- SQL2005 SP3 must be installed before anything, unless you want to fall on unsolved crypt errors, leading to nothingness;<br />
- You can also amazingly fall into crypt errors with ALSO typing errors like `erro XXXXXXXXX`;<br />
- Screaming to the skies and throwing things around will not help;<br />
- Reinstalling SQL Server will not help;<br />
- Reinstalling SQL Server with latest SP will not help;<br />
- Reinstalling OS will not help;<br />
- Reinstalling OS with latest SP will not help;<br />
- Reinstalling &#60;Microsoft Software&#62; with &#60;Any Condition&#62; will not help;<br />
- IIS will not forgive and forget any `;` you put on a asp page, too bad for mainly php coders (eg.: me);<br />
- IIS is for Apache as IE is for Firefox (is this understandable in english? don&#8217;t think so);</p>
<p><strong>Another Complaint:</strong></p>
<p>The triumph of a bad software can&#8217;t be explained for me, I can&#8217;t also understand why they made so much money on something that simply dosen&#8217;t work. Maybe users like<br />
things that don&#8217;t work? Maybe there&#8217;s something magic on crypt errors and blue screens? Maybe Microsoft is paying developers to use their languages and/or software?</p>
<p><strong>Solution:</strong></p>
<p>After several days, tries and lots of time lost I was able to do the migration using MSSQL Enterprise 2005 SP3, the Developer, Express, SQL 2008, SP1 and SP2 gave me crypt errors when copying the database, nothing related to installing the latest SP was on the KB.<br />
Note that i installed ALL versions to try. Thanks microsoft for such great support and programs, looking forward to support the selling of pirated microsoft dvds on streets.</p>
<p><strong>Solution 2:</strong></p>
<p>Move to LAMP, please.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.overflow.biz/blog/lang/en-us/2009/09/04/mssql-iis-migration/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Keep it simple, stupid jQuery experience</title>
		<link>http://www.overflow.biz/blog/lang/en-us/2009/08/14/keep-it-simple-stupid-jquery-experience?utm_source=rss&amp;utm_medium=rss&amp;utm_campaign=keep-it-simple-stupid-jquery-experience</link>
		<comments>http://www.overflow.biz/blog/lang/en-us/2009/08/14/keep-it-simple-stupid-jquery-experience#comments</comments>
		<pubDate>Fri, 14 Aug 2009 03:07:15 +0000</pubDate>
		<dc:creator>z3n</dc:creator>
				<category><![CDATA[Coding]]></category>
		<category><![CDATA[Notes]]></category>
		<category><![CDATA[charset]]></category>
		<category><![CDATA[dom]]></category>
		<category><![CDATA[issues]]></category>
		<category><![CDATA[javascript]]></category>
		<category><![CDATA[jQuery]]></category>
		<category><![CDATA[php]]></category>

		<guid isPermaLink="false">http://www.overflow.biz/blog/?p=185&amp;lang=en-us</guid>
		<description><![CDATA[As much as I like jQuery I must admit that it’s far away from simplifying things. Although it might be a great idea using it on 100% jQuery scripts, it’s a real bad idea using it to refurbish an old script.
Today I’ve spent over 2 hours implement jQuery on a old script I have, and [...]]]></description>
			<content:encoded><![CDATA[<p><span>As much as I like jQuery I must admit that it’s far away from simplifying things. Although it might be a great idea using it on 100% jQuery scripts, it’s a real bad idea using it to refurbish an old script.</span></p>
<p><span>Today I’ve spent over 2 hours implement jQuery on a old script I have, and I felt into so many issues that it didn’t worth at all.</span></p>
<p><span>My script was simple, I had a huge variable list that could be edited by a form, script loops through the variables building a form with input fields for each variable. I will not get into specific details because it’s boring, but I needed to allow the user to add a new variable inside an array, so i thought that jQuery would help a lot since i only would need to dynamic add a new input field as needed then post everything back to script to save the file.</span></p>
<p><span>First I spent an hour figuring out that jQuery was ruining the text by converting the whole thing into UTF-8, loosing all the accents, eventually I found out about contentType encoding ajax variable:</span></p>
<pre class="prettyprint"><code><span><strong><span class="pln">contentType</span><span class="pun">:</span><span class="str">"application/json; charset=utf-8"</span></strong></span></code></pre>
<pre class="prettyprint"><code><span class="str"><span>which could be changed to the charset i wanted.</span></span></code></pre>
<p><span>It was useless, jQuery still posting into the wrong charset, there’s some other tweks on this, but they are also useless.</span></p>
<p><span>I was able to fix the accent issue with this php statement:</span></p>
<p><span><strong>mb_convert_encoding(urldecode($variable),&#8221;ISO-8859-1&#8243;,&#8221;auto&#8221;);</strong></span></p>
<p><span>This is much more obscure though, but I was familiar with it since i coded in japanese charsets which are a pain to convert.</span></p>
<p><span>After having this cleared, and searching a lot of useless blogs and postings, turns out that jQuery was using the hard coded form names to post the data, which could be overlapped by an dynamic added field, I did a script to change the name of the hard coded inputs, something like this:</span></p>
<p><span><strong>$(&#8220;#field_id&#8221;).attr(’name’,’new_name’);</strong></span></p>
<p><span>Theorically, it worked, but when I did:</span></p>
<p><span><strong>$(&#8220;#form&#8221;).serialize();</strong></span></p>
<p><span>jQuery used the dynamic fields with the ordinary hard coded ignoring the attr changes.</span></p>
<p><span>Now I had to add a handler to dynamic convert and read all the inputs and do my own serialize in order to TRY to make it work&#8230;and that’s because i didn’t tested it on IE yet.</span></p>
<p><span>So that’s when I quit using jQuery for this script and do something plain and simple, which took me about 20 minutes and 0 searches.</span></p>
<p><span>It looks like that if I had used DOM elements for the whole form, all elements generated by jQuery itself, not hard coded, i would have less trouble with the form, although, the charset issues still.</span></p>
<p><span><strong>Super Fun Sources:</strong></span></p>
<p><span><a href="http://stahttp://stackoverflow.com/questions/26620/how-to-set-encoding-in-getjson-jqueryblank">Stack overflow posting</a></span></p>
<p><span><a href="http://stahttp://stackoverflow.com/questions/965150/jquery-ajax-post-and-encodingblank">Stack overflow posting 2</a></span></p>
<p><span><a href="http://dochttp://docs.jquery.com/Ajax/jQuery.ajax#optionsblank">jQuery Ajax Documentation</a> (completly useless since contentType explanation has 2 lines)</span></p>
]]></content:encoded>
			<wfw:commentRss>http://www.overflow.biz/blog/lang/en-us/2009/08/14/keep-it-simple-stupid-jquery-experience/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>MSSQL+PHP = Issues</title>
		<link>http://www.overflow.biz/blog/lang/en-us/2009/07/21/mssqlphp-issues?utm_source=rss&amp;utm_medium=rss&amp;utm_campaign=mssqlphp-issues</link>
		<comments>http://www.overflow.biz/blog/lang/en-us/2009/07/21/mssqlphp-issues#comments</comments>
		<pubDate>Wed, 22 Jul 2009 00:47:51 +0000</pubDate>
		<dc:creator>z3n</dc:creator>
				<category><![CDATA[Coding]]></category>
		<category><![CDATA[errors]]></category>
		<category><![CDATA[issues]]></category>
		<category><![CDATA[microsoft]]></category>
		<category><![CDATA[mssql]]></category>
		<category><![CDATA[php]]></category>

		<guid isPermaLink="false">http://www.overflow.biz/blog/?p=180&amp;lang=en-us</guid>
		<description><![CDATA[Problem:
On a simple MSSQL (Microsoft SQL Server) with PHP you get this error:
Warning: mssql_query() [function.mssql-query]: message: Unicode data in a Unicode-only collation or ntext data cannot be sent to clients using DB-Library (such as ISQL) or ODBC version 3.7 or earlier. (severity 16)
and the best, it dosen&#8217;t matter if you convert the data to a [...]]]></description>
			<content:encoded><![CDATA[<p><strong>Problem:</strong></p>
<p>On a simple MSSQL (Microsoft SQL Server) with PHP you get this error:</p>
<p><em>Warning: mssql_query() [function.mssql-query]: message: Unicode data in a Unicode-only collation or ntext data cannot be sent to clients using DB-Library (such as ISQL) or ODBC version 3.7 or earlier. (severity 16)</em></p>
<p>and the best, it dosen&rsquo;t matter if you convert the data to a different type.P></p>
<p><strong>Solution:</strong></p>
<p>It looks like that mssql library at php can&rsquo;t handle the ntext objects right, or at least the way you&rsquo;re calling it is not right, the ONG>wrong way</strong> is:</p>
<p><em>function _connect_mssql() {<br /> global $_msql,$_msql_id;<br /> if (!$_msql_id) {<br />  if ($_msql=mssql_connect(dbserver,dbuser,dbpass)) {<br />   mssql_select_db(db,$_msql) or die(&quot;Unable to select database: &quot;.db);<br />   $_msql_id=1;<br />  } else {<br />   die(&quot;Couldn&rsquo;t connect to database&quot;);R>  }<br />   $_msql_id=1;<br /> }<br />}<br />function _qm($sql) {<br /> global $res,$_msql,$_msql_id; <br /> if (!$_msql_id) { _connect_mssql(); }<br /> $res=mssql_query($sql,$_msql);<br /> if (!$res) { die(&quot;Error on query: &quot;.$sql); }<br />}</em></p>
<p>Those are simple functions to call it without using a class or too much paraphernalia. And it doesn&rsquo;t work when the table has a ntext column on it, now a function that works with any type of table:P></p>
<p><em>function _connect_mssql() {<br /> global $_msql,$_msql_id;<br /> if (!$_msql_id) {<br />  $_msql=new COM(&quot;ADODB.Connection&quot;);<br />   $_msql-&gt;Open(&quot;Provider=SQLOLEDB.1;Password=&quot;.dbpass.&quot;;Persist Security Info=True;User ID=&quot;.dbuser.&quot;;Initial Catalog=&quot;.db.&quot;;Data Source=&quot;.dbserver);<br />   $_msql_id=1;<br /> }<br />}<br />function _qm($sql) {<br /> global $res,$_msql,$_msql_id; <br /> if (!$_msql_id) { _connect_mssql(); }<br /> $res=$_msql-&gt;Execute($sql);<br /> if (!$res) { die(&quot;Error on query: &quot;.$sql); }<br />}<br /></em></p>
<p><em>$_msql=&quot;&quot;;$_msql_id=0;</p>
<p></em></p>
<p>Note that I used a class and ADODB connection instead, this works prefectly.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.overflow.biz/blog/lang/en-us/2009/07/21/mssqlphp-issues/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Real VNC Viewer on Windows + VNC Server on Linux = Accent Issues</title>
		<link>http://www.overflow.biz/blog/lang/en-us/2009/06/05/real-vnc-viewer-on-windows-vnc-server-on-linux-accent-issues?utm_source=rss&amp;utm_medium=rss&amp;utm_campaign=real-vnc-viewer-on-windows-vnc-server-on-linux-accent-issues</link>
		<comments>http://www.overflow.biz/blog/lang/en-us/2009/06/05/real-vnc-viewer-on-windows-vnc-server-on-linux-accent-issues#comments</comments>
		<pubDate>Fri, 05 Jun 2009 15:12:24 +0000</pubDate>
		<dc:creator>z3n</dc:creator>
				<category><![CDATA[Linux Happyness]]></category>
		<category><![CDATA[accent]]></category>
		<category><![CDATA[cross platform]]></category>
		<category><![CDATA[fedora]]></category>
		<category><![CDATA[issues]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[real vnc]]></category>
		<category><![CDATA[tight vnc]]></category>
		<category><![CDATA[vnc]]></category>
		<category><![CDATA[windows]]></category>

		<guid isPermaLink="false">http://overflow.biz/blog/?p=131</guid>
		<description><![CDATA[Problem:
Accents (á,à,ã,etc) not working on vnc viewer, for example:
instead of  á it shows  &#8221;a (double &#8216;)
Solution:

I&#8217;ve been looking around for a long time to fix this issue, i haven&#8217;t found any relevant information about it.
So i decided to install a different VNC client program, turns out that TightVNC Fixed the issue.
Note that it will not [...]]]></description>
			<content:encoded><![CDATA[<p><span lang="en-us"><strong>Problem:</strong></span></p>
<p><span lang="en-us">Accents (á,à,ã,etc) not working on vnc viewer, for example:</span></p>
<p><span lang="en-us">instead of  <em>á</em> it shows  <em>&#8221;a</em> (double &#8216;)</span></p>
<p><span lang="en-us"><strong>Solution:</strong><br />
</span></p>
<p><span lang="en-us">I&#8217;ve been looking around for a long time to fix this issue, i haven&#8217;t found any relevant information about it.</span></p>
<p><span lang="en-us">So i decided to install a different VNC client program, turns out that <a href="http://www.tightvnc.com/download.html" target="_blank">TightVNC</a> Fixed the issue.</span></p>
<p><span lang="en-us">Note that it will not work if you don&#8217;t configure your keyboard proprietly on linux, I write in portuguese and english, so as keyboard i have Generic International keyboard, as layout Brazil / Brazil.</span></p>






]]></content:encoded>
			<wfw:commentRss>http://www.overflow.biz/blog/lang/en-us/2009/06/05/real-vnc-viewer-on-windows-vnc-server-on-linux-accent-issues/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

