« first day (1105 days earlier)      last day (3211 days later) » 
00:00 - 12:0012:00 - 00:00

12:03
This should be asked on code review not SO. codereview.stackexchange.comSylverac 13 secs ago
@Duga Retracted. Good, because it's a lousy comment.
Zak
Zak
@Mast Can we get that pin-starred. It's AWESOME.
@Zak I'm no RO.
And yes, it's awesome. Don't forget to bookmark :P
And, for those with a GitHub account (YOU SHOULD ALL HAVE A GITHUB ACCOUNT), star the repo and all.
@Phrancis I try not to do too many, sometimes I get carried away though. I am trying to get my SQL score up.
"hmm, I have a generic repository. How do I do transactions? seems like a leaky abstraction. I'll google it!"
"Oh let's look at this question on SE.... oh it's by @MatsMug"
Small world
12:11
lol
@DanPantry Small world, big SE network, same difference.
Zak
Zak
12:33
@Mast 20 books on Machine Learning? I'm SOLD ^^
Well, I think this has been an exciting enough day.
Time to take a nap.
Try putting the data into an array and work with it in memory instead. If your code is actually working then you can paste it to Code Review to get critique and optimisation tips — Macro Man 11 secs ago
0
Q: (Min)Heap implementation

Gentian KasaBeing that I needed a min-heap implementation for a project, I implemented one. Now that it's finished I though about having a review for it. I'm interested in all aspects: readability, performance, naming, comments, everything. I'm planning on extending it afterwards with other features like t...

@Malachi Just do like I do and review MySQL posts ;x
@GauravSharma This should show you how it is done. — NathanOliver 58 secs ago
12:47
lol
:D
Hello, world!
Hello, Smarticles101!
Hello @Mast
12:54
¯\ _(ツ)_/¯
¯\(ツ)/¯\
here you are friend
you're missing an arm
haha
flips table
(╯°□°)╯︵ ┻━┻
┬──┬◡ノ(° -°ノ)
what brings you to 2nd?
here is a good answer that isn't well loved yet
1
A: Read numbers until a prime is entered then print non-primes

CaridorcMany good answers are already present but I would like to point out the enumerables are appropriate for this kind of problem, Main is just: StreamOfInputNumbers() .TakeWhile(x => ! isPrime(x)) .ToList() .ForEach(Console.WriteLine); This reads like Given a StreamOfInputNumbers, take...

4
Q: Connect four applet

Smarticles101I am making a connect four type of game in java. I want to make sure that all the code seems nice before I decide to add more stuff... This is what the applet game looks like... Player input: Victory screen: I have three classes: Make4: import java.util.Arrays; import java.awt.*; im...

