« first day (268 days earlier)      last day (3748 days later) » 
00:00 - 18:0018:00 - 00:00

6:00 PM
Your code here reminds me a bit of some posts on codecrap.com. Thank you for coming here! You are not alone!Simon André Forsberg 13 secs ago
@ChrisW Would have been better if it were 2 silver badges
 
@SimonAndréForsberg hey that's my tee-shirt! — lol.upvote 26 secs ago
 
Out of votes. I'm gonna need to start bookmarking posts now.
 
:D
@lol Why is the url blurred?
 
style :)
0
A: Nesting versus GOTO: which is better to avoid?

AJMansfieldHere is a far and away superior solution: use java.util.Properties to handle your properties file.

^^ borderline - NAA
1
A: Rolling Average class sanity check

Dan LyonsTo answer your questions: It's hard to say. If you expect a large number of values or moderate number of large values, you could potentially overflow an int. Otherwise, you may be fine using int instead of long. Yes, it's overkill, since dividing the total by the count would yield the correct...

 
@lol.upvote: 100 rep to trusted user! :D
 
6:06 PM
2
A: Git command: push the latest commit and email the diff in colour

Gareth Rees1. Introduction I'm just going to comment on the part of your program (the first few lines of the main function) where you parse the command-line arguments. You'll see that there's plenty here for one answer. 2. Comments on your code I don't like the specification of this program. It does two...

 
0
Q: 99 Haskell problems, problem 9: Code Review and simplification of pack function

PhilippToday I started to tackle the 99 Haskell problems (http://www.haskell.org/haskellwiki/99_questions). I had to struggle with problem 9 where it is required to Pack consecutive duplicates of list elements into sublists. If a list contains repeated elements they should be placed in separate sublists...

 
4
A: Macro that interchanges 2 arguments

syb0rgIf you are using GCC, we can use the typeof() keyword(1) to get rid of one of the arguments. Also, add a do-while so the macro to be used in contexts where it would otherwise be problematic. #define SWAP(a, b) do { typeof(a) t; t = a; a = b; b = t; } while(0) You could also use an exclusive...

 
printed on a shirt, I think it'll look like it's not on purpose. :x
 
@Jamal I know!!
@kleinfreund IDK, looked fine in Paint.NET :P
 
But a T-Shirt isn't a display. :p
 
6:07 PM
Just as I thought, many people here will eventually surpass me. My reviewing scope is very narrow.
 
You should show why this is a superior solution, not just state that is is. Right now, this answer could be considered a comment. — syb0rg 14 secs ago
 
Post notice added.
 
@Jamal Also, on SO link-only answers are not liked as links tend to die (even if I doubt this will be the case in the near future for Oracle.com's official Java 7 documentation)
-1 because of the answer length, and the fact that in the code the lines doesn't have to come from a file. — Simon André Forsberg 7 secs ago
 
That is true. So, if the answer is not improved, it will become a comment.
 
Hey, my profile is also a bit symmetric!
visited 77 days, 26 consecutive
stats profile views 260
helpful flags 26
age 27 (darn -.-)
 
6:13 PM
:D
Not surprising, but the only thing I can come up with:
member for 6 days
visited 6 days, 6 consecutive
 
DEVIL!!!
4
 
@SimonAndréForsberg: Do I need to get off your lawn? ;-)
 
This question just made an edit that rules out some advice from answers:
 
Answers invalidated:
3
Q: Macro that interchanges 2 arguments

Ionut Grt. Define a macro swap(t, x, y) that interchanges two arguments of type t.(Block structure will help.) The ideea is that a variable defined in a block structure exists only inside the block structure. So, I can create a temporary variable without affecting the code. Here is my solution: #incl...

 
Wow. 192 days, 107 consecutive. Last day I missed was Saturday Oct.12th!
3
 
6:17 PM
@syb0rg: Beat me to it! :-) I'd glad someone else has noticed.
 
@Jamal Leave a comment? Rollback?
 
Yes, both.
 
Oh man.. I'm going to be on vacation on April. How can I keep up my conescutive visits xD
Both.
 
Make sure to rollback to the last good edit.
That will also get you the Cleanup badge.
 
to whoever is randomly upvoting my posts - stop here, if you don't want them auto-reversed :)
 
6:20 PM
*whistling*
3
 
Not me. I'm out of ammo. :-/
Monkey!
 
oh, it's the clever serial-upvoter. Fine.
 
"You've earned the "Revival" badge for Comments on SASS from CSS for a SASS beginner. See your profile." :)
3
 
@lol.upvote I don't know if to star that or flag for revealing my secrets!
 
