« first day (1187 days earlier)      last day (2835 days later) » 

12:00 AM
RELOAD! There are 2606 unanswered questions (92.8346% answered)
 
12:22 AM
I love it when you see a genuinely helpful SO answer and then you notice the answerer is a CR regular
 
12:36 AM
@Quill I've stumbled on Mug answers quite a bit on SO
 
Whoops, I was thinking just good SO answerers.
Sorry for changing the topic.
 
All good
 
I've seen Mug answers too, and rolfl answers.
 
0
Q: A simple c++ program utilizing a polymorphic relashionship

BomazIn order to learn c++ I have written a solution to this Kattis problem Basically the program is to accept a number of shapes (circles and rectangles) on std in and a set of points and output the number of shapes that include each point. Seeing as it is my first c++ program I'm sure I have made ...

 
@CaptainObvious I'll edit this
 
12:41 AM
monking
 
Monking
 
monking
 
Monking.
 
Still no answer on my chutes & ladders question after about 2 months...
 
@Phrancis Which language?
 
12:54 AM
SQL
 
Well, duh...
 
Right...
I guess it's pretty unconventional
 
You do the craziest things with SQL.
Even VBA would have been a better choice for that...
 
If you only knew. I have a friend who is much better at SQL than I am, he made some crazy systems for monitoring all sorts of things, that he could probably even sell as a product
 
Tell him to learn a better language for it...
 
12:57 AM
lol
 
You want to write maintainable code, you know...
And extensible code...
 
He does a little C# too, but he mostly works with databases
 
Is it considered rude to do a different community challenge for a month even though it didn't win?
 
@SirPython No it's fine, if you find one that interests you, just do it
You could even do a PPCG challenge, they have some interesting ones in their sandbox
 
I have too many projects.
I want to do Chutes/ladders in ASP.NET.
And the election one in WPF.
And I want to get RD 2.0 stable, and do some VSD/Roslyn features.
I wish I could get my bloody Roslyn test passing...
 
1:01 AM
In that case (just leaving this here): I'm looking for a partner for the CRitter Collaboration challenge.
 
If I get my Roslyn feature(s) done reasonably quickly, I'll help you some.
Just don't do it in VBA please.
 
I wish I could, but unfortunately I'm in and out of town for the next three weeks. :(
 
Maybe we could rope most of the 2nd Monitor into helping and make another community project like RD.
 
@Hosch250 Good luck deciding which language to use ;)
 
@Phrancis C#, of course.
Oh wait, let's wait for F# 4.1 and use that.
 
1:04 AM
I think Simon and EBrown are making a C# / Java hybrid monopoly
IIRC the game server is Java and the client is C#
 
sounds painful
on a related note, I wrote some JAVA today
 
@Quill What for?
 
for a class, it literally just prints Pascal's Triangle <_<
 
Oh.
Yeah, I remember doing similar in my class.
On one hand, I wish I could take some more programming related classes. On the other hand, they are lame.
Working on open source projects is more educational and much more difficult.
 
1:23 AM
yesterday, I literally had to do three hours travel for a 30m lab where we "learnt" how to use select * in Oracle SQL
and the oracle sql repl is so bad
 
Did you tell them you already knew?
 
you get a mark for completing the exercise, it wouldn't matter
 
Oh.
This is inane.
I can't for the life of me get the Roslyn tests working.
They are formatted with XML so it knows how to create a project properly structured.
I'm writing some analyzers for working with doc comments, and the doc comments are being removed by the XML parser when it creates the code string...
 
It's surprising that they're still using XML, I thought they started a JSON transition
 
I don't know.
 
1:29 AM
@Quill As in, the same way you do with every other DBMS? I agree that it's inane, if not insane, to make someone drive to a 30m lab for something you could learn in 5 minutes
 
This is their test setup.
@Phrancis 5 minutes? Some people would have just as hard a time with that as I'm having with the XML things...
 
XML is kind of a necessary evil with many Microsoft products
 
XML is awesome--when it works.
 
^ exactly - and it's usually a PITA to make it work
 
It just doesn't work to have XML nodes as string text inside XML nodes as XML nodes. And yes, I tried using the &lt; and &gt; tricks.
 
1:31 AM
@Hosch250 Hard time with SELECT * ? I have a hard time believing that, for some reason ;P
 
@Phrancis Actually, it is pretty nice when you use Linq-to-XML.
@Phrancis I don't. I go to school with these idiots.
 
@Phrancis It was 1) using select *, 2) executing a sql file 3) trying to insert information into a table
 
@Hosch250 Why in the world would you want to do that?
 
@Phrancis Guess.
XML doc comments inside a code string.
 
