What is the best way to implement a big (1GB or more) file uploader website in PHP or Java? Using the default way of uploading in PHP or Java results in running out of RAM space and slowing the website very dramatically.
MySQL doesn't currently support updating rows in the same table the trigger is assigned to since the call could become recursive. Does anyone have suggestions on a good workaround/alternative? Right now my plan is to call a stored procedure that performs the logic I really wanted in a trigger, but I'd love to hear how others have gotten around this…
I'm trying to use Sphinx to document a 5,000+ line project in Python. It has about 7 base modules. As far as I know, In order to use autodoc I need to write code like this for each file in my project:
.. automodule:: mods.set.tests
:members:
:show-inheritance:
This is way too tedious because I have many files. It would be much easier if…
I'm trying to connect to an external Sql Server through PHP 5.2.
Using this line:
$con = mssql_connect('123.123.123.123','Username','Password') or die('Could not connect to the server!');
I'm receiving this error:
Warning: mssql_connect() [function.mssql-connect]: Unable to connect
to server: 123.123.123.123 in
…
Good day,
I am developing using Entity Framework and WPF, and I am encountering some errors and I don't know why. When saving a record (using a BackgroundWorker), I set the entities change tracker to nothing (null), attach the record to a new disposable context, save it, detach, and dispose of the context.
Saving a…
I am a self taught "developer". I use the term loosely because I only know enough to make myself dangerous. I have no theory background, and I only pick up things to get this little tool to work or make that control do what I want.
That said, I am looking for some reading material that explains some of the theory…
I'm attempting to use CouchDB for a system that requires full auditing of all data operations. Because of its built in revision-tracking, couch seemed like an ideal choice. But then I read in the O'Reilly textbook that "CouchDB does not guarantee that older versions are kept around."
I can't seem to find much…
Hi all--
We're upgrading from SQL Server 2005 to 2008. Almost every database in the 2005 instance is set to 2000 compatibility mode, but we're jumping to 2008. Our testing is complete, but what we've learned is that we need to get faster at it.
I've discovered some stored procedures that either SELECT data from…
Simple question, would love a solution if there is one! I assume there has to be some keyboard shortcut that will insert a null but Google isn't helping.
Thanks in advance!
Hello,
I'm pretty new to the iPhone developing scene, and I am designing an app for a high school band program. Part of the app needs to be an image gallery that retrieves photos from a directory on the band's website and lists them in the thumbnail view. I can't figure out how to create a thumsview that isn't…
Given a class, what reasoning is there for either of the two following code styles?
Style A:
class Foo {
private:
doWork();
int bar;
}
Style B:
class Foo {
private:
int bar;
doWork();
}
For me, they are a tie. I like Style A because the member variables feel more…
When a user moves the Google map, I would like to display items in the viewing range of the user automatically. How can I efficiently and quickly display the items?
I have basic understanding of calling getBounds() method every time the user moves the map, but I am not sure how I can efficiently search and…
I was looking for an API to send incoming calls to voicemail.
I know this can be done using the Contact app that comes with any Android
phones. But is there an API for this?
If you have images or other files that reside externally, how do force the browser to download the link when a user click on it?
The use of "Content-disposition: attachment;" header would do that, but it is not working for files that resides externally without reading and importing the file locally.
What I'm basically attempting to do is dynamically change a padding value for a scrubber image based on player position data provided by an app. I have been able to leverage the provided number to dynamically increase the width of a progress overlay image and create a progress bar, but I would like a…
What happen when you try to add a variable into APC and the APC cache is full? Does it automatically remove least used variable from the cache?
Thanks.
When I am going to upload a file, my $_POST variable knows the file name, but the $_FILES variable is null. I've used this code before, so I'm really stumped.
Here's what I'm using for input:
<label for="importFile">Attach Resume:</label>
<input type="hidden" name="MAX_FILE_SIZE"…
What is the easiest way to find out how fast the Android device is traveling. Also, is there a way to register an intent for speed. Example: intent if the device goes more than 20 miles an hour.
What I'm essentially building is a webkit based controller that communicates with a program called Ecoute.app.
The controller has a progressbar that indicates the progress made through the currently playing song, but I want to make this bar's position adjustable with a click.
function…
While studying for the 70-433 exam I noticed you can create a covering index in one of the following two ways.
CREATE INDEX idx1 ON MyTable (Col1, Col2, Col3)
-- OR --
CREATE INDEX idx1 ON MyTable (Col1) INCLUDE (Col2, Col3)
The INCLUDE clause is new to me. Why would you use it and…
I'm writing an app that needs to keep an in-memory cache of a bunch of objects, but that doesn't get out of hand so I'm planning on using NSCache to store it all. Looks like it will take care of purging and such for me, which is fantastic.
I'd also like to persist the cache between…
My current process for debugging stored procedures is very simple. I create a table called "debug" where I insert variable values from the stored procedure as it runs. This allows me to see the value of any variable at a given point in the script, but is this is there a better way…