ret
 
6:21 PM
@kleinfreund Gratulations on your Revival badge, now you gotta aim for Necromancer next!
 
Actually got that one before Revival! :D
That's my first silver badge here. ;)
 
Easy enough (probably). Just three more votes.
 
99 answers, 25 questions. SO Profile: 100 answers, 27 questions. 1 more answer, and 1 more silver badge and my CR profile beats every SO profile figure :)
 
You'll get a vote from me when the votes are reset.
 
ugh. out of ammo.
 
6:24 PM
If only there was a Legendary badge equivalent of reaching the vote cap numerous times...
3
 
^^ MSO badge-request?
Wow my last MSO contribution is rockin'!
18
A: How to train your growing community to self-moderate?

retailcoderHow active is your chatroom? This may sound like a weird answer, but on Code Review we managed to get a core nucleus into the main chatroom. With the @StackExchange bot posting questions (and ideally answers too), it's very easy for everyone to spot off-topic questions, and, with an answers feed...

 
I have a feeling it'll get turned down, but go ahead if you wish.
 
Nope, I don't want to lose all that MSO rep I've just earned!
I'm about to be able to see vote counts on MSO!
 
I'm still rolling in dough from my secret hat idea. :-)
51
A: What are the fantasy secret hats you'd wish to get?

JamalYOU. SHALL NOT. PASS!!! Reject a suggested edit as spam, eventually leading to the deletion/destruction of the user's account.

 
0
Q: Pig Latin Translator in Ruby and Rspec

user341493I've been doing this as a kata a few times and I'm pretty happy with this last program. Please let me know what you think. First, the Kata PigLatin Kata Create a PigLatin class that is initialized with a string - detail: The string is a list of words seperated by spaces: 'hello world' ...

 
6:33 PM
0
A: Array manipulation exercise

William MorrisI disagree with @vishram0709 about taking values from the command line. There is nothing wrong with this. It is often useful to have the option of taking values from the command line; you can also prompt for input values if none are given on the command line. The fault he pointed out is caused...

2
A: Macro that interchanges 2 arguments

200_successFirst, macros should have ALL_CAPS names to distinguish them from functions. Users need to be able to distinguish macros from functions because they behave slightly differently. For example, with your definition of swap() as a macro, this code (for illustration purposes — not that it's good cod...

 
@lol.upvote Now I only have one vote left for today.
 
I'm preparing for 2 napalm strikes so far.
 
@Jamal You can get the honor of taking @lol to trusted user, if you trust him of course...
 
Wait a minute..
 
I really wish William Morris would hang out in the chat room...
 
6:36 PM
I'm...
4K - Trusted User!!
4
 
Yep! Right on the dot!
 
21st trusted user on CR!
 
@lol.upvote Hang on to it while you can, once my votes get reversed you won't be anymore :)
 
@SimonAndréForsberg ugh.
 
6:37 PM
Next stop: 10K for post-grad mod tools.
(but celebrations come first)
 
It's not a matter of if, it's a matter of when :)
0
A: Hangman in Python

pokeSome ideas: You might want to make sure that the guess is actually a single letter. lettersGuessed should be a set, so membership tests (guess in lettersGuessed) is a constant time operation. Similarly, you could store either the (correctly) guessed letters or the letters that still have to be ...

meeting, gotta go :)
 
Later!
 
Bye!
 
Bye.
 
0
Q: Python - model cars as classes

VaderI am learning about object oriented programming in python using classes. I have attached an image of what I had in mind when structuring my classes. This is supposed script model cars. I want to know if the way that I set up my code it the ideal way of modeling cars. A few things: there are no...

 
6:54 PM
I finally got a proper SE app for my Android phone:
David Fullerton on January 27, 2014

This mobile thing will never last, right? We figured if we waited long enough, this whole “mobile application” thing would blow over and everything would go back to the way it used to be. You know, when phones were for calling people, and computers were for typing long, angry rants about how things aren’t the way they used to be.

In retrospect, we may have misread that one a bit. It turns out that even for Stack Exchange mobile is eating the world.

So today we’re excited to announce that Stack Exchange for Android is finally available for download on the Google Play store, for Android phones version 4.0 (ICS) and up: …

Oh, it's so beautiful 0.0
 
@Malachi I have absolutely 0 clues :\
 
@syb0rg I will have to put it on my new tablet when it comes.
@konijn I am going to do some research this week and see if I can't clean up this photo gallery that I have on a site
 
7:22 PM
Hmm, I see a lot of feature requests for the Android app.
 
