« first day (1356 days earlier)      last day (3651 days later) » 

12:12 AM
Not grep Equals. "Find all References" in Visual Studio.
It will give you all of the ones that pertain only to that particular object.
All of the calls other objects make to it.
 
meh take the easy way out why don't you
 
Hard to do with double-equals.
 
I'd think it should be possible...
 
"Find all references" binds to the actual method reference. Double-equals is just a symbol.
Is there any way to find out where a Comparable is being used in a particular type?
 
12:41 AM
Ah, never mind. I'm just going to change the IComparable implementation anyway.
 
user55340
12:59 AM
@RobertHarvey Hmm... if(foo.equals(bar).equals(true)) { ... } // True OOP!
 
user55340
Thats not the double equals you were thinking of though...
 
11:23 AM
woot I broke the 20k mark on SO
 
12:15 PM
Wow, android's "you got a new phone" process is really, really easy (surprisingly)
 
12:54 PM
@enderland Especially if you use Google's backup services.
Carriers usually have something similar, but I use Google's. I get a new phone, and bam. Settings, contacts, apps, they all just get imported.
 
1:34 PM
@ThomasOwens yeah. I was surprsied my phone was connecting to my work wifi, but then realized it saved all my wifi networks (which is GREAT)
 
@enderland including passwords?
 
@ratchetfreak yeah, apparently (my work has a wifi network with a password and my phone auto connected)
 
which means that google can find out your wifi passwords...
 
yeah I was wondering about how that all worked, I guess I'm just happy it works and am going to remain blissfilly ignorant how it works
 
 
1 hour later…
2:49 PM
Hey! i don't know whether this is the right place, but i really need some help..
i have made an image filter application. Which converts images to black and white https://marketplace.firefox.com/app/justbw . the source code is the appliction.html file at https://github.com/pigeonhole/JustBnW. When i tested it on firefox os simulator it was pretty fast and usable.But when i downloaded it on my android device. It was very very slow. Any Image of size more than 50kb .. made the app lag . Can someone help me with this?
Is my approach wrong.Should i downscale the image first before putting it on canvas...
:(
i was really looking forward to making thing right. My first ever app on somewhere useful gets total crap review. It hurts
jsfiddle.net/3VVnK fiddle link
 
you can't use webgl?
 
3:05 PM
i have not been acquainted with webgl. i am also a little doubtful if i need to to perform this simple "turning black and white" opertions. my knowledge is limited to canvas operations only.
but if its a better choice then i will take it.
 
webgl will be much faster than pure js
 
ok
and any more advices on speeding it up?
 
I think the biggest slowdown is in the loop which is what webgl will optimize
 
i see.
 
also consider scaling the image first before you change its data
 
3:13 PM
i have a question in this context. Say the image size is 1024* 768 . and i scale it down to 500 * (originalHeight * width/originalWidth) . And then i do .. the pixel operations. Now when the user requests a Save Image. Do i scale it back to original? And if i do, will the quality remain same?
 
no when saving you can do the operation on the original and accept the slowdown (they expect it when writing it to file)
 
ok. so its like when they are applying the effects .. they are doing it to a scaled down preview of the original. I make a stack or an array and push the operations. then , when they ask to Save, i take the context of the original image, apply the effects to it and save it...
 
ok
thanks for the support... i will comeback when i got more problems i cant solve.. :)
 
no problem
 
4:18 PM
so I'm really struggling with "what functionality should go where"
5
Q: Designing unit tests for a stateful system

durron597Background Test Driven Development was popularized after I already finished school and in the industry. I am trying to learn it, but some major things still escape me. TDD proponents say lots of things like (hereafter referred to as the "single assertion principle" or SAP): For some time I'v...

That's the context
I've created a state object and a logic object
should my state object be purely getters & setters?
or is certain code equivalent to "this is just a fancy setter"
rather than "this is logic"
and if it's a fancy setter, this should be a method of state
 
