« first day (845 days earlier)      last day (3471 days later) » 

Zak
Zak
20:00
that should be a public version
I have a question, because I'm not sure if this just needs clarification or what.
Zak
Zak
@EBrown shoot
Is this answer appropriate? The answerer took my changes, and did not credit them at all, and then expanded upon them:
0
A: Sieve31, my sieve of Eratosthenes returning IEnumerable<int>

t3chb0tYou can still make this function faster and gain another second if you don't use IEnumerable and an enumerator but for example a List<int> public static List<int> Primes(int upperLimit) { var result = new List<int>(); if (upperLimit < 2) { throw new ArgumentException("Upper ...

That's the only thing that bugs me about it.
@EBrown I would say "no"
Take it to meta
That was a d*ck move
I'm not saying he's wrong, I am saying that his code is my code + his changes with no credit towards my efforts. If that's the case, then I'll just drop a comment that asks him to clarify that it is an improvement on my answer.
20:02
If he ignores you, flag it
Zak
Zak
definitely against the be-nice policy
I agree. Ask, then meta/flag if no response.
waaait
everybody calm the heck down
drop that guy a comment
@Vogel612 That's what I'll do.
@EBrown You do know how licensing on SE works, right?
20:03
give some time to work on their side
Just didn't know if that was appropriate or not.
@Vogel612 That's what he is saying
@Mast I don't recall the specifics, but you require attribution, IIRC.
@Mast attribution is still required
@Vogel612 I know, but in practice, there's a lot of leeway.
20:04
and if nothing happens you could edit it in...
Only if you copy code one-on-one they'll make it a problem.
@Mast meh. sure if it's an answer on the same post "building upon ...'s answer" is fine
@Mast that's not correct
> Please add a note indicating that this answer is an improvement on my answer.
Sound about right?
On CR, we usually provide attribution when writing an iterative answer, but still, we're the elite of SE.
5
Zak
Zak
if I had any stars yet, I'd star that :)
20:05
@EBrown sound about right, yea.
@EBrown You may or may not want to use the word attribution to show why you're dropping the line.
quite blunt, but that should be fine
Well how could I improve it, without sounding rude?
I also think the wording in that answer is bad.
> make this function faster and gain another second
@EBrown That's two unrelated problems.
The problem is, he doesn't indicate how he profiled it.
20:07
@EBrown Something like: "Upon reading your answer, I've noticed that it is an improvement upon mine. As per the [help section link], you should give attribution to the writter of the original answer"
@IsmaelMiguel That's very direct.
Totally legit, but very direct.
Ugh, they get questions like this all the time at The Workplace
> Please add attribution clarifying that this answer is an improvement upon the answer I proposed.
@EBrown That's better
Please add attribution clarifying that this answer is an improvement upon the answer I proposed. — EBrown 1 min ago
That solves my woes, for now.
If he doesn't comply, feel free to flag his answer.
But give it time first.
20:10
@Mast I won't go that far, I don't think.
But I'll give it a week (or so). ;)
@EBrown Hope for that
Isn't a week too long?
@IsmaelMiguel Why? I'm not going anywhere for a week.
I would give 2-3 days
I really don't care that much, but I don't want this to be some prelude to allowing nefarious behavior.
That's why I would give 2-3 days
Or, in other words, till Monday
20:13
> Last seen 41 secs ago
they should've seen it by now then
Probably
I just didn't want the 10-12 hours of work I put into optimizing the question to go to waste, and be swept under the rug by someone who picked it up, changed a minor thing, and then submitted a revised edition under their own name.
The comment alone gives me enough satisfaction to make sure that it is clear that the answer he supplied was an improvement upon mine.
He's probably just used to forum tactics, where this would likely have been completely acceptable. (Except maybe quoting my answer for context, as well.)
@EBrown s/forum/internet
Attribution doesn't mean a thing on most parts of the internet. SE is one of the exceptions.
I'm not that worried about it, but if I had done what that author did and it was wrong, I would want someone to point it out and clarify that it just requires one more step to be acceptable.
Or he will just ignore
He seems proud of his optimizations
20:17
Give it time, not everyone can camp CR all day long.
Well, if you don't like it, downvote it.
You're 5 seconds late
I don't want to be mean to the guy though.
20:21
I know
But come on, it's obvious he is ignoring your comment
I don't want to be a d*ck, but my vote will stay that way until he gives attribution to you
@IsmaelMiguel There are no rules for voting, so that's entirely up to you.
I know
But I find it a c*ntious move to copy someone's code and not provide attribution for it
@EBrown Oh, I know exactly how you feel. I usually shrug and don't give now.
@IsmaelMiguel If you need to use * in your words, try replacing the entire word instead.
The replacement wouldn't be any better
His code is 80% the speed of mine, except it's substantially different from the OP's.
Just benchmarked it (in the exact same manner as the OP code and my code), and his is 2078ms, mine is 2488ms, OP is 3957ms. (That's the fastest out of two runs.)
20:27
@EBrown It takes 80% of the time to execute, that's different from having 80% of the speed.
0
Q: Making MYSQL query more efficient

Brandon ShegaI have this query here that I am trying to make more efficient as it is taking an extremely long amount of time, about 40s on 3 million records. The query basically takes X amount of rows per company and turns them into columns for a given existing column. SQLFiddle SET @sql = NULL; SET @sql1 ...

@Mast My mistake, poor wording.
@CaptainObvious Make your title more efficient as well...
Zak
Zak
right, TTQW
I've only been in the office for 13 hours now :)
You sound like me
20:29
The thing is, you can't do neat tricks with his code.
@CaptainObvious it is taking an extremely long amount of time, about 40s on 3 million records. Am I the only one who thinks 3 million records in 40s isn't bad at all? Unless that query is executed multiple times an hour, leave it be...
But hey, we all want to write cleaner code.
So bring it on!
@EBrown What neat things you can do with yours?
@IsmaelMiguel If you reach a prime of sufficient complexity, you can stop there without continuing.
@Mast Well, with the huge ton of prepared statements, I'm amazed!
@EBrown I edited in proper attribution
20:33
With his List<T> method, you have to get all primes.
That's neat!
@janos I was going to wait for OP to do it, but thanks! :)
it's best to avert dramas early on
2
But the user should be warned so he doesn't repeat that
I don't want to steel anyone's credits for optimizing the code but just to show another option that should be considered while optimizing for performance. — t3chb0t 59 secs ago
Oh, the iron-y
3
Hey guys, guess what I found?
20:38
For example, @IsmaelMiguel, say you are enumerating, and you just want the first prime of 8 digits, for example. With my code (and OP's code), you can do something like:
            if (prime >= 10000000)
                break;
@Hosch250 An armadillo?
The sample database we are using in class uses the float type to store money values!
@Hosch250 A rock?
And in my code it takes 1830ms, his is 2035ms, OP is 2303ms (fastest out of two).
20:39
You'll notice, my code is faster than his.
@Hosch250 That's good, right?
@Mast No, of course not.
Because my code doesn't need to calculate all primes up to upperLimit to get the answer.
They should use the money type!
@Hosch250 CURRENCY, right?
20:39
His does, because it adds them all to a list before returning.
@Hosch250 Money-type prevents rounding errors?
money stores 8 bits, smallmoney stores 4 bits.
@Mast Yep.
@Hosch250 At least it isn't strings for ints. That's what our database is.
Strings for EVERYTHING!!!
@IsmaelMiguel SQL Server uses money and smallmoney.
@Hosch250 In that case, they should definitely use it.
20:40
@IntensifierDescriptorMan :O
@IntensifierDescriptorMan varchar over all.
@IntensifierDescriptorMan Or varchar(45)
@IntensifierDescriptorMan Makes reading easier ^^
@EBrown That is really a kick on that user's butt!
20:40
Lol the person who originally made our database was NOT a programmer. It shows.
The column names are bad too.
One of the names is 'AMT'.
@IsmaelMiguel It's the ultimate of early returns.
I had to contact the professor, and she said it can be any amount.
I am definitely going to have to address that.
@EBrown I wish I could understand it all
@Hosch250 It's about type, not about amount...
20:41
Anyway, TTGTHCA.
@Mast That is a real.
@EBrown Time To Go To Have Coffee A?
I asked her what the value meant, and she said just have it represent any amount of anything I please.
@Mast Time To Go To Hair Cut Appointment.
Should be, TTGTHCAWPLB.
Time To Go To Hair Cut Appointment With Pretty Lady Barber.
lol
20:43
But that is too many letters for our AS/400. ;)
@Hosch250 What is it, CS or philosophy?
Databases.
Have fun with teachers like that.
@Hosch250 Yea, it was kind of rhetorical.
@EBrown Sadly, there aren't those here
@EBrown Like your AS/400 can handle this chat :P
@IsmaelMiguel All men or all ugly?
20:44
@Mast Both
@Mast Probably all ugly men.
@Hosch250 There are man (ugly or not, all the same), and ugly womans and older ladies (I don't fancy those either)
@Mast The AS/400 has no such concept as a varchar, so it would have problems.
All the messages would be char(n).
Where n is probably 57 or something.
Because arbitrary number is arbitrary. ;)
SE doesn't have a pillory, right?
I encountered a user banned till '24. Must have done something very wrong...
But no clue what he did wrong.
just saw this on Facebook:
user image
2
LMAOSHMSFOAIDMT. People are starting to get it!
20:59
@Mast What's that?
@SimonAndréForsberg That's totally fitting in our culture. Way too long acronym.
0
A: Speeding up and shortening a loop

