FAQ Database Discussion Community


Jmeter doesn't save response data or headers

save,load,jmeter,performance-testing
I'm building some simple load testing for my API, and to make sure everything is on the up and up I'd like to also review the response headers and data. But when I run my test using the command line and then re-open the GUI to add a View Results...

What's worse for performance: adding a new column, or adding together an existing column?

ruby-on-rails,ruby,performance,ruby-on-rails-4,load
I have a comment system in which users can votes on comments. When a vote is cast on a Comment, a Vote is created (for that Comment) with an ip equal to the user's ip address. Then, when the user reloads the page, my server looks through the existing Votes...

How to load css and js

javascript,css,load
My js script loads the part of page to another page, but css and js doesn't load(. For example: Page 1 contains js which load page 2. Page 2 contains something like . Page 2 loaded to page 1 succesfully, but doesn't have any css or js? which i include....

Test website with million concurrent connections [closed]

performance,website,load,load-testing
I have a website it is under construction. I need to test the website performance when the concurrent connections. Is there any tool for generate the thousands of concurrent connection virtually.

Labels on Nodes and Relationships from a CSV file

csv,neo4j,load,label,cypher
I have problem when i want to add a label on a Node or to a Relatioship. I do this in Neo4j with Cypher: LOAD CSV WITH HEADERS FROM "file:c:/Users/Test/test.csv" AS line CREATE (n:line.FROM) and i get this error: Invalid input '.': expected an identifier character, whitespace, NodeLabel, a property...

What url to put in jQuery AJAX load() method?

jquery,ajax,url,methods,load
I am testing this load() method of jQuery AJAX, and I have my test web site in my computer, so when I open index.html url is something like this: file:///C:/Users/.../App/index.html But if I put this url to load() method it returns nothing - error. I am trying with this code:...

weird undefined variable python3

python,load,python-3.4,nameerror
I'm trying to dynamically load a python file and to retrieve its variables. Here is my code : test_files = glob.glob("./test/*.py") for test_file in test_files: exec(open(test_file).read()) print(dir()) print(test_list) test_file is the shared variable I want to retrieve. print(dir()) displays: ['test_file', 'test_files', 'test_list'] so test_list exists. The line after: print(test_list) display...

error loading javascript files dynamically

javascript,dynamic,load,lazy-loading
i am trying to lazy (dynamically) load javascript files in my webpage. i have used this : http://www.javascriptkit.com/javatutors/loadjavascriptcss.shtml function loadjscssfile(filename, filetype){ if (filetype=="js"){ //if filename is a external JavaScript file var fileref=document.createElement('script') fileref.setAttribute("type","text/javascript") fileref.setAttribute("src", filename) } else if (filetype=="css"){ //if filename is an external CSS file var fileref=document.createElement("link") fileref.setAttribute("rel", "stylesheet")...

How can I load a single tag in a XML file into a paragraph tag in HTML?

javascript,html,xml,load
I wanna load a single XML tag with the name 'QWERTY' into a 'p' tag in HTML with JavaScript, how can I do this?

How can I send a integer from my Java file to my XML folder? (Android Studio)

