« first day (1103 days earlier)      last day (3210 days later) » 

00:00
RELOAD! There are 2275 unanswered questions (93.3177% answered)
Wow the syntax for enums is clunky, at least for right now I think
Using them, that is, not writing them
what do you mean?
public class TickTockClock {

    private ClockState clockState = new ClockState();

    synchronized void tick(boolean running) {
        if(!running) {  //stop the clock
            clockState.state = ClockState.State.TICK.getState();
        }
    }
}
Look at the statement in the if block
@CaptainObvious Hmm… Both posts triggered an excessive length alert.
wow, damn that's a lot of code
00:06
@Phrancis Are you using an enum? I don't think I've ever seen one used that way.
Tuple<int, int> rightUpDiagonal = new Tuple<int, int>(CurrentPosition.Item1 + n, CurrentPosition.Item2 + n);
Tuple<int, int> leftUpDiagonal = new Tuple<int, int>(CurrentPosition.Item1 + n, CurrentPosition.Item2 - n);
Tuple<int, int> rightDownDiagonal = new Tuple<int, int>(CurrentPosition.Item1 - n, CurrentPosition.Item2 + n);
Tuple<int, int> leftDownDiagonal = new Tuple<int, int>(CurrentPosition.Item1 - n, CurrentPosition.Item2 - n);
List<Tuple<int, int>> startingMoves = new List<Tuple<int, int>>
wat
@SirPython Well, I'm certainly trying, and above works but it's quite verbose
What does your ClockState look like?
class ClockState {

    String state;

    enum State {
        TICK("Tick"),
        TOCK("Tock");

        private String state;

        State() { }

        State(String state) {
            this.state = state;
        }

        public String getState() {
            return state;
        }
    }
}
Pretty simple as you can see
I don't think you need the empty constructor; you aren't ever using it.
00:12
Good observation
I'll just keep going and see how far I get
endl can be a brutal time waster, but you also have a lot of file open and close in there. Might want to just hold that file open. Other than that, codereview.stackexchange.com might be your friend, but first read codereview.stackexchange.com/tour to make sure your question fits their rules. — user4581301 40 secs ago
Just working from some exercises, and the example in the book had String state = "Tick" and I thought no way that's ugly
00:25
possible answer invalidation by Jamal on question by billynoah: codereview.stackexchange.com/posts/128036/revisions
@Duga it's fine
00:49
0
Q: My solution vs CTCI's solution

Em AeI am referring to question 1.5 Cracking the Coding Interview Implement a method to perform basic string compression using the counts of repeated characters. For example, the string aabcccccaaa would become a2blc5a3. If the "compressed" string would not become smaller than the original ...

01:07
I don't think it brings much to the review of your code to compare it to that other site's code, besides did you get their permission to post it here for comparison? — Phrancis 8 secs ago
Anyone else agree? ^
and RBA
0
Q: psql event store

