comments

Will xid-based fb:comments be lost on June 1st?

无人久伴 提交于 2019-12-01 14:17:21
As far as I know there is no way to migrate existing Facebook comments which use fb:comments/xid over to the new fb:comments/href version. There are some StackOverflow topics ( How to migrate Facebook comments from using "URL" property to "HREF" , http://facebook.stackoverflow.com/q/8487357/138526 ) which supports this interpretation. Now Facebook says in their FBML documentation : Starting June 1, 2012 FBML apps will no longer work as all FBML endpoints will be removed According to the docs 'xid' is FBML, not XFBML. Does that mean all old comments will be gone forever? I got an official

Facebook App Domain disappears

|▌冷眼眸甩不掉的悲伤 提交于 2019-12-01 13:47:47
问题 I've added a comment box to my site. I'm using an app_id. I've added my domain to "App Domain" in the settings section for the app. I save it. I then come back and the "App Domain" has disappeared. It's like it's not being saved. What am I doing wrong? 回答1: I found how to do this - the UI and error messages are simply terrible. First, you need to set your site url in the website section - to eg http://www.example.com . Click Save Then you can go to the app domain field, type 'example.com' and

add image as comment VBA

蓝咒 提交于 2019-12-01 13:38:11
I found this code to insert images into excel 2013 but the images are large than the cells they're going into. I think the best option it to load the images as comments. Can someone modify this VBA below to add this as a comment? Sub URLPictureInsert() Dim cell, shp As Shape, target As Range Set rng = ActiveSheet.Range("R2:R5") ' range with URLs For Each cell In rng filenam = cell ActiveSheet.Pictures.Insert(filenam).Select Set shp = Selection.ShapeRange.Item(1) With shp .LockAspectRatio = msoTrue .Width = 50 .Height = 50 .Cut End With Cells(cell.Row, cell.Column + 5).PasteSpecial Next End Sub

Custom JSF component: Using “startElement” with “script” results in a comment

非 Y 不嫁゛ 提交于 2019-12-01 13:20:18
I'm rendering a custom JSF component. In the method encodeBegin I want to include some java script. public void encodeBegin(FacesContext context) throws IOException { ResponseWriter writer = context.getResponseWriter(); writer.startElement("script", this); writer.writeAttribute("type", "text/javascript", null); writer.writeText("var width=400",null); writer.endElement("script"); } When rendering the component the content of the script tag is commented out. <script type="text/javascript"><!-- var width=400; //--></script> Can anybody explain why this comment appears and how I get rid of it?

Add comment to excel using python win32

柔情痞子 提交于 2019-12-01 13:16:23
问题 I am trying to add new comment to excel with python, using win32. import win32com.client as win32 excel = win32.gencache.EnsureDispatch('Excel.Application') wb = excel.Workbooks.Open(r'C:\...\.xlsx') ws = wb.Worksheets('sheet1') ws.Cells(1,1).AddComment = "comment" --> object has no attribute 'AddComment' Do you know how to add new comment to excel using win32? Thank you! 回答1: Add comment is a method not a property. ws = wb.Worksheets('sheet1') ws.Cells(1,1).AddComment("comment") Just read

Will xid-based fb:comments be lost on June 1st?

白昼怎懂夜的黑 提交于 2019-12-01 12:08:37
问题 As far as I know there is no way to migrate existing Facebook comments which use fb:comments/xid over to the new fb:comments/href version. There are some StackOverflow topics ( How to migrate Facebook comments from using "URL" property to "HREF", http://facebook.stackoverflow.com/q/8487357/138526) which supports this interpretation. Now Facebook says in their FBML documentation: Starting June 1, 2012 FBML apps will no longer work as all FBML endpoints will be removed According to the docs

Regex to match MySQL comments

心不动则不痛 提交于 2019-12-01 12:07:40
I need to find and remove all of the comments from a MySQL query. The problem I'm having is avoiding comment markers (--, #, /* ... */) that are inside of quotes or backticks. In PHP, i'm using this code to uncomment SQL: $sqlComments = '@(([\'"`]).*?[^\\\]\2)|((?:\#|--).*?$|/\*(?:[^/*]|/(?!\*)|\*(?!/)|(?R))*\*\/)\s*|(?<=;)\s+@ms'; /* Commented version $sqlComments = '@ (([\'"`]).*?[^\\\]\2) # $1 : Skip single & double quoted + backticked expressions |( # $3 : Match comments (?:\#|--).*?$ # - Single line comments | # - Multi line (nested) comments /\* # . comment open marker (?: [^/*] # . non

How can I get Vim to not break DocBlock comments?

大兔子大兔子 提交于 2019-12-01 10:42:47
/** * Example Comment */ When I press enter after Comment Vim autoindents but leaves the cursor lined up with the * characters. How can I get Vim to add the * and a space so that my comment lines up with the E ? rishta You will want to modify the value of the formatoptions (short name fo ) Vim option, like this: :set fo+=or The r option enables the behavior in insert mode; o enables it when using o or O in normal to switch into insert. Try Vim's builtin help for details: :help formatoptions 来源: https://stackoverflow.com/questions/6936277/how-can-i-get-vim-to-not-break-docblock-comments

Facebook social plugin comments after URL change

六眼飞鱼酱① 提交于 2019-12-01 10:29:49
Just a simple question, I had facebook comments integrated in my page here: http://www.bbcnepalidrama.com/main/node/3 Now I have changed the URL alias like this: http://www.bbcnepalidrama.com/main/about I have also set a 301 redirect in the old URL which redirects to the new one. The Question is how do I get the old comments in this URL? They are missing now. I think, that these comments will be forever associated with that URL and since you've changed it, as far as FB is concerned you are pointing to a different URL. you can specify the old URL as “canonical” with an og:url meta tag. see the

add image as comment VBA

本小妞迷上赌 提交于 2019-12-01 10:16:26
问题 I found this code to insert images into excel 2013 but the images are large than the cells they're going into. I think the best option it to load the images as comments. Can someone modify this VBA below to add this as a comment? Sub URLPictureInsert() Dim cell, shp As Shape, target As Range Set rng = ActiveSheet.Range("R2:R5") ' range with URLs For Each cell In rng filenam = cell ActiveSheet.Pictures.Insert(filenam).Select Set shp = Selection.ShapeRange.Item(1) With shp .LockAspectRatio =