« first day (880 days earlier)      last day (3138 days later) » 

4:00 PM
We don't want someone to be more equal.
 
but we don't even know what color her eyes are
we should make a meta-"contest" to get her an avatar
 
Exactly, @Duga needs a cool avatar image
 
@Mat'sMug Considering her profile picture, I'd guess either blue or white.
 
What color are electrons?
 
TTGH see you
 
4:01 PM
@SimonForsberg and she's Swedish, too
 
There was a couple of suggestions for that a while ago, but I'm kinda used to her existing avatar.
 
Actually, IIRC, they are smaller than light and can't ever be seen.
 
0
Q: Shortest path on a maze with keys and doors

FelipeThe locks of the doors present in the maze are of 7 types: A, B, C, D, E, F and G. There are also some copies of keys around the maze, which can be of types a, b, c, d, e, f or g. A key of type a opens a door of type A, a key of type b opens a door of type B etc. Once a door is opened with a key,...

 
well, electron != photon
 
electron < photon
 
4:02 PM
yeah, well, ask on Physics.SE if you ever feel like getting downvoted into oblivion ;-)
2
 
Probably a dupe.
 
I doubt anyone asked that lol
 
I read it in my Physics textbook.
 
Remember though that even if I don't implement any changes to @Duga's answer-invalidating behaviour, I will consider any pull-requests that are made - as long as it is a reasonably clean solution.
 
considers writing some Java
 
4:04 PM
This code isn't actually working:
http://codereview.stackexchange.com/questions/106269/is-there-a-more-efficient-way-to-do-the-magic-square-program-in-python#106269

It always invalidates halfway through.
 
remembers it implies installing Eclipse
 
Java or Groovy
@Mat'sMug or IntelliJ
 
@SimonForsberg damn you know what buttons to press huh
I ♥ JetBrains
 
I wanted to write some Java stuff last night then realised since I only had Android Studio installed I'd need to actually set something else up just to do that outside of Android apps.
 
@Mat'sMug Physics isn't event the worst. That honor belongs to The Workplace.
 
4:07 PM
@SuperBiasedMan Doesn't Android Studio support classic Java-coding as well? I'd think that it would allow non-Android projects too.
 
NetBeans?
 
@Hosch250 No cursing here please. Be nice policy and all that...
 
Zak
@EBrown what does "percent Null" mean?
 
@Zak Deleted.
 
Zak
@EBrown ah, klkl
 
4:08 PM
At least, as best as I can tell.
That didn't show up until Stack Exchange added deleted questions to SEDE.
 
Zak
Programmers has a lot of null answers
 
@EBrown huh they did that?
 
@SimonForsberg Huh?
 
@Hosch250 you said N**B****
4
 
@Mat'sMug Yeah, a few weeks ago.
 
4:09 PM
I don't know that cuss word.
 
@SimonForsberg It might? I kind of presumed based on the name. I know I can create classes but I didn't think I was able to run them without it being an app.
 
Better yet:
Sep 8 at 23:38, by Simon Forsberg
in The Whiteboard, 5 mins ago, by durron597
@SimonForsberg Deleted questions are now available in SEDE
That took way too many edits.
 
Do note the exponential memory usage as explained in my answer to your follow up question at Code Review SE. For a text of length 1000 characters, this will require 167167000 characters when split like this. — holroy 35 secs ago
 
Common wisdom is that you don't delete spam posts, right? You need to flag them so they can be found by moderators.
 
Zak
4:25 PM
@SuperBiasedMan yes
 
Thought so, time for a meta post.
 
Your code is, to be perfectly frank, horrible. You have huge amounts of repetition (immediate sanction from the Redundancy Department of Redundancy), loads of global variables, a pointless class, huge amounts of repetition, ... Once you do get this working, consider visiting Code Review for some feedback. — jonrsharpe 44 secs ago
 
@Duga So many globals shudders
 
"Can you modify a variable before declaring it?" -- wut?
3
 
It makes a garbled sense, they've misunderstood what global means in Python.
 
Zak
4:36 PM
 
4:47 PM
I am telling you how you can improve; get your code reviewed! — jonrsharpe 36 secs ago
2
 
5:28 PM
0
Q: Asynchronously zipping a list of files with Play Iteratees

