« first day (922 days earlier)      last day (3392 days later) » 

14:00
This might work better on code review, although I'm thinking it's specific enough to still be on topic here too — Tim B 14 secs ago
@Mast its some weird stuff going on with proxy settings in node.. node is trying to post to..
http://[object Object]:undefined/db/data/transaction/commit
lol
wat
omg im dumb
2
also, hey again
new neo4j.GraphDatabase('http://178.62.24.101');
the string should be a hash of options
TLDR I didnt RTFM
14:02
@DanPantry ^^
Well, then RTFM
const connection = new neo4j.GraphDatabase({
  url: 'http://178.62.24.101'
});
Any other decent language would complain about an invalid number of arguments.
2
Error: connect ECONNREFUSED 178.62.24.101:80
what happens when the manual is wrong?
@Mast I passed the right number of arguments :-)
Ok, wrong type of arguments.
14:03
WEll from the looks of things I didn't even get that wrong
I've just done something else wrong
it's very likely something to do with my proxy settings rather than node's fault
I need an adult
@Mast But this is Javascript
shoo you naysayers
shoo I say
@skiwi Exactly ^^
@DanPantry You probably just gave the arguments in a different way than your code expected.
Just admit it.
@Mast nope - I actually have a previous version of the code right nextxt to me that works perfectly
Ugh, the battery of Galaxy S4 is dying fast again
14:07
0
Q: Fill array : the best way

ArdiIn this code I fill simple array with static data (Strings and images) for Model (the specificity of the language does not matter). But I think it's not the best way to do it. Will be glad for tips. ... override fun onCreate(savedInstanceState: Bundle?) { super.onCreate(savedInstanceState...

0
Q: Random Questions in java

AuYeung ChunWingI hope to know when i choose 4 and put Number of Questions is 10. When it running to HCF it can not running. SO I hope to know how to solve it? import java.util.Scanner; public class t2 { @SuppressWarnings("resource") public static void main(String[] args) { // TODO Auto-generated method s...

10% left when using it occasionally from 8am to 3pm is not fun
@skiwi mine S4 minis battery is still in good health after reaching the 2yo point
lmfao it gets better
the code in the other folder works fine
the code in this folder does not
they are exactly the same
??????????????????????????
You wot?
I just have a cable to charge it in work cause I'll often forget to charge in the evenings.,
14:08
I have a powerbank with me luckily, but it's still bad
@DanPantry Have you diffed them?
I hate those problems. Sometimes I have Python stuff break cause I'm running it from a different interpreter (different environment variables etc.)
@DanPantry did you diff them ? Also clear you caches :\
@SuperBiasedMan I try to write my code independent from environment variables for exactly that reason.
@mast @kayess yes @ both.
@Mast my environment variables are defined in ~/.bashrc
14:10
@DanPantry Are the folders exactly identical? No different DLLs or that sorcery in there?
@DanPantry Reboot your PC.
.dll
javascript
@Mast I didn't write it explicitly dependent on them, it just turns out what I did involved them. (I'm being vague because this was months ago and I can no longer remember all the details).
pick one
@SuperBiasedMan Hmmm, yes, sometimes magic happens under the hood.
14:12
@Mast Then you open the hood and you're horrified about what's been going on in there.
@DanPantry There's probably some demonish ways to get that to work
@SuperBiasedMan You open the hood of a 3.0 litre V8 car and see a 0.8 litre engine?
@skiwi No, that's IE
3
@Mast And with every update they add or improve their electric motor?
Zak
Zak
I know people who still use IE and I have no idea why.
@Zak Enterprise
14:16
@skiwi No, they just make it look bigger.
This is going too far...
I think 12 of {developers, technicians} and null PO makes for crummy weekly Sprint.
@skiwi yeah man who uses overwolf jeez
so over the top :^)
@DanPantry HearthArena for HearthStone :D
Zak
Zak
14:17
tbf, I also feel that way about people who haven't heard of adBlockers
CSUKDNPY@SAFELPTP294 /c/projects
$ node graphdb/index.js
{ [Error: connect ECONNREFUSED 178.62.24.101:80]
  cause:
   { [Error: connect ECONNREFUSED 178.62.24.101:80]
     code: 'ECONNREFUSED',
     errno: 'ECONNREFUSED',
     syscall: 'connect',
     address: '178.62.24.101',
     port: 80 },
  isOperational: true,
  code: 'ECONNREFUSED',
  errno: 'ECONNREFUSED',
  syscall: 'connect',
  address: '178.62.24.101',
  port: 80 }