Oh no
 
1:32 AM
Help. I just locked up VS.
 
That sounds like a terrible idea
 
Just a small edge case that know one knew about.
 
I suppose the terrible idea was having XML-like code comments in the first place though
 
Neither is a bad idea, they just don't mix.
It is actually surprisingly simple and easy to set up a full solution with multiple projects and documents for testing.
And XML doc comments are handy--to the point that we are going to introduce them to the VBE.
 
I suppose calling that XML syntax "code comments" is not really accurate, isn't that stuff used for actual documentation (manuals, websites, etc.)?
 
1:35 AM
Yeah, and intellisense.
 
Hold the phone... XML docs inside the VBE?
 
They are technically called "documentation comments".
@Phrancis Yeah, in RD. Same notation as VB.NET doc comments.
 
Hm. It's so crazy it might just work
 
It's real convincing when VS says "Clean succeeded" after 100-some failure messages in the output.
 
I really don't get why you are unable to use &lt; and &gt; to escape angled brackets
 
1:41 AM
I tried. It apparently doesn't work.
 
Any error or anything like that?
 
That's what I'm trying to check in the debugger right now.
Just the same error as when I don't do it...
 
Sounds like it might be a different issue?
 
Maybe, not sure.
Something has a handle on one of the things I need after the crash, so I need to reboot.
 
Well, good luck
 
1:50 AM
possible answer invalidation by Phrancis on question by Priya: codereview.stackexchange.com/posts/52590/revisions
 
I just found this zombie I was about to answer, but I noticed that the code is anonymized to the point of looking like example code... any thoughts on it?
 
Well, assuming the names are just changed, we could just answer it as if it was really like that.
Or, we could hammer it.
Given how long we've left it open, I'd probably prefer the first--I'd rather close questions when there is a good chance of connecting with the author still.
 
Fair point, and agreed
 
0
Q: Building a custom response body based on api consumer's need

JordanI've been researching ways to reduce response size on requests in my rest API without adding lots of calls to get back just the Id and single properties. What I've ended up attempting is creating the ability for the API consumer to specify the fields they want back from a default response model ...

 
 
1 hour later…
3:09 AM
that is bad design, which I would not pass in a code review. @KeithSirmons reasoning is sound. — Lo Sauer 54 secs ago
 
3:36 AM
o/
 
3:46 AM
@CrazyNinja \o
 
 
1 hour later…
4:55 AM
@Duga That is bad grammar that I would not pass in a grammar review.
 
5:10 AM
Got my C# tests working for Roslyn! I'll finish tomorrow and hopefully do a PR.
 
@eurotrash "I'd always assumed that doing one check would be faster than two, but it appears that's not the case, ... When writing a quick benchmark that summed all the integers within an array of type object[], where only a third of the values were actually boxed integers, using is and then a cast ended up being 20 times faster than using the as operator." C# In Depth by Jon Skeet, Page 123. — EBrown 1 min ago
It's weird having a citable source on a C# performance issue.
 
5:59 AM
Monking
 
Monking.
 
0
Q: C++ Hangman Game

McLemoreI've been working in C++ for awhile now, but always like for others to look over my code as much as I can get them to. My main concerns are if I've made something overly complicated or if I've broken any general conventions in my code. Anyways, thank you for reviewing and I hope you enjoy playing...

 
hows it going @EBrown?
 
Good mostly.
Working on a T-SQL script to copy a specific set of tables and views from a source DB to a dest DB.
Holy carp
This is nuts
Works 100%
But so risky.
Dynamic SQL + CURSOR + DROP TABLE + SELECT INTO + DROP VIEW + Dynamic SQL for CREATE VIEW
 
6:20 AM
like driving without a seatbelt?
 
@DanPantry Lol no, worse.
 
Ah. like driving without a seatbelt in a burning car
 
That's also driving through a gasoline plant in hell.
 
sounds like driving through Texas, from what I've heard
my final interview is tomorrow evening and i am bricking it
 
Good luck man!
 
6:26 AM
thanks, I'll need it
colleague who just returned from holiday: "Alright Dan, let's IT the s*** out of today"
lol
 
Oh snap
 
0
Q: Generating Gray Codes

geek_codeI tried generating gray codes in Python. This code works correctly. The issue is that I am initialising the base case (n=1,[0,1]) in the main function and passing it to gray_code function to compute the rest in the gray_code function. I want to generate all the gray codes inside the function itse...

 
Alerts are about to be my friend.
 
that's pretty.. alarming
one of our sql jobs failed. Gave that job a reboot. Jobs LOVE reboots
 
I hope this all works right.
 