12:58
:D
That's about when he showed up :P
ahhh... so you connected for connect four ;-)
Dan found his pun mode.
I guess you could say that
I don't find puns, puns find me
13:00
@Mast Found something cool in my graphs.
Was it a pun? @Ebrown
@DanPantry is very punny today.
@DanPantry Get punned
Looks cool, what is it?
13:01
@Mast That pun is ghastly
@Mast It's a graph
@DanPantry Thank you, Captain.
@Mast ^^ Red is change in answers posted, blue is change in questions posted, green is the change in the question answer rate, and teal is the change in the answer accept rate.
17 hours ago, by Mast
DON'T FEED THE TROLLS
@EBrown INteresting, so monday/tuesday are our worst days and wednesdays tend to be the best
gotta get some traction the first couple of days in the week, and then it's all down hill from there
So we get questions on Tuesday and answer them on Friday?
13:03
@DanPantry The puns... there is so many.. its- t͞óo m͎u͆chͣ- n̿̆̒o͕̓̌o̥̚o͡o̶ͩỏ̠͈͓͎oͤ͆͗o̢͍̔o̓ͤơ̷̸̭̳̈́͛͋͜o̬͍̻ͩ̽͌͂͘͝oo̦̜ͬͥ̋o̵̧̯͉͚͓ͤ̅̓͡ǫ̬͛ͣͪ́̀o‌​͢͢o̢̤ͮ̀͋o̰̙o͊͡͠o̧̓ͨô̰͂ͣͩͦͪoó̯̤̄̀̅ͤ͜͢oọ̹̀͌̀ͯͭ̔ó̢̢͇̺̜̩̎̇ͯ̀̃̎ͅo҉҉͇̺̣̼̞̦͚̟̻̏͆̅̐̈͡‌​͍͂ȯ̸̱̮ͥ̆̌̆̊̂͛͌͘͞͡͡ö̮̳̥͙̬́̉ͮ̾ͥͭͧ͗̽ͨö̰̹̠̺͑ͨ̀̅̂͞͞o̡͎̦̭̯͂̕͝o̭͍͚̼̖͙ͮ͋ͮ̓̀͊̄͆́̚͠͠͠o̢ͯ͞‌​ŏ̲̖̲̭͍̖̟̙̤̻̳̯ͥ̀̑͘͟͞o̹ͤͅoo̸̵̴̮̦͈̫͗̔ͪͤ͂͒͂̌͘oo̷̮͖̘̾ͧ͌̌o͙͚ͥͤ͒͗ͨ
@Mast @DanPantry That one is the graph for the averages for each day of the week.
Same colour codes.
@Smarticles101 It begins.
where are you getting these graphs
13:05
@Mast What does?
@Phrancis what is that? did you just get that?
@Malachi Making them.
@Malachi Yeah just got that, silver SQL badge
@EBrown I suspect someone is going to try and make a HNQ-risk calculator based on your graphs.
@Phrancis I am mad at you now.....
13:06
@Mast Go for it. :)
@Phrancis Congratulations on your SQL badge Phrancis!
@EBrown Heck, not me, I'm already swamped with projects.
@Mast thx :)
okay, not really, Congrats @Phrancis.
0
Q: Toy Python multiprocessing sample with two queues

user2201041This is a simplified excerpt from a larger program. It's my first attempt at parallelism, and I'm hoping you could point me at better or more idiomatic ways of handling this problem. The obvious suggestion will be that I should use Pool.map(). However, in the real code I run into this bug, so I...

someone should vote on some of my C# tagged stuff, I have a score of 666 and it bugs me
13:15
F5 solves a lot of problems.
Let me make it 665 for you ..... ;-)
some of those on the profiles don't change right away.
@rolfl I knew I could count on you
0
Q: Toy Python multiprocessing sample with two queues

user2201041This is a simplified excerpt from a larger program. It's my first attempt at parallelism, and I'm hoping you could point me at better or more idiomatic ways of handling this problem. The obvious suggestion will be that I should use Pool.map(). However, in the real code I run into this bug, so I...

Seems hypothetical
I got a +1 on an answer to your SQL Bond questoin today, oddly, @Malachi
13:19
"However, in the real code..." it looks like this is just an example / hypothetical code
@rolfl I think I napalmed that question.
which one?
some of those questions have some really good answers on them, even mine were alright
@Caridorc it's pretty grey, the hypothetical-ness.
@rolfl in fact, I did not vote to close because I was not sure
@rolfl I remember that one...lol
13:23
If the question removed the text: "However, in the real code I run into this bug, ..." I would not have known, @Caridorc .... the code looks like a programming challenge type answer, and real enough to be useful.
@rolfl Ok, so I think we agree on leaving it open as it is
Agreed
13:43
Perhaps this is more suited for codereview.stackexchange.com? — EdChum 55 secs ago
Seems to bee pythonic enough, only the docsting is as long as your code?! As @EdChum has mentioned, questions on already working code improovements belong to Code Review. — linusg 13 secs ago
I'm voting to close this question as off-topic because this question belongs on another site in the Stack Exchange network: Code ReviewRobᵩ 46 secs ago
Corporate phone call presentations are fun /s
13:59
@Duga Not a valid close reason, but he's right that it should be a CR question.
I won't flag it for migration though.
0
Q: Creating two dictionaries to lookup values into an array

RaystafarianIn my attempt to help improve Using Array to store calculations in VBA, I figured a good way to do it would be to create two dictionaries of values to lookup. So this was my attempt at creating two dictionaries from two sheets and then gathering data from a third sheet into an array and looking ...

0
Q: Avoiding creating a loop in unit test