7:44 PM
Let's see if I can answer some older CSS questions and improve our answer ratio a bit.
 
@kleinfreund I'm liking you more and more.
2
 
:)
I'm glad I decided to show up here. ;)
3
 
0
A: Review of my CSS for aligning the navigation icons and text in a footer menu

kleinfreundHTML: Since the the navigation is the only thing inside your <div class="footer">, how about moving the class to the ul? Instead of using span's there, you can add the &raquo; to a pseudo-element (see the CSS part) CSS: For your arrows, use pseudo-elements: .footer a:after { content: "...

0
A: Correctness of calculations with struct timespec

William MorrisI can see nothing wrong, but I think it is not optimal. My compiler warns me about floating point conversions of those '1E9' constants. If I rewrite your timeAdd as follows, the code is easier to read and the generated code is significantly smaller: #define BILLION 1000000000 Time timeAdd(Time...

 
Yay for voting on CR! — syb0rg 7 secs ago
 
@konijn You should re-check
0
A: Can I reduce the bloat in my Google Spreadsheet form script?

konijnThe only thing I can suggest is turn your array-lookups to object-property lookups. function createAgentLookupTable( agents ) { var table; for (var i = 0 , length = agents.length; i < agents.length; i++) { agents[i].index = i; table[agents[i].toLowerCase()] = agents[i] ...

table is undefined.
 
7:55 PM
Hello @200_success
Long time no see
 
@200_success I agree with the Properties answer to
0
A: Nesting versus GOTO: which is better to avoid?

AJMansfieldHere is a far and away superior solution: use java.util.Properties to handle your properties file.

Is it worth editing the answer and fleshing it out?
(I would upvote it if I had votes).
 
@syb0rg I know, I should be doing some more serious work, but I just had to tell @konijn to re-check his answer.
 
@200_success DOne
and thanks!
 
@200_success Actually, I wanted to talk about my Fib answer.
8
A: Fibonacci sequence in C

syb0rgWhat you did well on: Your program is easy to read. You are allocating memory, even though it is unsafe in certain cases (other answers have addressed this, so I won't cover it). You prepare for some corner cases. Things you could improve: You are returning 0 when your program runs into a...

I fixed it.
I think.
 
7:57 PM
(oh-ohhh.... this is why you stay away....) >... ;-)
 
Hello @SakhalTurkaystan
 
@rolfl Personally, I think a short-and-sweet answer is best. Why should there be a minimum bound on length?
 
@SakhalTurkaystan Hi!
 
@rolfl Hello
 
7:58 PM
@200_success I wasn't saying that there should be a bound, but I did think that the user could have explained how to use it better.
 
Today is a celebration day.... glad you could come.
 
Hello
 
I would up-vote your question @SakhalTurkaystan but I have run out of votes.
 
Don't worry for that :)
Does anyone here have knowledge about Adsense?
 
Other than that it is getting harder to block with adblock?
 
8:02 PM
Added link to "meme" answer on Call of Duty to this MSO question: meta.stackoverflow.com/questions/19478/the-many-memes-of-meta
 
Getting harder to block? That is interesting ;)
 
@syb0rg Your Fibonacci answer still appears to recommend returning -1 as a pointer. Also, I believe the O(1) solution requires casting the result back to an unsigned long long. (And I'm not a fan of making round-trips to floating point and back to integer arithmetic. Once you consider all the pitfalls that Kahan addressed with IEEE 754, you might be wary too.)
 
Anyone still has votes?
0
A: Servlet for querying database on some high-loaded system

palacsintSome minor random notes: Instead of commenting, like this: //If session_id is not null, we need to check if it is valid for mac provided if (!(device.getSessionId().equals(session.getId()))) { makeXml (request,response,session_id, RESPONSE_STATUS.HACK_ATTEMPT); return; ...

0
A: Servlet for querying database on some high-loaded system

200_successIt doesn't make much sense to have a connection pool to be used by just one servlet. Usually, the connection pool is shared by the entire webapp. Furthermore, much of the setup can be accomplished by configuration rather than with code. It is certainly bad practice to hard-code connection stri...

1
A: Java GUI code with Swing Timer

palacsint+1 to @unholysampler and some other notes: I'd avoid abbreviations like redBtn and cntd. They make the code harder to read and could undermine autocomplete. For example, if you type redBu autocomplete won't find anything. It's often annoying. (See also: nikie's answer on Using single characters...

0
A: Can I reduce the bloat in my Google Spreadsheet form script?

konijnThe only thing I can suggest is turn your array-lookups to object-property lookups. function createAgentLookupTable( agents ) { var table; for (var i = 0 , length = agents.length; i < agents.length; i++) { agents[i].index = i; table[agents[i].toLowerCase()] = agents[i] ...

 
My standard admonition for anyone trying to do discrete mathematics using floating point:
 
1
A: Correctness of calculations with struct timespec

William MorrisI can see nothing wrong, but I think it is not optimal. My compiler warns me about floating point conversions of those '1E9' constants. If I rewrite your timeAdd as follows, the code is easier to read and the generated code is significantly smaller: #define BILLION 1000000000 Time timeAdd(Time...

 
8:05 PM
No votes left, sorry.
 
1
A: Review of my CSS for aligning the navigation icons and text in a footer menu

kleinfreundHTML: Since the the navigation is the only thing inside your <div class="footer">, how about moving the class to the ul? Instead of using span's there, you can add the &raquo; to a pseudo-element (see the CSS part) CSS: For your arrows, you should use pseudo-elements: .footer a:after { ...

0
A: Model cars as classes

200_successWhen chaining constructors, it's customary to call the parent class constructor first, then perform the subclass-specific initialization. Here, it makes little difference since you're just setting a bunch of variables, but in more complex situations you could run into problems doing things in th...

 
@200_success Why final ? -> final boolean isValidMac
 
@200_success Where am I returning -1 as a pointer?
 
@konijn that's @200
 
@lol.upvote: I'm adding my bookmarks now. Gonna dump some serious votes in 4 hours.
2
In the meantime, I'm voting on the new Arqade mods.
 
8:08 PM
@syb0rg As originally written, calculateFibonacciSequence() has return type int *. You advocated returning -1 instead of 0.
 
@200_success Because although "Your comments are borked." may be true it's not the kind of answer that people want to see on the site.
 
@Jamal There are mod elections going on!? I kinda wanted to get an Arqade account anyways.
Hello @SimonAndréForsberg
 
@ChrisW Please clarify? Have I offended someone somewhere? If so, I apologize and will try to fix it.
 
Hi @syb0rg
 
@syb0rg: Yes, they're in the primary phase now. It seems that you can vote for multiple candidates.
 
8:10 PM
@SakhalTurkaystan I'm not seeing you on here: codereview.stackexchange.com/users?tab=Voters&filter=year
 
@SakhalTurkaystan I hope you don't mind me asking, but could you go through some questions and answers to vote on them? This site could really use it.
 
73
A: The Many Memes of Meta

DisgruntledGoatMeme: Two problems. Originator: Unknown (the quote itself is by Jamie Zawinski) Cultural Height: Neverending Background: A quotation by Jamie Zawinski goes like this: Some people, when confronted with a problem, think "I know, I'll use regular expressions." Now they have two problems. Th...

 
@200_success "Your comments are borked." is my hypothetical short answer on code review to code in a OP with badly-written comments: I meant it as an example of a true, short, theoretically helpful, yet unaccepable answer: to illustrate why short answers aren't better.
 
8:11 PM
@SakhalTurkaystan Also, if you use all of your votes in one day, you can get a badge for it.
 
Actually you get two badges, for 30 votes and all votes.
 
(both new faces on the "This Week" voters page)
 
57
A: The Many Memes of Meta

randomMeme: Spam haiku Originator: Jeff Atwood likes fun Played a trick on all of us Now he must explain. First Heard: From ennuikiller First to find it; asks us all Jeff all so silent. Cultural Height: haiku always vogue And some also like to spam Now bot must protect. Background: Others hit h...

 
@kleinfreund and it sucks that you only get these badges once!
 
8:13 PM
Wasn't there something like a use all votes multiple times thing?
Ha, I'm on this list as well. :>
 
So where can I check my remaining votes?
 
You get some notifications when you're close to the limit.
10 votes left, 5, 4, 3, 2, 1. Something like that.
You have 40 per day.
questions and answers combined.
 
@ChrisW "Your comments are borked" would be short, unhelpful, and rude. "Just use java.util.Properties" is concise and insightful. If it turns out that Properties is suitable for purpose, then someone with an open mind might think, "Oh, why didn't I think of that?"
 
@SakhalTurkaystan check out the bottom-right of your profile page, you got 40/day - currently at 2/40, makes you 38 votes left for the day :)
 
Ah, this is actually what you need. Ignored that somehow. ;)
 
8:17 PM
@200 You've convinced me, now if someone could just @Jamalize the answer then I could remove my down-vote.
 
Also use this page to see where you rank in as a voter :)
 
Catching up.
 
1
A: Model cars as classes

Michael UrmanThis is a fine place to start learning about OOP class hierarchies. It helps you understand how methods and data are shared amongst various members of the hierarchy. However I would never model a data-hierarchy in this fashion. In fact, especially in python, I would probably make just one class w...

 
@kleinfreund try this one ;)
 
