« first day (620 days earlier)      last day (3414 days later) » 

11:07 AM
Heya folks.
Java question.
 
hey @kleinfreund
 
Why is s = s.replaceAll("[ÄÖÜäöüß]", ""); not doing what I expect it to do? If I have s = "äÄöÖüÜß".
 
@kleinfreund I believe it takes a regex as input
And [ and ] are special characters in a regex
Or did you already know that? :)
Because on your example string, the expected result would be that it would get empty
 
@kleinfreund what did you expect??
and what happened?
 
With that string nothing happens. I was expecting an empty string.
 
11:11 AM
You are aware that you are using a regex then, it seems?
 
Yes.
 
Ok, very good ;)
 
Does it need further escaping?
 
You may need Unicode flags... investigating
 
interesting...
anyways. it replaces exact matches to the regex.
 
11:12 AM
So does something like "[a-z]" not work for Unicode?
 
@kleinfreund It only matches the exact a-z
Tell me, what is it that you really want?
 
I need to remove any umlauts and ß from a string.
 
what java version are you using?
 
You only need to remove the umlauts, or want their normal versions available? (Like ä -> a)
 
Monking all. OP added the code here.
1
Q: C# photo sorter

tornupI am quite new to C#, currently working through a number of pluralSight courses. I've written a few small things here and there, but never anything that performed an entire purpose/function from start to finish, until now, with this app. The app lists all the JPEG photos in an import folder and...

 
11:14 AM
java version "1.8.0_25"
 
@kleinfreund Java 8!
 
Just removing.
 
would you mind anchoring the regex?
 
@Vogel612 What does anchoring mean here?
 
str.replaceAll("/[äÄöÖüÜß]/", "");
 
11:15 AM
@kleinfreund Let's take a step back, what happens if you only try to remove Ä?
 
anchoring is probably the wrong expression..
 
Exactly the same, @skiwi. Nothing. I tried that already.
 
So we should first get that one to work
 
s = s.replaceAll("Ä", "");
 
I believe I remember the syntax now
s = s.replaceAll("(?U)Ä", "")
 
11:16 AM
that's the Unicode flag, right?
 
Yeah, should be it
If that one works, then it should also work on the full expression
 
Which doesn't work as well.
 
Then...
Trick question
 
I didn't imagine it to be tricky. :D
 
Are the Ä's you're trying to escape and the Ä's you type on your keyboard the same Unicode literals?
 
11:18 AM
^^ ouch...
 
I believe so! I can't think of a reason why they should not.
 
skiwi you remember this replaceAll question?
 
There's enough reasons :)
 
But on the other hand, I really don't know.
 
@Vogel612 I was about to say no, but then I realized that I posted an answer to it
@kleinfreund Can you test it with some input string you type yourself?
 
11:19 AM
I do type them. Command line.
 
Hm
 
With unicode you sometimes need to normalize the text....
This can be especially important with diacritical marks like acutes, umlauts, etc.
 
Okay... with Umlauts I could kinda expect weird things to happen
But this?
> Similarly, the string "ffi" can be encoded as three separate letters:

U+0066 LATIN SMALL LETTER F
U+0066 LATIN SMALL LETTER F
U+0069 LATIN SMALL LETTER I

or as the single character

U+FB03 LATIN SMALL LIGATURE FFI
 
LARGE LETTER Ä
 
So something like this? Normalizer.normalize(s, Form.NFC);
 
11:25 AM
vs LARGE LETTER A + COMBINING ACCENT °°
 
Does this mean that you actually always need to normalize the input? Or is it really an edge case when working with regular letters
 
Normalizing doesn't change my results, though. :x
What encoding is Java using by default?
 
@kleinfreund - Stupid question .... are you assigning the value of the replaceAll to something?
 
Yeah.
s = s.replaceAll("[äöüÄÖÜß]", "");
 
@kleinfreund Interesting question....
The file-encoding of the .java file is whatever your system default is, or you can change it manually. Check in your IDE (file -> Properties).
 
