Posts

Showing posts from August, 2014

algorithm - Bellman-Ford: all shortest paths -

i've implemented bellman-ford find distance of shortest path when edges have negative weights/distances. i've not been able return shortest paths (when there ties shortest). managed shortest paths (between given pair of nodes) dijkstra. possible bellman-ford? (just want know if i'm wasting time trying) if alter second step of bellman-ford algorithm little bit can achieve similar: for 1 size(vertices)-1: each edge uv in edges: // uv edge u v u := uv.source v := uv.destination if u.distance + uv.weight < v.distance: v.distance := u.distance + uv.weight v.predecessor[] := u else if u.distance + uv.weight == v.distance: if u not in v.predecessor: v.predecessor += u where v.predecessor list of vertices. if new distance of v equals path isn't included yet include new predecessor. in order print shortest paths use like procedure printpaths(vertex current, vertex start, list used, string path): if current == start: print start.id + " -> " + path else...

php - Adding a library to Composer in Symfony 2.1+ -

i'm trying add libraries composer.json the libraries located @ symfony/vendor/foo/lib/foo/* before loaded them under registernamespaces method in autoload.php as: ... 'foo' => __dir__.'/../vendor/foo/lib', ... i have tried adding them "foo": "*" , "foo/foo": "*" in composer.json no avail. documentation seems extremely lacking in regard. you have @ composers documentation , because autoloading taken on there. start update ones symfony 2.0 application i've used compare against current symfony standard . problem should have @ app/autoload.php . there can find $loader = @include __dir__.'/../vendor/autoload.php' in line 5 (within if -expression, thats not important here). means, long let composer install packages don't have take autoloading anymore. of course must call php composer.phar install first. if don't know name of package, have @ packages composer.json -file, or search @ packagist

Rails, Devise: current_user is nil when overriding RegistrationsController -

rails 3.2.5, devise 2.1 using devise authenticate users, , having problem when creating new user. a user belongs account create using before_save filter in user model. works fine , has while. new code requires user's account information part of create method. rely on parameter passed in request, not candidate model logic. have overridden devise::registrationscontroller#create method: class devisecustom::registrationscontroller < devise::registrationscontroller def create super # call devise's create account = current_user.account # fail! (current_user nil) account.partner_id = current_partner account.save! end end current_user nil causes code fail. in case of failure, can see user , account records are being saved in database -- logs show commit , , logging self.inspect shows context (params, , more) still present. i have thought current_user available in context -- what's appropriate way @ user have created? thanks preface : i've never used devise....

c# - MVC ViewModel Class -

i using c# mvc razor. say if have view shows list, drop down, , 2 text boxes. should of information kept in 1 class pass view? i can't stress enough importance of using viewmodels passing data controllers view. stated in question, you're doing excellent start! so .. how it. public class indexviewmodel // or detailsviewmodel or whatever action method { public ienumerable<foo> foos { get; set; } public selectlist dropdownbox { get; set; } public string name { get; set; } // textbox 1 public string description { get; set; } // textbox 2 } ok. lets see i've done. i've passed information view requires. nothing more, nothing less. -exact- info. the foos list of foo can loop through render. (pro tip: use displaytemplates render out custom type / collections of custom types). i've suggested in passing in selectlist drop down contents, etc. people don't (which fine). instead pass in collection of items render in drop down list, find far leaky. key r...

MySQL Procedure does not compile - Error on delete with variable -

i'm writing first procedure , ge error. i've reduced error delete line unsure why. can spot issue here? variable? drop procedure if exists mpt_proc; delimiter $$ create procedure mpt_proc modifies sql data begin #-- declare statements declare v_user_id int default 0; declare no_more_rows boolean; declare v_loop_cntr int default 0; declare v_num_rows int default 0; declare c_userfiles cursor select distinct f.user_id mpt_stg_fileupload f f.status = 'a'; #-- accepted declare continue handler not found set no_more_rows = true; open c_userfiles; #-- loop through each user_id found pending the_loop: loop fetch c_userfiles v_user_id; #-- break out of loop if #-- 1) there no records, or #-- 2) we've processed them all. if no_more_rows close c_userfiles; leave the_loop; end if; delete mpt_stg_fileupload s s.user_id = v_user_id; commit; #--commiting changes user end loop the_loop; end if; end delimiter ; mysql doesn't allow provide alias table deleting in delete st...

Jenkins SMTP TLS -

i'm trying setup jenkins use our company's smtp server email build notifications. using tls encryption method on port 587. can not seem email notification work though. here hudson.tasks.mailer.xml file can see config (i've removed smtp auth user , password , changed smtphost in case) <hudson.tasks.mailer_-descriptorimpl> <helpredirect/> <defaultsuffix></defaultsuffix> <hudsonurl>http://localhost:8080/</hudsonurl> <smtpauthusername></smtpauthusername> <smtpauthpassword></smtpauthpassw$ <adminaddress></adminaddress> <smtphost>pod#####.outlook.com</smtphost> <usessl>true</usessl> <smtpport>587</smtpport> <charset>utf-8</charset> </hudson.tasks.mailer_-descriptorimpl> it looks known issue, http://issues.hudson-ci.org/browse/hudson-2206 i not familiar apple os (which machine running jenkins) thought resolve issue using workaround mentioned. wasn't s...

Xpath expression to find non-child elements by attribute -

here's nice puzzle. suppose have bit of code: <page n="1"> <line n="3">...</line> </page> it real easy locate line element "n=3" within page element "n=1" simple xpath expression: xpath(//page[@n='1')/line[@n='3']). great, beautiful, elegant. suppose have encoding (folks familiar tei know coming from). <pb n="1"/> (arbitrary amounts of stuff) <lb n="3"/> we want find lb element n="3", follows pb element n="1". note -- lb element anywhere following pb : may not (and not) sibling, child of sibling of pb , or of pb 's parent, etc etc etc. so question: how search lb element n="3", follows pb element n="1", xpath? thanks in advance peter use : //pb[@n='1']/following::lb[@n='2'] | //pb[@n='1']/descendant::lb[@n='2'] this selects lb element follows specified pb in document order -...

How can I select a pixel by its spatial coordinates in Matlab? -

i want select pixel in image using floating-point numbers indexes. matlab documentation says possible using "spatial coordinates" . however, doesn't provide clues on how it. how can select pixel image using floating-point indexes ("spatial coordinates")? suppose have following code: i = imread('pout.tif') get_pixel_by_spatial_coords(i, 1.5, 3.63) what's real name of function get_pixel_by_spatial_coords ? i think linked article on spatial coordinates describing coordinate systems used various image plotting routines. your purpose, round number. depending on context, use 1 of: i(round(1.5), round(3.63)) i(floor(1.5), floor(3.63)) i(ceil(1.5), ceil(3.63) )

c++ - Trying to append a char string -

i know basic question can't seem append char string (\r\n) another. have tried using arrays (strcpy) , string objects no progress. send string java applet need append \r\n characters or sit , wait them. when use stirng c_str() function a c:\ucdhb2\gaia\async_ssl\no4\basic.cpp|163|error: request member 'c_str' in 'readit', of non-class type 'std::string*'| error. appreciated. char readit[45]; cin >> readit; strcpy( readit, "\r\n" ); ssl_write( ssl, readit, strlen(readit)); // doesn't work // ssl_write( ssl, "this works\n\r", strlen("this works\n\r")); // works a string should need. std::string readit; std::getline(std::cin, readit); readit += "\r\n"; ssl_write(ssl, readit.data(), readit.size()); as other commentators have noted, sample code needed use strcat rather strcpy . but, if go using char arrays, need check buffer overflow. std::string won't overflow.

java - android.database.CursorIndexOutOfBoundsException: No idea why -

i recieved error report user using android application. java.lang.runtimeexception: unable start activity componentinfo{c`om.gurpswu.gurps/com.gurpswu.gurps.home}: android.database.cursorindexoutofboundsexception: index 0 requested, size of 0 @ android.app.activitythread.performlaunchactivity(activitythread.java:2669) @ android.app.activitythread.handlelaunchactivity(activitythread.java:2685) @ android.app.activitythread.access$2300(activitythread.java:126) @ android.app.activitythread$h.handlemessage(activitythread.java:2038) @ android.os.handler.dispatchmessage(handler.java:99) @ android.os.looper.loop(looper.java:123) @ android.app.activitythread.main(activitythread.java:4633) @ java.lang.reflect.method.invokenative(native method) @ java.lang.reflect.method.invoke(method.java:521) @ com.android.internal.os.zygoteinit$methodandargscaller.run(zygoteinit.java:858) @ com.android.internal.os.zygoteinit.main(zygoteinit.java:616) @ dalvik.system.nativestart.main(native method) caused by:...

Android WebView: is there a way to get a javascript stack trace? -

if have javascript running in webview, there way javascript string representation of current stack debugging purposes? @andyray pointed me eriwen.com/javascript/js-stack-trace. can use that, took basic functionality there , use: console.log("blah blah" + new error("stack trace").stack) also, @ bottom of js files do: //@ sourceurl=snarkloading.js where snarkloading.js name of file (it can include slashes). makes possible line numbers , file names stack traces when file included via eval.

mysql - Using mysql_query in PHP to show the user name is not working -

i trying create registration form, , have form working , people can create user's in database, when sign , redirects them admin.php . the name used create account doesn't show up, down row user name. should "welcome, user_name , logged in!" i can't name show else works! warning: mysql_fetch_array() expects parameter 1 resource, boolean given in c:\path\to\admin.php on line 25 warning: mysql_fetch_array() expects parameter 1 resource, boolean given in c:\path\to\login.php on line 36 admin: <?php require('db_config.php'); require_once('functions.php'); //if cookie still valid, recreate session if( $_cookie['logged_in'] == true ){ $_session['logged_in'] = true; $_session['user_id'] = $_cookie['user_id']; $_session['is_admin'] = $_cookie['is_admin']; } if( $_session['logged_in'] != true ){ //not logged in! send them form] header('location:login.php'); } //extract data logged in...

Profiling Python via C-api (How to ? ) -

i have used python's c-api call python code in c code , want profile python code bottlenecks. came across pyeval_setprofile api , not sure how use it. need write own profiling function? i thankful if can provide example or point me example. if need know amount of time spent in python code, , not (for example), in python code time spent, python profiling tools not want. write simple c code sampled time before , after python interpreter invocation, , use that. or, c-level profiling tools measure python interpreter c function call. if need profile within python code, wouldn't recommend writing own profile function. provide raw data, you'd still have aggregate , analyze it. instead, write python wrapper around python code invokes cprofile module capture data can examine.

android - Resizing a Flash loader after Event.COMPLETE doesn't work -

google suggests following not uncommon question: having loaded flash stage using loader, want resize it. however, if before content loaded, resizing image causes disappear. the proposed solution use event listener event.complete. here's code: public function flixeltest() { super(); // support autoorients stage.align = stagealign.top_left; stage.scalemode = stagescalemode.no_scale; myloader = new loader(); myloader.x = (stage.fullscreenwidth-640)/2; myloader.y = (stage.fullscreenheight-480)/2; addchild(myloader); var url:urlrequest = new urlrequest("stuff.swf"); myloader.load(url); myloader.contentloaderinfo.addeventlistener(event.complete, loadprodcomplete); } function loadprodcomplete(e:event):void{ myloader.height = 480; myloader.width = 640; } according every posting can find far online, solution should work. when event fires, loader done, , can resized. however, doesn't. commenting out lines modify .height , .width cause swf appear, uncommenting them , running...

asp.net mvc 4 - Why links generated with @Url.Action in JavaScript are not in lowercase when using AttributeRouting? -

i have code in javascript function: var url = '@url.action(mvc.membership.user.actionnames.update, mvc.membership.user.name)'; url += "?username=" + username; ul.append("<li><a href=" + url + "\>" + username + "</a></li>"); membership area . i'm using t4mvc refer controller , action names avoid magic strings... :) this javascript code part of view resides in membership area. usercontroller decorated way: [routearea("membership")] public partial class usercontroller : basecontroller and action method one: [get("users/update/{username}")] public virtual actionresult update(string username) the route in link this: http://localhost:8087/membership/user/update?username=leniel i expected be: http://localhost:8087/membership/users/update?username=leniel so question is: why link not in lowercase since other links in app being generated lower case letters? not supported or forgett...

bash and awk performance with clear and cursor up command -

i'm testing bash , awk script performance clear vs tput clear , tput cuu1 (cursor up) commands. implemented similar scripts in bash , in awk. bash: http://pastebin.com/0dsc0a71 awk: http://pastebin.com/waj9inrx admitting have written them in similar way, analyze different execution times. in bash script: clear bash command fast tput clear command and tput cuu1 expensive in awk script: tput cuu1 not expensive @ system( "clear" ); @ and clear bash command slower tput clear command @ "clear" | getline clear ( http://pastebin.com/afh3wfgr ) @ and clear bash command fast tput clear command so seems awk performs better tput cuu1 command bash , awk script, system() function slower other direct recall. @ adding cpu information @ the awk script uses less cpu bash script. bash script uses 4 times more cpu awk script. possible perform bash script? why tput cuu1 expensive in bash script? both awk , bash calling same external c...

excel vba - VBA macro -- hyperlink -

i'd create vba macro allow me edit selected hyperlinks in column , change "text display" same word all. example, if column: www.google.com/search=cars www.google.com/search=houses www.google.com/search=cities i want highlight 3 elements of column , change text display "google search" outcome this: google search google search google search edit: found macro similar want on microsoft support site , issue macro targets hyperlinks in sheet while i'd want select specific column edit hyperlinks. sub hyperlinkchange() dim oldtext string dim newtext string dim h hyperlink oldtext = "http://www.microsoft.com/" newtext = "http://www.msn.com/" each h in activesheet.hyperlinks x = instr(1, h.address, oldtext) if x > 0 if h.texttodisplay = h.address h.texttodisplay = newtext end if h.address = application.worksheetfunction. _ substitute(h.address, oldtext, newtext) end if next end sub this works on current selection: sub setlinktext() d...

jQuery address hash change trigger even if hash doesn't change -

i using plugin http://www.asual.com/jquery/address/ detecting hash changes , such website, uses navigation it's vital part of users experience. works perfect doing it, except doesn't trigger event if hash doesn't change/isn't different last hash url clicked, example if i'm on example.com/home , click homepage icon again doesn't reload page again, if using regular links does. haven't been able figure out how achieve links part of url. (not tags because use tags without being navigational part. great, thanks. $.address.change(function(event){ ///events triggered on hash change }); the onhashchange event aptly named, fires when hash changes. the solution aware of problem bind same function homepage icon's click event. also, jquery provides it's own event hash change: $(window).on("onhashchange", function (e) { route(); }) $(".icon").on("click", function(e) { location.hash == "#/" ? route(): null; }) als...

onchange - if else on javascript with the value of a select box (pure javascript) -

i'm working on select box have images instead of text, (on background css). <script type="text/javascript"> function onchange(element) { element.style.backgroundcolor = "yellow"; element.classname = "on_change"; } </script> <select onchange="onchange(this);"> <option value="1" style="background: url(/one.png) no-repeat scroll 0 0 transparent; width:32px; height:32px;"></option> <option value="2" style="background: url(/two.png) no-repeat scroll 0 0 transparent; width:32px; height:32px;"></option> <option value="3" style="background: url(/three.png) no-repeat scroll 0 0 transparent; width:32px; height:32px;"></option> </select> the problem how value of selected option , if 1 set 1 image , if 2 set image background using pure javascript (no jquery)? i know selectedindex key problem, i'm clueless of how use or how use ...

jquery - Hover over opaque menu [UPDATED] -

here fancy menu.. <script type="text/javascript"> $('#brand_logo').bind('inview', function(event, visible) { if (visible == true) { // console.log("visible"); $("#topnav").animate({ opacity: 1.0 }); // $(".head-wrap-left").hide(); } else { // console.log("invisible"); $("#topnav").animate({ opacity: 0.6 }); // $(".head-wrap-left").show(); } }); </script>​ there 1 problem.. if user reloads page , element not in viewport, defaults 1.0 opacity. how can fix this? have tried bind inview , mouseenter? this: $('#brand_logo').bind('inview mouseenter', function(event, visible) {..} you don't need use .find inview event should triggered if in viewport on refresh or load.

c - How to get VS or Xcode warning with something like "x = x++"? -

in spirit of undefined behavior associated sequence points such “x = ++x” undefined? , how 1 compiler complain such code? specifically, using visual studio 2010 , xcode 4.3.1, latter osx app, , neither warned me this. cranked warnings on vs2010 "all", , happily compiled this. (for record, vs2010's version added 1 variable xcode's version kept variable unchanged.) afaik, visual studio not detect such situations. , i'm not convinced there's point in doing that. i'd warning obvious case have educational value, not practical value. in general case issue in question takes place in situations *p = ++*q when p , q happen point same object. needless say, not detectable compiler.

sqlite3 - Calling out a form within a form (PHP) -

i'm trying call out form within form second form action not work. didn't parse. sample program have 1 main form attached submit button , inner form download button. updated code: <?php $fullpath = "staff.doc"; <form id="staff" name="staff" method="post" action="download_preview.php"> echo "<input type=\"hidden\" name=\"fullpath\" value=\"$fullpath\"/>"; echo "<input type=\"submit\" name=\"submit\" value=\"download\"/>"; echo "<input type=\"submit\" id=\"submit\" name=\"submit\" value\="submit\"/>"; echo "</form>"; <?php switch($_post['submit']) { case "submit": break; case "download": $fullpath = $_post['fullpath']; // download file opendir("$fullpath"); break; default: } ?> i have updated multiple handl...

.net - Does Azure WritePages for an existing blob works on Storage Emulator -

i have existing page blob on storage emulator. i'm trying write more bytes using writepages doesn't seem work. storage emulator support or doing wrong maybe? here's how i'm trying it. var account = cloudstorageaccount.parse("usedevelopmentstorage=true"); var blobclient = account.createcloudblobclient(); var blobcontainer = blobclient.getcontainerreference("mycontainer"); blobcontainer.createifnotexist(); blobcontainer.setpermissions(new blobcontainerpermissions() { publicaccess = blobcontainerpublicaccesstype.blob }); var pageblob = blobcontainer.getpageblobreference("filepage.txt"); pageblob.fetchattributes(); byte[] data = file.readallbytes(@"c:\temp\moretext.txt"); array.resize(ref data, 512); pageblob.writepages(new memorystream(data), 0); thanks i believe must have made mistake either blob or blob may not a page blob. used following code , verify writepage api work fine on emulator: var account = cloudstorageaccount...

asp.net mvc 3 - Telerik MVC DatePicker Disable days of week -

is there way have datepicker allow user choose sunday/saturday popup dates since week starts sunday & ends on saturday? i have 2 datepickers serving range (from & to) , validation allow user select sunday in box , saturday in box. any ideas? maybe can add jquery event handler links week-days (the weekend days have weekend class on td) , prevent default behavior, whenever click on them don't anything. may want change style of weekday values user don't annoyed clicking , not getting desired efect

Strange shell behaviour -

here simple bash script: a="asd" b="qf" echo "$a.$b" echo "$a_$b" it's output is: asd.qf qf why second line not " asd_qf " " qf "? because haven't defined variable named a_ . second printout work, use: echo "${a}_$b"

android - Issue in calling Activity from the IntentService class -

in app using intentservice class start activity in background. issue got suppose intentservice class start activity, open activity, after don't close activity. notice when intentservice class again want start same activity not called same activity not close. question how can started same activity again , again whether open or close intentservice class. code in intentservice class public class alarmservice extends intentservice { public void oncreate() { super.oncreate(); } public alarmservice() { super("myalarmservice"); } @override public int onstartcommand(intent intent, int flags, int startid) { super.onstartcommand(intent, startid, startid); return start_sticky; } @override protected void onhandleintent(intent intent) { startactivity(new intent(this, alarmdialogactivity.class).setflags(intent.flag_activity_new_task)); } } use launchmode tag in manifest file <activity android:name=".activityname" android:launchmode="singletask" />...

scripting - calling an interactive bash script over ssh -

i'm writing "tool" - couple of bash scripts - automate installation , configuration on each server in cluster. the "tool" runs primary server. tars , distributes it's self (via scp) every other server , untars copies via "batch" ssh. during set-up tool issues remote commands such following primary server: echo './run_audit.sh' | ssh host4 'bash -s' . approach works in many cases, except when there's interactive behavior since standard input in use. is there way run remote bash scripts interactively on ssh? as starting point, consider following case: echo 'read -p "enter name:" name; echo "your name $name"' | ssh host4 'bash -s' in case above prompt never happens, how work around that? thanks in advance. run command directly, so: ssh -t host4 bash ./run_audit.sh for encore, modify shell script reads options command line or configuration file instead of stdin (or in preference stdin...

apache - Installing vTigercrm - why URL not found? -

i trying install vtigercrm-5.4.0.tar.gz file via ftp path.. , following following tutorial i uploaded source file. extracted http:///admin now, when try access > http://mydomain.com/admin or http://mydomain/admin/install.php i following error, the requested url /admin/ not found on server. additionally, 404 not found error encountered while trying use errordocument handle request. i googled issue, @ failure in resolving it, vtiger forums not helping regarding issue,, can somebodey tell me why happening? what possible solution? should have introduce .httaccess or else? i striking head last 10 hours, still @ failure, please me very bad , feeling real shame, doing basic blunder, damn me...i installed in admn folder , trying admin can believe?? sorry, sorry question..i struck head oneday long..and when knew issue, totally mad @ myself..let me admit foolish me..

c++ - How to ensure Singleton is not destroyed prematurely? -

in project, i'm working 4 singletons made scott meyer's way. 1 of them: levelrenderer& levelrenderer::instance() { static levelrenderer obj; return obj; } now 2 of singletons, levelrenderer , levelsymboltable interact each other. example, in method: void levelrenderer::parse(std::vector<std::string>& lineset) { levelsymboltable& table = levelsymboltable::instance(); /** removed code irrelevant **/ // each line in lineset boost_foreach(std::string line, lineset) { // each character in line boost_foreach(char sym, line) { /** code... **/ // otherwise else { sf::sprite spr; // used levelsymboltable's instance here... table.generatespritefromsymbol(spr, sym); // ^ inside levelrenderer /** irrelevant code... **/ } } } } now, although problem hasn't occurred yet. thing afraid of is, if levelsymboltable instance destroyed before call generatespritefromsymbol ? since used scott meyer way, singleton's instance allocated stack. hence is guaranteed...

matlab - Iregular plot of k-means clustering, outlier removal -

Image
hi i'm working on trying cluster network data 1999 darpa data set. unfortunately i'm not getting clustered data, not compared of literature, using same techniques , methods. my data comes out this: as can see, not clustered. due lot of outliers (noise) in dataset. have looked @ outlier removal techniques nothing have tried far cleans data. 1 of methods have tried: %% when outlier considered more 3 standard deviations away mean, determine number of outliers in each column of count matrix: mu = mean(data) sigma = std(data) [n,p] = size(data); % create matrix of mean values replicating mu vector n rows meanmat = repmat(mu,n,1); % create matrix of standard deviation values replicating sigma vector n rows sigmamat = repmat(sigma,n,1); % create matrix of zeros , ones, ones indicate location of outliers outliers = abs(data - meanmat) > 3*sigmamat; % calculate number of outliers in each column nout = sum(outliers) % remove entire row of data containing outlier data(any(outliers...

git mv command with Xcode, resource in Xcode disappears? -

i'm trying go through git commands , tutorials don't have use xcode source control. tried simple example picture. i dragged picture 0000.jpg project. i see picture 0000.jpg has "a" next in xcode i go command line , git commit -m "test" git mv 0000.jpg 1.jpg git commit -m "message" when go folder image lies, see gets changed 1.jpg. however, in xcode, still see image named 0000.jpg. if clean project , close , reopen xcode, name stays same. missing mv command? or xcode not doing it's supposed doing? thanks! xcode not aware of file system changes renaming file. have readd file inside of project or rename inside of xcode. this unlike eclipse , other java ides may have used.

c# - Password recovery not sending email. -

i have hyperlink build inside loginview , text set "forgot password". upon clicking hyperlink, password recovery control pops (with implementation of ajax modalpopup extender).the modalpopup work well. problem is, after entering username , in step2 after user had answered his/her security answer , when on hit on "submit" button, not proceed step 3 , no email send. however, password changed in database (i tried log in username , old password , did not work). here code @ passwordrecover.aspx : <asp:hyperlink id="hyperlink2" runat="server" style="margin-top:15px; text-align: right;">forget password</asp:hyperlink> <asp:modalpopupextender id="hyperlink2_modalpopupextender" runat="server" backgroundcssclass="modalbackground" dynamicservicepath="" enabled="true" popupcontrolid="panel1" targetcontrolid="hyperlink2" > </asp:modalpopupextender> ...

oop - Is this possible to an Interface inherit constants and methods from Super Interface in java? -

i know interface extends interface in java.so, possible inheriting constants , methods super interface.if have restrictions on inheriting please guide me knowledge it what mean extending constants?! child interfaces/classes inherit constants , methods super class/interface

onload - jquery 1.3.2 initial load fails on (document).ready in ie8, but works on refresh -

Image
using jquery 1.3.2.min, ui.1.7.3.min & main.js script functions. have strange behavior on ie8. when load page scripts download fully, jq not fire script16389: failed jquery.132.min.js, line 19 character 5841 three conditions can change behavior refresh page , works fine add alert first line , works fine. including main.js in page rather include for example $(document).ready(function(){ alert("now works!); any theories or suggestions, code on reload or alert works 100% thx art onload - jquery 1.3.2 initial load fails on (document).ready in ie8, works on refresh - stack overflow stack overflow questions developer jobs documentation beta tags users current community help chat stack overflow meta stack overflow communities sign up or log in customize list. more stack exchange communities company blog tour start here quick overview of site center detailed answers questions might ha...