CSUKDNPY@SAFELPTP294 /c/projects
$ node index.js
[ { game: Node { _id: 59, labels: [Object], properties: [Object] } },
@200_success I didn't upvote (or downvote) that question. I try to keep my nose out of the "what is a good question for this site" debate anymore.
@skiwi That's not so bad.
index.js and graphdb/index.js are exactly the same file.
@skiwi You're aware that's the overly complicated way of calculating RC, right?
okay. I'm going to reboot. lmao
14:18
@DanPantry One is a layer deeper. Perhaps it can't find a dependency now?
@DanPantry What if you put that one also in a subdirectory as a whole?
@Mast No clue, I hope I understand this some day later when I'll make these exercises
So... Two nuclear power plants in Belgium got closed because of small cracks a few years ago, and now they're wanting to reopen them, but nowhere it says that the cracks have been fixed
Seeing that this is Belgium, I wouldn't be surprised if they didn't fix those cracks
There is no Product Backlog at all, only tasks...
@skiwi RC in seconds is literally R*C
@Phrancis Consider all tasks to be part of the backlog and work from there ^^
Well sure, except there's basically no overall direction, just a whole bunch of mostly unrelated interoperability tasks, various setups for various customers...
Group'em
14:26
I guess our team is "special" like that
I heard that the company where I got in touch with via a recruiter lets the developers (mostly aged 20-30) determine what technology they use, and the boss is okay with that
Sounds better than a non-technical boss that makes technical decisions
@skiwi reminds me of thecodelesscode.com/case/194
2
Monking!
@Mat'sMug Bonjour!
I'm supposed to know all of this in 8 weeks... phys.tue.nl/nfcmr/natuur/Answers-exam-21jan-2015.pdf
14:36
@Phrancis last night was much more productive :)
in VBA Rubberducking, 9 hours ago, by Duga
[retailcoder/Rubberduck] retailcoder pushed commit 7ab0bf55 to next: fixed some parserstate design flaws, and made some progress on the ParseCoordinator. still throwing InvalidOperationExceptions though, and code is getting messy.
in VBA Rubberducking, 9 hours ago, by Duga
[retailcoder/Rubberduck] retailcoder pushed commit ae33e99a to next: rebuilt grammar/parser
@Mat'sMug Ah, just casually rebuilding the grammar/parser
fixing grammar bugs in the .g4 file tends to require that :)
I'm hoping to get the ParseCoordinator into working state before the end of the week. there's some mind-boggling Task stuff going on in there, and it's getting messy
Hm. Someone just answered a Javascript question by saying what they'd do in Python (and gave advice only possible in Python). That's clearly a bad answer, but is it actually not an answer, since it's not really relevant to the OP?
@skiwi Sounds good in theory, but pulling it off successfully is quite difficult.
@SuperBiasedMan If it does not review the code, it's not an answer.
@Mast Appereantly it's working already
14:40
Monking
@SuperBiasedMan ^^ agreed with @Mast
If I to the next round of interviews, then I'm hoping to find Git
@skiwi Go there, now.
@skiwi Exercises like that are a matter of practice. Solve it with hints, solve it again without, solve it again for good measure.
And after a week, repeat the last two steps to see you still know them. If not, do all 3 and try again in a week.
@SuperBiasedMan Which question was that?
And thanks for the responses, I wanted to confirm since it's a first post.
14:46
@SuperBiasedMan, Regarding your sys.ps1 question on SO. My prompt doesn't change when I do a sys.ps1 = '=> neither in idle nor in IPython... Should the change be immediate?
> Eval the resulting string
...
@Mat'sMug Very, very bad advice.
In Python, there is almost never a good reason to use eval
@SuperBiasedMan Did you flag it? It clearly isn't a good answer...
14:49
@holroy I actually couldn't change it either! Despite the popularity of my answer it didn't work for me haha. IDLE doesn't let you change it on the fly it seems, at least not in 2.7.
@holroy It's not just a bad answer, it's not an acceptable answer for this site.
The change definitely should be immediate.
Yeah it's got at least one delete vote.
question is, why does is only have one delete vote?
It's 100% bad and not even an answer. More like musings on the problem to be honest.
@Mat'sMug Because I can't delete vote answers ^^
14:50
@SuperBiasedMan HeHe... So your massively upvoted answer doesn't really work?! :-p I'm on 2.7 as well, and it surely doesn't work...
@Mast seems the issue must have been a dependency issue, although I'm nomt sure where the discrepency snuck in
And deleted
@Mast you.... I always forget that. get yourself some rep will ya!
@holroy My most popular answer doesn't work for me, my second most popular is just "use a dictionary"
It could find the dependency, it must have been that node-neo4j was a different version or something...
14:51
@Mat'sMug ^^
You're not the only one.
The only conclusion I can make is I'm one big slacker.
@SuperBiasedMan That's funny... I've been surprised many times related to which answers receives a fair share of votes, and which doesn't. Some of my best answer isn't upvoted that much either...
@Mast Or you're underappreciated.
@holroy Same. Not gonna complain when this one gets a lot tho, I might actually reach close vote level soon.
@SuperBiasedMan I'm not posting enough answers. My questions and answers are usually well received.
@holroy a lot of it depends on the question's exposure
Zak
Zak
14:53
@holroy It's a pretty normal interaction of standard behavioural biases in any large group of people
@Mast Oh, sure. That's the sensible way to look at it
Exposure, SEO, stuff like that.
@Zak from now on I'm calling you Doctor Z ;-)
Zak
Zak
Propensity to upvote already upvoted answers (and same for DV).
The vast majority being of below-average ability (due to the nature of averages).
@SuperBiasedMan From 30 answers, my top 5 are 15/13/11/10/8
14:55
I'm voting to close this question as off-topic because it should probably be moved to codereview.stackexchange.com — Joe Kennedy 42 secs ago
Zak
Zak
Both the above increased by a general lack of time spent critically examining Q/A chains
Exposure (chaotic and somewhat random)
I should post more questions...
0
Q: Naive Bayesian Implementation C++

