« first day (516 days earlier)      last day (3503 days later) » 

3:00 PM
lol
5
 
@Pimgd lol
6
 
I do think that the recursion is good, and I couldn't see anything that would thwart that function at runtime.
 
@QuentinPradet not sure, probably not, but ...
they're really very similar ...
 
0
Q: Multiplayer bowling in Ruby, with variable skill

a2bfayThis is a multiplayer bowling simulator in Ruby. It allows for variable skill levels, and produces weighted random results for each roll based on those skill settings. The methods are grouped in four sections: game mechanics scoring calculations stats calculators (because I got curious about w...

 
3:01 PM
@RubberDuck what does this need?
 
Well, I am actually a bit skeptical and think it could be done better. I don't like the bottom-up approach (i.e. each element checks for the parenst right), instead I would prefer the parent to propagate the rights down to each element.
 
@dirkk you could write some code for it and do a ...
that said, I don't see a practicable way for inheritance (of whatever) that does not work "bottom-up"
--> the parent shouldn't have to be responsible for managing it's children.
 
That could be very easily read out of context^^ ;-)
 
@Vogel612 's views about parenthood have been revealed...
 
@Pimgd aaa crap..
 
3:07 PM
@Vogel612 and both are not real code: I suspect it's the same user who modified his original code before posting it
 
@QuentinPradet might even be. If they aren't real code, why not VTC as such?
 
It's broken. Kill it.
-1
Q: Questionnaire form in worksheet

Biffy261I'm trying to push out a questionnaire at work with several questions on. Users can reply with radio buttons ranging from yes, some, maybe and no. This questionnaire is contained in the sheet called Manager. If they select yes or no I would like to copy the question to a seperate sheet in a tabl...

 
I liked the private scope explanation at college a lot better... a child isn't allowed to touch a parent's privates
 
@RubberDuck it's not...
the End Sub is not properly outdented...
 
@dirkk the truth is that it's easier to comment on trivial things and/or stuff that is applicable to most languages, and most answers will naturally do that first - since nobody seems to really know angularjs you're unlikely to get an answer on what you want
you could look at the few angularjs questions we have and see if you have better insights than what has already been posted.
 
3:10 PM
What do you folks think about this edit I just made? codereview.stackexchange.com/posts/64525/revisions
 
Good catch @Vogel.
 
that would not help for your question though!
 
@RubberDuck feel free to use it when shredding that carp
 
@Malachi, it needs syntax highlighting corrected. The Xmal isn't showing properly.
 
btw what do you think of my review from earlier?
 
3:11 PM
@Vogel612 well, turns out all our top-to-bottom approaches didn't work ;) However, I think it should be practically possible, to "dribble down" the value.
 
Which one @Vogel? I'm not really here.
 
@Vogel612 it's kind of a simplified code that does the same thing, is that forbidden too?
 
@dirkk dirkk (noob question) what about dom-parsing for children??
@QuentinPradet depends...
@RubberDuck xml question.. active second last ;)
 
@QuentinPradet Yeah, thats my impression as well. There are hundredths of tutorials about Angular out there, but not many go beyond the basic directive, isolated scope stuff. Also, it seems to me that the "proper way to do it" changes in AngularJS about once a week...
 
@Vogel612 we have two specific questions, no more depends here :)
 
3:12 PM
@SimonAndréForsberg looks good
> title fixed and feelings removed (Pim you heartless bastard) - okay, fluff removed
lol ^^
3
 
@QuentinPradet as rolfl once put it in a meta-answer "I know there's a line, and I know when it's crossed, but I have no idea where exactly it is"
 
@Phrancis aww yeah people read edit summaries
 
@RubberDuck not sure what you mean...
 
@Vogel612 Could you elaborate, I am not quite sure how and where you want to parse the DOM. However, we would like to stay as much as possible in the AngularJS logic, so to do it the angular way (whatever this is supposed to mean...)
 
well you got JS to your free use, right??
<-- has no clue about frontend programming..
 
3:15 PM
@Pimgd well, some do read them sometimes ;-)
 
I hadn't seen that question until just now @Vogel.
 
My ears are burning ....?
 
@Vogel612 my point exactly, I don't care about the line, I care about this specific question :)
 
I'm slowly filling the starred message list with
lol
3
 
aaahh too much..
 
3:15 PM
There's 5 on there already =D
 