Grrrr!
 
I'm on page 4. D:
 
4th row!
 
After just two and a half months spent here, I'm #10.
 
1
Q: Proxy/Facade Implementation Concept in C++11, impedance matching DB with classes

HostileForkIn an old project I tinker with from time to time, I have a DOM-like structure in an MMF database. I'd like the nodes to act like they have some C++ typing based on the content, and accessor methods that go along with that. Yet in actuality, the data is independent of the type system in C++. T...

^ Would anyone look at this question again, now that it includes more source code?
 
8:21 PM
@SimonAndréForsberg yeah that's why we need more voting!! // keep it up!
 
Indeed right. We need more @lol.upvote around here.
Or rather, lol.vote
 
4 more hours till I can vote again!
 
I think Santa paid a visit to my Arqade profile. :-)
 
Me too. >:D
 
@Jamal If Santa's name is synonymous with my name, then yes.
:P
 
8:28 PM
user image
2
 
@200_success Could you explain that picture of homer and Fermat's theorem and the power of 12? Could that expression 1782^12 + 1841^12 = 1922^12 be true somehow if you use faulty tools?
 
@SimonAndréForsberg I've edited the @AJMansfield's answer:
-2
A: Nesting versus GOTO: which is better to avoid?

AJMansfieldHere is a far and away superior solution: use java.util.Properties to handle your configuration file. Properties supports a key=value syntax that is very similar to the one you are trying to parse. It's up to you to decide whether that syntax is close enough to handle any existing configuration...

 
^ Now there's a humane and reasonable and informative answer.
 