m-zMy goal is to download a list of files from Amazon S3, compress them to a zip, and serve them to a client within a single pipeline, in the most asynchronous, non-blocking, and memory efficient way possible. There are a few solutions out there for Play that us Enumerator.outputStream to write byte...

 
@Mat'sMug come to SQL room at your convenience please
 
Is @SimonForsberg or @skiwi around? I know you dabble in json and web api stuff. =)
 
@RubberDuck Pong
 
Quack
 
5:32 PM
I'm wondering how you deal with posting data from a third party without the assembly containing the models.
For example, this is my controller action.
// POST: api/Survey
public void Post([FromBody]Survey value)
{
    _repository.CreateSurvey(value);
}
But the consumer won't have the Survey class available to it.
Thoughts?
 
I thought I understood what you meant, but now I understand that I don't
Why would the consumer not have the Survey class?
 
I'm seriously starting to think @Jamal is a bot :p I tried to take his job, edited a question and post a comment, but I didn't finish writing my comment and boom, his comment was there. FGICR
4
 
Because it runs an old version of the framework that can't reference the auto-generated class from the provider.
 
0
Q: Sudoku Puzzle Generator with Javascript

dethstrobeI've made a sudoku generator. It works but it's clearly not very efficient. I'm looking for ways to optimize and speed it up a bit. You can check it out in this fiddle: http://jsfiddle.net/dethstrobe/o763gg9r/1/ The results are printed to the JS console with how many iterations it takes to find ...

0
Q: Java methods incrementDay() and incrementMonth()

user85812For an assignment, I am told to write two methods--incrementDay() and incrementMonth(). I was hoping you guys could tell me if the code/logic is correct? Also, I would like to know if my test is thorough enough? Assignment: incrementDay() This method takes no input and returns nothing....

 
but it's ultimately coming from a json object, isn't it?
 
5:38 PM
@DanLyons as far as my consumer is concerned, yes.
 
@RubberDuck Looks more like an XY problem to me
 
then the consumer just needs to know how to make the json structure correctly
 
Okay... that makes some sense.
@skiwi How so? I've never done this before, so...
 
@SuperBiasedMan - Why is this true:
Welcome to Code Review! Unfortunately, this doesn't appear to be working. Your column check raises an error if sumMatrix != 0 but that's actually always going to be the case there. — SuperBiasedMan 2 hours ago
 
@RubberDuck Though I may also not understand that
 
5:40 PM
Moinking
 
In Area51, we're still marked as a Beta site..
 
Hmm, never mind, @SuperBiasedMan - I was reading the wrong line.... you're right, it does not work.
 
@TopinFrassi Technically we are still a beta site. We refused half-assed graduation.
 
We tried to refuse a half-ass graduation. But we still got one.
 
@Mast "half-assed graduation" is happening whether we like it or not
5
 
5:47 PM
@Mast They gave it to us anyway.
 
@Mast That's not how I understood this : meta.codereview.stackexchange.com/questions/6000/…
 
@Hosch250 Yea, well, we did what we could
 
we opted-out of the beta-testing of the "half-assed graduation"
4
 
@TopinFrassi That's the announcement for our version of this sh*tty half-assed graduation.
 
@Mast sudo half-assed graduate?
 
5:48 PM
The only reason I didn't downvote that is because I can't do anything about it anyway, so I might as well not be a grouch.
 
sudo graduate_site -site="Code Review" -screw_the_cms=true -screw_stackexchange=true
 
@EthanBierlein Yeah, that's what I'm saying. It means we're not a beta site. Even though that darn design + priviledges say otherwise
 
@DanLyons Kind of.
 
Evening
 
I'm thinking about this all wrong perhaps.
 
5:51 PM
@RubberDuck I've added more details for you on #707
 
@Mat'sMug muchos gracias amigo.
I should be defining very specific ways for the controller to act on the repository instead of allowing arbitrary updates.
 
Finally! bing.com/…
 
@Hosch250 Your credit cards didn't have chips yet?
3
 
that doesn't affect me in any way whatsoever yet
 
5:58 PM
No, most US cards have magnetic stripes still.
@EthanBierlein It will in a couple years.
 
some us cards have them, but it's not ubiquitous yet
 
Just don't use credit cards, totally acceptable here.
 
