« first day (854 days earlier)      last day (3165 days later) » 

6:00 PM
@IsmaelMiguel Many
Now if it would finish creating the project...
Whoops
I accidentally hit "cancel"
And now Visual Studio has crashed.
 
Why do you use Visual Studio anyway?
 
Uh
Because it's a fully-fledged IDE that supports, and can support a wide array of languages.
And it's free.
 
Notepad++ too
 
That's a text editor.
Not an IDE
 
Still does what I need
I use it as an IDE for Pascal
 
6:05 PM
Really?
You can run Pascal in NP++?
 
Yeah
No
But
 
Then it's not an IDE
 
Let me explain
Notepad++ allows compilation using external linkers (?)
I use the Free Pascal Compiler linker to compile the code for me
It requires a plugin to be decently usable
But other than that, it works fine
 
Zak
Any day where I can not get out of bed until 7pm is a really good day :)
3
 
I envy you (hope I spelled right)
 
Zak
6:12 PM
nearly. just the one "y"
 
Fixed
I slept awfully
 
-1
A: Sudoku Week-End Challenge - Brute-Force Recursive solver

vegajithas this been solved : 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 2 0 3 0 0 0 0 0 4 0 5 0 6 0 0 0 0 0 7 0 8 0 0 0 0 0 0 0 9 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0

Please kill.
 
@Hosch250 Deleted
I clicked on it and it just said "Deleted just now"
 
I had flagged it.
Just 6 more first posts.
 
6:32 PM
Beer and olives
 
Hi
 
Nothing better to solve a headache
Greetings dude
 
I am curious about a Haskell question I asked yesterday
But
 
Anyone have experience with WPF here?
 
I don't do haskel
I don't do WPF
 
6:34 PM
I think I just have to wait. Haskell is less mainstream than many other languages
 
Way less mainstream
But it look cool
 
@EthanBierlein Windows Presentation Foundation?
 
That's because Haskell people never stay sane long enough :P
 
@Caridorc yes
 
@EthanBierlein sorry, I do not know it. (Googled the acronym) :P
@skiwi to learn haskell you must first forget everything you know about other languages
 
6:36 PM
Nevermind, I found my solution.
 
@Caridorc With a CS background it's not completely rocket science, but still difficult
 
@skiwi the error messages look like a code to dechiper
But some cool programs are possible
next n = n + 1
 
I haven't actually coded in Haskell, so I don't know about the error messages
 
numbers = iterate next 0
 
One thing I struggle with is the practical use of Haskell, why would I use it? And also how would I ever maintain the code
 
6:40 PM
infinite stream of integers @skiwi it is just practice
more concise code means less bugs
people say
 
I fail to see how you would apply design patterns on it though, because it's entirely different
 
Advocates of Haskell say that design patterns are workarounds over languages limitations
I am not sure
 
That sounds like engineers saying that construction patterns are workarounds over material limitations :P
Which probably is true after all, but still
 
I am writing a basic math program in haskell right now
 
But could one write an OCR (Optical Character Recognizer) in pure Haskell?
 
6:49 PM
sure, you can do almost anything in almost every language
the question is not what, but how fast / easily
 
@skiwi you could write it in brainf***
With infinite time and memory
 
brainfuck does support the ability to jump to arbitrary points, right?
 
@Vogel612 That's more along of the lines of what I mean
 
because then you could write an assembly-interpreter for brainfuck.
and suddenly you can execute whathever you want in brainfuck :D
 
If you one day after a vacation come back to your codebase and see you don't understand anything anymore, then I'd say the attempt was not succesful
 
6:53 PM
@EthanBierlein I know some.
 
@skiwi Design patterns we're used to are object oriented, but there are probably/will be functional design patterns as well
 
About functional design patterns
 
Classic programmers.SE example, an question that is totally relevant and useful to lots of people, and it gets closed
 
bye people, see you soon
 
@Vogel612 No, it doesn't. You can nest loop for that effect.
 
7:00 PM
@Hosch250 Okay. Could you help me with a little issue?
 
Hold on a sec.
 
I'm going to take a quiz, it should be 10 minutes at most.
 
@EthanBierlein watchagot?
 
