« first day (796 days earlier)      last day (3222 days later) » 

12:03 AM
bah, @Duga is broken apparently
 
Do you have a backup bot?
 
@Quill Yes, thats one of the main problems and point of creating a new website for this NPO
i'm reading up on Node @ Mongo right now.
 
You say you've got "exception handling". Do you have unhandled exception handling? — nhgrif 28 secs ago
 
Good luck!
TTGTB
 
12:20 AM
0
A: File parser convert to node data and neighbouring relational data

Evan BechtolHere is my updated code per the suggestions given in Joe Wallis' answer. I have changed the main loop in the readFile method, eliminating the if/else statements. I have also added additional methods to aid in easily retrieving data later form a separate module that is used. import os import tim...

User answered own post with updated code
 
@Mat'sMug I did that once
 
me too
 
> Code-only answers that don't actually review the code are insufficient and are subject to deletion.
 
I've done it a couple times.
In fact, I have one that still needs a better answer.
 
12:28 AM
@Quill Bairly reviewed
 
@rolfl Around?
If you can, have a look at this query; I didn't expect it to add new INSERTS in the rows after each previous insert (although now I kind of understand why it does that). Know an easy workaround?
I think I could use UPDATE statements like UPDATE #CategorizedTags SET Languages = AllTags WHERE AllTags IN ( /* list of Language tags here */ );
@Quill He posted as CW, I wouldn't worry about it, as long as he doesn't accept his own answer
Yup, that works
 
12:57 AM
0
Q: Subscribing an Object to it's own Events

