« first day (515 days earlier)      last day (3801 days later) » 

17:05
0
A: Code Review SE is graduating!

JaDoggGive Us a Domain Here are some suggestions and prices (from go - daddy - search)

@JaDogg Let's do codereview.com !
I like how the renewal price is just $15
LOL
SE network should register the se tld :D
I like reviewthe.codes
You guys are going to have to run a lot of bake sales and car washes to make codereview.com happen. — Pops ♦ 1 min ago
17:08
11
Q: Can StackOverflow Inc. purchase the .se top-level domain?

uɐɯsO uɐɥʇɐNI was reading the following article: http://www.canon.com/news/2010/mar16e.html It seems Canon is the first company to spring for ICANN's new policy, allowing corporations and businesses to purchase their own TLD (Top Level Domain). I began to think... wouldn't this be the perfect thing for the...

$33K for a .com!?
damn that .com one costs a lot
@Pops we could start with some CR tees! ;) — Mat's Mug 18 secs ago
2% battery... not.. gonna...... make it.....
@Pops Oops, sorry @SimonAndréForsberg I didn't intend to purchase Sweden!
goes off to propose goat-raising site on A51Shog9 ♦ Jan 4 '11 at 3:40
17:11
I need a Code Review mug!! — Mat's Mug 40 secs ago
2
^^ that
^^^ that!
and gone. Bye cruel world!
Go recharge!
Once we have site design/logo in place we can make some swag! Right...?
17:13
One thing at a time. Specifically, that one thing is a site design.
Being Swedish, I have no other option but to down-vote this answer:
No power!!!!!
although Stack Exchange can't purchase the .se TLD, there's still nothing preventing buying the specific domains.
@Mat'sMug I need a code review mug, or at least Mat's Mug as consolation prize
A lot of Swedish pages use the Italian TLD. Such as chalmers.it
17:16
reddit.com/r/technology/comments/2hwlrk/… So this is why there is no Windows 9...
lol
that's so horrible, but so typical
user image
7
@Mat'sMug's Mug mug. ^^
TS (theoretical star) ^^
VMWare: Could not detect which operating system is in the disc image.
Oh, it doesn't know Windows 10 yet??
Anyone else apply to trial the SE iPad app? I applied a few weeks back but have not heard anything back since...
17:32
-2
Q: $your_momma variable is too big

user271721So I got variable $your_momma that eats random foods. My code looks like this: $your_momma = new Momma("Japanese"); while($your_momma->wants_to_eat()) { $food = new Food("random"); $your_momma->eat($food); } print $your_momma->lastFoodsEaten(5); $your_momma object adds randomly generated f...

I lol'ed
@Marc-Andre Wow... just wow
@Phrancis you were sent an e-mail with instructions on september 25. Maybe double check your e-mail/spam folder?
Accept my editions in question pls
0
Q: "Utopian Tree" challenge optimization

