Hey, all. Working on my first Rails app.
I've searched all around - read a bunch of tutorials, articles, and forum posts, watched some screencasts, and I've found a few examples that come close to what I'm trying to do (notably http://railscasts.com/episodes/154-polymorphic-association and ep 196 about nested model forms), but not exac...
Hello guys,
Quick question I currently have a small bit of code that is pulling comments from a comment box on one page and displaying those comments on another page.
Here is the code that I have on my page.php:
<div id="comments">
<?php if ( is_page('share-your-story')) {
$comments = get_comments('post_id=2583');
foreach($comments ...
I'm new to using Visual Studio 2008 IDE. Switching from vim. Is there a way to setup Visual Studio to automatically indent C comments /* */ such as:
/*<ENTER>
I want this:
/*
* <CURSOR>
Edit:
Seems like Visual Studio 2008 has this behavior for C# comments but not for C/C++ under:
Text Editor > C# > Advanced > Generate XML docume...
Just a question of interest: Does anyone know why there's no block comment capability in VB .NET? (Unless there really is - but I've never yet come across it.)
...
Is there an accepted best practice for commenting functions? I only know of the doxygen style but it is not officially supported by C++ like Javadocs is for Java so just wondering what is best.
...
I'm looking into integrating a Digg-like comment system into a website with an existing user base.
I know there are things out there like Disqus and Intense Debate, that are meant for people to add to their blog, but I want (need) something that I can tightly integrate into my site, with out requiring the user to sign on multiple times....
I don't know if this is possible with SQL:
I have two tables, one of content, each with an integer ID, and a table of comments each with an "On" field denoting the content it is on. I'd like to receive the content in order of how many comments have it in their "On" field, and was hoping SQL could do it.
...
I'm tired of writing comments that look like this
{
# bla bla blabla bla blabla bla blabla
# bla bla blabla bla blabla bla blabla bla blabla bla blabla bla bla
# blaaa bla
}
I have to manually wrap the lines and take care of the # as well. How do emacs pros make the editor work for them?
...
I'm trying to access an XML file using DOM. One node is already commented out. How do I uncomment it using java code?
...
<!--[if IE 6]>
I am using IE6
<![endif]-->
That works.
How do I do "or" IE7?
...
I've always hated comments that fill half the screen with asterisks just to tell you that the function returns a string, I never read those comments.
However, I do read comments that describe why something is done and how it's done (usually the single line comments in the code); those come in really handy when trying to understand someo...
Why does Amazon.com have <!-- MEOW --> at the end of their landing page? I have heard that it is just some text that some sort of script or component looks for to tell if the entire page was rendered.
Does anyone know if this is true, and if so, is it a good (or common) website monitoring practice?
...
Hi All,
At the time of development we tend to put lot of comments in the HTML pages or may be comment out some stuff as per customization request of end user. When dealing with hundreds of pages how to ensure that all commented text is removed before final deployment. Cause packaging pages with comment for everyone else to see ,is I assu...
given a delegate like
Func<string,string,string> MyFunc = (firstName,lastName) => string.Format("Given Name:{0} Surname:{1}",
firstName,
lastName);
How would you can you document the ...
Possible Duplicate:
Is it possible to write good and understandable code without any comments?
When coding often I hear that if comments are needed then it means that the code is too hard to understand. I agree that code should be readable but often the language itself makes the code hard to follow, because of "plumbing" and s...
I am trying to write a comment matching rule in ANTLR, which is currently the following:
LINE_COMMENT
: '--' (options{greedy=false;}: .)* NEWLINE {Skip();}
;
NEWLINE : '\r'|'\n'|'\r\n' {Skip();};
This code works fine except in the case that a comment is the last characters of a file, in which case it throws a NoViableAlt exce...
Could anyone tell me why Facebook comments are not working properly?
50% of the time no comments show up initially, with multiple errors in the response ajax from facebook.
99% of the time it's impossible to delete a comment without getting a "Bad Parameter" message.
50% of the time it's impossible to post a comment without getting a "D...
I need to have page where people can send comments, but it is not blog post, so is it possible to make comments to that page without making a blog posting?
...
Hi all,
Is it possible to search within a project the comments users added after they checked-in files? (manually can be done by selecting a file, Right Click --> Show History --> select Version --> Details, viewed at Comment pane).
Is it possible to get all files that have as comment lets say '4.4.2' automatically?
Thanks in advance...
If you have a project where the only difference in the 2 branches are the comments, what is a good workflow (assuming Git, but other ideas are welcome):
simply write a hook that strips out comments after each commit and saves the result to a set of files, use only a single branch
simply maintain 2 branches
other
...