Hi, I want to write a web crawler that can interpret JavaScript. Basically its a program in Java or PHP that takes a URL as input and outputs the DOM tree which is similar to the output in Firebug HTML window. The best example is Kayak.com where you can not see the resulting DOM displayed on the browser when you 'view source' but can save the resulting HTML though firebug.
I am writing a website with PHP. Since it will need to be accessed by anyone on the network to access the internet I have to create a mobile version. How do I best check if it's a mobile device? I don't want to have a switch statement with 50 devices at the end since I don't only want to support the iPhone.
Is there a PHP class I could use?
hi everyone iam having a question on magento and want the information on how to integrate Magento with ERP and CRM and which are erp's and crm's which is best integrated with Magento
and how easy it is to do this integration. thankyou for your help in advance
I have an std::string containing a command to be executed with execv, what is the best "C++" way to convert it to the "char *argv[]" that is required by the second parameter of execv()?
To clarify:
std::string cmd = "mycommand arg1 arg2";
char *cmd_argv[];
StrToArgv(cmd, cmd_argv); // how do I write this function?
execv(cmd_argv[0], cmd_argv);
Hello -
I have installed Phusion Passenger 2.0.3 on Apache 2.2.3 on Centos 2.6.18-92.el5 #1 SMP and I am getting the following on the httpd error log
Cannot initialize Passenger in an Apache child process: Could not connect to the ApplicationPool server: Broken pipe (32)
I have removed the modules that Passenger conflicts with as per the documentation.
Thoughts?
Best,
Hello all - many thanks again to people who have kindly offered help (especially to Mark for his outstanding response to my previous question).
I would like to plot implicit equations (of the form f(x,y)=g(x,y) eg. x^y=y^x) in Matplotlib. Is this possible?
All the best,
Geddes
I have a Visual Studio solution containing two web applications.
I would like the first to depend on the second (pages in the first may contain links to, or possibly post to pages in the second).
Furthermore, I would like to be able to launch the first project on a development server (standard debugging procedure for web apps in VS) and have the references to the second project be fully functional.
Does anyone know the best way to achieve this?
Thanks.
Hello to All Group Members.
Can any body tell me how i make a dynamic multilanguage website in php and mysql.I have no idea abt it.I search on google and do not find good solution.
Any one tell me step by step guide if possible made a demo for multilanguage website. Or please refer me any link where tell the detail abt it.How i do it.
Thanks in Advance.
Highly Appreciated.
Best Regard
Hasnat
Which .NET programming libaries do you use most ?
I'm putting together a list, kind of "bestof" SourceForge, CodePlex, Google Code, GitHub, etc.
SourceForge.NET
Nhibernate (database ORM)
SharpZipLib (ZIP compression)
itextsharp (PDF library)
GitHub:
JQuery (JavaScript)
Google Code:
aforge (imaging)
Codeplex:
Excel Data-Reader
Other:
bouncycastle.org (Encryption)
I was thinking what should be the best algorithm for finding all the solutions of this puzzle.
http://1cup1coffee.com/puzzle/endice/
Could backtracking be the an approach for solving this or can you suggest any other approach?
Thanks
I want to be able to do Artist.case_insensitive_find_or_create_by_name(artist_name)[1] (and have it work on both sqlite and postgreSQL)
What's the best way to accomplish this? Right now I'm just adding a method directly to the Artist class (kind of ugly, especially if I want this functionality in another class, but whatever):
def self.case_insensitive_find_or_create_by_name(name)
first(:conditions => ['UPPER(name) = UPPER(?)', name]) || create(:name => name)
end
[1]: Well, ideally it would be Artist.find_or_create_by_name(artist_name, :case_sensitive => false), but this seems much harder to implement
When using CakePhp would it be advisable to set recursive = -1 in the AppModel class and then use the Containable Behaviour whenever you need a deeper data relationship?
I believe this would give my applications the best chance of avoiding database related sluggish performance but is the methodology sound?
Thanks
Leo
Hello,
To illustrate my problem,
TEST="Hi my name is John"
OUTP=`echo $TEST | awk '{print $3}'`
echo $OUTP
What I would expect this to do is pass the $TEST variable into awk and store the 3rd word into $OUTP.
Instead I get "Hi: not found", as if it is expecting the input to be a file. If I pass just a string instead of a variable, however, there is no problem. What would be the best way to approach this?
Thanks all!
Hi everyone,
I was wondering if converting POST input from an HTML form into html entities, (via the PHP function htmlentities() or using the FILTER_SANITIZE_SPECIAL_CHARS constant in tandem with the filter_input() PHP function ), will help defend against any attacks where a user attempts to insert any JavaScript code inside the form field or if there's any other PHP based function or tactic I should employ to create a safe HTML form experience?
Sorry for the loaded run-on sentence question but that's the best I could word it in a hurry.
Any responses would be greatly appreciated and thanks to all in advance.
racl101
From a data frame with timestamped rows (strptime results), what is the best method for aggregating statistics for intervals?
Intervals could be an hour, a day, etc.
I've found the aggregate function, but that doesn't help with assigning each row to an interval. I'm planning on adding a column to the data frame that denotes interval and using that with aggregate, but if there's a better solution it'd be great to hear it.
Thanks for any pointers!
I need parse a string inside a parenthesis, which looks like (A, B, C), where A, B, and C are string that can contain any legal JavaScript code. For example, B might be a very long string with nested structures similar to (A, B, C). What would be the best way to parse such a string?
Hello,
I would like to fill my vector<float> from command line:
more my.txt | myexe.x > result.txt
What is the best way to open the pipe in C++?
Thanks
Arman.
Hi All,
We have a lot of products that are saving their "states" on the registry.
What is the best practice on saving program states? What are the advantages/disadvantages of saving program states as a registry entry or saving program states to a flat file such as XML?
Thanks!
Hello,
i am running eCos with the FreeBSD TCP/IP-stack. Is it safe to have two threads running one to read from a socket and one to write to the same socket?
Well i guess since its the FreeBSD stack the operating system does not matter.
Best regards,
Friedrich
I have image with some object at not solid background. I want to extract this objects like in gimp using "fuzzy select". This can be an example:
http://img249.imageshack.us/gal.php?g=25750902.png
Question is what is the best way to do it using python/PIL...
I know that when parsing XML with objective-c most of the time you use NSXMLParser.
But what if you only need to read one element. Using NSXMLParser sounds like an overload to me.
The issue is that flickr API doesn't use JSON as response when uploading an image. So my response now is:
4638598522
I only need to know the photoid and I like to know what the best solution will be for this.
Some sites, like here at SO, allow 'bogus' slugs in the URL. Before implementing URL slugs on my site, I have a question of 'best practices'...
Given a structure like example.com/123/article-slug-here/, if my site allows bogus slugs by querying on the ID -
Should I ...
just do a redirect to the appropriate/canonical URL (verifying the slug, and redirecting in case of a mismatch)?
-or-
return a 404, since technically example.com/123/this-article-s-u-x doesn't exist?