load

SWIG: Ruby overloading problems

Hi, I have a sinatra web application and a C++ library that I can 'require' in sinatra (ruby) using bindings created by swig. I also have a second -very similar- library, in which the function names are partially the same as in the first one. When I require them both, the one that is loaded first 'wins', i.e. calls to the ambiguous fun...

JQuery .load() callback function

I've seen lots of questions and solutions to problems like this but nothing has worked for me. I have this: function() { $("#bdiv").load("bosses.php #icc10n",function(){ return $("#bdiv").html(); }); } But it's not working. To clarify, I want to load content into #bdiv and then return the contents of #bdiv. But it seem...

Fading in large images in Chrome

Hello, gurus! I'm having some trouble fading in large images, but only in Chrome. Here's the absolutely basic setup: $(document).ready(function(){ var img = new Image(); $(img) .hide() .load(function(){ $(this).fadeIn(3000) }) .attr("src", "files/originals/01.jpg") $("body").append(img) }); ...

Difference between AddLoadEvent and function load of jQuery

Hi everyone, I'm trying find an explanation to the following question, I looked around and haven't found any awnser so far: What is the the difference between the Simon Willison's code for the AddLoadEvent function and the load function from jQuery? Here are the links: 1 ) AddLoadEvent code : http://simonwillison.net/2004/May/26/addL...

UIWebView load problems but Safari works fine

UIWebView fails to load a web page (ex:http:/www.ncm.com), but Safari loads it fine. It reports a tag mismatch and only loads half the page. But Safari and other browser handle the content correctly? Is UIWebView faulty? ...

Load Tframe from bpl to application

I am trying to load a tframe inside a delphi package (bpl) to be shown in my main app please give me code for both package and application. ...

SWIG: Avoid name clashes

What is the best way to avoid name clashes in SWIG generated functions? I have two different C++ classes with partially identical function names. When I call such a function on an object, given both classes are loaded in the target language, it seems related to which library was loaded first, which function gets actually executed. It ha...

Running JavaScript function before page load (setting background of appropriate size)

I've got an image background which content I want to be always visible, no matter what is the user's resolution. Therefore, I want to be able to determine what is the resolution and set appropriate background image file before page loads, on the very beginning. Is it possible somehow? ...

Jquery Load based on hash tag working only in Safari

Hello There, I am using a jquery function to take the value of the hash tag in the URL and load that URL into a div id'd 'inload_content'. As seen at http://www.divethegap.com/update/community/ (# When testing only use the 2 test videos at the bottom as the others are not connected to URLs yet. In Safari this works perfectly both on OS...

Error using load command to open .mat file in Matlab

Here's a part of my code where I am entering a name of the .mat file, which is located in the same folder as my code. However it does not identify the file name and gives an error: "??? Error using ==> load Unable to read file 'q_5wells_yearly_CMG.mat': No such file or directory." q_MethodType=input('Do you want to use q from "CMG", ...

Help with jQuery .load

I have a page that's content is already inside a tab, and don't want to use a tab inside a tab. There will be 4 years 2010, 2009, 2008, 2007 that are anchors across the top of the #content div. When you click a year, it should load the specific content via jQuery's ajax load functionality into the div#content. That is easy enough. Is it...

How to implement MySQL::"LOAD DATA LOCAL INFILE" in PHP?

We have to implement the import procedure. The quantities of data is about 100 megabytes for one CSV files (the files already resides on server, so no upload necessary). Any advice on whether to implement the bulk "LOAD DATA LOCAL INFILE" or row-by-row "INSERT/REPLACE" on importing data into database. I've checked that "LOAD DATA LOCA...

can't get jQuery .load to load content into div

I have a list as such : <ul id="yearMenu"> <li>Select a year</li> <li><a href="AJAX/2010PR.html">2010</a> |</li> <li><a href="AJAX/2009PR.html">2009</a> |</li> <li><a href="AJAX/2008PR.html">2008</a> |</li> <li><a href="AJAX/2007PR.html">2007</a> |</li> <li><a href="AJAX/2006PR.html">2006</a> |</li> <li><a href="AJAX/2005P...

Unreasonable difference between MySQL dump and load times

I'm dumping a database into a file (piping the dump through gzip) and it takes about 2 minutes to create a 300MB dump.sql.gz file. When loading the file back into MySQL (the dump begins with dropping the tables), the load takes around 30 minutes!! What can be the reason for such a huge difference in times? Are there any general tips fo...

Symbian: kern-exec 3 panic on RLibrary::Load

Hello, I have troubles with dynamic loading of libraries - my code panics with Kern-Exec 3. The code is as follows: TFileName dllName = _L("mydll.dll"); TFileName dllPath = _L("c:\\sys\\bin\\"); RLibrary dll; TInt res = dll.Load(dllName, dllPath); // Kern-Exec 3! TLibraryFunction f = dll.Lookup(1); if (f) f(); I receive panic on ...

display loading graphic while iframe loads content from other domain

I need a loading graphic to appear for pages in a lightboxed iframe with a different domain than the parent (checkout.netsuite.com). The pages that aren't triggering the graphic aren't requested via ajax (ie. no $.post()). The page that does correctly call the loading graphic is requested via $.post(). 3 steps to see the difference betw...

Is there a 64 bit TclPro ?

I am trying to install TclPro1.4 on 64 bit host. Here is what uname -a returns: Linux hp1 2.6.18-194.11.1.el5 #1 SMP Tue Aug 10 19:05:06 EDT 2010 x86_64 x86_64 x86_64 GNU/Linux I have installed TclPro1.4 from corresponding iso disk image (it is available by the link mentioned above), but it installed 32 bit libraries instead of 64 bi...

ruby: how to load .rb file in the local context

How this simple task can be done in Ruby? I have some simple config file === config.rb config = { 'var' => 'val' } I want to load config file from some method, defined in main.rb file so that the local variables from config.rb became local vars of that method. Something like this: === main.rb Class App def loader load('co...

Load shared memory in C

So Im making a Load.c file, that basically will load a bunch of "students" into shared memory. The students are stored in a struct that looks like this: struct StudentInfo{ char fName[20]; char lName[20]; char telNumber[15]; char whoModified[10]; }; Anyways I need to load this in shared memory, we were given some sample code. and we a...

jQuery.load(function(){}) event doesn't work in collab with .get()?

So I have this script on a website i'm working on, which basically loads images from a database and puts them in a div. When all the images are loaded, I want it to fire a scroller plugin (smoothdivscroll). But I can't find a way to make the last part work. Here is the code: $.get("pages/photosgigs.php", { gig: $(this).attr("id")}, fun...