« first day (1642 days earlier)      last day (3351 days later) » 
00:00 - 16:0016:00 - 00:00

user41796
4:00 PM
@durron597 borderline too broad since it introduces questions about the underlying structures being strong enough to support the pool
 
user55340
Ever see that glass overhang penthouse pool?
 
Does it scan the entire classpath?
 
@ThomasOwens yeah
 
user114359
Yes, it stops when it finds a match
 
well it depends on the class loader (which can do odd things) but the standard one will follow the class path
 
4:01 PM
@ratchetfreak So in Eclipse, I can put the directory that contains the resources on my classpath. In my JAR, the JAR itself is on the classpath, so if it's in the root of the JAR (or anywhere in the JAR?), it will find it.
 
it's how it finds the class files after all
 
user55340
 
that seems ill advised.
 
meh 5 cm thick plexi
it'll hold for a while
 
4:03 PM
not too concerned about that, but rather that "hey everyone, look at me swim!" is a bad idea. nobody wants that.
 
user114359
@ThomasOwens you need to specify the path to the resource inside the jar. E.g. if you have my-jar.jar!/path/to/image.jpeg you would request "path/to/image.jpeg" and as long as "my-jar.jar" is in the classpath, it should find it.
 
user55340
Can't do image upload from here and no extension on that one.
 
@Snowman Yeah. The jar is on its own classpath.
So as long as I specify the right location, I should be good to go.
 
user41796
 
@amon Is it not worse to allow type checking at run time rather than compile time? Because it is difficult to confirm the correctness of the program(big application) unless we do proper testing. In my code, despite I make explicit type check isnumber(), this type check happens at runtime, so there is a great oppurtunity to make mistakes by the new programs using existing functions.
 
user114359
4:05 PM
Sounds like that should work. Test it out.
 
0
Q: What concerns would I need to consider for building a swimming pool of gold coins?

durron597 If I wanted to build a gold coins swimming pool [as in DuckTales], what engineering (not security) concerns would I need to address to make such a pool feasible?

 
user41796
@durron597 Needz moah details!
 
user55340
Engr.se != world building with numbers. (My opinion)
 
@MichaelT I agree there, world building is already good with numbers
 
user41796
And "what concerns" verges on the edge of "Too broad" as there's quite a few things that have to go into basin design. That's why I suggested specifying some of the parameters. Likewise, putting more specifics in place helps keep the question from being closed as a "naive design question"
 
4:11 PM
@amon whenever somebody provide module of functions in python, nobody explains what are the type of arguments expected? what is the return type? Unlike static langugae like java where we say boolean action(Event evt, Object what) like this.
 
@GlenH7 Better? Or needs more?
 
@overexchange Of course that would be great, but it's not always possible. Also, expressive static typing is much more difficult to implement. Java without generics was effectively dynamically typed, because the static type system was too limited. Many dynamic languages cherish the expressiveness provided by runtime typing. For example, objects can be mocked easily since we only have to replicate the used part of their interface. Higher-order-functions tend to become simpler with dynamic typing.
 
in Duga's Playground, 4 mins ago, by Duga
A recommendation would be to give some examples of what you've already tried and why it didn't work. Stack overflow isn't the best place for this type of question. programmers.stackexchange is better — Mike Vella 1 min ago
^^ still open for pull requests :)
 
user41796
@durron597 Better yes. You probably ought to specify if you expect pure gold coins (19.3 g/cm3) and how closely packed
 
@GlenH7 I did that
 
user41796
4:14 PM
I caught the first edit, not the second
 
@overexchange Some dynamically typed languages do have such type annotations. In the end, it's about easily accessible documentation, even for statically typed languages, but static type verification is a nice proof of minimum correctness. Also, some statically typed languages tend to not have such annotations when the information can be inferred from the context.
 
user41796
I think it's okay. I'll ping the other two eng mods to make sure they're good with it too
 
user55340
Easier to work with spheres than coins.
 
for anyone that follows openGL the next gen Vulkan's shader language was released
 
user41796
4:17 PM
I would like to be the individual for whom this is a real, practical concern. — Air ♦ 42 secs ago
 
@amon you know what the problem is, when you provide python module of functions to be used by other programmers? It leads to bad abstractions..
 