7:08 AM
hm, surely it must be easy to mount a network drive on mac, right? i can't seem to find any easy to do it from terminal..
 
7:18 AM
0
Q: My Quick sort examination

Rahul ShivsharanI had a test on sorting using quick sort algorithm, I implemented. Its working fine. But the examiner is not satisfied. Please have a look at me implementation, function quickSort(inputArray){ var pivotIndex = undefined; var low_Index = undefined; var high_Index = undefined; pivotI...

 
@DanPantry mount_smbfs //server/share /path/to/mountpoint
 
@janos <3
ah. that's my problem
I wasn't mkdir /path/to/mountpoint
assumed mount would do that for me
 
nope
 
Awesome! it worked
with mount
 
mount -t smbfs works too instead of mount_smbfs
 
7:26 AM
hmm, I thought it worked, but maybe not
mount_smbfs /redacted/share /volumes/share
Works fine, asks for password, great
umount -t smbfs /redacted/share /volumes/share
> /volumes/share not currently mounted
 
umount /volumes/share
 
ah right ok
perfect, thanks!
 
and the remote path should start with double-slash, so //redacted/share
won't work with single slash
 
yeah, i meant double slash but i omitted that, woops
linux is weird
 
0
Q: Multithreaded Decompression

SirCxyrtyxI'm working on optimizing a class for decompressing Mass Effect 3's .sfar files. .sfar files are archives, and this function decompresses a file from inside an .sfar and writes it to the provided Stream. Sometimes the file isn't compressed, and so just gets copied to the output stream. Most of...

 
7:30 AM
it's a UNC path. In Windows it starts with \\ , in *nix it's //
 
I meant it's weird in that you have to mount like that. though, I suppose it's easier than the hoops you jump through in windows to mount drives
 
what do you mean by "like that" ?
 
mount through the terminal, having to manually create your mount point destination with mkdir etc
obviously there's a gui for it in linux
 
mount command + source path + destination path ... hard to make simpler than that ;-)
 
but it makes you realise how much magic windows hides from you ^^
 
7:32 AM
there is a GUI for it
I thought you wanted to do it in terminal
 
there's an app for that
no, I do
I know there's a GUI
I was just saying that linux is interesting in how it's different
 
you wrote you're on a mac, so: command shift k
in Finder
 
yea i know, i've done that before
or just command k to mount
i'm interested in the cli though because i'm wanting to do this on a server network
which won't be mac
but thankfully mac is unix-like, so :)
 
took me a bit to give you the answer because of an idiosynchrasy
$ mount -t smbfs //redacted/media /tmp/mnt/
mount_smbfs: mount error: /private/tmp/mnt: File exists
 
lol
 
7:36 AM
a retarded error message
the problem was that //redacted/media was already mounted somewhere else
 
hm, I thought Unix was case sensitive
ls /volumes yields the same output as ls Volumes
unless they are symlinked
 
it's not about unix
it's about the filesystem
the default filesystem in osx is insensitive
 
@janos I have a public DB with all the data I've gathered ready.
If you have SSMS (et al) and want access to it.
 
nice! but what's SSMS?
 
SQL Server Management Studio.
 
7:40 AM
I don't have, but in any case I wouldn't have time to take a look
I have to step out now for a bit
 
Monking !
 
Alright, have fun. :)
 
thanks @EBrown for putting that out there!
bbl
 
No problem, I'm still working on getting the site for it around. :)
 
It's been almost 3 days since I got a puppy and it feels like I didn't sleep for about 23 weeks ):
 
7:42 AM
@Dex'ter ah yes, i remember that feeling
puppers are so worth it though
I used to have a Siberian Husky puppy
 
@DanPantry she's lovely but gosh, she has so much energy. I should teach her some ASM
 
On his first weekend he refused to sleep in his crate (you HAVE to crate siberian huskies) so I slept downstairs and he slept next to me. It was adorable
 
@CaptainObvious this question is written
 
@DanPantry yea well, mine is Beagle and she doesn't want to sleep anyware else but in bed
 
it is written good
but not that good
so I will edit.
 
7:45 AM
@Pimgd }// end of if condition
why
 
possible answer invalidation by BusyAnt on question by BusyAnt: codereview.stackexchange.com/posts/136662/revisions
 
@Duga questionable, I don't know
 
feels like he is extending his question after providing answers
that code doesn't provide context to the original question, it's just more code to review
 
It's an in-question response to a comment
hmmh
 
if in doubt, leave it
better to leave it there than to annoy OP
just got a mail for react developer in london, starting at £475 up to £575 per day
holy crap, that's a lot of money, even for London @Zak
that's £114k-£138k. wow
 