Well, I have a button inside a Grid, that looks like this:
<Button HorizontalAlignment="Left"
            VerticalAlignment="Top"
            Background="White"
            BorderThickness="0"
            MouseDown="SaveAll_MouseDown">
        Save All
</Button>
And I have the following code to display a message box when it's clicked:
 
7:04 PM
I'd drop that MouseDown event-handling and use a Command binding instead
 
    /// <summary>
    /// Interaction logic for MainWindow.xaml
    /// </summary>
    public partial class MainWindow : Window
    {
        public MainWindow()
        {
            InitializeComponent();
            ceditr.MouseDown += new MouseButtonEventHandler(this.SaveAll_MouseDown);
        }

        /// <summary>
        /// MouseDown event that will save all currently open files.
        /// </summary>
        private void SaveAll_MouseDown(object sender, MouseButtonEventArgs e)
        {
Except, it doesn't do anything.
There's no message box that pops up.
And I have no clue why.
 
register the Click event instead
 
uh
How do I do that?
(Just started learning WPF)
 
first, remove this line:
ceditr.MouseDown += new MouseButtonEventHandler(this.SaveAll_MouseDown);
<Button HorizontalAlignment="Left"
            VerticalAlignment="Top"
            Background="White"
            BorderThickness="0"
            Click="SaveAll_MouseDown">
        Save All
</Button>
^^ and change MouseDown to Click
the framework does the wiring-up for you
but I warmly recommend you drop that and use commands instead, so that you can implement the logic in the ViewModel rather than in the View's code-behind
all you need is this:
    public class DelegateCommand : ICommand
    {
        private readonly Predicate<object> _canExecute;
        private readonly Action<object> _execute;

        public DelegateCommand(Action<object> execute, Predicate<object> canExecute = null)
        {
            _canExecute = canExecute;
            _execute = execute;
        }

        private bool _canExecuteState;
        public bool CanExecute(object parameter)
        {
            var previousState = _canExecuteState;
            _canExecuteState = _canExecute == null || _canExecute.Invoke(parameter);
(eh, there's a bit more involved)
 
wow..
 
7:13 PM
OK, back.
Absolutely.
 
anyway you just expose an ICommand getter on your ViewModel, and bind it to your button. Say you have public ICommand SaveCommand = new DelegateCommand(this.OnExecuteSaveCommand), then your button can bind Command={Binding SaveCommand} - and then you can implement OnExecuteSaveCommand as a private method in the VM
 
and if you supply a CanExecute predicate, *in theory* (it never works the way it should though) the framework handles the buttons enabled/disabled states for you
 
Here is the RelayCommand class in the model that implements ICommand: github.com/Hosch250/ResxEditor/blob/master/ResxEditor/Model/…
I totally recommend not using the Click event, unless a command doesn't work and you need to fire an event for your VM to handle.
 
7:17 PM
Also I suggest you avoid text literals as Content - wrap that string inside a TextBlock or a Label or something. I usually wrap my buttons' content with a StackPanel so I can add an Image
 
Message boxes are the ugliest things ever.
 
it's easy to make your own though
@Hosch250 ^^
:)
 
Nice.
 
0
Q: Implement Java hasNext() and next() in C++

user4812502Recently came upon this question asked in interview with major tech company. Implement Java's next and hasNext function in your favorite programming language. Here is the solution I came up with. I am not sure whether next() is implemented correctly. Any suggestions: #include <iostream>...

 
just nasty ^^
 
7:19 PM
@EthanBierlein Windows 10, eh?
 
That would totally look better on Windows 8.1.
 
Might be the problem.
 
I figure I'll skip learning WPF and just wait for The Next Big Thing™
 
The biggest issue is the window ratio, though.
Make it wider than it is tall.
And center the text.
 
7:20 PM
don't center the text
 
@RubberDuck It is already here - universal apps.
 
^^ XAML
 
They are extremely similar to WPF.
 
14 secs ago, by Mat's Mug
^^ XAML
@Hosch250 you've been forked
 
Interesting.
 
7:22 PM
I thought WPF used XAML???
 
@EthanBierlein If you are interested in working on something, feel free to create a UI to show and allow the user to edit the comments too.
 
It does.
I think.
 
lol
WPF invented XAML
 
right
duh
 
Okay. Now I'm cOnfUsEd.
 
7:23 PM
XAML is the markup
 
So, universal apps use XAML, but not WPF?
 
WPF totally uses XAML
 
@RubberDuck XAML is the for the View.
 
hi
 
And no, they don't use WPF quite.
 
7:24 PM
hi!
 
It is almost identical, but (at least on Windows 8.1) there is only a subset of the features available.
 
@Hosch250 do universal apps run on the CLR?
 
Like, Windows 8.1 apps didn't allow the TreeView.
@Mat'sMug I don't know.
 
I read somewhere Win8.1 apps had their own runtime
 
I haven't checked what they have on Windows 10.
 
7:25 PM
hrmph. can somebody other than me be the party-pooper please?
 
@Mat'sMug They did, the Windows RunTime (Windows RT).
 
I've just checked back the transcript...
 
poop
 
and in the last 90 or so minutes, there were something like 300 messages...
 
That is not to be confused with Windows RT that only allows apps written for the Windows RT framework.
 
7:26 PM
from what I saw, none were about site-business..
 
it's quiet today. any site business to handle?
 
1 hour ago, by Hosch250
-1
A: Sudoku Week-End Challenge - Brute-Force Recursive solver

vegajithas this been solved : 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 2 0 3 0 0 0 0 0 4 0 5 0 6 0 0 0 0 0 7 0 8 0 0 0 0 0 0 0 9 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0

 
no, but it makes me miss site-business when it happens.
 
@Vogel612 I thought we were allowed to talk about other things as long as there wasn't site business happening.
 
I'm leaving now, BBL.
 
7:27 PM
because it's buried under tons of "irrelevant" other stuff
 
Not wanting to start a war, but do we want to have a chatroom where people are talking or a chatroom where bots are talking?
 
both.
 
@Duga Be happy, you are included :)
5
 
I just feel that the noise is still just a little too high
 
0
Q: LRU Cache in ECMAScript

s1lv3rPlease find my implementation of a LRU Cache in ECMAScript attached. I wrote it for a CodeWars challenge while trying to learn ECMAScript and would really like to have some advice on how it could be improved. What I don't like about this code myself, but am unsure on how to improve: I didn't y...

 
7:28 PM
@Vogel612 s/signal/noise
 
whoops.
 
@CaptainObvious does this not need a language tag?
 
Heh, that constant time evaluation question turned out really interesting
 
@Mat'sMug javascript
 
who calls JavaScript, ECMAScript anyway?
 
7:29 PM
Old timers.
 
@Hosch250 No, WinRT
Windows RT is outdated
 
And just my two cents, at least we're talking code.
 
WinRT is newer but gets replaced now with CoreCLR
 
@Mat'sMug better not mess with such people
 
lol
 
7:29 PM
they can be scary
 
@Mat'sMug People who are eager to use ES6 ;)
 
watch your edit get rolled back, and a tag be created
 
@RubberDuck also true, but I hate to have to sift through pages of transcript for things that are interesting to me as (self-titled) CR core user
 
> And so the great edit wars of 2015 began.
 
I'm definitely interested in some of these discussions, I just find it problematic to have them in here
 
7:31 PM
wait, @Vogel612 there is an ES6 tag:
 
That's true @Vogel612. I sometimes don't bother when the chat log is that long myself.
 
@Mat'sMug yea that's the new standard.. it's not 100% implemented in all browsers AFAIK
 
I don't make it a personal goal to read everything that's in the chat log ;)
5
I have done that in the past, but it's really not working anymore when there's thousands of messages
For small rooms however you want to do that to keep up with the room
 
@skiwi neither do I, but I still like to get the general gist of what happened on the site on a day..
 
Meh, if some worthwhile drama occurred it gets brought up again every few days anyway
 
7:33 PM
For this room I've come to the point where I don't care about what's been discussed when I was away, I just try to follow what's being said when I'm present
 
I count on the drama re-runs
 
... Is it time to create a different room where the question feeds and site business goes? I don't see us ever really getting this room "on topic" again.
 
@JeroenVannevel drama reruns are not constructive detrimental and as RO I'd like to appropriately kick users for such misdemeanor
 
I do see that people luckily still have stars and use them
 
I thought the consensus was that "almost anything goes unless there's site-business going on"
4
 
7:34 PM
Makes two of us @skiwi, but if it bothers people, we should work on a solution.
 
@Mat'sMug the consensus back then... I kinda challenge that in a way
 
@Vogel612 Why are you taking away the joy in my life
 
because I am evil @JeroenVannevel
@RubberDuck I'm getting to the same point and I really dislike that
 
so.. I need to star the Nth Monitor now?
 
I understand, but given the number of users who frequent the room, maybe expecting to read everything is a bit much?
 
7:36 PM
@RubberDuck not if we take almost everything into the Nth
 
@Vogel612 I'm tempted to star that, but then I'd feel evil
 
@skiwi me too!!
 
@skiwi you're not an RO, you cannot star that without my consent anyways :D
dammit
 
@Vogel612 I'm a mod, I can ;p
 
where is BigBrother when you need him ??
 
7:37 PM
@Mat'sMug yeah. You're right. That's true, but the Nth Monitor isn't home.
This is home.
5
 
^^ that
 
@Vogel612 I think BigBrother was suspended.
 
@RubberDuck but I begin to feel that way less and less, because I often have no clue what goes / went on
@EthanBierlein was more of a joke..
 
@EthanBierlein he was
by TBTB
 
and you suckers fell for it. =P
4
Valid @Vogel612. I hear you. I do.
 
7:40 PM
then again you guys are also right... removing too much noise is also making this place less of a home
 
@Vogel612 for the record, I did have a little voice in my head that said "maybe this is going to belong elsewhere" before I started the WPF talk
but the little red mug with horns on my left shoulder said "dude, it's fine, nobody's talking anyway"
 
@Mat'sMug This?
 
lol, almost exactly
 
@Mat'sMug Hey, that same voice talked to me too! He was saying that it maybe does not belong here, but that I shouldn't be bothered by it either and that others may find it interesting
 
@EthanBierlein just... how does one drink from that mug?
 
7:44 PM
@Mat'sMug Flip it upside down.
 
:23908024 how does one ever place that mug on a table?
 
@skiwi The horns and the tail support it when it's upside down.
 
until you break the tail's tip
 
Still not as cool as my imaginary CR mug.
4
 
^^
 
7:46 PM
0
Q: UPenn Skips in JS

boatSoapThe question UPenn Homework 3: skips function and it's associated answers inspired me to write a solution in Javascript. I used the opportunity to (finally) better understand high order array functions. If you would be so kind to critique: Code Layout, specifically if nesting function skips() m...

 
....another huh
 
Must. Resist. .
 
It's the best thing ever! Imaginary logo, imaginary site colors, the whole thing is just in my head.
 
I have enough stars left anyway. - Said nobody ever
 
Yeah @Mat'sMug. I'm on a roll.
 
7:46 PM
@RubberDuck ... do I hear some dissatisfaction and cynicism there?
 
Lol @skiwi.
...maybe @Vogel612. I'm not particularly happy with SE.
 
neither am I.. nothing more to do than complain though..
 
Agreed
 
And that's all it was. I apologize.
Seriously though, I've considered getting some made, but I don't want to break any trademarks.
 
@RubberDuck ain't that expensive?
aside from trademark violations?
 
7:50 PM
t-shirts would be less expensive, but not as cool.
 
I could get a Rubberduck mug done at the pharmacy for $10 or so
 
Monking! I need some more test cases for my code. I modified my code and now it handles all the cases given by Tom Leek properly. But I don't wanna count my chickens before they're hatched. :-)
 
While we're at mugs... anybody got mail for the 10m swag?
 
@Vogel612 I got the form and filled it up, it said expect shipment in mid-October
 
You had a form already?!
 
7:53 PM
@ambigram_maker so you want to post a follow-up question?
 
That's just typical Canadian privilege
 
@Mat'sMug but that's for the #SOReadyToHelp stuff, right?
 
yes, I was in the week one drawing
 
@Mat'sMug Yep BTW, I've decided to ditch the ulp approach. I took the ratio approach.
 
I am talking about the "share your story thing". but seems you also haven't got anything
 
7:54 PM
@Vogel612 oh that. right, it was supposed to end 09/04
I guess we'll hear about it soon
 
everybody already seen this?
25
Q: Give Graduated sites waiting on a custom design something to set themselves apart from Beta sites

CatijaI'm really excited that Beta sites waiting on site design are finally getting many of the graduation privileges without having to wait for a fully custom design. For simplicity, I'll be referring to the graduated sites without custom site designs as "interim" sites. If someone else has a better t...

 
I have
 
@ambigram_maker follow up questions are fine. It's best practice to say what you change & what you didn't and why. Also, it's nice to link back to the original.
 
@ambigram_maker if you've modified your code enough to warrant it, see this:
19
Q: How to post a follow-up question?

Simon ForsbergSometimes I stumble upon follow-up questions, where code is being posted again after having gone through a review (or two). Examples of possible sets of follow up questions: Find missing numbers - Find even more missing numbers - Even more missing numbers Binary search tree - Another binary s...

 
Beat me to it.
 
8:01 PM
@Mat'sMug Well, thanks. I believe I have handled all the corner cases i.e. infinity, nan and zero. So... its must be foolproof right?
What happened? I'm getting a 403.
 
hmm remove the s in https
@Vogel612
Sept 5: wheres my email to fill out the form and get my SWAG? — Ben Knoble 2 hours ago
 
stupid visual studio
 
they'll just magically find out the address
 
@Mat'sMug Okay... I don't know how, but it worked. ;-)
 
