Questions tagged [load]

A measure of the amount of work a computer is performing. CPU load is closely related too, but not exactly the same as CPU utilization.

In computing (typically UNIX), load is a measure of the amount of computational work that a computer system performs.

All Unix and Unix-like systems generate a metric of three "load average" which represent the system load during the last one-, five-, and fifteen-minute periods.

7165 questions
62
votes
7 answers

Load and execute javascript code SYNCHRONOUSLY

Is there a way to load and execute a javascript file in a synchronous way just like a synchronous XMLHttpRequest? I'm currently using a sync XMLHttpRequest and then eval for this, but debugging that code is very difficult... Thanks for your…
Van Coding
  • 24,244
  • 24
  • 88
  • 132
60
votes
6 answers

Unloading the Assembly loaded with Assembly.LoadFrom()

I need to check the time amount to run GetTypes() after loading the dll. The code is as follows. Assembly assem = Assembly.LoadFrom(file); sw = Stopwatch.StartNew(); var types1 = assem.GetTypes(); sw.Stop(); double time1 =…
prosseek
  • 182,215
  • 215
  • 566
  • 871
58
votes
4 answers

How to catch error in jQuery's load() method

I'm using jQuery's .load() method to retrieve some data when a user clicks on a button. After the load successfully finishes, I show the result in a
. The problem is, sometimes an error occurs in load() while retrieving the data. How can I…
M Aung
56
votes
2 answers

File loading by getClass().getResource()

I have followed the way of loading the resource file by using getClass.getResource(path). The snippet of code is here : String url = "Test.properties"; System.out.println("Before printing paths.."); System.out.println("Path2: "+…
AnjanN
  • 603
  • 1
  • 5
  • 9
55
votes
3 answers

Method to dynamically load java class files

What would be a good way to dynamically load java class files so that a program compiled into a jar can read all the class files in a directory and use them, and how can one write the files so that they have the necessary package name in relation to…
MirroredFate
  • 12,396
  • 14
  • 68
  • 100
54
votes
4 answers

investigating apache benchmark failed request

I am just start using AB just today. Read couple of AB tutorial on new and thought give it a try for load testing my site. After using it couple of time I got huge number of failed request. Can you explain what is mean by a failed request? How can I…
user680505
  • 543
  • 1
  • 5
  • 6
51
votes
5 answers

How do I load an url in iframe with Jquery

I want to load an iframe on click, this is what I have so far: $("#frame").click(function () { $('this').load("http://www.google.com/"); }); It doesn't work. This is the complete code: JS Bin
Youss
  • 4,196
  • 12
  • 55
  • 109
51
votes
6 answers

Fade in each element - one after another

I am trying to find a way to load a JSON page to display my content, which I currently have. But I am trying to fade in each element one after another? Is anyone familiar with a way to do that? Fade in each element with a slight delay? Here is an…
user39980
50
votes
3 answers

jquery callback after all images in dom are loaded?

How can I fire an event when all images in the DOM are loaded? I've googled a lot. I've found this, but it doesn't seem to work: jQuery event for images loaded
Dee
  • 3,185
  • 10
  • 35
  • 39
50
votes
7 answers

Best way to cache images on ios app?

Shortly, I have an NSDictionary with urls for images that I need to show in my UITableView. Each cell has a title and an image. I had successfully made this happen, although the scrolling was lagging, as it seemed like the cells downloaded their…
Sti
  • 8,275
  • 9
  • 62
  • 124
49
votes
5 answers

Load package dynamically

Is it possible to load a specific package during runtime? I want to have a kind of plugins where each one has the same functions than the others but with different behaviour, and depending on the configuration file, load one or other.
Pepeluis
  • 931
  • 2
  • 10
  • 18
49
votes
2 answers

How do you dynamically compile and load external java classes?

(This question is similar to many questions I have seen but most are not specific enough for what I am doing) Background: The purpose of my program is to make it easy for people who use my program to make custom "plugins" so to speak, then compile…
Shadowtrot
  • 710
  • 1
  • 7
  • 13
48
votes
7 answers

Can I load external stylesheets on request?

$.getScript('ajax/test.js', function() { alert('Load was performed.'); }); .. like the above code which loads an external JS on request, is there something similar available to load an external CSS stylesheet when required? Like for example when…
eozzy
  • 66,048
  • 104
  • 272
  • 428
45
votes
10 answers

ERROR 2068 (HY000): LOAD DATA LOCAL INFILE file request rejected due to restrictions on access

comment I'm trying , mysql> LOAD DATA LOCAL INFILE '/var/tmp/countries.csv' INTO TABLE countries FIELDS TERMINATED BY ',' ENCLOSED BY '"' LINES TERMINATED BY '\n' IGNORE 1 LINES…
42
votes
6 answers

Load script from groovy script

File1.groovy def method() { println "test" } File2.groovy method() I want to load/include the functions/methods from File1.groovy during runtime, equals to rubys/rake's load. They are in two different directories.
ptomasroos
  • 1,129
  • 1
  • 9
  • 18