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
32
votes
4 answers

How do I load a shared object in C++?

I have a shared object (a so - the Linux equivalent of a Windows dll) that I'd like to import and use with my test code. I'm sure it's not this simple ;) but this is the sort of thing I'd like to do.. #include "headerforClassFromBlah.h" int…
Ben L
  • 6,618
  • 8
  • 39
  • 34
31
votes
6 answers

Extremely slow model load with keras

I have a set of Keras models (30) that I trained and saved using: model.save('model{0}.h5'.format(n_model)) When I try to load them, using load_model, the time required for each model is quite large and incremental. The loading is done as: models…
Titus Pullo
  • 3,751
  • 15
  • 45
  • 65
31
votes
8 answers

jQuery: loading css on demand + callback if done

I want to load CSS files on demand (by eg. running an XML HTTP request which returns the CSS files to be loaded) for example style1.css, style2.css .. So is there a way in jQuery (or a plugin) to this? bulk-loading several files + adding all those…
Fuxi
  • 7,611
  • 25
  • 93
  • 139
31
votes
4 answers

bcrypt LoadError: Cannot load such file

I'm trying to set up a login function for my Rails app, I'm getting a bcrypt error message when I press the login button: LoadError in SessionsController#create cannot load such file -- bcrypt Is anyone else getting this error? I have the latest…
Joe Morano
  • 1,715
  • 10
  • 50
  • 114
31
votes
1 answer

Understanding load average vs. cpu usage

Okay, I'm very much a Windows user myself, so my knowledge of Linux-y type things is a bit limited. However it was my general understanding that "Load Average" is an indication of how many processed are being run at any given time, on average over…
Niet the Dark Absol
  • 320,036
  • 81
  • 464
  • 592
30
votes
8 answers

Do something AFTER the page has loaded completely

I'm using some embed codes that insert HTML to the page dynamically and since I have to modify that dynamically inserted HTML, I want a jquery function to wait until the page has loaded, I tried delay but it doesnt seem to work. So for example, the…
eozzy
  • 66,048
  • 104
  • 272
  • 428
30
votes
9 answers

How to cancel an image from loading

Suppose in Javascript that you assign the SRC to an IMG tag. It is a large SRC and you want to cancel it before it has finished loading. Assigning the SRC to another image will not stop the data from loading. That is, in the middle of the load you…
eeejay
  • 5,394
  • 8
  • 29
  • 30
28
votes
6 answers

jQuery .load() with fadeIn effect

I'm trying to load #content of a url via AJAX using jQuery within #primary. It loads but doesn't fadeIn. What am I doing wrong? $('.menu a').live('click', function(event) { var link = $(this).attr('href'); …
Gab
  • 2,216
  • 4
  • 34
  • 61
28
votes
7 answers

Benefits of omitting closing body and html tags?

Are there any benefits to omitting the closing body and html tags? Why is the google.com homepage missing the closing body and html tags? edit - with regards to bandwidth, it's an extremely small amount, really. Say 10 million hits @ roughly 10…
ina
  • 19,167
  • 39
  • 122
  • 201
28
votes
3 answers

How to do load testing of node.js server?

I want to write one web application with node.js and MongoDB and I have got task to even test it. I would like to know if there are any tools like JMeter or anything else for load/stress testing of Node.js? EDIT My application is going to be…
Shekhar
  • 11,438
  • 36
  • 130
  • 186
28
votes
1 answer

writing a matrix to a file, without a header and row numbers

I have a matrix variable in R, say k. I want to write it out as a file. I use the code like: write.table(k,file="outfile",sep="\t") But when I get the file and open it, it contains headers. The first line is like: "v1" "v2" ...... "V6000". And…
lolibility
  • 2,187
  • 6
  • 25
  • 45
27
votes
4 answers

Confused about java properties file location

I have simple java project with structure: package com.abc: a.java b.java c.properties I have database configuration parameters configured in c.properties file. Inside a.java and b.java, I am loading properties file using: Properties p =…
user613114
  • 2,731
  • 11
  • 47
  • 73
27
votes
6 answers

How to do recursive load with Entity framework?

I have a tree structure in the DB with TreeNodes table. the table has nodeId, parentId and parameterId. in the EF, The structure is like TreeNode.Children where each child is a TreeNode... I also have a Tree table with contain id,name and…
Avi Harush
  • 989
  • 2
  • 10
  • 15
27
votes
6 answers

CouchDB dump to file and load from file

I cannot replicate between two couchdb servers, so I would like to dump to file from one server and load from file into the other server. I used this statement to dump and it worked fine: curl -X GET…
eriq
  • 1,524
  • 3
  • 13
  • 22
26
votes
2 answers

How do I create a progress bar for data loading in R?

Is it possible to create a progress bar for data loaded into R using load()? For a data analysis project large matrices are being loaded in R from .RData files, which take several minutes to load. I would like to have a progress bar to monitor how…
Nixuz
  • 3,439
  • 4
  • 39
  • 44