« first day (790 days earlier)      last day (3230 days later) » 

2:06 PM
What ever convo is.
 
Is being off topic a bad thing if there's no business going on? (just wondering)
 
I'll take that as an answer
 
@Heslacher conversation ..
 
thanks
 
2:07 PM
@Yann thanks :)
 
@Yann basically no, but I think this conversation was out of hand and I'd like to apologise for triggering it
 
Noone can stay sane after that first video with the girl who must not be named
 
@Gemtastic actually this is a meme around here..
 
@Vogel612 I know
But it still drives you mad
 
If you submitted this code to me in a code review, I would immediately reject it for using int as your macro argument name. — Jonathon Reinhart 14 secs ago
 
@EthanBierlein Maybe take a quick look at the formatting on that post.
 
^ that..
 
There we go
I think
 
Come subscribe to the Community Pimp Board.
 
And pimp your post!
 
2:33 PM
If stupidity could walk, I would run a marathon. Just noticed I debugged a formerly renamed method to the max without finding the error ;-) After changing the call, well all tests succeeded.
 
@Heslacher I'd be soooo fit
 
;-)
 
;P
 
I do not think this is a code review site. — Olaf 9 secs ago
 
@Duga False alarm, don't you worry
 
2:50 PM
You are being watched.
 
This would be better on codereview.stackexchange.comLiam 12 secs ago
 
3:01 PM
@Malachi Not anymore :(
 
1
Q: Do I have some kind of security issue in this code?

realy traingExplanation of my code: It first creates a server and waiting to connect. Once the client connects to the server he is getting the line, can you solve this? If he put the correct code his getting output -> good job If not -> The software disconnects. My question is whether there is some sort o...

 
I meant that I am watching
 
3:29 PM
TTQW
 
For me its one more hour. Have a nice weekend @Vogel612
 
3:41 PM
-1
Q: How can I make this php code more secure?

Michael_GI have created a php contact form and have tried to make it relatively secure. I've added a honeypot field that should be left blank, code to ensure all required fields are filled out and code to prevent email injection. I realise there are endless ways to tighten up on security but I am trying t...

 
@CaptainObvious He doesn't close his $body string, technically broken code, right?
And his formatting is non-existent
 
4:10 PM
@Malachi You got the checkmark now.
 
hey again
@Heslacher Here, have a star for it.
 
Thanks
 
I only today realized that the purpose of a LocalDateTime is to store the local date and time
I was surprised when it wasn't compatible with methods also needing the time zone
 
Do you want to come for a walk too ;-) ?
 
Maybe I could also run a marathon
 
4:21 PM
TTQW have a nice weekend.
 
Have a nice one too :)
 
This is not the correct site for code reviews. You need to state a specific problem. There is another code review site you can use: codereview.stackexchange.comrghome 19 secs ago
 
4:42 PM
0
Q: Tic Tac Toe-words FX

LegatoI'm planning on taking on this community challenge. However, before my tics get tactical, I'd appreciate some feedback on he simpler implementation. Factoring in all the logic/edge conditionals was unexpectedly challenging and leaves me wondering if: This is done efficiently? Get the feeling...

Took me all morning. Interestingly enough, apparently, I sort of started this before(Embarking on a journey), forgot about that, heh.

Hello everyone.
 
If you have working code that you think could be improved, see codereview.stackexchange.comjonrsharpe 58 secs ago
 
Greetings
 
2
Q: Tic Tac Toe-words FX

LegatoI'm planning on taking on this community challenge. However, before my tics get tactical, I'd appreciate some feedback on he simpler implementation. Factoring in all the logic/edge conditionals was unexpectedly challenging and leaves me wondering if: This is done efficiently? Get the feeling...

 
5:02 PM
@CaptainObvious Closed.
 
0
Q: Very Ugly Tkinter Calculator

silentphoenixI have been working for about a week on a calculator in Tkinter, and the result is a very ugly, but functional calculator. Is it possible to clean up the code, and make it more readable? from Tkinter import * import tkMessageBox import sys import os import math main = Tk() string = [] x = 'add' ...

 
@CaptainObvious Function arguments, do you know them?
 
5:23 PM
2
Q: The chatbot for The Community Post Pimping Board

SirPythonI recently wrote a chat bot for a chat room here at Code Review. The chatroom is meant to be a place where people can come and pimp a post. That chat bot is meant to handle a list of subscribed people and a list of pimped IDs. People on the subscribed list can pimp posts and will get notified...

 
5:42 PM
Are bad puns allowed as title of a question?
 