That is the way they were able to pull off the ATM attacks last Christmas (or was the two Christmas's ago?).
 
We use debit cards.
 
Those are way more dangerous.
 
5:59 PM
@TopinFrassi For all the things the US does well, their banking system is perhaps the most asinine thing ever....
 
the mag stripe is tremendously more reliable than that goddamn chip IMO
@rolfl s/banking/health
 
Thief gets debit card, they can drain your bank and you can't get it back. Credit cards can stop the payment.
 
@rolfl Yeah I guess, this is weird
 
@Mat'sMug Yeah, but just about anyone can charge a mag strip.
 
@Hosch250 Actually, I've been "scammed" once with my debit card and I got back all my money just by asking the bank
 
6:00 PM
The US: Sure we can put a man on the moon, or send a cruise missile around the world and through a bedroom window, but we can't tap-and-go at the checkout.
 
@TopinFrassi Not how it works here.
Lunch time, TTYL.
 
I thought a payment made somewhere in Budapest wasn't totally legit, lol
@Hosch250 Darn :/
 
0
Q: Generic dao implementation

morbidCodeI wrote a generic dao and two daoss extending from it. I'm new at this pattern so I'm not sure if I'm doing this correctly. It seems to work fine though. I am using hibernate for database access. Here is my User class: @Entity @Table(name="tbluser") public class User { private long userID; ...

 
@rolfl Or keep healthcare at a low price
 
or have a life expectancy within the top 40 countries
 
6:02 PM
@DanLyons It boggles me how the US expects people to live longer by issuing everyone with guns.
2
 
^^^^^^^ x100
 
@rolfl They don't. Most Americans want to ban guns.
 
if you shoot everyone around you, there's a chance you will live longer
 
@DanLyons and screw the average
 
I do NOT want to ban guns, but I have never touched one, and likely won't either. They cannot legally do this, whatever anyone says.
 
6:03 PM
given the state of our education system, I wonder how many people know what an average is
5
 
For code that works but you want comments/etc. on the codereview.stackexchange.com site is the appropriate place. — Etan Reisner 16 secs ago
 
Can we move some of all that ^^ to the politics room?
 
meh, we're done
 
0
Q: Amount rate limiting with Redis and Lua

XoumAs I'm new to Redis, I would like to get a review / improvement suggestions from Redis / Lua experts on the following problem and the solution I have found so far. Problem The problem to solve is: using StackExchange.Redis (.NET library) and Redis v3, implement a sliding window rate limiting me...

 
6:12 PM
@Mat'sMug "Try to go with the language rather than against it" - answer to sooooo many SO questions
 
Zak
Sometimes I forget how technologically outdated US banking is. Like, you can still pay for stuff by swiping your card and signing a slip of paper. Your cards don't have chips in them. You can't send money from one account to another (even within the same bank) in less than several days.
Whenever I need to send someone money, I log in online, fill in their details, and it lands in their account about 15 seconds later.
 
Woot! Almost 95% best I can tell!
 
@RubberDuck Quack. (Sorry, I forgot to help you. I hope @skiwi managed to help you properly)
 
what's sad is that banking has gone backwards
when I was a kid, I remember IBM ATMs that would give exact change and allow multiple transactions
my current bank's ATM only allows $20 increments and I have to put my card in for each transaction separately
 
@Zak wut!? I move money between accounts all the time... with my phone - there's an app for that!
 
Zak
6:20 PM
@Mat'sMug I know, I can also do it on my phone, but I tend not to need to send people money on the go.
 
@Mat'sMug Swish?
 
Can you avoiding it having to initialize everything (including the .NET framework) when it's run the first time? No. Can we offer suggestions about your code? No, not if it's working. For that, you need Code Review. — Ken White 33 secs ago
 
@SimonForsberg I think I've got it. PATCH helps immensely. strathweb.com/2013/01/…
 
Zak
6:32 PM
@Mat'sMug Last time I checked (which admittedly was not in the recent past), sending money from your bank account to somebody else's bank account takes a few days to actually appear in their account.
 
@Zak In the US sending money via electronic wire transfer takes longer than writing a cheque and doing a mobile deposit.
 
@Zak Here, it depends. If you have an history of transaction with the receiver, the transaction will pass pretty quickly, however if it's a first timer, then you have a delay for verification
 
Zak
@EBrown Yep. It's incredible.
Though, admittedly, not as bad as the IRS
 
@SimonForsberg I hope I've been able to be @RubberDuck's rubberduck
 
Zak
It amuses me that the top post in r/ReviewMyCode is mine, telling people to come here instead.
 
6:37 PM
@Zak In the UK it can happen within a day. Depends on the banks involved.
 
Zak
@itsbruce I think (for most banks, and most types of payments), it goes through "Faster Payments", which takes under a minute.
I know all mine do
anyway, TTGH
AGTB
AS
'night
 
1
Q: Rob Pike's Golang presentation excercise of day 1

fervicFollowing this presentation: http://go.googlecode.com/hg-history/release-branch.r60/doc/GoCourseDay1.pdf At the very end there's an exercise about solving Fibonacci and says that instead of addition, make the operation setteable by a function. I wonder if the following is a good solution? How c...

 
@skiwi I think you were. =;)-
 
