w3hello.com logo
Home PHP C# C++ Android Java Javascript Python IOS SQL HTML videos Categories
OleDb App performing slowly on Windows 7
There is no fundamental problem with this method. The problem is probably how many times it is called during processing. Try to re-factor your sql to pull all your data at once, up front - then process while all your data is in memory. With LINQ, it should be simple to make these changes. Changing from MS Access to something like SQL Server Express wouldnt hurt, either.

Categories : C#

Remotely performing actions on another computer via batch file
You can use the PsExec tool from the PsTools collection to remotely run any command on a remote computer that you have access to. You would use it like below to run commands from a specific batch file name fileName. psexec \%ip% -u %user% -p %pass% fileName

Categories : Batch File

How Can I Return Exit Code To Variable On Local Computer From Script Run On Remote Computer?
I do it like this: invoke-command -session $Remote -scriptblock { mycommand } $remotelastexitcode = invoke-command -session $Remote -ScriptBlock { $lastexitcode } if ( $remotelastexitcode -ne 0 ) { "$remotelastexitcode" exit 1 }

Categories : Powershell

Programatically set the time server of a remote computer to match the control computer?
You might be better off using Group Policy to set the time server. http://technet.microsoft.com/en-us/library/cc779145(v=WS.10).aspx

Categories : C#

Running a jar in a computer java.lang.UnsatisfiedLinkError lwjgl.dll in another computer
This problem generally occurs when your jar trying to use native library of operating system.In windows it is "LWJGL.DLL". java.lang.UnsatisfiedLinkError occurs if the JVM cannot find this file. try to find the existence of this file in machine 2 where your jar file is not working and try to add them to path if they does not exists.

Categories : Java

Executing command ls from windows computer to linux computer
I'm certain you could do something with sockets and system calls, but it would probably be easier to use the built in facilities and/or programs available for each. If both are on the same network, you could run an FTP or SSH server program on the Ubuntu computer and connect to it via a FTP/SSH client, like PuTTY. Sending 'ls' through PuTTY would then yield what you want it to. OpenSSH vsFTPd

Categories : C#

Benchmarking code - am I doing it right?
Your cyclecount benchmark is flawed as it includes the cost for walltime/cputime function calls. In general though, I strongly urge you to use a proper profiler instead of trying to reinvent the wheel. Especially performance counters will give you numbers that you can rely on. Also note that cycles are very unreliable as the CPU is usually not running at a fixed frequency or the kernel may do a task switch and halt your app for some time. I personally write benchmarks such that they run a given function N times, for N being large enough such that you get enough samples. Externally then I apply a profiler such as linux perf to get me some hard numbers to reason about. Repeating the benchmark a given time you can then calculate stddev/avg values, which you can do in a script that runs the b

Categories : C++

