Hello,
I am working an a project to build an arcade site with PHP. I am considering using ADOdb Lite or MySqli. Which one is better for performance, speed and security?
Thanks,
I generally need to do a fair amount of text processing for my research, such as removing the last token from all lines, extracting the first 2 tokens from each line, splitting each line into tokens, etc.
What is the best way to perform this ? Should I learn Perl for this? Or should I learn some kind of shell commands? The main concern is speed. If I need to write long code for such stuff, it defeats the purpose.
I have tried using the My.Computer.Network.DownloadFile method but unfortunately it is slow.
Executing the simple command below takes ~5-10 secs, which I would say is a lot longer than expected for downloading a 9 kb file.
`My.Computer.Network.DownloadFile("http://www.google.dk", "j:\temp\test.html")`
I am connecting via a high-speed connection (10GB) from a Win7 machine. Do anyone know of any explanations for this behavior?
Hope that you can help me out with this.
Kristoffer
On my machine, the execution speed between "d.clear()" and "d={}" is over 100ns so am curious why one would use one over the other.
import timeit
def timing():
d = dict()
if __name__=='__main__':
t = timeit.Timer('timing()', 'from __main__ import timing')
print t.repeat()
My small game consists of a player and 10 targets.
I have an excel sheet of information of target. It includes the target speed, target accuracy, target probability of hitting of the player. These factors change from target1 to target10. Each time target should appear on screen starting from target1 to target10. How can I call them in such a way?
I've seen some mkspec for mac or linux using llvm.
Does anyone use an llvm compiled version of Qt ? Or llvm on their Qt Projects ? does it speed up compilation times ? Is your project faster ?
We want to make an audio based web based app that will have many sound snippets. We want to cache these files so that performance is good and not dependent on network speed. Can HTML5 cache audio for offline mode?
If we want to use n small lines to outline our circle then we can just divide both the circumference and 360 degrees by n (i.e , (2*pi*r)/n and 360/n).
Did I not do that?
import turtle, math
window = turtle.Screen()
window.bgcolor('blue')
body = turtle.Turtle()
body.pencolor('black')
body.fillcolor('white')
body.speed(10)
body.width(3)
body.hideturtle()
body.up()
body.goto(0, 200)
lines = 40
toprad = 40
top_circum = 2 * math.pi * toprad
sol = top_circum / lines
circle = 360 / lines
for stops in range(lines):
body.pendown()
body.left(sol)
body.forward(circle)
window.exitonclick()
How can I pass data from client to server?
I have a very simple text editor created on a site and every few minutes or so I would like to send the information that has been typed in back to the server as a text file. I am trying to create an effect similar to the live type of googleWave.
Speed and efficiency isn't all that important at the moment. A quick and dirty way would be suffice.
Hello all,
I have a UIPickerView implemented in one of my pages that depends on the didSelectRow delegate method.
An odd behavior I have noticed is when the user moves a wheel and leaves it between selections, then the wheel will move very slowly to the closest selection. The didSelectRow event will not fire until this is complete, sometimes 3 seconds later.
Is there a way to speed this up, or detect when the wheel is being moved, so I can freeze my interface during this time?
I've been looking at L.in.oleum and am intrigued by it's mix of higher-level constructs (loops, dynamic variables) with low-level assembler power (registers).
Are there other languages like Lino out there, which blend the speed of assembler with productivity enhancing features?
EDIT: I realized this kind of sounds like an ad. I'm genuinely interested in other assembler-like languages, Lino is just the only one I happen to know of.
In a url like the one below, I'd like to get the value of ProdId. The URL format will always be consistent, as will the parameter name, but the length of the value may change. It will always be numeric.
http://www.site.com/page.php?ProdId=2683322&xpage=2
Using PHP what's the fastest way to get it (I'll be processing 10,000's so speed is an issue) ?
is there a way i can cache all required application files on the local computer for speed without any disruption (at least those that can be run locally)?
i want it to be able to start even without connection right from the start, isit possible? is Google Gears what i shld use? i heard theres a HTML5 feature/module for it?
Hi All,
I want to set the starting slide manually for the cycle plugin without using pager. It is not working for me.
Code:
$('#divTrac').cycle({
fx: 'scrollHorz',
speed: 1500,
next: '#leftt',
prev: '#rightt',
startingSlide: 2,
timeout: 0, continuous: false,
pause: 1, sync: 1,
nowrap: 1,
slideExpr: '#myTrack'
});
If I use Dos command "copy" to concatenate two files:
copy a1.txt + a2.txt a.txt
I will have something like the following in stdout:
C:\a1.txt
C:\a2.txt
1 file(s) copied.
I do not want to have anything written in stdout, I mean, I just want to have 'a.txt' without those 3 lines written in stdout. Is there any way to do so? the reason is, I need speed and I know that any IO takes time.
Thanks,
Shadi.
instead of SELECT * FROM mytable, i would like to select all fields EXCEPT one (namely, the 'serialized' field, which stores a serialized object). this is because i think that losing that field will speed up my query by a lot. however, i have so many fields and am quite the lazy guy. is there a way to say...
`SELECT ALL_ROWS_EXCEPT(serialized) FROM mytable`
?
thanks!
Hi, I am planning to participate in development of a code written in C language for Monte Carlo analysis of complex problems. This codes allocates huge data arrays in memory to speed up its performance, therefore the author of the code has chosen C instead of C++ claiming that one can make faster and more reliable (concerning memory leaks) code with C.
Do you agree with that? What would be your choice, if you need to store 4-16 Gb of data arrays in memory during calculation?
I need to find the Name and speed of the processor on my machine. I'm building an open source help desk suite and finding this really entertaining!
Thanks for the help guys!
Hello,
I recently created a big portal site. It's time for putting it to test.
How do you guys test a site rigorously?
What are the ways and tools for that?
Can we sort of mimic hundreds of virtual users visiting the site to see its load handling?
The test should be for both security and speed
Thanks in advance.
What is the best way to create a continuously looping background using iPhone SDK so that it seems the foreground object is in perpetual motion ?
I have a background image which I want to move continuously at a given speed from right to left and seamlessly start displaying the beginning of the image when its end is reached.
What is the best, most efficient way to do it to avoid any jumps and get optimal performance ?
Hi everyone,
I have recently heard a lot of people argue about using PHP testing features like PHPunit and SimpleTest together with their IDE of choice (Eclipse for me). After googling the subject, I have still a hard time understanding the pros and cons of using these testing frameworks to speed up development.
If anyone could explain this for me in a more basic level, I would really appreciate it. I am using PHP5 for the notice.
Thanks a lot!
Hi,
I wanted to do matrix multiplication in Java, and the speed needs to be very good.
I was thinking of calling R through java to achieve this.
I had a couple of Qs though:
Is calling R using Java a good idea? If yes, are there any code samples that can be shared?
What are the other ways that can be considered to do matrix multiplication in Java?
Many thanks.
--Chapax
Hello,
Since I'm not familiar with iPhone development I'd like to know whether it is possible to use OpenGL ES1.0 on the iPhone 3gs rather than 2.0.
I'd like to share a code base across different mobile platforms and not having to deal with the programmable pipeline from OGLES 2.0 could speed up an initial build.
Thanks