@Vogel612 I got +11/-3 on mine
 
8:04 PM
+5/-2
 
I wonder if nhgrif got the badge for hitting +100
 
8:15 PM
This the best thing I ever watched http://t.co/dmZn5rLqPf
^^ watch the video, it's ...funny
RT'd by our very own @JeroenVannevel :)
 
I'm convinced that 200 is just everywhere at all times.
What does hot air have to do with it? I would have guessed blue for heaven and red for hell. — 200_success 4 hours ago
 
I got dat good stuff on my tweeter babe
 
@RubberDuck except this answer has +7:
> Heat rises, heat is represented by red. So to represent the string to raise the curtain, make that string red. Blue being cold, being the opposite of the rising heat, will represent the string that lowers the curtain.
well, it does mention black/white first though
 
8:31 PM
Eh. I just think it's funny some of the places I find him.
Just seems like every time I turn around, there he is.
 
I'm suddenly reminded of an internet horror legend.
 
@Mat'sMug So scripted...
But hey, whatever makes you laugh :-)
Smile, it's weekend!
 
Hmm... Missed it...
 
I could be evil...
 
Could be?
 
8:41 PM
and get the messages from history
 
@EthanBierlein Only horror coming to mind is Ctulhu, and that's not necessarily internet-only.
Lovecraft started it.
 
