comments

FB comments events comment.create and comment.remove not working

送分小仙女□ 提交于 2019-12-02 23:45:45
问题 I am trying adding event listeners into my facebook comments. I tried probably everything I found here on Stack Overflow, also in FB developers docs and old developer forums. Comments are working correctly, I can also moderate them, but events are not being fired at all... I am using FB comments on one page, with multiple fb:comments FBML tags. Here is my javascript code: window.fbAsyncInit = function() { FB.init({ appId: 'myAppId', status: true, cookie: true, xfbml: true, oauth: true }); FB

Finding Shortcuts in Aptana Studio 3.0 to Comment Code [closed]

坚强是说给别人听的谎言 提交于 2019-12-02 23:25:30
I can't find any shortcuts for comment my code in Aptana Studio 3.0. I need shortcuts both to comment individual lines and for commenting selected blocks of code. Some have told me to try to comment with shortcut WIN + / on my Windows OS but that does not appear workable. Robert Grant It depends on which language you're writing in (is this CSS, Javascript, HTML?) For Javascript: Ctrl - / to add or remove // for a single line of code, or for multiple selected lines. The standard Java commenting shortcuts are: Ctrl - / to add/remove // for a single line of code, or for multiple selected lines.

FB.event.subscribe comment.create acting without action from user [duplicate]

▼魔方 西西 提交于 2019-12-02 22:46:51
问题 This question already has answers here : Calling a PHP Method from JavaScript [closed] (2 answers) Closed 6 years ago . OK, so here is my problem. I'm trying to get an email sent to the author of individual posts once a comments is made in facebook comments (to notify the author that comments have been made). The comment box is in a K2 item (in Joomla). FB.event.subscribe comment.create is working, I've tried it with just alert('fired'); and that works fine. But when I enter the PHP it just

Are there standard formats for comments within code?

|▌冷眼眸甩不掉的悲伤 提交于 2019-12-02 20:51:19
I'm wondering if people have a standard format for comments in their code. Not things like xml comments for a method or class but rather comments within a method. See also: Is there a standard (like phpdoc or python’s docstring) for commenting C# code? You should really consider a couple things to make good comments beyond formatting. Do not simply restate what the code is doing. For example, // Start the services StartServices(); is a frigging terrible comment! Describe why . Why is the code doing what it's doing? What's the business assumption or algorithm step? Format your comments for

Are comment headers and footers in your code really necessary? [closed]

半腔热情 提交于 2019-12-02 20:27:48
As it currently stands, this question is not a good fit for our Q&A format. We expect answers to be supported by facts, references, or expertise, but this question will likely solicit debate, arguments, polling, or extended discussion. If you feel that this question can be improved and possibly reopened, visit the help center for guidance. Many corporate coding standards require a large comment header and footer in each and every file. Something like: // MyFile.cpp // // Copyright (c) 200x Company ABC // // This file is a copyrighted... blah blah blah // <... some code ...> // Copyright (c)

Best practices for version control comments

时光总嘲笑我的痴心妄想 提交于 2019-12-02 20:26:08
There is a lot of conversation about commenting code, but how about commenting on check-ins? I found this blog post: http://redbitbluebit.com/subversion-check-in-comment-great-practices/ As the guy who is putting together the release notes, I am looking for ways to make that job easier. Currently we defined our own scheme with <Begin_Doc>...<End_Doc> for anything that should be published to our software customers. But even for the internal stuff, I'd like to know the "why" for every change. Every feature has a ticket/issue/bugreport/task/whatever-you-call-it, and the ticket number is always

Excel: Add comment author using vba

天涯浪子 提交于 2019-12-02 19:20:35
问题 When I add comments to a cell manually (using the insert comment command) the text is preceded by my username in bold font. Is it possible to replicate this characteristic for comments created in vba using Range.AddComment() (for whichever user is running the macro) ? 回答1: You can add the logged in user name (with the user name in bold) like so - this example for cell A1: Sub EasyTest() Dim shCmt As Comment On Error Resume Next Set shCmt = [a1].Comment On Error GoTo 0 If shCmt Is Nothing Then

vimrc make comments italic

馋奶兔 提交于 2019-12-02 18:52:58
How do I change the ~/.vimrc to have the comments in my code italicized? In my ~/.vimrc file I have: highlight Comment ctermfg=blue that makes the comments blue. What do I need to do differently to make them italic? michaelmichael highlight Comment cterm=italic gui=italic You'll need a font with an italic set and a terminal capable of displaying italics. Also, if you're using a color scheme other than the default, the above line should come after the color scheme is loaded in your ~/.vimrc so that the color scheme doesn't override it. The cterm makes it work in the terminal and the gui is for

Todo tasks not appearing in the Task List in visual studio 2012

左心房为你撑大大i 提交于 2019-12-02 18:40:35
I've recently upgraded to Visual Studio 2012 and haven't have any problems except for the fact that comments beginning with "//todo" no longer show up in the task list. I have absolutely no idea on where to start looking for a solution to this problem as all of the keywords are too general. I came across other similar questions where the answer was that the file wasn't open containing the //todo comment, but that is not the case for me. My todo comments do not show up even when the file is open in front of me. Actually there is a dropdown control at the top of the " Task List " window and if

How to remove all comments from the specific file in Android Studio? [duplicate]

|▌冷眼眸甩不掉的悲伤 提交于 2019-12-02 18:38:13
This question already has an answer here: Remove source file comments using IntelliJ? 5 answers I have some big files in my project with many lines commented. Usually when I change something in my code, I comment unnecessary lines first and after testing remove them. But sometimes at the end there are too many comments in a big file, and it is hard to remove them. So, may be there is some function in Android Studio to 'clean up' file from comments (excluding javadoc comments, of course) like 'Organize imports' for removing unused imports in file. Or, maybe, some kind of highlighting commented