Ritesh MehandirattaProblem statement My solution: 'use strict'; function processData(input) { var parse_fun = function (s) { return parseInt(s, 10); }; var lines = input.split('\n'); var T = parse_fun(lines.shift()); var data = lines.splice(0, T).map(parse_fun); for (var i = ...

@SimonAndréForsberg May I blame you, as a Swede, for letting codereview.se go to a domain squatter?
@outoftime There is a review queue that your edits go in to... they will be seen/approved as part of an automatic process.
17:39
@200_success I'm not responsible for buying that domain (unfortunately)
@outoftime Thank you. I didn't quite have time for more than a comment.
I think I might need to post a question on Programmers, or is there any rubberducks around here that might help me?
@Quack.
Of course, I'm really not much better than an actual rubber duck......
But feel free to talk it out.
@Phrancis no way!
@Marc-Andre it's gone....
17:50
@RubberDuck My Windows 10 Tech Preview is stuck at Getting devices ready 50%... :(
@RubberDuck I'm working on an event-driven game, and I'm registering a number of Event Listeners. When executing the events, I'd like to be able to debug easier to find out which event listener is which, so it needs to be uniquely identifiable somehow. To register an event I call something like game.registerHandler(ActionPerformEvent.class, event -> aiPerform(event.getGame())); , but this does not provide much identification for the listener that was added.
So one option would be to pass an 'identifier' or something to the 'registerHandler' method, another is for the code to try to determine from where the handler was added (i.e. creating a stack-trace and backtracking through it), but sometimes that doesn't give all the needed information.
user image
3
@Malachi I saved it :P
@SimonAndréForsberg Well, an identifier would be brittle and hard to maintain.
Is there any way to tie a listener to an identifier in a class of some sort?
@Marc-Andre Epic!
@RubberDuck I could pass along this to the registration, and create a toString() method for the 'this' object
@SimonAndréForsberg That's an idea. How's it feel?
17:57
@RubberDuck it feels like if I go with that, I have to change about 30 lines to add the 'this' parameter, and I have to create a reasonable toString for a bunch of classes. It feels like an acceptable solution, but I can't help but feel that there is a better way
@Marc-Andre lol
Hmm, rebooting Windows during installation might not be the best idea?
It didn't crash, yet, wow!
I think you've convinced me, @RubberDuck. Passing this it is.
@SimonAndréForsberg It might be time to go to programmers then. That's about as good as an actual rubber duck is going to get ya.
Maybe I did brick this install...
Okay, maybe it didn't like it ^
18:00
@skiwi I didn't even realize there was still a blue screen of death.
in older versions of Windows, you could configure the foreground and background colors for a BSOD
It's not the same blue screen they just made it blue so you know how deep in it your are.
hello
ello :D
18:02
@ArieLitovsky can you advise what email address it came from?
olleh
1
Q: Hangman game in Java second try

PiwootI hope some can look over my new object-oriented version of my hangman game I posted here about two weeks ago. Any suggestions or criticisms would be very helpful. PS: I know I should work more on commenting and be clearer and more descriptive of the methods and their parameters and returns. Me...

// @SimonAndréForsberg
$this=>itIs;
14 mins ago, by Simon André Forsberg
I think you've convinced me, @RubberDuck. Passing this it is.
great, my top-voted answer is now a one...
18:15
bad question incoming
@Mat'sMug lol
@Mat'sMug My top-voted answer is C !
sorry @JaDogg
@Malachi no worries It's just a screenshot of SEDE torrent
my top voted answer is SQL and second is C++
18:18
@JaDogg SEDE torrent?
@Malachi I really did not expect to have to write this comment on one of your questions:
To make life easier for reviewers, please add sufficient context to your question. The more you tell us about what your code does and what the purpose of doing that is, the easier it will be for reviewers to help you. See also this meta question. You mention that you are wrong about RNGs, but what is it actually your code is doing? And what was your original belief about RNGs? — Simon André Forsberg 1 min ago
So you were right:
3 mins ago, by Malachi
bad question incoming
1
Q: Proof that I was wrong about Random Number Generators

MalachiI wrote this code to show how wrong I was about Random Number Generators, Is there anything that I can do to make it more apparent how wrong that I am about the distribution of random numbers? Random rng = new Random(); Dictionary<int, UInt64> tallyCount = new Dictionary<int, UInt64>(); //Key ...

my top voted answer is telling someone not to use regex :P
18:20
@DanLyons To parse HTML?
@DanLyons my top voted answer is telling someone to not use a busy-loop instead of sleep(x)
^^ ? :)
email addresses
Hi @ArieLitovsky!
sadly I cannot take credit for the html answer :P
18:21
Meh, cannot get W10 Tech Preview to work in my VM
@DanLyons email.contains("@") (as I have stated in one of my answers)
@SimonAndréForsberg LOL IKR
@SimonAndréForsberg no more stars
@ArieLitovsky At first I thought: Whoa, we have an SO moderator among us. But looking further I have a feeling you are a SE employee. Or else you must be very lucky getting elected on so many sites!
18:23
@SimonAndréForsberg I found the torrent here data.stackexchange.com/help
btw @JaDogg you did the right thing
Thanks @ArieLitovsky - Super helpful mods on SE, as always!
I've said it before and I'm saying it again:
yesterday, by Simon André Forsberg
@rolfl Now that we are graduating, I guess everyone wants to be our friend...
@janos wait what, Is it about r question ?
@Phrancis no problem!
18:24
0
Q: Viewing the source code

maaartinusWhen doing a CR, it's important to be able to quickly find methods/classes/whatever in the source. Currently, it's just terrible as you get a couple of small scrolling views and the search takes way more time than anything else. That's specific to CR, as other sites rarely need that much code. T...

So with the StackExchange API V2.2 I can create a bot that posts questions to CR whenever I make a commit to one of my projects? ;-)
yes, it's a great answer by @Flodel
@SimonAndréForsberg yup, I'm an employee ;)
I have a feeling I am going to get like 5 answers at the same time....lol
@Phrancis see @ArieLitovsky is an iOS developer for SE, ask about iPad app
18:26
0
Q: Wrapper template functions for memset()

glampertI have these three helper functions that I've used on some projects as a slightly better alternative to the C memset function. The objective is to simplify and clarify code, as well as add asserts where possible: // Zero fills a POD type, such as a structure or union. template<class T> void Zero...

@skiwi I believe that technically you can already do that
I can't wait to try it. Does it support Chat as well @ArieLitovsky ?
@Phrancis sorry, no chat yet. We don't have a good API for it.
@skiwi Although I would add the same comment I just added on @Malachi's question to all of them.
OK. I'm on my iPad all the time playing Hearthstone doing work so it should be fun!
18:27
But if any of you would like to test out the iPad app and report any bugs, I would be very thankful ;)
@Phrancis hope you enjoy it
Bug: Doesn't run on Android
(If you're not saying it, @Mat'sMug, I am!)
(there's an Android app)
I know, but still.
Perhaps a better bug report would be:
Bug: iPad does not run Android.
@ArieLitovsky feel free to post your code up for review over here, we have some quite awesome iReviewers :)
18:30
@SimonAndréForsberg why are you always talking smack about Apple products? :p
@Phrancis Because I'm a Windows + Android user? :)
I own 3 of them (MB, iPad 2, iPhone 3GS) my wife has iPhone 4 (jealous) never had any problems with them :)
At work the past week, I was working on a Mac all the time. It was very confusing for me, the scrolling was inverted.
You know you can change that right?
@Phrancis Stay away from the new iPhone 6 then to keep it that way
18:32
@SimonAndréForsberg IT BENDS!!!
@Phrancis It was confusing for other reasons too of course
@RubberDuck my point exactly :)
I wonder how on earth Apple haven't tested that...? I mean... they must have used it regularly a while before putting it on the market?
My next phone will be a windows phone. Why? Because I want a phone that I can actually hold in my hand and use as a phone.
@SimonAndréForsberg Beats me man.
Oh, the good old days when phones were phones...
Snake was the best thing ever. I miss that crappy little motorola.
@RubberDuck Does it blend ? ( ehehe )
18:35
@RubberDuck Nokia 3210 FTW!
@Phrancis aren't you busy?
Am I? Not particularly ATM
@SimonAndréForsberg I'm imaging Apple since Bendgate as a place where it is forbidden to put iPhones in your back pockets
How are those called officially? Back pockets is not the correct word
2
Q: Are we allowed to ask questions about just regular expressions?