iavrI cannot think of anything to make it faster. However, recursion along with some sort of polymorphism and (optionally) visitor pattern can give you the same result without nested loops. Here is an simplified example based on static polymorphism (my code is more abstract than yours but is complet...

@IsmaelMiguel A public place where criminals and their misdeeds are on show.
Probably not
Those things are kept private
@IsmaelMiguel Not everywhere.
There are plenty of on-line communities where such is public.
Probably not on SE though.
21:01
I'm talking about SE
Not much on SE is kept private, which is what got me wondering.
Ban reasons are usually kept private
To avoid public shaming
Seems off-topic for SO. Would be better posted to code review, I think. — Tab Alleman 38 secs ago
@Duga He may be right. Looks like he's just looking for a better way to do an already solved problem.
0
Q: SQL Query Count Records and Pull Distinct

user2644176So I need a little help. It is currently working but I might have over complicated it. So maybe someone has a better idea. Now let me try and explain it. I am trying this query, and it currently works but I am not sure if it is the best way to do this. I have a table that reads every minute, ...

21:16
@CaptainObvious That's the question @Duga 's comment linked to.
21:27
Hallelujah!! ...turns out 6-8 weeks was somewhat accurate :) — Mat's Mug Jan 15 '14 at 15:30
21:59
0
Q: How can I build code review stats in Phabricator Differential?