java,android,xml,integer,load
I have an int called playerCount in my MainActivity Java file and would like to import it to my XML file, How would I go about doing that? When I loaded an Java Method I wrote android:onClick="playSound" And then, public void playSound(View view) { MediaPlayer mediaPlayer = MediaPlayer.create(MainActivity.this, R.raw.sound); mediaPlayer.start();...

Why is data loading to voltdb slow?

database,load,loading,voltdb
What is the fastest way to load data into voltdb. I'm using the recommended command: csvloader in the form: $ csvloader helloworld -f languages.csv but the loading time is very long. Why is it slow? ...

How to load data into variable instead selector in jQuery?

jquery,variables,load,selector
I am having some trouble to load data from url with load method in jQuery into variable instead selector. So my code is this: $('#test').load('http://url #searchedID'); So this would load some string from url where html selector have id = searchedID e.g. "This is string" and then it would display...

JQuery - Calling function after image load

javascript,jquery,image,load,deferred
So I have two functions. One to load the image and the other to resize its container element. Naturally the image element needs to be loaded, before any measurements can be taken. It looks something like this: var imgEl; loadImage(imgSrc); // only call the below, once the above has finished...

Java Arrays after destroying still in RAM

java,load,ram,destroy
Hello I working on terraria clone. I have dynamic chunks loading system (If chunk is visible load him) but I have problem when I want to destory chunk when is not visible. My destroying is something like this: public void destroy() { blocks = null; background_blocks = null; light_map =...

When does a web page appear the first time?

events,dom,web,load
I'd like to know when does a web page appear the first time, especially in relation with events like the DOMContentLoaded or or the Load event. If I knew the event in question then I could minimize the HTTP requests up until that point and lazy-load resources after that. My...

pdo registration page error when trying to register a sample user [closed]

php,mysql,pdo,load,registration
Hello i am working on creating a user registration page. I believe i have tried everything, when i try to test the registration page it just reloads the same page. when i click the submit button and doesn't go into my database nor shows the "your account has been created"....

Loading CSV data to a PostgreSQL table

postgresql,csv,table,load
What is the best way to load CSV data to a table in a PostgreSQL database (in Java)? Context: I am working on extract, transform, load (ETL) processing - extracted the flat file and generated (csv's of a similar table). I want to load CSV files to a PostgreSQL table...

Php captcha session variable not found

php,jquery,session,load,captcha
I have this captcha.php file that I load on the page I want the captcha to appear on using jQuery load. In the captcha.php file I start a new session and I set a variable (theCaptchaCode) which contains the code you see on the image, but when I try to...

Load JSON file, error undefined

javascript,json,load
I'm trying to load a JSON file that I'll use as constants file, but I'm always getting the error undefined, could any one help? Here is the code: function loadJsonFile(filePath){ $.getJSON(filePath, function(Mydata) { alert(Mydata.length); return Mydata; }) error(function() { alert("error"); }); The structure of constants file is: { "var1":"v1", "var2":"v2"...

Python: Saving / loading large array using numpy

python,arrays,python-2.7,numpy,load
I have saved a large array of complex numbers using python, numpy.save(file_name, eval(variable_name)) that worked without any trouble. However, loading, variable_name=numpy.load(file_name) yields the following error, ValueError: total size of new array must be unchanged Using: Python 2.7.9 64-bit and the file is 1.19 GB large....

JQuery .load event causes Internal Server Error

jquery,load,internal-server-error
I tried to improve the speed of my website by loading most pages right at the beginning. Therefore I created a number of div-tags and wanted to load the other files right into them by using the load event of jQuery. Here is my source code: <script> function LoadPages(){ $(document).ready(function(){...

How do you load information from a .txt file in batch?

batch-file,save,load
So I have been doing some small batch programs lately but I can't manage to make the batch file load information. This is how i would do it. :load_game ) set /p something= ) > something.txt In the txt file: something_is_awesome That is it^^ If i remember it right that...

Vb.net Save data from datagridview to txt and load it

vb.net,datagridview,save,load
i'am new programmer and just studying about Visual Basic, and to complete my exams The Data i have Tool_1 screwdriver Tool_2 screw Tool_3 Magnet And many more i've create project, it have Data Grid View(two columns, Tools & Names) and two Button(btSave & btOpen) i just try it with this...

LOAD DATA INFILE and LINES TERMINATED error

mysql,text,load
When I load data from local infile, the data are truncated at the beginning of some rows, I tried lines terminated by '/r/n', by '/r' and by '/n' they only loaded one row in the table.. MyTable as one column, and MyFile.txt has only one column delimited by new line...

Is there a method so you'd find out which/name of functions that were being called?

javascript,html,console,load
I am trying to get handy in using Google Development Tools. Do we have a method to identify which functions (specifically Javascript) are used/required before a successful page load?

How to manage event for made a load bars in Access

vba,ms-access,events,load
I created an application with Access (2013) with VBA. This application crawls a website and inserts some records into database. But it takes too much time. My solution is to make load bars for waiting. But currently I use the event Form_Current(); and when I set the load bar's value...

How to load several RData with a loop?

r,loops,load,rdata
I want to load several RData files into R. The code I use is for(i in 1:100){ name_i <- paste('path/file_',i,'.RData', sep="") load(name_i) } and I have also tried: for(i in 1:100){ paste('name_',i,sep='') <- paste('path/file_',i,'.RData', sep="") load(name_i) } which resulted in this error: object 'name.in' not found What I want is...

What are the file formats that read into R the fastest?

r,csv,load,rdata,scan
It seems most intuitive that .rdata files might be the fasted file format for R to load, but when scanning some of the stack posts it seems that more attention has been on enhancing load times for .csv or other formats. Is there a definitive answer?

Building an Ajax System for loading New Page Content via link classes

javascript,jquery,ajax,load
The idea is each page has the same header and footer exactly, but each page has inner content that will change each page load <header>blah blah blah</header> <div id="main-content">Changes Each Page, but with links like <a href="anotherpage.html" class="ajaxify">Go to Another Page with smooth animation</a></div> <footer>blah blah blah</footer> I have written...

call db2 load statement from an odbc connection

import,load,db2,odbc,wizard
I have this txt file, formatted with the '|' character between columns, and this script generated by the db2 LOAD wizard: LOAD FROM "<path_and_name_of_the_txt_file>" OF DEL MODIFIED BY ANYORDER COLDEL| METHOD P (1, 2, 3) MESSAGES "<path_and_name_of_a_new_log_file>" REPLACE INTO DB2ADMIN.WEB_NOHAB_CONSOLI (RUC, RAZSOC, FECHA) NONRECOVERABLE INDEXING MODE AUTOSELECT LOCK WITH FORCE;...

Python doesn't read in the correct number of columns

python,numpy,load
I am trying to read in a txt file with 2 columns (first one string, second one double, tab seperated). This is my datafile: C# 6.78 D 5.32 W 5.32 -> data.txt This is my reduced code: import numpy as np data = np.loadtxt('data.txt',delimiter='\t', dtype=str) print data It gives me...

Optimizing Save and Load of Settings in VB.Net Application

vb.net,optimization,save,load,application-settings
I am working on a VB.Net installer and it was all going well. We had / have over 20 thousand users. But this month I faced a problem... As I am updating the installer, constantly I am adding new options to the installer and adding new features. ...and in my...

WHat is wrong with my code, try to save the changed txt file, but nothing happens

java,save,load,export
Hey friends try to replace some commas in my database, can someoone give me advide what wrong is with my code, have already the replace eveything is done, but nothing happends try { BufferedReader br = new BufferedReader(new FileReader("C:/Users/Sei_Erfolgreich/Desktop/convert.txt")); String zeile; try { while ((zeile = br.readLine()) != null) {...

Run jquery script on browser window view

jquery,load
i'm learning jquery, trying to run this jquery script on browser window view. Means script will run, when class="load-delay" has browser window view by scroll browser. Actually this script load images after 7 second. jquery script: setTimeout(function () { $('.load-delay').each(function () { var imagex = $(this); var imgOriginal = imagex.data('original');...

Load entire text file in database using python

python,database,load,netezza,operation
I want to load entire text file having two fields separated by delimiter || into my netezza database. Inserting each n every row degrades my performance since the data set is huge. My text file is like: ING BANK, N.V.||520639 STANDARD CHARTERED BANK MALAYSIA BERHAD||483551 VJA||492287 Could you please help...

Images didnt load on masterslider in any responsive device mobile and Ipad

image,mobile,load
I am using Master Slider In my Wordpress site.When resize browser window manually slider is working fine but when I test it with my mobile images didnt load generally, I only see loader image.I tried to be sure that all divs are streched with their parent and all is ok...

MySQL is adding characters to my data

mysql,csv,load
I have a Table in MySQL and I am adding data to it from a csv file My code is: LOAD DATA LOCAL INFILE 'C:/myaddress/file.csv' INTO TABLE db.mytable FIELDS TERMINATED BY ',' ENCLOSED BY '"' LINES TERMINATED BY '\r\n' (`Currency`,`field2`,`field3`) This loads fine except for the first row I add....

EdgeNGramFilterFactory change in solr5

plugins,solr,configuration,load
Short version: Does anyone knows if something happened with EdgeNGramFilterFactory for solr5? It used to work fine on solr 4, but I just upgraded to solr5 and the cores having this fields using this filter refuses to load ... Long story: This configuration used to work in solr4.10 (schema.xml): <field...

call method from fragment to fragment ( refresh adapter )

java,android,load,adapter
Hello I am trying to call this function loadFiles() which is located in fragmentB and I want to call it from FragmentA, so I can refresh my GridView for my images and videos. I get this error from the same method FATAL EXCEPTION: main java.lang.NullPointerException my method in FragmentB: public...

IPython loading variables to workspace: can you think of a better solution than this?

variables,numpy,save,load,ipython
I'm migrating from MATLAB to ipython and before taking the leap I'm going through my minimal workflow to make sure every operation I perform daily on MATLAB for data crunching is available on ipython. I'm currently stuck on the very basic task of saving and loading numpy arrays via a...

How does LEA instruction store address of A?

assembly,load,cpu-registers,computer-architecture,lc3
This is based off this question LEA instruction Here is the code segment I have a question about .ORIG X3700 LEA R0, A ..... A .FILL X1234 @Paul R, the answer responder, said that "The origin of the code is x3700, and you have 12 instructions, so the address of...

Load Data in Matlab GUI

matlab,user-interface,data,load
I am developing a GUI where I want the input in text or excel format from user. When he will click on "Upload File" button from my GUI, the file browser will open and he will select the text file. Once he clicks open the file should be in workspace...

Android soundpool not working

android,audio,load,soundpool
when I try to run soundpool in my program, it keeps giving me an error. firstly, I added SoundPool sp; int shot = 0; at the beginning of the program. Then I tried to add sound in the method that I wanted it to run by adding the following code,...

Load the page faster loadHTMLfile

php,performance,load
Ive added this php script to my websit, but it makes the web load very slow. Is there any way to make it faster? <?php $doc = new DOMDocument; $doc->preserveWhiteSpace = false; $doc->strictErrorChecking = false; $doc->recover = true; libxml_use_internal_errors(true); $doc->loadHTMLFile('http://lolbuilder.net/aatrox'); $xpath = new DOMXPath($doc); $query = "//div[@class='col-sm-6']/table/tbody/tr[1]/td[2]"; $entries = $xpath->query($query);...

Where is -32768 coming from?

assembly,load,cpu-registers,computer-architecture,lc3
This is LC3 Assembly code I am working with .ORIG x3000 LOOP LDI R0, KBSR BRzp LOOP From LC3 Assembly, I know that LDI is a load indirect addressing mode, meaning it read in an address stored at an location and then read the value at that location From Lc3...

Is it faster to render a form for each of ~100 records or load individual forms with ajax?

javascript,jquery,ajax,performance,load
I have a Comment model, which has_many Replies. I'm going to have about 100 comments on any given page, and each comment should have the option to write a reply to it. This requires that each comment somehow have its own Reply form. Which of the following methods would be...

Can I run multiple private docker registry behind load balancer?

load,load-balancing,private,multiple-instances,docker-registry
I was wondering if it's possible to run multiple docker registry hosts under an ELB or (any load balancer for that matter). I am planning to run the private docker registry inside a docker container. Has anyone tried that? Any ideas for how to have Docker registry containers autoheal without...

read data to load game from text file

java,swing,file,save,load
Hi am working on a game which saves several states once my save button is cliked, such as: name, totalScore ... This is how I saved it: public static void save() { fileName = new File("Saved Game"); try { fw = new FileWriter(fileName,true); } catch (IOException e) { e.printStackTrace(); JOptionPane.showConfirmDialog(frame,...

atomic write/read of a file in nodejs

node.js,save,load,atomic
My nodejs application is built around a "project file". Several modules (by "module", I mean a simple javascript file of my project) of this application need to load, modify and save this file often, via streams (fs.createReadStream, fs.createWriteStream), and since those modules are executed independently from each other, with sometimes...

Testing multiple connections to SQL Server

sql-server,testing,load,database-connection,connection-pooling
We're migrating SQL2005 Enterprise to SQL2012 Enterprise (on a new server too, from WIn2003 to Win2012). Is there a way to test multiple connections to the database to prove it can take the same load as the previous server? The application is a website, .Net3.5 with Min and Max pool...

How can I load an image from a local directory in PHP?

php,image,directory,load
My setup (or path) is as follows: |Home |ftpUsername |assets |images.png |script.php |mydomain.com |index.php index.php is located in mydomain.com, which includes script.php in /home/ftpUsername/assets without a problem. script.php is included in index.php using the include() function. My question is, how can I get PHP to load the images (png format)...

How to load div content after time. SetTimeout(), Load()

javascript,jquery,load
I need load content of div, 2 sec after click button. Content is other html file. When i use setTimeout($(".frame").load(this.href),5000); div load content of file instantly. HELP $(document).ready(function(){ $(".test").click(function(event) { setTimeout($(".frame").load(this.href),5000) ; }); }); ...

Automatically calling an init function whenever an object is used for the 1st time

c#,load,delay,auto,init
I have an object that only initializes itself with barebones data when constructed (fast), and loads itself for real (slow) when first accessed. The idea is that I'm creating a lot of these barebones objects at startup and hash them into a map, then fully load each object whenever it...

import text file into one column and assign default value to other columns of mysql table

mysql,file,text,load
Text file: American River College American University Amherst College ...... ...... Table Fields id name type created_at updated_at I want to import text field values in name column and want to assign some default value to other fields like "college" to type field, current date time to created_at and NULL...

Text file not loading information into Listbox

vb.net,listbox,load
I'm trying to get the content from a text file into a Listbox, but I can't get it to work. It works fine however with a text box. Private Sub btnLoad_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnLoad.Click Dim filename As String Dim recipereader As StreamReader ofdLoad.ShowDialog() filename...

jquery .load not working with function parameters

javascript,php,jquery,html,load
I have an onLoad method in my html body that is calling a function to load certain data based on the php variables in my url. body onLoad="getData(<?php echo $_GET['Category']; ?>, <?php echo $_GET['Product']; ?>);" This is my onLoad call: Which when I check googles chrome inspect element it is...

codeigniter model method not working

php,function,codeigniter,model,load
Been following a tutorial https://www.youtube.com/watch?v=7RFVKKzcHFY I watched till 3:50 and it seems its not working... Note: I have routing working fine and I have called libraries in $autoload and db is working fine just that... controllers/admin.php <?php class Admin extends CI_Controller { public function index() { $this->load->view('admin'); } public function...

jQuery click and load function do not work

javascript,jquery,click,load
I'm trying to load text from a txt document to a div using this code: $(document).ready(function(){ $('button').click(function(){ $('#contenthere').load('Load.txt'); }); }); html: <button> click me! </button> <div id="contenthere">//Load.txt should load here!</div> txt: If this text is loaded then you've managed to succefully use jQuery! The click function is working but the...

Is read data from the package slower than reading from a folder on your hard drive?

java,object,load
I have object which i want load to memory on start program. My question is: It is better to insert objects into the (JAR) package or put the folder with the program? What is faster way for reads object? EDIT: public MapStandard loadFromFileMS(String nameOfFile) { MapStandard hm = null; /*...

Jquery - Load function when page position seen

jquery,load,circle
I begin with jquery and I try to execute a function when my page position is seen. Example with "http://www.jqueryscript.net/demo/Animated-Circle-Statistics-Plugin-With-jQuery-Canvas-Circliful/" : <div id="myStat4" data-startdegree="180" data-dimension="250" data-text="35%" data-info="New Clients" data-width="30" data-fontsize="38" data-percent="35" data-fgcolor="#61a9dc" data-bgcolor="#eee"></div> $(window).load(function() { $('#myStat4').circliful(); } But it doesn't work, pourcentage circle are already completed when I scroll to...

Lazy loading using nodejs and mongoDB as backend data

node.js,mongodb,load,lazy-evaluation
Our collection has around 100 million documents. We created a simple application using nodejs and expressjs with a limit clause in the mongo query . It is sufficient for the users as of now. In the mean time we are trying to implement lazy loading so that the initial page...

Write lua_requiref in lua5.1

module,lua,load
I would like to use the function lua_requiref, but in lua5.1. Is there a way to get the effect of lua_requiref in lua 5.1?...

How to load a text file in Matlab when the number of values in every line are different

matlab,text,load
I have a none rectangular text file like A which has 10 values in first line, 14 values in 2nd line, 16 values in 3rd line and so on. Here is an example of 4 lines of my text file: line1: 1.68595314026 -1.48498177528 2.39820933342 27 20 15 2 4 62...

Jquery Tabs in loaded div

jquery,ajax,callback,load,jquery-ui-tabs
Simple Jquery Tabs does not work in "loaded" div. Originally had jquery in the external file. ajax rules nullify script in the external html on load. removed script from external html attempting to execute tabs through callback on load function. verified that tabs works on html in the index page,...

How to refresh only a image of a whole page, when the imagename is variabel?

image,load,refresh,onload
This is my puzzle i'm struggeling with: I have a website with a certain amount of images, and i'd like the images to be refreshed each say 20 seconds, this is the code I wrote so far for that: <IMG src="imgcam/mostasquare_1.jpg" border="1" name="refresh" id="img1"> <IMG src="imgcam/mriehelbypass_1.jpg" border="1" name="refresh" id="img2"> <SCRIPT...

Does loading an image take longer than rendering a character?

ruby-on-rails,image,performance,ruby-on-rails-4,load
Rails 4.0.10: I have a page with a list of records, which will probably end up being a few thousand records long. I want to add a delimiter, which will print after each record. I'm considering using a image for this delimiter. Would loading an image after every record take...

Python Pandas does not read the first row of csv file

python,numpy,pandas,load
I have a problem with reading CSV(or txt file) on pandas module Because numpy's loadtxt function takes too much time, I decided to use pandas read_csv instead. I want to make a numpy array from txt file with four columns separated by space, and has very large number of rows...

Why incremental load and ramping up the threads is considered a best practice?

load,jmeter,performance-testing,loadrunner,grinder
I was looking into performance testing and wanted to ask why ramping up slowly and then running under max load and then slowly ramping down is considered a better paradigm .And test team spends a lot of time achieving a perfect graph for the same. Though its completly subjective but...

Save and Load Font/FontColour

java,swing,fonts,save,load
I have a bunch of customized setting in the program I'm working on where the user can change the font and the font colour and also the background colour but for now ill start with the font and font colour currently I'm saving the title to a text file with...

Is there a way to know if a Google Map did or didn´t load?

android,google-maps,dictionary,load,android-mapview
I have a mapView on my App. Everytime it loads the MyLocation Button but sometimes it doesn´t load the actual map, maybe Connection issue APIKey issue, or something similar. Is there a way to know if the map did or didn't load? Not the mapView because it loads the MyLocation...

Is every relavant calculation performed every time the page is loaded?

ruby-on-rails,ruby,performance,ruby-on-rails-4,load
I have a model "Wrapper", which has_many of another model "Category", which in turn has_many of another model, "Thing". "Thing" has the integer attributes :count and :number. It also has an instance method defined as such in models/thing.rb: def ratio (self.count + self.number).to_f / Thing.all.count.to_f end "Category", then, has this...