user41796
@durron597 I was about to grab my lunch and put a lengthy answer in place for you
 
user41796
the spoiler is that I think you're missing the broader meaning behind the terms and that's what's wrapping you around an axle
 
user41796
and while the other two answers are correct, they don't do much to help solve your current problem
 
user41796
which you're going to need to be able to do before you can safely refactor any of it.
 
heh, i've already substantially refactored it
OOPS ;)
 
user41796
4:21 PM
@durron597 how do you know it's correct then?
 
i don't.
 
user41796
ding!
 
user41796
hope you saved a copy of the earlier version. :-)
 
but to quote Steve Miller band
 
how do you know it was correct... before?
 
4:22 PM
> time keeps on slippin' into the future... time keeps on slipping... into the sea
 
user41796
@enderland inertia - meaning it's been used so far and others have banged away at it claiming it's "good enough."
 
user41796
@durron597 give me about a half hour, and I'll have some things for you to ponder that will likely help you move the project forward.
 
user55340
Whee... clearing up misconceptions:
 
user55340
0
A: Why doesn't Ruby have implicit conversion of Fixnum into String?

MichaelTFirst, to clear up some misconceptions... perl and php Perl and php do not have implicit conversion from number to string. Consider the code (written as perl to get the warnings, but you can run it as php also and get the same (sans warnings) results): #!/usr/bin/perl use strict; use warning...

 
@GlenH7 actually, it isn't good enough right now, we tried to use it and had problems, i've already fixed those problems but now we are waiting for me to properly test this mess before we try again
ugh. the short version of this story is that i was hired to be a cheap equivalent of a senior programmer because i went to a good school and i had 3 years work experience before i took 2 years off to do something else. but i'm paying for all my crappy design and lack of knowledge of modern software development techniques now. sometimes i look at last year's code and want to jump off a bridge :-P
 
user55340
4:28 PM
(side bit, grad school prepares you to be a researcher, not a programmer or architect)
 
(hm, more than two years off)
 
@MichaelT depends what you do in grad school, but largely I'd agree
 
short version of my resume: graduate undergrad 2004, work 2005-2008, do various non programming until 2012, decide to stop wasting my degree, get this job. i don't have an advanced degree
 
user55340
Some of the worst code I've heard about was things written by grad students for a project... and then after they're gone the professor asks someone else to look at the code.
 
user55340
Advanced degrees are great things for R&D departments of tech companies...
 
4:30 PM
i believe CS grad students are usually just the people who couldn't get a decent job after undergrad
(not always, of course)
 
@durron597 Which is saying something...
 
@MichaelT Most yes, but there are a growing number of professional grad programs.
 
@ThomasOwens I'd love to get that degree
 
user55340
Some places may have realized the difference between Computer Science and Software Engineering... though most places are still creating Computer Scientists.
 
heh, i'd love to spend any amount of time learning CS at CMU
even though it's in Pittsburgh
 
user55340
4:32 PM
The types that could go and work on optimization strategies for compilers or file systems... that need the additional theory and research.
 
user55340
But most code that is written, doesn't need that level of expertise.
 
@durron597 I'm eligible for it in 1 more year, I think.
 
user55340
Instead of "officers" it needs the grunts and senior NCOs to fight with the code.
 
most code that is written these days seems to me are glorified fancy GUIs, usually in php (web), objective c (iOS), or java (android)
 
user55340
Hmm.. casted the close vote on programmers.stackexchange.com/questions/187732/… a year ago... its back in the queue now with 3 close votes.
 
user55340
4:35 PM
And programmers.stackexchange.com/questions/240581 got booted from the queue with 4 close votes on it currently.
 
alright, well, i gotta run an errand. time to stop torturing you all with my whining :-P
oh wow, my whining seems so mundane compared to this:
 