This would likely be closed as too broad at Programmers.SE. — Snowman 55 secs ago
 
user114359
oh hai there Duga!
 
welcome to dynamic languages.
 
@amon Because as you do not know the passing/return types, you get into the details of the third party functions, to make sure that you are supposed to actually pass what runtime type allows to pass
 
user41796
4:21 PM
@durron597 - I added a sample question to bring your gold pool a little closer to specific engineering concerns.
 
@overexchange or read the documentation, static languages just make that documentation explicit
 
@GlenH7 Thanks. Are you the upvote, the downvote, or neither?
 
user41796
Neither. It's +2 / -1 currently
 
@amon I should really learn the mathy-correct terms for all the various typing forms there are... "dynamic" is such a poor indicator as you well know. In my head I can only think of compile-time type checking, run-time type checking, and dynamic dispatch (as in do or do not, there is no try). But there's vagueries inbetwen like duck-typing can be run-time or compile time, and strict type (only allow specified types) can also be run-time checked, though such typing can always be
checked at compile time so I don't know why you would check it at runtime instead
 
user55340
@durron597 he's a mod. both.
 
user114359
4:22 PM
I gave you a +1. Let's try to get this in the "hot question" list!
 
sadly, the mathy-correct terms often don't well apply to reality.
 
runtime type check* allows to pass
 
@overexchange How so? Do you mean other programmers will depend on undocumented implementation details? That problem is not unique to dynamic type systems. In dynamically typed languages, you add a short explanation “This function takes a non-negative even integer and returns a string”. You can verify that constraint inside the function via an assert. Or you can let it be the caller's responsibility if stuff goes wrong. See “design by contract” for a formalized version of this.
 
