{"id":3148,"date":"2014-03-16T22:58:14","date_gmt":"2014-03-16T22:58:14","guid":{"rendered":"https:\/\/unknownerror.org\/index.php\/2014\/03\/16\/jquerygoogle-chrometypeerrorpreloaderlowercaserelated-issues-collection-of-common-programming-errors\/"},"modified":"2014-03-16T22:58:14","modified_gmt":"2014-03-16T22:58:14","slug":"jquerygoogle-chrometypeerrorpreloaderlowercaserelated-issues-collection-of-common-programming-errors","status":"publish","type":"post","link":"https:\/\/unknownerror.org\/index.php\/2014\/03\/16\/jquerygoogle-chrometypeerrorpreloaderlowercaserelated-issues-collection-of-common-programming-errors\/","title":{"rendered":"jquery,google-chrome,typeerror,preloader,lowercaseRelated issues-Collection of common programming errors"},"content":{"rendered":"<ul>\n<li><img decoding=\"async\" src=\"http:\/\/www.gravatar.com\/avatar\/feef9dda8bbe41e9def78c274a37f60c?s=32&amp;d=identicon&amp;r=PG\" \/><br \/>\nProfK<br \/>\nasp.net javascript jquery<br \/>\nI&#8217;m trying to call a Page Method using a jQuery &#8216;attached&#8217; event function, in which I like to use the closure to keep the event target local, as below, but page method calls declare several &#8216;error&#8217; functions, and I would like to use one function for all of them. If, in the below code, I was handling an error and not success, how could I use my single, anonymous handler for all 3 error functions?$(&#8220;:button&#8221;).click(function () {var button = this;PageMethods.DoIt(function (a, b, c) {alert(button);<\/li>\n<li><img decoding=\"async\" src=\"http:\/\/www.gravatar.com\/avatar\/2abbbc6ae4fcfd3a265c9cf945ed5c86?s=32&amp;d=identicon&amp;r=PG\" \/><br \/>\nVikdor<br \/>\njquery html<br \/>\nin my html header i have &lt;head&gt;&lt;script src=&#8221;jquary.js&#8221;&gt;&lt;\/script&gt;&lt;script&gt;$(document).ready(function(){ladda();});&lt;\/script&gt;&lt;\/head&gt;and i load jquaryand in the body i have&lt;form namne=&#8221;load&#8221;&lt;fieldset&gt;&lt;legend&gt; load&lt;\/legend&gt;&lt;table&gt;&lt;tr&gt;&lt;td&gt;&lt;div id=&#8221;inneh\u00e5ll1&#8243;&gt;vill du \u00e4ndra denna text&lt;\/div&gt;&lt;\/td&gt;&lt;\/tr&gt;&lt;\/table&gt; &lt;button id=&#8221;load_text&#8221;&gt;\u00e4ndra&lt;\/button&gt; &lt;\/fieldset&gt;and in my javascript i have<\/li>\n<li><img decoding=\"async\" src=\"http:\/\/www.gravatar.com\/avatar\/1607b348993138ebc8a82b491fbd5980?s=32&amp;d=identicon&amp;r=PG\" \/><br \/>\nJ\u00fcrgen Thelen<br \/>\njavascript jquery javascript-events<br \/>\nThe below code works well on localhost using XAMPP. But it doesn&#8217;t work on another server.&lt;!DOCTYPE html&gt; &lt;html&gt;&lt;head&gt;&lt;script src=&#8221;jquery-latest.js&#8221;&gt;&lt;\/script&gt;&lt;\/head&gt;&lt;body&gt;word: &lt;input type=&#8221;text&#8221; id=&#8221;sub&#8221; \/&gt;user: &lt;input type=&#8221;text&#8221; id=&#8221;user&#8221; \/&gt;&lt;button type=&#8221;button&#8221; id=&#8221;btn&#8221;&gt;Click Me!&lt;\/button&gt;&lt;script&gt;$(&#8220;#btn&#8221;).click(function () {var word=$(&#8220;#sub&#8221;).val();var usr=$(&#8220;#user&#8221;).val();alert(&#8220;hi&#8221;);});&lt;\/script&gt;&lt;\/body&gt; &lt;<\/li>\n<li><img decoding=\"async\" src=\"http:\/\/www.gravatar.com\/avatar\/907798bf02efdaf6f9d07d3c0552868f?s=32&amp;d=identicon&amp;r=PG\" \/><br \/>\nj08691<br \/>\njquery<br \/>\nHi guys I am trying to make my slider picking dynamically changed width of the window and put the right variable &#8220;newscount&#8221; to &#8220;slidesPerSlide : window.newscount&#8221; plus reload the last part:swiperLoop = $(&#8216;.swiper-loop&#8217;).swiper({slidesPerSlide : window.newscount,loop:false }); Please help me, the code is below:$(window).on(&#8216;load&#8217;, function(){$(window).on(&#8216;resize&#8217;, function() {var w = $(window).width();if (w &lt; 321) {var newscount = &#8220;2&#8221;;}else if (w &lt; 480) {var newscount = &#8220;3&#8221;;}else if (w &lt;<\/li>\n<li><img decoding=\"async\" src=\"http:\/\/www.gravatar.com\/avatar\/c968f8cf630e1754004b1219c0d29d08?s=32&amp;d=identicon&amp;r=PG\" \/><br \/>\nCristiano Marques<br \/>\njquery each<br \/>\nFor some reason its only finding one div instead of finding all divs with that id.JS:jQuery(&#8216;#showoffline&#8217;).click(function(){jQuery.each(jQuery(&#8216;#offlineestreams&#8217;),function(){jQuery(this).css(&#8220;display&#8221;,&#8221;block&#8221;);}); });Divs are something like this:&lt;div id=&#8221;offlineestreams&#8221; style=&#8221;display = none;&#8221;&gt; Something here &lt;\/div&gt; &lt;div id=&#8221;offlineestreams&#8221; style=&#8221;display = none;&#8221;&gt; Something here2 &lt;\/div&gt;But only the first one shows :\\ Why is that happening?<\/li>\n<li><img decoding=\"async\" src=\"http:\/\/www.gravatar.com\/avatar\/37067963126cace11aba2c9832024e8e?s=32&amp;d=identicon&amp;r=PG\" \/><br \/>\nuser2341213<br \/>\nphp jquery alert<br \/>\nMy JQuery code is not working. I tried functions such as &#8220;mouseenter&#8221; and that didn&#8217;t work, so I simply tried this and the alert does not show up. Is it a problem with the syntax or possibly something I am missing?&lt;script type=&#8221;text\/javascript&#8221; src=&#8221;jquery-2.0.0.min.js&#8221;&gt;&lt;\/script&gt; &lt;link type=&#8221;text\/css&#8221; rel=&#8221;stylesheet&#8221; href=&#8221;stylesheet.css&#8221;\/&gt; &lt;script type=&#8221;text\/javascript&#8221; src=&#8221;script.js&#8221;&gt;&lt;\/script&gt;The JS is this:$(document).ready(function() {alert(&#8220;JQuery is working!<\/li>\n<li><img decoding=\"async\" src=\"http:\/\/www.gravatar.com\/avatar\/bc10c7edd7524e1a05de670a3f0399a4?s=32&amp;d=identicon&amp;r=PG\" \/><br \/>\nWill<br \/>\njquery<br \/>\nWhat are some quick tips for increasing jQuery performance?<\/li>\n<li><img decoding=\"async\" src=\"http:\/\/www.gravatar.com\/avatar\/53bdac9d82783ce85a5ccb837ce7bc08?s=32&amp;d=identicon&amp;r=PG\" \/><br \/>\ntkone<br \/>\njquery ajax json jquery-ajax<br \/>\nI have the following code:$.ajax({type: &#8216;get&#8217;,mode: &#8216;abort&#8217;,dataType: &#8216;json&#8217;,url: &#8216;http:\/\/localhost\/1.php&#8217;,data: {},success: function(res){alert(res);},timeout: 10000,error: function(XMLHttpRequest, textStatus, errorThrown){alert(&#8220;ERROR L: &#8221; + textStatus + &#8221; (&#8221; + errorThrown + &#8220;)&#8221;);}});PHP contains only {id:1} and that&#8217;s it. When I try to parse the code as is, I get:ERROR L: parsererror (SyntaxError: Unexpected token i)from the error handler I have. If I change to dataType:&#8217;html&#8217;, Everything<\/li>\n<li><img decoding=\"async\" src=\"http:\/\/www.gravatar.com\/avatar\/e75e3418d05e4bb4a01fbe794d85aacd?s=32&amp;d=identicon&amp;r=PG\" \/><br \/>\nAwea<br \/>\njquery cross-browser<br \/>\nI have a form : &lt;form accept-charset=&#8221;UTF-8&#8243; action=&#8221;\/back\/pages\/22?locale=fr&#8221; class=&#8221;form-horizontal page-form&#8221; enctype=&#8221;multipart\/form-data&#8221; id=&#8221;edit_page_22&#8243; method=&#8221;post&#8221; target=&#8221;_blank&#8221;&gt;&lt;div style=&#8221;margin:0;padding:0;display:inline&#8221;&gt;&lt;input name=&#8221;utf8&#8243; type=&#8221;hidden&#8221; value=&#8221;?&#8221;&gt;&lt;p&gt;&lt;a href=&#8221;#&#8221; id=&#8221;no_window&#8221;&gt;Submit&lt;\/a&gt;&lt;\/p&gt;&lt;p&gt;&lt;a href=&#8221;#&#8221; id=&#8221;new_window&#8221;&gt;Submit &amp; _blank&lt;\/a&gt;&lt;\/p&gt; &lt;\/form&gt;And a Script attached : $(document).r<\/li>\n<li><img decoding=\"async\" src=\"http:\/\/www.gravatar.com\/avatar\/86f408d03c13a4ff1a4fbda9a21cf98e?s=32&amp;d=identicon&amp;r=PG\" \/><br \/>\nJamie Taylor<br \/>\njquery internet-explorer<br \/>\nI&#8217;ve got some code which when you click a button it populates the text of a textbox and then prepends another button to that div.It works in all browsers except IE where it gives a javascript error.The only way I can easily explain is by using my jsFiddleIf you use that in any browser apart from IE and click the Book now select a date and then another button will appear Submit.This is the correct behaviour but if you use IE then as soon as you select a date there&#8217;s a javascript error Unexpected<\/li>\n<li><img decoding=\"async\" src=\"http:\/\/www.gravatar.com\/avatar\/6e2c689fcb5dfad4dbe02894e5380e88?s=32&amp;d=identicon&amp;r=PG\" \/><br \/>\nuser1313330<br \/>\njavascript ajax google-chrome highcharts<br \/>\nI am trying to load a fairly large highcharts chart by loading the javascript for the chart with ajax. As in the entire chart is loaded by ajax, not updated by ajax. This works on all charts on firefox(even if it is really slow) and all but the largest charts in chrome. Any chart that has more than roughly 65000 characters (probably unsigned 16 bit variable but not sure) throws an &#8216;Unexpected end of input error&#8217; in chrome. I have had charts just above this limit, then by simply reducing the numb<\/li>\n<li><img decoding=\"async\" src=\"http:\/\/www.gravatar.com\/avatar\/8371065173a6c6bc169a4694c4fa2b50?s=32&amp;d=identicon&amp;r=PG\" \/><br \/>\nKatana314<br \/>\njavascript google-chrome getusermedia<br \/>\nSo the standard way that navigator.webkitGetUserMedia is used is like such:function success() {console.log(&#8216;User accepted&#8217;); }function deny() {console.log(&#8216;User rejected&#8217;); }navigator.webkitGetUserMedia({video: true, audio: true}, success, deny);The site I&#8217;m developing absolutely needs the use of the user&#8217;s webcam and microphone (actually, using Flash, but that seems to go through this API now), so I&#8217;m trying to do everything to ensure the user always knows what they need to click for the site t<\/li>\n<li><img decoding=\"async\" src=\"http:\/\/www.gravatar.com\/avatar\/2f53012464070497a93357aae3695209?s=32&amp;d=identicon&amp;r=PG\" \/><br \/>\nDyvor<br \/>\njavascript regex json firefox google-chrome<br \/>\nI have the following JSON string, encoded with PHP 5.2 json_encode():{&#8220;foo&#8221;:&#8221;\\\\.&#8221;}This JSON string is valid. You can check it out at http:\/\/www.jsonlint.com\/But the native JSON.parse() method (Chrome, Firefox), throws the following error, while parsing:SyntaxError: Unexpected token ILLEGALDoes anybody of you know, why I cannot parse escaped regular expression meta chars?This example works:{&#8220;foo&#8221;:&#8221;\\\\bar&#8221;}But this one fails also:{&#8220;foo&#8221;:&#8221;\\\\?&#8221;}BTW: \\. is just a simple test regular expression, which<\/li>\n<li><img decoding=\"async\" src=\"http:\/\/www.gravatar.com\/avatar\/ac8cf627ed2d278136a3fd90a156b5c5?s=32&amp;d=identicon&amp;r=PG\" \/><br \/>\nANTLRStarter<br \/>\njavascript google-chrome exception-handling compiler-errors position<br \/>\nHow can I get the JavaScript source file\/line number, maybe position of an error which is intercepted by an uncaughtException handler?. I&#8217;m using Chrome. error.stack as mentioned here Node.js doesnt display entire error message on uncaughtException, is it possible? doesn&#8217;t work (only text &#8220;SyntaxError: Unexpected token .&#8221;, but I get all the infos in the Chrome debugger.<\/li>\n<li><img decoding=\"async\" src=\"http:\/\/www.gravatar.com\/avatar\/133978b437b712189938510d2072a137?s=32&amp;d=identicon&amp;r=PG\" \/><br \/>\nChris<br \/>\njavascript python regex google-chrome firefox<br \/>\nHere&#8217;s a little experiment, using the regular expression (.+)+, that I pulled out in my Chrome console:&#8221;abcd&#8221;.match(\/(.+)+\/) [&#8220;abcd&#8221;, &#8220;abcd&#8221;]which is utterly unexpected and weird. I tested in Firefox and the result was the same. However, in Python:&gt;&gt;&gt; re.findall(r'(.+)+&#8217;, &#8216;abba&#8217;) [&#8216;abba&#8217;]I can&#8217;t explain this. Anyone has an idea of might be happening in JavaScript&#8217;s engine?<\/li>\n<li><img decoding=\"async\" src=\"http:\/\/www.gravatar.com\/avatar\/cc4f162f705071cbeb4aeb7a3d7d08d1?s=32&amp;d=identicon&amp;r=PG\" \/><br \/>\nhaxxxton<br \/>\njavascript jquery google-chrome safari hover<br \/>\n***SOLVED***Hey guysI am currently trying to make some jquery hover effects render correctly in all browsers. For the moment, firefox, IE, opera all do what they are supposed to. However, Safari and Chrome do not.the code looks like this:&lt;div id=&#8221;button1&#8243;&gt;&lt;div id=&#8221;work_title&#8221; class=&#8221;title_james&#8221;&gt;WORDS &lt;\/div&gt; &lt;\/div&gt; &lt;div id=&#8221;button2&#8243;&gt;&lt;div id=&#8221;work_title&#8221; class=&#8221;title_mike&#8221;&gt;MORE WORDS &lt;\/div&gt; &lt;\/div&gt;and the script effecting it looks like this&lt;script<\/li>\n<li><img decoding=\"async\" src=\"http:\/\/www.gravatar.com\/avatar\/6f199c1db380b547cee89af9ac40ef28?s=32&amp;d=identicon&amp;r=PG\" \/><br \/>\nJoel Pearson<br \/>\ndebugging google-chrome angularjs webstorm<br \/>\nI followed Vojta&#8217;s video about how to do debug angularjs in Webstorm.http:\/\/www.youtube.com\/watch?v=MVw8N3hTfCI&amp;feature=plcpHowever, every time I stop the testacular server in webstorm. I have to reinstall the webstorm debug extension for chrome. Am I doing something wrong? Do I need to install it into some Chrome profile or something?<\/li>\n<li><img decoding=\"async\" src=\"http:\/\/www.gravatar.com\/avatar\/447928772df35b0ee7b73007fdd6d23b?s=32&amp;d=identicon&amp;r=PG&amp;f=1\" \/><br \/>\nuser3002092<br \/>\njavascript html5 internet-explorer google-chrome asp.net-mvc-4<br \/>\nI have a really basic snippet of javascript code that works in Internet Explorer, but not Google Chrome. Here&#8217;s the line it breaks on:var formChildren = document.getElementById(&#8216;myForm&#8217;).children;This is the first line in my script. The error I receive is: cannot read property &#8216;children&#8217; of null.Does anyone know if I&#8217;m missing something? I can&#8217;t imagine why Chrome would error out on such a basic line.This is part of an MVC 4 project if that makes any difference.Thank you in advance!<\/li>\n<li><img decoding=\"async\" src=\"http:\/\/www.gravatar.com\/avatar\/1074f0a031cca12280359231a87662af?s=32&amp;d=identicon&amp;r=PG\" \/><br \/>\nEric<br \/>\ngoogle-chrome svg<br \/>\nI have an SVG document hereOn firefox, everything works as expected. However, google chrome appears to think this line:&lt;image &#8230; xlink:href=&#8221;\/textures\/Cube top.png&#8221; \/&gt;references http:\/\/minecraft-cube.comuv.com\/index.svg, not http:\/\/minecraft-cube.comuv.com\/textures\/Cube top.png, resulting in unexpected recursion.Obviously, I&#8217;d much prefer it if it used the image I specify.What is going on here?EDIT: Filed bug #68732 in Chrome. May still be doing something wrong though.<\/li>\n<li><img decoding=\"async\" src=\"http:\/\/www.gravatar.com\/avatar\/cd9b233bb3beae1b97e1499a010373b2?s=32&amp;d=identicon&amp;r=PG\" \/><br \/>\nknobcreekman<br \/>\njquery asp.net-mvc-3 internet-explorer google-chrome firefox<br \/>\nI have some markup like this:&lt;li id=&#8221;myId&#8221; data-foo=&#8221;Bar&#8221;&gt;Text&lt;\/li&gt;In IE, I am succesfully getting the value of data-foo with $(&#8216;#myId&#8217;).data(&#8216;foo&#8217;), but it is not returning anything in Chrome or Firefox. For what it&#8217;s worth info: The page is generated by asp.net mvc from a template. The function that is trying to access data-foo is called from a popup launched from the page containing the &lt;li&gt; element above. I have also tried $(&#8216;#myId&#8217;).attr(&#8216;data-foo&#8217;) with no luck eitherTha<\/li>\n<li><img decoding=\"async\" src=\"http:\/\/www.gravatar.com\/avatar\/1a4bfbe1fb6409223e77969217e9e884?s=32&amp;d=identicon&amp;r=PG\" \/><br \/>\nRolPasto<br \/>\njinja2 typeerror python-3.2<br \/>\nI am using Ubuntu 12.04, python 3.2.3 and jinja2 2.6-1.When passing the option lstrip_blocks to the Environment as follows, I get this error &#8220;**TypeError: \\__init__() got an unexpected keyword argument &#8216;lstrip_blocks&#8217;**&#8221;from jinja2 import Environment, PackageLoader env = Environment(loader=PackageLoader(&#8216;jinja2_hello&#8217;,&#8217;.&#8217;),lstrip_blocks=True) template = env.get_template(&#8216;template_hello.html&#8217;) output = template.render() print(output)The template template_hello.html contains only:helloThe other op<\/li>\n<li><img decoding=\"async\" src=\"http:\/\/www.gravatar.com\/avatar\/c00f8ba468a4c94463a025f09b639d74?s=32&amp;d=identicon&amp;r=PG\" \/><br \/>\nApple.<br \/>\nactionscript-3 debugging typeerror flash-cs6<br \/>\nMay I know what kind of errors are this? And what are they telling me? How should I fix these errors? TypeError: Error #1009: Cannot access a property or method of a null object reference.at Options()TypeError: Error #1009: Cannot access a property or method of a null object reference.at Options\/setName()at flash.events::EventDispatcher\/dispatchEventFunction()at flash.events::EventDispatcher\/dispatchEvent()at fl.controls::TextInput\/handleKeyDown()Thank You!<\/li>\n<li><img decoding=\"async\" src=\"http:\/\/i.stack.imgur.com\/RN9Mw.jpg?s=32&amp;g=1\" \/><br \/>\nAndy Hayden<br \/>\npython pandas typeerror dataframes<br \/>\nI have a dictionary object of the form:my_dict = {id1: val1, id2: val2, id3: val3, &#8230;}I want to create this into a dataframe where I want to name the 2 columns &#8216;business_id&#8217; and &#8216;business_code&#8217;. I tried:business_df = DataFrame.from_dict(my_dict,orient=&#8217;index&#8217;,columns=[&#8216;business_id&#8217;,&#8217;business_code&#8217;])but it says from_dict doesn&#8217;t take in a columns argument.TypeError: from_dict() got an unexpected keyword argument &#8216;columns&#8217;<\/li>\n<li><img decoding=\"async\" src=\"http:\/\/www.gravatar.com\/avatar\/17dd07f25f7790600743243664c19558?s=32&amp;d=identicon&amp;r=PG\" \/><br \/>\nsunburst<br \/>\njavascript jquery syntax-error typeerror uncaught-exception<br \/>\nI&#8217;ve helped a friend 3 years ago to develop a small website. It worked perfectly until some days ago. I&#8217;ve found by inspecting it, that it throws a bunch of jQuery syntax errors (also related to other jQuery plugins).The errors displayed on the console are:Uncaught SyntaxError: Unexpected token, jquery.colorbox-min.js:4 Uncaught SyntaxError: Unexpected number jquery.orbit-1.2.3.min.js:10 Uncaught SyntaxError: Unexpected identifier<\/li>\n<li><img decoding=\"async\" src=\"http:\/\/www.gravatar.com\/avatar\/769cdb6136e7c884866b5373bd63599c?s=32&amp;d=identicon&amp;r=PG\" \/><br \/>\nElvisLikeBear<br \/>\njquery python django typeerror<br \/>\nWhile running the program i am getting the following error messageCaught TypeError while rendering: __init__() got an unexpected keyword argument &#8216;use_decimal&#8217;Here is my code i am using jquery 1.6.4 def load_charts(chart_list=None, render_to=&#8221;):embed_script = (&#8216;&lt;script type=&#8221;text\/javascript&#8221;&gt;\\n&#8221;var _chartit_hco_array = %s;\\n&lt;\/script&gt;\\n&#8221;&lt;script src=&#8221;%s&#8221; type=&#8221;text\/javascript&#8221;&gt;\\n&lt;\/script&gt;&#8217;)if chart_list is not None:if isinstance(chart_list, (Chart, PivotChart)):chart_<\/li>\n<li><img decoding=\"async\" src=\"http:\/\/graph.facebook.com\/100003597410550\/picture?type=large\" \/><br \/>\nuser2975192<br \/>\npython syntax typeerror<br \/>\nWhy would the codeprint(&#8220;Average =&#8221; (sum\/count))produce a type error and not a syntax error, seeing as a comma is missing?Thanks.<\/li>\n<li><img decoding=\"async\" src=\"http:\/\/i.stack.imgur.com\/WaPKm.gif?s=32&amp;g=1\" \/><br \/>\nSubhrajyoti Majumder<br \/>\njava generics typeerror instanceof<br \/>\nPossible Duplicate:Java: Instanceof and Generics I am trying to write a function which cast a generic List to specific type List. Find the code below public &lt;T&gt;List&lt;T&gt; castCollection(List srcList, Class&lt;T&gt; clas){List&lt;T&gt; list =new ArrayList&lt;T&gt;();for (Object obj : srcList) {if(obj instanceof T){&#8230;}}return list; }But obj instanceof T showing a compilation error &#8211; Cannot perform instanceof check against type parameter T. Use instead its erasure Object &gt;instead since f<\/li>\n<li><img decoding=\"async\" src=\"http:\/\/www.gravatar.com\/avatar\/c670c60731d8f22db4d3ad3a4673e76a?s=32&amp;d=identicon&amp;r=PG\" \/><br \/>\nyossi<br \/>\npython version lxml typeerror<br \/>\nI am using python 2.7 and i am trying to use lxml but when i try using lxml.etree i get this error:RuntimeWarning: compiletime version 2.6 of module &#8216;lxml.etree&#8217; does not match runtime version 2.7And then this error :File &#8220;lxml.etree.pyx&#8221;, line 123, in init lxml.etree (src\/lxml\/lxml.etree.c:160385)TypeError: encode() argument 1 must be string without null bytes, not unicodeI have tried installing using easy_install and using pipAfter installing i see this meassage :Installed \/usr\/lib\/python2.6\/<\/li>\n<li><img decoding=\"async\" src=\"http:\/\/www.gravatar.com\/avatar\/a0d0e6bcb2ad8b702cd94d02c67295ce?s=32&amp;d=identicon&amp;r=PG\" \/><br \/>\nHoxieboy<br \/>\npython typeerror smtplib<br \/>\nAlright guys, I have looked on the interwebz for ages and simply could not find an answer to this. I have tried many suggestions but I cant seem to get it to work! I am attempting to send an email using python (smtplib and email modules) and the gmail service. Here are my imported packages:import time, math, urllib2, urllib, os, shutil, zipfile, smtplib, sys from email.mime.text import MIMETextand here is my def statement for sending the email:def sendmessage(): print(&#8216;== You are now sending an<\/li>\n<li><img decoding=\"async\" src=\"http:\/\/www.gravatar.com\/avatar\/d50c00f314748ecaac713844ce1a17a3?s=32&amp;d=identicon&amp;r=PG\" \/><br \/>\nBolster<br \/>\npython arguments tuples typeerror<br \/>\nFor example: mytuple = (&#8220;Hello&#8221;,&#8221;World&#8221;) def printstuff(one,two,three):print one,two,threeprintstuff(mytuple,&#8221; How are you&#8221;)This naturally crashes out with a TypeError because I&#8217;m only giving it two arguments when it expects three.Is there a simple way of effectively &#8216;splitting&#8217; a tuple in a tider way than expanding everything? Like:printstuff(mytuple[0],mytuple[1],&#8221; How are you&#8221;)<\/li>\n<li><img decoding=\"async\" src=\"http:\/\/www.gravatar.com\/avatar\/d3b02c9fd86f43e93303a465fe816b21?s=32&amp;d=identicon&amp;r=PG&amp;f=1\" \/><br \/>\nuser3328942<br \/>\njavascript html div preloader<br \/>\nI am designing a website and am having some issues on certain computers. Most computers show the site perfectly, but certain computers just load a blank grey screen. My work computer is one that has an issue, The website is http:\/\/holidayinnkilgoretx.com and loads fine on the home page and photo page, but when I go to http:\/\/holidayinnkilgoretx.com\/raa.php it messes up. Please let me know If i have something wrong in my code which is causing this. I checked all divs and closing tags etc.It also<\/li>\n<li><img decoding=\"async\" src=\"http:\/\/i.stack.imgur.com\/nXqM2.png?s=32&amp;g=1\" \/><br \/>\nGambit<br \/>\nactionscript-3 preloader<br \/>\nI have a two files: Main.swf and DataEnter.swf. Each has a Document Class. I try to load DataEnter.swf in Main.swf.Main.aspackage {import flash.events.*;import flash.display.MovieClip;import flash.net.URLRequest;import flash.net.URLLoader;import flash.display.Loader;public class Main extends MovieClip{ public function Main(){var loader: Loader = new Loader();loader.contentLoaderInfo.addEventListener(Event.COMPLETE, DataEnter_loadComplete);loader.contentLoaderInfo.addEventListener(IOErrorEvent<\/li>\n<li><img decoding=\"async\" src=\"http:\/\/www.gravatar.com\/avatar\/b35d89132773431ecef2281990bc6403?s=32&amp;d=identicon&amp;r=PG\" \/><br \/>\nLebowski156<br \/>\nflash actionscript-3 preloader<br \/>\nI was wondering what the best way to load my flash game would be. I know how to make an external preloader, but if I want to upload the .swf of the game to a site like newgrounds, Im guessing I need an internal preloader.I&#8217;ve tried a few times but my game only displays after the swf is 100% loaded. While its loading I just see white screen with grey &#8220;&#8230;&#8221; which im guessing is built into the flash player.I have a .fla called AsteroidsGame.fla which has a library of some classes, and the game&#8217;s st<\/li>\n<li><img decoding=\"async\" src=\"http:\/\/www.gravatar.com\/avatar\/1a074bef5fb42186c4bf4a8b38f664da?s=32&amp;d=identicon&amp;r=PG\" \/><br \/>\njonathanasdf<br \/>\nflex actionscript-3 preloader<br \/>\nI&#8217;m creating a custom preloader for a Flex app and have noticed the following behavior: when loading, the progress bar goes to 100%, then down then back up, and so on until the app is finished loading.When I put a trace in the dowloadprogress listener, I see that while the app is loading, both bytesLoaded and bytesTotal increase, but not necessarily at the same time.Code:private function onDownloadProgress(event:ProgressEvent):void {var loaded:int = event.bytesLoaded;var total:int = event.bytesT<\/li>\n<li><img decoding=\"async\" src=\"http:\/\/i.stack.imgur.com\/xq83Z.png?s=32&amp;g=1\" \/><br \/>\nAntonio Barcos<br \/>\njquery google-chrome typeerror preloader lowercase<br \/>\nI downloaded the QueryLoader plugin from http:\/\/www.gayadesign.com\/diy\/queryloader-preload-your-website-in-style\/ to preload the site before showing the content. However, the Chrome console shows the following message when I access to:Uncaught TypeError: Cannot call method &#8216;toLowerCase&#8217; of undefined Here&#8217;s the code:The problem is in the .toLowerCase() line:getImages: function(selector) {var everything = $(selector).find(&#8220;*:not(script)&#8221;).each(function() {var url = &#8220;&#8221;;if ($(this).css(&#8220;background-i<\/li>\n<li><img decoding=\"async\" src=\"http:\/\/www.gravatar.com\/avatar\/f958cb183be90e48a5b58025f558fac1?s=32&amp;d=identicon&amp;r=PG\" \/><br \/>\nCummander Checkov<br \/>\njavascript jquery image preloader preloading<br \/>\nI am trying to find an image preloader script.While i found a few, none of them supports an event that is triggered when preloading is finished. Does anyone know of any script or jQuery plugin that will do this?Hope this question is appropriate for stackoverflow &#8211; if not, feel free to remove it in an instant.<\/li>\n<li><img decoding=\"async\" src=\"http:\/\/www.gravatar.com\/avatar\/e1f8a267cb9ac83a4b3eca967365e412?s=32&amp;d=identicon&amp;r=PG\" \/><br \/>\nKonrad<br \/>\nflash actionscript-2 preloader<br \/>\njust a quick question reguarding how to make a preloader animate backwards. So the bar decreases in width as the load number gets larger.Here&#8217;s my codeonClipEvent (enterFrame) {loading = _root.getBytesLoaded();total = _root.getBytesTotal();if (percent == undefined) percent = 0;percent -= (percent-((loading\/total)*100))*.25;per = int(percent);percentage = per+&#8221;%&#8221;;loadBar._width = per*9.70;if (percent&gt;99) {_root.gotoAndStop(2);} }Many thanks,Matt<\/li>\n<li><img decoding=\"async\" src=\"http:\/\/www.gravatar.com\/avatar\/badd4b9f754c5a3e5142eb187ae3f928?s=32&amp;d=identicon&amp;r=PG\" \/><br \/>\nZuriel Andrusyshyn<br \/>\njquery image append preloader preload<br \/>\nI have a javascript preloader that loads in an array of images to my page and then does a callback function after its finished.During that preload I want to append the current image being preloaded to the HTML page in a loading box. Here is my current code. The current code doesn&#8217;t work for each image but instead just displays the name of the last image loaded. What can I do to fix my preloader function so that during each loop it appends the correct name to my div?\/\/ Usage: $([&#8216;img1.jpg&#8217;,&#8217;im<\/li>\n<li><img decoding=\"async\" src=\"http:\/\/i.stack.imgur.com\/4LYak.jpg?s=32&amp;g=1\" \/><br \/>\nMohammad Adil<br \/>\njquery preloader<br \/>\nI am using the following approach to Preload the content of my website:$(window).load(function(){$(&#8216;#preLoader&#8217;).hide();$(&#8216;#container&#8217;).show(); });Now my #container div contains all my website content. I don&#8217;t want this to be shown until my body background image has completely loaded&#8230;So while the background image is loaded, the #preLoader div displays with an animated loader gif inside.The issue:There are some elements that do not always load (eg gravatars) due to the Server containing the res<\/li>\n<li><img decoding=\"async\" src=\"http:\/\/www.gravatar.com\/avatar\/965dd88de2bf006d0d3571e794de956b?s=32&amp;d=identicon&amp;r=PG\" \/><br \/>\nBrianFreud<br \/>\njquery google-chrome greasemonkey preloader userscripts<br \/>\nI&#8217;m trying to modify the various loaders out there so multiple scripts can be handled before the main function is called. This should load jQuery, then jQueryUI, and then call main() to actually start the userscript. However, it does loop through, but when it gets to main(), I get a console error from Chrome about jQuery being undefined.!function loader (i) {var requires = [ &#8216;http:\/\/ajax.googleapis.com\/ajax\/libs\/jquery\/1.7.1\/jquery.min.js&#8217;, &#8216;https:\/\/ajax.googleapis.com\/ajax\/libs\/jqueryui\/1.8\/j<\/li>\n<li><img decoding=\"async\" src=\"http:\/\/www.gravatar.com\/avatar\/ddff74f85ec141c016efa39130782c81?s=32&amp;d=identicon&amp;r=PG\" \/><br \/>\nSai Ye Yan Naing Aye<br \/>\njava naming-conventions uppercase lowercase<br \/>\nWhy should the first letter of a Java class be upper-cased? Is it not possible to run a program containing lower-cased class names? If it is possible, what&#8217;s the difference?<\/li>\n<li><img decoding=\"async\" src=\"http:\/\/i.stack.imgur.com\/xq83Z.png?s=32&amp;g=1\" \/><br \/>\nAntonio Barcos<br \/>\njquery google-chrome typeerror preloader lowercase<br \/>\nI downloaded the QueryLoader plugin from http:\/\/www.gayadesign.com\/diy\/queryloader-preload-your-website-in-style\/ to preload the site before showing the content. However, the Chrome console shows the following message when I access to:Uncaught TypeError: Cannot call method &#8216;toLowerCase&#8217; of undefined Here&#8217;s the code:The problem is in the .toLowerCase() line:getImages: function(selector) {var everything = $(selector).find(&#8220;*:not(script)&#8221;).each(function() {var url = &#8220;&#8221;;if ($(this).css(&#8220;background-i<\/li>\n<li><img decoding=\"async\" src=\"http:\/\/i.stack.imgur.com\/tZR6B.gif?s=32&amp;g=1\" \/><br \/>\nKlaas M<br \/>\njquery uppercase lowercase<br \/>\nI want a string to randomly alternate uppercase and lowercase letters.To do this I grab the content of class &#8220;post__title&#8221; into a string, explode that string into an array of letters. Then loop that array and randomly assign either 0 or 1 to each letter. If the value is 1, the letter should be transformed to uppercase, if the value is 0, the letter should be transformed to lower case. This then has to be reapplied to &#8220;post__title&#8221; replacing the old content.I&#8217;m quite inexperienced, but so far I h<\/li>\n<li><img decoding=\"async\" src=\"http:\/\/www.gravatar.com\/avatar\/93b5f3f69599410015b1229543f8deb3?s=32&amp;d=identicon&amp;r=PG\" \/><br \/>\nuser2450044<br \/>\nc uppercase lowercase tolower toupper<br \/>\nThis question already has an answer here:c &#8211; convert a mixed-case string to all lower case5 answersI have a char foo[SIZE]; \/\/(string) and have inputed it correctly using %s (as in it printfs the correct input), but now want to set it to lowercase. So I tried using if (isupper(*foo)) *foo=tolower(*foo); ie when I do:printf(&#8220;%s&#8221; foo); \/\/I get the same text with upper caseThe text does not seem to change. Thank you.<\/li>\n<li><img decoding=\"async\" src=\"http:\/\/www.gravatar.com\/avatar\/14da0a77145571d61cee03ac6bb0fb35?s=32&amp;d=identicon&amp;r=PG\" \/><br \/>\nWebnet<br \/>\nphp class methods parent lowercase<br \/>\nThis problem is pretty simple, im sure, i just dont know the answer.I have a class that extends another class. When I try parent::method to use the functionality from the parent class, I get &#8220;Call to undefined method &#8216;parentClass&#8217;::getid()&#8221;.What its doing is, it is forcing the method name to be lowercased. from the example above, parent::getId() is being forced to parent::getid(); I do not know why this is? Any thoughts?Code exampleClass myClass extends OtherClass { public function getProductLi<\/li>\n<li><img decoding=\"async\" src=\"http:\/\/www.gravatar.com\/avatar\/a1cc91085ff58f273cce59129475c2b8?s=128&amp;d=identicon&amp;r=PG\" \/><br \/>\nthink123<br \/>\njavascript string lowercase<br \/>\nThis is all the code I have:var ans = 334; var temp = ans.toLowerCase(); alert(temp);And then it gives me this error:&#8217;undefined&#8217; is not a function (evaluating &#8216;ans.toLowerCase()&#8217;)I don&#8217;t know where I got this wrong. I always thought that numbers can also be parsed, with no change in result (maybe that&#8217;s where I stuffed up).But if that&#8217;s not the error, can someone write a custom makeLowerCase function, to make the string lower case, perhaps using regex or something?<\/li>\n<li><img decoding=\"async\" src=\"http:\/\/www.gravatar.com\/avatar\/16f69ca344773bd6c34970b2f6186d61?s=128&amp;d=identicon&amp;r=PG\" \/><br \/>\nAlexey Frunze<br \/>\nc string uppercase lowercase<br \/>\nMy code is here:char* kropecka(char* tab) {int a=0,b=0;char* zwr;zwr=(char*)malloc(30*sizeof(char));for(a;strlen(tab);a++){if(tab[a]!=&#8217;.&#8217;){if(isupper(tab[a]))zwr[b]=tolower(tab[a]);if(islower(tab[a]))zwr[b]=toupper(tab[a]);b++;}}zwr[b]=&#8217;\\0&#8242;;return zwr; }There is no errors, warnings or something like this. But program crashed when I give him some string:&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212; Microsoft Visual C++ Debug Library&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212; Debug Assertion Failed!Program: &#8230;s\\Visual Studio2010\\<\/li>\n<li><img decoding=\"async\" src=\"http:\/\/www.gravatar.com\/avatar\/be25d69db79ef4ac937f0b5fccda2dee?s=32&amp;d=identicon&amp;r=PG\" \/><br \/>\ncapede<br \/>\nc string lowercase<br \/>\ni had a few line here : #include &lt;stdio.h&gt;char *tolower(char *data) {char *p = data;while(*p){printf(&#8220;nilai p : %c\\n&#8221;,*p);if(*p &gt;= &#8216;A&#8217; &amp;&amp; *p &lt;= &#8216;Z&#8217;){*p += (&#8216;a&#8217; &#8211; &#8216;A&#8217;);}p++;}return p;}int main() {char *a = &#8220;HajAR BleH&#8221;;char *b = tolower(a);printf(&#8220;nilai b : %s\\n&#8221;,b);printf(&#8220;nilai a &#8211; A : %d\\n&#8221;,&#8217;a&#8217; &#8211; &#8216;A&#8217;); return 0; }next, compiled, running on gdb, and segmentation tracedxxx@aaa:\/tmp$ gcc -o aa aa.c &#8211;debug xxx@aaa:\/tmp$ gdb -q aa Reading symbols from \/tmp\/aa&#8230;done. (gdb) r St<\/li>\n<\/ul>\n<p>Web site is in building<\/p>\n","protected":false},"excerpt":{"rendered":"<p>ProfK asp.net javascript jquery I&#8217;m trying to call a Page Method using a jQuery &#8216;attached&#8217; event function, in which I like to use the closure to keep the event target local, as below, but page method calls declare several &#8216;error&#8217; functions, and I would like to use one function for all of them. If, in [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-3148","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"_links":{"self":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts\/3148","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/comments?post=3148"}],"version-history":[{"count":0,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts\/3148\/revisions"}],"wp:attachment":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/media?parent=3148"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/categories?post=3148"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/tags?post=3148"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}