Hey, I'm just wondering if it's possible to have a form in html do two things on submit, have the action go to a url like normal (for a search) but also run a mysql command.
Thanks!
Hi, I'm just wondering how I could remove everything after a certain substring in PHP
ex:
Posted On April 6th By Some Dude
I'd like to have it so that it removes all the text including, and after, the sub string "By"
Thanks
I have some code in a loop
for(int i = 0; i < n; i++)
{
u[i] = c * u[i] + s * b[i];
}
So, u and b are vectors of the same length, and c and s are scalars. Is this code a good candidate for vectorization for use with SSE in order to get a speedup?
Hi
What language would I need to use to decompile an swf file automatically on my server, not like a desktop app.
A bit like http://www.showmycode.com/
And could anyone point me in the right direction to get started?
I'm looking for a virtual webcam driver to use in a .NET project, this project will be GPL, and have no idea how many installations there will be
The idea is that the application is using the webcam without locking the device.
Found a couple of programs that do the job, but either in application and/or too expensive:
* http://www.softservice.org/products_camsplitter.html (9.99$/installation)
* splitcamera.com (program, no SDK available)
All idea's are welcome
Hi, I'm just wondering how I could remove everything after a certain deliminator in PHP
ex:
Posted On April 6th By Some Dude
I'd like to have it so that it removes all the text including, and after, the deliminator "by"
Thanks
Hey, I'm just wondering if someone could tell me, or point me in the right direction, on how to make a count up timer.
I'd like to have it constantly, from the second I put it into place count up saying the seconds, minutes, hours, days, and years.
Thanks!
Ok, well on my site
http://www.easyasmp3.com/
for some reason the esnips (first) results arn't playing in internet explorer on the results page. When you click the little play button it's not doing anything. Works fine in firefox.
Could anyone help
Thanks!
Hi,
I'm currently looking to have a mysql query retrieve data and have and a start and limit.
So like, select * from table where x = x START AT ID X LIMIT X
thanks :)
Hey, I'm just wondering if it's possible to have a form in html do two things on submit, have the action go to a url like normal (for a search) but also run a mysql command.
Thanks!
What is the easiest way to save UIView's representation to file?
My solution is,
UIGraphicsBeginImageContext(someView.frame.size);
[someView drawRect:someView.frame];
UIImage *image = UIGraphicsGetImageFromCurrentImageContext();
UIGraphicsEndImageContext();
NSString* pathToCreate = @"sample.png";
NSData *imageData = [NSData dataWithData:UIImagePNGRepresentation(image)];
[imageData writeToFile:pathToCreate atomically:YES];
but it seems tricky, and I think there must be more efficient way to do this.
I have a very large nested for loop in which some multiplications and additions are performed on floating point numbers.
for (int i = 0; i < length1; i++)
{
s = GetS(i);
c = GetC(i);
for(int j = 0; j < length2; j++)
{
double oldU = u[j];
u[j] = c * oldU + s * omega[i][j];
omega[i][j] = c * omega[i][j] - s * oldU;
}
}
This loop is taking up the majority of my processing time and is a bottleneck.
Would I be likely to see any speed improvements if I rewrite this loop in C and interface to it from C#?
Let's say I have remote interface A:
@Remote
public interface A {
public Response doSomething();
}
And implementation:
@Stateless
public class B implements A {
public BeeResponse doSomething() {...}
}
Where:
BeeResponse extends Response.
Response is located in the EJB-API jar and BeeResponse is in the implementation jar.
Response and BeeResponse have different serialVersionUID.
My assumption is that the unmarshalling of the response from B will fail, am I correct?
When using many IDEs that support autocompletion with Python, things like this will show warnings, which I find annoying:
from eventlet.green.httplib import BadStatusLine
When switching to:
rom eventlet.green.httplib *
The warnings go away. What's the benefit to limiting imports to a specific set of types you'll use? Is the parsing faster? Reduces collisions? What other point is there? It seems the state of python IDEs and the nature of the typing system makes it hard for many IDEs to fully get right when a type import works and when it doesn't.
Alright, well this is the deal.
I have a page, and then it loads an iframe.
When anything inside the iframe is clicked, the main page (iframe parent) just reloads.
How can I have it, so that if the iframe parent is reloaded from a click inside the iframe that a certain boolean or something is passed, displaying something different.
Thanks
Hey, I'm trying to mod rewrite the image locations on my site, I'm just using this :
rewriteRule ^thumbs/(.*)$ http://site2.com/images/$1 [L]
so that I can redirect all image requests going from
http://site1.com/thumbs/something to http://site2.com/thumbs/something
But only some of the images are loading, and not all of them.
Thanks!
I know that with an InnoDB table, transactions are autocommit, however I understand that to mean for a single statement? For example, I want to check if a user exists in a table, and then if it doesn't, create it. However there lies a race condition. I believe using a transaction prior to doing the select, will ensure that the table remains untouched until the subsequent insert, and the transaction is committed. How can you do this with MySQLdb and Python?
Hi, I'm just wondering if it's possible to retrieve the the most entered entries from the mysql database
It's like this :
ID - Value
Id is auto increment, and value is the text that is being entered, i'd like to have it display the top 10 most entered terms, how could i do that?
Is there a way to get a variable name as a string in Javascript? (like NSStringFromSelector in Cocoa)
I would like to do like this:
var myFirstName = 'John';
alert(variablesName(myFirstName) + ":" + myFirstName);
--> myFirstName:John
-- added
I'm trying to connect a browser and another program using JavaScript. I would like to send instance names from a browser to another program for callback method.
Hey, I need help isolating part of a url in PHP.
say I have
http://www.test.com/something/something/important/
How could I isolate the "important"
Thanks!
Hi, I'm using something like this
mysite.com/out.php?url=outurl.com
I'm just using a simple redirect, but I'm just wondering how I can hide the referrer.
Thanks!
Hi, I have an iframe loading some content, and I would like it so that when anything inside the iframe is clicked (a new window pops up) but I would also like it so that the page displaying the iframe reloads, is there any way to do this without modifying anything inside the iframe?
Hey, I'm just wondering what code I could use to auto change the size of the video being embedded before it gets displayed.
Example, I need to have it find all instances of this
width="any value" height="any value"
and replace them with this
width="540" height="405"