ThomasReggiBelow are a couple of different files that comprise of example code for a postgres event store, where rows for one main table events are created, as well as a method for delegating events into other tables if desired. I have a event-store.js file that looks like this: import { isArray, isPlainO...

01:25
@Quill who's newing up a Tuple like that??
0
Q: Fast ReadProcessMemory, save guest names that is in memory in hum text file

Paulo MendesMy code is very slow. How do I get it fast? I would also like to put a scanner on if you have a name in memory to save it in a text file. #include <iostream> #include <iomanip> #include <windows.h> #include <tlhelp32.h> #include <shlwapi.h> #include <shlobj.h> #include <fstream> #define ReadLim...

2 hours ago, by Captain Obvious
0
Q: Chess game in Windows Forms Part #2

denisContinuing the code here RookPiece Class : public sealed class RookPiece : Figure { public RookPiece(FigureDefinition definition) : base(definition) { Moves = RemoveFailedTurns(this, GetValidTurns()); Moves = Moves.Distinct().ToList(); } protected override List<...

Awesome! Thanks!
hmm 2-part post...
02:18
0
Q: Trying to make backspace work in LC3

cba1067950My code is, LOOP TRAP x20 ;get c TRAP x21 ;output to screen BRnzp LOOP It will output any letter to the consoles, it will return carriage, tab, but it won't backspace, and the delete button doesn't even show up in a register. Backspace will just show some character, looks like ...

03:13
3 hours ago, by 200_success
@CaptainObvious Hmm… Both posts triggered an excessive length alert.
I saw that lol
Very good effort on their part, I must admit
I might have formatted them a little bit
lol ok, you gave it Mug's Special Touch(tm)
You got a handle on it
03:55
possible answer invalidation by Jamal on question by Jamerack: codereview.stackexchange.com/posts/126347/revisions
@Duga he messed up the code block; there's gotta be one empty line between normal text and code block
it's fixed now
04:15
0
Q: C function allocating a struct

Programmer 400This is the first time I must allocate a struct. My goal is that the following function should work. int run_cmd(const char *cmd) { struct str_list *chunks = list_split(cmd, '|'); struct pipeline *pipe = alloc_pipeline(chunks->size); for (int i=0; i<chunks->size; i++) { pipe->...

04:59
I doubled my daily allocated story points today... and cleared all of my issues in the backlog :D
05:35
possible answer invalidation by billynoah on question by billynoah: codereview.stackexchange.com/posts/128036/revisions
06:05
0
Q: Use try case for if else

Muneeb MirzaThere is this function that checks if data is present in a database table. I am currently using try-catch instead of multiple if-else statements. To cater null values I used if-else statement at first, but that way I had to use multiple if-else statements. It didn't look good to me and I thought ...

0
Q: Using RemoteChannels for an parallel iterable map

OxinaboxRemoteChannels hit with julia v0.5 There are no examples online, but I managed to get them to work. They are still very new, and all this whole area of multithreading code continues to have running changes -- there was one just a few days ago. "A kind of async parallel iterator map, that does n...

Good morning
monking
hows ti going/
06:23
Ionic is refusing to play nice
gaaaahh... I have to sign an NDA for some data I've worked on
& why is that?
If this is working code that you think could be improved, see Code Review. If not, clarify the issue with a Minimal, Complete, and Verifiable example. — jonrsharpe 44 secs ago
Ah, ok thanks jonrsharpe - perhaps I should be in Code Review! — chewflow 42 secs ago
@DanPantry ouch
@DanPantry because Ionic = mobile, and I'm supposed to make one of my views for Desktop magically
@Quill lol
i thought ionic was hybrid, not solely mobile
it is hybrid, but if you do it wrong, it's satan spawn
06:30
angular? satan spawn? ya don't say
:/
I have two stacked buttons that turn into 100% width stacked buttons on desktop
wait, this is a thing?
you mean i could use sshfs to work on a linux box with an SSD and still interface with files on my PC (like VS)??
whaaaaaaaaaat
mind blown
wow that's cool
i'm going to try it out and hopefully not break it
theres a separate Stack for code review...this is not the place — therealprashant 19 secs ago
This could probably be moved to codereview.stackexchange.comdougajmcdonald 23 secs ago
I'm voting to close this question as off-topic because code improvement questions belong on codereview.stackexchange.comtripleee 35 secs ago
06:45
As anticipated, it's a little more difficult on Windows -.-
oh wow
it worked
07:12
0
Q: Performance of PDO-Query Class

TechTreeDevto reduce repeating multi-liners I've written a class for my PDO-Querys. But as I used this in my project (a Webcrawler), I sometimes get the MYSQLi error: User already has more than 'max_user_connections' active connections So, as my hoster won't change the limit of 40, is there a chance, to ...

07:22
0
Q: How to imeplement cleanup when wrapping a C library in Rust

Anders ForsgrenI made a wrapper around a C library which creates a device that you must explicitly close. Writing the raw ffi functions was easy, but how do I make it ergonomic Rust in a higher level wrapper? Specifically, should I be doing it the RAII style and only using Drop to ensure the close is called wh...

1
Q: Any very basic improvements to avoid repeating code in my Python hangman game?

chewflowI've been trying to learn Python and I've managed to muddle through enough to put together a simple Hangman game (albeit with a few bugs and game features missing!). However, I feel like I haven't done a very good job as I seem to have repeated a lot of code. Does anyone have any simple tips fo...

07:35
1
Q: Sort a strings collection by a search term

Shmulik KleinI'm trying to implement a search bar in which the user sends a search term and the search bar displays the results. I have a naive solution which separates the original list into three sublists: a list with all the exact matches, a list with all the phrases containing the search term and a list ...

Monking
07:50
Wow, BitBucket PRs always use merge commits
and there's no way to prevent them or turn that setting off
That really sucks
Naruto answer; accepted non-selfie answer with 0 score: Forum project using OOP PHP
Ripe zombie; open question with answers, at least one answer having score 0, no answer having score > 0: Class that generates records after performing business logic
@MathiasEttinger hey there
@DanPantry So Git instead.
Problem solved.
-1
Q: javascript code practices

skyrimveteran //Make IE play nice with HTML5 elements document.createElement('header'); document.createElement('section'); document.createElement('article'); document.createElement('footer'); // ServiceWorker is a progressive technology. Ignore unsupported browsers if ('serviceWorker' in navigator) { ...

08:08
@Mast OMG I WOULD NEVER SPOIL THAT MOVIE
I want to see it SOOO badly.
There's two after scenes credits btw
don't be a Quill and only see one
@Mast yeah i'm tempted to avoid that feature but a big part of it is code reviews..
i mean at least github let you choose
@Quill Same thing with Ant-Man, which was an awesome movie.
Yesterday, we got 11 more accepted answers, 36 more questions were answered, 37 more answers were posted, 172 badges were earned, 131 comments were left, 42 more questions were asked, 6 more questions were unanswered, 110 users were created, and 247 votes were created.
Our question answer accept rate went down by 0.0407%.
Our question answer rate went down by 0.0094%, and our answer accept rate went down by 0.0034%.
I need to add a couple fields to this table.
At least one, that is.
Oh no
I think it broke
Nope, never mind.
Oh wow, my quota didn't reset until halfway through the download.
The weird thing is I didn't get a single back off request.
@DanPantry BitBucket features code reviews?
Code Reviews in the sense that the stage between pull request and merge is a Code Review
08:18
"Yup, looks like code. Good to go."
Reviewed.
It's basically the same as github PRs with a little topping of enterprise
the stench of overpricing
PRs can be approved and okayed by people. And then merged.. or you skip the approving and just merge them
I fail to see an actual benefit over normal Git.
Maths lecture making me crazy
08:22
@Mast Jira is about the only benefit of the Atlassian stack
@Mast you can comment on lines of PRs and have the context there
@Vogel612 Integrals take some getting used to. The key is practice.
Integrals weren't that hard
@Quill Those are probably a little more advanced than you got.
yeah, probably
08:29
@Vogel612 If that's necessary, your PR is too big.
Ah well, to each his own.
@Mast necessary!=helpful
True.
Also while I prefer small PRs some changes just are too complex for patch reviewing only
@Mast it is part of the PR process
@Mast You get fancy merge commits because the tools at Atlassian don't know what tags are and don't care about git bisect.
(Which has saved our bacon several times)
I don't review my PR's.
08:36
what exception gets thrown when you try to set a value on a constant?
I just merge them.
@Quill YouIdiotException
@Quill There is no exception thrown. It's a compiler failure.
(Once again, I've been drinking.)
Unless you don't have a compiler
in JS it's TypeError
though I have no idea why it is TypeError and not something that makes sense like InvalidReassignmentError
Did you just imply that "makes sense" and "JavaScript" belong together?
08:38
fite me irl.
:/
but, yeah, it would be a compiler error or if interpreted it should be something like InvalidReassignmentException
@DanPantry We almost had a fight break out at work today.
@EBrown why?
One of the guys is a UFC fighter, the other can smoke an e-cig, so I guess that's hard?
@DanPantry Long story. One of them violated the rules and screwed the other over.
08:40
> the other can smoke an e-cig
VapeNation will save him
I was taking bets.
@EBrown Ahh, office politics. <3
@DanPantry Not an office, warehouse.
Okay, I wouldn't want to screw around in a warehouse, those things can be dangerous
We all drive forklifts too.
(Like, 40 forklifts operating in our building at any given point in time.)
I am the only one qualified on all the other equipment though.
08:41
"Other equipment" being the computers and the beer tap? :D
Yes.
Do you know abou that German Forklift safety training video?
And the Order Selector, Electric Tug, cranes, AGV's, etc.
Conveyors, transfer carts, etc.
Well, technically they're SGV's, not AGV's.
0
Q: recreating strstr in c

PhutiI'm trying to recreate strstr in c, my code works but I think it is too long, and it needs some improvement. #include <stdlib.h> static int find_str_indx(char *str, int index, char *str_to_find) { int i; int temp; int found_index; while (str[index] != '\0') { i...

Tunaki reviewed this 14 mins ago: Reject
This edit was intended to address the author of the post and makes no sense as an edit. It should have been written as a comment or an answer.
hmmh, not a chatter
wanted to ask them about why they'd picked that
08:55
He is a chatter; he's an RO in the SOCVR room
@Tunaki ping
0
Q: reading csv files and inserting in advantage sql db - performance in vb.net

Sparkm4nThis program reads all files in a folder and subfolders line for line, converts them in a supported character set, replaces all unsupported characters and inserts them in sql database, so my idea was to insert all csv files. It works fine indeed but it takes so long till all data is inserted, esp...

Hiya o/
Ah yes that edit
@Pimgd Well isn't that supposed to be a comment? "fixed small bug" is not descriptive enough to tell what was wrong
Let's say they take your advice
And instead of making an edit, they post a comment.
What would the comment contain?
> Isn't ... supposed to be ...? Because ....
09:02
Yeah, pretty much
Looking at the code, though, especially in combination with the answer, it's clear what happened
edit-scar from turning the rightUpDiagonal case into newPosition
but I get your point now
it's not directly obvious
... the wording of some of these standard reasons is a bit harsh tho, for cases like this
"This edit was intended to address the author of the post and makes no sense as an edit."
yeah it's a bit harsh...
oh well it's all good I guess
It's the edit summary. From it, it isn't clear that the editor is fixing a trivial mistake
=D that's part of a bigger problem, many edit summaries wouldn't hold up as commit messages
lol
09:07
I don't even put anything in my edit summaries.
(On my posts, at least.)
Edited 50 characters in body
Yep.
That's me.
Yeah but you have full editing privileges
I probably did that one.
@Tunaki That's true.
And I don't edit superfluously.
my edits on other peoples posts have bad edit summaries too
09:08
I only edit as necessary. (I'm not a @Jamal.)
sometimes
@EBrown Jamal is the god of editing
although
> fix indentation copy-paste error
> rawr typo, and that ` smells like edit error to me
> typo fix and a few spaces
Well, time to run Windows Update, and the OS X Updates.
Aka bedtime.
> bugfix
hmmh I guess most of these would be bad commit messages
... maybe not bad but not really great either
then again if you "fix" something in a commit maybe you need to add an issue key
meh
but "rawr typo" =D
09:11
-bash: rawr: command not found
> EAT WORDS
some of these are definitely not suitable as commit messages.
> hahaha bugs
> I made a boo boo
> I keep re-reading my answer and it has mistakes in it why does it have mistakes in it can't there just be auto mistake fixer
okay I'll stop
but damn re-reading these is fun
I'mma go stalk your edit revision summaries >=D
I keep the default one xD
@Quill has a lot of boring ones but I found a good one
> They're Not Pronouns You Don't Need Capital Letters For Everything
130
Q: In a formal paper, should I censor "brainf**k", the name of a programming language?

max I'm working on a formal paper about programming languages. I am going to talk about two intentionally difficult languages, brainfuck and JSFuck. Should I leave the names as they are, or censor the names? (e.g. brainf**k, JSF**k)

@Quill and decrease searchability?!
whyyyyy
> removed cancer
for an edit where "- in bluej" is removed from a title
09:22
wut
by jamal
ahhh I see
It's a suggested edit
(still kinda funny)
For best of 2016 we should add "best edit summary"
Uh no thanks
okay =/
keeping it more productive would be "best edit" but I guess you already have that
as a night and day category or something
Are the final results for Best of 2015 in yet? I kind of missed that.
I'm voting to close this question as off-topic because it would be more suited to Code Review. — vascowhite 6 secs ago
09:30
rolfl has pretty nice edit summaries, none of them are "funny", but they're really descriptive whilst being short
I could use some of that
@vascowhite This question is off-topic for CodeReview as it is askng for explanation of someone else's code, please don't suggest it. — Tunaki 11 secs ago
@Duga wat? This is off-topic here
Obviously "more suited" is a valid close reason
that's a useful bot
Duga is our faithful companion
Who also reports our unanswered question count
10 hours ago, by Duga
RELOAD! There are 2275 unanswered questions (93.3177% answered)
09:46
"there is no budget for that"
is how we end up with "overhours1", "overhours2", "overhours3", ... "overhours30"
instead of adding a new object and making a list
this makes me sad
the resulting ui makes me sad too, it's a grid of "overhours1" and a textinput... "overhours2" and a text input...
all the way to 30
at least we can get paid monies if the customer wants it to go to 40
I've read CodeReview's "What is a good question" and I'm going with @Tunaki . It's more an opinion based question and may result in a war of beliefs. — Quasimodo's clone 34 secs ago
@vascowhite Do not use Code Review as a close reason. If it's off-topic here, say it's off-topic here. Whether it's on-topic somewhere else is irrelevant. For the record, this would be shut-down on Code Review in no-time. Do not migrate this question. — Mast 44 secs ago
@Pimgd Convince the customer it needs to be faster and optimize the overhours in the process.
well, the problem is that adding 31-40 would take, say, 3 man days ($3k? You know how billing works for "custom" features)
and replacing it with dynamic list and proper design would probably take 7 man days
which would then be $4k more expensive
so yeahhhhh
lets go with cheap!
10:19
-1 w3schools is in no way an authoritative source on JS best practices... — Quill 10 secs ago
0
Q: A Search Engine Class

Claudio KingI've built a Search Engine class for a website that permits to search companies in base of their locations and their categories (companies pay a plan to be found in the places that they will). In the constructor you can pass an index array cointaining the parameters or you can set them later wit...

> Javascript developers don't like to put hardly anything on the global scope, because anyone can change those variables by editing them in the interactive console.
what
you are running in a client enviroment
your security is already breached
security is not the correct angle here
maybe you don't want to pollute namespaces
like when programming in C where you'd better prefix everything or suffer
10:45
If you have working code which merely needs improvements then you're probably in the wrong place with this post. Code Review is where they handle existing / working code and do their upmost to improve it in terms of speed, security, sustainability, and longevity. Give it a try. They're good! — Ralph 11 secs ago
@Duga yep
> I have something like this working
@Pimgd Yeah, it's not security that's the issue with that. The issue is that global scoping is awful regardless of what language you're in almost all of the time
hence the answer gets a downvote from me
You can already modify variables at runtime through a breakpoint, even if they're not on the global scope. The main reason we don't like the global scope is because, like every other language, it's really hard to test and bad at encapsulation. Additionally, if you can access something from a closure, you can almost always pass it through as a function argument. — Dan Pantry 50 secs ago
@EBrown lmao
why can't I star posts in the transcript :(
*makes Outlook rule to redirect all error emails to Trash*
Monking @Phrancis
Monking!
I love the smell of in the morning
2
10:58
0
Q: lik /unlike system

Marcoa simple question to evaluate one of a tutorial scripts to create a like system. The tutorial would be this, I wanted to know from you if integrating a connection in PDO, it is an appropriate script, clean and safe. http://www.phpgang.com/how-to-create-like-unlike-system-in-php-mysql-and-jquery...

11:09
Monking
Monking!
@Phrancis pops in before me while my timezone is 6 hours ahead... I may need to think about that
What is the appropriate flag for
0
A: A phone troubleshooting program

jimlo l ol ol ololol ollolo lolololololololloloo olooool

?
spam?
I was more tempted by "rude or abusive"
Anyway, no clear guidance available?
11:25
Not really, it's one of those cases where it's just garbage
Welcome to StackOverflow and thank you for the elaborate post. Yet, I was unable to see the immanent question within. Could you please help me? Is the code working or not? If it is not working then please elaborate on the error messages that you get. If your code is incomplete and requires more code to accomplish additional tasks then you're probably in the wrong place as this site does not offer free code-writing services. If you have working code which requires merely tweaking then you should try Code Review. So, which one is it? Thanks. — Ralph 54 secs ago
I'm voting to close this question as off-topic because it belongs on codereview.stackexchange.comAndy Holmes 33 secs ago
@Phrancis Ha we have some guidance for that on Stack Overflow
basically, hit the first flag your mouse lands on :D (which is abusive for me :) )
11:44
When I was referring to code, it's just VBA, Code Review looks handy, but is that for actual programming as opposed to scripts like VBA? — Gurdeep 58 secs ago
@MathiasEttinger lololololol
as custom reason
Greetings, Programs.
@SimonForsberg I was watched again last night.
I'm voting to close this question as off-topic because it belongs to CodeReview — Jehof 56 secs ago
but who watches the watchers
@MathiasEttinger There's a MSE post on whether you flag garbage as spam or rude&abusive
TL;DR rude and abusive
11:56
cannot find post
I found this one instead
which says something completely different
25
Q: Either the new "spam" flag reason description is misleading, or I am mislead on what the "spam" flag reason is for

badpToday I woke up to find an obviously spam meaningless answer that had acccumulated 12 flags. Here's an excerpt: I like pie. what's your favourite color? mines red. who are you? hi? This got: 5 not an answer flags 2 spam flags 1 moderator attention flag about quality 1 community flag ("low...

0
Q: MySQLi: How to properly do the error handling?

user3800667I've written a php code that works, but I'm a novice and I want to know how to improve my code and do it like an advanced programmer :) I would like to handle possible errors. I've read several blogs and some people recommend handling with exceptions. How would you do it? $mysqli = new mysqli( ...


« first day (1103 days earlier)      last day (3210 days later) »