Schultz9999Is it possible to build a table of code review performers? Like how many made by each user (the most, the least) in a given period of time? Is there a database I can simply fire up a SQL(-like) query?

If you're talking about Code Review, SEDE is your friend. — Mast 10 secs ago
He probably isn't though, but doesn't ring a bell.
Here's an explained version of this on Code Review: codereview.stackexchange.com/a/102078Cyphase 16 secs ago
22:17
0
Q: PDO object directly in while-loop instead of from a variable

ThomasKI thought this should work: <?php while($get_service = $dbh->query('SELECT id, name, description, duration FROM services WHERE available = 1')->fetch()): ?> <input type="checkbox" name="service[]" value="<?=$get_service['id']?>"> <?=$get_service['name']?> <?php endwhile; ?> But turns out i...

Zak
Zak
night people.
@Zak Have a good night
Any asp.net people around? Maybe @Malachi?
22:35
hola cabron
qué necessitas?
All of a sudden, IIS Express is just broken. Been all over SO & the web.
oh can't help you with that. I've only ever hosted on Azure
never touched IIS
Uninstalled/reinstalled both VS & IIS. I'm stuck.
Does it barf any error?
241
Q: Error - Unable to access the IIS metabase

jjathmanAfter installing Visual Studio 2012 and opening my solution I get a series of errors in this form: The Web Application Project Foo is configured to use IIS. Unable to access the IIS metabase. You do not have sufficient privilege to access IIS web sites on your machine. I get this for each...

