« first day (1068 days earlier)      last day (2954 days later) » 

5:05 PM
I wonder why they named this programming language after an infectious illness...
2
MUMPS (Massachusetts General Hospital Utility Multi-Programming System) or alternatively M, is a general-purpose computer programming language that provides ACID (Atomic, Consistent, Isolated, and Durable) transaction processing. Its differentiating feature is its "built-in" database, enabling high-level access to disk storage using simple symbolic program variables and subscripted arrays, similar to the variables used by most languages to access main memory. The M database is a key-value database engine optimized for high-throughput transaction processing. As such it is in the class of "schema...
 
@Phrancis Because it is used at a hospital?
 
5:23 PM
anyone have any criticism or feedback on my blog overall?
 
@Malachi link?
 
oh hey
My uncle is named Lyle.
And needs new background, other than that is great.
 
Hey, @Malachi quick question. Is there a place where I can download a version of XNA that's compatible with VS2015?
 
@EthanBierlein oh yeah
I did that at home, give me a second and I will add that into the blog as well as post the link here
 
5:26 PM
@EthanBierlein I have a Powershell script that installs it for me.
 
@Malachi Cool, thanks :)
 
it's super easy to do
11
A: How to install XNA in Visual Studio 2015 (Preview)

Lee StottMSXNA Now fully Supports Visual Studio 2015 - XNA 4.0 Refresh (Visual Studio 2015) UPDATED 4th Nov 2015 Recommended Download https://mxa.codeplex.com/releases/view/618279 Now will full support for Visual Studio Extension for Visual Studio 2015. Before install extension: 1.Install DirectX 2.Ins...

 
Thanks!
 
you're welcome
how much XNA dev do you do @EthanBierlein?
 
Very little. I used to have it downloaded, but that was for VS2013, and I lost it when I refreshed my computer a few months ago.
 
5:33 PM
I need to finish my Windows Forms system for XNA.
 
possible answer invalidation by 200_success on question by user15372: codereview.stackexchange.com/posts/14191/revisions
 
@SimonForsberg How hard would it be to have @Duga notify us of code being added to closed questions?
 
XNA seems very interesting. I've always enjoyed doing stuff more from scratch, rather than having to work with the (sometimes) odd API of a game engine.
 
That seems like it would really be a useful feature.
 
Unity3D is nice, but the component-based system feels very strange to me.
 
5:40 PM
@EBrown Would the intention of that be to track where a question was closed because "no code" and afterwards edited to add the code?
 
@Phrancis Yeah, or closed for "broken" and then edited to be fixed.
Granted, those should show up in the review queue's, but I refuse to touch those queue's anymore.
 
lol
 
@Phrancis that should pop into the Reopen queue
2 mins ago, by EBrown
Granted, those should show up in the review queue's, but I refuse to touch those queue's anymore.
lol
@EBrown in these cases I think that the Poster should post a new question, what do you think on the matter?
 
@Malachi No, why would they do that?
That's the purpose of editing it.
 
because broken code is off topic
editing in a fix seems wrong
 
5:46 PM
Yes, and in that case, the question can be edited to be on-topic.
 
that is why asked, it just feels wrong. idk
no concrete anything, I just wanted to know what you thought about it really
 
We should strive to fix questions that are (at the moment) unfit, rather than replace them.
 