Ethan BierleinPretty simple question, are we allowed to ask questions just about regular expressions?

18:38
My favorite phone of all time. The Samsung N200.
WHOA. Just got a Buffer Overflow attack clicking the link to watch the iPhone 6 video from Apple website. WTF??
Dang you're fast @rolfl.
Nokia still builds small phones, you can get a brand new one for around 25$. But not durable at all, damn phone broke when My mom put it in to the washing machine. :(
18:43
0
A: Implementing ArrayLists in C

outoftimeLets talk about perfomance What if I need to use your list very frequently? Lets look closer at function arraylist_add, if I need list with 1 million of bytes, which is 1MB you will reallocate your data struct member 1 million times. It is lowest part of your list! My improvement suggestions...

Check grammar, please.
I'll look at the grammar, doesn't look bad
> Try to implement some cute, but simple flow.
@outoftime ^ what does that mean ?
@SimonAndréForsberg
@Donald.McLean Yes, definitely!
What do you call a user who has an edit rejected because @Jamal got there first?
18:47
@JaDogg program flow
:17946007 [insert your favorite picture of a pretty girl here]
Wait, it is in the other part of the world not normal to put calendars on the wall of the toilet room?
I know what cute means I was wondering what it meant for code
@skiwi I often seen calendars on the wall, but never in the bathroom.
18:48
0
Q: Implementing ViewModel design pattern using DI in a MVP-VM architecture

Will MarcouillerBased on this answer: MVVM implementation using C# and XAML, I understand that my ViewModel is some kind of a wrapper for my Model. Being a fan of DI and SOLID principles, I have made my ViewModel Model-dependent. CustomerDetailViewModel public class CustomerDetailViewModel : ViewModel<Customer>...

0
Q: Efficiency of Nested LINQ foreach Loops

JamesTownI've been working on an older project that's target framework is 3.5. There is a new user control that displays a list of data from a web service. I hit the web service (soap/xml) and deserialize the data into a list of a custom model/class (this is in a helper class outside the user control). B...

I thought it was like YAGNI or something
@JaDogg that is an excellent question. I've used many words to describe code, but 'cute' has never been one of them.
How on earth do you write 'cute' code?
@JaDogg Their code really ugly
I guess instead of users writing bad titles like 'Does this code look good?' perhaps one day they will ask 'Is this code cute?'
LOLCODE is cute. Sort of.
18:52
...if you find LOLCATZ cute I guess..
@JaDogg accepted
@Phrancis thx for reviewing.
18:54
Code should be as elegant as possible.
@outoftime use that word instead of cute
:D
cute
The Mug always pops in when LOLCODE is mentioned...
2
@JaDogg it can be not the best word in this situation, I agree.
18:57
@outoftime :D
@SimonAndréForsberg my stars have not been reloaded yet!
@rolfl @Pimgd wanted to make sure you guys saw my new question in relation to the Random Numbers.... codereview.stackexchange.com/q/64430/18427
Looking at it now....
the more numbers that you request the less deviation you have, so it is truly pseudo random, in that the numbers returned are distributed evenly throughout the range.
I need to get a T-Shirt made of that.....
19:15
This question could use some more attention I think:
7
Q: Iceblox game code

user4097000I'm working on this code to make it more efficient, maintainable, stable, etc. It's code for the iceblox game. What are some flaws in this code when thinking about analyzeability, stability, changeability, testability, and maintainability. What can I do as far as program changes to make this code...

0
Q: Daisychain channels

DippoI watch the presentation about concurrent programming presented by Rob Pike and i saw the daisychain example. I tried to rewrite this code to make it more readable. Everything went well, but i am currently stuck to the point where only a maximum amount of chains are allowed. I want to keep the ra...

back to work with me now...lol
@bazola Napalm....
thanks santa :)
its a good question though, the code definitely needs improvement. I am sure there are deeper issues that could be elaborated on if anyone is brave enough to dig into it
+150 today... hmm... Santa...?
19:31
Yes?
One of the last few zombies:
3
Q: Is there a better way to copy into two different folders on a machine simultaneously?