user55340
(Java - reflecting fields in someone else's code to get around things... Not unique to dynamic languages)
 
@JimmyHoffa Typing adjectives: dynamic = runtime, static = compile time, Duck typed = implicit interface, usually at runtime, strict = NULL, weak = NULL
 
4:25 PM
@MichaelT You see Reflection as a workaround? In C#, it's a feature.
 
user55340
Property file cached? Go reflect that object and force it to call a private reload method. Implantation issues galore if it changed.
 
@amon there's actual mathy terms that have explicit meanings for all this stuff which would be better to use - because nobody knows WTH those terms you just described mean, everybody knows them to mean like 8 things and no two people have the same set of facts about those terms
 
@RobertHarvey it can also be a feature in java but that tends to lead to enterprise solutions
 
@amon whether implementation details are documented or not, is totally depend on programmer who implemented it. Java being static typed, if programmer forgets to document, the types of the arg and return types help provide good abstraction. people generally use python to save devlpment time.
 
@overexchange but it won't save you if you don't know what that boolean does
 
4:27 PM
that's the perfect place to use terms that are rarely if ever used - because nobody has pretense about their meaning and the few who do have pretenses on their meanings, don't have disjointed ideas of their meanings
 
what is the actual argument here? dynamic languages are dynamic. If you don't like that, don't use them...
 
user55340
Gotta agree with @Telastyn there.
 
@overexchange My example “non-negative even integer” was carefully chosen: no type system I know can (statically) handle that constraint. Its up to you how and whether you communicate and verify that constraint. In my experience, the complete lack of explicit typing in Python, Perl, … is annoying, but it's often less of a problem than you might think. A lot of info is communicated via naming conventions, the principle of least surprise, and a minimum amount of documentation.
 
@amon this is how operator.py provides concat(), How do I know whether concat('sham', 4) works?
def concat(a, b):
    "Same as a + b, for a and b sequences."
    if not hasattr(a, '__getitem__'):
        msg = "'%s' object can't be concatenated" % type(a).__name__
        raise TypeError(msg)
    return a + b
 
@overexchange That depends on a.__add__.
 
4:35 PM
sorry, why would I care knowing about __add__ I did not get u
>>> a.__add__(4)
Traceback (most recent call last):
  File "<pyshell#3>", line 1, in <module>
    a.__add__(4)
TypeError: Can't convert 'int' object to str implicitly
>>>
 
I'm not sure how I can explain this. The concat(a, b) function is just a wrapper for the a.__add__(b) method and adds the constraint that a must be a collection of some kind. The actual type and total contract depends on the type and contract of that __add__ method. If a is a string, we get the total type (str, str) -> str, but since the arguments are (str, int) we get an error.
The documentation sufficiently explains this, but short of Haskell I know of no language that could fully express this statically.
 
(without overloading the hell out of concat?)
 
4:58 PM
concat is not overloaded, it just has a generic type that depends on the __add__ method. So assuming we have a type constraint or interface AddableTo<T, R> { public R __add__(T); }, the type of concat would be <A, B, R> R concat(A, B) where A : Iterable<?> , A : AddableTo<B, R>. It now happens that Python's str is AddableTo<str, str>.
 
5:27 PM
I've been playing a bit with LinkedIn Groups to try and shore up my profile views, and already I'm getting a headache.
Too many promotional posts. Bare links to blogs, blah blah. Certificate programs and boot camps.
Everyone's just there to attract attention, without providing any real value.
 
user114359
yep, that about sums up LinkedIn
 
5:44 PM
I found an article where someone was complaining about their "legitimate" posts being constantly deleted. What do you bet that, if he provided a sample post, it would totally be an advertisement or promotion of some sort?
Some user accounts appear to be immune from flagging. The dropdown for flagging won't even work on those posts; it acts like it is broken.
 
user114359
I think I have posted a single thing to LinkedIn since joining around two years ago.
 
user114359
and I am pretty sure it drowned almost immediately in an ocean of crap
 
Sounds like Teh Facebooks.
 
user114359
every day I receive multiple friend requests from tech recruiters, many of whom are a thousand miles from me
 
I wish Eclipse's Generate Delegate Methods let you generate a method that called a constructor.
 
5:48 PM
You think that would make LinkedIn better? :P
 
user114359
in other words, facebook and linkedin are both about as valuable as email anymore.
 
user114359
why would it make sense to call a constructor from a method?
 
@Snowman Let's say I had a class X that had a class Y as a member. Y requires two ints to instantiate.
 
@Snowman new ConstructorCall(parameters)
 
I would have a method X.setY(int, int) that would delegate to X.Y = new Y(int, int).
 
user114359
5:49 PM
ah, I see
 
So from a client's perspective, they are setting two variables. In reality, they are creating a new object that is a container around those variables. Perhaps doing work with them along the way to transform them.
Anyway, time for a site wide all hands. bbl.
 
user114359
I don't think I have ever tried that via the code generation
 
I just looked. I don't see that it exists.
 
You could roll your own, right?
 
user114359
it's code generation, basically just a short cut. The workaround is "write code"
 
5:51 PM
 
@Snowman My career specialist at the college says I need to tweak my LinkedIn page so that, when employers do a search, my name shows up in the first page results.
This is the new age of job search. Where employees must become SEO experts to get a job.
 
user114359
that's what I was thinking: SEO is infecting LinkedIn too
 
user114359
Good thing I just got hired at a job I expect to keep for a long time. I can forget about those hiring games.
 
It's interesting that all of these link-only posts on LinkedIn always have one like. Like all of these guys keep one sock puppet to overcome whatever technical limitation LinkedIn has put on marketing posts.
 
user114359
That or can they just like their own post?
 
5:58 PM
@RobertHarvey So THAT's what @Ampt 's job is
 
user41796
@Snowman One thing I've learned is to always keep your resume updated once a year regardless. Even though (Especially because?) you don't plan on going anywhere, you should make sure you're still providing valuable service to your employer that is worth putting on your resume.
 
user41796
@RobertHarvey If you can buy Twitter followers then you can buy LinkedIn votes
 
user114359
@GlenH7 I review mine quarterly, and look at job sites with the same frequency. Plus I do network on an ad-hoc basis, talking with old coworkers and such.
 
Is it possible to one-box an image here and ALSO give it a tooltiptext?
 
user41796
I'm not planning on going anywhere to another job for a while. But I keep my resume updated in case something unforeseen comes up.
 
5:59 PM
I'm expecting to go somewhere in the near future!
 
user41796
@Snowman You're doing a better job at covering your assets than I am then. :-)
 
user114359
 
user114359
millions of welfare recipients are relying on my continued employment.
 
user41796
@Snowman Circumstances can turn a lot faster than you may realize. One otherwise "should have been okay decision" can turn dangerously quick and you can find yourself on the other side of that equation before you realize.
 
user41796
Happened to a good friend of mine
 
user41796
6:03 PM
Took him years to get back on his feet and to recover from that period of time.
 
user114359
I grew up in poverty. I now have a graduate degree and a good job, a career. I did not get here through carelessness. I am careful and deliberate in everything I do with my profession and on the job.
 
user114359
and I do have contingency plans
 
user41796
I respect that. My apologies for the rant. I have heard others without an appropriate degree of perspective say things like that and it gets to me.
 
user114359
it's ok, no big deal. The only thing that annoys me is seeing freeloaders when I had to work so hard for an education, a career, a home, a car. Others have stuff handed to them.
 
user114359
I do respect people who word hard and fall on difficult times. But not people who refuse to get a job, yet have things handed to them.
 
user41796
6:12 PM
I agree with much of that.
 
oh, ffs.
Shyam Subramanyam
Enterprise Architect at Multi Billion USD Indian MNC, asks:
"May I know how we could develop Non Single Page Apps using Angular.JS with ASP.NET MVC5.?"
 
user114359
Angular.JS is not Enterprisey enough.
 
@GlenH7 that was a rant? Your "rant" is pretty dang light ;)
 