HomerdoughFor my assignment, I have to take a data set and stratify sample it into three different training sets (one with 10%, one with 30%, and 50%). Then I have to classify it using a Naive Bayesian classifier I believe I did here, but since the code is very non-functional, I'm not sure if I'm going ab...

Zak
Zak
In short, whilst In General, better Q/As should get more upvotes, whether any good Q/A in particular will be heavily upvoted has a very chaotic probability distribution
@Mast I have about the same from my 197 answers. I should post more questions too really...
14:58
@Zak So true
@Zak especially when you factor in
120 question. Top question is and has double the score of 2nd-best score.
@SuperBiasedMan Unfair... I'm averaging on 7... ;-(
If you're talking overall average I'm sure I'm pretty low.
@Mat'sMug Your highest scoring question has 68, in
Zak
Zak
Of 9 answers, my scores are 0,1,2,3,3,4,5,6,7 (damn you extra 3, messing up the sequence :P )
15:00
@JoeKennedy not quite. First, it's more of a whiteboard design question, and Code Review is for reviewing already-designed, working code. Second, "because it belongs elsewhere" isn't a valid close reason. To migrate a question it must be off-topic here in the first place. Hence, "too broad" would be a much better close reason to pick. — Mat's Mug 2 mins ago
That's including -3 from downvotes.
@SuperBiasedMan Top 5 of 86 answers...
My up-time counter in Windows went haywire. I rebooted this morning, but the counter is awfully high.
Last number is seconds...
Ah, I forgot my unfair most popular on here is a question about reversing strings in Python. Half my answer was just about two builtin mehods.
Zak
Zak
Also, I hadn't realised my selfie was on 0 votes.
Worldbuilding confuses me.
The hungarian notation hurts my soul
5
Six answers to my question and no up (or down) votes.
Zak
Zak
@DanPantry I know, I know. I know better now.
@Mat'sMug that's fair, you're probably right, so I've retracted my close vote. However, it is valid to close a question because it belongs elsewhere. That's why there's an off topic close reason "This question belongs on another site in the Stack Exchange network", though Code Review isn't one of the sites listed there. — Joe Kennedy just now
Zak
Zak
15:07
OH, crap
Look at this revision I found from Community. It's plain evil.
Instead of fixing the problem, it makes the problem worse.
Note: DON'T FIX IT
Questions like that should rot away instead of popping up in the re-open queue twice a day
Zak
Zak
@Mat'sMug That selfie codereview.stackexchange.com/a/104030/81541 is actually on the wrong question. Whoops. It should be on this one codereview.stackexchange.com/questions/101461/… . IS that something you can fix?
@Mast you might be interested in this SuperUser post
0
Q: ES6 call `this` in Array.filter