Code benchmarking statistics -
Your average looks OK. Mean (i.e. average) is mean = 1/N * sum( x[i] ) Standard deviation is square root of variance: sigma = sqrt( 1/N * sum( (x[i]-mean)^2 )

Categories : C

Benchmarking tool using twisted
When I last used it, ab was known to have dozens of serious bugs. Sometimes that would cause it to report massively inflated results. Sometimes it would report negative results. Sometimes it would crash. I'd try another tool, like httperf, as a sanity check. However, if your server is actually that fast, then you might have another issue. Even if ab has been fixed, you're talking here about a C program versus a Python program running on CPython. 8x slower than C in Python is not actually all that bad, so I don't expect there is actually anything wrong with your program, except that it doesn't make use of spawnProcess and multi-core concurrency. For starters, see if you get any better results on PyPy.

Categories : Python

Benchmarking the performance of im4java
Yes, you are right that using im4java along only gives you the same performance as you did with Runtime.exec. Or maybe slower because it has the command building and translation layer. But if your applicaiton is to convert a lot of images in one run (or large scale concurrent processing), then please let me shamelessly introduce the gm4java, which can help to improve the performance. gm4java makes use of recently developed batch/interactive mode of GraphicsMagick to aovid starting a new GraphicsMagick process again and again for every command. It can be used as supplement to im4java or just execute the command you built for your Runtime.exec.

Categories : Java

Benchmarking Hadoop Map-Reduce application
You can see detailed information about the tasks and jobs from the address: http://hostnameofmachinerunningtheJobTracker:50030/jobtracker.jsp you can have other information from link

Categories : Java

How to calculate std dev, quartile, ... with benchmarking a code?
Standard deviation and quartiles both deal with the distribution of values in a group. With only one measurement, these become trivial or meaningless. Since there's only one measurement, that value is the mean, the minimum, the maximum, and the mode. Since none of the measurements deviate from the mean, the variance and standard deviation are zero.

Categories : C++

cassandra benchmarking using thrift and CQL3
Nope you are not doing anything wrong, for this low volume thrift driver will look faster on average but it will have higher spikes on the 95th and 99th percentile, and it will get worst with increase in load. Try to use metrics for your performance testing http://metrics.codahale.com/ and look at the latency distribution rather than just mean response time. Also be aware of cassandra caching, so that you do not run one test with cold cache and the next with warm cache. From my experience use the native driver as it is widely supported and used where more likely the thrift driver will be dropped, specially with C* 2.0.

Categories : Cassandra

SPDY web server benchmarking tools
Because SPDY offers benefits with multi-resource loading, I would recommend a client-side testing tool like PhantomJS and calculating document.onload times to fully measure downloaded resources and JavaScript executions. ApacheBench would only measure server response times (excluding JS and associated files, and I'm not sure if it renegotiates TLS handshakes upon every connection. Here's a test that benchmarks 350 requests: http://www.httpvshttps.com/

Categories : Http

Oracle 11g vs MySQL vs Hadoop:- benchmarking for 10^6 to 10^9 records
TPC-H benchmark would be a good start: http://www.tpc.org/tpch/default.asp. But comparing Oracle and Hadoop is pretty much comparing apples and oranges. I would imagine that for a relational database benchmarks Oracle would beat a Hadoop cluster, while if your queries can be expressed as a Map/Reduce job, Hadoop would beat Oracle on perfromance/$ basis and on scalability.

Categories : Mysql

get list of logged on users on remote windows computer from a list computer
It (csv file) should be formatted as follows: computername server1 server2 server3 'Computername' is the column name. This can be derived from the code snippet as the Foreach-Object refers to the ComputerName property.

Categories : Windows

Ping remote computer from another remote computer and get result back
According to Windows IT Pro (referred in Microsoft TechNet): PsExec displays the process's exit code and returns the exit code as its own exit code. So, your batch should work. Put ECHO ErrorLevel=%ERRORLEVEL% after PSEXEC ... just to get sure. To disable outputing, append >NUL 2>NUL or >NUL 2>&1 to PSEXEC ... command-line. Without /f as you used (where did you get it???)

Categories : Windows

Scroll slowly to 100%
If you are going to do jQuery, I'd do it something like this: $('#down').click(function() { $('html,body').animate({scrollTop: $('#second').offset().top},'slow'); }); fiddle: http://jsfiddle.net/gJwUT/ May not be exactly what you want, but I think it will get you started. You can tweak the speed by changing 'slow' to a number. 'slow', I think, is 1 second. or '1000'. $('html,body').animate({scrollTop: $('#second').offset().top}, 2000 );

Categories : Jquery

My iPhone app loads very slowly
Just as basic idea, do you use multithreading? You should implement something like this. dispatch_queue_t myqueue = dispatch_queue_create("queue", NULL); dispatch_async(myqueue, ^{ //load your Json data here ex [dataManager loadData]; dispatch_async(dispatch_get_main_queue(), ^{ //post a notification here for the table/view controller that needs to reload data }); }); Now, you can push to the new viewcontroller even before calling this block, and add an observer for the notification to reload data. The segue will be instant, and your data will be available after 10 secs.

Categories : Iphone

Why is my WPF window loading slowly?
First of all, your properties are returning a NEW instance of ImageSource every time they're called. you Should avoid this. Fix 1: private ImageSource sag_Image; public ImageSource Sag_Image { get { if (sag_Image != null) return sag_Image; //... Etc your code sag_Image = //Assign the backing field to use it later. } } You should Freeze your Freezables (such as ImageSource). Fix 2: public ImageSource Sag_Image { get { if (sag_Image != null) return sag_Image; //... Etc your code sag_Image = //Assign the backing field to use it later. sag_Image.Freeze(); //Notice the Freeze() method. } } Fix 3: Async. All operations that take more than 10 ms to complete SHOULD be async. Th

Categories : C#

Changes done on EC2 instance are getting very slowly reflected
i would also go through the cache (in some way) hint. What you can do is to try that : a) on your server modify a non important file already existing (not a new one). Be Carefull to make some changes that will also modify the size (adding a part of content should be enough). b) from your server using ssh run the following command : curl -v -x 127.0.0.1:80 'http://yoursite.com/your-modified-file.html' c) Note from the output the following values : ETAG CACHE-CONTROL Last Modification Time Content size d) From an external computer (the oen where you are thinking the changes are reflected slowly) reapeat step b) e) repeat step c) with the output of d) f) if any of the values are different, this will be the proof of caching system (CDN, reverse proxy, proxy, browser local cache ....)

