set<int> s;
s.insert(1);
s.insert(2);
...
s.insert(n);
I wonder how much time it takes for s.find(k) where k is a number from 1..n?
I assume it is log(n). Is it correct?
I am placing 20 images in hdpi folder, 20 images in mdpi folder and 20 images in ldpi folder, all are same images but different resolutions . I am placing my app in android market. One user install my app in his normal android device through market, My question is total 60 images download the device or only 20 images(mdpi) download the device at the time of install the app.Thanks for reading my question.
hi,
I am creating one desktop application in which I want to track user activity on the system like opened Microsoft Excel with file name and worked for ... much of time on that..
I want to create on xml file to maintain that log.
Please provide me help on that.
We wrote a stored procedure for selecting a single record from DB at a time. Using the same stored procedure to read 2000 records it takes 4 seconds. Is there any way to optimize it? (like single stored procedure for 2000 records)
Thanks & Regards
Padma
How much time, and what basic steps, are involved in integrating the "Facebook Like" feature into an existing e-commerce site?
Let's say we are only interested in the feature at the product details level and have approximately 5 different product details areas.
Any recommended tutorials perhaps?
Thanks
I need to display the FIFA world Cup 2010 schedule on my Drupal website. But what I want is that each visitor should be able to see the time for the upcoming matching as per his/her own geographic location . How can this be done ?Any suggestions would be welcomed. Thanks for reading this through.
Hi,
Im writing a tool c# (and System.Net.Mail) which will be sending around 4000 emails fornigtly.
Can i simply loop through a list of 4000 email addresses and send emails one at a time?
or will this cause any potential problems?
Is there a better way to do this?
Thanks
Now I've set up the flash application to work in to stage:
the uploading stage: uploading the stream from pc A's camera to FMS
play stage: watch the real time stream from PC B's browser
I want to make stage 2 work on mobile phones too.
But currently it's using flash(actionscript) to connect and play the stream, which is not supported out of the box.
How to port this kind of application to mobile phones?
How to record Audio and Video at the same time into flv in Adobe air 2.0 ? So that Video and Audio will be sinchronised?
Open Source libs and
Blog aricales are wellcomed!)
Hi. I'm having some difficulty with drawing a line on a map. I'm basically drawing it etc. but when I select other tab and then come back to the "map tab" the line disappears. How can I prevent that so the line stays there all the time?
Hi All,
I want to know if I can find/reach UI components of running application under Android OS.
it is possible to catch the Button/DDL/.. that was clicked by the user in real-time,
example from other subject(web):
In browser I can listen to the events and catch the DOM object that was clicked,
in this way I can save the DOM object data.
catching UI components that was changed by the user will give the option to save UI componentdata, and to perform the user actions automatic.
Thanks.
Is there an API that works for pre OS 3.2 for getting the current time of a video being played back? There's this one
http://developer.apple.com/iphone/library/documentation/MediaPlayer/Reference/MPMediaPlayback_protocol/Reference/Reference.html
But it's 3.2 or later....
Is there any way to do this with the MPMoviePlayerController API?
A lot of developers get an exciting idea and they create a project, but eventually life gets in the way and you have to stop working on the project. Some time passes and you know you should probably get back to work on the project, but you just can't make yourself do it.
What do you do to force yourself to get back to work on a project you have not touched in a while?
We're using iMacros to fill web forms. Does anyone know how many instances of iMacros can be run at the same time on a PC?
If I need to automatically fill web forms for screen scraping, is there a better tool if I need "tons" of instances to run simultaneously?
Thanks.
I use
connect(socketfd, (struct sockaddr*)&remoteAddr, sizeof(remoteAddr))
to connect my iPhone to a computer (over WIFI) and it works fine so far.
However if the computer is out of reach, my iPhone tries to establish a connection for more than a min.
Is there a posibility to set the time manually out to a new value, e.g. 15 sec?
I'm making a speed game in VB.Net (Console Application) and users have a certain time to press a certain key. So how can I give the Console.ReadKey function a timeout without just waiting until a key was pressed?
I want to reload lua scripts at run-time. What are the ways to do this? Do you just have to reinitialize the lua system and then re-read all the lua files?
I have a windows form simply like this: 1) a button when clicked will perform an operation taking a long time to complete, 2) a label showing how much percentage of the progress is going on.
In the long operation I mentioned, I write the code to update the Text property of the label but it doesn't work!
Please help me to show the progress status correctly.
I'd like an easy way to display any TimeSpan as an elapsed time without using loops or custom logic
e.g.
hours : minutes : seconds
I'm sure there must be a .NET built-in or format string that applies, however I'm unable to locate it.
I'd like an easy way to display any TimeSpan as an elapsed time without using loops are custom logic
hours : minutes : seconds
I'm sure there must be a .NET built-in or format string that applies, however I'm unable to locate it.
I've just run the following in bash:
uniq .bash_history > .bash_history
and my history file ended up completely empty.
I guess I need a way to read the whole file before writing to it.
How is that done?
PS: I obviously thought of using a temporary file, but I'm looking for a more elegant solution.
I have just started to write code in C, C++, Java, ASP.NET, C#, Objective-C, I-Phone, etc.
But I don't understand why i have to spend 20% of my time for fixing bugs.
I just learned those programming languages as they are. Do most programmers face this type of problem?