Looking at Duga's qscan code it doesn't look like it would be a hugely difficult thing to do
It would mostly be a matter I think of adding a check for whether the question is closed (which I'm sure StackAPI allows) and checking for the addition of <code> [...] </code> HTML tags into the newly edited version
 
@Phrancis At the worst, you could parse the HTML with regex
 
@Hosch250 That's what it already does for AnswerInvalidationCheck
 
5:53 PM
@Pimgd When you get a chance, could you edit this question to bring it up to standards? Thanks.
-1
Q: Advice on how to clean up my java code

Rii933This is a follow up question to this one I finished testing my code's result and started cleaning it up. Could anyone please tell me what I should do or fix to clean up this code more? ps1: I have to put a comment for every instruction line I make ps2: English is not my first language so ma...

 
Shouldn't that be closed instead? Let OP ask a new question if his code works, but this one is answered now.
 
possible answer invalidation by 200_success on question by Mawia HL: codereview.stackexchange.com/posts/36447/revisions
 
6:11 PM
uhh
> A transport-level error has occurred when sending the request to the server. (provider: Named Pipes Provider, error: 0 - No process is on the other end of the pipe.)
They need to stop moving databases from one server to the other, SRSLY
 
@Phrancis What's the fun in that?
 
They should be moving the databases more often.
2
 
aaand I'm back to 1 day consecutive :/
 
:(
 
> visited 774 days, 2 consecutive
wtf? I visted every day too
 
6:25 PM
Every day UTC time?
 
I got 465
 
201 on PPCG.
 
Holy carp
 
But yeah, remember SE time is in UTC
 
This display at 5120x2880 is intense.
 
6:26 PM
@Mat'sMug I have 476.
 
UTC midnight is 4 PM PST if that helps
 
Yep, been here every day, I've even got the tabs pinned on Firefox and it automatically reloads all pinned tabs on boot...
 
@skiwi Huh.
 
@skiwi not sure chat counts
 
I'm not as good as rolfl or 200_success.
 
6:27 PM
@Vogel612 Also got the main site open
 
I'm going on 12 consecutive.
 
@skiwi If you click on the "x days consecutive" it'll show a calendar.
Green days are days you visited
 
Right, I missed it very rarely already before this
Just now first I check again
 
Man, I need to get my motivation back.
@Mat'sMug @Hosch250 Is there a WPF ICommand interface for commands with checkboxes?
 
@EBrown Not very hard I guess. I like the idea. For all closed questions or only those questions that are closed for not containing code?
 
6:32 PM
what's a command with checkboxes?
 
Umm, shouldn't the CanExecute do the trick?
 
@Hosch250 No.
@Mat'sMug Like a toggle.
 
Check whether the checkbox is checked in the CanExecute.
 
@SimonForsberg Closed for no code, or broken, I would bet would be the most useful.
You want me to make an issue?
 
I'm not following. what are you trying to achieve?
 
6:33 PM
Either that, or pass the state of the checkbox to the Execute method as a boolean instead of null.
 
You will need to cast in the handler.
 
@Mat'sMug "Enable Word Wrap"
Et al.
 
@EBrown It's worth a try and then we can see how it goes, I guess. Could you make it a @Duga issue on github?
 
@SimonForsberg Yeah. :)
 
6:34 PM
Thanks
 
@SimonForsberg Is this good?
 
> visited 390 days, 198 consecutive
So if it's the database, it's localized.
I missed 11 days in September because wasn't anywhere close to an internet connection, but otherwise the streak would've been way longer.
 
I don't worry about my streak. I worry about being active whenever possible.
4
 
Seeing if it is OK is a matter of opinion and not what Stack Overflow is for. That is a code review. — Scott Marcus 38 secs ago
 
Well...3k views, one up vote, one down vote: codereview.stackexchange.com/questions/11455/…
 
6:48 PM
Whoops, meant to edit.
@EBrown What's up with the deleted answers?
 
@Hosch250 No idea, I don't see them. (Not 10K.)
 
Jamal deleted two answers that look reasonable, if somewhat superfluous.
 
@Hosch250 code-only
probably with post notices
 
OK.
 
You can ask on codereview SE — Neal 34 secs ago
 
6:55 PM
not that I could verify the post notice part, but they look smack on for that post notice
 
@200_success needs to be closed because it is horrendously broken
 
OK. Could you clean it up anyway? Since your answer has been upvoted, the question is not going away.
 
-1
Q: Cleaning up 3D bin packing

Rii933 This is a follow up question to 3D bin packing in java (compare two codes) I finished testing my code's result and started cleaning it up. Could anyone please tell me what I should do or fix to clean up this code more? I'm required to put a comment for every instruction line I write. Engl...

meehhhhh
 
A lot better.
 
Agreed.
 
7:07 PM
Should I ask the Roslyn team if I can put my code on CR?
They use the Apache 2 license, I think, so I doubt they will let me...
 
@Hosch250 it's your code...
you can relicense it as you please
 
But I had to sign a licensing agreement.
 
Unless you got a contract stating you can't.
 
I don't remember the terms, though, that was a few months back.
 
If you signed something, you should have a copy.
 
7:13 PM
if both sides lose their copy of the contract, is it still valid?
 
That didn't paste good.
It sounds like I'm just licensing it to them royalty-free.
 
a. Copyright License. You grant .NET Foundation, and those who receive the Submission directly or indirectly from .NET Foundation, a perpetual, worldwide, non-exclusive, royalty-free, irrevocable license
there you go
 
OK.
Let's see if it gets merged now.
 
it'd be more difficult to get the reviewed material into there
since that's licensed under CC-BY as per SE TOS
 
Hey :)
 
7:18 PM
Hi.
 
I'm not dead.
 
good
 
Who said you were?
 
Who didn't? :D
 
TIL you can use expressions in INSERT INTO MyTable VALUES (...)
 
7:19 PM
@Phrancis how to copy a table?
 
?
 
jeopardy question, sorry
 