guillaumevincentDoes exist a cleaner way to call a static method inside ES6 Array.filter function ? mine(input = '') { var anwsers = this.constructor.translate(this._defaultAnswers); var self = this; return anwsers.filter(function (answer) { return self.constructor.match(input, answer); ...

@Vogel612 So a restart performs a full shutdown where a normal shutdown does not?
15:11
@Zak nope
Madness.
Well, at least that explains why the number is so high. Thanks for the pointer @Vogel612
@Mast at least that's how it was for win 8,yes.
Zak
Zak
@Mat'sMug Okay. In that case, do I just delete and then re-post in the correct place?
Running 8.1 here, so shouldn't differ too much.
probably since a restart was required for kernel changes, which may only apply when you clean up all of it in the CPU
15:13
@Zak yup
gosh lecture for this subject is boring to death
So, perform a full shutdown, boot to Ubuntu, put current Python project on a stick, move stick to server, copy, in the meantime boot Windows again, I'll be back in 5 minutes.
I'd make it an abbreviation but nobody would get it anyway.
2
gah, trying to architect a solution for our business is hard. turns out there's no easy way around data duplication when you want to have searching and data warehousing
but advocating for the duplication of data 3 times makes me uneasy
what's the problem with the normalization?
OMGosh, I've been working this job here for 3 months, and just now I'm informed that someone developed an internal app to run the same query across multiple servers & databases. Wow.
15:16
@DanPantry what's your DW architecture like? ODS > NDS > DDS?
@Mat'sMug Right now, we just have a collection of SQL databases. Let me paint a picture for you of the current problem:
The app we are writing is going to supersede a legacy application. All the data in those apps are split into 9 separate databses, one for each country.
0
Q: How to Implement Event-triggered Callback in C++

KingJAssume in a system, users will register a callback function with system and that callback function will be called when an event is triggered but if the event is already triggered, the user will synchronously call the callback function. For example, user i registers cb i at time Ti, and the event...

0
Q: SPOJ - (SUMFOUR) Find no of quadraples (a,b,c,d) from 4 respective arrays such that a+b+c+d=0

Gulshan RajMy code is given below #include <cstdio> #include <algorithm> using namespace std; #define MAX 10000001 int arx[MAX]; int ary[MAX]; int main(){ int n;scanf("%d",&n); int tmp1[n],tmp2[n],tmp3[n],tmp4[n]; int n2=n*n; for(int i=0;i<n;i++) scanf("%d%...

The current way the new app is going is having one database with all of that data in.
Woot! Fixed an error this morning and I've only been at work 15 minutes!
15:18
This presents an issue: We have a few features that we know are going to be perf intensive. Plus, current we have approx 480GB of data but we are expecting that to grow massively due tot he new system storing more data than before.
@EBrown Yeah, though I think there is at least one insurmountable flaw in the premise of the storyverse. Family bonds are incredibly strong for very good reasons - especially parent/child and particularly mother/child.
So, we have stored procedures that search the database in one of two ways and we also have to provide reporting on individual user's performance stats which can only be done by crunching stats made in the past X period.
@Donald.McLean Well in this particular society, no one feels anything and that causes it's own set of issues.
@EBrown eh, been at work for 45 minutes and all I did was check to see my ETL didn't blow up, write a query or two, and chat
The issue is tha we are a global company, so combining all of this into one database presents the problem: How do we perform maintenance on the server without downtime?
Further, how do we mitigate the fact we have a monster table
15:19
I think the answer by Ville Niemi makes the most sense. I think there can be a peaceful resolution to the issue.
plus, the business has locked the schema - we can't make any backwards incompatible changse for compatibility reasosn with the legacy app.
@EBrown I just don't see that happening, sorry.
@DanPantry not at all...
My out-of-the-park solution was to suggest having an island app (database, etc) for each country. When a modification is made to any data, push it to elasticsearch so that it may be searched and push it to redshift for the BI team
or you keep a read-only backup like SO does, so you at least have no read downtimes
15:21
@Vogel612 this is a CRM. A huge part of the functionality is write
So R# is being a pita already.
we need to be able to see all of the data at once in some places (from all countries) for business reasons.
thoughts?
also the current solution doesn't horizontally scale at all. it's ram and 64 corem achines all the way down :P
a full in-mem cache with write-through?
@DanPantry so.. you've described the "operational" data that the software uses.
that's how SO solved it. They write through the cache to disk, but de-facto only access the in-memory cache of their SQL cluster
15:22
make a scheduled ETL to bring everything into one normalized data store overnight
We're a 24/7 company
@Mat'sMug weekend?
The only downtime we'd have is Sunday and slightly lighter usage on Saturday
And if you work on Sunday it costs the business 2x
Plus, pushing all release windows to Sunday sucks quite a bit for obvious reasons
then they'll just have to pay 2x
doesn't need to be down. the scheduling depends on how up-to-date you need the DW to be
15:23
@Mat'sMug Is there a way to tell R# to revisit and reparse a dll?
R# doesn't parse a dll...
I'll discuss this more when I get home as I feel this will be quite a lengthy discussion
It thinks that all the symbols from this other project (in a different Visual Studio solution) are unresolvable.
@DanPantry yes, especially since we don't have the full picture
Even though Visual Studio builds it just fine. (Both solutions, that is.)
15:25
@Vogel612 @Mat'sMug I have an interview at 5, so I'll create a chat room to elaborate after that.
ah, yes. happened quite a number of times with RD, mostly after a merge. Clear R# cache, restart VS
@DanPantry ok!
good luck!
How do I clear the R# cache?
Nevermind, found it.
@Vogel612 Confirmed it still works at 8.1
What a thing of beauty!
@Phrancis Nice sanity check ^^
15:28
Those are only the Production databases, too ;-)
@Mat'sMug Thanks, clearing the cache did it.
@EBrown Unless that's a server, you should probably reboot. I've never trusted Microsoft with long up-times.
hrmph... my battery timer is really not good at saying how long it's got left...
@Mast It's my work desktop. ;)
I do need to reboot, though. I'm sure it has a metric tonne of updates to apply.
15:30
It's so damn fast too, running that query on almost 300 databases (on multiple instances) took like... 3 seconds?
OHAI @EthanBierlein!!
fprintf returns the number of characters printed, so %n is irrelevant. I'd say that it is always better to use fputs (not puts, unless you want the extra newline) and that the fprintf idiom asked about is not acceptable (in a code review done by me, at least), but I suppose that's a matter of opinion. — rici 28 secs ago
lol
so, how's it going?
@EthanBierlein dieing of boredom in this lecture, and you?
15:41
trying to not get caught chatting here in class
it's a study hall and apparently we need to "work", even if you have nothing to "work" on.
it's also hard to chat when there's only two wifi routers that 300 people are trying to use at once
@EthanBierlein You can work on your Alt-Tab skills
lol, it's Ctrl-Tab in chrome
Zak
Zak
Aw, I'm out of stars :(
Ctrl+[num]
even better
Zak
Zak
15:45
@Boni So THAT's how you do that
@Boni that's only useful when you need to skip multiple tabs though
It's useful for fixed tabs, like email / chat that you place in front.
Yay, fire drill
2
May be start heading home instead.
In case of fire...
15:48
@Mat'sMug You're supposed to commit and push all your code when a fire drill happens. Chatting isn't one of the obligatory steps.
0
Q: How make it work?

MisqHello this is my simple code, and it's not working. What i have to chage to make it work? Maby some bigger changes? public class Body extends JFrame implements ActionListener { JButton off; JTextField sec; JComboBox<Object> time; public Body() { setTitle("Shutdown pc"); setSize(250, 100); set...

@CaptainObvious HAMMERTIME!
aaaand community-hammered in seconds
"Thanks for the feedback! Once you earn a total of 125 reputation, your votes will change the publicly displayed post score."
yeap. downvotes are only for people that post good stuff
15:51
@Boni You still have a reputation of 1 on CR?
@Mast, Can you explain why this answer (written in Java) takes so long compared to a Python solution?
@holroy It's Java.
Only really joined SO for the chats.
I thought Python was a relatively slow language?
HeHe... But a 100 times slower than python? The brute force version is in the same order as in Python...
15:54
@holroy On a more serious note, Python tends to score pretty well on Euler problems. It's probably in the way it's set-up. Java is created to do a lot bigger things and does those well.
@SuperBiasedMan Nope.
Ehh... wrong, that was timing with a 100 repetitions, or so...
/me was wrong in stating that the brute force was in the same order....
@holroy So it's still slower, but not as much?
@Mast I did the same sliceing and diceing in Python as the answer provided, and then I did one version simply adding the 50 digits number. Both these versions Pythons executes at roughly the same speed. And that speed is almost a 100 times faster than the Java version...
@holroy aside from the fact that it's java, the work is done on Strings... that's slow as hell
And Python has very optimized slicing.
IIRC
15:57
at least in java. Python seems to do a little more interesting things with strings
Zak
Zak
@holroy Probably because mathematical operations are already highly optimised in computers
@Vogel612 Then the guys implementing str -> int in Python (and big integers :-) ) have done a massive better job than those implementing Java!
@Zak Depends on the operator.
Oh right, I forget that Strings are actually more problematic outside Python.
It's actually faster to add negative numbers than it is to subtract positive numbers.
Likewise, it's faster to multiply by a reciprocal than it is to divide.
15:58
@holroy meh. is the solution using Integer.parseInt()?
(Provided you can easily precalculate the negative and reciprocal.)
because that's internally compiling a pattern over the given string to match it against the definition of an Integer, IIRC
Long.parseLong...
This question has a lot of quite decent answers:
7
Q: Camp challenges in one program

Dylan BlackMy counselor in a camp I went to over the summer gave me a code challenge. To take 6 challenges (listed below) and have all of them in one program, and have the user choose which one to use. Please review all of my code. If there is anything wrong, inefficient, or if I use bad practices, let me k...

which is obviously SLOW
15:59
It's bloody awful code, so definitely needed a CR.
it'd be faster to not work on strings
@Mast Your answer should also include that switch is faster than if blocks.

« first day (922 days earlier)      last day (3392 days later) »