comments

Excel cell values into comments

心已入冬 提交于 2019-12-04 15:29:11
I want Excel to automatically create comments to a range of cells. The comments should contain the values of another range of cells. Here is what I got so far: Private Sub Worksheet_Change(ByVal Target As Range) Dim sResult As String If Union(Target, Range("A18")).Address = Target.Address Then Application.EnableEvents = False Application.ScreenUpdating = False sResult = "Maximal " & Target.Value With Range("I6") .ClearComments .AddComment .Comment.Text Text:=sResult End With Application.EnableEvents = True Application.ScreenUpdating = True End If End Sub This works great for one cell; my

VSCode: delete all comments in a file

孤街醉人 提交于 2019-12-04 15:10:56
Is there an easy way to delete all comments from an open file in VSCode? Preferably both line and block comments. Most interested in Java, but also Python and R. Easy way: Open extensions (ctrl-shift-x) type in remove comments in the search box. Install the top pick and read instructions. Hard way (I guess) search replace(ctrl-h) toggle regex on (alt-r). Learn some regular expressions! https://docs.rs/regex/0.2.5/regex/#syntax A simple //.* will match all single line comments (and more ;D). #.* could be used to match python comments. And /\*[\s\S\n]*\*/ matches block comments. And you can

How can I include user profile's images/logos on django comments

≡放荡痞女 提交于 2019-12-04 13:50:29
I've posted this on django-users but haven't received a reply! So I have my own profile objects for users (subclass of User). One of the fields is imagefield, which is (obviously) used for users to upload their logo/thumbnail. The question is how I can include this on their comments? Any ideas? Thanks in advance! Subclassing User is not recommended in Django. Instead, create a separate profile model. Let's assume you have your app, foo . In foo's models.py , add: class FooUserProfile(models.Model): user = models.ForeignKey(User, unique=True) user_image = models.ImageField() Then, in your

how to set default name & company name on comments in Xcode?

爱⌒轻易说出口 提交于 2019-12-04 12:41:23
When we add a new file, In .h & .m file, there is always a comments/documentation section at top. example. // // SimpleGameAppDelegate.m // SimpleGame // // Created by hbmac2 on 01/10/09. // Copyright __MyCompanyName__ 2009. All rights reserved. // Here, there is by default hbmac2 - is user name & MyComapnyName is also default. Can't we set it like, Created by Sagar - HiddenBrains.com - by default? Can we set any other comments to be there by default? nall See this question for copyright: Setting copyright statement on a per-project basis? See this question for templates: Change templates in

Django: Implementing a Form within a generic DetailView

烂漫一生 提交于 2019-12-04 12:37:06
问题 After working through several google search result pages, I am still desperately stuck at the same problem. I am trying to implement a comment field underneath a blog post. I am thankful for any hints and advice! I am working on a Blog in Django which is set up with a first, generic ListView to display briefly all available blog posts and with a second, generic DetailView to show the specific blog post in more detail. I now want to place an add_comment_field underneath the specific blog post

Best practice for comment voting database structure

被刻印的时光 ゝ 提交于 2019-12-04 12:28:38
问题 I'm working on a PHP app that has several objects that can be commented on. Each comment can be voted on, with users being able to give it +1 or -1 (like Digg or Reddit). Right now I'm planning on having a 'votes' table that has carries user_id and their vote info, which seems to work fine. The thing is, each object has hundreds of comments that are stored in a separate comments table. After I load the comments, I'm having to tally the votes and then individually check each vote against the

Retrieve pinterest pin comments through the API

拥有回忆 提交于 2019-12-04 12:12:19
问题 I am using the v1 API ( https://api.pinterest.com/v1/pins/{PIN_ID}/ ... ) but there is no documentation on how to retrieve comments for certain pin. So how do you do that? 回答1: You cannot currently retrieve comments for a Pin via the public API. You can only retrieve the comment count. All available fields are listed at https://developers.pinterest.com/docs/api/pins/. 来源: https://stackoverflow.com/questions/32586202/retrieve-pinterest-pin-comments-through-the-api

Using Rhino's Javascript parser, how to get the comments?

不想你离开。 提交于 2019-12-04 11:08:50
I have some javascript files and parse it using Rhino's javascript parser. but I can't get the comments. How can I get the comments? here's a part of my code. run this code, "comment" variable has null. also, while running "astRoot.toSource();", it shows only javascript code. no comment included. it disappeared! [java code] public void parser() { AstRoot astRoot = new Parser().parse(this.jsString, this.uri, 1); List<AstNode> statList = astRoot.getStatements(); for(Iterator<AstNode> iter = statList.iterator(); iter.hasNext();) { FunctionNode fNode = (FunctionNode)iter.next(); System.out.println

C Comment in Emacs - Linux Kernel Style

人走茶凉 提交于 2019-12-04 10:17:18
I'm using (setq-default comment-style 'multi-line) and my region comments, when doing M-; , are: /* void main() * { * int i; * int b; * printf("format string"); * } */ But I want them to look like this: /* * void main() * { * int i; * int b; * printf("format string"); * } */ What do I have to change? Try with: (setq comment-style 'extra-line) Geyslan G. Bem Complementing the anler answer and answering my own question. To use the Linux Kernel commenting Style [1] in emacs, just set this variable in your .emacs/init.el : (setq comment-style 'extra-line) To comment/uncomment use M - ; after

Is it possible to use the Google Spreadsheet API to add a comment in a cell?

大兔子大兔子 提交于 2019-12-04 10:14:16
I am looking at the CellEntry API (https://developers.google.com/gdata/javadoc/com/google/gdata/data/spreadsheet/CellEntry) to see how I could add comments (and ideally notes as well) to a cell, but don't see anything obvious like "addComment()". Anyone have an idea? Thanks With google sheet API v4 you can set a note using spreadsheets.batchUpdate. Example javascript sdk: var requests = []; requests.push({ "repeatCell": { "range": { "sheetId": yourSheetId, "startRowIndex": 1, "endRowIndex": 2, "startColumnIndex": 0, "endColumnIndex": 1 }, "cell": { note: "Your note" }, "fields": "note" } });