comments

What documentation should I request from my developer?

Hi, I am looking at commissioning a fairly straight forward restaurant directory and booking web app and I have had some quotes to use joomla and other OS CMS's as the base however I am thinking I like the idea of less clutter and more flexibility of a custom app. It will probably be cakePHP... I want to make sure that I have the rele...

WordPress comment_form() help

The new version of WordPress gas a comment_form() function. There are a few breakdowns of this new function out there, but I can't seem to wrap my head around adding a custom form field. For example, I'd like to have a field called 'Location,' and then display their location along with their comment. Would anyone out there be able to b...

Hide posts in wordpress

Hi, I've created new entities that are similar to posts which are displayed via my custom pages. When I create this custom entity I also create new post and attach post ID to custom entity, so I can post comments to my custom entity. I open page with my custom entity and comments are displayed too, and everything is great, except that ...

call_user_func ... valid callback

I have practically 0 PHP knowledge. I have a wp blog, I just published my first post, and when I try to use the comments, I get the following: Warning: call_user_func(twentyten_comment) [function.call-user-func]: First argument is expected to be a valid callback in /home/erisdesi/public_html/wp-includes/comment-template.php on line 130...

Are C++ comments considered bad style in C?

I was discussing C programming styles with some students and when we were talking about comments, one of them noted that he doesn't use C++ comments in C code because they are a bad idea. Turns out that it was based on personal experience with multi-line C++ comments, but it's not the first time I've heard that claim. So, is // considere...

Generting documentation from custom Code Comment Format. Know a Tool?

Hi everybody ::- ). Do you know of any tool that can generate documentation based on a custom comment format, as long as that format is consistent across the application? I have an ActionScript3 project but I strongly dislike JSDoc style (the one with /* * * * comments). I have an abbreviated and dare-say nicer looking format to which I ...

Need a guestbook script with a tool for moderation.

I need to create a guestbook-like page on my website. However, the server ( main site ) runs Apache and PERL but not PHP - and the sysadmins will not change this. However, I have other servers which run PHP which could be used. The form and the guestbook page just need to be on the main site server. The engine could live on one of th...

Javadoc comments vs block comments?

When is it appropriate to use a block comment at the beginning of methods, and when is it appropriate to use a javadoc-style comment? From the "Comments" section of the Java style guide, I found this: Java programs can have two kinds of comments: implementation comments and documentation comments. Implementation comments are ...

What are the common workarounds for multi-line comments in Perl?

This RFC mentions Unlike many programming languages Perl does not currently implement true multiline comments. This, and the workarounds that are in common use can be problematic. This could be solved by adding a new syntax to allow for comments to span more than one line, like the variation on here-documentation cited below. What ...

Left justified comments for ESS

When I use C-M-\ (with emacs and ESS) to format my R code, it right justifies my comments. For example, it changes: #This is a comment x=5 to #This is a comment x=5 How do I stop my comments being right-justified? ...

How do I filter comments for git push commands?

I like to commit locally at every opportunity - ending up with all sorts of comment spam in my git repository. Changes may get reverted multiple times, never mind that late night commits contain interesting expletives. Is there an easy way to filter my git push to a public repository to remove all of the comment spam? Ideally, I would l...

Are there conventions for Python module comments?

It is my understanding that a module docstring should just provide a general description of what a module does and details such as author and version should only be contained in the module's comments. However, I have seen the following in comments and docstrings: __author__ = "..." __version__ = "..." __date__ = "..." Where is the co...

PHP IDE Commenting (Netbeans)

How to make good commenting for PHP IDE (actually i using NetBeans) my target is when i using a class or function there is will be a explanation about it's function, like when i typing mysql_connect("param", "param"); there is will be a popup explanation about it function what it parameter and the output. ...

How to avoid eclipse importing a class when putting the class name in the comments

Sometimes I put the class name in the comments of methods or class just for referencing. But eclipse does the import automatically and leaves an import statement in the file which causes "unused import" checkstyle errors later. Is there some configuration I can change to avoid eclipse automatically importing when I type the class name in...

How to add package level comments.

Hi All, I am using check-style, FindBug and PMD to validate my java code. I have fixed almost all the bugs caught by these tools. I am not able to understand how to write package comment which is a bug caught by checkstyle. I have gone through the documentation of checkstyle, But I am not able to understand it. Could some one help me ...

Set Windows Process 'Comment' via .Net?

When looking at my Windows tasks via Microsoft's/Sysinternal's Process Explorer I can see/modify a process's 'Comment' attribute. Is it possible to set this attribute programmatically from within the process itself somehow in a .Net application or this something specific to Process Explorer? ...

What's the difference between "browser posting" and "program posting"?

I've asked one question about this a month ago, it's here: http://stackoverflow.com/questions/3362399/post-method-to-communicate-directly-with-a-server. And I still didn't get the reason why sometimes I get 404 error and sometimes everything works fine, I mean I've tried those codes with several different wordpress blogs. Using firefox...

Linux tool to check spelling of comments in c/c++ source code

What software do you suggest to check spelling of comments contained in c/c++ source code (especially doxygen comments)? I'm looking something that will parse only comments so I can easily find mistakes and correct them. The question is general but to be more specific - I'm using CodeLite IDE. ...

How to auto-collapse certain comments in Visual Studio 2010?

A colleague of mine uses a abomination text editor that routinely leaves comment blocks all over the code. Needless to say, this is driving me rather mad. The comment blocks look like this: /* EasyCODE ) */ /* EasyCODE ( 0 WndProc */ /* EasyCODE F */ i.e. they all start with EasyCODE and most of them span several lines. Thankfully, V...

How Does Wordpress Read Comment Title?

I'm working on my own little back end framework for future clients and I'm making a folder named "Forms" to store all of my forms for CMS interaction. Inside the forms folder I'd like to store .php files similar to wordpress style plugins that I can title in the comments code like wp does... ie /* Plugin Name: Name Of The Plugin Descri...