My typical workflow:
Write code -> Come across problem -> Google problem -> Click on first link which brings me to StackOverflow-> "Ooh! I have a notification! Better check it!" -> End up in the whiteboard trying to remember what I was doing....
2
 
user41796
5:06 PM
@Ampt Happy senioritis....
 
user55340
@GlenH7 This means we can get @Ampt into chat by making sure he has a notification each time he uses google...
 
@MichaelT Two things of note: I'm mid-finals week, and you are an evil man.
 
user41796
congrats! Almost there and done.
 
I am so close I can practically taste it. I only have one hard final left... the dreaded algorithms
 
user41796
I'd ask if that got any better as the semester progressed, but I suspect I already know the answer...
 
5:20 PM
@GlenH7 actually, it did. I Aced my presentation topic, which was 15% of our grade, so that was nice
 
user41796
pleasant surprises are always welcome
 
Finals week is the best time to screw around online, you don't have to do any work and all you have to worry about is whether or not you care about your final grade
 
@enderland don't care about grades, just passing :D
 
What do you need on the final to pass though?
 
already got the job provided I pass everything
I think... 70ish?
I'd have to bust out my excel table
 
5:22 PM
Like any good slacker, excel calculators to determine what work you should care about and what you don't care about... are the bread and butter of the Refined Slacker
I had a political science class which had about 10% of your final grade based on multiple choice questions from the (large) number of readings on the mid-term exams during the semester. The typical "really specific information from readings which you might not even know if you read them closely" types of questions.
I basically just blew off 100% of the readings, and took the 7.5% hit or whatever it was for guessing on each of them - worked out nicely since I just eeked by at something like 90.000002%
 
5:40 PM
@Ampt What was that about getting SO notifications?
@Ampt SE notifications are very handy you know
@Ampt they let me know all sorts of things that are happening
@Ampt which I arguably don't need to know about
@Ampt like this link to a paper on haskell category theory stuff
 
user55340
@JimmyHoffa is the reason I don't install Newt.
 
user55340
62
Q: Newt - question, answer and comment and rep change notifications for Mac OS X

Nikita Rybak Newt is a simple Mac OS X utility that notifies you about new questions, answers, comments and reputation changes. Now, everyone can become a Jon Skeet! Screenshot / Code Snippet Notifications are dispalyed with Growl. Customizable settings with support for new Stack Exchange sites. Th...

 
user41796
0
A: Designing unit tests for a stateful system

GlenH7Perspective: So let's take a step back and ask what TDD is trying to help us with. TDD is trying to help us determine if our code is correct or not. And by correct, I mean "does the code meet the business requirements?" The selling point is that we know changes will be required in the future,...

 
user41796
yay, now it one-boxed.
 
user41796
And I'm wondering just how mad I'm going to make the TDD purists with that one
 
5:47 PM
@Ampt so don't forget to get that code problem fixed! Finals! Scary!
I'm close voting as too broad right now, you need to narrow your scope by saying what approach you plan to do so that we can talk about what problems it has and potential solutions to those problems. Right now it just openly asks for any approaches to solve your problem which just feels too broad to be answerable. — Jimmy Hoffa 16 secs ago
@Ampt Don't forget, you have to get that code fixed!
 
@JimmyHoffa LALALALALALALALA I CAN'T HEAR YOU LALALALALALALa
 
user41796
@JimmyHoffa Be nice .... :-)
 
Just for the record, the SIP example was mine, not from the OP. And some state machines may need more than a few method calls to get them in the right state for a certain test. — Bart van Ingen Schenau 22 hours ago
 
user41796
@enderland I'm kind of expecting a few down votes, TBH. But I don't think it's very practical to just wave your hands and say "oh, don't build apps that rely on state."
 
user41796
The way I saw it was this: The app is already built and it needs to be tested. So how do you make good testing principles apply in this case?
 
6:00 PM
Right, I'm just thinking it might not be trivial to recreate consistent test conditions
(not that it detracts from your answer)
 