Buttons unknowingly pushed.
 
user41796
@enderland I try to remain civil
 
user114359
6:28 PM
Be glad @Ampt is not here, or we would see an alcohol-fueled rage. Apparently he is a lazy consultant who sits around drinking all day and collects a paycheck ;-)
 
I officially declare LinkedIn groups useless.
 
@GlenH7 I loathe and hate the healthcare system
 
user41796
@RobertHarvey I unsubscribed from those a long time ago
 
user41796
@enderland echoed
 
there are very few things which get me angry, but the obfustacated cluster@#$%# that is american healthcare and the lottery are two things that will
 
user114359
6:34 PM
You know what really grinds my gears? Rain.
 
@Snowman OMG.
> Although he was never able to simplify the deployment of the framework, he did find a new desktop background.
 
user114359
I love the pictures that accompany the DailyWTF stories. I guess in that case, the system was too enterprisey.
 
user114359
@enderland I have a sinking feeling I am about to get in a fight with my medical insurance company. I am quitting my job this week and they are paying for medical equipment. I bet they renege and leave me with the bill.
 
user114359
because that is how insurers roll in the good ol' US of A.
 
6:37 PM
I would be more okay with that if insurers didn't treat their employees similarly.
 
user41796
@Snowman In some states, you're covered until the end of the month
 
I'm voting to close this question as off-topic because OMG. — Robert Harvey 36 secs ago
 
user114359
I am covered until the end of the month because I pay for the next month, so February paid for March. But if I cancel coverage before April, I might be stuck paying 100%
 
user41796
@RobertHarvey Sorry, it migrated. stackoverflow.com/questions/28839457/…
 
user41796
There were 3 votes to go to SO by the time I put the fifth VTC on it
 
6:39 PM
@Snowman As long as the claim was made while you were insured, they have to cover it.
 
user41796
@Snowman blech. Call them and ask, I guess. I've actually had really good responses from most of the CSRs are UHC lately
 
user114359
yeah I probably should call. I keep meaning to, but I am just so damn lazy in my final two weeks.
 
Fortunately it'll be really clear how the process works!
 
@Snowman Sorry, I was at work and not here, what did you need? :)
besides, everyone knows that sock puppets can't get drunk
We do it for the taste
 
6:59 PM
What's the best way to get hooked up with someone having a webcam. Is Google's thing pretty good?
 
yes
we use hangouts for our standup
 
And you get a whiteboard to scribble or type on?
 
hmmm... we've not tried that part
you can do a screenshare
 
lync is good.
 
user114359
Hangouts works pretty well.
 
7:01 PM
though it's a little heavyweight if you're just looking for a one-off thing.
 
I would expect (or hope) that you can display Google Write and Google Spread documents and collaborate on them in real-time. That's my vision, anyway.
 
user114359
Hangouts is nice because everyone has a Google account, no need for a Lync server
 
user114359
yeah we do that at work too, Hangounts plus Google Docs
 
yeh
 
4
Q: Android "AdBlock" for spam phone calls?