@Mast Oh, I was thinking slender-man.
 
@Vogel612 I could be evil.... and purge message history ;-)
 
grr... mod beats RO...
in Java><> on Stack Overflow Chat, Jul 17 at 13:39, by wonderb0lt
Help Help I'm being repressed
 
@Mast and Metallica made it better. The Call of Ktulu
 
8:59 PM
Gotta love autocorrect...
"software sciencefiction"
 
0
A: Functions and a GUI for entropy-related calculations

jonrsharpeYou ask about docstrings, so you should be aware that there is a PEP for those, too. In particular, note that: Multi-line docstrings consist of a summary line just like a one-line docstring, followed by a blank line, followed by a more elaborate description. The style guide specifies that d...

 
ummm... Who is @RoboSanta?
 
a bot that fishes up old unvoted answers
 
narutos to be exact...
accepted 0-score
 
Gotcha. Didn't know that (obviously)
 
9:15 PM
What's the appropriate thing to do with self-deleted questions which are heavily rewritten: revive the old question or post a new one?
 
An old answer revived and gifted me 30 rep, what a lucky day: codereview.stackexchange.com/questions/85879/…
 
@mast??? Link maybe?
Man... This entire beta site is like one big explanation on why I hate the GPL. opensource.stackexchange.com
 
Thanks RoboSanta
3
 