Aki KI have a class which inserts a list of tweets to a database table and also inserts the tweet's key with the associated filter's key to a many-to-many table. I am testing the sole public method of this class: class TweetByFilterDatabaseRepository { private final DatabaseFacade database; ...

Perfect suggested-edit-rejection comment.
@Mast I did
Dat answer on there
> U already split the file and stored the file type in the variable 'end' Therefore all u need to do is to check if the value stored in end is in the suffixes list
U don't say
@Phrancis C edit.
Oh.
I suggested an edit on that, but he overruled it I guess.
Oh well, U tried :)
14:07
Byte fixed it.
0
Q: Akka streams: Bidirectional flow that completes the stage when one side is completed

Rüdiger KlaehnThis is meant to be a bidirectional flow BidiFlow that works exactly as BidiFlow.identity, except that it completes the stage as soon as one of the Flows (in1 -> out1 or in2 -> out2) is completed. This can be useful to automatically close a connection fully when one of the two sides is closed. ...

@CaptainObvious I don't like the word "Facade", not a bad question though
@Phrancis Shouldn't that be Interface instead?
They don't mean quite the same thing
> Facade: an outward appearance that is maintained to conceal a less pleasant or creditable reality.
The facade pattern (or façade pattern) is a software design pattern commonly used with object-oriented programming. The name is by analogy to an architectural facade. A facade is an object that provides a simplified interface to a larger body of code, such as a class library. A facade can: make a software library easier to use, understand and test, since the facade has convenient methods for common tasks; make the library more readable, for the same reason; reduce dependencies of outside code on the inner workings of a library, since most code uses the facade, thus allowing more flexibility in...
14:15
Ahhh, makes sense
it's really "façade" though
no, that's not a misplaced comma
Hard to type a cedilla with English US keyboard :(
Alt+135 ;-)
Oh, right... Alt codes
14:19
uh, so I found out why I can see @Zak's profile picture (and mine).
the infrastructure team have basically removed all restrictions off the firewall
for me
did you bring 'em doughnuts or something?
i made lots of tickets about things being blocked
i guess they got pissed off and decided the best thing to do would be to just unblock everything
so they said "gah, let him through, we'll just log everywhere he goes instead"
14:20
probably
but i was going to reddit and se anyway so
and i'm still one of the most productive people (imo)
which means i'm going to try adn see if I can actually download the DNX packages now...
Progress :-)
So you can finally set-up a real development environment now?
idk about that
dotnet restore and dnu restore dont' seem to be working
yeah.. it's still asking for proxy authentication :s
npm worsk though
so i guess it's just nuget being weird
14:36
TTQW
@Mast Happy weekend!
0
Q: Solutions for optimizing the algorithm?

Skyp89Hear this problem: Write a C/C++ program that reads all the values from the "BAC.TXT" file and determines which are the largest two numbers that are missing from the file using a time-efficient algorithm. This is the code that I wrote and it returned good values for all the input sets I tried: ...

@CaptainObvious Why is that -1?
I think poor title, and also using both C and C++ tags
That's some very strange code formatting...
    while(!in.eof())
    {   in >> data;

        if (data >= 100 && data <= 999)
            a[data] = 1;
    }
Yeah, but it is still reviewable.
14:51
Of course
I'm voting to close this question as off-topic because it seems you want a code review, and those should be posted on codereview.stackexchange.com. — Joachim Pileborg 9 secs ago
since your code is actually working, this looks like a prime candidate to move to codereview.stackexchange.comJeff Puckett II 56 secs ago
possible answer invalidation by Josh Dawson on question by Josh Dawson: codereview.stackexchange.com/posts/128267/revisions
15:07
@Duga it's fine
15:23
@Duga Wow that's some copy-pasta if I've ever seen it... see that @DanPantry ?
@Phrancis looks like the code in work
except it's all in one place, which makes it an upgrade.
Zak
Zak
15:40
Take a wild guess as to when I got my IDE-git integration ^^
13th node eh?
in VBA Rubberducking, 16 hours ago, by Mat's Mug
> Rubberduck.Setup.2.0.1a-pre.exe (5.25MB) - Downloaded 119 times.
Last updated on 2016-04-25
April 25th?
@Zak Looks good :-)
@Phrancis Thanks!
grabs beer, waits for the pizza to finish
Excellent idea, can't wait to be off work and do the same... 5 more hours -_-
0
Q: Arranging Buttons on a Process Enumerating Application