declare @test table(IsTrue bit);
insert into @test values
    (case when 1=1 then 1 else 0 end);
 
@Phrancis Was SQL inspired by VB?
 
@Hosch250 SQL is older than VB methinks
But, either way, no I don't think so
 
7:22 PM
0
Q: Melsort — Sorting with encroaching lists

MorwennFor the nth time already I come back with yet another alien sorting algorithm. Today I will present Melsort, implemented from the description I found in the paper Encroaching Lists as a Measure of Presortedness by Skiena. Melsort Melsort is a two-step algorithm: first it constructs a set of enc...

 
@Phrancis By about 15 years.
Next question: Was VB based on SQL?
 
No, VB was based on BASIC
 
Was SQL based on BASIC?
 
.___.
 
BASIC is older than SQL by about 10 years.
 
> Originally based upon relational algebra and tuple relational calculus, SQL consists of a data definition language, data manipulation language, and a data control language.
 
This conversation is completely normal
2
 
@Phrancis Well, the syntax could be based on BASIC.
Because when I learned relational algebra and relational calc, it looked more like a mathematical equation than a SQL query.
At this rate, I'll reach +100 within a couple years: stackoverflow.com/questions/20449427/…
 
@Hosch250 the syntax does look a bit like basic, except that SQL is not parsed line-by-line
 
@Phrancis More's the pity.
I missed my ;s in VB.NET.
 