but nothing in that Q&A has worked.
22:39
Have you tried to force the whole thing to start as administrator?
Have you tried to change the permissions of that folder?
@RubberDuck What exactly is broken?
Exactly like the SO question. exactly
And you have tried everything there?
22:41
I have @IsmaelMiguel, but I'm already an admin.
Literally everything @EBrown. Been at it for 8 hours. All the trouble began when I tried to create an MVC4 project.
@RubberDuck Including: "For anyone that comes here later I solved this problem by turning off the IIS and .Net Framework features within Windows 7 and then turning them back on. Somewhere in that re installation it fixed my problem."
@RubberDuck All programs start as a low-permition user. You could try to hand total control to the folder and it's parents
@RubberDuck Doesn't say squat. It may consider you a 'normal' user till you force it.
I did force it and I very literally tried every solution on that Q.
And several duplicates.
@RubberDuck Have you tried switching to Linux?
;-)
22:43
Is IIS running?
Not that I know @IsmaelMiguel. I'm home now.
@RubberDuck What version of Windows, IIS, and Visual Studio?
Was just wondering if anybody had seen it before.
I've never used IIS
I've had the same problem at work twice now.
22:44
7, 8, 2013 Pro
However, that question resolved them for me.
@IsmaelMiguel Ex-colleagues of mine used it and I'm glad I didn't get stuck with it.
I'm almost ready to have them re image my machine.
Tried booting into Admin?
@RubberDuck Whatever works to solve your problem.
22:45
It gives you unlimited powers over everything.
No. I've not tried that @Hosch250.
@Mast I have never had the need to do anything with IIS
You shouldn't need to, really.
@Hosch250 No, but it would indicate what is going wrong.
I did notice that my documents folder wasn't showing up in the documents library around the same time though.
22:47
Now that is weird.
Maybe something borked the config. Idk.
@RubberDuck Smells like ransomware?
@RubberDuck Are you sure the user you logged into is the user you should've logged in to?
Yeah. I thought so too. It didn't go anywhere, but I had to add it back to the library.
@IsmaelMiguel Not necessarily. Ransomware usually comes with more trouble and annoying banners.
22:48
Yeah @mast. I double checked.
@Mast Not exactly. It encrypts the files on background, to go unnoticed. Then it asks bitcoins to decrypt the files
@IsmaelMiguel If that happens on an IIS server, you should notice.
@Mast The idea of the ransomware is to go unnoticed. When you notice it, your files are all encrypted.
My dad has to pick me up at work tomorrow (~1.5 hour drive) because the insurance company has now, twice, been wrong about when they would have my car fixed.
This is literally the most inconvenient thing I have ever dealt with.
@IsmaelMiguel "Unnoticed" for the average user, yea. The average IIS server should have processes which pick-up malicious behaviour like that.
22:50
Were you the one who showed us the super-ford?
Looks like the insurance company HQ is getting a nasty-gram call tomorrow.
@IsmaelMiguel Yes. And now they won't have it done for another week.
Mind you, it's been in the shop for three weeks, as of tomorrow, now.
And it won't be done until next Friday, they say.
@Mast Alright. But a properly done attack will be unnoticed
@EBrown Seems like the shop is messing up, not the insurance.
@EBrown I would scream with them
@Mast The insurance guy has told me twice, "It will be done this Friday!"
And both times he has been wrong.
22:51
@IsmaelMiguel Only in theory.
0
Q: Menu driven program to represent polynomials as a data structure using arrays

In78 Write a menu-driven program to represent Polynomials as a data structure using arrays and write functions to add, subtract and multiply two polynomials; multiply a polynomial with a constant, find whether a polynomial is a “zero” polynomial, return the degree of the polynomial. Assume ...

