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 know that you can use return; to return from a Greasemonkey script, but only if you aren't in another function. For example, this won't work:
// Begin greasemonkey script
function a(){
return; // Only returns from the function, not the script
}
// End greasemonkey script
Is there a built in Greasemonkey function that would allow me to halt execution of the script, from anywhere in the script?
Thank you,
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
I am calling a java function from JSP page which returns file name after creationg a XML file. In some cases where size of file is large(Java function execution takes much time due to large data) it is returning blank where as XML file is genertaed after some time. Can any one help me to get the file name in this case so that user can know the generated file name.
TFS Build 2010 is completely different from 2008. There is no "" task - I'm looking for a 2010 equivalent "activity". Is there a way to perform a basic command line execution in TFS Build 2010?
Hi folks:
I see a node named "Bookmark Lookup" in my execution plan.
What does it means? It costs most among steps inside the plan.
Any suggestion to optimize it?
Hi guys,
What's the execute order of the different parts of a SQL select statement? Such as
distinct
from
order by
group by
having
multiline function(count, avg, max, min...)
top(sql server) or limit(mysql)
other parts
Does the different databases have the same execution order?
Great 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.
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()
I need to trace all instrutions of a program using gdb.
After every execution of a instruction, I want gdb invokes a specified function.
Is it a possiable work? How to achieve this?
I searched internet and found "stepi arg" command in gdb could step arg instructions.
But how to find total number of instructions?
After every instruction, how to make gdb to invoke my function automately?
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?
Is there a way to have a full interpreter in Erlang, not just a "shell".
Since it is a dynamic language, not being able to define named functions in the interpreter is a little bit disappointing... I suspect that it is because compilation units (modules) must be explicitly compiled for their execution by the VM, but maybe a REPL acting as a dynamic/recompilable module exist?
I want to show my application user a progressbar for following actions:
when they provide login information in WPF and hit submit/OK whatever.
when they request any information from DB (select command execution).
Thank You
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?
Can a PHP application have too many functions? Does the execution of a large number of PHP functions hog memory and resources? My WordPress theme in-development has a lot of functions (probably more than 100 by the time I'm done) and I'm concerned that I might have too many.
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 ?
Hello,
Consider I scheduled a Runnable for periodic execution with ScheduledExecutorService and there occurs some system Error like OutOfMemory. It will be silently swallowed.
scheduler.scheduleWithFixedDelay(new Runnable() {
@Override
public void run() {
throw new OutOfMemoryError(); // Swallowed
}
}, 0, delay, TimeUnit.SECONDS);
Is it normal?
Why doesn't it propagate to the container?
What is the correct way to handle such errors?
Thanks!
Folks, I have just joined this company which has a huge source tree based upon JSP/Servlet and EJB 1.2. No documentation exists. The code has been written over seven years, with a large number of undocumented changes.
Are there any tool tah can assist me in tracing the execution? Putting a breakpoint is not helping me much.
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.
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?
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 have 4 processes:
p1 - bursts 5, priority: 3
p2 - bursts 8, priority: 2
p3 - bursts 12, priority: 2
p4 - bursts 6, priority: 1
Assuming that all processes arrive at the scheduler at the same time what is the average response time and average turnaround time?
For FCFS is it ok to have them in the order p1, p2, p3, p4 in the execution queue?
I need my program to create and edit a config file, which would contain information about set of objects, and than read it at every execution. Is there some sort of guideline for config style that i can use?
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.