enderlandPurpose: spam phone calls are annoying (understatement). It seems it would be somewhat trivial to have an app on your phone which behaves similar to AdBlock. Most spam block calls are like a version of AdBlock where you have to first see all ads. I would like to have a spam block app which is si...

does anyone here know a solution to this?
 
7:08 PM
Caller ID can be spoofed.
 
user114359
they often reuse numbers though, even if only for a short while. Maybe a time-based blacklist where innocent spoofed numbers roll off the list after a week or two?
 
@Snowman the likilhood of someone I want to call me having a number spoofed for spam is probably pretty close to 0...
 
user114359
it is all fun and games until they spoof your doctor's office, bank, car insurance, etc.
 
user114359
"I need to tell you the results of your cancer test" - "sorry I do not talk to telemarketers"
 
user114359
I agree the chances are vanishingly small, but nonzero.
 
7:17 PM
That's pretty easily resolved if you have any level of customization in the app, such as "unblocked area codes"
Nearly all the spam calls I get are from different area codes
 
user114359
Most of mine are from suburban SF, Olympia, WA, or rural Florida
 
user114359
no idea why those are popular area codes to spoof
 
so if we accept the old quote Debugging is twice as hard as writing the code in the first place. Therefore, if you write the code as cleverly as possible, you are, by definition, not smart enough to debug it., does that mean that even at the end of the bell curve, we're stuck using code that sucks compared to what people could write (but then not debug)?
 
user114359
7:34 PM
Is there a way to get all questions across all of SE asked by me without an accepted answer?
 
@Snowman I don't think data.SE allows for multi=site searches
you might be able to write something with their API though
@Telastyn only twice as hard?
 
user114359
I was hoping there was something easy. I am looking through all the sites where I have more than 101 rep or remember asking something and checking manually. Aside from SO, I really have not asked many questions.
 
I didn't make the quote
BadImageFormatException haven't seen one of those before...
 
-1
Q: Good Language for a command line library

user3406268I want to create a command line library of useful commands that I commonly use, I also want to share this with my colleagues. Some are sufficiently complex that I can't simply alias the commands in my .zshrc file. One such example is starting a fresh iOS project. I want to have certain files set ...

> Two others that I have never used but seem to be in use a lot are ruby and javascript
do people really write command line applications with javascript?
o_O
 
user41796
7:51 PM
People do lots of things with javascript for which it was never, ever intended
 
user114359
are there even non-browser JS engines? Honestly I have never even thought about it.
 
user114359
of course, even PHP runs from the command line.
 
user114359
Maybe my next project should be a web site written in C
 
almost everyone I would wager.
 
8:19 PM
Node.JS uses a non-browser JS enjine, yes?
 
I'd presume so.
 
8:36 PM
A website written in C makes much more sense than a command-line app written in JS
 
@RobertHarvey Node.JS uses chrome's V8 engine. All javascript is "non-browser", some javascript is however embedded in a browser which presents an object model to that javascript so it may interact with that browser.
 
I really like that question, it really makes me wonder what the OP is up to that they want to script starting a new project
 
user114359
printf("<html>(insert web site here)</html>");
 
I don't understand how it's so difficult for people to recognize JavaScript is a language, not just some little browser tool
everyone confuses languages and applications far too much
 
@JimmyHoffa: the whole "language vs implementation" thing is pointless for like 95% of discussions
 
8:38 PM
11
A: Examples of when we'll use interpreted language over compiled language?

Jimmy HoffaThere's (to my knowledge) no such thing as an interpretted "language" or a compiled "language". Languages specify the syntax and meaning of the code's keywords, flow constructs and various other things, but I am aware of no language which specifies whether or not it must be compiled or interpret...

@whatsisname perhaps so, but it's something people should understand just at a basic level
the fact that everyone confuses the two constantly is irritating
 
for someone who wants to be good at programming, for sure
well, I think everyone confuses it because for the most part, the blub language has a single implementation and in all likelihood there never will be another
there is essentially no useful distinction to be made between e.g. vb6 the language and vb6 the runtime
 
@Snowman firefox and chrome's JavaScript interpreters are both available open source libraries you can just pull into any application you want to. There's numerous applications out there which use those interpreters directly without UI components for other purposes
 