I think they are
We all like fun titles
I guess...
 
0
Q: PDO Class to help on writting SELECT statements

Ismael MiguelI made this class just for the fun of it. The idea is to make a SELECT statement really quickly. <?php final class PDO_Select { private $link; private $query = 'SELECT'; function __construct(PDO $link){ $this->link=$link; } static priv...

 
When the Captain shows a message, you almost surelly can expect bad code
 
@IsmaelMiguel He shows them all...
 
Usually, only the bad ones...
 
5:55 PM
It is a question feed, so he does show all of them.
It's just that we have a lot of bad questions posted.
 
And that is what makes me feel bad about my question being there. Even I labelled it as bad code :/
 
@IsmaelMiguel That's why we post it here.
 
It's no problem if the code is bad (as long as it works). As long as the question is good.
Code posted here should be reviewed. The lousier the code, the easier it is to make improvements.
 
But lousier the code, the more you have to review
 
The more reps.
 
5:59 PM
Or you just look at it and run away scared.
 
@IsmaelMiguel As long as the question itself is good, that usually doesn't happen.
And we've seen terrible, terrible code.
 
Have you ever seen an heredoc within a string withing a heredoc?
 
I'm going to write a JS snippet.
I don't know how, though.
 
Need help?
 
Not yet.
 
6:02 PM
If you need, just ask.
Or ping me
 
posted on July 03, 2015 by CommitStrip

Today, Intel is back on CommitStrip! They’re building an interesting platform for the Internet of Things, with their Edison technology and the Curie module, specifically designed for the creators of devices. Visit the Intel Developer Zone for access to Developer Kits and support, and maybe find a solution to work in peace in the open space ;).

 
@Hosch250 JSfiddle?
 
I don't have a thing done yet.
I'm trying to figure out how to run my code every time the page is loaded.
After that, I need to figure out how to edit the HTML file.
Well, actually, I have this: if (window.location.href == "http://codereview.stackexchange.com/") { alert("test successful") }
I need to make that check if it starts with.
 
@Hosch250 if( window.location.href.indexOf("http://codereview.stackexchange.com/")===0 )
There
 
OK.
JS drives me nuts.
3
 
6:15 PM
Welcome to the dark side.
 
@Hosch250 Nice, JS' job is done here!
2
 
Jun 15 at 13:35, by Mast
I hate JS.
 
Oh well, it really isn't that big of a deal.
 
JS isn't bad
At least you can make nice polyglots
 
I was thinking about figuring enough JS out to remove the beta label, but...
 
6:16 PM
And runs in almost every browser
 
Yup.
 
@Hosch250 In that case you can cheat and use jQuery.
 
BTW, your index of thing didn't work.
 
Really?
 
Yup.
Oh, duh.
I didn't put the alert in.
 