EBrownSuppose I have the following: public class NetworkServer { // Stuff public NetworkServer() { // Stuff // Wire up our events Error += NetworkServer_Error; DataReceived += NetworkServer_DataReceived; StatusChanged += NetworkServer_StatusChanged...

 
@CaptainObvious Is that Hypothetical?
 
@CaptainObvious Looks like it
 
> None of these implementations are complete, but I want to make sure I have done this part properly first.
 
Monkevening
 
Ditto
 
hi everyone
 
Hi
 
Hi @shuttle87
 
1:23 AM
is anyone here familiar with Javascript and one or more of {java, c#, c++, python}?
 
I'm not very skilled with JS but need to learn it
 
@shuttle87 Pretty much everybody
 
I can do JS and Python
 
I can do all of them to a certain level.
 
1:25 AM
Do you know of any good resources to learn Javascript from the perspective of someone who is not a new developer?
 
No.
 
I can tell you to stay away from w3schools though. Never go to that dark place.
 
I can't do much with JS, and I'm not looking to get any better at the moment.
 
I can tell you that W3Schools is pretty good for HTML/CSS.
JS, I've not looked at.
 
1:26 AM
@Hosch250 For that, but not JS
There's a lot of misinformation on W3Schools
 
@EthanBierlein SQL isn't very good there either.
@EthanBierlein Isn't that JS's fault? ;)
 
@EthanBierlein thanks for suggestion, I will have a look in a minute.
 
The SQL course is horrendous.
@Hosch250 Partially.
 
Hey, guys, if you want access to the Teacher's Lounge, here is the link to request it: chat.stackexchange.com/rooms/25365/crap
I'm not going to try.
 
lol. I just requested access.
 
1:29 AM
I wouldn't have.
 
Oh shit...
Why?
 
Mod room.
 
Well ****
At least I have a valid excuse
 
That is where they hatch dark plans for causing trouble across SE handle things in private so users like drt can't see and make trouble.
 
@EthanBierlein Really? You didn't know about The Lounge?
 
1:31 AM
@Quill Oh yah.
 
Jul 2 at 5:24, by QPaysTaxes
I just wanna clarify that if I get any pings from in here
Jul 2 at 5:25, by QPaysTaxes
You won't like what happens.
^^ Don't
 
@Quill Famous last words.
 
I want to ask him if he's okay. His rep increase has completely flatlined recently, and he hasn't been in here for a while. I'm honestly a little worried.
 
I'm sure nobody else would mind if the chat didn't get flooded again.
 
That yeah ^^
 
1:37 AM
@EthanBierlein He stopped answering - I've been watching for a while.
 
@EthanBierlein If people decide to leave, then they decide to leave. Let them be.
 
Fair enough
 
Oh, I don't think I'd be worried - he is obviously around to make Very Bad Things(TM) happen is we ping him.
 
Anyway, on a lighter note:
 
Erm.
I don't want to ask.
 
1:40 AM
Alex Miller on October 17, 2011
This past weekend, CHAOS was working the New York Comic Con (NYCC) here in New York City. It was kind of amazing. But CHAOS wasn't the only one working hard this weekend....
 
Oh good lord. We're all doomed.
Oh wait, it was in 2011. We're fine.
 
The unicorn's name must either be Blossom or Buttercup, then.
 
@EthanBierlein, there is a chrome plugin to change the noise, you know
 
@Quill bunch of people with more money than they know what to do with.....
 
@Quill cough wrong room cough?
 
1:46 AM
I'd rather keep it out of meta
in Tavern on the Meta on Meta Stack Exchange Chat, 2 mins ago, by Ethan Bierlein
What... chat.meta has the weirdest ping sound...
 
in Tavern on the Meta on Meta Stack Exchange Chat, 18 secs ago, by Ethan Bierlein
shhh.. one or two pings won't hurt.... shhh..
 
@EthanBierlein do it now
 
@EthanBierlein It is site customizable.
 
Oh, so the "twang" sounds is unique to CR?
 
Default sound.
 
1:52 AM
Ah
 
on my laptop, I have it set to someone saying 'Hey!'
 
@Quill How, how do you change it?
 
I broke 20k Chat messages in The 2nd Monitor today <-- 20024
we broke 475k all time messages in the room today too
 
23
Q: SE Chat custom notification sound

Lekensteyn Screenshot / Code Snippet About Someone found the current *beep* sound annoying and asked for a way to change the sound. Such a feature did not exist, so I created this UserScript which adds a button next to the notification settings button. This button opens a popup which allows you to ...

 
@Quill that is not how they changed meta's to sounds different
that is per user, I think it is a client side script
 
1:57 AM
3 mins ago, by Ethan Bierlein
@Quill How, how do you change it?
 
let me look at it a little more
 
Emphasis on you
 
Stoopid chrome
 
0
Q: Dice Simulation

Kamanzi Munroeimport java.awt.*; import java.awt.event.*; import javax.swing.*; import java.util.Random; public class DiceSimulation extends JApplet { /* Initialising Applet */ public DiceSimulation() { this.setContentPane(new DiceRollPanel()); } /* method main */ public static void main(String...

 
@CaptainObvious VTC for broken code
 
2:04 AM
@Quill Do you know a good place to find sounds?
 
@Quill this does not work in meta.chat?
 
@Malachi Try extending the domain limiter on the userscript
@EthanBierlein here
 
@Quill I changed this line
  // @include        chat.*
because one is chat.stackexchange.com and the other is chat.meta.stackexchange.com
how do I make it do both?
 
Hmm, try http://*chat.* maybe?
 
http://chat.* does both
but it was http://chat.stackexchange.com/
 
2:12 AM
oh, right, nvm
You might want to be careful with that, cause anydomain with chat.* will be tried to modify
 
I changed it back
I am going to bed though.
 
Good night
 
May have better luck at codereview.stackexchange.com ? — tmack 35 secs ago
 
Night @Malachi
 
This question could be suitable for Code Review, as long as (a) your code works as intended, (b) your code is real code, rather than example code, and (c) your code is included in the body of the question. If you wish for a peer review to improve all aspects of your code, please post it on Code Review. — Phrancis 7 secs ago
 
2:16 AM
3
Q: Porkchat: A Chrome extension with lots of chat tweaks!

fredley Install Install from the Chrome Web Store About Porkchat is a Chrome extension that bundles together a lot of scripts I have written for Stack Exchange chat over the years. It is fully configurable - each individual script can be enabled/disabled from the options page. Included Scripts ...

^ Really cool
 
> Friday Link Highlighter - Avoid Rebecca Black's hit single - links are highlighted, and this script checks redirects so can detect links behind shorteners.
OMG
 
9 more upvotes to get and hit 7k... i wonder if that's possible by today? this weekend? hahaha
 
I only need 23 for [bronze-badge:php] -_-
 
keep it up! :)
 
Wow. I just realized that I have 15 gigs of useless unity projects in my Documents directory...
Oh wait, nevermind. All that space is being taken up by SQL Server
 
2:43 AM
0
Q: Hackerrank regex solution

DeepakI solved the following problem on Hackerrank Here is my code: import java.io.*; import java.util.*; import java.text.*; import java.math.*; import java.util.regex.*; public class Solution { private static StringBuilder htmlBuilder = new StringBuilder(""); private static Pattern rgxForTagAtEnd ...

 
Links can rot. Please include the challenge description in your post. — Quill 8 mins ago
 
@Quill That's a bit unrealistic, the challenge is like 2 pages long
 
Links can rot. Please include a brief challenge summary in your post. — Quill 15 secs ago
Hey Java developers if you import parent.child.* will it import parent.child.grandchild as well, and for that matter will import parent.child.grandchild.* be effective?
 
I would expect so
but I'm no Java dev
 
Too. Many. Projects. To. Work. On.
 
2:57 AM
import java.util.*;
import java.util.regex.*;
Then that's pointless, right?
 
No. I think that the OP doesn't want to have to prefix things with regex.
 
@EthanBierlein Put them into a randomizer Python script and let it decide for you. (That's what I do with lots of things)
2
@EthanBierlein Hmm, okay
 
@Quill depends how deep Java namespaces go
they're namespaces right?
 
1
Q: Java import wildcard not importing everything inside package

user2397282I'm writing a Java program that has a button with an action listener: JButton button = new JButton("Change"); button.addActionListener(new ActionListener() { @Override public void actionPerformed(ActionEvent e) { label.setText(textField.getText()); } ...

3
Q: Does an import wildcard import everything all the time?

MikeI was working on a little Java program and was using arrays so I had done: import java.util.Arrays; Later I started expanding on what I had previously done and decided I wanted to get input from the user, so at that point I added: import java.util.Scanner; Now a thought occurred. I know tha...

38
Q: Difference between namespace in C# and package in Java

MazzyWhat is the difference (in terms of use) between namespaces in C# and packages in Java?

To quote from JonSkeet: "EDIT: Okay, after the clarification: a Java package is similar to a C# namespace - except that it has an impact on accessibility, whereas in C# namespaces and accessibility are entirely orthogonal."
 
so, C# has it right then
2
 
3:06 AM
(no comment from Java person here)
 
:p
 
@Mat'sMug standard
 
3:21 AM
7
A: Looking for a short science fiction story about a computer defeated by a paradox?

user14111"The Monkey Wrench" by Gordon Dickson. From Wikipedia: In this story, Lowland society lawyer Cary Harmon drops in unannounced on the weather station of meteorologist Burke McIntyre, high in the Lonesome Mountains, a jagged chain of the deserted shorelands of Venus's Northern Sea. Curious abou...

> Output: Statement rejected.
 
it's a strange loop!
 
Reminds me of that poster they have on some of the walls in Portal 2
 
2
A: Why are primary voting scores public?

Shog9 Surely it just encourages bias in the voters to inflate high scores? Yes, it does. That's the point: There is obviously some intentional bias here, because we want the strongest, most electable candidates to proceed forward. That way the election is between ten strong candidates that you...

 
3:40 AM
On that note, I'm gonna trim my sideburns now... — Jamal ♦ 8 mins ago
@Jamal lol
 
Crap. I think I broke the git shell.
 
Well done?
 
Yeah. I just pushed a commit that was almost half a GB.
 
why so big?
 
3:50 AM
Just one more close vote on the following:
0
Q: Rails mixin to support expiration

Venkat ChIs this good approach of using constant variables which holds the some data and used within this mixin only? Is there any better approach I could use instead the constants? require 'active_support/concern' module Expirable extend ActiveSupport::Concern BEFORE_EXPIRY_DURATION = eval(APP...

 
Hmm. Making atmospheres with blender is hard...
 
@EthanBierlein, take a look at this
 
Well. Okay then.
 
 
0
Q: Long Player movement script

FunlambAll of this does just one thing. Move my player by finding the first finger that was used to touch the ship and drag it. I have a few questions: The first thing is I have an embedded class of MotionState. At first glance it makes a lot of sense to start with that. I latter ended up not using ...

0
Q: Mode Calculator

CyanogenCXOk so, I was doing a puzzle on Coderbyte, and here is what the puzzle stated: Have the function SimpleMode(arr) take the array of numbers stored in arr and return the number that appears most frequently (the mode). For example: if arr contains [10, 4, 5, 2, 4] the output should be 4. If there is...

 
4:04 AM
I'm voting to close this question as off-topic because there is nothing wrong with the code. Questions asking about review or improvements to code belong on codereview.stackexchange.com — Peter Duniho 1 min ago
 
@CaptainObvious Ugh, OP edited out a second program and made part of my answer redundant
-1
A: Fine tuning of an informative replacement for rm

Nicolai SDoes this cause problems for utilities calling rm? If so, this if [ -t 1 ] ; then ..your code..; fi will make sure you are not flooding stdin of other processes. See this and other answers for more info on detecting whether you are in a shell or not. I will probably come back tomorrow an...

^ OP thinks code is broken
 
@Quill I tried to rescue that one, I think it looks OK now
 
@Phrancis Awesome, close vote retracted
@CaptainObvious My answer
Incoming off-topic too
 
4:25 AM
@Quill I don't read that in that question, why do you think so?
 
Sorry, answerer
 
O.
It probably was migrated along with the question, should probably just be deleted
 
It wasn't
@downvoter: Please enlighten me on why this was such a bad answer. — Nicolai S 3 mins ago
Code Review is for reviewing working code, not for providing potential bug fixes. - @downvoter — Quill 30 secs ago
what do u mean by working code @Hosch250 — user76836 1 min ago
lol @Hosch250
 
Working code is code that does what it is intended to do, without errors. — Hosch250 9 secs ago
There you go, @Quill
 
-2
Q: Parenthesis balancing using stacks

user76836The following code is not working #include<stdio.h> #define MAXLEN 100 typedef struct { char element[MAXLEN]; int top; }stack; int isempty(stack S){ return (S.top == -1); } int isfull(stack S){ return (S.top == MAXLEN -1); } char top(stack S){ if(isempty(S)) printf("The stack is emp...

 
4:31 AM
7 mins ago, by Quill
Incoming off-topic too
^^
 
It is alright to post answers pointing out bugs. — Hosch250 31 secs ago
 
It's not a bug, it's a potential bug fix
 
Invited them to chat.
Hi, @NicolaiS
 
Hello, there
 
I think your answer would be a good answer if it contained a little more beef - explaining why this would be a good thing to do.
 
4:35 AM
Thank you. Appreciate it. I really just wanted to make a comment, asking the author whether it was relevant to check for.
 
I will have to ask a mod to do that.
@Jamal Are you still here?
 
convert to a comment? why?
 
Just delete the answer and make a comment instead
 
@Quill Potential bug fixes are fine too.
@Phrancis Doesn't have 50 rep.
 
@Phrancis < 50 rep
 
4:37 AM
Oh, my bad
 
I think it is fine as an answer, but a little more detail would help.
 
I was planning on coming back to it tomorrow, so it's fine with me.
 
@Jamal is online, can you convert it please?
Also incoming off-topic
 
1
Q: Job execution on records supplied by database

RajkishanI have a requirement to check all records in a table which is big (Around 1.5-2 million records). What it does is very simple, just get all the records and loop through one by one, and do things with the records. I have a quartz job which will run every 2 minutes to check things. ApplicationD...

0
Q: How to create our own vector class in java

naqiHow to create our own vector class in java. I want to implement vector class but without any imports.

 
@CaptainObvious Off topic - no code.
 
4:40 AM
And that makes 300 edits
 
@Quill I'm not familiar with at all, but it seems a fine answer to me.
 
7 mins ago, by Quill
It's not a bug, it's a potential bug fix
He's not really reviewing the code
If you're having a problem, do this
 
> will make sure you are not flooding stdin of other processes.
 
It is a review on a potential problem.
 
as in, your code might be flooding stdin of other processes
 
4:42 AM
I agree that it could be polished a little more, but it is as good as a lot of other answers around here.
 
Sorry, will edit. Although I'm halfway to a delete
 
Delete voter retracted their vote - you are in no danger of having it deleted on you.
 
@Hosch250 *Downvoter?
 
@Quill There was a delete vote on it too.
 
@Hosch250 Well, I don't have that tool
 
4:44 AM
I don't know if you can see those with your rep.
 
12 secs ago, by Quill
@Hosch250 Well, I don't have that tool
 
Enough code to be reviewed, but it's borderline ...
Welcome to Code Review! It would really help us if you could fill in what goes on in allApplicationDetails.stream().forEachOrdered instead of //Do stuff. You would benefit more from a review of the complete class, as there might be things in there specifically that are slowing down your job. — Phrancis 3 mins ago
Thoughts? ^^
 
-1'd
 
I think we don't need a mod to close that question with no code.
 
4:48 AM
@PeterDuniho, how do I properly migrate the question to CodeReview? When that happens, can you please add your readonly idea as an answer? I've never seen that construct before. — kdbanman 1 min ago
 
I still have a delete vote. I trust you guys to do the right thing here, and if it's deleted, it's totally okay.
 
Someone rang?
 
@Jamal We were talking about converting @NicolaiS's answer to a comment, that still happening?
 
Closed
 
4:50 AM
Some think it is fine, others think it should be a comment.
 
@NicolaiS Sorry that's mine, didn't think to remove it. Just a moment :)
 
I'm tempted to keep it, but another mod may have a better idea.
 
@NicolaiS the delete button is hidden on positively-scored answers
 
@Jamal @200 may still be online
 
If so, he'll see the flag.
 
4:54 AM
@kdbanman I don't think this is the greatest post to migrate over to CR. Code Review works best for when you have real working code from an actual project that you want to have feedback on any and all aspects of the code. This question is really just asking "what's the best practice regarding X?", which is explicitly off-topic on CR (see the help center). — Mat's Mug 39 secs ago
 
Another incoming off-topic, see below
 
-2
Q: Filtering tv version of youtube

new developerI am working on a home entertainment system, that allows me to access TV version of youtube. The problem I am having is that I have my own keys that I need to use but youtube is using the same keys. Is there a way I could filter the keys the iframe is using, so that I only allow the iframe to use...

 
Hey, that was moved from SO.
 
@Mat'sMug ...oh. I just did, I was about to delete this one. Perhaps I'll leave this one and delete the new CR post. What do you think? — kdbanman 50 secs ago
 
5:01 AM
@Hosch250 Reposted, I believe
 
@Mat'sMug, alright, then I'll leave this one here. — kdbanman 24 secs ago
@Quill gone
 
BBL. Past midnight.
 
Night
 
'night!
 
5:34 AM
TTGTB
 
Good Night
 
'night!
 
It is alright to post answers pointing out bugs. — Hosch250 1 hour ago
@Hosch250 What bug is it fixing?
 
^ that
Interesting information, but irrelevant to this code, since the entire point of the program is to display information to the terminal. — 200_success ♦ 6 mins ago
 
5:51 AM
Well, I for one, would never overwrite shell commands with new ones that altered the behaviour like that.
.. without taking precautions as I suggested in my answer.
But I agree that it is not a proper review, merely a review at all. And if that is what is demanded of this site, I expect that someone make up their minds about it.
 
Your point could be elaborated into a reasonable answer, if you explained how the original code is deficient without the -t check. (Personally, I'm currently not convinced.)
 
6:07 AM
1
Q: Method that reserves a reservable entity and charges the user

TheJKFeverThis method works for what I need it to do, but I just don't think it's extremely readable, and could be abstracted into different methods. I have a feeling I'm going against some best practices. Please let me know your suggestions: def reserve return render json: { error: "This entity is no...

 
6:35 AM
monking @all
 
@StephenKing there is a requirement that everything should pass through code review, so it's unacceptable in this case( — Darya Golub 34 secs ago
 
monking!
almost 3AM, TTGTB
 
@duga false positive
night @Mat'sMug
 
Night
 
0
Q: The Great Mocking, or the class that wanted to mock an entire IDE's API

Mat's MugUnit testing the rubberduck refactorings, inspections and quick-fixes has been pretty much impossible, at least until a MockFactory was implemented, to do things like this: internal static Mock<CodeModule> CreateCodeModuleMock(string code) { var lines = code.Split(new[] {Environment.NewLine}...

0
Q: Convert Pajek file to CSV in shiny using R

StudentDoubtsDoes anyone know how to read pajek file in shiny and then find the degree of each vertex and output it to CSV file in descending order? Here's the Pajek file i want to import in and export the degree into CSV. In R, i know how to code it normally like this: #read the pajek file in igraph repon...

 
7:33 AM
Monking
 
@Malachi Er, what for? :/
 
0
Q: Monoalphatic and Polialphabetic cipher in Ruby

Caridorcrequire 'arrow_test' ALPHABET = ("a".."z").to_a # Moves a letter forward in the alphabet by # the given key wrapping around. # # <code> # shift('a', 2) #=> 'c' # </code> # # <code> # shift('z', 2) #=> 'b' # </code> def shift(letter, key) ALPHABET[ (ALPHABET.index(letter) + key) % ALPHABE...

 
If this is working code that you think could be improved, see codereview.stackexchange.com. If not, please be clearer about the problem. — jonrsharpe 53 secs ago
 
7:50 AM
-1
Q: Xamarin for anroid /Ios development

TRSIam planning to use Xamarin platform for a big scale mobile app for ios and android.As I am a C# developer so I think the learning curve will be small.can somebody guide what are the limitations of this framework which can affect app performance or development.I want to consult someone who has al...

 
I would say that this question should fit better on codereview.stackexchange.com. — Joachim Pileborg 26 secs ago
 
@CaptainObvious off topic
 
Monking
 
hey @Vogel612
 
Monking
 
8:01 AM
hey @skiwi
 
8:13 AM
This should go to codereview.stackexchange.com. Flagging for moderator. — Kayaman 13 secs ago
 
Monking
 
monking
 
8:30 AM
Greetings
 
Monking
 
@Duga That question is deleted now
who, later, wants to help me debug some code?
(It's Javascript, don't worry)
I was thinking about making a chatroom on StackOverflow (here it is totally off-topic) and get some help
I found a nasty bug on a code I've made a while ago
6
Q: Simple syntax highlighter in Javascript - SQL highlighting

Ismael MiguelYesterday and today I've made a very basic syntax highlight. It creates a function in the window object that handles part of the job: (function(window){ var f=window.highlight = function(lang, element){ var lang_defs = f[lang]; if(!lang_defs) { throw n...

 
I know very little javascript TBH
 
I'm not perfect as well
And my mind is twisting itself around
When I try to highlight any code that may contain a tag, it craps out
select a<b from c is enough to trigger the bug
It is a really hard bug
 
0
Q: Clean Architecture and MVC principles in a JPA project using Producer-Consumer pattern

java developerI have implemented a JPA project to fetch tweets from twitter API and save them in MYSQL. It has two packages : controller and model. I would like to know if it is a clean architecture or not?What about MVC principle? Is it correct? Specially I am not sure about the classes TweetPersist and Twe...

 
8:44 AM
Everybody is free to say "I'm not interested", but I really need help
 
@IsmaelMiguel It's JavaScript
Monking btw
 
I know
Greetings
 
Well, if you give a concise problem statement I'll look it over.
 
I'm setting up a really quick jsfiddle
Interesting...
I can't trigger the bug...
Got it
It dies on select a&lt;b where id=5;
Everytime there's a &lt;anything, it breaks
It interprets it, when passing to the hidden element, as <anything, which it will then ignore and break and do nasty stuff with
 
Have you tried escaping the <
 
8:55 AM
Yes
It breaks in a nasty way
(By escaping, I assume converting it to the HTML entity)
It will display &lt; instead of <, in the output
 
@IsmaelMiguel No, you probably need to indicate in some way the next character shouldn't be considered a special character.
 
I don't have how
 
jsfiddle.net/02onkxz7 seems to work, unescaped.
 
It isn't working
The final sql: insert into table` select * from _copy where id `
 

« first day (796 days earlier)      last day (3222 days later) »