WebbyI am trying to copy files from machineB and machineC into machineA as I am running my below shell script on machineA. If the files is not there in machineB then it should be there in machineC for sure so I will try copying the files from machineB first, if it is not there in machineB then I will...

0
A: Iceblox game code

Simon André ForsbergEnum int gameState; This little variable can have a lot of magic numbers (as mentioned by mjolka). As the possible values of this is limited to a fairly small number of values, 12 as far as I can see, I would write up an enum for it. public enum GameState { PENGUIN_DEAD, PENGUIN_HAPPY, I...

Nice work @janos; here, have an upvote!
this is another zombie, still, despite my answer more than a week ago
3
Q: Updating an Nginx config file for SSL

user3590149This script updates a settings in ssl config file for Nginx. I generate DHEC key and then update the Nginx SSL file to that location. I also give an option for the user through arguments if they want to change the bit size of the key and if they want more conservative or hardened SSL cipher suit...

Thanks Santa @Phrancis!
@janos Shameful!
We never got to that one sooner?
19:39
@rolfl it's perfect for nights like this when it looks difficult to cap. Good time to drop a zombie-bomb :p
I guess..... Your rep ride is meteoric at the moment.
hm... because of a lost accepted, I'll need an accept to cap tonight :s
better try to answer something new, maybe
hm, maybe not!
the text version shows the -15 counted for yesterday, not today
so maybe I can still cap even without accepts?
10 reputation away from repcap
anyone want to comment on this answer, as to why you think it may have been downvoted? codereview.stackexchange.com/a/52636/18427
19:51
Thanks, Santa!
@janos sorry about that
@JaDogg no need, really
iSanta-ed :D
I'll see soon, maybe it doesn't even make a difference
saw it, thanks for the Santa action ;)
@SimonAndréForsberg jeez, I wanted to know whether to delete it or not, you didn't have to downvote....lol
19:54
@Malachi I removed my down-vote, don't want to risk the cap!
But if that answer is still there tomorrow, it will get a down-vote...
I was going through and deleting answers that are negative if they don't give me a positive score...
@SimonAndréForsberg it gone
this one on the other hand, gives me 6 rep even though it has 2 downvotes..... codereview.stackexchange.com/a/52109/18427
@janos Holy *** your reputation chart is impressive... Why do I have a feeling that you're somehow racing me to the Epic badge?
@konijn might want to look at that
I'm racing myself :)
I'd like to be the 3rd. I was hoping you won't notice ;)
@janos the 3rd to get epic or the 3rd in the top users?
19:58
3rd to get Epic
if you're going for it too, then you'll get it first for sure
I don't think I'll be able to repcap as much as you are though
@janos - if you are relying on my SEDE query for accurate stats, you will be off by some... it's not perfect.
I have 5 answers from the end of 2013 that have a net score of 0. anyone want to check them out and tip the scales?
the SEDE data is only updated weekly isn't it? when does that happen again?
if tonight I can cap, then I'll be at 38
@Malachi the night between Saturday and Sunday
20:02
last time I checked your SEDE query, Simon was at 44 or so
Palindrome Rep .... again:
@SimonAndréForsberg you're time or my time?
:)
@Malachi pretty much both. Perhaps some time late Saturday evening for you.
20:04
maybe on of these days I will do something productive with my time other than cut firewood and play facebook games when I am not at work....
@Malachi CODING!
@SimonAndréForsberg yeah, that!
lol
@outoftime come to 2nd Monitor when you are free It's fun :D
He's already here ;-)
0
Q: Optimising and condensing Django View Class