6:17 PM
Lol!
I tried it myself and is working here too
If you want to go crazy, you can try this: if( window.location.href.indexOf(/^http:\/\/codereview\.stackexchange\.com\//) )
 
No thank you, I don't want to go crazy.
Yes, it works.
 
Anything else I can help with?
 
Well, how can I run a function every time the page loads across every open tab?
I get this message when I load a tab, if it helps: HTML1300: Navigation occurred.
Do I need to watch for HTML1300 events?
 
If you want a specific code to run everytime you open a new tab, all I can think of is storing a new value in localStorage.
Then you have a code check it every n seconds
 
No, every time I load a page.
 
6:23 PM
Oh
Just dump it all in a <script> tag
 
If it works cross-tab/window, that would be good too.
But, this isn't my webpage.
I want to have a script run every time a page is loaded, and if the page is part of CR, remove the beta label.
 
Then you need to do window.addEventListener('load',function(){ [code] })
If I understand right
 
OK.
 
If 'load'doesn't work, try 'onload' or try document.addEventListener('ready',function(){ [code] }) or document.addEventListener('onready',function(){ [code] })
 
6:48 PM
0
Q: Using another answer's improvement in your own answer

SirPythonHypothetical scenario: Person A writes a review for a question. He writes a improvement X. Person B also writes a review for the question, after person A does. Person B has something to add to improvement X and uses (for example) the new function from the improvement that person A wrote. My sce...

 
@StackExchange I'm sure it's a dupe of something.
@StackExchange @SirPython Answered.
 
7:07 PM
0
Q: Object Depth Manager

Lemony-AndrewI have just finished up making an object Depth Management system that I will be using for drawing and explicitly drawing. Because we all know that the order in which things are drawn heavily effects the way the game will look. My system has a very simple and easy to follow code, and the only pro...

 
Discussion: 81/100 score, 19/20 answers
Almost my first meta tag badge
 
0
Q: Finger painting code

Josue EspinosaI have a very simple view that handles touch events and draws accordingly. It's nothing significant, but it does use a bit more CPU than I would like (35%). Again, it is the bare minimum (<90 lines), but I can't really think of a simpler way to draw using user input. What would you change? impor...

 
For code simplification please see codereview.stackexchange.comTiny Giant 40 secs ago
 
7:23 PM
-1
Q: Rendering nested array in a <ol> with headings

TDsouzaI have an array with the following structure Array ( [0] => Array ( [area] => Area ABC [activity] => Array ( [0] => Activity 1 [1] => Activity 2 ) ) ) I'm trying to ren...

 
This likely belongs on codereview.stackexchange.com as it doesn't necessarily present a problem with code, but rather whether the code works as intended. — Rootix 34 secs ago
 
@CaptainObvious Example code.
 
@Rootix CodeReview is used to improve the quality of your code, not to check if the code works or not. — Ismael Miguel 32 secs ago
 
@Duga @IsmaelMiguel Nice one.
 
@Mast Thanks dude
Just saying the truth
 
7:36 PM
You might have better luck with this question on [codereview.stackexchange.com](codereview.stackexchange.com) — Kristján 16 secs ago
 
0
Q: True random number generator C++

ncomputers.orgQuestions Do these codes generate true random numbers? If not: can you prove their pseudo-randomness? For computers with more than two CPUs #include<chrono> #include<iostream> #include<thread> using namespace std; #define Mili 7 #define Base 7 #define Thrs 2 typedef unsigned char Num;...

 
7:55 PM
0
Q: Guess the randomly generated number game

Jack AylettBeen working on this for the last few days, any improvement ideas? (Notes are very simple, making this for school and notes have to be for complete noobs to python). import random # Allows the computer to generate random numbers, vital for the program to function correctly. import ...

 
Is there a rule against function names which might be considered offensive by some but aren't intended as such?
 
What's the function name?
 
@Mast ermagherd.. this one sounds like a challenge
offensive is subjective
 
Well, I've seen a lot of Brainfuck interpreters lately.
 
but when in doubt, you probably don't want to test it..
 
8:01 PM
So I wrote my own.
 
ermph.. that's a programming language name
and should be treated as such...
 
Yea, but it kind of fucks my input.
(In normal English, it translates input to Brainfuck)
 
I hope that wasn't meant the way I just picked it up.......
 
The function names are fitting, but shouldn't be used in professional setting. Now that shouldn't be a problem, since Brainfuck shouldn't be used in a professional setting either.
3
Ofcourse, I could replace the function names for review, but that would 1) force me to find a still fitting name which isn't the actual name and 2) move it slightly down the line towards example code.
 
when in doubt: move it out
2
 
8:05 PM
Got it. Will sanitize the functionnames before posting.
 
@Rootix - I don't think Code Review would want this question. I don't think it fits their guidelines. — ChrisF ♦ 34 secs ago
 
8:44 PM
@CaptainObvious This isn't even the OP's first question. I'll have to give a warning at this point.
 
Anyone here I can discuss on OO design with?
 
sure, bounce it off off me
 
0
Q: Election vote-counting, result-posting chatbot

UndoIn preparation for the end of Code Review's 2015 election, I've built a simple bot to get the election votes, run OpenSTV on them, and post the result to a chatroom. I'm using this Python implementation of STV and ManishEarth's ChatExchange. The code: import getpass import logging import os imp...

 
wow, that was fast.
 
I don't like how Value implements IExpression like that.
I am writing an answer suggesting he splits them into two separate interfaces, but then that seems wrong too, because theoretically a Boolean or Integer or whatever can be evaluated by itself too.
 
8:59 PM
I actually find that quite the interesting idea I must say.
 
Which, his, or mine?
 
his...
 
I'm really stuck here.
 
what I find more interesting is public Function(string name, IExpression body, params string[] parameters)
anyways what you're proposing is interesting...
to have an expression and a value as separate entities, I mean
but this gives the problem, that for the tree all elements must be of a single interface
 
Yes.
I don't know :(
Maybe I should go marathoning with Heslacher and the rest of them.
 
9:04 PM
I'd not call the 7km "Stuttgartlauf" a marathon... then again it's still muggy and hot at 11 PM...
 
Darn. This is bothering me.
 
hmm... we got nerdsniped.
3
 
Implementing Value from IExpression makes sense, because a value is an expression.
But, a value doesn't need to be evaluated, while an expression does.
So, theoretically, we could abstract another layer - a base to implement both Value and IExpression from.
But then, the only thing in the interface is the evaluate method, so that doesn't make sense either.
 
@Hosch250 but a value will return this, while any other IExpression won't
 
Exactly - Value.Evaluate() == Value.
So, that is what drives me nuts.
 
9:09 PM
@Mast This means losing part of the fun. :(
 
I think he should extract another layer and have everything based on that, and split off that.
Like, he has an IType.
And all the Values are implemented off IType.
And we implement IExpression off IType too, and all the expressions off IExpression.
Maybe name IType ITerm.
Or something.
OK, I'm writing an answer now.
Get your votes ready - both up and down.
 
@maaartinus Yea, one of the reasons I asked. But I suppose it's better this way.
 
9:33 PM
0
Q: Spring MVC application architecture for inventory management

Kushal I am building a Spring MVC application that will track commodities of a courier company. There can be multiple companies managing there inventories using this app. I am thinking of using Spring securities with OAuth2 for login right now, but I also have plans of using Google plus/Faceb...

 
9:47 PM
@Vogel612 I like muggy
 
@Mat'sMug What do you think here?
Write now, I have ITerm<T> and implement the Values and IExpression off that.
But looking through the question more carefully, I think he could fully split Value away from IExpression.
Because a Value is never actually evaluated, but just returns itself.
On the other hand, I could have and empty ITerm interface, but that doesn't sound right either.
 
I have to fiddle a bit with that code first :-)
 
@janos You should ask @Jamal to explain his reasoning:
@janos It's more marginal, since it is asking for a proof of pseudo-randomness. Note that that poster has a problematic track record, and the link is rather spammy. — 200_success ♦ 43 secs ago
 
10:04 PM
Does this look wrong?
    public interface ITerm
    {
    }

    public class Number : ITerm
    {
        public readonly double Value;

        public Number(double value)
        {
            _value = value;
        }

        public override string ToString()
        {
            return Value.ToString();
        }
    }
I'm not sure if I like that empty interface.
Ah, I get it!
That is hideous.
He shouldn't be using Number outright, he should be using ITerm.
 
Wait, why would you want an empty interface?
 
I don't think you do.
I was mixing myself up.
 
If it's empty and doesn't have any methods signatures, it's probably a useless interface.
I think you probably know that. :D
 
It was basically a marker, but I should have used a marker attribute for that, or whatever it is called.
 
Oof. Reflection is difficult.
 
10:12 PM
@EthanBierlein those are called "marker interfaces" and does have their usages some times, although some people tend to over-use them.
2
 
Yep, this was yuck.
I've been properly nerd sniped.
 
@Mast I guess so... But maybe you can invent funny names... though it could get too obvious. Probably too much work and not so much fun.
 
Say I do this:
[SomeAttribute(Property="value")]
class MyClass { }
To access the property Property, I need to use reflection, which is annoying.
I don't get why I couldn't just do this:
MyClass.Property
Any thoughts?
 
Property is not a Property
2
also getting metadata isn't supposed to be easy
 
Oh. Okay.
That is visible proof that I still don't know C#.
 
10:22 PM
add in enough and I'll say okay
 
@EthanBierlein no it's not.
 
@Mat'sMug An experienced C# guru like yourself might say that, but a newbie like me thinks otherwise.
 
I don't consider myself a guru... far from it actually. Have you seen the shit code I actually write?
 
Some of it.
I remember my first C# question. I was using /* */ comments, and fields rather than properties.
 
And I need to get myself a programming-related job. Boss want me to become an overpaid spreadsheet clerk, because centralizing the data and having instant access to anything you ever wanted to know about anything that's ever been going on in that business is not relevant to my position apparently.
I need to refactor that duck, and fast :)
 