7:28 PM
So... anything new around? Did I miss memes? :(
 
@Hosch250 Yeah, for all the complaining some people do about having to use statement terminators in some languages, I do think it makes code more clear, personally
 
@Phrancis I have a brilliant idea.
 
BTW.Meeting
 
I'll write a language that only uses ;, and each statement takes a ; line terminator.
> :+1: LGTM. Will check in when all tests pass.
 
7:49 PM
0
Q: Is this code a good solution for this task?

Markiian Antoniak interface IJuiceable { void MakeJuice(); } interface ISliceable { void MakeSlices(); } class Fruit:IJuiceable,ISliceable { public string Name { get; set; } public void MakeJuice()=>Console.WriteLine($"Juice from {Name}"); public void MakeSlices()=>Console.WriteLine($"...

 
8:00 PM
Ripe zombie; open question with answers, at least one answer having score 0, no answer having score > 0: Uploading .dll files to a local computer
 
Naruto answer, I definitely missed some witty memes :o
 
@Morwenn That was from Winter Bash 2014-2015 :o
 
How long have I been away?
 
@RoboSanta that is a strange answer on there...
 
The more I want to share my new sorting algorithms here, the more I have to remove things before actually being able to share them :x
I like Code Review because I can always put tons of pretty MathJax :D
 
8:15 PM
Hi @YannisP. Thanks for joining us.
 
Cheers
 
The way your question is currently framed
-2
Q: What is the preferred pattern to use for handling the non-default behaviour of a function

Yannis P.I am new to CR, but let me start with a Code Review question that has been revolving in my mind for a few time. Let's say we have a function that checks if a given pattern occurs in a string. The default behaviour is that if the pattern matches, then it returns the pattern. So far so good but w...

is problematic for Code Review.
It seems to be asking about best practices in the general case, rather than about improving your code.
 
right I see what you mean
I wrongly thought this was the place to ask
for general practices
 
We could either make it a better Code Review question, or make it a better Programmers question and migrate it there.
 
0
Q: Reverse a string O(n/2)

Mihaela I use this for reversing a string, but it has O(n) : reverse(y.begin(),y.end()); How can I reverse a string in O(n/2) ?

 
8:18 PM
Let me have a look at the Programmers site it is new to me
I think it can be moved there also because of the reasons why I was asking this question. It seems though that questions are somewhat more advanced than this in Programmers
 
Let me edit it a bit first to tailor it to Programmers.
 
Thanks for your help
!
 
How does Rev 3 look to you?
 
Strictly speaking my question was broader than string-validation but I think the purpose is served
Can I just change the raising Exception to raising Error in the title?
 
8:33 PM
Programmers tends to be picky about having something technical and not hand-wavy, so I suspect that limiting the scope to string validation might help make it not too broad.
Go ahead and edit the title.
 
Good thanks for the advice. As I said the purpose is still served
It gives me a "Post is locked" message
 
It's on Programmers now.
0
Q: Guidelines for returning None vs. raising exceptions for Python string-validating functions

Yannis P.Let's say we have a function that checks if a given pattern occurs in a string. The default behaviour is that if the pattern matches, then it returns the pattern. So far so good but what is the recommended way to handle the case where the pattern doesn't match. There are many alternatives of cour...

 
Sorry I just saw it... Thanks again
 
You're welcome. Have a nice day. Hope to see you on Code Review again sometime.
2
 
Hi, @YannisP..
 
8:39 PM
Hi, welcome to Stack Overflow! As you have working code you want to improve, you may be better off visiting our sister site, Code Review. Be sure to read their help topics, in particular How do I ask a good question? and What topics can I ask about here?. — Wai Ha Lee 56 secs ago
 
@Duga Wow, I wish all the CR referrals were like this one
4
Looks like Code Prettify doesn't have formatting for Unity Script...
 
Eh, it looks that the community is improving overall :)
 
8:55 PM
possible answer invalidation by SANK on question by SANK: codereview.stackexchange.com/posts/124788/revisions
 
0
Q: Project Euler #23 Non-abundant sums

denisI'm having trouble optimizing the Project Euler problem number 23 : A perfect number is a number for which the sum of its proper divisors is exactly equal to the number. For example, the sum of the proper divisors of 28 would be 1 + 2 + 4 + 7 + 14 = 28, which means that 28 is a perfect number...

 
@Duga Rolled back.
 
Duga is still efficient as ever :p
 
Oh yeah
@Morwenn I was curious after reading your question, even though the time complexity being pretty good, the sorting algorithm is still really slow you said... do you know what else might be slowing it?
 
@Phrancis It's creating lists, which means that it has to allocate n nodes, while the most performant sorting algorithms are in-place.
I run my tests with vectors, which have contiguous memory, so it's pretty normal an algorithm that always uses lists would be slower :/
Even when the colleciton is already sorted it still allocates for memory for n list nodes.
 
9:04 PM
So if you use it to sort a list containing n values, does it have to create n lists?
 
Yep, because of the way algorithms work in C++.
Iterators are container-agnostic, so you can't take advantage of the fact that the input iterators are list iterators.
Otherwise, you could probably splice the original list and it could be as efficient as a regular list mergesort. I should try that.
There are numerous examples of algorithms that have an excellent complexity but are not usable for real world applications.
 
That's pretty crazy. While the implementation certainly looks interesting, its usage seems like it would not make sense if it's so much slower than a more common sort
 
0
Q: PHP - Is this a secure way to Logout Users?

ShinyMK<?php //Get Sessions Prepared; session_start(); //If logged in, Logout; if(!empty($_SESSION['username'])) { //Remove Sessions to Logout the user; $params = session_get_cookie_params(); setcookie(session_name(), '', time() - 42000, $params["path"], $params["domain"], ...

 
Well yeah, it's pretty much useless, like every sorting algorithm I have shared here until now x)
 
lmao
 
9:13 PM
Here is a quote about the matrix multiplication algorithms we know with the best complexity:
> However, the constant coefficient hidden by the Big O notation is so large that these algorithms are only worthwhile for matrices that are too large to handle on present-day computers.
 
@Morwenn You've tried a lot of things so far, all interesting.
Will you write something about it sometime? A summary, a one-time blog post, whatever you want to call it.
 
@Mast I had a bit of time since I was unemployed for 8 months.
 
@Morwenn could probably write a scientific paper on sorting algorithms at this point ;)
 
Takes a blooming 20 minutes to run Roslyn tests.
 
@Mast I've got a library and a few questions here, as well as some almost novel algorithms. It's not that bad :p
 
9:15 PM
@Morwenn Yea, but nothing putting it all together.
 
22 of 30 done.
 
@Phrancis Impossible, I don't understand anything to proofs or theory. And I'm not even sure that my benchmarks are accurate.
See? I put everything together x)
 
Well, they're pretty, at least
 
@Phrancis That's huge.
I like that graph, it really helps to actually see the O(n log n) vs. O(n²) algorithms :)
Except for quicksort, which is O(n²) but almost never hits the quadratic behaviour.
 
Just got a phone interview with Ameriprise.
It is only 11 40-hour weeks, though, so I won't be able to get the full 450 hours required.
@Mat'sMug If BAE doesn't claim me by Friday, I'm going to ask them what's up. I can register for the class tomorrow, so I'll take RD if they aren't on the ball about it.
 
9:29 PM
37.5 hours a week here, which above the legal 35h a week, but that means that every once in a while I have accumulated enough 0.5h to take an extra day off work.
 
I wrote a ridiculously long variable name just now... @hasSendSupplyOrdersToVendorSettingEnabled
 
@Hosch250 I need to print that form then?
 
Not just yet, pretty soon.
I know you'll be glad for me to work on it :P
 
