I just read this statement in a java book saying Objects in java reside on a heap.
Is a heap used because it is the best way to store data and retrieve data fast ?
I only have an idea about data structures being a beginner. I mean why not stack or something else ?
With alle the new paralell programming features in .NET 4.0, what would be a a simple and fast way to implement the producer-consumer pattern (where at least one thread is producing/enqueuing task items and another thread executes/dequeues these tasks). Can we benfit from all these new APIs? What is your preferred implementation of this pattern?
I've got two systems, one with Windows XP and another with 7, both running Firefox 3.6, the same version of Selenium RC and the newest nunit.
When I run tests on 7, it is executed extremely slowly (I mean walking by textbox and setting its values), but when I execute this script on Windows XP it is extremely fast.
Do you have the same experience? Do you know what the problem might be?
How do I simulate a scrollbar click with jQuery? So, if a user clicks on a div that says "scroll down," it'll be the exact same behavior as if he/she clicked on the down arrow of the browser's scrollbar. Using the current browser's behavior would be optimal, vs. doing something like $.browser.scrolldown(200,'fast').
Something like $.browser.triggerDownArrowOnScrollBar() would be sweet!
Hi,
I have queries that are built like this:
public static List<MyObjectModel> GetData (int MyParam)
{
using (DataModel MyModelDC = new DataModel())
{ var MyQuery = from....
select MyObjectModel { ...}
}
return new List<MyObjectModel> (MyQuery)
}
}
It seems that using compiled linq-to-sql queries are about as fast as stored procedures and so the goal is to convert these queries into compiled queries. What's the syntax for this?
Thanks.
Hello
How can I try to read data from socket with timeout?
I know, select, pselect, poll, has a timeout field, but using of them disables "tcp fast-path" in tcp reno stack.
The only idea I have is to use recv(fd, ..., MSG_DONTWAIT) in a loop
I Just purchased my app from the app store. It is unbelievable slow! I then ran my same code via the USB cable and it was blazing fast. what is wrong?
If I create an adhoc app will that allow me to see where things are going wrong?
I have a website with Dutch text which I want to translate to English. Is there a fast way of doing this with keeping the HTML tags(<strong>,<span>) in tact. I know I can just copy the parsed TEXT into a translator but this will remove the formatting.
I also know that at the end I have to go trough the text manually to fix some minor spelling and grammar.
I am using this:
byte[] buffer = new byte[10240];
As I understand this initialize the buffer array of 10kb filled with 0s.
Whats the fastest way to fill this array (or initialize it) with junk data everytime?
I need to use that array like 5000 times and fill it everytime with different junk data, thats why I am looking for a fast method to do it. The array size will also have to change everytime.
How can I get the number of times an NSString (for example, @"cake") appears in a larger NSString (for example, @"Cheesecake, apple cake, and cherry pie")?
I need to do this on a lot of strings, so whatever method I use would need to be relatively fast.
Thanks!
How do I format an NSURL (what path, or path generator function) so that I can display a downloaded local file (NOT part of the application NSBundle) for use offline? The idea is to snag an HTML file, clean it up and stash it in the iFoo application specific storage area, then later use UIWebView to display it.
Next, I go off to RTFM about working with files on iFoo (iPhone / iPad) in general, but any fast-start tips are appreciated.
Hi All,
The home page of my website and some other page also are taking some time to load, instead of making them load fast, I want some please wait screen or progress bar and mean while the required page would be loaded behind.
Is there any way to do it?
Thanks in advance
Why are joins bad or 'slow'. I know i heard this more then once. I found this quote
The problem is joins are relatively
slow, especially over very large data
sets, and if they are slow your
website is slow. It takes a long time
to get all those separate bits of
information off disk and put them all
together again.
source
I always thought they were fast especially when looking up a PK. Why are they 'slow'?
Is it possible to translate everething written in OCaml to PHP? for example will it be hard to translate such lib as lib for Fast content-aware image resizing
Adobe flash: How to determine users CPU characteristics? (its mhz, its current ocupation) I need to know how fast is users computer now, and I have only 150 ms for it. How to do such thing in actionscript?
domain.com/index/
to
domain.com/index.php
domain.com/index/hello
to
domain.com/index.php/hello
The site is use path_info,and the default rule not works:
RewriteRule ^([^/]+)/(.*)$ $1.php/$2 [L]
I change to: RewriteRule ^([^/.]+)((/[^/]+)*)/?$ $1.php$2 [L]
That was strange
domain.com/index/ to domain.com/index.php works fine
domain.com/index/hello to domain.com/index.php/hello not work
and it says No input file specified.
Php is run in fast cgi mode in apache
Using the standard VS IDE, is there a fast way to create class properties that are linked to the local variables?
The class diagram seems to provide something, but it basically just created a property stub. Is there something better / easier out there ?
When animating in jQuery, what's best practice for firing a callback only when ALL elements are done animating and not for each element?
For example:
$('.someElements').fadeOut('fast', function() {
// dont do this until ALL elements are done fading
}
The code like this:
$(".hide").click(function(){
$(".online-contact").animate({width: 'toggle',height: '100%'}, "fast");
$(this).hide();
$(".show-class").show();
})
I want to show the div with the class of show-class when the the animate function complete,what can I do it?
In an application in Silverlight I'm working on, I need to track the moves of the mouse. My problem is that using the MouseMove event, I don't have a continuous set of points if the user moves the mouse fast enough (if I add each point in a list I can have (10,10) en then (20,20)...)
I'd like to have ALL points where the mouse has been during the move.
Do you have any idea ?
Things to take into consideration:
- easy to use
- fast
- use underlying OS as much as feasable (like wxWidgets for UI)
Ones I am leaning towards are wxWidgets for UI and Boost for networking - how do they compare to others?
I want to show a filtered history of commits. I need only those commits that have less than 60 seconds between each other, in order to see who did a bad job committing so fast. How to do this?
After asking:
http://stackoverflow.com/questions/3009740/ldap-user-data-caching-on-local-database
I want to cache LDAP user data in the application local database to allow fast queries.
How may I cache LDAP user data in the local database using Spring Security.