10:35 PM
@Mat'sMug You want to code VB6 again?
2
 
hiss VB6 hiss
 
@SimonAndréForsberg rather code VB6 than keypunch numbers in a spreadsheet all day
 
Are you sure about that?
I remember your chat messages from when you worked with that ugly VB6 project
 
@SimonAndréForsberg it's at least less mindnumbing, probably
 
@SimonAndréForsberg not all VB6 code is fugly
 
10:42 PM
also he does have his own rubberduck now
 
I know, I got the SmartIndenter source code
 
that said Simon, are you interested in reviewing my latest java question?
 
11
Q: Translating the Rubberduck - Übersetzen der Gummiente - Part 1: Modelling

Vogel612So I have committed to making a German translation for the guys over at Rubberduck, which is localized via .resx files. Now these files are basically XML-Files with a certain, rather simple document structure: <root> <!-- Snip --> <data name="Resource_Key"> <value>Resource Value</value

that one?
 
yep
 
> I decided on a Presenter-First MVP approach
you lost me on that ^^
 
10:50 PM
8 hours of driving... toast. Monking.
 
Monking @rolfl
 
So, it appears that the general volume of chat has reduced somewhat
 
@rolfl I think people have spread out among different rooms.
 
9 hours ago, by Vogel612
 
@SimonAndréForsberg soo.. you do know about MVP?
 