@Telastyn: I see BadImageFormatExceptions often, it is a source of many nightmares for me
 
@whatsisname the sad thing is that's not even true. The blub language almost always has multiple implementations, and in all likelihood they have relevant and useful distinctions in capability (mono vs .NET, Java's various VMs, JRuby, Ruby, Python, CPython, Jython, IronPython), Yet people still confuse blub with one of the multiple implementations of it.
 
if I'm not mistaken, those other python varients are all fairly recent
vb6, perl only have a single implementation
 
8:44 PM
@whatsisname you are mistaken
 
user20683
IronPython is what? 15 years old?
 
doesn't CPython account for like 99%+ of pythons usage
 
user20683
8, nvm
 
@whatsisname nope, pretty sure most python uses standard python
 
isn't CPython the defacto python implementation
 
8:45 PM
@WorldEngineer older than that if you count the multiple years of "beta"
 
user20683
Jython is 15
 
@whatsisname no. (@WorldEngineer back me up here? CPython is just a python->C translater)
 
user20683
CPython is "Python"
 
user20683
Alright folks, serious time.
 
of course, including stuff like .net / mono makes the distinction even more muddy to the untrained eye
as now you've got the language, the compiler, and the runtime
runtime/vm whatever
 
8:47 PM
@WorldEngineer I guess I'm confusing PyPy with CPython?
 
Python is a widely used general-purpose, high-level programming language. Its design philosophy emphasizes code readability, and its syntax allows programmers to express concepts in fewer lines of code than would be possible in languages such as C++ or Java. The language provides constructs intended to enable clear programs on both a small and large scale. Python supports multiple programming paradigms, including object-oriented, imperative and functional programming or procedural styles. It features a dynamic type system and automatic memory management and has a large and comprehensive standard...
CPython is indeed the "standard" python
looks like theres a Cython
that compiles to C
 
@WorldEngineer am I thinking of PyPy?
Regardless, the implementations in all those languages have benefits compared to eachother. Mono makes for a great F# platform with xamarin that is frankly better than what you'll get out of MS .NET for instance. But .NET means C# means MS .NET and nothing else exists..
 
from the wiki page: "PyPy is a fast, compliant[71] interpreter of Python 2.7 and 3.2. Its just-in-time compiler brings a significant speed improvement over CPython.[72] A version taking advantage of multi-core processors using software transactional memory is being created.[73]"
 
user20683
@JimmyHoffa PyPy is an implementation of python written in python
 
user20683
it's fast but incomplete
 
8:50 PM
...yep, I haven't looked at anything relevant to python in years. Apparently that's quite true.
 
user20683
Okay so, serious time:
 
what
 
user20683
@MichaelT @GlenH7 @Ampt
 
user20683
As some of you know, @AshleyNunn has a cerebral shunt. This shunt has very likely failed. She is being tested and prepped for likely brain surgery. Please send all the prayers or good vibes or both that you can.
5
 
oh wow
I hope all goes well
 
user20683
8:55 PM
@whatsisname thanks
 
user20683
I hope so too
 
user55340
9:13 PM
@WorldEngineer that's certainly in the serious realm. I hope it goes well too.
 
9:24 PM
:( ugh, that's a bummer
 
user20683
9:34 PM
Update: @AshleyNunn is getting a second shunt on the other side. She says she is putting more talent points into Cyborg.
 
10:32 PM
I, for one, welcome our new robotic overlord mod.
 
I need to get a new rear wheel for my bike
 
10:47 PM
@durron597 I've heard really good things about that
 
@enderland It's really good, but really... dense
Catching up to current was slow going, fortunately he had stopped for quite awhile but it's going again now
 
user20683
@Ampt @JimmyHoffa Python Tail Calls by using decorators to abuse exception handling until it screams
 
user55340
@WorldEngineer if @AshleyNunn changes her name to Wilhelmina, worry. (Side bit, I worry that Wilhelmina is in my iPhone dictionary)
 
user55340
 
user20683
@MichaelT ah, I've not had the hardware to play borderlands in some time let alone the sequels
 
user55340
11:01 PM
She'll be back sounding like hawking and saying "no" or "O_o" all the time.
 
00:00 - 16:0016:00 - 00:00

« first day (1642 days earlier)      last day (3351 days later) »