Indeed it is, +1'd.
 
0
Q: Slide out CSS menu

Alex GarrettI've developed a simple CSS transition solution for a slide out menu with a single toggle, and would love some feedback on if anything could be simplified or improved. Markup <!DOCTYPE html> <html> <head> <title>Slide out menu</title> <link rel="stylesheet" href="css/main.css">

0
Q: Are these CppUnit tests OK?

electroLuxI wrote a CppUnit test suite to unit-test the code that I posted here which is a single routine that proposes how a Lua expression could be auto-completed. What do you think? I appreciate all the comments. #include <boost/format.hpp> #include <cppunit/extensions/HelperMacros.h> class Tests : pu...

 
8:32 PM
Luckily I could re-use my down-vote.
 
It doesn't answer the question, which is about coding style; so it's a bit off-the-wall (lateral thinking) but not a bad answer.
 
It's a typical case of Question: "What is best: X or Y?" Answer: "Z!"
3
I knew someone was going to star that, is @Malachi here?
 
@syb0rg Thanks for pointing me to that question. ;)
 
@SimonAndréForsberg The "equality" appears to be correct for the most significant 9 digits out of a 40-digit number (10 digits, if you round off) — close enough to look correct on a 10-digit hand calculator or if you use a single-precision float. A double has 16 digits of precision, so it still detects the difference. Still, if you are doing mathematics, you'd rather fail obviously with overflow than use rounded-off numbers. That's why I recommend against use of floating point for discrete math.
 
@kleinfreund Are you also an expert in JavaScript?
Just wondering
 
8:42 PM
@200_success But doesn't BigInteger and alike classes suffer from a bit of performance penalty?
 
Sorry, no. HTML and CSS are my department. ;)
 
@kleinfreund Ahh, well, we needed an expert in those too.
 
cimmanon is quite active as well. He is way more experienced.
Would like to see him around here.
 
@kleinfreund On chat?
 
@200_success In my Minesweeper Flags AI, (might be posted for review one day, if/when I decide to make it open source) I calculate numbers like 256 nCr 51 a lot, 54 digits. I use double all the way because I believe it's a lot faster, do you think I should switch to BigInteger instead for that?
 
8:44 PM
Yup.
 
@kleinfreund You should invite him in a comment sometime. Or we could just ask @Jamal to super-ping him.
 
He was commenting on an answer of mine, hope he replies. I might invite him then.
 
@kleinfreund How would you feel about making the CR Github homepage look a bit better?
I've only done a bit of work on it, and then I kind of let it go.
 
Yeah, he can be invited by comments. Best leave the super-pinging for actual issues.
 
I agree.
 
8:47 PM
@Jamal That's what I thought you would say, and I agree.
 
Didn't know of that page, I will look at it. Thank you.
@syb0rg What do you think about browser support for that page?
 