11:32 AM
Most google results just do something like "ä", "" or with a regex like above. I don't know. There should be another reason why this isn't working.
 
The actual chars are unicode (once the file is read from disk and interpreted by the compiler).
How that encoding happens depends on the file.
The value in the s variable before the replaceAll depends on how you sourced the s.
 
The file is encoded as UTF-8.
I do String s = sanitizeString(args[0]);. In sanitizeString(), I do s = s.replaceAll("\\p{Upper}", ""); to replace all uppercase letters.
After that I do s = s.replaceAll("[äöüÄÖÜß]", ""); followed by System.out.println(s); to test it.
 
> I do s = s.replaceAll("\\p{Upper}", ""); to replace all uppercase letters.
^^^ You meanremove all uppercase letters, right?
 
That one works and does not change the behavior when commenting it out.
Yeah, I replace them with an empty string which comes down to removing them, sure.
That's intented.
 
Then... silence?
 
11:43 AM
    String s = "äÄöÖüÜß";
    String p = "[ÄÖÜäöüß]";
    String r = s.replaceAll(p, "");
    System.out.printf("In '%s' replace '%s' and get '%s'\n", s, p, r);
In 'äÄöÖüÜß' replace '[ÄÖÜäöüß]' and get ''
File encoded UTF-8
 
@rolfl java version?
 
Huh.
 
Right now your question is in the reopen queue and needs to be approved by the community (users with enough reputation). — Heslacher 2 mins ago
Monking btw.
 
So I have a problem with my String s.
When I do s = "ölkjöüpoi"; before, it works.
 
        System.out.printf("In '%s' replace '%s' and get '%s' (%s)\n", s, p, r, System.getProperty("java.version"));
In 'äÄöÖüÜß' replace '[ÄÖÜäöüß]' and get '' (1.8.0)
 
11:47 AM
kleinfreund is running 1.8.0_25...
@kleinfreund then your reading is the problem.
 
This is eclipse, let me dig... I think I am 25 as well
 
you said you were reading from console?
 
Yeah, I just do String s = sanitizeString(args[0]);
 
 
@rolfl Your profile states you are 42 ;-)
 
11:49 AM
It does. I lied about my birthday. I put 1 Jan 1973.
It's a couple of months off.
not actually 42 yet ;-)
@kleinfreund - in the process of copy/pasting stuff from here&there, the chances are that I don't run the same code you do.
 
I strongly suggest that you add a little dump feature to your code......
 
/!\ Ugly code ahead!
 
You planning to put it up for review? ;)
 
Nah, I don't think so. It's not cleaned up.
What I try now is this: Adding s = "äöüoiuzghjDD"; to sanitizeString().
It works there.
 
