Which technology is better to use in terms of performance for high performance scalable web application? PHP or Python?
The project is going to involve database.
I suspect that calls from separate threads (15) are having a negative effect on performance. Is there a better way to get at the system time in concurrent applications?
I had a problem highlighting text in a pdf file embedded in webbrowser control and highlighting text using PDFLibNet.pdfwrapper so i'm shifting to another process where i'll just convert the pdf to html so i can manipulate the source code to highlight text.
How can i convert pdf files to html files? Is there a better way?
Thanks,
Jepe
For some reason the background on my website is not loading fully. Randomly, not all the time, the website will load with white rectangles around the content of the website. Check out this screenshot to get a better picture, or visit www.thinkitpostit.com to see if it randomly happens for you. Thanks in advance!
I want to search for a line in a file, using regex, inside a Perl script.
Assuming it is in a system with grep installed, is it better to:
call the external grep through an open() command
open() the file directly and use a while loop and an if ($line =~ m/regex/)?
Hi,
I have this device that sends XML data to a webserver in format as follows
POST HTTP/1.1
Content-Type:text/xml
Content-Length:369
Followed by XML
The problem here is that apache simply sends 400 error for this and does not work.
Is there anyway to create netcat to read xml and send to php? Any other solution welcome! Is it better to run php to listen to Port? in that case will multiple requests at the same time work?
If I need to know the total number of rows in a table of database I do something like this:
$query = "SELECT * FROM tablename WHERE link='1';";
$result = mysql_query($query);
$rows = mysql_fetch_array($result);
$count = count($rows);
So you see the total number of data is recovered scanning through the entire database.
Is there a better way?
Hi Friends,
I would like to test iPhone applications to test on device. I am in confusion on the version of iPhone which suits best for iPhone application development.
Can anyOne of you suggest me, is 2G OR 3G better? Its Urgent..
Thank You.
From the title, I believe it to be a straight forward question, but looking into the "world of Business Objects" I can't seem to put my finger on anything solid as to what a Business Object should be. Are there any best practices that I should follow, or even any design patterns?
I have found a book, "Expert C# Business Objects", would this be my best starting point to get a better understanding?
I have what I would consider a small sized iPhone app that uses SQLite.
There is a singleton domain object which gets data from a SQLite database.
Is it better to create and open the SQLite connection for each request, or to open the DB once and hold on to it for the duration of the app.
The app's reason for being is the domain object so other objects will not need the DB.
What is the best way for an SWT application to clean up resources before application exit? I see two options:
1) Add a DisposeListener to main window (or better, to the Display). Will it get run if an uncaught exception happens?
2) Use a shutdown hook. Any problems to be aware of there which aren't mentioned in Design of the Shutdown Hooks API?
How can I replace a string with another string, within a given text file. Do I just loop through readline() and run the replacement while saving out to a new file? Or is there a better way?
I'm thinking that I could read the whole thing into memory, but I'm looking for a more elegant solution...
Thanks in advance
(Following Features to remove from C++ and Desired features for C++, I thought why not complete the trio...)
What C++ features would you not change? What features are elegantly and brilliantly implemented and still look better than other popular languages?
How does one paginate a large listing of files within a folder?
I can't see any functions in the PHP documentation that mention any way to specify an 'offset'. Both glob() and scandir() simply return all the files in the folder, and I'm afraid that won't be a good idea for a huge directory.
Is there any better way of doing this than simply going through all the files and chopping off the first X number of files?
How would I go about creating a cross-browser script, that would intercept all events firing on
a page/browser window/DOM-tree (regardless of browser)?
What I'm hoping to accomplish is basically to get a better understanding of the different handling
of events in different browsers; I know the basic theory, but need to see to believe...
Hi,
i have two questions:
1) was HTML released and if yes, when?
2) is doctype HTML 5 in use? or is it better to use one of these:
- HTML 4.01 Strict,
- HTML 4.01 Transitional,
- HTML 4.01 Frameset,
- XHTML 1.0 Strict,
- XHTML 1.0 Transitional,
- XHTML 1.0 Frameset,
- XHTML 1.1
I'd like to know if having to conditionals when using a JOIN keyword is a good practice.
I'm trying to filter this resultset by date but I'm unable to get all the branches listed even if there's no expense or income for a date using a WHERE clause. Is there a better way of doing this, if so how?
SELECT
Branches.Name
,SUM(Expenses.Amount) AS Expenses
,SUM(Incomes.Amount) AS Incomes
FROM
Branches
LEFT JOIN Expenses
ON Branches.Id = Expenses.BranchId AND Expenses.Date = '3/11/2010'
LEFT JOIN Incomes
ON Branches.Id = Incomes.BranchId AND Incomes.Date = '3/11/2010'
GROUP BY Branches.Name
Hello,
I've used an array of strings to populate a DataGridView.
How do I go about finding the most frequently occurring number?
Or, even better, order them by most frequently occuring?
Thank You.
I am trying to detect various objects containing colored markers, so a red blue green marker identifies object A, and a red blue red marker identifies object B. My problem is I can't use template matching cause objects can be rotated, currently I am thinking about check for each color then find the object by checking the distance between colors but it seems inefficient, so my question is there a better way to do this?
How would I do to check if a email actially exists?
Cant understand how sites do to send mails with a unique link that the users clicks to validate that he is the owner of email =/
Make a 2 new columns called activationkey and activated and store some random string, send an email with the activationkey, and update the users activated =1 that match that activation link
register.php?a=activate&key=9cdfb439c7876e703e307864c9167a15
Any better ideas?
I am working on my first Drupal project on XAMPP in my MacBook. It's a prototype and receives positive feedback from my client.
I am going to deploy the project on a Linux VPS two weeks later. Is there a better way than 're-do'ing everything on the server from scratch?
install Drupal
download modules (CCK, Views, Date, Calendar)
create the Contents
...
Thanks
I read that it is possible to host WF4 designer in standalone application outside Visual Studio 2010, in fact I tried it too. But main problem with it is missing intelisence.
Therefore the question:
Does anyone know about whether there are open source (or not OS) projects which add this missing functionality to standalone WF4 designer? Even better if it's a universal ready-to-use application
What is a good light weight JavaScript IDE?
I don't care too much for the one built into VS because it seams lacking.
I've been using 1st JavaScript Editor Pro as a alternative for working with JavaScript but I wanted to see if there is any thing else out there that is better and light weight.