9:47 PM
@Mat'sMug to find the newest date in a SQL column, given the option to select top 1 MyDate from Table order by MyDate desc or select max(MyDate) from MyTable which do you usually go for?
 
I usually go with the aggregate, max(date)
it's easier to refactor into a windowing function then
select max(date) over (partition by foo, bar)
 
I need to read up on what a windowing function is... I know about scalar and table-valued functions but not windowing
 
they're aggregates over a portion of your set
say you want to select the year-to-date sales by department, with them you can do it in one pass
 
TTQW - Maybe I get to play with VS a little bit tonight, since it finally got done installing
@Mat'sMug So they return a table, I suppose?
 
uh, what does select max(date) returns?
 
9:51 PM
a date
 
that's all
they're just aggregates
but, partitioned
 
Oh. is max() actually a windowing function?
 
max(foo) over (partition by bar)
 
It's just when you say partitioned, I think a set, not a single value, that's why I thought it would return a table
 
it is a set
it returns a value for each row
there's no group by
A    23
A    42
B    12
B    28
select column1, column2, max(column2) over (partition by column1)
 
9:57 PM
weird
 
A    23    42
A    42    42
B    12    28
B    28    28
now you can easily calculate %contributions, for example (given a sum instead of a max)
 
Ohhhhhhhhhhhhh OK that makes sense now :D
 
Now if you add distinct keyword it becomes just like with a group by at that point?
 
0
Q: Generators in Javascript; Project Euler #2

mburke05I'm trying to learn javascript using project euler and I decided to try to force myself to learn about generators in javascript using problem number 2 which asks us to: Find the sum of the even-valued terms in the fibonacci (f(n)) sequence such that f(n) < 4M , beginning with n=1 is 1, n=2 is 2,...

 
10:04 PM
but, there's no distinct row
unless you had them in the first place
 
Oh. Makes sense
Going home 4realz now :D
 
later!
 
Everytime people review my code I feel like we have somewhat different views of the universe and I have a hard time admitting they're right u______u
 
ewww, they're teaching us tables
 
0
Q: What should I change in this java project to look like an java expert?

fneronI'm really confuse about the interview I did with a firm. They told my code was not expert, but almost intermediate level java. Basically, the problem was to create a scoreboard to print the game status depending on 4 entries (inputs). Please have a look. https://github.com/francoisneron/Scoreb...

 
10:17 PM
Glorious title.
 
goal: to look like an expert
> My code basically implemented two design patterns (factory and command pattern). It is also tightly coupled to respect the open/closed principle.
#Fail
 
Wat o.o
 
I believe they meant "loosely coupled". came out wrong.
much buzzwords, such waaah
 
Hum, at least his code looks clean enough.
 
This type of question may be better received on Code Review SEacbabis 43 secs ago
 
10:35 PM
TTQW
 
TTSS
Time To Sort Stuff
 
@Quill HTML tables?
 
10:51 PM
Yeah...
 
Blech... run!
@DanPantry you use VS for JavaScript right? Is it decent?
 
11:23 PM
 
0
Q: Filter for User then Grab Object out of Array

venturz909I have an angular + socket.io app that sends a message to a specific user when a button is clicked. So I have a repeater of user in users then a ng-click=sendLike(e). Within each user there is a nickname and a socketid. I need to grab the socketid and send it to the server. I have working cod...

 
@Hosch250 OMG nice job! (and insta-star)
 
@Hosch250 Great job!
 
It added a feature and discovered and killed a bug :)
 
11:41 PM
congratulations! very impressive work
 
Thanks. I can work on the VSD PR's now.
 
Whoa, Jeroen is impressed
5
 
I'll try to get that done by the end of the week.
Then, I'm going to help @Mat'sMug get the RD release out.
 
Now you can put Roslyn developer on your CV
 
I did, want to see it?
 
11:43 PM
yes
 
@Phrancis I am. I've been following the PR along -- it's really solid work
 
@JeroenVannevel Thanks to you and @Mat'sMug.
 
@JeroenVannevel Good good
 
They really taught me a lot too.
 
Maybe we should put that on the code quality scale... Works -> Good -> Excellent -> Impresses Jeroen
6
 
11:47 PM
@Hosch250 congrats!
 
@Hosch250 nice :)
 
@Hosch250 You're aware this link here has your entire contact info shared publicly on the internet?
 
I'll kill it now.
There.
 
it's nearly been a year since you started with RD by your resume's standards
 
Yup, last May, I think.
I had just finished the semester.
 
11:51 PM
Awesome!
 
> @Hosch250 this is fantastic. And i think this code would be great to point people at as an example of how to write great, cross-language, features for Roslyn.
 

« first day (1068 days earlier)      last day (2954 days later) »