11:55 AM
private static final void dumpString(final String input) {
    System.out.printf("Dumping '%s'\n", input);
    for (char c : input.toCharArray()) {
        System.out.printf("   Char '%c' is %d\n", c, (int)c);
    }
}
public static void main (String[] args) throws java.lang.Exception
{
    String s = "äÄöÖüÜß";
    String p = "[ÄÖÜäöüß]";
    String r = s.replaceAll(p, "");
    System.out.printf("In '%s' replace '%s' and get '%s' (%s)\n", s, p, r, System.getProperty("java.version"));
    dumpString(s);
In 'äÄöÖüÜß' replace '[ÄÖÜäöüß]' and get '' (1.8.0)
Dumping 'äÄöÖüÜß'
   Char 'ä' is 228
   Char 'Ä' is 196
   Char 'ö' is 246
   Char 'Ö' is 214
   Char 'ü' is 252
   Char 'Ü' is 220
   Char 'ß' is 223
Dumping '[ÄÖÜäöüß]'
   Char '[' is 91
   Char 'Ä' is 196
   Char 'Ö' is 214
   Char 'Ü' is 220
   Char 'ä' is 228
   Char 'ö' is 246
   Char 'ü' is 252
   Char 'ß' is 223
   Char ']' is 93
Dumping ''
Gotta run for breakfast.
 
What's the purpose of dumping a string? What can I take from this?
 
@kleinfreund That prints the actual Unicode character identifiers
So you can check if you have the same in/output as @rolfl, just to be sure
 
And they probably don't match in my case. ä is not ä.
 
That's waht needs to be confirmed then
 
Dumping '[äöü����]'
   Char '[' is 91
   Char 'Ã' is 195
   Char '¤' is 164
   Char 'Ã' is 195
   Char '¶' is 182
   Char 'Ã' is 195
   Char '¼' is 188
   Char 'Ã' is 195
   Char '?' is 8222
   Char 'Ã' is 195
   Char '?' is 8211
   Char 'Ã' is 195
   Char '?' is 339
   Char 'Ã' is 195
   Char '?' is 376
   Char ']' is 93
Dumping 'äÄöÖßÜü'
   Char 'ä' is 228
   Char 'Ä' is 196
   Char 'ö' is 246
   Char 'Ö' is 214
   Char 'ß' is 223
   Char 'Ü' is 220
   Char 'ü' is 252
So what I enter as the regex is not what I want.
 
12:05 PM
Indeed...
Do you have any clue in which character encoding you are inputting characters via command line?
 
source file encoding??
 
the java file is utf-8
Not sure how to find out what Git Bash currently uses.
What a nightmare. I need to put this on cold storage. Need to move on with other work.
 
Remember how I was talking about my coworkers being behind schedule?
 
@nhgrif Yeah..
 
Did I mention that this was my first real project in VB?
 
12:15 PM
They worked all night and fixed their stuff?
 
Usually my stuff is in ObjC
And no.
 
-1
Q: Comapre items in 2 lists and return the item and the index of the mismatch value using C#

SaraI have 2 lists. I want to compare List1 and List2 and return values from List2 that are not matching with List1 along with the index of the mismatched value. For example, List1 = jamie, #101 Imperial Drive, Harrow, jamie_bruce@gmail.com, 12/12/1990 List2 = jamie, #101 Imperial_Drive, Harrow, j...

 
burn it ^^^
 
12:36 PM
@skiwi were you questioning the evilness of intercepting messages?
 
@nhgrif I guess so, yep
 
12:52 PM
@SimonAndréForsberg We were!
Greetings, Programs.
 
Hey Donald.
 
@nhgrif Fortran 4, punched cards.
 
@Donald.McLean And now it's three weeks until we will be watched again!!
 
@SimonAndréForsberg Yes.
 
1:10 PM
@skiwi let's say I want to subclass UITextField into a number field that only allowed on numeric input.
Normally, UITextField asks it's delegate what input is okay. So to make a subclass that only ever allows numbers, we have to be our own delegate sort of... But we still want to allow ourselves to be delegated for other things.
Only way is to intercept messages intended for the delegate
But only relevant messages. And we still pass them on when appropriate.
 
isn't that a standard decorator pattern?
 
Maybe, I don't know. But the text field can only have one delegate.
 
0
Q: The code snippet implements Singly LinkedList and IList Interface

leviI have implemented LinkedList in C#. Here is my code. What would you change/make better? What naming conventions are misused? What would you add? Some of my ideas are to make it thread-safe... using System; using System.Collections; using System.Collections.Generic; using System.Linq; using Syst...

 
So the option is to intercept the single message you need, or write a class that has a delegate and serves as the text fields delegate.
And in the second case, you have to implement ALL of the delegate methods and pass them all forward.
And if a delegate method is added and you don't update your middle man, you don't have access to that delegate method.
But if you intercept just the messages you need, you're golden.
I've never heard decorator pattern talked about with Objective-C.
But I'm not adding new behavior... I'm changing existing behavior.
 
1:27 PM
I see @nhgrif, I still find it difficult to understand right now, but that may not be the issue of your explanation ;)
 