Categories : Amazon

Queries executing very slowly
I found out the reason. As I said before (in the comments) I did EXPLAINs for every subqueries and noticed some differences with the same EXPLAINs on the local machine (for 2 of 5 subqueries). It solved by creating additional indexes. Different machines - different results. I expected that it would be some differences, but I could not even did the EXPLAIN. That's a strange. Helped only the partial EXPALINs. Thanks for all.

Categories : Mysql

activity is finishing too slowly
It will, because you are doing the bitmap processing on the UI thread, you should use a different thread for this kind of work, read Displaying Bitmaps Efficiently

Categories : Android

Image fading too slowly
I am not sure, if this will help you, but you could try to replace mouseenter with the hover function of jQuery, like here: Jquery mouse-over fade-in/out (best practices) Ah OK, you got it ;)

Categories : Jquery

Scrolling down a scrollView slowly
You can try to pass in an Interpolator to adjust the speed. Subclass the Interpolator class to create whatever function to adjust the speed by. edit: Hmm, I assumed that there would be an easy way to do this in a ScrollView since it's a constructor argument for a Scroller object. You might want to just do the scrolling yourself with a Scroller object using whatever interpolation you choose. I'll try to find more.

Categories : Android

Onclick Menu opening slowly
Maybe the slideshow overlays the menu while animation is playing. I could just set my ie10 to ie8 mode and saw the the layers are not in best order for display. Did you try to set the z-index on the menu? Perhaps you try hide the the carousel temporary and check if the menu opens well then.

Categories : Javascript

MySQL query running slowly
The biggest issue is the != and the not in clause. If you rewrite this to not use these functions you will be better off. guide Summary MySQL can optimize all three methods to do a sort of NESTED LOOPS ANTI JOIN. It will take each value from t_left and look it up in the index on t_right.value. In case of an index hit or an index miss, the corresponding predicate will immediately return FALSE or TRUE, respectively, and the decision to return the row from t_left or not will be made immediately without examining other rows in t_right. However, these three methods generate three different plans which are executed by three different pieces of code. The code that executes EXISTS predicate is about 30% less efficient than those that execute index_subquery an

Categories : Mysql

Slowly Changing Dimension Vs Fact
Which way of modeling the customers is better really depends on how are you going to use the corresponding dimension. If you would want, for example, to summarize some sales associated with the "Customer" dimension by "CustomerType" at the time of the sale, you could do it only if you keep the historical details as a part of slowly changing dimension. You probably can run a lot of customer reports right on that table that represents a slowly changing "Customer" dimension. But if the number of your customers get into the millions, you'd be better off creating a separate fact table (or tables) for customer status changes. So, to summarize: start off with a slowly changing dimension. If the number of customers grows too large and reports on customer statust changes become too slow, add a fa

Categories : Sql Server

How to animate the width of a div slowly with jquery
The jQuery docs show ints, not strings, as the arguments to width: $("#slidebottom").animate({ width: 100 }, 'slow'); Edit: So I was wrong, that's not the problem; it handles strings just as well.

Categories : Javascript

.toggle, make div appear slowly jQuery
Why not use fadeIn() $(document).ready(function(){ $(window).bind('scroll', function(){ if($(this).scrollTop() > 170)){ $("#scrollbox").fadeIn('slow'); } }); });

Categories : Jquery

Excel VBA AutoFit runs slowly
Go to the start of the main body of code (the one that calls this subroutine) and add Application.ScreenUpdating = False as one of the first lines. Then at the end of that function, after this subroutine has been called, turn it back on: Application.ScreenUpdating = True This will keep it from redrawing the screen for every change in column/row size, resulting in a significantly faster run time.

Categories : Excel

