For some recent scraping I've used pjscrape that uses phantomjs, build on nodejs. Basically it's a headless browser that uses jquery to grab elements of the dom. Super easy.
Just a side note, <script></script> tags are (typically) not used for server side code. Typically they are parsed as HTML on the client, most commonly for use with JavaScript.
For PHP, you use <?PHP ... ?>, or if you have short tags enabled in the php.ini, <? ... ?>. These tags must be in a file that has the extension .php, or whatever extension is parsed as PHP as defined on your server.
Seems to me if you're needing to cool the camera is such a hacky way, you should be researching other tools to get the job done correctly. Do you have access to any other cameras?
Also, don't you have issues with clip-length for a long shoot? I shoot lot of video with my 60D, but it wouldn't be my first choice for a long shoot, like a talk/conference.
GIT is easy! You just gotta learn force yourself to use it for a few days, and it'll be second nature. There's only a few commands you need to know to be productive.
For reference, the toggle function from the jquery doc. If you pass a number like toggle(150), you'll get animation with that number representing the anim length in millis. Obviously not required.
There are certain reasons for why you may want to toggle comments client side vs server side. Toggle comments without a page refresh is a benefit in most cases.
I am developing a project that requires a lot of concurrency, and am using node for the api and MongoDB as my data store. Node works great for this type of thing. I have lots of binary data (images) and metadata, which can all be stored in Mongo without using static files. I currently run a few node servers on various ports on the VPS handling various get/post requests, but the site itself is hosted with Apache.
Related, for PHP, I haven't used it, but the Lithium framework looks pretty cool. It interfaces with Mongo, as well.
I'm replying to my own comment because the original code posted was deleted.
To the original author: I felt your code was a good effort, and all comments made about code cleanliness, efficiency, and modern practice shouldn't be taken as personal attacks. I would recommend taking any and all code suggestions as a starting point for your own research on how to be a better programmer. The effort you put into your original post is appreciated, and I think you should expect and welcome criticism from other programmers for the sake of the end user.
Before deploying this code, it would be wise make it injection proof. An easy fix is to add a mysql_real_escape_string() call on every query.
Also, the solution for selecting a random row may not work, as the unique ID's may not be sequential. You could use rand() like so:
SELECT * FROM table_name ORDER BY rand() LIMIT 1
Buzz appeared to have outsourced and had his logo machine-prototyped with an apparent high budget, It also appears he didn't include anyone else in his decision making process. Does Buzz have his own design production firm or something?
Net art.
Learning AE is completely useful. Even if you don't use it intensively later on, it gives insight on post-production and better informs your process.
Warning, none-PHP solution ahead:
For some recent scraping I've used pjscrape that uses phantomjs, build on nodejs. Basically it's a headless browser that uses jquery to grab elements of the dom. Super easy.
Just a side note,
<script></script>tags are (typically) not used for server side code. Typically they are parsed as HTML on the client, most commonly for use with JavaScript.For PHP, you use
<?PHP ... ?>, or if you have short tags enabled in the php.ini,<? ... ?>. These tags must be in a file that has the extension.php, or whatever extension is parsed as PHP as defined on your server.Pretty sure that joke predates usenet... First time I heard it was alt.jokes :p
Depends on the use-case. MongoDB on a shared-host, for example, is not ideal.
Seems to me if you're needing to cool the camera is such a hacky way, you should be researching other tools to get the job done correctly. Do you have access to any other cameras?
Also, don't you have issues with clip-length for a long shoot? I shoot lot of video with my 60D, but it wouldn't be my first choice for a long shoot, like a talk/conference.
GIT is easy! You just gotta learn force yourself to use it for a few days, and it'll be second nature. There's only a few commands you need to know to be productive.
git init
git add
git status
git commit
git push
git log
There are a number of ways to do this with a little bit more code. Here's just one way:
For reference, the toggle function from the jquery doc. If you pass a number like
toggle(150), you'll get animation with that number representing the anim length in millis. Obviously not required.There are certain reasons for why you may want to toggle comments client side vs server side. Toggle comments without a page refresh is a benefit in most cases.
Here's some code that does a toggle client-side. Requires the jQuery library.
That's cool one. The extract($_REQUEST) is especially sneaky.
I am developing a project that requires a lot of concurrency, and am using node for the api and MongoDB as my data store. Node works great for this type of thing. I have lots of binary data (images) and metadata, which can all be stored in Mongo without using static files. I currently run a few node servers on various ports on the VPS handling various get/post requests, but the site itself is hosted with Apache.
Related, for PHP, I haven't used it, but the Lithium framework looks pretty cool. It interfaces with Mongo, as well.
PHP short tags aren't always enabled on production servers, which is a shame because they look so much cleaner.
I'm replying to my own comment because the original code posted was deleted.
To the original author: I felt your code was a good effort, and all comments made about code cleanliness, efficiency, and modern practice shouldn't be taken as personal attacks. I would recommend taking any and all code suggestions as a starting point for your own research on how to be a better programmer. The effort you put into your original post is appreciated, and I think you should expect and welcome criticism from other programmers for the sake of the end user.
Before deploying this code, it would be wise make it injection proof. An easy fix is to add a mysql_real_escape_string() call on every query.
Also, the solution for selecting a random row may not work, as the unique ID's may not be sequential. You could use rand() like so: SELECT * FROM
table_nameORDER BY rand() LIMIT 1Can you encode the HTML into a JSON array, and decode it in Flash?
Buzz appeared to have outsourced and had his logo machine-prototyped with an apparent high budget, It also appears he didn't include anyone else in his decision making process. Does Buzz have his own design production firm or something?
It's the people you meet in school that are valuable, not the degree.
post the deviation next time
End of this list.
Back to top