comments

facebook xid doesn't work

假如想象 提交于 2019-12-04 21:56:54
i need separate comment thread for each post on my website, so i followed instructions at http://developers.facebook.com/blog/post/472 , ie i inserted the code: <div id="fb-root"></div> <script src="http://connect.facebook.net/en_US/all.js#xfbml=1"></script> <fb:comments href="www.mysite.com" xid="postPOST_ID_HERE"></fb:comments> under each post. but it doesn't work and there is SAME comments thread under each post. if i try this code: <div id="fb-root"></div> <script src="http://connect.facebook.net/en_US/all.js#xfbml=1"></script> <fb:comments href="http://www.mysite.com/news.php?id=POST_ID

XSD for XML documentation generated for C#? [closed]

∥☆過路亽.° 提交于 2019-12-04 21:19:46
问题 Closed. This question is off-topic. It is not currently accepting answers. Want to improve this question? Update the question so it's on-topic for Stack Overflow. Closed last year . Does anyone know if there is an XSD file somewhere that can be used to validate the XML documentation that gets generated when you compile a C# project with the /doc option? I want to modify that file manually after it's been generated and I'm looking for an easy way to confirm that I haven't damaged the structure

Embedding comments in MySQL statements

一笑奈何 提交于 2019-12-04 20:07:02
Does anyone know of a way to embed comments in MySQL statements? When I search for mysql and comments I get only ways to put comments in tables, etc The idea, if I implement this the way my boss wants it, is to prepend the user id to the statement apparently so that when MySQL is analyzed later (via the binary log) we know who did what. Example: SELECT id FROM customer WHERE handle='JBH' Would now show up as: -- user:jwilkie SELECT id FROM customer WHERE handle='JBH' (or similar) EDIT FOR CLARITY: The reason for this is that we have perl modules that are interfacing with MySQL and we are

A way to link to a class,a method, especially a specific code line in C# comment

天大地大妈咪最大 提交于 2019-12-04 19:27:08
问题 I want to build sort of documentation using links in code that point to a target. The target could be a Class or a Method or a specific code line. ( pointing to a specific code line is the most important ) I thought of an extension for VS2010 or a specific comment tag. Is there any way to make links of this kind ? 回答1: Xml comment + sandcastle may be what you need. You can reference specified class or method using <see cref=".."/> and reference parameters using <paramref name=".."/> However,

<fb:comments-count> not working on my WordPress powered blog

戏子无情 提交于 2019-12-04 18:34:22
I am using the Facebook comments plugin on WordPress and the comments box is working fine but I want to access the number of counts on the index page and on single pages. On the pages, the Facebook Javascript is loaded on the pages. Here's the code I used: <fb:comments-count href=<?php echo get_permalink() ?>/></fb:comments-count> comments But it doesn't count the FB comments. Is there a simple code that let me retrieve the number of comment counts? Thanks, ifennec Include this function somewhere in your template file : function fb_comment_count() { global $post; $url = get_permalink($post->ID

How to remove '#' comments from a string?

a 夏天 提交于 2019-12-04 18:28:19
The problem: Implement a Python function called stripComments(code) where code is a parameter that takes a string containing the Python code. The function stripComments() returns the code with all comments removed. I have: def stripComments(code): code = str(code) for line in code: comments = [word[1:] for word in code.split() if word[0] == '#'] del(comments) stripComments(code) I'm not sure how to specifically tell python to search through each line of the string and when it finds a hashtag, to delete the rest of the line. Please help. :( You could achieve this through re.sub function. import

Comment reflower for Visual Studio

不打扰是莪最后的温柔 提交于 2019-12-04 18:04:49
问题 Is there a built-in command or tool that can reflow C# comments in Visual Studio? Sometimes, a section of code requires several lines of comments, and after extensive editing you have to manually insert the line breaks in the appropriately places so that it does not flow past the right edge of your editor window. I'd like to be able to do this with a single key command. After many years of using Visual Studio I still miss the ability to M-q (c-fill-paragraph) in emacs. Edit: The Agent Smith

Textmate “comment” command not working properly for css code

倾然丶 夕夏残阳落幕 提交于 2019-12-04 17:09:42
I'm having some problems when I toggle the comments in TextMate for CSS source code. Using the shortcut CMD + / I activate the "Comment Line/Selection" command from the "source" bundle. The problem is that it inserts a series of // for all kinds of languages. For example, in CSS files it is supposed to insert a /**/ block, but it doesn't. In CSS files I also tried the "Insert Block Comment" command from the source bundle with the weird result that I get the following // . // ---------------------------------------- instead of my code, deleting the code and inserting that. I know I am supposed

disqus— change 'comment' word

和自甴很熟 提交于 2019-12-04 16:44:40
how i can change 'comment' word to 'review' from total number of comment [ 6 comment ] -> [ 6 review ] You do this on the Disqus website, in "Settings" > "Appearance" ( http://your-site-slug.disqus.com/admin/settings/appearance/ ). Almost at the bottom of that page, you have the "Comment count link" setting, where you can change the text for zero, one or more comments. This is updated GUI you can find it "Settings" > "General" and if you need to remove 'comment' word you can't so you have to add something like this 0 <span></span> 来源: https://stackoverflow.com/questions/4573684/disqus-change

C# Roslyn change type of comment

爷,独闯天下 提交于 2019-12-04 15:48:28
I'm trying to make an extension for Visual Studio that changes some syntax in the code. Actually, I've done the first step which was to change the name of a variable if this name was not okey with the rules we use in the firm. For example: int newVariable; double test; will be changed into: int iNewVariable; double dblTest; Now I have to change this type of comment: (SingleLineComment) //this is a single line Comment Into a MultiLineComment /*Here it's a MultiLine one*/ I use the Roslyn Syntax Visualiser to find the type and kind to make a correct code, but nothing works. Here it's what I've