user41796
@enderland In a happy world, the state transition diagram will be pretty tight so it's easy / easier to generate conditions to test the transition. I think real world constraints will impinge and I suspect not every transition is clearly defined.
 
@GlenH7 as long as there aren't a zillino edge cases built into it with duct tape it'l work fine... (uh oh)
 
user41796
But on the other hand, you have to accept that's where the app is at. And so you build around those danger areas to keep the app from exploding.
 
Sometimes, all you can do is play the cards you get dealt, and sometimes it results in a rough go of things
 
6:15 PM
@GlenH7 Nice? I'm something much better than nice:
2 days ago, by Jimmy Hoffa
I'm helping.
 
@GlenH7 thanks for the awesome reply. FYI I used the word stateful, but I didn't mean "state diagram"; I meant that the system has counters and other similar things, and then "if this variable is within this range, do this with this piece of data, otherwise do that"
 
user41796
@durron597 that would be state....
 
user41796
Regardless of what you want to call it, you're mapping an additional parameter on top of "standard" in / out type tests. Hopefully my answer will lead you towards finding a systematic way of testing it that doesn't make your head explode.
 
well i've spent most of the last business day refactoring the code attempting to have one object that's context (state) and one object that's logic
 
user41796
I would map it first before I tried to refactor it
 
user41796
6:29 PM
the odds of you missing an edge case are extremely high if you don't have some sort of diagram that indicates what is done when.
 
mmm. do you have a good reference? it's funny, in college i spent a lot of time talking about DFAs NFAs turing machines blah blah
but very little "how do i take this theoretical concept and use it to write code for a real world application"
is it basically just a DFA?
 
@durron597 Welcome to most college experiences ;)
 
6:55 PM
1
A: Is *Lacks sufficient information* really a close reason?

Robert HarveyThe phrase "insufficient information to diagnose problem" means exactly what it says, but it's actually a symptom of a larger problem. First of all, can we all agree that the purpose of closing is to prevent answers from being posted while the OP improves their question? If there's never any ne...

 
7:07 PM
@JimmyHoffa My dictionary and you need to sit down and have a binding to face conversation
 
@RobertHarvey I HATE it when people don't vote to close bad questions before they get answers. Closing questions which need it immediately is basically the equivalent of
2
 
@enderland I need to actually get some rep on programmers. sometimes i wish that SO rep carried over to programmers
then maybe i could respond to some of these chat blasts :-P
 
@durron597 I'm a serial lurker here. I don't feel confident enough to really answer anywhere near as well as most of the people here
but I learn... (hopefully)
 
@enderland yeah but you have 3k rep. i only have 800 :-P
 
user55340
@enderland I even did an answer that included VB.NET today: programmers.stackexchange.com/questions/240672/…
 
7:19 PM
but i like to hang out here because the quality of conversation is higher than on SO
should this be migrated to programmers?
0
Q: Separate Action from Assertion in Unit Tests

DigitalMossSetup Many years ago I took to a style of unit testing that I have come to like a lot. In short, it uses a base class to separate out the Arrangement, Action and Assertion of the test into separate method calls. You do this by defining method calls in [Setup]/[TestInitialize] that will be called...

 
@Ampt hey don't forget not to look at your alerts. That code won't fix itself! SO might fix it though. Unlikely, chances are it's a bunch of nonsense, you really need to break your habitual use of GOTO
hah great title to a paper:
> A Practical, Typed Variant Object Model
> Or, How to Stand On Your Head and Enjoy the View
Thanks all those Haskell and other such papers I've read/skimmed over the past couple years that detail language-level concepts... now I know how to read a grammar definition and think about the features that grammar confers
Talk about a practicably useless skill
@Ampt can you help me out here, I need a second opinion on the grammar of this TinyBang language, it's on the top of page 3
@Ampt oh sorry, my mistake, I forgot you need to ignore SO alerts right now. Shoo! Get to work! You can look at the grammar another day. :)
2
@Ampt but don't forget not to look at these alerts
 