Importantly... There are two things that could control what text is entered into the text field. A private method in UITextField that I don't have access to, and a delegate method call. Objects shouldn't delegate themselves, and I don't want to eliminate all the other delegate behavior just to modify 1% of it.
 
1:55 PM
0
Q: Shorten this code with switch

Robin van der Noord I made this code, but it's a lot of repeating, so I thought maybe I could shorten this with switch //Time for some variables yay :D //Basic stuff var green = [49, 76, 14]; var yellow = [50, 100, 49]; var url = window.location.pathname; var myName = url.split("/").slice(-1)[0]; //HeadTail va...

 
Hmmmm I may be working too fast this week. I wouldn't want anyone to expect this much productivity out of me.
3
 
2:10 PM
0
Q: Use something other than a modulo for this function

DesiI'm wondering if there is another way to write this function without using a modulo to determine how many times a user has clicked and base it off that. It's interfering with another piece of code I have. $('#mail-wrap').click(function (e) { e.preventDefault(); if (c++ % 2 == 0) { ...

 
@Phrancis what is this? where are you implementing this?
did anyone notice this?
 
This is normal.
 
does that only happen on CW Q/A's?
 
CW posts are CW, and the 'display name' of the user is tracked as part of the edit process, not the actual user.
So, the disply-name you had at the time of any activity you do on a CW post is the one that's used.
 
I didn't know that. thanks for the info @rolfl
 
2:19 PM
38
Q: Do old usernames stick to CW posts by design?

PopsOn a whim the other day, I changed my meta name from Lord Torgamus to Popular Demand. I just noticed that the old name has "stuck" to the author tag of a Community Wiki question I asked before the change; everywhere else on meta, my new name displays as expected. Is this a feature? Is it a bug...

@xport: The internal owner of the post is now the Community user, so the OwnerName field is used instead to show the original poster. A similar thing happens for migrated posts where the original owner has no account on the new site, I suppose. — Paŭlo Ebermann Sep 18 '11 at 0:28
 
I better get some work done, I have to trouble shoot a SQL Login and why it crashes one of my applications in only the Production environment.... ugh!
Thank you @rolfl
 
I'm wondering if there is another way to write this function without using a modulo to determine how many times a user has clicked... ... Yes, yes there is. You should simplify your code down to a simple example, then post on Stack Overflow. This is a specific programming question you have. — rolfl ♦ 42 secs ago
Now:
I didn't mention but I did also want a code review to see if there was a more elegant way to write it all which is why I posted it here. — Desi 44 secs ago
Anyone care to assist him... i gotta run
Huh, new @janos mugshot.
 
Personally, I think it can be on-topic here @rolfl
> I'm wondering if there is another way to write this function without using a modulo to determine how many times a user has clicked and base it off that. It's interfering with another piece of code I have.
I don't see what's off topic about it.
 
asking for code to be written
 
"I am currently doing it this way, can I do it another way?"
He has code already, he is asking if it is possible to write the code in another way.
 
2:33 PM
@Desi - come chat about your question here... Simon says.... do this.
 
I am currently doing it this way, and it interferes with another piece of code I have.
 
0
Q: Refactoring ideas wanted

BCarlsonI have a several WebApi controllers have that use 2 generic classes for processing. Depending on the data sent in the request, one of the generic classes is called. This logic is wrapped in a Try/Catch, which is used to handle timeouts, authentication failure, and system errors. When I started...

has been migrated from SO

because of

if (aRequest) // this is pseudo code on this line

should we consider this as off topic ?
 
well, that part about interfering is a bit suspicious. That needs to be clarified.
In what way is the code interfering?
Does the code even work?
 
I'd already get that down under "not working", yea
 
And for the love of god what on earth does the code do?
 
2:35 PM
@SimonAndréForsberg similar case here codereview.stackexchange.com/questions/77502/…
 
10
Q: Code should include a description of what the code does

Simon André ForsbergRelated: What criteria do you use to upvote a question? What makes a good question? I feel that it is currently too easy to copy some code that you have written and put it up for review here on Code Review. My opinion is that if you want a review of your code, then you should also be able to ...

Yes, it's working as expected. However, I have another piece of code that requires me to click the #mail-wrap button and doing so messes up the number of clicks which affects this function that I posted. — Desi 46 secs ago
 
@Heslacher Agreed
 
@RubberDuck ok voted
 
0
Q: Simple Console Base Car Game

Khurram FarooqBelow is my code i had created a simple console base car game. Check This out and tell me is this a good approach or anything i'm missing ? CarG.h #ifndef CARG_H #define CARG_H class CarG { private: int sleep; int points; int n, n1; char cash, keyp; pub...

 
Ok, understood. Thank you for taking the time to explain. I'll make sure to post it in the right section from now on. — Desi 1 min ago
@rolfl handled ^^
 
2:43 PM
 
@RubberDuck is that "Getting the best value out of Codereview"-Comment of yours a tin-can comment?
Welcome to Code Review! We're all here to receive constructive criticism of our code. However, the current title of your question is very broad and doesn't really state the purpose of your code. We've found over time that questions with more descriptive titles get more attention from potential reviewers, so editing your question's title to describe what your code does will benefit both you and the people reviewing it. You may also want to read How to get the best value out of Code Review - Asking Questions. Thanks! — RubberDuck 7 mins ago
 
Now that I'm well over 10k rep on SO, I've developed a habit of awarding bounties to old, but great and overlooked objc answers.
 
@Vogel612 Yeah. One sec.
 
nah I was just asking out of interest
but since it is: What do you think of creating a CW meta-answer containing tin-can comments for the common mistakes of codereview questions and answers?
 
Do we have a meta cw for those? Maybe we should.
 
2:49 PM
I am quite sure we don't.
 
Sounds like that's something we need to do then. =;)-
I should have a little time today, so I can start one.
 
I haven't got tin-can comments of my own, so... thank you ;)
 
Yeah. No problem. I really like that user script. Click click done.
Can we kill this question now?
I got sent to this site from stack overflow. And there was indeed something wrong with the 'switch-case'. I still don't know what though... But it seems to work now! — Robin van der Noord 3 mins ago
 
@Vogel612 I've also had an idea for that. A meta question about common useful comments would be useful. Then we could also collaborate on how to improve the comments.
 
0
Q: Node.js log parser for mongoDB, how to make more polyvalent?

DrakaSANI have develloped a log parser, the goal is to take whatever log type I can, and convert them in a mongoDB collection. I think I ve done a pretty good job at reading whatever type of log are trhown at it, but: in some cases, like when I used it at work, I had to add "special cases" (exemple: d...

 
2:58 PM
@RubberDuck I have not VTC'd that question because I think he needs a code review. The problem with it is that he not only wrote the working code in his question, but also the failed attempt at improving it.
 
That seems reasonable to me @SimonAndréForsberg.
 
@SimonAndréForsberg let's drop the failed attempt then
ask him if he still wants a code-review
 
@Vogel612 that would be the best, yes.
 
if he wants, drop the switch code from the question and tell him to separate data from logic
 
and to use a map
 
3:00 PM
Maybe someone can suggest he edit in the working code from his answer so we know we're reviewing working code?
And convince him to delete that answer? I'm not having any success getting through to him and I don't think he's reading the links we've been dropping.
 
There's been so many other commenters already, I think one of you two should do it.
or a follow-up might also be an alternative
 
we make it simple. close the question, but tell him it can be reopened with a little change, given he still wants a review that is
who's going to bash some SO users, btw?
3
 
Do we need an "auto-bash SO users" script, now?
 
@Morwenn Yes.
 
ehh it would be easy..
 
3:04 PM
Automated with a SEDE named "SO users to bash".
Make it a Bash script.
3
 
find posts where OP mentions "I was sent here from SO", click through their profile and get questions with the same code.
 
1
Q: Check if string can be rearranged into a palindrome

BrianI created a function to test whether a single word string can be a rearranged into a palindrome (doesn't have to be a real word). My logic was if the string has an even number of letters, then each letter must occur twice. If the string has an odd number of letters, each letter must occur twice e...

 
there look at the comments that contain Code Review or similar and @User them with a tin-can comment
 
1. Redirect them to Programmers.SE
2. ???
3. Profit
2
 
Isn't profit always step 4?
btw. nice to see you Morwenn
 
3:06 PM
That may be more idiomatic.
 
1. find junk
2. redirect it to programmers.se
3. ???
4. Profit!!
hmm... I think that wouldn't go well with them...
2
 
Eh, sorry for being quite unactive here, I am more on the [Rebol and Red] chat on SO these days.
Helping on a project to create a binding between Rebol/Red and C++.
 
Lol I am also active today since a while in this chat-room
more in TCG Creation to monitor my github repos and in SO java room
 
@Vogel612 I've been doing the same in the VBA room.
Been spending lots of downvotes on SO too....
 
hmm... I'm getting closer to 50 daily flags over there
and I actually did 40 reviews yesterday!
 
3:11 PM
I noticed that I am less active on CR when I'm actually working on a project.
2
What will it be when I get a job? ç_ç
 
depends on whether your job actually includes working
2
or is like mine where noone gives a darn about what I do all day
I tell you, I'd take a job where I actually have to do work over this anytime
 
0
Q: Is my static class use a bad design?

heyufool1I've been designing a game engine for the past few months with little issues. However, one main goal with this project is to put it on my portfolio/résumé so naturally I want the code to be as good as possible. With that in mind, I got a little worried today because I designed a fair amount of ...

 
@CaptainObvious no language tag?
 
I retagged it already.
 
I see that. =)
@Vogel612 I totally feel that. I welcome when it when my work has me working instead of chasing down non-issues.
 
3:20 PM
@RubberDuck chasing down non-issues is better than having to show up for 8 hours of killing time.
 
No it's not. I promise.
At least not after you've explained the same thing to the same person 100 times it's not.
 
Anyways, if everything works out the way I want it to, then I'm out of here in exactly one week!
 
Good luck!
 
0
Q: Class to DataTable or Datatable to class mapper

Adam WhiteHatMy code goes from a class to DataTable, and back again. It populates the class's public properties, or creates DataColumns whos names and types match that of the the class's public properties. It also has methods that allow the developer to go from a query to a populated class, or from a class to...

 
3:35 PM
@CaptainObvious Arrow Code
 
@RubberDuck What is Arrow Code ?
 
@Heslacher Looks like an arrow.
try
                {
                    foreach (DataRow row in Table.Rows)
                    {
                        T classObject = new T();
                        foreach (PropertyInfo property in propertyList)
                        {
                            if (property != null && property.CanWrite)   // Make sure property isn't read only
                            {
                                if (columnNames.Contains(property.Name))  // If property is a column name
                                {
 
ok
I wanted to reformat the code ( removing the Pre tag), but magically this resulted in too many characters for the body.
 
I thought about reviewing it, but it would take a few hours me thinks.
 
@Heslacher well you have to add four spaces for each line without them...
 
3:48 PM
@Vogel612 Just had the same idea. Too bad. Without code coloring it doesn't look nice.
 
@Heslacher try adding class="prettify" to it
 
@Heslacher removing the noise from the bottom brought it down to size.
 
geez, what's going on on MSE? I'm getting vote after vote on an old, old post.... (here)
 
@RubberDuck thanks
@Vogel612 don't know this
But now it looks like ClassToSQL<T>
instead of ClassToSQL<T>
 
4:04 PM
Oh shit.
wtf man..... ugh
rolled it back
 
NOTE TO SELF: SET RESOURCES TO ALWAYS COPY TO OUTPUT DIRECTORY AND BUILD ACTION TO CONTENT
caused me more trouble in the last 2 weeks than I care to admit.
 
NOTE TO USER: DON'T MANUALLY ENCODE HTMLENTITIES IN SE QUESTIONS
3
 
@RubberDuck Fixed it
 
@Morwenn based on my experience, you'll be lurking every now and then, posting an answer in the evening when you can, and won't hit rep-cap ever again.
2
 
@Mat'sMug Haha, I hardly ever hit it anyway, but I think you're right :D
 
4:15 PM
I like those little yellow guys so much.
 
yellow?? they're blue ;)
or white ...
 
0
Q: Simple password encryption / decryption C++

Khurram FarooqHere i made a simple password encryption decryption program below is the code :) it's working perfectly the only thing i want to know from you guys is this is good logic ? PEND.h #ifndef PEND_H #define PEND_H class PEND { private: char UString[30]; char Password[70]; ...

 
@Vogel612 they're yellow if you give 'em the lovin'
 
I beg to differ...
 
Nice color scheme.
Looks like my IDE.
 
4:35 PM
@Vogel612 well... for us mere vanilla chat users, stars are yellow.
 
this is vanilla chat...
just the browser is not vanilla..
 
Geezz..... people amaze me. quora.com/…
> Nowhere. Seriously. Programmers want to get paid.
 
4:51 PM
0
Q: Is this a better loop?

abelenkyMy team has a lot of code written with fairly traditional for-loops: for(int i=0; i < SomeArray.GetSize(); ++i) { /* do work */ } But recently, some devs raised the concern that GetSize will unnecessarily be called repeatedly. They suggest we can improve the code with: for(int i=0, max = Som...

 
Is this a better title?
 
one-liner. downvoted.
and hypothetical. close-voted.
 
0
Q: Unclear redirections

Robin van der NoordToday I had a question about some code I wrote. My question was put on hold and I was told to go to codereview, because the code was complete. (it was complete but I tried to shorten it, which didn't work for me at first) But the folks over there told me that the question was off-topic, because...

 
@Vogel612 @RubberDuck
0
Q: Frequently Posted Comments

Simon André ForsbergOn Code Review we often encounter questions with the same kind of problem over and over again. Some of us are using the auto comments script which allows you to maintain a list of comments to post. What are some useful tin-can comments that can be good to have in your list of comments?

5
 
5:09 PM
@SimonAndréForsberg awesome, favorited.
 
I've had the idea for such a question for a while now, so it was time to do something about it.
I thought @Vogel612 or @RubberDuck would post it, but as @Nobody did, I had to.
 
3
Q: Frequently Posted Comments

Simon André ForsbergOn Code Review we often encounter questions with the same kind of problem over and over again. Some of us are using the auto comments script which allows you to maintain a list of comments to post. What are some useful tin-can comments that can be good to have in your list of comments?

 
0
Q: Image cache for lots of images using WeakReference on C#

Guillermo MestreI'm developing an application to manage a player card-library from an online game. Each card has an image that is stored on disk with a numeric code, for example, the card with ID=1234 has his image stored as 1234.png and all the images are stored on the same folder. As of now there are more tha...

0
Q: Integer math function as an alternative to bcadd

DevonI wrote this as an alternative to bcmath functions (since bcmath isn't a default extension) due to the floating point precision issue. I would appreciate it if someone could critique this and see if there are any issues. The idea behind it is to convert the number to an integer, perform the mat...

 
@SimonAndréForsberg suggestion: make the answers CW...
 
Thanks @SimonAndréForsberg turns out work got in the way today.
Should we just shoot for a single CW answer?
 
5:21 PM
I'd say yes...
 
@Vogel612 Suggestion: Make the whole question CW -- flagged it for a mod to do so
@RubberDuck I think it is better to have multiple answers, so that there can be comments about how to improve each individual comment
 
I like the one-comment-per-answer format
 
it's not like you're losing rep by that, right ;)
The Mug has spoken!
3
 
rep, no. but meta tag badges...
3
 
hmm... I'm, quite happy with my bronze discussion badge...
 
5:24 PM
We could possibly have one answer that combines them all though, formatted so that it is ready to be imported into the auto-comments script.
 
would have to be maintained though...
oh well... community maintenance is work.
 
Hey guys, let's give those answers titles to make it easier to see which is which.
 
and maybe add - Thanks! to the comments...
it makes them a whole lot friendlier ;)
 
@SimonAndréForsberg This is brilliant. Do you think the whole post should be made Community Wiki?
I see that you just said yes.
 
@200_success Don't mods read flags anymore? :)
 
5:32 PM
lol
 
Clock skew.
 
I think we should avoid duplicate answers here... — Mat's Mug 1 min ago
@Mat'sMug Oops. I missed the one @SimonAndréForsberg already posted...
 
yeah yeah
;)
@200_success I think it's time to close the 2014 , isn't it?
 
@RubberDuck I kinda like yours better..
 
@RubberDuck I agree about making the titles more clear. That When to use: can instead just be a # to make the title clearer
 
5:35 PM
I've accepted the top-voted "Best Title" entry
 
@Mat'sMug but, but.... but I'm so close to beating ducky! meta.codereview.stackexchange.com/questions/3881/…
 
@Mat'sMug Sure. 00:00 UTC at the end of today sounds like a reasonable time to end it.
 
good - that'll be exactly 2 weeks :)
@RubberDuck does the ###title part actually belong in the comment(s)?
 
Oh. Shoot. That's part of my script. I'll remove it.
 
@RubberDuck lol...
OBTW I'll wait until you guys have cooled down a bit and then write a "compiled together for your convenience" answer...
including the [Q] / [A] restrictions that the script uses
23 views, 8 answers.... now that's what I call a heavy answer:view ratio
 
5:46 PM
@SimonAndréForsberg sorry to say, you're not getting a meta-tumbleweed for that one!
 
TS^
Anyone have a good meta link for broken code?
Help center maybe?
Yeah. Help Center
 
6:02 PM
0
A: Best of Code Review 2014 - Night and Day category

MalachiMalachi's Answer to Can this stored procedure be cleaned up or made even more efficient? This question was going downhill fast, and through multiple edits and a lot of cleaning came a rather good answer that cleaned up this SQL quite well. There were a lot of Votes cast in both directions on t...

@Mat'sMug ▲▲▲
 
I was just about to post that meta. Massively undervoted.
 
0
Q: MySql - Return a default value if no rows are found in UNION ALL query

CupOfJoeScenario I have a query developed from this question, were part of the optimisation was to create a MySql view which is used for generating statistics for users and sales, the problem is that when there is no result for one of the SELECT rows it gets omitted from the resulting table. Question ...

 
6:31 PM
I can't believe how messed up the answers.unity3d.com forums are and yet people still keep answering those questions
 
6:41 PM
@Malachi You know that if you hover over any time-like valeu (1 hour ago, whatever) in stack exchange, that the 'tooltip' shows the actual time, right?
 
0
Q: AngularJs Databinding Issue

Richard CraneI am having an issue where the directive rm-stock-quote data binds on the first time in, but updates after the fact are ignored. It looks like the data binding is not setup properly. More specifically, it looks like it might be a scope issue. Unfortunately I am a newbie on AngularJs and data b...

 
@Mat'sMug can't say I was aiming for tumbleweed on that one ;)
 
0
Q: Simplify expression in swift playgroung

Franco RondiniIn swift playground I would try to plot the sum of two sinusoids; all fine if I plot a single sinusoid but my coded expression seems to complex (..even for my MBP 16Gb 2,3 GHz Intel Core i7) so much so that I got this annoying error message: Playground execution failed: /var/folders/lm/s0rrbk4...

 
Look at that. A facebook message on 11/12 from an SO user, asking to reopen his question
I don't know why they don't just leave a comment on the post
oh, 12/11. Stupid american date notation on facebook
3
 
6:57 PM
@JeroenVannevel damn.
 
@RubberDuck It's okay. There's a star in my heart
 
=;-)
 

« first day (620 days earlier)      last day (3414 days later) »