0
A: Ext JS: Avoid duplication

konijnThe trouble with your question is that the code resembles more config than coding and there is nothing wrong with it except that it is not DRY between those 2 files. It seems that Ext JS supports require as of version 4, so you simply need to extract the common logic/config into a file that you ...

 
@kleinfreund What do you mean?
 
1
A: Model cars as classes

Michael UrmanThis is a fine place to start learning about OOP class hierarchies. It helps you understand how methods and data are shared amongst various members of the hierarchy. However I would never model a data-hierarchy in this fashion. In fact, especially in python, I would probably make just one class w...

 
1
Q: Is this nesting of partial views poor design?

P. StallworthI feel like using this many partial views where a view renders a partial that renders a partial is just digging a hole of poor design, so I'm looking for any suggestions or guidance as to if this is best/worst practice. One of the reasons I don't like it is because it seems too easy to duplicate...

 
8:51 PM
If I'm going to rework parts of the cr community page I need to know which browsers need full support. Depending on this I can decide which HTML/CSS features are possible to use.
 
Chrome, Firefox, and probably IE (as much as I hate it).
 
Sure, these browsers will all be supported. It's more a question about older browsers and probably mobile devices.
 
@syb0rg I still haven't gitted (do you call it that?) any of my code to the CR community pages on GitHub, I gotta do that some time. But I honestly have to say that I'm not entirely sure how to do it. (Git and I know each other, but not really best friends...)
 
For example if we don't need full support for IE8, this would open up a good amount of nice features.
 
@amon Is really good with that kind of stuff @SimonAndréForsberg
I would ask him.
 
8:54 PM
Same goes for old Androids (Gingerbread, 2.3 and so on)
 
@kleinfreund It should support newer Android versions.
 
@syb0rg OK, thanks. Will do sometime.
 
It will.
 
@SimonAndréForsberg 1) In my opinion, a computation for a question is worthless if you can't trust the answer; sloppiness might be more acceptable in other domains. 2) Premature optimization is the root of a lot of evil. 3) BigInteger implementations will probably use the native types when dealing with small numbers; you just lose a bit of time when it checks for overflow, and such checks are probably beneficial.
That said, determining suitability for purpose is always the responsibility of the programmer.
 
@kleinfreund If some old legacy version isn't supported by some feature, drop it. That person needs to update their software anyways.
 
8:56 PM
I'm a bit mad on @StackExchange for not supporting older versions of Android in their app. It's so incredibly easy to support older Android versions!
 
I try my best and don't set the limitations too high.
 
@SimonAndréForsberg Feature request?
 
@SimonAndréForsberg I assume you calculate numbers like 256 nCr 51 to weigh probabilities in your AI, in which case an approximate answer is just fine.
 
But stuff like Android <= 2.3 and IE8 will be a bit tricky.
 
@syb0rg Naah, I wouldn't have space on my old HTC anyway to install it.
 
8:57 PM
So, should I clean up this answer now?
 
@kleinfreund You can drop those if you want.
Too old in my opinion.
@Jamal Define "clean up".
 
@syb0rg - he means upvote and pin.
 
@syb0rg Mind if I pull-request some changes to the HTML files on the repo first? Minor things.
 
@200_success Yup, it's all about probabilities. I know the probabilities are correct in most cases, not entirely sure of some extreme cases as I haven't calculated those "by hand" really :) Sounds like double is sufficient then.
 
@syb0rg: Purge some comments and remove the post notice.
 
8:59 PM
@SimonAndréForsberg .... BigInteger/BigDecimal are much slower (not just a little bit).
 
@kleinfreund Go for it. Anything you say (most likely) goes.
@Jamal Fine by me.
 
@ChrisW What was wrong with this answer?
 
@200_success 1E9 is a floating point number.
 
@Jamal Removing post notice - absolutely. I removed my previous comment.
@rolfl Thanks. When it comes to speed optimization, you are my monkey!
 
I think that was my highest rated comment on CR.
Now it's gone :(
 
9:02 PM
(That's supposed to be a good thing, yes)
@syb0rg We really don't up-vote comments enough around here.
 
0
Q: A parametrized Config singleton

Vlad DidenkoHere is an attempt to code a specific kind of Singleton - the one geared for our configuration needs. It needs to be initialized with a configuration location, do not allow copies or other instances, and provide feedback or fail in case of problems. Prefer graceful feedback from violated workflow...

 
We need more Pundit's!
2
 
@syb0rg: I understand, but comments like those are temporary anyway.
 
@SimonAndréForsberg Re: putting stuff on GitHub – I'd be glad to help if I can.
/me considers opening a Git support chat room
 
@amon That would not be a bad idea.
 
9:05 PM
@amon I'd love some help, has to be another day for me though. Bedtime here. But create the chat room and we can post messages when we're online :)
 