BassieI had the following piece of code for populating a list of currently running processes in an IT Self-Help application : var proclist = ProcessHelper.GetProcList(); var i = 0; var j = 0; foreach (var process in proclist) { if (process.ButtonText == "") continue; var button = new Button...

15:57
So many Internet Explorer :o — Phrancis 16 secs ago
This is not a code review or advice site. — Raedwald 42 secs ago
16:13
0
Q: I need your opinion on my get_float

the_floatteurI have never work with floats and i need your opinion on my function... (sorry for my english, i'm french) https://github.com/Ostefanini/get_float.git

Zak
Zak
@Mat'sMug I actually didn't get it until last Friday (I think).
@CaptainObvious Fast mug.
@CaptainObvious I need your opinion on my title
Zak
Zak
Anyway, TTQW. See you guys tomorrow.
@Zak Have a good weekend!
16:23
0
Q: Database design, am I doing it right?

Travus GonzalezI am designing a database and I am just wondering if I am doing it correctly. I have tables for things like State with all the states in them and then I reference the ID in other tables. But should I just handle this in my UI and then store it as a string or is this the correct way?

1
Q: Simple virtual machine in Rust

KolesnichenkoDSAbout I'm trying to implement a simple virtual machine. Now it supports only three operations: ADD(reg0, reg1, reg2) -> reg0 = reg1 + reg2 LOAD(reg, value) -> reg = value EXIT -> finish process It has 8 registers and no memory (for now). Source code main.rs: use std::process; mod opcodes...

@Zak Have a good weekend!
possible answer invalidation by Aki K on question by Aki K: codereview.stackexchange.com/posts/128287/revisions
possible answer invalidation by Bassie on question by Bassie: codereview.stackexchange.com/posts/128297/revisions
@Duga @Mat'sMug Your call, it's your answer. I think it's harmless.
@Mast I asked for that edit ;-)
@Duga I let it slide.
16:33
@Mat'sMug No to the rollback, yes to the upvote.
@CaptainObvious CREATE and INSERT of relevant tables appear to be added now.
You may have better luck at codereview.stackexchange.comJoel 22 secs ago
So D3 is awesome.
16:48
@Mast ninja'd me
@Joel Since the code doesn't work as intended, SO is the place to be. Not Code Review. At Code Review the code should work as intended to the best of the authors knowledge. That's not the case here. — Mast 1 min ago
@Malachi I see you stalking me on Twitter. ;)
17:18
???
oh yeah
I follow Microsoft....lol and I think I might be following you as well...
Yeah, I think you are. I just followed you.
I got a Twitter, somewhere. I'm probably following a lot of you. But I never have a reason to post something.
I use Twitter to express my beef with Microsoft.
0
Q: Is this the correct way to modularize simple jQuery code?

YPCrumbleI have the following javascript code that I'm trying to modularize using ES6: import $ from 'jquery'; $('.select-element').change(function() { const $this = $(this); const $nextElements = $this.nextall(); const $nextElement = $this.next(); $this.val() === 0 ? $nextElements.addClass...

0
Q: Grab photos from Flickr

