« first day (1130 days earlier)      last day (2886 days later) » 

12:00 AM
RELOAD! There are 2417 unanswered questions (93.0482% answered)
 
12:10 AM
-1
Q: Best way to split a text line into multile text lines based on the number of carriage returns (C#)

Burrell  HillText example - Needs to split at every 48th Carriage return. TEMPLATEID1 BLK_WORKSTATION MAN_CODE LOAN_NUM BORROWER CO_BORROWER BORROWER_ADDRESS1 BORROWER_ADDRESS2 BORROWER_CITY BORROWER_STATE BORROWER_ZIP PROPERTYADDRESS1 PROPERTYCTYSTZ INVESTOR_NAME LIEN_POSITION PLSID PRINCIPAL_BALANCE UNAPPL...

 
unwritten code
 
not even any code...
 
12:55 AM
Aaaaah, good old days!
 
I had 3 issues failed in QA, the root cause on all of them being shoddy merges from the ones who reviewed it.
 
Also lol at that question Captain Obvious
Will be here for just a few minutes.
OK.
Bye.
 
1:41 AM
ok....
 
0
Q: This is a Tourism code but unfortunately it is not currently working can someone please adjust it and explain how they fixed it

Liam WhiteMENU print("****************************** Welcome to Noosa ******************************") print("* ●▬▬▬▬▬▬▬▬▬▬▬ஜ۩۞۩ஜ▬▬▬▬▬▬▬▬▬▬▬● ") print(" ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ ") print(" ░█...

 
@CaptainObvious uh, no
 
Quite flashy.
 
yeah, well... "Programming challenge everyone: here's some broken code, fix it and explain how you did it" - #Fail
 
@CaptainObvious oh hey I've been there
it's pretty nice
 
2:27 AM
0
Q: Temperature conversion table in C++14

user6378400I'm learning C++ and thought I would try my hand at writing a basic program in modern C++. I'm always looking for ways to reduce my code to STL algorithms and simplifying areas that would require refactoring. I'm also trying to make my code as readable as possible. Limitation I can't modify t...

 
 
2 hours later…
4:07 AM
Better suited for Code Review SE — heemayl 45 secs ago
 
4:26 AM
0
Q: (Continuous Integration & GIT) - how to simply with bash script

WonderLandIn my company I follow the following workflow ( I think it can be defined a kind of 'Continuous Integration' ) Workflow: We have 3 fixed branches ( staging/master/production) Every push to staging or production automatically deploy to staging/production server. We use git in the followin...

 
4:36 AM
0
Q: Faster Computation of Product of Permutations?

JazzyMatrixGiven a graph \$G = (V,E)\$ with a unique labeling of each vertex, let the transposition \$(i,j)\$ (where \$i,j\$ are the labels on adjacent vertices) represent selecting an edge and swapping the labels \$i\$ and \$j\$. I would like to take a list of edges in a graph (a cube in this code), and d...

 
Monking
 
5:10 AM
Then your question belongs on Code Reviewtripleee 30 secs ago
 
5:28 AM
0
Q: White gap on right side of webpage?

joeldI've literally been looking for an hour now, stumbled on this site, tried a bunch of different solutions from other topics and haven't gotten anywhere. If anyone can help me out, you would be my personal hero!!!! //HTML <!doctype html> <html> <link href="CSSCODE.css" rel="stylesheet"...

 
5:38 AM
0
Q: Power of Two - request for Code Explanation

mikuya707Given an integer, write a function to determine if it is a power of two. I saw a version of solution as below: public boolean isPowerOfTwo(int n) { if (n <= 0){ return false; } else if ((n & (n - 1)) == 0){ return true; } else { return false; } } ...

 
@CaptainObvious off topic asking for code explanation
 
6:32 AM
StackOver is for coding problem,. You want code a review .. Post your question on codereview.stackexchange.comMerlin 37 secs ago
So far everything seems to be working as it should..! For facebook I used 'Facebook module loader' instead of the async plugin, after reading some posts comparing the two, it seemed like a better solution. Once I finish I will update my post/code about this on codereview, perhaps it could be helpful to someone. — dimk 13 secs ago
 
Hey @JNat.
 
Mornin'
 
How're things?
 
Good. You?
 
I'm alright.
I have a favour to ask, sadly enough.
Can you see if anyone at SE can get me an answer to this Meta.SE question?
 
6:41 AM
0
Q: How to Optimize the following code. python #mapreduce #pearson coefficient

Praveen Allami am trying to find the similarity between the two movies using pearson correlation coefficient. the programs is working good for small inputs but for large inputs(like 100000 lines) it takes forever time. my professor said it would take few minutes. but my program is executing forever. the input...

 
@EBrown I'll have a look an see what I can do, sure :)
 
Thanks, I greatly appreciate it. :) I just want to make sure I'm not about to break any ToS with what I'm working on.
If they have any specific requests for how I display/release data, I'll gladly take them into consideration.
 
You can attract more answers if you move this question to Code Review Stack Exchange. — Selcuk 59 secs ago
 
7:01 AM
yay time to learn React!
 
0
Q: how to calculate running median more efficiently

Huanian ZhangI borrowed some code trying to implement a function to calculate the running median for a ton of data. The current one is too slow for me. Below is the code: from itertools import islice from collections import deque from bisect import bisect_left,insort def median(s): sp = [nz for nz in s ...

 
7:28 AM
In case your code already works, you may need to visit Code ReviewSourav Ghosh 23 secs ago
 
@Quill you should make a user script when someone types a greeting to @Duga informing them that she is a bot ^^"
 
uh, no. Simon should just give her a voice already
 
crikey
 
Hi guys
 
@overactor hello
( ͡° ͜ʖ ͡° )つ──☆*:・゚. i broke the build
 
7:36 AM
sounds magical
So, I read a few meta posts about self answering on Code Review
I see that it's allowed, but couldn't quite figure out if it is encouraged or rather frowned upon.
@DanPantry the swift compiler is crashing on my code
again :(
 
@overactor :(
@overactor It's encouraged on all of SE
 
What build did you break, by the way?
 
I have a featuer branch and pushed it last night but didn't pay attention to the fact that [ReadOnly] actually should be [ReadOnly(true)]
 
@overactor as long as the self answer is in the style of a code review it is ok. Just dumping the improved code won't be good.
 
@Heslacher Obviously, thanks for the answer.
ouch @DanPantry
 
7:40 AM
1934
A: How does Facebook disable the browser's integrated Developer Tools?

AlfI'm a security engineer at Facebook and this is my fault. We're testing this for some users to see if it can slow down some attacks where users are tricked into pasting (malicious) JavaScript code into the browser console. Just to be clear: trying to block hackers client-side is a bad idea in ge...

> I'm a security engineer at Facebook and this is my fault.
lol
So this is the kind of thing I'll be screwing around with at Riot then? :p
 
@Heslacher well, first I need to get my 'improved' code to compile
 
;-)
 
@DanPantry did you get a new job?
 
@Quill Riot have asked me to interview for the Security Engineer position
I haven't got it yet, but I'm.. 80% sure I will
 
\o/ yay!
 
7:42 AM
That's pretty exciting
congratz
 
It is. But it's a double edged sword because I'm on edge and worried about it.
The interview process is quite long, so
 
How long has it been going on for?
 
I first got contacted about 2 weeks ago
There are 4 remaining interviews which will last at least 4 weeks
 
As you have an "ugly" but working solution, this might be better as a codereview.stackexchange.com question. — weston 52 secs ago
 
wow
 
7:48 AM
what language/stack would you be working in @DanPantry?
 
@Quill It's Security Engineering, so, it's pretty varied
one of the key interests I have in Riot though is that they generally say "Within reason, you have total ownership of the code: you can use whatever you want to get the job done"
I mean, I know they have some codebases of C++, Erlang, and the new client is obviously written in HTML5 (that's common knowledge)... basically everything
 
They were in that top 10 (or 5, maybe) list of Game Companies to work for
 
they were 3rd best company to work for in ROI, which is the office I would be workingi n
and they seem pretty awesome, too
I am completely honoured to be approached by them, so I just hope I do well and get the job. It would be a huge change
 
Who is Riot?
 
Riot Games
Creator of League of Legends
 
7:57 AM
Eww
 
Important question: Will they let you chat at work?
 
They let you play League of Legends at work.
2
I'm pretty sure they'll let me chat at work.
 
0
Q: Steering of a model according to behaviors / events

GildrathsWe are steering a model according to drivebehaviors, the return value of each drivebehavior is the next drivebehavior. Additionally the model has events that can be thrown, that should do a different drive behavior. For this we have a queue that saves the event till the next execution cycle. p...

 
Ripe zombie; open question with answers, at least one answer having score 0, no answer having score > 0: Functional tree iteration in Common Lisp
 
@EBrown not a LoL fan?
are you a LoL fan, @DanPantry?
 
8:08 AM
Is water wet?
2
 
I've played it for a few years, so you could say that... :-)
 
Are you allowed to prefer Dota when you work at Riot?
 
I wouldn't recommend it
 
0
Q: Display UI From a background thread in Swift

nmnirI have code that runs in ViewContainer. We made a button that when the button is pressed it open a new screen. This is the code of the Action: DialpadManager.sharedInstance.showPadFrom(self, type: DialpadManagerPads.incoming, number: "123456") In order to open the UI I made a static fu...

 
@overactor He plays quite well at a relatively high rank.
 
8:10 AM
@CaptainObvious print("Incoming!!!!!!!!!!!!!!!!")
 
Monking all
 
bloody hell
Thanks @Mast
and monking
 
@Mast Hiring from your userbase is always good I suppose
I think I've never played a Moba
 
@DanPantry Yuck.
I think TF2 was my first MOBA, if you'd consider that a MOBA.
 
@overactor It stems from this comment, basically.
 
8:12 AM
I did play TF2
 
@DanPantry I remember when you wrote that comment, awesome it had such an effect.
 
Yeah, apparently Riot xNymia's boss liked my approach and asked her to reach out to me
 
If this is going to be an extended discussion about games, it'd be best to take it to The Nth Monitor
I'll be happy to move recent messages, if you'd like
 
I don't think it's going to go much further into the games territory, tbh
 
Cool :)
 
8:18 AM
Nah, we're just glad for Dan that his awesome comments lead to a job.
 
Don't count your chickens before they hatch. I haven't gotten an offer yet.
I'm excited as well, but I don't want to get too excited and then let myself down.
 
Monking @Zak
 
Zak
Monking
 
Happy to hear about it as well, I think working for a game company, especially one that makes games you are a fan of, would be great
 
0
Q: Two python classes with different approaches to readability

Simon KemperThe following - working correctly - first python class is used in one of my current project and is a totally different approach to how I normally would take things. Before I refactored the class into the above I was not declaring instance-properties/variables. Instead the whole update procedure t...

 
8:22 AM
"Sure, it has less lines of code but in my eyes it's harder to read."
4
Someone should frame that
 
Putting a star to it is the best I can do.
In Python, you can make pretty much anything a one-liner.
 
Yeah, that's kind of problematic, sometimes, I think
 
So the first thing you should realize when writing a language like that is that it's not about the amount of lines but about the amount of (and impact of) operations.
Same goes for Ruby I think.
 
Is def __init__(self) in Python the constructor of a class?
 
Zak
@Phrancis *fewer
 
8:25 AM
@Zak I was just copy-pasting from the question that just came in
 
JavaScript can execute strings. So with JavaScript, if lines of code is your major concern, you can put everything in an exec. Don't ever do that.
@Phrancis For some values of constructor, yes.
 
Ouch
@Mast That'll do, I suppose
 
@overactor It's encouraged on all of SE like Dan said, but, it's hard to do right on Code Review.
 
python is rather big on enforcing coding styles, no?
@Mast why is it hard to do?
 
@overactor Most of the PEP8 is enforced within companies, except the 80-character limit.
 
Zak
8:28 AM
IANAL, and this isn't an official answer, but I've done both in the past and haven't been sued yet. — Undo yesterday
@overactor Because, assuming you already wrote your code as well as you could, then you'll have nothing useful to add to a review, because if you knew how to improve it, you would have already.
 
That ^^
So the only way you can write a good selfie, IMO, is when your question went zombie and you learned a couple of new things in the meantime.
 
Zak
Usually, when I selfy, It's because I wrote the code some time ago (say, a month or 2) and I've learnt things in the meantime.
 
I did some further research and managed to improve my code quiet a bit (I think)
 
@DanPantry That answer is riddled with bad ideas.
 
However, I can't get it past the compiler :(
 
8:31 AM
> The actual code is pretty similar to @joeldixon66's link; ours is a little more complicated for no good reason.
 
@overactor Python is a bit of a unique case because part of the style of the code (in particular, indentation) replaces more traditional constructs like braces and such. PEP8 is a tool that makes it easier to write code that works and doesn't look too bad
 
@overactor Python is interpreted, not compiled.
Well, usually.
Libraries are actually compiled on the first run, but that's a long story.
 
@Mast I was talking about Swift in that statement
might have been a bit confusing, sorry
 
Ah, np.
 
0
Q: Swift compiler hanging up (possibly on type-inference of generic parameters)

overactorI recently wrote a function and some associated code that acts as a sort of switch expression (which worked as expected) and posted it to CodeReview.SE I have since started to try and improve my own code and seem to have hit a wall, as it seems that my code makes the playground hang up and won't...

 
8:32 AM
Well, if you can't get it past the compiler, I wouldn't say it's an improvement.
3
 
^
 
@Mast it could be a bug in the compiler from what I'm seeing
 
Compiler should never fail even your code have issue. You should file a bug. — Bryan Chen 25 mins ago
 
All programs have bugs, even compilers
 
@Mast already done by now
 
8:33 AM
Yes, compilers should never fail. Looks angry at VS
 
53 mins ago, by overactor
@Heslacher well, first I need to get my 'improved' code to compile
@Mast ^
@Mast I was under the impression that VS was robust...
is it not?
 
For some values of robust
VS is not the compiler though, it's an IDE (and probably a few other things)
 
It's less robust than it used to, IMO.
@Phrancis And that's exactly where it went wrong. It's too big.
 
@Mast Yeah, and the UX sucks too
 
@Phrancis I rather like VS from what I've experienced
But I haven't used it all that much
 
8:37 AM
If you leave out TFS (which is crap) I suppose VS is okay
 
I'd say it's better than Eclipse, Xcode and Delphi shudders though
 
I don't like Eclipse either
 
I'm okay with it really
 
Haven't used the other two
 
I'm not exactly a power user though
 
8:40 AM
@Phrancis I actually think VS is pretty damn good, if you ignore the old .csproj files
TFS is a separate product to it
VS2015 with R# is crazy powerful
 
I haven't gotten around R#. I don't C# enough to R#.
 
R# isn't just for C#
 
(what is R#?)
 
it also has hints for C#, Visual Basic, HTML, ASP.NEt, razor, protobuf, json, javascript, typescript, css, xaml, xml and build scripts
@overactor ReSharper
 
related to F#?
 
8:42 AM
@Phrancis you're thinking of F#
it's a visual studio plugin by jetbrains
 
@DanPantry Yes, I just realized that
JetBrains <3
4
 
they don't screw around when it comes to editors
like you said @Phrancis a while back
 
@janos I've accepted this edit, but in hindsight I'm not sure I should've. Your answer, your call.
 
@DanPantry Right. IntelliJ is badass, and WebStorm is cool too
I can imagine R# (Resharper) is pretty tight too
 
@Mast At first glance, I'd say that that modifies the intent of the answer
 
8:44 AM
^
 
@DanPantry At second glance it only adds to it and doesn't go against intend.
 
But I'd have to read the entire question to be sure
ain't nobody got time for dat
 
Hmm, perhaps I'm becoming a mac fanboy... I just tried to download the default mac font to use in my project
 
helvetica?
 
I wish I had helvetica on windows..
Actually, I just wish I had Mac's font engine
It's so much better
 
8:45 AM
@Mast I'm not sure why the editor added a code block, it's your call though, it can be rolled back
 
@overactor Their new one, San Francisco
 
@Phrancis Because it's code I'd say.
 
57
Q: Is there a free 'Helvetica Neue' alternative?

drpelzDoes anyone know any other fonts similar to Helvetica Neue (free for commercial use)? I'm working on a big website project where 'Helvetica Neue' is used heavily. I need a font that looks almost the same, is free for personal and commercial use, and looks good even when used with copytext (e.g....

 
@Quill I've downloaded Monaco on my Windows machine so I could use it in all my IDEs
 
Is it bad I mainly use Notepad++, Atom and gedit for development?
Most of the compilation happens from the commandline anyway.
 
8:47 AM
I don't see a reason why it would be bad
 
Zak
@Mast I'd say you should use whatever tools make you a more effective developer.
 
^
 
@Phrancis I think Monaco looks quite bad on Windows
because of the aliasing going on with fonts
 
Haven't really noticed any of that myself
 
I did this test: kosmos.welt.de/2015/06/…
and always picked the one I found ugliest as Helvetica
 
8:49 AM
@overactor Note, link is German
 
I only got 41% right
 
@Zak I'm pretty sure I could be more effective, but I haven't found my magic bullet yet.
 
@Mast I use a mixture of vim, VS and Sublime
and I have "vim"-mode enabled in Sublime
I did have it enabled in VS but the plugin was pretty laggy and buggy
 
@Mast Depending on the language(s), chances are there might be IDEs that are better, but IDEs also come with some disadvantages (and possibly bugs)
 
@DanPantry whoops, it's also not a direct link to the test (which is in english)
 
Zak
8:51 AM
@Phrancis *cough* Rubberduck *cough*
 
gonna bash some code out for an hour or so, TTYL
 
@Phrancis The main disadvantage of an IDE is that I haven't found an IDE yet that can handle all languages I throw at it.
 
@Zak Rubberduck is not an IDE ;p
 
Which include C, VHDL, Ruby and Python.
 
Zak
@Phrancis You haven't seen the stuff that's coming in 3.0 :)
 
8:52 AM
I do use VS for C++ and C#, but I next to never C#.
 
@Mast That's a fair statement, IDEs are specialized
 
Zak
By the time they're done with it, the VBE is going to be unrecognisable
 
@Phrancis which is also their strength
I'm so reliant on IDE's, it's ridiculous
 
@overactor Unless you're a polyglot.
 
@Zak Anything to make that damn VBE better is an improvement, if RD 3.0 is going far above and beyond then all the better :)
 
8:55 AM
@Mast you could use several IDE's though
 
I might be a bit sadistic, but I kind of want to write code for the chutes & ladders challenge in SQL
4
 
though I admit, that sounds less appealing the more I think about it
 
@Phrancis I think you could do that.
@overactor Especially since I work on different operating systems.
 
That does further complicate things
 
Public repositories on GitHub, private repositories on a webserver, so I can access my code from anywhere.
Which is freaking awesome.
 
Zak
8:58 AM
Somebody should write it in BrainFuck ^^
 
@Zak You realize Brainfuck has a 1D tape, right?
You can't matrix.
 
Zak
@Mast S&L is just a number line with GOTOs
 
Oh, you want to do it like that.
 
Zak
That sounded funnier in my head.
 
Feel free to implement one ^^
 
9:02 AM
0
Q: Deduplication class - suitability for unit testing

Matt ThrowerRecently I asked a question on ProgrammingSE about public vs private methods fo unit testing, which generated a lot of interesting responses. I only posted a skeleton of the code there, as it was a question about structure and not about the code itself. However, several respondants queried wheth...

 
@Mast OK, I think I will, I can kind of picture it in my head now
 
9:23 AM
Then you should send it to codereview.stackexchange.comnanodanger 53 secs ago
 
that's a pretty cool bot
 
@nanodanger Might be considered stub code there. Not sure whether it's a good fit. See their help centre. — Mast 35 secs ago
 
suck it hang man!
 
refreshes front page
 
def create_gown(width, height):

print '{:>{}s}'.format('_'*int(width/2), 10)
print '{:>{}s} {:>{}s}'.format('|', 11 - int(width/2), '|', int(width/2)-2)
for i in range(height-3):
print '{:^{}s}'.format('|', 20)
print '{:^{}s}'.format('-'*width, 20)

if __name__ == '__main__':
create_gown(15, 8)
curses the forum formating
 
9:33 AM
0
Q: Does specific type hinting comply why the SOLID principles here

user2180613This is a much simplified version of my SQL Query architecture. I intend to write future proof code that complies with SOLID principles. interface QueryExpressionInterface { public function getArguments(): array; public function express(): string; } interface QueryExpressionFactoryInte...

 
@Phrancis with plenty of db_sendmail I hope
 
@N3buchadnezzar Why don't you do that with just one print instead?
 
@Mast Going to take it into a function, plus it looks better I guess?
 
Multiple prints doesn't look better IMO.
Have you heard about templates?
 
@DanPantry I wish I could delete that command altogether
 
9:39 AM
@N3buchadnezzar You could go for multi-line strings even, but the easy fix would be catting them together.
 
@N3buchadnezzar Doesn't Python have multiline print? (or, make a multiline string and then print it)
 
@Phrancis Of-course Python has multi-line print. You can even simply put a \n halfway in your string and it will figure it out.
template = '''\
%i %s on the %s
%i %s
Take one down, pass it around
%i %s on the %s
'''

for n in range(n, 0, -1):
    print template % (n, x, y, n, x, n-1, x, y)
 
Very nice!
Believe it or not, Java still doesn't support multiline strings
 
Same thing using format instead:
template = '''\
{idx} {x} on the {y}
{idx} {x}
Take one down, pass it around
{prev} {x} on the {y}
'''

for n in range(n, 0, -1):
    print(template.format(idx=n, prev=n-1, x=x, y=y))
 
@Mast Yeah, but I need to change the string at certain places :p
 
9:44 AM
0
Q: how to extract cloud of points from arcgis map with c #

yosrI am new with arcgis of ESRI. And I am trying a quite simple thing which is to extract points from an arcgis card using C#.

 
@N3buchadnezzar Python has no trouble doing so on-the-fly.
 
in Tavern on the Meta on Meta Stack Exchange Chat, 2 mins ago, by sandwich
Wonder what is the total amount of reputation lost in AU targeted voting case... Five-digit corrections here and here.
 
It's Python. It can launch rockets and import antigravity.
 
@CaptainObvious bye
 
 
9:44 AM
Holy mother
 
Holy crap...
He lost over half his rep.
 
his avatar is @Phrancis' old avatar
 
@Quill I noticed that too!
Must be a highly cynical guy like me
 
What even.
 
9:49 AM
Wow, that's really bad... somebody's going to raise hell about this, I bet
 
34
Q: Exchange votes or favours

Jacob VlijmProbably the most risky post I ever posted on AU, nevertheless need to get it of my chest... Don't ask me how I got the impression, nor whom it involves, but there seems to be a tendency lately that people "exchange" favours. No one on AU has any objection to an occasional sympathizing vote, n...

 
I wonder what that query is. We don't have a culture like that on CR, but ours could well be mistaken for something similar.
 
No, that's the kind of voting that is messaging someone outside of SE and saying "upvote this"
 
Yea, that's step one. But who says they won't be targeting Santa votes later.
Say a user walks in here and tells he's 42 rep below a certain number.
We all know what will happen.
Especially if the 42 is small enough compared to the already acquired reputation.
42 over 800 answers is something you just about idle in a day.
But all of a sudden there's a small peak, a small burst of votes on that user.
 
we pimp stuff here (usually not our own stuff) to get more exposure and eyes on it. if those eyes say it's good, then they're entitled to the right to upvote. we don't have negative intentions
 
9:59 AM
No, our intentions are good. I don't doubt those.
But we've never been concerned about our votes getting an audit.
And that's basically what happened here.
Sure, it was necessary if I see the numbers involved. But this will impact SE culture.
 

« first day (1130 days earlier)      last day (2886 days later) »