DeependThis follows on from a previous question I asked which was of huge help to me. I am still only learning Python and Django and I would love to learn how to code better. The below is a get_context_data method which is used to return a variable to an internal page of a Django SessionWizardView...

0
Q: creating prime factorzation

Maraleecan any one answer what each line really means, I found this online, I am trying to teach myself python, I am not sure what it really mean. def primo(n): def z(x): if x % i : return True if x == i: return True return False nump =[2]+ range(3, n+1, 2) for i in range(3, int((n**0....

20:07
Today : Three nice questions badges (2 here, 1 on meta), 1 nice answer badge(meta) + necromancer(meta)
3
@CaptainObvious Asking for an explination of someone else's code.
I also reached max stars + max votes eh
@JaDogg that's a good thing!
What would be a good naming standard for an array var? arrayTest or testArray or... something else?
@Phrancis There's several options, it is not necessary to include "array" in the name, and "test" is also horrible to work with
In Java I'd go for: List<Player> players or List<Player> playerList alternatively
But you are doing PHP?
So far yes... ^^"
20:19
Then perhaps testArray
Isn't "list" a different data type than "array"?
@Phrancis Yes
yeah
Interesting, I can have a Groovy script call Ant inside a Maven pom
So wouldn't naming it a list be misleading if it is an array?
20:22
@Phrancis for java yes, PHP no idea
AFAIK, PHP doesn't really have a 'list'
It's just arrays in PHP
PHP is confusing lol.
// what am I doing wrong? Syntax error...
<?php
$colorList = [
	'a' => 'Red',
	'b' => 'Blue',
	'c' => 'Yellow',
	'd' => 'Green'
];
print_r($colorList);
?>
Ah, fiddle was not liking the square brackets
I think I am getting tired... I can barely spell cardsfhiter correctly...
Apparently...
It's real annoying when you need to type it a tenfold of times
20:37
I found this NERDY-ness test quite amusing: nerdtests.com/ft_nq.php
@janos It's damn long! Does it give a "real" result afterwards, yes please?
what would be a "real" result...
@janos Something different than a "LOL"
Now, while some of you folks might spend time with PHP, I'm going to spend time with some P&P - POI (Person of Interest) and Popcorn!
I got 61, a more nerdy friend got 69, and an uber-nerd guy I know got 96
20:43
@Donald.McLean You are being watched!
@janos I'm wondering what I"ll get...
@SimonAndréForsberg Good, meanwhile I'll break Cardshifter
> Do you know your current IP address?
@200_success I am definitely going to have to research that a little bit, it's way over my head at the moment, but I have noticed that the more numbers that I request from the application the smaller the deviation is.
Ashamingly, I do know
> Overall, you scored as follows:

34% scored higher (more nerdy),
2% scored the same, and
64% scored lower (less nerdy).

What does this mean? Your nerdiness is:

Low Ranking Nerd. Definitely a nerd but low on the totem pole of nerds.
@janos ^
apparently you're more nerdy than me. I'm glad :)
Noooooo-oooooooo-oooooooo-ooooo-ooo-ooo-oo-oo-o-o-o-
20:49
some people take pride in being nerdy
@Malachi I've added some motivational background information.
I found this link in the profile of an SO mod, who was showing off his 100 score
<?php
$characterColors = array(
	'mellow' => array(
		'Blue',
		'Violet',
		'Purple',
		'Pink',
	),
	'energetic' => array(
		'Red',
		'Orange',
		'Yellow',
		'Green'
		)
);
echo "<pre>";
print_r($characterColors);
echo "</pre>";
?>
^^ is this a decent way to indent array declarations?
@200_success thank you. I will be looking into that. and probably looking for some of my old Math books, it's been a while since I even thought about statistics let alone Standard Deviation, mean, mode, average, etc.
more or less. 'mellow' and 'energetic' are not fully consistent
20:52
@Phrancis It's probably decent yes, a lot of PHP beginners would just write all on one line.
@janos 89.... please excuse me while I go find my guitar and distortion pedal.....
right now I have to link a list box to a textbox....lol
haha
I'm no statistics expert myself. I don't really understand the stuff, but I have some idea where to look, and how to follow the instructions.
@SimonAndréForsberg Another great episode.
20:55
should I see a doctor?
2
SUPREME NERD GOD!!!
that would make a nice CR nickname
sounds silly given that 4% scored higher
@RubberDuck what's the text for 89?
@200_success lol. last time I learned anything about statistics was in an advanced math class in highschool, but that was something like 13 years ago I think...
I would be the average nerd score where I work would be pretty darn high.
21:00
and we didn't do much with it, we also only touched on Matrices and such things like that.
ttgtb
see you tomorrow!
see you!
21:29
What's it called when you have an array within an array?
as in array<array<element,n>,m>?
nested array, or 2-dimensional array
@Christoph Nested array?
@Donald.McLean We are being watched!
@skiwi Good! Then everything is as usual :)
Thank you :)
0
Q: Using Concurrent Dictionary as First Level Cache

Vijay.GopalakrishnaWe are currently implementing a thread safe in memory cache mechanism! With the intent of storing objects that are expensive to create or often used by the system! We also want to include expiration policy, i.e number of times a object was accessed and when it was last accessed date. Which wil...

21:37
good night
Bye @Christoph
0
Q: Dependency Injection into an Abstract Class

Nikolaii99Me and another developer have recently forked and taken over an abandoned, open-source project. I have also been reading articles and watching videos by Misko Hevery: http://misko.hevery.com/code-reviewers-guide/ https://www.youtube.com/watch?v=wEhu57pih5w&list=PLD0011D00849E1B79 So when I was...

I'd like to see how the author of this question reacts to my answer. http://codereview.stackexchange.com/a/64462/17000

I tried to keep an as-simple-as-possible object oriented design but since he was thinking that his design was object oriented he could possibly be quite disoriented by my suggestion. Do you think it could be beginner-proof?
(silently napalms)
Does it make sense to put multiple input variables into an array of their own, if they are to interact with multiple other arrays? Like such:
<?php
$mood = 'mellow';
$tempo = 'slow';
$songCharacter = array(
	'Mood' => '$mood,
	'Tempo' => $tempo
);

« first day (515 days earlier)      last day (3801 days later) »