Comment by Duncan on MySQL INSERT/UPDATE without ON DUPLICATE KEY
Thanks, that's perfect, I don't know why but I kept on telling myself I needed that meta_id, on reflection its used nowhere!
View ArticleComment by Duncan on Storing a digital signature for bookings on a web based...
Thats interesting but not really suitable as the bookings never directly take the form of the doc types CoSign supports, I take it you work for them?
View ArticleComment by Duncan on Converting wiki format to XHTML
I've used a cut down verson of your code to do some wikitext parsing, the last paragraph isn't closed with your version. I used a slightly modified end: $text = str_replace("\r\n\r\n",...
View ArticleComment by Duncan on Remove duplicate entries from database with conditions
Top one did what I was after, reduced number of rows by about 90% which should certainly make queries and backups quicker. Many thanks!
View ArticleComment by Duncan on Remove duplicate entries from database with conditions
I need to record any and all changes to the results so this wouldnt work unfortunatly.
View ArticleComment by Duncan on Remove duplicate entries from database with conditions
I had thoughts along these lines for future recording but a result captured a few minutes after another will still produce a new row even if the result is the same as the time is different surely?
View ArticleComment by Duncan on Adding audio to video produced from OpenCV
Yes, pyaudio is what I've been using so far, I'm just wondering if doing both separately and then joining later on is a good solution or not
View ArticleComment by Duncan on Prevent OpenCV function CreateVideoWriter from printing...
I just tried this by setting sys.stdout to a file object just before the call and then setting it back afterwards but its still going to the console which I don't truly understand!
View ArticleComment by Duncan on Prevent OpenCV function CreateVideoWriter from printing...
In answer to your question above, no its not writing to stderr either which is really confusing! I tried your suggestion of a context manager with stdout and stderr but its still displaying in the...
View ArticleComment by Duncan on Adding audio to video produced from OpenCV
Hi Steve, Afraid that although this works for short recordings the lipsync tends to drift after a few hours of running and I havnt been able to track down the reason so far.
View ArticleComment by Duncan on What is the best way of validating an IP Address?
IPAddress.TryParse used as indicated above will declare certain strings as valid, among other cases, 0.0.0.0 is validated successfully which for most uses would probably not be desirable.
View ArticleComment by Duncan on How to link .dylib file to Xcode?
Have the same issue so I'm in some ways glad I'm not the only one!
View ArticleMySQL INSERT/UPDATE without ON DUPLICATE KEY
I may have either misunderstood how to use the ON DUPLICATE KEY syntax, alternatively my database structure needs some work but here goes.I have a table (bookings-meta) which represents meta data...
View ArticleAnswer by Duncan for How can I select a different printer in a web application?
You really can't do it from a web app, if it was allowed then pop-up loving sites all over the internet would I'm sure be accounting for most of the worlds ink usage.I had this issue when building a...
View ArticleAnswer by Duncan for Sample twitter application
You need the format on the end of the twitter url, see the twitter api docs for more info:http://apiwiki.twitter.com/Twitter-API-DocumentationThe proxy is probably causing you issues as well, remove...
View ArticleAnswer by Duncan for jQuery selector question
I will confess to having not tested this (yet), but this should fetch the span contents, you can iterate this for each row in your table.$('a.help').siblings('.tip-text').text();
View ArticleAnswer by Duncan for XML RSS Feed Parse PHP
I'd personally use SimpleXML for this, you just have to bear in mind the custom namespace which is being used to carry the weather data, here's a little example (with no error handling etc) which I've...
View ArticleAnswer by Duncan for Any reference material for fetching search results from...
Is it only Amazon you're trying to deal with?At any rate, with Amazon your best bet is to use their API, there's a library which makes it all fairly quick and easy to deal with called CloudFusion. Took...
View ArticleAnswer by Duncan for Confused about table design. How to store multiple data
I'd store each one as a separate row in your table, this would make it easier to add/edit/delete new values without having to append to or extract individual pin codes. Use a compound key on the...
View ArticleRemove duplicate entries from database with conditions
I've had a good look around but havnt been able to find a solution so hoping someone can help with this one.I have a MySQL table of results from an internal logging application which records a result...
View Article