lol wall
4
 
In VBA, if you use the same name twice in a project, one upper cased and one lower, it will change all of them depending on the last one you edited.
 
@dirkk IIRC there's something like var element = document.getElementById("myId").children
 
@Vogel612 sure, but just because it is possible doesn't mean it should be done... I also could write my server logic in assembler, but I am not going to do that either.
2
 
@dirkk It will be much faster though... maybe? ... downside is that you have to write it good for it to be fast these days
 
3:17 PM
@Vogel612 well, yes there is. But this is plain JS and AngularJS has a very different toolkit and approach to handling things.
 
that said you could be dangerous and recursively (prob a tail-recursion so can be derecursed) trickle down the DOM and move throught the children..
@dirkk well I have no clue about AngularJS, but that's how I'd do a top-down inheritance in JS...
@Pimgd well we do have 3 pinned messages.
 
@Vogel612 yes, thats what we did. The problem is with passing values in Angular between directives, because they are completely shared if no isolated scope is used (which is a problem if the rights are modified for siblings) or they use isolated scopes, i.e. they are not shared at all by default and need explicit passing, which didn't fit with our "default-by-inheritance" model
@Vogel612 It is really specific about angular
 
@Vogel612 Curses, my
lol
plans have been foiled!
 
@dirkk I don't have the slightest clue what you mean by that, but it sounds like you know your stuff ;)
@RubberDuck is the c# mvvm question better now?
 
@dirkk codereview.stackexchange.com/questions/tagged/… we could use an angular.js user here :)
 
3:22 PM
@Vogel612 well, I hope I do at least a little bit - people are paying me to do this :)
 
AngularJS*
 
@QuentinPradet naaah, angular is not really my main focus. If you would have XML-related questions using functional programing (XQuery/XPath) I would get active, but this seems to be missing somehow...
 
@RubberDuck @Vogel612 got it
 
@Vogel612 Yes. Thank you.
 
aargh crap.
 
3:25 PM
someone installed Windows 10 sneak peak on a machine here at work
 
@Vogel612 CSS ded
 
@Pimgd /me sad now
 
@Vogel612 don't worry, there's pills for that
 
anyways, I think I call it a day and hope the problem solves itself over the weekend... ;) Thanks for your help!
 
@dirkk it's thursday...
weekend does not begin tomorrow for most of the world...
 
3:26 PM
@Vogel612 Gosh!
no, I am actually aware of that, but thanks for the heads up ;)
 
@dirkk just to put you down... Germans don't work tomorrow ;)
 
But we do have a national holiday in my part of the world tomorrow, so long weekend for us :)
I know as I am also "celebrating" the "Tag der deutschen Eiinheit" tomorrow :)
 
then we shall be two ;M)
@Pimgd it looks more like a js-problem:
 
0
Q: c++ faster code

Nejc LovrencicI have homework, in which I get number of cases and then four numbers.. Each number tells how many rows there are in each column For example: 2 2 3 3 _ _ _ _ _ _ _ _ _ _ Produces this result. Where ever there are lines that can be joined in one, i have to do this, and write out minimun n...

 
else if (aArray[l] == 1 && bArray[l] == 0 && cArray[l] == 0 && dArray[l] == 1) { totalRows[i] += 2; continue; }
else if (aArray[l] == 1 && bArray[l] == 0 && cArray[l] == 1 && dArray[l] == 0) { totalRows[i] += 2; continue; }
else if (aArray[l] == 1 && bArray[l] == 0 && cArray[l] == 1 && dArray[l] == 1) { totalRows[i] += 2; continue; }
Well, it was time for me to go home anyway
 