@Jamal It's fine. I made the comment in mind that I would have to delete it eventually.
 
I have one star left for today, where should I put it? Please someone say something star-worthy!
2
 
@syb0rg There is this browse happy thing for <IE8 versions, should we change this to target <IE9?
 
@kleinfreund Yes.
 
^^ That will do as a star-worthy comment for now.
 
9:09 PM
@lol
2
 
Night folks.
 
@syb0rg There is a Google Analytics snippet, but the ID is not set. It still reads UA-XXXXX-X
 
@SimonAndréForsberg bedtime is a good idea (we're in the same timezone). We can post git stuff here (and ding me)
 
Night, @Simon.
 
^^ That was a better one (ask @lol )
 
9:09 PM
uh, what?
I'm out of stars BTW
 
@kleinfreund You can set it. I forgot to change it from the HTML boilerplate.
 
Do you have the ID? :p
 
@lol Check the star history of this room, how many messages you have posted that were just "lol" and you will know...
I'm out :)
 
see ya!
 
@kleinfreund Nope, and I'm not sure how to find it.
 
9:11 PM
Bye
We'll add it later then.
 
Bye @SimonAndréForsberg
@kleinfreund Do you know how to use Git to work with Github already?
 
I'm using GitHub Pages for hosting and developing my personal site at the moment. I don't have long experience with it so far. But I will figure it out. I can't ruin things by commiting to the repo I forked.
 
OK, here's the CodeReview Paradox:
greatwolf, Mountain View, CA
1.2k 2 8 17
Reputation 1.2K, last seen last December, last activity last May.
Ranking on the voter's leaderboard:
#7
He has more votes than Rep......
1.5K votes, 1.2Krep. Seems like the boards greatest unsung hero!
3
 
9:38 PM
@syb0rg What I've got in the meantime: https://github.com/kleinfreund/CodeReviewCommunity.github.io

Check the README.md (has a to do list).
Wait, one can get multiple Revival badges? :O
 
@kleinfreund Yep.
Feel free to pull (push?) that commit if you would like. I can merge them.
 
Got the second one today. :p
 
they Mention Jamal in this post
40
A: The Many Memes of Meta

GEOCHETMeme: HE WHO SHALL NOT BE NAMED Originator: TheTXI Cultural Height: Early July 2009 Background: HE WHO SHALL NOT BE NAMED is Rich B. The oldest surviving reference is here, earlier references having been on questions since deleted. There are urban legends surrounding him, all of which are pro...

@Jamal might be " The Great Edit Nazi"
 
0
A: Slide out CSS menu

kleinfreundHTML: In addition to your existing viewport meta tag, I suggest adding the width value: <meta name="viewport" content="width=device-width, initial-scale=1.0"> Also moving the tag before you load your stylesheets and the title code help your performance. MDN on using the viewport meta tag. A ...

 
9:46 PM
@kleinfreund Don't be afraid to change to looks of the site either. If you feel like something could look better, than change it.
 
@syb0rg I'm going to clone my fork locally and do some work on the CSS when I find some spare time.
First, we rework the page as it currently stands. This shouldn't be a problem. If you want, we can think about making further adjustments, on how the page should work and look.
 
@Malachi: Where do they mention me?
 
Malachi: "might be " The Great Edit Nazi""
:D
Friends. Bed time for me. Have a good evening/night/whatever it may be for you at the moment. ;) Probably late afternoon, early evening?
See you tomorrow, bye.
 
Early evening for me. Bye!
 
@Jamal I might be "The Great Edit Nazi"?
40
A: The Many Memes of Meta

GEOCHETMeme: HE WHO SHALL NOT BE NAMED Originator: TheTXI Cultural Height: Early July 2009 Background: HE WHO SHALL NOT BE NAMED is Rich B. The oldest surviving reference is here, earlier references having been on questions since deleted. There are urban legends surrounding him, all of which are pro...

 
9:53 PM
@lol.upvote there's a meme for you too:
37
A: The Many Memes of Meta

Brad GilbertMeme: Changing your display name on a whim. Originator: Welbog Cultural Height: TBD Official Response: Limited to one change every 30 days. Background: User Welbog likes to change his profile whenever it will make a post of his seem funnier. Other times it seems to just be on a whim. He will also...

 
@Malachi: Ah. I thought they mentioned me by name.
 