Hell, Monday he told me we were right on schedule to have it done Friday.
@EBrown It will be done in 6-8 Friday's.
3
@EBrown Why are you negotiating with your insurance guy?
@Hosch250 TS
22:52
@Mast I have no choice, he's the insurance guy.
Negotiate with the shop and sent the bill to the insurance.
He's the one dealing with the body shop.
Because my insurance company was the one who recommended this shop.
@RubberDuck I am now. phone notifications are slow...
@EBrown Around here we don't give a crap about what they recommend. We don't trust insurance guys.
So, I'm going to be raising a lot of hell because they haven't yet fulfilled any of their deadlines.
@Mast I no longer trust this one.
He wasn't even in the office today.
22:53
@EBrown Welcome to the club :-)
I called his number, and it was an out-of-office voice-mail.
@EBrown No forwarding to a colleague?
@Mast No. None.
No notice, either.
I'd get not so friendly feelings from crap like that.
Ah well.
He won't be back in the office until Tuesday. Now mind you, he said my car would be done this Friday, and now it won't be, and I only found out because I had to call the body shop directly.
22:54
TTGTB (Vol I, we'll see how many tries it takes this night)
I told @EBrown to scream with them
Ever seen that error @Malachi?
I'm at my wits end.
just clicking on the question right now.... give me a second
and you said you tried running Visual Studios as administrator?
@RubberDuck are you running the Web App from IIS on your machine or from IIS Express inside Visual Studios?
22:58
I was running from inside VS.
It will run from VS2010, but that sucks.
IIS in VS is different than IIS on your machine.
I gathered that much but don't totally understand it.
Oh, but in 2010 it will only run in the "developer mode" thingy, not express.
you should set up a site on the full IIS from your machine and have the source be the debug folder. then you go into the project properties I think and set the .....
been a while since I had to do it that way, give me a second
there is a way to debug the site through IIS on your machine and not through the Visual Studios IIS
then you change it to local IIS under the servers section.
I would make sure that these settings are what you need them to be
Ok. I'll see what I can do. The project won't load, so I have to edit the xml...
Thanks @Malachi. You've restored my hope.
lol
@RubberDuck You're welcome, and good luck :)
back to NCIS and Jetpack Joyride for me
and maybe some dinner
ping me if you need more help
23:09
I'm calling it for the day. Gonna watch some TMNT with the kiddos. =)
23:29
SELECT Users FROM 2ndMonitor WHERE TimeOfDay LIKE 'Monk%';
@Phrancis What is that supposed to be?
I get the Select Users From 2ndMonitor bit.
@Hosch250 Monk*
But since when is the TimeOfDay ever like Monk*?
BTW.WebClient : First layout that's not too wonky:
Or Monk%, to use SQL format.
23:32
@Hosch250 Well, in the Monking, the Monkernoon, the Monkevening, and the Monknight
OK, since when is the time not like a Monk%?
@Hosch250 If you're here, the time is always like Monk% :D
That query make 0 sense to me.
What in the world is it supposed to do?
Select all the users in this chatroom?
Don't worry about it ;p
And BTW, since the time is always like Monk%, you can drop your where clause, no?
@Phrancis That's the trouble. I've been nerd-sniped, and I demand an explanation :P
23:35
I think maybe we're taking the Code Review a bit too far here. Lol
I was more hoping people would say something about the Cardshifter web client, not my pseudo-query greeting ;X
Not bad, but still lots of room for improvement.
Oh yes of course.
Scales pretty good though, without wonky floating boxes being weird sizes. It's just not very pretty
Looks a heck of a lot better than the last GUI I saw a few months back.
I'm voting to close this question as off-topic because it's asking for a review of working code, which would make it more suited to codereviewSimon MᶜKenzie 13 secs ago
23:39
Starts looking weird >125% and <33% browser zoom (at least on my laptop)
Anything in-between displays quite decent
@RubberDuck We're going to be adding actual images very soon too, that logo is just placeholder
@Phrancis ooooh now we're talking!!
@Phrancis better that than the cat ;-)
lol
I'm close to ready to remove the colored borders now that everything is pretty much where I want it
monking
monking
fell asleep at my laptop again -_-

« first day (845 days earlier)      last day (3471 days later) »