@RubberDuck Just soliciting for general advise.
I recently posted a question which was unclear, so I deleted it till I had the time to clean it up.
Which is now.
 
@Mast editing+undeleting a deleted question will bump it up to the front page
 
9:24 PM
@Mat'sMug I can't edit it while it's deleted, so it will be undeleting+editing.
But is that the preferred way or is making a new question preferred?
 
right
depends if you prefer having a deleted question in your recent history
 
@Mat'sMug That will melt away after a month or so IIRC.
There isn't some best-practice to follow in such a situation?
 
not really
 
Do you happen to have a personal preference or have you never deleted your own question?
 
I've deleted some... when there was a bug I found after posting
if the post is radically different you can ask a new question I guess
 
9:34 PM
Same topic, same code, the rest is different.
 
Ugh, I hate how Unity3D refers to C# files a "scripts"
 
@RubberDuck
> There aren’t any open pull requests.
 
@EthanBierlein It refers to JS, C# and Boo by the same category. That must have caused it I think.
New post, new chances.
0
Q: Hello, Brainfuck

MastIt has been bugging me for a while that while I understand how the basics of Brainfuck works, I can't get a firm grasp on the advanced features of the language. So I started to re-evaluate what I know about the language from the ground up. Brainfuck's memory consists of a tape of cells. Every ce...