10:59 PM
@rolfl Is that a bad thing?
 
@Vogel612 I've heard about the patterns, but I don't really know much about them. Here's what I think about them:
Jun 3 '14 at 12:38, by Vogel612
could it be that nobody really knows how MVC works??
I did get a little sense that it was a bit over-engineered, but when using MVP pattern, I guess it easily is.
 
hmm... luckily those two are different things
 
@EthanBierlein No, it is not bad, it is interesting
 
I haven't really learned the difference between all of them.
 
I still don't understand what MVC is, but I think I got MVP down
at least I hope so...
 
11:01 PM
for me, it's more vice-versa. Or, at least... I understand my version of MVC.
 
then again I'm much more interested in an implementation review than a design review..
and the implementation in that question is only the Model class..
 
unfortunately I'm not much of a DOM expert either :)
 
Right, 10-point inspection complete, site is in reasonable shape, bye! Napping
2
 
Is here anyone seriously interested in this challenge?
25
A: Weekend-Challenge Reboot

Mat's MugThe Ultimate Tic-Tac-Toetm Tic-Tac-Toe is boring. Let's code The Ultimate Tic-Tac-Toe, a whole different story. Uh, what? Each turn, you mark one of the small squares. When you get three in a row on a small board, you’ve won that board. To win the game, you need to win three smal...

I'd like to write a bot, but I'm sure I don't want to play myself. :D
 
@maaartinus I've implemented it already. I have created some bots for it, but they suck.
 
11:14 PM
@SimonAndréForsberg Cool, I'm working on it. Maybe we can let such our both together... one day.
 
@maaartinus Want to play over the internet?
 
Any protocol? I guess anything beyond a line containing the indexes is an overkill.
I can't yet. Just finished the internal stuff and a trivial GUI.
 
@maaartinus sure we can. I plan on writing a server for it with a quite easy protocol.
 
Click the link - we can play each other ^^
 
@maaartinus @Hosch250 wants to play with you on a site that already supports multiplayer.
you know... old-style playing. without having a bot make the moves for you.
 
11:16 PM
Unless someone else wants to.
I'll play anybody.
 
I can't play it. I've just tried... it's too confusing. My bot will kill you... when I write one.
 
(And I made a terrible first move.)
 
Is there a way to just watch?
 
@maaartinus unfortunately not.
 
@maaartinus have you tried a game on paper? It's more intriguing that it looks like ;-)
 
11:19 PM
 
I've tried with my stupid GUI playing against myself. My only goal was to finish quickly, but I've got completely lost.
 
This GUI limits you to where you can go.
I should probably polish off my answers to the moderator questions.
I'm tired, though, and I'm lazy, and ....
I'm not sure I want to be mod. I hope I come in 5th.
 
My GUI does allow only valid moves. It's dead ugly, but it works.
 
The best way to learn is through experience...
Apparently @Nobody wants to play with me.
(I'd better not do that if I become mod, unless a super ping is different from a normal ping.)
 
@Hosch250 that's not very encouraging to hear.
@Hosch250 it is different. A super-ping would be @@Nobody
 
11:26 PM
I'm not sure how being a mod will interfere with my almost 4.0 GPA (I've only gotten one non-A, and that was an A-).
@SimonAndréForsberg Want to play ultimate tic-tac-toe?
 
not at the moment, sorry.
I'm too tired so you would probably win :)
 
OK.
 

« first day (790 days earlier)      last day (3230 days later) »