Animating UIButtons around their center very slowly
You will need to learn to move UIView's on your own. You will want to create a subclass of UIView, add subviews to it, and you can change the subview's location like so: mySubview.center = CGPointMake(xCoordinate, yCoordinate); (Keep in mind the origin is in the upper lefthand corner and y increases downward) This is the simplest way to move your UIView's although you can use CGAffineTransform along with the mySubview.frame property. As for getting random numbers, use arc4random(). Almost everything you see in an app is a subclass of UIView, and that includes UIButton, UIScrollView, and UIImageView. You should be able to achieve the desired effect from here. I would also recommend you rewrite your moving clouds to use a custom subview rather than hijacking a UIScrollView.

Categories : Iphone

Why is this LEFT JOIN running slowly?
update: Looks like your query is basically something like this with cte as ( select r.test_id from responses as r where r.user_id = 333 union all select c.parent_id from tests as c inner join responses as r on r.test_id = c.id where r.user_id = 333 ) select t.id from tests as t where t.id in (select c.test_id from cte as c) or t.parent_id in (select c.test_id from cte as c) old: try to turn this into this query and see if it would be faster: select t.id from tests t inner join tests c on c.parent_id = t.id union all select t.id from tests t inner join tests c oN c.parent_id = t.parent_id How long it takes to do one of these queries?

Categories : SQL

Mamp localhost resolving very slowly
I had similar problems running php 5.5.3. After I changed back to 5.4.19 it worked. You can change the version in the MAMP GUI. You might have to rename your 5.5.3 folder to 5.5.X for 5.4.19 to show up in the GUI. The php folders are placed at: Applications/MAMP/bin/php

Categories : PHP

Giving a shadow cause to slowly scroll down
try setting cell.L_name.layer.shouldRasterize = YES; this will render your label as a bitmap and might improve scrolling smoothness additionally you could set cell.opaque = YES; which will optimize drawing performance as well.

Categories : IOS

UIWebView load PDF file slowly
The file size of the PDF isn't what matters - it's the content. Because PDFs can use vector graphics they can display extremely complex things (like, for example, a map) whilst using a minimum of disk space. A loading time of five seconds or so would not be unusual on iOS for a PDF that was graphically complex. If you need to improve the speed you could think about either regenerating the PDF and rasterizing the vector graphics, or simplify the graphics being displayed so that the device has less to render. Again, when dealing with PDFs the content has much more to do with the loading time than the file size.

Categories : IOS

My iphone app leaks memory, but very slowly
It's impossible to say on the basis of what's been provided so far, but if it doesn't plateau at some point, then clearly you have a problem. And, even if the Leaks tool isn't identifying anything, doesn't mean you don't have a problem. I'd refer you to WWDC 2012 video iOS App Performance: Memory which not only walks you through some important considerations, but shows you how to use Instruments to identify issues. I assume you've also run your code through the static analyzer ("Analyze" on the "Product" menu) and you have a clean bill of health there?

Categories : Iphone

LibGDX HTML runs slowly
You are running it in "hosted" mode, with the debugger attached. This is generally the case when running from Eclipse by choosing "Debug as Web Application" or "Run as Web Application". Unfortunately, this makes it incredibly slow. If you detach the debugger (by removing the query string from the launch url), the speed will increase substantially. Also, you might try Super Dev mode. Note that doing a full GWT Compile of the project and running it from an external web server will also run at full speed.

Categories : Performance

Benchmarking - CPU time bigger than wall time?
If a computation requires two seconds of processor time, then two processors can (ideally) complete it in one second. Hence a two-processor system has two CPU seconds for every wall-clock second. Even if you do not use multi-threading explicitly in your process, a library you use or the operating system may use multiple processors to perform work for your process. Additionally, some of the accounting is approximate. A system might track processor time in some small unit, say microseconds for the purpose of argument, and charge a process for a microsecond anytime the process receives at least half a microsecond of processor time. (Which should be a lesson to all the people who answer floating-point questions with recommendations to use integer arithmetic to avoid rounding errors. All discr

Categories : C

Benchmarking System performance of Python System
I would try and remove as many other processes as possible in order to get a repeatable benchmark. For example, I would set up a separate, dedicated server with an NFS mount to the directories. This server would only run inotify and the Python script. For simple server measurements, I would use top or ps to monitor CPU and memory. The real test is how quickly your script "drains" the directories, which depends entirely on your process. You could profile the script and see where it's spending the time.

Categories : Python



© Copyright 2017 w3hello.com Publishing Limited. All rights reserved.