3:30 PM
whaaaa,,, why? how`?
 
@dirkk Welcome to 2nd Monitor and Code Review BTW.Normal
 
Can't autocomplete @Captain
 
@Vogel612 not anymore
 
@Malachi why?
 
Want a partial answer to that?
 
3:32 PM
yes, please ..
 
CaptainObvious is not a real user......
His ID is -263
 
so the js script just checks for proper user-ids?
 
He is not 'real', as a mod, I can create special users to represent feeds in to a room.
 
@rolfl close to absolute zero!
 
Recently (a day or two ago), the auto-complete functionality was updated to include the icon with the name.....
I presume the new auto-complete code is either zero-bound, or looks in a place where only real users are, to do the completion.
So, I can explain why CO is different, not why that difference makes a difference.
(by the way, I like my grimma wormtounge) user ;)
 
3:36 PM
@rolfl I guess it might be related to gravatar loading..
 
I could guess a lot of things.... if you want, we can file a bug .... but I decided ther was no real need.... you can ping the guy, but noone will answer.
You can still reply to posts though.
@CaptainObvious Like C++ in title?
 
@CaptainObvious like this?
Oooh that works!
 
@rolfl I know the guys from the tavern well enough to know what the answer would be..
 
"Suck it up, buttercup" ?
 
That was my thought, and I do like the icons on the complete
 
3:38 PM
there was that bug-report about replying to future messages...
 
the last negative user is currently chat.stackexchange.com/users/-306
-306
 
Huh, -6 on chat.so ..... interesting, they do not play much over there....
 
Shamelessly pimping. I think I can rep cap today. codereview.stackexchange.com/a/64553/41243
 
most of the chat.so users have their sock-puppet js-bots for that..
@RubberDuck reading through your answer... clearing cells won't make the sheet any smaller...
deleting may be more favorable IMO..
 
(shameless napalming)
 
3:45 PM
@Vogel612 Absolutely true! I was just addressing the fact that the code doesn't actually do what it's claiming to do.
 
user image
5
 
@RubberDuck - isn't there a thing about disabling updates on the sheet when it is being modified, and then renabling them afterwards... it makes a huge performance difference.
 
@rolfl already done... in OP's code.
 
@Vogel612 too for that matter (yes, napalmed too).
OK, then that sounds like someone can give some positive feedback too!
Great job on disabling screen updates!
 
@rolfl you mean.. "Great job on disabling screen updates and failing at it"??
 
3:48 PM
Well, that too ^^^ ?
 
@rolfl Yes. Good call. I forgot it was a performance question.
I got lost in all of the bad things.
 
BTW anyone care to give input on the "code-block" meta question?
12
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...

I don't think it's tagged well with
I'd prefer having it tagged with and formulated more as a ..
especially because it doesn't seem to be thought out enough :(
btw. @rolfl did you see Quentins possible user-doublet?
 
No... what's that?
 
59 mins ago, by Quentin Pradet
Is http://codereview.stackexchange.com/questions/64490/conditional-statements-with-‌​doctor-and-patient-information a duplicate of http://codereview.stackexchange.com/questions/64350/displaying-information-about‌​-people-from-a-json-file ?
and following.. basically there's two quite extremely similar questions asked by new users with generic names..
 
It's good to have my keyboard back alive!
A simple replug was enough
@JaDogg Because I wanted to see what kind of pattern it used internally, I haven't embedded your code but it does seem to do what I want, but I do not see why my code does not do the same (it's almost the same, but I do not use a DateTimeFormatterBuilder)
 
4:04 PM
TTQW...
Toodles! ;)
 
@Vogel612 I find it strange that they are considered to be such similar questions....
 
@JaDogg You've got my upvote and accept there... Though I'm stubborn and still want to get my own way working! It's really quite similar tow hat youa re doing but a bit more generalized
 
1
Q: How to define a javascript internal method that needs to be accessible from inside obj and out

gfrobeniusI'm trying to fully grasp JavaScript inheritance and encapsulation. Take the following example (here is a fiddle): myPage = { someObj: function() { var x = 0; //PRIVATE: increment by 10 var inc10 = function() { x = x+10; }; //PUBL...

 
Going to try to add a new feed.... bbiab.
 
rolfl has made a change to the feeds posted into this room
We're about to roll out a configuration change to our load balancers to make them happier; hoping for no visible impact.
That change has been rolled out. Let us know if you're seeing any problems.
We broke the mobile apps there for a moment, but everything should be good now. Let us know if you see any issues!
http://stackoverflow.com / http://stackexchange.com and our other sites are having ISP issues. Returning soon.
We're back. @cloudflaresys's problems are resolved and we've moved back onto them.
 
4:18 PM
OK, that seems to work.
Votes... keep it? I think so....
3
 
I see as long as it doesn't constantly flood the room I think it would be OK...
2
 
The initial flood was just getting the backlog from the feed.
The rest should happen as-and-when the tweets happen, and that's not often.... only when there's problems.
Interesting site: Recommend you play: stared.github.io/tagoverflow
This has to be unusual for a tag:
 
Odd.
 
It's right though.
 
4:42 PM
0
Q: Silly Threading and Queue Experiment from Newbie

MikeiLLJust beginning to get the idea of Queue and threading. Would welcome input on this exercise script: from threading import Thread as T from Queue import Queue as Q from random import randint as R import time ''' Silly script exploring simple use of threadding.Thread and Queue.Queue ''' q = Q()...

 
4:52 PM
Wow, IE is having what appears to be a seizure... Just keeps flashing, scrolling funny, images are missing...
@CaptainObvious interesting output style!
 
Yes @rolfl. Keep it.
RLY? YA RLY
 
Are you duck cat typing?
 
This is indeed about code review, if you cared to read correctly. I asked if my architectural approach is correct and if there are alternatives. — robinmitra 6 hours ago
 
In general does it make more sense to "name" the ID of a value in an array, or to let the program assign it an ID?
 
@rolfl Looks like a fun concept
Hmm... I wanted to use 32 tags, until I saw the warning: SE may block you
How am I still a top Java asker?
 
5:20 PM
By... being?
 
@Phrancis Well... yeah
 
^^ lol
2 hours ago, by JaDogg
user image
 
@Phrancis lol
 
5:39 PM
64 no problem:
 
1
Q: Generic Timing Class - Follow Up

timI wrote a class which can time and compare functions. I already posted it here once before, and got great suggestions from @rolfl, which I have added to my code. my original question can be found here (example usages can be found there as well) the formating class I use can be found here As...

 
Hmm, the moment when you figure out the DateTimeFormatterBuilder class has 4500 lines of code
Is there then no way in Java to get the ordering of day, month and year for a Locale...
It must be used somewhere, but I cannot seem to find it yet
@rolfl Do you maybe know the deal of sun.* classes? They are interweaved in the java.* classes, so it cannot be vendor specific, or can it?
 
0
Q: Calculating the last digit of a^b where a and b are very large numbers

QirohchanSo, I have to make a code that calculates the last digit of a^b. Here, a can have upto 1000 digits whereas b can be from 0 to 915*10^15. Now, what I did was, I calculated the last digit of a and raised that single digit number to the power b and that number's last digit will be the answer. Here i...

 
Not sure why there are 4 close requests for broken code - perhaps one of the mods can weigh in here. I feel that while this is not a perfect reproduction of the Google homepage, the OP has submitted code that represents their attempt at building the reproduction. As such, in light of the fact that the OP is learning how to build websites, the OP may not be creating things the right way - this does not however constitute broken code, just bad code (which is why we do Code Reviews, no?) — jsanc623 1 hour ago
 
@skiwi They are vendor specific.
 
5:51 PM
@rolfl How can vendor unspecific java.* classes then rely on vendor-specific sun.* classes?
Or are even java.* classes not interchangable between vendors?
 
In essense, the Java language is defined but the java.* class hierarchy.
That is the 'public' side of things.
Anything needed to make those work, are vendor specific (openJDK IBMJDK, Oracle JDK, etc.).
Once you have things working, you submit your implementation to the Java test team, and they certify that the public side works.
and you get to put the Java logo on it
 
Ah okay
 
@rolfl what is that?
 
So I can make my own one then in one day, one week, one month, one year 10 years?
 
2 hours ago, by rolfl
Interesting site: Recommend you play: http://stared.github.io/tagoverflow/
@skiwi Yes, exactly, and, you can supply your own implementation of ByteBuffer, or nioChannel, etc.
or Socket, etc.
 
5:57 PM
percentage answered is kind of neat to see,
the mug and I are the top askers in C#
 
Lots of drive-by askers, except you guys.
Frankly, I am shocked at how many times the monkey face appears there.
 
-1
Q: Refactoring duplicated method

tawheedI was wondering how I could refactor this duplicate code. The only difference in the methods are a = goToTheStoreForFood(); and a = iLoveToEat(); private CoolObject getSomeFood() { CoolObject a = null try { int i = 0; a = goToTheStoreForFood(); (a.status == 0) { ...

-2
Q: How to compile odata4j library

NestorI used the odata4j library to access a .Net WCF Data Service but it is abandoned and has critical errors. Someone has forked the project and fixed those errors, but the source code cannot be compiled, it misses a lot of other projects (I guess). Can you tell me how can it be compiled? What does ...

 
I just don't understand how people put not working code as reusable, or leave unfixed critical errors... — Nestor 54 secs ago
@rolfl What can we say? Code Review is the place for monkeys who code.
 
Anyone notice the uncanny pretty strong connection between ;-)
 
6:12 PM
This hasn't gotten much attention yet. Hardly any C++ reviewers around, though.
 
0
Q: Lossy packing 32 bit integer to 16 bit

VasakaI am working on the lossy 16 bit representation for 32 bit integers that catches all 32 bit range with precision depending on absolute value. My idea is to store integer lv = sign(x)*ilog2(x) in first bite, and a tail that approximates the error x - 2^ilog2(x) in order to do that I divide possib...

 
@rolfl you ought to write a SEDE to see how much of @Jamal's rep comes from edits ;-)
 
@Phrancis I didn't think anyone was around. :-/
 
No rep for edits past a certain point.
 
New question!
0
Q: Parsing dates from an OCR application

skiwiI wrote this code to parse dates from the output of the OCR, which means that the obtained date can be literally anything, so I put some restrictions in place: Date is the the format of: field1?field2?field3, where the fields are either day, month or year and any delimiter can be used to split ...

I don't think I can beat the JDQ though.
@rolfl Do you feel like getting more familiar with the Java Date and Time API? ;-)
 
6:26 PM
No big deal you're better at it than me! I just like those questions/answers with reallllly bad grammar tag me when you find one ;-)
 
There should be a Jamal badge for edits
 
2
Q: Parsing dates from an OCR application

skiwiI wrote this code to parse dates from the output of the OCR, which means that the obtained date can be literally anything, so I put some restrictions in place: Date is the the format of: field1?field2?field3, where the fields are either day, month or year and any delimiter can be used to split ...

 
Any clue why this gives this error:
> SyntaxError: (unicode error) 'utf-8' codec can't decode byte 0xf6 in position 0:
invalid start byte
All SO posts I've found deal with receiving data from a stream but there's no IO here except for input() calls
 
I thought that said unicorn error at first
 
@JeroenVannevel Nooooooo, Dutch comments!
I'm not sure if you are showing the correct gist there
 
6:37 PM
@skiwi Yeah.. He'll realize this isn't the way to go
It is
I executed it locally and I'm getting that error
 
Ah, just the top input() calls? I was looking for network interaction
Don't know about that :|
 
when I replace it with x = 5 and y = 6, it works just fine
maybe the float parsing..
Right. I never input any data because I'm using Python in VS. So it probably tries to parse an empty string then
 
0
Q: Counting word occurences

EngieOPThis is a simple word count program I wrote to play around and get familiar with using std::map. Is there anything I can improve upon? I didn't use CTRL+Z to stop the program because that suspends the process on Linux. #include <iostream> #include <iomanip> #include <string> #include <map> #in...

 
6:53 PM
monkvening
 
monkernoon
 
1
A: Calculating the last digit of a^b where a and b are very large numbers

outoftimeWrong answer $$ everything^0 = 1 => 0^0 = 1$$ if ( e == 0 && b == 0 ) cout<<"0"<<"\n"; Solution Last digit relay only on last digit and you can not look at digits than goes before last one. As your power is up to \$10^{18}\$ you have to use modular binary power function. Here ...

 
0
Q: Improvements/suggestions for these interfaces?

dmz73I am trying to define some interfaces to implement some web service integration middleware. The SOA pattern that fits this system is probably the Multi-Channel Endpoint http://soapatterns.org/design_patterns/multi_channel_endpoint I expect a lot of mapping of data formats happening in this integ...

1
Q: How to match Pep8 style with long one line for loop

user2421117I'm working with python 2.7.5 and I'm trying to make it match the Pep8 coding style. I have a few one line for loops but the issue is that they are each above 80 characters in length. Is it bad practice for me to make them multiple lines for the sake of Pep8? So should something like this: pat...

0
Q: JavaScript global implicit and explicit usage

gfrobeniusTake the following code... window.thisPage = { MyObject: function() { //private var var x = 1; //private method var inc = function() { x = x+1; }; //public method this.output = function() { return x; };...

 
7:13 PM
hey @janos
 
hey @skiwi
 
( ͡° ͜ʖ ͡°)
3
 
@EngieOP nice :)
 
7:26 PM
you guys are actually starring lenny face? lol
> 11.18.2012 nvr 4get
 
-1
Q: ASP.NET MVC Is it ok to use readonly input fields to persist data between views

Matthew DresserI'm building a multi-screen ajax form in an ASP.NET MVC solution. The first screen displays some user details. If the user clicks 'edit', they are taken to the next screen where they can edit the fields. The call to retrieve the user info is quite slow so I don't want to repeat it for every aj...

 
7:37 PM
Nooo :(
> Tests in error:
testAllLocales(com.yob.dpc2.server.base.parsers.DateParserTest): Date format dd.MM.yy. for locale hr_HR could not be processed
 
monkevening
 
@EngieOP: Big TF2 fan? :-)
 
@Jamal Yup! Who told you!?!?!
lol
Probably the BEST hat simulator ever created. :)
 
(sudden epiphany that one doesn't need an IDE to compile Java)
 
Which reminds me, I still kinda feel like getting that one hot dog hat for Scout, though my Horrific Headsplitter still looks nice.
 
7:47 PM
(sudden disappointment that this PC probably won't allow JDK)
Is there a tag on Meta representing discussions about the "colors" site design? Since CR is going through graduation, perhaps it would be useful to have one, if it doesn't already exist... ? That would perhaps make the designers' life easier if all ideas are gathered under one tag?
 
@Jamal oh, noice :P
The Headsplitter is a good looking hat.
I've mostly been focusing on creating my "Strangie Engie". Strange RR, PDA, wrangler, pistol, etc.
What is your main?
 
3
A: Calculating the last digit of a^b where a and b are very large numbers

outoftimeWrong answer $$ everything^0 = 1 => 0^0 = 1$$ if ( e == 0 && b == 0 ) cout<<"0"<<"\n"; Solution Last digit relay only on last digit and you can not look at digits than goes before last one. As your power is up to \$10^{18}\$ you have to use modular binary power function. Here ...

Added O(1) solution
 
Just saw this gem on hot questions lol
17
Q: How do I drug a population in the most efficient way?

FulliI want a whole city to be on drugs secretly, so they don´t know they are drugged by their government. The city is about 2 billion people and roughly structured like a Makropole from the Warhammer 40k universe. This means: Many levels 4 classes (Lower, higher, worker, and government class) L...

 
@EngieOP Probably Sniper, at the moment. I still use Scout quite often.
 
@EngieOP I'm about to post my review too....
 
7:56 PM
Oh... exception for locale ja_JP_JP_#u-ca-japanese
I don't support Japanese locale at the moment apparantly
 
@janos oh! oops. Sorry did not know .-.
 
Hmm... Is this a Java bug?!
 
Alright. Create a responsive website that uses Sass or Less in combination with Grunt, 2 vanilla JS modules and test it with Grunt (minify, concat) and Bower. So much fun.
 
@janos Are you still going to post? If so, I should probably remove what I wrote.
 
done, posted
 
7:59 PM
Furious debugging ensued.
 
@janos Thank you :)
 
your post adds a new point Jamal and I didn't mention, so it's good
 
Nope, no Java bug :(
Apparently the basic format of japanese dates is: "GGGGGy.MM.dd", where G stands for Era
 
@outoftime look at your answer now ;-)
 
Prepare ur......

code.
 
8:02 PM
Your last code block had not indented properly, ran into that bug last night. If you make a code block right after a list in your post, you have to put a HTML comment <!-- --> in between or it borks the indentation.
 
you could wait longer @EngieOP, there might still be more good answers
 
@Jamal Snoipah is my least played class, aside from Hooovy. Most of the time I play in between classes on a laptop with the trackpad so my aim is terrible. Mini-sentries are my best friend.
 
@Phrancis is that a real message?
 
@Phrancis awesome
 
1
Q: Injecting required functions by synchronous script loading

AmadeusDrZaiusI have a file HintBox.js containing a JS prototype of the same name which requires our internal JS library (call it $lib) in order to work. One way to solve this problem would be to remember to make sure that the lib.js file is included every time in the PHP, but this is easy to mess up, especial...

 
8:08 PM
@Phrancis, I thought is it very clean, but TC don't understand how I get O(1)
Can you help me explain little bit better?
 
8:18 PM
wat
Aha..
> C:\Users\jeroen\node_modules\grunt-contrib-imagemin\node_modules\imagemin\node_m‌​odules\imagemin-gifsicle\node_modules\gifsicle\node_modules\bin-build\node_module‌​s\download\node_modules\decompress\node_modules\decompress-tar\node_modules\.bin
gee how I like those generators
 
@JeroenVannevel do not use windows for developing purposes (:
 
@rolfl I think I did it again...
0
Q: The ja_JP_JP_#u-ca-japanese locale cannot be reparsed by its own pattern using the Java 8 Date and Time API

skiwiI've run across a strange issue when testing some method of mine and I seem to have been able to obtain a concrete example of my issue. I am using the ja_JP_JP_#u-ca-japanese locale not able to parse a date using it's own date pattern defined by the locale. I am wondering whether I am doing som...

I might have broken Java 8.
 
@Malachi the thing about site design tag? If so, yes that's how I intended it
 
@Phrancis the post with the picture about @Jamal already editing the question you are editing?
 
Oh. Yes that was :)
 
8:30 PM
that was real?
hope this isn't ever real,
18
Q: How do I drug a population in the most efficient way?

FulliI want a whole city to be on drugs secretly, so they don´t know they are drugged by their government. The city is about 2 billion people and roughly structured like a Makropole from the Warhammer 40k universe. This means: Many levels 4 classes (Lower, higher, worker, and government class) L...

some people are sick!
 
Not sure if this has been posted before, but I remember something looking familiar: crashworks.org/if_programming_languages_were_vehicles
 
@Malachi It makes sense on that World Building site; I was worried this would have been on Chemistry.SE or something lol.
 
@Phrancis lol IKR
@skiwi LOL just read PHP
ROFLMAO Javascript, it's still a GolfCart
2
 
Pimp. Pimp. Pimp. 5 away from Cap.
3
A: Extensible logging - DatabaseLogger

RubberDuckDatabaseLogMessageFormatter I didn't change the ILogMessageFormatter interface, but the DatabaseLogMessageFormatter implementation ignores the parameters and uses the FormatMessage method to supply the DatabaseLogger with the SQL command string: Okay wow. I don't think that ignoring p...

 
0
Q: C++ Win32 GDI+ Memory and Style

Evan Carslakehttp://pastebin.com/Y8K3Lcn1 On a larger program I have had memory jumping from plus minus 4mbs. Not a lot, but questionable. This is a short version, memory jumps slightly, .1mb. (By that I mean it starts 1mb, then 1.1mb back to 1 etc...) I'm wondering if there is a mistake, is that normal? O...

 
8:45 PM
 
Pimping this other answer, two votes away from Nice answer for the user and Populist for me.
@Malachi D:
 
if I could napalm again, I would
 
> PHP is a hose, you usually plug one end into a car exhaust, and the other you stick in through a window and then you sit in the car and turn the engine on.
3
 
8:55 PM
Incoming gold badge #5, and #6 coming next month.
2
 
There are no interesting questions againe...
 
0
Q: Migrating Data in Mongo

WillI have the follow script to change my data within Mongo DB: db.TRACKING_DATA.find( { 'eventdata' : { $type : 2 } } ).forEach( function (x) { x.eventdata = JSON.parse(x.eventdata); db.TRACKING_DATA.save(x);}); db.TRACKING_DATA.find().forEach( function(doc) { var QueryDate = doc.eve...

 
0
Q: Should we make a tag for site "colors" design?

PhrancisI had a thought that potentially could speed up the design of the official Code Review site design. I think if we made a tag specifically for that, like say official-colors, and used it for any question related to that, it would show the SE site designers that we have put some thought into it, an...

 
9:19 PM
0
Q: Should we make a tag for site "colors" design?

PhrancisI had a thought that potentially could speed up the design of the official Code Review site design. I think if we made a tag specifically for that, like say official-colors, and used it for any question related to that, it would show the SE site designers that we have put some thought into it, an...

 
> C# is a powerful laser rifle strapped to a donkey, when taken off the donkey the laser doesn’t seem to work as well.
2
 
9:41 PM
I do not like that this Emily L person keeps editing "he", "his", etc. into "they", "their" etc.
The English language has no gender neutral, singular pronoun.
 
Uhhh. Yeah. Actually it does.
"They" and "Their"
 
Those are not singular.
 
It's singular honest.
Long time no see @nhgrif. It's good to see ya.
 
They /ðeɪ/ is the third-person plural personal pronoun (subjective case) in Modern English. == Usage == The "singular" they is the use of this pronoun as a gender-neutral singular rather than as a plural pronoun. The correctness of this usage is disputed. The Oxford Dictionaries have an article on the usage, saying that it dates back to the 16th century. The singular pronoun they is even found in formal or official texts. For example, a 2008 amendment to the Canadian Criminal Code contains the following text: if a peace officer has reasonable grounds to believe that, because of their physical...
third-person plural
 
It's singular or plural, depending on context. Sure is more polite that it and its
 
9:44 PM
The article goes on to say that it is used as a singular gender neutral pronoun, but the correctness of this usage is disputed.
 
It's disputed because it's wiki and people suck.
 
It's not disputed because it's wiki and people suck.
 
French is worse: if you don't know the gender, or worse, if you have a group with varied genders, it defaults to masculine. Even if you have 999 women and 1 man, the group is masculine.
 
When I was in middle school I was taught that using "they" as a singular was wrong.
This is 15+ years ago.
 
@outoftime you could go fix the questions that you left code only answers on.
 
9:46 PM
Since when was anything g we were taught in school correct?
 
I'm mostly making a comment about the fact that it's disputed for reasons other than "well it's wiki"
 
I guess "he/she" is more correct, though it's clumsy
 
Besides, EmilyL is one of the best programmers out there reviewing. If she wants to be PC, let her.
 
But... my biggest problem actually as that the fallout of this is bumping quite old posts purely for the sake of stupid political correctness.
Compounded with her assumption that anyone who writes "he" in place of "they" is obviously sexist.
 
@Phrancis I think spanish is like that too isn't it?
 
9:48 PM
Pretty sure it is for most latin-based languages
 
I'm out. @nhgrif, please do not chase off one of our better reviewers over something petty.
 
> German has four third-person nominative singular pronouns: er (grammatically male), sie (grammatically female), es (grammatically neuter) and man (impersonal). Man is frequently used in general statements such as Man darf hier nicht parken (One cannot park here).
 
I'm not chasing anyone off.
I just rolled back her edit to my own post.
I've not touched her edits anywhere else.
 
for @outoftime when he shows up and asks what answer I am talking about....
-1
A: "Utopian Tree" challenge optimization

outoftimeUse preprocessed values. function processData(input) { var parse_fun = function (s) { return parseInt(s, 10); }, heights = function() { var result = [1] for (var i = 1; i <= 60; i++) { if (i & 1) { result...

TTQW
 
But I know that if I changed "teh" to "the" to correct a definite error, but nothing else, such a minor change, that Jamal would be getting on to me for editing extraordinarily minute changes.
The policy here (and throughout SE) has been not to edit for extraordinarily minor fixes.
And I'm not sure I particularly care what the community thinks of me anyway since no one votes for my answers anyway.
 
9:52 PM
I do agree with you @nhgrif that it's a bit annoying to bump old posts just for that, unless she is going to answer it after she is done.
 
The community would have to be actively downvoting my posts for it to care any less about me... so I'm not too concerned about the community's opinion of me.
 
I think you're doing a mighty fine job and you often have brought up genuine concerns about site policy.
It may be more of a matter of exposure, since the languages you review seem to be less common than say, C# or Java or Python. I think the community considers you the de-facto expert in Obj-C and related things. But these don't get exposed in chat as much unless you are here...
 
0
Q: Iterate over items in a set of dicts (Python)

RolfBlyI'm using the following code to initialise 8 I/O-ports (i.e. GPIO pins on a Raspberry Pi). That's 4 x 2 pins, each duo controls a switch, A to D, and each duo consists of a pin for On and a pin for Off. def init_switches(): switch = { 'A': dict(On = 22, Off = 12), 'B': dict(...

 
Hope that makes sense @nhgrif
 
@Phrancis I agreed with this mostly... until... codereview.stackexchange.com/questions/62958/…
That question and answer got almost all of it's upvotes in under 6 hours. How does that question get all of that exposure?
 
9:58 PM
there aren't many of us here in chat that know iOS
 
How is it that I answer basically every Objective-C/Swift/iOS question, and the minutely few questions in these 3 tags that I don't answer are the ones that absolutely explode (relative to the others in these tags) in terms of upvotes?
 
some people probably post to twitter, Google+ and facebook
 

« first day (516 days earlier)      last day (3503 days later) »