ILIASI wrote the following code for a coding challenge I was given and it received the following criticism: it was quite a beginner attempt using Angular. <body> <div id="view" ng-view ></div> <script > angular.module('myapp', ['ngRoute']). config(function ($routeProvider){ $routeProvider...

@EBrown Twitter doesn't allow enough characters for that ;o
I thought they gave up on that
I have no idea.
I haven't kept up on it.
A jump from 160 to 10k? That's odd.
140
Why not try 750 first or something, that's still a lot of characters.
17:33
They're using the limit they already have for DM's.
It means they can reduce code duplication and make it more reusable.
wait they went ahead with 10K-char tweets???
0
Q: A one change boolean value

mattI have the case of repeated very similar logic that is used to check if a boolean value was changed from the initial value and prevent it from changing back, or to summarize multiple boolean return values like: bool SomeMethod() { bool endResult = true; foreach(var obj in objs) { ...

0
Q: Maxflow for baseball elimination game

aurelI have a problem similar to the baseball elimination. Given some teams, the number of wins they have and the number of games they have left between each other I have to find for which team it is still possible to win. I am using the maxFlow algorithm to solve it. First I build a graph without the...

@Mat'sMug Not yet.
http://www.commitstrip.com/en/2016/05/13/recommended-on-the-web/
CommitStrip
“Recommended on the web”
CommitStrip
1463160736
17:51
This might be a better fit on the codereview site. That said, since you're new to C++, did you turn on compiler optimizations? Java got them on by default, but for C++ you usually have to enable them. — Raphael Miedl 8 secs ago
0
Q: Before_action and new methods that can be consolidated

szierHow can I consolidate this code? I run a before_action :find_company to get the @company variable. def find_company @domain = current_user.email.split('@').last @company = Company.find_by_domain(@domain) if @company.blank? @newCompany = Company.new(name: "New Company - #{@d...

18:15
0
Q: Faster/optimised solution for past Google Code Jam

Farbod Salamat-ZadehI'm currently having a go at some past Google Code Jam problems to help me practice my programming skills. One of these problems is Problem A ("Googol String") from Round A APAC Test 2016. Here is the problem for reference (you can find the details via the link): Problem A "0/1 string" ...

This is probably off topic for SO. Have you considered posting it on programmers.stackexchange. — roryap 1 min ago
18:27
Either Elixir has the most arcane way of printing to stdout or my interpreter is FUBAR.
I'm SQL'ing really hardcore right now :D
19:05
possible answer invalidation by goatmeal on question by goatmeal: codereview.stackexchange.com/posts/128225/revisions
@Duga looks good
possible answer invalidation by Corey Petty on question by Corey Petty: codereview.stackexchange.com/posts/128290/revisions
19:24
OMG this SQL code that one dev wrote is beautiful
No need for a single code comment, the code just sings a melodic, clear song
Also, custom SQL types are very cool, I need to learn about them
@Phrancis as melodic as YELLCASE can get
Most of it is not even YELLCASE, only the really important parts
so, at what point did you realize it was your own code? ;-)
It's not that's the weird thing, I'm so used to garbage code that when I saw this I shed a tear
@Phrancis make it your special file
19:48
hello world
@Smarticles101 Monking!
20:00
Ripe zombie; open question with answers, at least one answer having score 0, no answer having score > 0: Changing sales stage
20:18
oooh shiny! I just realized that 10K on SO grants me inline tag editing priv - gosh I was missing that ability on SO!!
@Mat'sMug huh? How does that differ from, I guess, "regular" tag editing?
you don't need to bring up the whole "edit" screen to edit tags
Huh. Do we have this?
damn right we have this!
and at 11K, you have it too
Oh, shit, never noticed that :D
20:27
it's a bit hidden - you need to hover the spot where the next tag would be
@Mat'sMug do you use custom SQL types often?
never did
I've used CLR functions though
but not custom SQL types
They're pretty cool
It lets you pass a table to a stored proc, for example
(take that, MySQL!)
There's been some architecture changes here where you can't just do cowboy updates on certain schemas, you have to use procs
20:30
s/architecture/permission/
Well, they changed the architecture also, it used to be all in DBO but they made Billing and Accounting schemas
oh wow, and that didn't break anything? or the 5M email notifications are stuck on the mail server?
So you'll have a proc like usp_LineItems_Update where it expects a table type that's basically a copy of the create table statement for the table it's meant to update
(except all fields are nullable except the PK)
So you just shove all your rows in a variable of that type, along with the values only in the columns you want to update, and pass that along to the proc
you also have a boolean parameter defaulting to false for each of the columns, you set as few or as many as you want to true and it makes sure to update only that column, but also does some data validation and error handling
It's a thing of beauty I tell you
sounds nice
It's a little more work than cowboy updates, but in the end it prevents a lot of unintended side effects
20:36
somebody forgot a WHERE clause once?
0
Q: k-means clustering algorithm implementation

Daniyal ShahrokhianHere is my personal implementation of the clustering k-means algorithm. from scipy.spatial import distance import numpy as np import random # (x,y) coordinates of a point X = 0 Y = 1 def get_first(k, points): return points[0:k] def cost(cetroids, clusters): cost = 0 for i in rang...

There's also the problem where you update some values in one place, not realizing that some other unrelated thing will now be broken/nonsensical/bad data somewhere else
21:01
If the code is working as expected, and you want feedback on your coding style, you can post a question at codereview.stackexchange.comHåken Lid 24 secs ago
Please note that this looks like example code, which is off-topic on Code Review. If the OP wishes to have their code reviewed, they will have to post their real, working code. — Phrancis 43 secs ago
Of course the vendor has a fire to put out on a Friday 20 minutes before I get off work. ;_;
Enjoy a complimentary Friday Baboon
I think this is more of a question for codereview.stackexchange.com. — Bryan Saxon 50 secs ago
> on how I could refactor this code using either(presenters, decorators or poros)
@WorseDoughnut I've heard of kids seeing a 1.44" floppy and saying "oh cool, you 3D printed the save icon". :-p — ceejayoz 18 hours ago
poros?
@Mat'sMug I think he means a 3.5"
21:29
1.44mb perhaps? :) — Hasan Sahoglu 12 hours ago
yes
1.44" is a USB stick
but that wasn't the point ;-)
anyway, TTQW
No, it wasn't. If that's true, kids are seriously redacted these days.
@Mat'sMug I am a kid born after floppy disks, yet I know what they are! ¯\ _(ツ)_/¯
3M stopped manufacturing them in 2009 IIRC :-)
21:40
@Mat'sMug really!? The only time I really see floppy disks anymore are at thrift stores
And when you save an Excel workbook :-)
let me rephrase... "The only time I see floppy disks anymore in their physical form, is at thrift stores"
1
Q: How would I refactor this code, using Presenters || Decorators || Poros

Damian Simon PeterMy code works perfectly, however, I know my approach isn't best practice practice. I would appreciate the effort of anyone who tries to explain in details on how I could refactor this code using either(presenters, decorators or poros) - I have no deep understanding of either yet. Here is the cod...

22:17
Is NumPy pronounced "Num-Pee" or "Num-Pie"?
I say "Num-Pie" because Py is short for "Pie"thon.
Yeah I didn't realize that when I first saw it so I always said "NumPee" but that makes more sense
22:33
0
Q: Automatic resource allocation for the purpose of resource-dependent task scheduling

JulianHere is what I'm trying to accomplish: Suppose you are trying to control an embedded system with several external hardware resources/components/devices. Naturally, you are concerned with the issue of sharing these resources, locking them. Also, the control flow of the overall program must not be ...

22:43
oh my gosh
@Duga is open-source
that is amazing
quite a lot of stuff is open source around here
Duga, RoboSanta
IIRC r0bot is, too
also there's Cardshifter and Rubberduck
:O oh my gosh I am going to make a se bot
Its name is: "A random pi in a room far away"
:D
puts (self into bed)
Night
@Vogel612 Night
23:05
@Vogel612 Hm?
He used to be, his source has since been changed tremendously
I switched from Ruby to Python
It's easier to use Python in this case too, since someone made an API for StackExchange's chat stuff
Less for me to worry about
0
Q: Can this be optimized?

Pablo Perez import java.io.IOException; import org.jsoup.Jsoup; import org.jsoup.nodes.Document; public class Program { public static void main(String[] args) { String[] words = { "amulet", "annihilate", "clamored", "cumbersome", "gesticulate", "impregnable", "incongruous"...

23:31
0
Q: Largest palindrome product

AJSFrom the project euler challenge series: A palindromic number reads the same both ways. The largest palindrome made from the product of two 2-digit numbers is 9009 = 91 × 99. Find the largest palindrome made from the product of two 3-digit numbers. The brute force method runs in 1.8s per loop on...

23:46
0
Q: How I do a loop for when he finds GAMEOF in memory

Paulo MendesHow I do a loop for when he finds GAMEOF in memory of the process it takes 200 characters before and puts on a string. #include <iostream> #include <iomanip> #include <windows.h> #include <tlhelp32.h> #include <shlwapi.h> #include <shlobj.h> #include <fstream> #define ReadLimit 100*4096 //6 zer...

00:00 - 12:0012:00 - 00:00

« first day (1105 days earlier)      last day (3211 days later) »