@Jamal that would be cool too...lol
 
0
Q: Converting List to Array when list has quotes and embedded comma

James Mohlerarray function convertRow(required string lstRow) { var arResult = []; var arTemp = ListToArray(arguments.lstRow, ',', true); var quoteMode = false; var startQuote = false; for (var i in arTemp) { if (i CONTAINS '"' && not quoteMode) { startQuote = true; } if (startQuote) { ...

 
10:10 PM
@rolfl: Have to put a delete vote on this yet?
-1
A: Rolling Average class sanity check

miniBill+1 for slim lock. It can help a lot

 
Maybe he is trying to get a "Peer Pressure" badge?
 
There's a "Flag or disagree..." button in the review tool. Pressing the button allows me to flag it.
I agree it's not an answer and should be a comment.
What would I do if I wanted to "disagree"?
 
You would raise an invalid flag. However, by itself, it's not a very useful comment, either.
 
And he already posted it as a comment:
+1 for slim lock, it can help a lot — miniBill 37 mins ago
 
Ah. The "it has invalid flags" option is buried in the middle of the list of valid flags.
 
10:15 PM
@ChrisW What flags are you marking as invalid?
 
Ah. I did not see that. I'll delete the answer, then.
 
So I flagged it again as not an answer.
That UI wasn't similar to "Approve/Reject" a suggested edit.
Was I approving/rejecting a suggested flag?
 
Perhaps a Meta.SE request?
I have been annoyed by that as well.
(On Raspberry Pi.SE, not here)
 
Was that the UI to flag something again? Is it deleted without moderator intervention if enough users flag it?
 
1.) If a post receives enough delete votes from trusted users, inside or outside the review queue
2.) If enough trusted users cast delete votes and/or enough with access to the review queue cast "recommended deletion" votes
 
10:21 PM
0
Q: Did I convert this C++ Class to Common Lisp correctly?

Edward MonneyHere is the original C++ class I converted to Lisp at the very bottom of this post. class TrainingData { public: TrainingData(const string filename); bool isEof(void) { return m_trainingDataFile.eof(); } void getTopology(vector &topology); // Returns the number of input values read ...

 
10:58 PM
@Jamal A while ago.... you can't see that? Huh.
 
Perhaps I wasn't looking closely enough. I just wanted to make sure.
 
I guess you can, now, palacsint, me, and you.
 
Right.
 
if you agree with a flag then you flag it as well. if you with a flag then you it with invalid flags @ChrisW
they were talking about that language that i like. the language that must not be named
34
A: The Many Memes of Meta

Super Long Names are HilariousMeme: The Language That Must Not Be Named (or Brainf_ck) Originator: Unclear. The censorship of the Language That Must Not Be Named has been around for a long time. However, the question that caused the ensuing war was asked by user Jon B in response to the favorite esoteric language question on...

 
Reload in 1 hour...
 
11:05 PM
catch you all on the flipside
 
Later!
 
@Malachi "If me with a flag then me it with invalid flags". Got it. Thanks for clarifying!
 
Another to consider:
-1
A: Monopoly game cards

EltonPick Card function pickCard(array){ var x = cardCount[array][0]; var title = this[array][x].title; cardCount[array][0]++; if (cardCount[array][0] === this[array].length){ shuffle(this[array]); cardCount[array][0] = 0; } } Ok I have applied the suggestions, but w...

@Malachi: This post would be best as a separate question. It could be considered rude to post a new request in the same question after receiving satisfying answers.
 
@Jamal It had better be a request for clarification of an existing answer, otherwise it's off-topic ("I don't understand how to implement this")?
 
I've just edited that in.
 
11:21 PM
0
Q: Review on PHP Weather class needed

DoubleRainbowI am kind of new to object orientation in PHP and I need some experts feedback. This class fetches the weather from this URL: http://api.met.no/weatherapi/locationforecast/1.8/?lat=59.32893000000001;lon=18.06491 And grabs the weather, temperature and an icon from the current hour. Is this prop...

 
11:54 PM
Almost time to redress the lobsided voting over the past ten days....
@syb0rg - you primed for the electorate?
16 votes to go!
 
@rolfl I just have to knock those down, all the rest are allocated to great answers I have found.
But yes, I am pumped for my first gold badge on CR.
 
Yeah, I've sort of been too sick to appreciate it ... much... but it does have a nice shine.
In 11 days I get fanatic, and there's no hurrying that one.
And I messed up 72 days consecutive on meta.... what an idiotic thing to do.
 
00:00 - 18:0018:00 - 00:00

« first day (268 days earlier)      last day (3748 days later) »