I realize this is somewhat of an abstract question that has several answers, but I am at a loss as to where to begin. I want to have a separate comments area for each of my blog posts. Should I just set up a different table for the comments for each entry manually every time I update the code to include the latest entry?
...
Sometimes I need to inject some raw HTML code into a Wordpress post, and sometimes I need to comment out a chunk of that code.!
With a plain text editor, I can just use <!-- Comment --> around the chunk I want to hide.
But when I try this in a WP post, it does hide the code but I still see the "closing comment tag" -->.
What's the r...
I use on my website, but I can't figure out how to retrieve the comment count from a comment box with a specific XID.
I've tried intercepting all new comments with the following code:
FB.Event.subscribe('comments.add', function(response) {
alert("Comment was added.");
});
I never receive the alert though. Any ideas? I just need the...
I have three lines of code:
//int pi;
activation->structSize = sizeof(rmsActivationT);
int pi; //program wont compile with this here
every time I uncomment the second int pi and comment the first int pi I get this error: syntax error : missing ';' before 'type'. When i uncomment this first int pi and comment the second int pi, my c...
Excuse me if it is a repeat. I have crontab entries which look like:
* * * * * sleep 15;/etc/opt/wer.sh
1 * * * * /opt/sfm/qwe/as.sh
How to insert a # on the line which contains a call to "as.sh" using sed?
How to uncomment it back?
...
I would like to know whether it is possible to define own doxygen comment styles. The usual style is something like this (Javadoc-like):
/**
*
* Descriptions and stuff
*
*/
or (when using Qt):
/*!
*
* Descriptions and stuff
*
*/
I would prefer something like
/*!===============================================================
*
...
I have a Drupal setup, and have created an Imagecache preset for the user profile to create a thumbnail picture.
I have enabled user pictures on node comments, but the picture is not displaying correctly
When I view the source, it shows the correct path being "sites/default/files/pictures" etc but ecause the node path is something like...
What is the best way to hide inline Javascript and CSS from downlevel browsers? ... I see a few variations on a common theme. Are they all correct, or is one approach better than the other?
<script language="javascript" type="text/javascript">
<!--
// Forces the treeview to adjust to the new size of its container
function resi...
Okay so my situation at work is that I've written about 200 or so lines of additional functionality into an aspx page's code-behind that is currently not to be implemented. It is in a subroutine that handles an event that currently has zero chance of occurring.
Because this code is not being used, I've gotten curious. Should I comment o...
Sometimes there is a need for lengthy comments. This can happen when there is a fugly hack which needs long explanation. Yes, it is better to avoid/fix the hack altogether, but often there is time pressure and one has to push it off into the future. If that is the case, then having a detailed comment is quite helpful, including those who...
I need to display link after each comment, when you click that link, a new page displays that single coment on a new page.
Is that possible?
...
Hello All,
I recently created a CMS for the client which is meant to work out of the box. But I made a mistake by not commenting my code at the time of writing. Just wanted to know if there is a tool that will go through the files of CMS and add comment blocks automatically.
Let's suppose I have this code:
class foo{
function bar(ar...
I know, StyleCop is not perfect, but we try to use it in a helpful way. I do like the fact that it complains about undocumented arguments. Now, for properties and constructors it recommends what the text should be, but it does not help with Dispose method, and I think it should. We have many classes that implement IDisposable. In this pa...
I am trying to attach a numerical "post ID" value to comments so that they can be retrieved from the database and displayed in the proper place. How do I establish this numerical value within my html form as something that gets sent to the script that inserts it into the database? I assume I need to use GET or POST but I don't understand...
I'm working on a blog and I have it set up so you can leave a comment on an entry. I don't like how much vertical space all the comments and the entry form use, so I would like to have a link on each entry that you click and it reveals the entry form and comments. I'm thinking a link that's like "Comments (5)". I see this all the time on...
When writing comments, I sometimes find myself needing to talk about a type (class, struct, etc.) in plural when writing comments, such as:
/*
* getThings
* Get a list of --> Things <-- from somewhere.
*/
Thing *getThings(void);
The problem is, the type name is singular (namely, Thing), but I want to talk about them in plural in...
I have a simple web service as below
/**
* Test web service
*/
@Stateless
@WebService
public class HelloWorldWebService {
/**
* Greets the user by appending 'Hello' before the name
*/
@WebMethod
public String doWork(String name){
return "Hello " + name + " !";
}
}
Is there a way (using annotations or otherwise) ...
I just switched back to c++ after leaving it for awhile and I can't seem to remember how to make nice function/class comment boxes in VS. What I'm looking for is something like this:
/**
* Convenience struct: coord
* -------------------------
* Simple C++ struct (which is like a class, except there are
* no methods and everything...
Good Day All,
Got theoretical question.
I'm creating a simple application using KohanaPHP framework, just fyi. This is my first time with framework and have one - maybe stupid for some of you - question.
While developing classes or functions I'm commeting my code using DocBlock. Just wondering how should I comment my code while using ...
I need to somehow make single posts/pages for comments. So i can show the comments as separate pages with there own permalinks. So that users can access theese pages in browser with the comment page permalink.
Thankful for help!
...