7:59 AM
... per day?
Why would they advertise pay in days?
 
@Pimgd to get a response faster
 
They're... probably not looking for a long term hire
 
it's contracting, so no
usually its' a 6 month contract
still, £575 is an absolutely insane amount of money for a contractor
 
It means fix it now =)
 
apparently key skills are jQuery and ReactJS
I now see why they are paying £575
jQuery and ReactJS should never be mixed
 
Zak
8:03 AM
@Pimgd Pretty much that ^^
 
like jQuery and react hardly makes sense
 
Does anyone know if there's any way of canceling with open(file) if nothing was written to that file in Py ? }:
 
unless you're using componentDidMount() or refs in render() everywhere you'll never have access to a DOM element in react.. which are both antipatterns
 
Ripe zombie; open question with answers, at least one answer having score 0, no answer having score > 0: jQuery toggle buttons to show matching content in sliding panel
 
8:25 AM
So whatever happened to ipv6? seems like it's been out of the limelight for a whlie
 
We're still in transition.
 
8:54 AM
1
Q: Android MVP Adapter

RooManWhile implementing Android Activity component using MVP pattern a discussion arose - who should be responsible of creating list adapter - view or presenter? If presenter creates adapter, apparently View needs to provide Context for Presenter to be able to instantiate adapter: public interface My...

 
9:15 AM
Wow I got mentioned on the twatterverse, that's a first :p
 
9:27 AM
huzzah, managed to get my first answer on AI private beta
the questions are hard =/... which is a good thing
if they were easy the whole proposal would just fall down again
 
Zak
9:53 AM
@DanPantry "twatterverse" - new favourite term right there ^^
 
I'm writing a usage example. I feel like a professional now.
2
With tests
 
Mnking
 
This question is offtopic for SO. codereview.stackexchange.com is more the place for your question. — Charlotte Dunois 39 secs ago
 
10:29 AM
0
Q: Bundle test-scripts with PyPI packages

Eli KorvigoI'm publishing a couple of my packages to PyPI. Both have a fairly similar structure: project-root/ package/ __init__.py package/ __init__.py ... test/ ...

 
Zak
I wrote a thing a while back with the intention that it would be easy to modify/adjust/extend.
And it actually is.
This never happens ^^
 
I didn't even see the documentation when I was reading it :/
 
10:44 AM
0
Q: I have an issue in my model with Entity Framework

ito2307The relation is one user can print many carnets. The problem is not CreateTable("dbo.Beneficiarios".... stuff) again I just need make the relation with both tables. My database has created table beneficiaries, and to update the database I have to delete the table beneficiaries to be able to upd...

 
@CaptainObvious I have an issue in your model of the scope of this site
 
is this off-topic ?
 
0
Q: Product search script Object Oriented PHP

YudiI have made a search script in OO PHP that searches for products based on the inserted criteria, selects them and checks whether a sale is on, if it's in stock and other features. I am new to OOP so I would like to get your feedback on it and whether I am doing it correctly. The whole script wo...

0
Q: Codility binary gap solution using regex

Such Much CodeThis is how I solved the binary gap problem, but it seems to be different from the answers out there. Is it because this is a bad approach in terms of performance? I wanted to get some ideas: function binaryGap(number) { let binary = (number >>> 0).toString(2), // convert to binary r...

 
If it works -> Codereview it — Idos 49 secs ago
 
@Duga not sure
 
Not sure if ^^^ mentions Code Review the SE site. Probably not.
 
Monking
@N3buchadnezzar We got a question in that language:
@Dex'ter Won't break work?
 
@Mast I changed the logic a bit :P
 
@CaptainObvious one more close vote
Monking
 
Zak
11:14 AM
Ah worldbuilding, I do love you so
HUNGER GAMES IS A LEGITIMATE WARFARE STRATEGY — Mirror318 yesterday
 
@Mast IT'S SHOWTIME
 
Zak
> I have a Database worksheet
 
@Zak Tell us how you really feel.
 
2
Q: Excel VBA: Is there a more efficient way to write this code?

RossI have a Database worksheet (SoapUI - CollisionsSingle) that have around 1500 records and 38 columns of data per record. I have a VBA script that copies the records into a algorithm worksheet (COL_STpremcalc) and then copies the results back to the database worksheet. However it takes around 1-2 ...

 
11:32 AM
@Zak Or genetically modify mosquitoes to carry nuclear weapons
 
possible answer invalidation by Jordan on question by Jordan: codereview.stackexchange.com/posts/136716/revisions
 
@Duga handled
 
11:52 AM
Monking
 
monking @Vogel612
 

« first day (1187 days earlier)      last day (2835 days later) »