Difference between protractor and jQuery selector

Is there any difference between the jQuery selector and the protractor selector. I know that for basic element selection like grabbing a div or paragraph both works fine but do we have a use case where protractor supersede jQuery selector and any spe...
more »

2017-05-18 21:05 (0) Answers

Optimize Multiple database update

I am using laravel in my app. So now I need to update many rows on DB once a day with Cron job. If I will use the update option built-in laravel I need to do something like this: // for example, the update info in array $arrayToUpadte = [ [ ...
more »

2017-05-14 02:05 (1) Answers

best way to evaluate react js app performance

I have huge react app with 50 routes and almost 3000 components. now my question is, how can I check is my app performing well? which modules are taking time. total app's performance indicator how to identify. what are the best tools in the market? ...
more »

2017-05-13 10:05 (1) Answers

Performance Optimisation

I have this bit of my code which takes like 90 % of the runtime. There are about 8000 rows and information are stored in column A. This bit of code is splitting this information in the other columns. It takes approximately 15 mins to run ( :O ). Any...
more »

2017-05-10 10:05 (1) Answers

Slow dot product in R

I am trying to take the dot product from a 331x23152 and 23152x23152 matrix. In Python and Octave this is a trivial operation, but in R this seems to be incredibly slow. N <- 331 M <- 23152 mat_1 = matrix( rnorm(N*M,mean=0,sd=1), N, M) mat_...
more »

2017-05-08 18:05 (3) Answers

javascript 'let' and 'var' in for-loops

On my search for concrete numbers to back usage of the const keyword in Javascript, I stumbled upon a performance comparision between all three variable declaration types var, let and const. I didn't like the test setup, so I created a simplified one...
more »

2017-05-08 14:05 (2) Answers

Oracle Index query is not working

I want to improve the performance of a simple query, typical structure like that: SELECT title,datetime FROM LICENSE_MOVIES WHERE client='Alex' As you can read in different websites,like this, you should make an index like that: CREATE INDEX IN...
more »

2017-05-07 10:05 (1) Answers

Find middle digit in an integer in Java

I have an integer in java "1234567" and my program finds middle digit in a set of integer, is there more optimized way than below code?. Recently asked in java interview. What I have done is first find no of digits, first, last and middle indexes. T...
more »

2017-05-05 09:05 (4) Answers

Preemptive Caching Pattern

Is it a reasonable pattern to set a permanent account cookie so that speculative caching can begin right at the first login page visit even before a user authenticates? In this case, we need to cache a lot of data for display upon login, and we co...
more »

2017-05-04 19:05 (0) Answers

looking for an efficient way to iterate

may i ask for suggestion to iterate more efficiently (and faster)? here is the issue, I am looking for a way to propagate zeros down in a pandas DataFrame within a determined window size: import numpy as np import pandas as pd A = np.matrix([[ 0.,...
more »

2017-05-04 16:05 (3) Answers

Update MySQL from CSV using JAVA

my problem is as follows: The CSV file is downloaded at given intervals from server. File has to be parsed (there are unnecessary spaces that have to be stripped). Item price, rrp and stock quantity must be updated for each barcode. Each CSV line...
more »

2017-05-04 11:05 (2) Answers

How to test https API in siege?

I have developed a REST API which is in the form of https://abc.def.in/appname/data?id=1&un=sha So I wanted to test this api with 1000 users using siege.So I installed siege and tested with siege https://abc.def.in/appname/data?id=1&un=...
more »

2017-05-03 11:05 (0) Answers

Display php browser content successively

I'm currently migrating a webpage to a new server from php 5.0.x to php 5.6 Now I got one page that loops a Database query 7 times and the results are loaded into a table. I know that this is not the best way of doing things but it works quite well...
more »

2017-05-03 10:05 (1) Answers