Skip to content

u/kabr

In this archive from May 2009 to Oct 2015

0
posts
19
comments
0
media
40
score

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.

1 points

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.

4 points

There are a number of ways to do this with a little bit more code. Here's just one way:

<a href="#" id="showComments" onClick="$('#comments, #showComments').toggle();">show comments</a>
<div id="comments" style="display:none">
<a href="#" onClick="$('#comments, #showComments').toggle();">hide comments</a>
<div class="comment_list">
</div>
<form>
<textarea>Comment</textarea>
<input type="submit" />
</form>
</div>

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.

1 points

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.

1 points

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.

2 points

End of this list.

Back to top

Keyboard shortcuts

Move and act

jork
Next / previous post or comment
Enteroro
Open the post
f
Open the media viewer
s
Save
h
Hide (the toast has Undo)
Tab
Right after an action: the toast's Undo
x
Collapse the comment
v
Next layout: cards, compact, grid

Go to

/
Search
gthenh
Home
gthena
All
gthens
Subreddits
gthenl
Library
?
This list
Esc
Close a menu or this list

In the viewer

←or→
Previous / next file
↑or↓
Previous / next post
korj
Previous / next post
Space
Play / pause
m
Mute
z
Zoom
s
Save
o
Open the post (on its own page: back to it)
Esc
Close

Keys do nothing while you type in a box.