in VBA Rubberducking, 15 mins ago, by Duga
I added the German Translation
Seems like @Duga is getting new features every day
 
@skiwi that's Rubberduck ;-)
 
6:46 PM
Nice work, but you need to head over to code review. As a note, you should really learn how to use methods :) — tnw 24 secs ago
 
@Mat'sMug Swish! Or... hmm... maybe that's just a Swedish thing...
 
I'm voting to close this question as off-topic because Stack Overflow is not a code review service. — Sotirios Delimanolis 58 secs ago
 
@skiwi it's a dirty job duck but someone has to do be it.
@skiwi probably the Pull-Request bug. Known issue.
 
@SimonForsberg Oh, right, I forgot about that
 
6:53 PM
@SimonForsberg more than IKEA
 
If performance is important to you then you should consider using a "StringBuilder" class to build up the CSV content. For example see codereview.stackexchange.com/questions/67596/… Building strings of any length in VBA just using & to concatenate is horribly inefficient: every time you add new text the whole string is re-allocated in memory, and doing that thousands of times for a large strings is very slow. — Tim Williams 5 secs ago
 
0
Q: Simple Tic Tac Toe game in Java

Dan NordinI've been learning Java for 4 weeks now twice a week and I wanted to test myself to see what I could do. I'd love to see what you think and how I can make it better. public static void main(String[] args) { Scanner keyboard = new Scanner(System.in); char a1 = ' '; char a2 = ' '; ...

 
IT'S FINALLY DONE
WITH ERRORS, BUT IT'S DONE
ONLY 30 HOURS
2
It's done guys.
I'm finally free.
 
@EBrown with errors? How surprising!!
 
7:08 PM
@Mat'sMug Yes. Not really concerned with that, VS2015 is no long in my start menu and that's good enough for me.
Time to reinstall it.
Then give up on life.
"Setup requires up to 29 GB across all drive"
Wtf.
I checked one box and it went from 19 to 29.
Wewt! Time to install 19GB of crap.
Anyone care to take bets on how long it'll take to reinstall?
 
@EBrown I thought you were already doing the re-install ^^
 
@Mast No, the uninstall took 30 hours.
 
@EBrown 6 hours, at least.
 
@Mast How much rep are you betting?
Is it against SE ToS to use rep for gambling?
 
Probably, but what would they do against it?
 
7:14 PM
Ban all participants?
Unless Jon Skeet, then they would do nothing.
 
Perhaps a 24h time-out
 
@EBrown I don't think casinos accept rep
 
@skiwi No, but we could gamble with it here.
WHY ARE THESE INSTALLS TAKING SO LONG
 
Maybe... there is something wrong with your Windows install?
 
@skiwi That ^^
 
7:15 PM
I'm sure something is probably wrong.
Well, guess this weekend I reinstall windows.
 
http://www.commitstrip.com/en/2015/10/01/early-coders/
CommitStrip - Blog relating the daily life of web agencies developers
Early Coders
CommitStrip
1443726451
5
 
I think Windows is borked.
"Stopping current session" (because I hit cancel) for about five minutes now.
 
@CommitStrip I'm that green hoody guy. But with good-ish skills. Ahah
 
@EBrown If you weren't a C# dev I'd tell you to switch to a different OS
 
@Mast Well I'm getting this ready for my work-from-home day tomorrow.
"Powershell has stopped working" fuu
 
7:20 PM
lol
 
Windows is ef'd.
 
Not Windows 10 by any chance?
 
@Mast Yes, W10.
 
Another reason not to upgrade, great...
Now I'll never get around to it
 
I think this is just me breaking things.
 
7:22 PM
hi
 
Let it go
 
@EBrown your computer needs a dive out of some window
 
Wasn't that Zak's department, crashing Microsoft products (Excel)
 
@Mat'sMug No, it needs me to rebuild it properly.
I need to replace it with a more powerful variant.
Preferably an i5 or i7 rig.
With a not-crap Motherboard.
 
With all the pieces on the ground, you can rebuild it faster than VS uninstalls
 
7:23 PM
@Mat'sMug I could have built 20 in the time it took VS to uninstall...lol
 
30 hours for one uninstall, good grief.
 
Speaking of which....
139
Ask Microsoft

Proposed Q&A site for users, professionals, and enthusiasts of Microsoft products, hardware, and software and those with questions about Microsoft the company and its history.

Currently in definition.

Oh crap, did shutdown /r over RDP and now I cannot get in.
I wonder if my PC didn't just need to do updates.
 
@EBrown lol
 
This is FUBAR'd.
 
My dad is also having issues after Windows 10 upgrade
 
7:28 PM
Well this is concerning only because I have never seen this rig take so long to reboot.
 
@EBrown Tomorrow you won't be working from home.
 
Though he went to a computer shop yesterday just to talk (never gonna let it get repaired there lol) and they say lots of people are having issues after upgrading and after a clean install of W10 they are all fixed
 
And W10 has been on it for months.
@Mast Oh I'll still work from home. I have my laptop.
 
@EBrown You don't need to RDP to the office to do your stuff?
 
And while it's slow as molasses, it still does all the things I need it to for Work-from-Home status.
@Mast Nope.
I only need access to our AS/400 console, and Visual Studio.
And I have VS on my laptop.
Now I'm worried.
Been ~10 minutes and it's still not responding to my RDP requests.
It's responding to PING requests, though.
 
7:34 PM
I made a clean install of W10 and it works pretty good so far
 
This is a clean install.
I really hope this starts responding to my RDP requests soon.
Or at least for the pings to stop, so that I know it's rebooting.
 
Maybe you should ask at codereview.stackexchange.com ? — Jan 39 secs ago
 
Wish I could put my desktop at home back to W7.
 
possible answer invalidation by 200_success on question by user2840467: codereview.stackexchange.com/posts/106252/revisions
 
I like the spirit of CommitStrip, but it's always a bit "off."
 
7:48 PM
Still not responding...fuu.
I wish I could just go back to Windows 7...that was so much nicer.
 
Not always, today's was pretty good.
 
Well things here are less than optimal.
Good time for me to read this book.
 
8:15 PM
It's back up!
Yep, computer just needed a reboot.
I should have done that before uninstalling VS2015.
2
But, you know, hindsight and all.
 
Who starred that ^^ ?! hides...
 
@RubberDuck >.>
My Java SDK install was being ultra slow before the reboot as well.
 
man, I would have smashed that computer to pieces by now
 
@Mat'sMug I have the patience of a saint.
 
I can tell
 
8:21 PM
JDK install sat at 0% for ~3 minutes, then went to 95% in about 5 seconds.
Now it's almost done.
SSD Ftw.
 
YES!! A FLAG!!
2
 
On what?
 
a non-answer
 
Ah.
 
@EBrown So, no 6 hours?
 
8:22 PM
@Mast That was JDK. Haven't started VS yet.
Doing JDK and Android Development Studio first.
 
lol
Do we count this as including?
 
No.
That would be cheating.
 
So it will take forever and hasn't even started yet.
stores popcorn for later
 
I'm voting to close this question as off-topic because it's about refactoring existing code, making it a better fit for Code Review. — the Tin Man 6 secs ago
 
Yeah, I'm worried about how the install will go.
With all my selections, it says 19GB will be used on my SSD.
Starting the install in 10 seconds.
It has begun!
~8% done.
 
8:38 PM
0
Q: New to building API's, using Grape API and need some help cleaning up a very long if/else statement

JayMy incoming message code connects to the Slack API, using the slack-ruby-client gem. This code is handling so many things; what are some ways I can break this apart and make it more readable? module Bot class Start < Grape::API get :start do client = Slack::RealTime::Client.new ...

 
codereview.stackexchange.com would probably be a better site for such question. — Bohuslav Burghardt 30 secs ago
 
Zak
13
Q: How to securely send private keys

JustinWhat is the recommend way and best-practice to send private keys and SSL private keys? I was thinking of zipping up the files, then using gpg: gpg -c thefile.zip The problem then becomes how do you send the passphrase used to encrypt to the other end? Is there a better solution?

 
@EBrown That was quite fast.
 
Zak
There is something very wrong with asking that question in the first place
 
Yea
 
Zak
commitstrip.com/en/2015/10/01/early-coders does it count if I wrote some HTML when I was 12 and nothing else for the proceeding 9 years? ^^
 
0
A: Zoom in/zoom out jQuery plugin

DaggFlexibility Your plugin relies on very specific markup; an element with an ID of fruitZoom having a first and last child element meant to be used as zoom in and zoom out buttons, respectively. This is not flexible enough to be generally useful. What if you want multiple zoom controls on the pag...

 
1
Q: URL Query params builder

jaormy goal is to create a URL query params from std::map<std::string, std::string>. So for ex. we call to_query_params( {{"one","1"},{"two","2"}} ) and we get ?one=1&two=2. Is it a good way to do it? std::string to_query_params(std::map<std::string, std::string> map) { if (map.empty()){ ...

 
9:06 PM
I tried to create a discussion on that commit strip on hackernews. I would have figured more people would comment...
 
0
Q: Separation of concerns in d3.js + AngularJS

hlfrancaI'm making a project to help learning graph theory and I'm having problems in the separation of concerns of the directives which uses d3.js to draw the SVG on the screen. The following directive code handles the svg drawing on the screen(summarized for brevity). angular.module('graphe.directives...

 
9:28 PM
@Mat'sMug You like percussive maintenance too much.
@Zak LOL, I feel like that sometimes, only I know I s***. I didn't write a line until the summer I turned 18 - a few weeks before I graduated from HS.
@Mat'sMug I see you left the cuss word out this time.
 
@Mast It's done.
One installation item failed.
But that is "Emulators for Windows Mobile (10.0.10240)", so I'm not worried of it.
 
I'm voting to close this question as off-topic because it belongs on codereview.stackexchange.comAndreas 8 secs ago
 
9:45 PM
@Duga This should be a meme.
 
1
Q: Dynamic DOM manipulation of iframe

user2708365Is there any way of making this code more DRY, I'm using a html editor to insert code into a website, when you embed media like an iframe element, it deletes the code, it's apparently a bug with TINYMce and grappelli, so as a workaround, I insert non-media content into the HTML editor, like; <di...

1
Q: Implementing a singly linked list, suggestions on how to make it into a multi linked list

luke simmonsI'm really just looking for some advice on my current code. Bonus points if you can help me moving forward, the next step is to turn it into a multi linked list and I'm not totally sure where to begin. As you can see I have a pointer to my student list and data (which just haven't been made yet, ...

 
 
BTW - since you have working code and you are looking for what is essentially a code review, you should post this question at http:.//codereview.stackexchange.com instead of here. — rmaddy 51 secs ago
 
10:25 PM
There is a Code Review forum if that's what you are looking for. — Ron Maupin 29 secs ago
 
@Jamal oh yes. Yes it is.
@Hosch250 I thought it was
 
10:40 PM
0
Q: Implementation of a dynamic list-like array

Daniel MendelI needed to address an issue that I met with quite a bit, which having sort of a bag of data that I can easily add items and remove them, and iterate over them at any point with out an issue. First thing that came to mind was to use a linked list: easy to add, easy to remove, without having blan...

 
11:06 PM
After seeing @Steve's answer, I see I could have written print ['',?S,?N][t=@b<=>@d]; @d+=t, but since this doesn't have to pass a code review... — Cary Swoveland 31 secs ago
 
11:34 PM
1
Q: Printing out a diamond with a user-inputted size

Greg MI made a program that prints out a diamond with n lines. n is equal to whatever the user inputted. I know I overuse the ternary or conditional operator, but in my opinion, it makes the code more compact, and since I am the only one reading my code, readability doesn't matter to me. My friend chal...

 

« first day (880 days earlier)      last day (3138 days later) »