@SimonForsberg As promised, I'd poke you when the new version was up.
I think this is much more clearly written.
 
0
Q: Would it make sense to test for HTTP 5xx error after catching IOException in HttpClient.execute()?

DiyarbakirI am working on an existing REST API. I am confused about some code that I didn't write and nobody at work could explain to me why we have this specific test for HTTP 5xx errors laid out below. Would it make sense to test for HTTP 5xx errors after calling Apache HttpClient.execute() while catchin...

1
Q: Hello, Brainfuck

MastIt has been bugging me for a while that while I understand how the basics of Brainfuck works, I can't get a firm grasp on the advanced features of the language. So I started to re-evaluate what I know about the language from the ground up. Brainfuck's memory consists of a tape of cells. Every ce...

 
9:58 PM
A Brainf*** post: I can't get a firm grasp on the advanced features of the language exactly, which advanced features does Brainf*** have?
 
The Ctrl-A -> Ctrrl-X one.
And on that note, TTGAWAM
 
0
Q: BrainTuring Printer Generator

CaridorcGiven a text, this program will output a Brain*** (called BrainTuring in the title and in the question body to avoid swear words, that when executed will print the text back. Writing Brainfuck in this style to print a sentence is pretty straightforward. Iterate over the sentence and do the fo...

 
10:28 PM
13
Q: How to speak Brainfuck: for beginners

MastThe following code transforms multi-line input into the the Brainfuck equivalent. One line turns into one program. The resulting programs are split by newlines for readability. Brainf.cpp #include "Brainf.hpp" int main() { std::vector<std::string> userInput; std::string currentLine = "...

You were talking about a generator. Feel free to borrow from my C++ one.
It doesn't have advanced features, it's advancement is the lack of such features.
 
Zak
how often does Robo-santa post?
 
Not often.
Once every day perhaps? Every 12h?
 
Btw, I believe this should be on the code review stack exchange website, not on stack overflow — dietbacon 9 secs ago
 
Zak
what was the WPF discussion earlier?
just skimming the day's chat logs and it seems to have caued some controversy
 
It was me asking about some issue I had.
Which then evolved into a conversation about where XAML came from.
 
Zak
10:40 PM
ah, klkl
 
Please note, if you post this to Code Review, your title should only describe the purpose of your code. — Ethan Bierlein just now
 
@Duga There is so much wrong with that code.
But yea, it could work here.
 
10:58 PM
Of-course, that doesn't stop me from writing an answer ^^
0
A: Is there a simpler, better, alternative way of coding this quadratic equation solver? [Python]

MastThis is in no way a full answer, but I couldn't keep it to myself either. print can handle newlines, so you don't need repeated print statements. This: print(" Quadratic Equation Solver 1") print("") print(" X = (-b +/- sqrtb^2 + sqrt4ac)/div/2a ") print("") print(" Quadratic equati...

 

« first day (854 days earlier)      last day (3165 days later) »