7:37 PM
@JimmyHoffa Have you told him about Haskell yet?
2
 
user55340
"Has @JimmyHoffa told someone about Haskell yet?"?!
 
@durron597 HAHAHAHAHAHAHAHAHAHAHAHAHAHAHAHAHAHAHAHAHAHAHAHAHAHAHAHAHAHAHAHAHAHAHAHAHAHAHAHA‌​HAHAHAHAHAHAHAHAHAHAHAHAHAHAHAHAHAHAHAHAHAHAHAHAHAHAHAHAHAHAHAHAHAHAHAHAHAHAHAHAH‌​AHAHAHAHAHAHAHAHAHAHAHAHAHAHAHAHAHAHAHAHAHAHAHAHAHAHAHAHAHAHAHAHAHAHAHAHAHAHAHAHA‌​HAHAHAHAHAHAHAHAHA
 
@Ampt Hey it worked, I got a response :D
 
user55340
But you made @Ampt lose track of studying - now he'll be wondering of monads are going to be on the exam.
 
7:45 PM
@MichaelT were this a game, @durron597 would have just scored a point..
> True & True = True
> True & False = False
> False & True = False
> False & False = False
^--- this function definition gives me an idea, how cool if a language supported principle based inferrence logic. You could just say & :: (Commutative, Associative) and it could infer one of the above definitions by knowing it's commutative
The compiler could also verify associativity easily and fail the build if the implementation is non-associative
Haskell doesn't even do that because type classes are meant to abide laws but they aren't language level, so you could implement the monoid typeclass in a way that does not meet the laws required of a monoid. How interesting if you could put on the operators Closure, Associativity, Identity etc so the compiler would tell you if your implementation violated monoid laws. As it stands it's easy to write code that will run-time verify them but then that's antithetical to the concept of type checking
 
8:04 PM
Can anyone think of a reason that an Eclipse plugin that I am certain I installed wouldn't show up not only in the list of current plugins but also not in the historical configurations?
My best guess is that at some point I wiped the whole install and put it back and forgot to put the plugin back (and forgot the order of those two events)
 
That TinyBang language sure is odd, it looks like some mixture of haskell and LISP...
 
user55340
8:18 PM
Ok... this is just disturbing:
 
user55340
 
How many Electrical Engineers does it take to disable an LED? — Robert Harvey 25 secs ago
 
> None, LEDs are permanent.
 
?
If it's an LED light bulb, two counter-clockwise turns should do it.
 
user41796
9:11 PM
@gnat - you found a good home for my last close vote of the day
 
user41796
The exceptions question
 
9:55 PM
as if i didn't have a crappy enough day already, code that worked monday that i did not change no longer works
Oh, of course Clip.open is hanging. beautiful
time to run my halting problem application on the java vm
 
10:13 PM
@durron597 well, stop using your clipboard to copy full length HD "data" streams. That's really not what clipboards are for...
 
@JimmyHoffa Surely I have enough ram to hold all this porn
and with that, i bid you all adieu
 
user55340
For posterity...
 
user55340
Must... resist... urge... to... call... Robert... sweet-cheeks... — Andrew Barber ♦ 44 mins ago
2
 
10:33 PM
@MichaelT common problem I hear...
 
user55340
@JimmyHoffa We'll just have to remember that for next time Robert shows up in chat...
 
@Ampt did you hear about that? No? Oh sorry, you're busy, my bad. I'm going to go have a beer now, don't forget to get that code working!
 
 
1 hour later…
11:39 PM
with some added research form the asker this question could be a fit for PSE,
granted now it's a "give me the algo"
 
user55340
@ratchetfreak It could, but I'd tend to suggest the direction of gamedev instead.
 
11:57 PM
found a dupe on gamedev and pointed him to it
 

« first day (1356 days earlier)      last day (3651 days later) »