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!
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
Hello,
I am using the .NET 4.0 client profile for my app and I run a dual core with 4 GB Ram and a fast hard disk.
nothing big is done at the start just showing a generic List in a wpf listview.
How can I make the cold start faster of my assembly ?
Somebody know the VListBox?
It is fast to load item to the listbox.
But I can't get the SelectIndexChanged Event be triggered by set SelectIndex.
Somebody know how to trigger that event by winapi or something else?
VlistBox source code is in the page above.
I have installed Visual Studio Express Web Developer 2010 and boy it really slows my system down a lot. Is there a way to identify the services like SQL Server and set them to manual so I can avoid all my memory resources been occupied when not using Visual Studio? Is it just SQL Express the problem or are there any other things I should consider disabling in order to have a fast and reliable system when not using Visual Studio?
Thanks!
What should I write into the .bat file for it to find all files with same names in folder (and it's sub folders) and replace them with file from another file (from another folder)?
Is there any fast way if we have 1 000 000 folders with nearely 10 000 files for replacement?
How do you, as a programmer, think that a technical report on a software should be done, in a manner that can optimize the task of another programmer take it and start feeling confortable with the code as fast as can.
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 ?
Hi, I will be really fast, in my app I've a UITabBarController, in one tab I've implemented a TTThumbViewController but when it appears my tabbar disappears and I lose the primary navigation in my app. What is the right way to implement it?
Thanks
As a side-project I'm trying to create an app that scans license plates from passing cars from my living-room window.
I have hooked up a high resolution camera to my system to capture (moving) images into my c# app. Now all I need is a way to interpret these images into something readable.
I´m thinking about some sort of OCR-solution that is fast/accurate enough for moving images.
Hope you can give me some direction!
Hi
I need a good fast, reliable (open source would be a plus) tool for Java for tracking Maintainability index and simliar code metrics to show the customer the progress of working on refactoring issues.
What would be your suggestion to apply?
I have an RIA Service that returns image data (Byte[]) and caption of image (String) from SQL Server.
The data part can sometimes be a few MB's so it can take quite a while to load.
I would like to load the bytes independently of the caption (which loads very fast).
Is there a way to do this without having to create a second image context?
Hello,
.NET 4.0
I am looking for the easiest way to generate a Word document on our server.
Limitations :
Server side
I don't want to install word on the server
Data source is XML
I tried to generate a DOCX with XSLT which is fast and easy but the only way I could find to validate the generated document is to open it with Word and the only error I get when the document is not valid is "Error while opening document". Not very useful.
Any ideas?
Thanks,
Alex
I used code:blocks as the C++ IDE on Windows. I switched to netbeans 6.8 (with C/C++ plugin, MinGW, MSYS) recently, because netbeas have the nice feature of "checking syntax errors when typing" (same as working on Java or PHP projects).
But the painful thing is that, it takes 2 seconds to compile a simple hello world project in netbeans. Any trick to make it as fast as code:blocks, or at least make the compiling time no more than 0.5 second?
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
}
I'm looking for a fast IDE for Linux that has Find&Replace. I'm currently using Geany and I've tried NetBeans, and Aptana doesn't have a PHP plugin for 2.0. I prefer one that has a sense of projects. Does anyone have any suggestions?
Hi!
I have issue
$('#myimg').animate({
border: '10px solid #ffffff'
},'fast',function(){
alert('callback');
});
Working with: FF 3.6.3, Chrome 5.0.375.55, Opera 10.53
Not working with: 8.0.7600.16385
Issue, no callback ;)
With animation for example "width", callback works also in IE, bug is with border.
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.
I would like to know which of the opensource PDF engine can convert a pdf into a image the fastest.
I don't care about the quality of the result (antialiasing ...)
For my project it need to be very very fast.
I would probably need to build my own but i dont wan't to start from scratch.
Say, using MySQL, if the movies table has 20,000 records, and each record has a field that is the description of the movie, up to 2k byte long. How can we search for movies with the word "nature" in its description? If possible, it is to be fast, instead of going through all the 20,000 records. (if in some other situations, like for books, where n can be 200,000 or more).
hello.
In meta-programming number of classes grows quite fast.
Is maximum number of classes modern compiler allows, for example g++, something to be concerned about?
Thank you
I would like to know if the following steps are possible and how fast this is:
Create a partition named part1 in Table A
Drop partition part1 in Table B
Import the Table A partition part1 into Table B
Can you provide me with an example if it is possible indeed? Or any resources I can look at?
Is there a way to capture the screen but without the app itself getting shown. I know how to minimize or make a frame invisible but this has to be done real fast cos it's going to happen alot in each second (at least once every second). I want it to look something like the magnifier in Windows Vista/7. (The app can see behind itself.)
Thanks in advance.