« first day (752 days earlier)      last day (3259 days later) » 

6:04 PM
@RubberDuck Surely this isn't on the stuff for a programming job, is it?
 
@nhgrif Sure is!
 
I wouldn't write code for that employer with a 10 foot pole.
It'd need to be 100 feet, minimum.
 
It's cool man... they'll vaccinate ya. rolls eyes
 
I don't have a problem with being vaccinated/immunized/etc.
Have they heard of working remotely?
2
 
LOL. I guess not.
 
6:07 PM
It could be simply an onsite job at a hospital
 
What are they paying? Are they starting at $250,000?
 
I was about to say, I bet they pay bank.
 
@Phrancis I understand this, but my question still stands: have they heard of working remotely?
 
@Phrancis Requires a DoD clearance.
There's a weaponized bionics lab here in town. That's where the job is.
 
@nhgrif True
 
6:08 PM
I suppose you might have to work on hardware that is inside the lab?
 
If it's for an actual programming job and not just some sort of network admin, why does the programer need to work in the dangerous job?
 
Can't really do that from a distance
 
You can work on the hardware with non-dangerous materials in place of the dangerous ones.
 
Well, officially, they are an "defense against biological weapons" labratory, but who really knows.
 
> Provide maintenance
 
6:09 PM
But still, is this actually a programming job or is it something else?
 
@nhgrif Requires a DoD clearance. I'm pretty sure they don't risk anything leaving that building. Including a laptop/data.
 
@RubberDuck Which means "Think of the worst biological weapons you can, so we're one-step ahead of any enemy, create it, then find out how to defend against it."
 
Maybe they spray you with Ebola just to see if you can work under pressure
 
@RubberDuck I'm not suggesting people should work from home. I'm suggesting the programmers don't have to work on the same campus as the biologists.
 
Fair eenough.
 
6:12 PM
Might be better suited to code review — OneHoopyFrood just now
 
It does seem to be an actual programming job though.
> 1-3 years' experience developing applications using Microsoft Visual Studio (e.g., VB.NET) and Microsoft SQL Server or Oracle.
1-3 years’ experience operating or managing the Provantis computer system.
Write code
 
Right. So unless they're asking you to wear multiple hats and also be IT support or network admin, I can't understand why it's necessary for you to actually be in the building especially if it actually is the D.O.D. (versus just requiring DOD clearance)
 
Dumb question: What's a DOD?
 
Department of Defense.
 
It's only dumb if you're an American and at least old enough that you should be moderately informed about how your government works.
Other countries have their different abbreviations.
 
6:15 PM
Not an American: check
But okay, now the whole story makes more sense
 
In the UK, Ministry of Defense would be the equivalent
 
If it has to do with the DoD databases I feel really strongly that they wouldn't want to allow a remote connection to their data...
 
I'm not talking about outside connections. I'm talking about programmers going to DoD campus A while the dangerous biological weapons are at campus B.
 
There's no point in debating why or why not if you don't even know what the requirement is for though
 
You wouldn't even be working on live data anyway... unless the DoD is making rookie mistakes...
 
6:22 PM
@JeroenVannevel Good point!
 
@nhgrif would you really put it past our gov't to be making rookie mistakes??
Healthcare.gov anyone?
 
Do I sense a hint of sarcasm? ;)
 
Sure Phil, I'm just not familiar with event to rewrite this to make use of the type instead of my interface. If I posted it to code review would you take a look? — C Bauer 30 secs ago
 
@RubberDuck Perhaps Rubber is going to be their new SysOp
 
6:38 PM
-1
Q: Generator checking not result

user74443I created a question generator. It currently takes user input and displays questions and answer. What i want to do is generate questions(without answers) and based on the answer input being correct or incorrect go to specific secondary question. Example Generated question 1 if correct generat...

 
Isn't stuff fun when working with time zones?
@Duga I didn't realize you scanned comments on answer posts as well!
 
fun fun fun
Comprehensive map of all countries in the world that use the MMDDYYYY format http://t.co/jaOQp0oZyN
 
Hey @Janos thanks for the answer!
 
anytime @Phrancis !
 
I have a feeling that bug would've drove me crazy if you didn't point it out, too many numbers in one place lol
 
6:46 PM
0
Q: Preserving Default Parameter Values in Wrapper Function

JaysonIn Swift, if you wrap a function with default parameter values and want to expose the default parameter, there is no nice way to keep the default value. For example, I wrote a function to animate some items in a UICollectionView with a default duration func animateItem(index: Int, duration: NST...

 
// calculations
let msPerDay = (60 * 60 * 24 * 1000);
let daysElapsed = Math.floor(( Date.parse(cancelDate) - Date.parse(purchaseDate) ) / msPerDay);
let totalDays = termInYears * 365;
let termUsed;
if (daysElapsed <= gracePeriodInDays) {
    termUsed = 0.0;
} else {
    termUsed = daysElapsed / totalDays;
}
let termLeft = 1.0 - termUsed;
let proratedRefund = purchasePrice * termLeft;
let finalRefund = proratedRefund - amtPaidInClaims;
if (finalRefund < 0) {
    finalRefund = 0;
}
 
@janos lol
should be YYYYMMDD
 
looking good @Phrancis
+ some input validation would be good too
 
no datepicker?
don't make me input my own dateformat!
 
@CaptainObvious Offtopic.
@Phrancis uhm..
let secondsPerMinute = 60;
let minutesPerSecond = 60;
let minutesPerHour = 60;
let hoursPerDay = 24; // ish...
let millisecondsPerSecond = 1000;
let millisecondsPerDay = millisecondsPerSecond * secondsPerMinute * minutesPerHour * hoursPerDay;
@CaptainObvious This is hypothetical/stub code, etc. ... in places, etc.
 
7:00 PM
@Phrancis I have no idea what you're talking about.
 
This question has some problems. First of all, we require your actual code. ... is not an acceptable replacement for any actual implementation. Second, some context (both within and surrounding) the code you have provided would be a useful means of turning this very nebulous opinion-based question into something concrete and reviewable. Third, and finally, for my own benefit, I'm confused what you mean when you say "But now there's two places to edit...", but this confusion is likely a result of the fact that you've put example code rather than real code in your question. — nhgrif 10 secs ago
(this question was also upvoted by someone...)
 
@nhgrif Um, slightly overkill there?
 
@gerty3000 - Other options: 1) Document the requirement and perform code reviews. 2) Aspect-oriented programming. — Andy Thomas just now
 
@Phrancis Or just write out whatever the number is, precalculated.
 
lol, the opposite of my suggestion ;-)
 
7:11 PM
let daysElapsed = Math.floor(( Date.parse(cancelDate) - Date.parse(purchaseDate) ) / 86400000);
^^ Original code
 
let millisecondsPerDay = 86400000;
let millisecondsElapsed = Date.parse(cancelDate) - Date.parse(purchaseDate)
let daysElapsed = Math.floor(millisecondsElapsed / millisecondsPerDay);
@Phrancis ^^ Try this on for size.
 
Can't use underscores in number literals?
 
It's Javascript. You can probably use emoticons to create numbers
4
 
I stand by my suggestion of 60 * 60 * 24 * 1000
 
@Vicent this code might be of interest then. — Mat's Mug 37 secs ago
 
7:19 PM
@janos Well... I'd look for some sort of Date/Time library in JavaScript. You shouldn't be doing any of this like this at all anyway.
 
and use a datepicker
 
easier said than done
 
Doesn't HTML5 have a datepicker by default?
 
This seems suspicious: let totalDays = termInYears * 365;
 
What part is easier said than done? Using a datepicker? Or finding an existing JavaScript datetime library?
 
7:23 PM
both
 
There aren't datetime libraries for JS?
Why isn't someone working on that?
You should never be calculating datetimes by hand like this. Ever.
At all
Under any circumstance.
 
probably there are
 
I'm with @nhgrif
shit's nasty
 
Never calculate date time by hand. This rule is more important than not using GoTo statements...
 
7:28 PM
@GarethRees That's actually what the business rules are, I know it doesn't really make sense to not account for leap years but terms are counted in days
 
The line needs a cross-reference to the business rules, then.
 
That's a good point
 
Part of me wants to release in shorter iterations
A bigger part of me is too lazy to go through all the hassle that comes with it
 
The key to rapid release cycles is to automate everything.
Or at least automate as much as you can.
 
Yup, and when you can shorten the development chain by removing the human factor between Jira and Jenkins, then you're at the pinnacle....
 
7:40 PM
But do the automation in stages: do release 1 by hand, but as you do so, write down all the steps you carry out.
Then before making release 2, automate the most annoying bit (using the written procedure from release 1 to remind you of what the steps were) and update the procedure.
Rinse and repeat until all the annoying steps have been automated.
 
I don't think there's much to automate. Create NuGet release, create Github release, fill some ReadMes, manually test diagnostics
 
Well, then, it won't take many release cycles before it's all done.
Writing READMEs shouldn't be a release step, by the way — keep the README up to date as you go along
 
7:57 PM
-1
Q: Enter a url in php using nano

user74451Hello i'm a newbie trying to create a session based membership site. Right now, my page is located on the localhost. I keep getting an error and I'm pretty sure it's because when I type: $site = "http://localhost"; everything after the double forward slash is commented out. How do i prevent this?

0
Q: Merge Sort in Perl

GageI'm new to Perl and have successfully written a merge sort program. I'll paste the entire program below, but would like mostly a review of the subroutines mergeSort() and merge(). I tried to use pass-by-reference as much as possible to make as it as fast as possible. Is there ways I can make...

0
Q: Method that renders all existing drawn lines on the view

Kala JI have several tabbed views with a Unity scene in them. What I do between scene is hide the elements in that scene, then render them if the right view is shown. The method below is the method that renders all the lines previously drawn in my view. The lines can be lines, angles, points, etc.. ...

 
8:14 PM
@nhgrif Assuming the absence of comprehensive date functions in JS, can you think of an alternative to calculating dates "by hand" like that?
I saw a Date.getTime() function that apparently can be used: "The value returned by the getTime() method is the number of milliseconds since 1 January 1970 00:00:00 UTC"
Would that be a more "acceptable" way of comparing time elapsed between two dates?
 
Is there a particular issue with your code? Otherwise, this isn't the appropriate site, consider asking this in Code ReviewJCOC611 34 secs ago
Yeah, codereview is the way to go for this. That and 'get rid of all the elifs', which I'm sure is what codereview will say :) — theodox 11 secs ago
I'm voting to close this question as off-topic because it belongs on Code ReviewPeter Wood 41 secs ago
 
8:32 PM
-2
Q: leap year finding java

Nipon Bharalii am getting compilation errors while trying to find leap years. http://prntscr.com/79qj8a please help import java.io.*; class demo { public static void main(String...s) throws IOException { BufferedReader br=new BufferedReader(new InputStreamReader(System.in)); System.o...

 
If the code works as intended, this would be OK for Code Review. You may want to add more context though as to what this code is for to be better received there. — Phrancis 49 secs ago
 
8:55 PM
public enum Joke {
    JavaScript,
}
 
I don't think this is right for code review as it likely doesn't work at all (actually || is a syntax error so it doesn't). I just think the OP needs to clarify his problem. — JGreenwell 34 secs ago
 
@PeterWood Please don't use the custom close reason to direct questions to sites when the question would be off-topic at the target site. There are plenty of existing reasons you can use to close this as off-topic for Stack Overflow (unclear, too broad are the first two that come to mind). All you're doing is closing the question here with a massively inappropriate close reason and shuffling this bad question off to another Stack Exchange site where it'd still be off-topic (and closed there as well). — nhgrif 8 secs ago
 
0
Q: exception handling for switching structures for pthon

Sourindu Chatterjeei am trying to make a inputin() function to take all the parameters input for the first time with exception and for individual parameter for the runtime proposition, i am thus looking forward to reduce code size or being more efficient coder with more pythonic procedures~~~ Please help def input...

 
9:12 PM
Ah well. Guess it was off-topic on both sites then.
 
2
Q: Support for searching chat messages with a regex-like syntax

Ethan BierleinOften times I want to search for messages containing words with varying lengths of characters, like, Shhhhh versus Shh, or Hellooo versus Helloo. It would be helpful if we could have a regex-like system for searching through chat messages. For example, I could type this: (s|S)(h|H)+\.* And it...

 
0
Q: Scala. Replacing all occurrences in a String

MyTitleI have string like: val content = "some_text{macro1}another_text{macro2}text" I want to replace the {macro1} and {macro2} with macro1 and macro2, i.e. just to remove the { and }. I wrote some piece of code which works fine, but for me it seems very hard to read: val Pattern = """\{(.*)\}""...

 
Gosh darn. My stream got interrupted by @CaptainObvious
 
9:31 PM
Um, WTF
"use strict";
let testDate = new Date(null);

if (!testDate || testDate === "Invalid Date") {
    console.log("Not a date");
} else {
    console.log(testDate);
}
// Thu, 01 Jan 1970 00:00:00 GMT
I guess Date() interprets null as 0
 
See, this is the problem with JavaScript. In other languages, that would throw an error, but because JavaScript = "Joke", it doesn't.
See, this is the problem with JavaScript. In other languages, that would throw an error, but because JavaScript = "Joke", it doesn't.
Ahm, is anyone else seeing two messages?
I think my internet just crapped out.
 
> JavaScript, because it's better than PHP
 
User: "Here, take this PHP". PHP: "OH GOD WHAT IS THIS I'VE NEVER SEEN IT TIME TO CRAP OUT"
 
@EthanBierlein It's not just you
 
Evening all :)
 
9:41 PM
I have to thank today's commitstrip for my inspiration behind that joke.
 
@DJanssens Hey!
 
you might want to post this on code review stack exchange — Dan Beaulieu 1 min ago
 
@Phrancis! How are you doing? :)
 
Well, not bad. Just learning more every day about the quirks of JavaScript ;)
How are you?
 
cool :)
node.js?
 
9:45 PM
Nah, just POJS
 
aha :)
Working on my thesis.
@Phrancis any chance you know how duplicates are processed on SE? I know it needs 6 votes in order to be closed as duplicate. But does one initially have to find duplicates and then wait till 6 people find the same duplicate? :D
 
If your code works and you are looking for a way to improve it then you probably should post your question on codereview.stackexchange.com instead of Stack Overflow. — Pshemo 45 secs ago
 
@DJanssens I think it goes into the review queue like other VTC reasons
 
I see
I just noticed this picture i.stack.imgur.com/w9vuq.png
 
For those to lazy to click on that link ^^:
 
10:00 PM
function isValidDate(date) {
    if ( Object.prototype.toString.call(date) !== "[object Date]" ) {
        return false;
    } else if ( isNaN(date.getTime() )
        return false;
    } else {
        return true;
    }
}
 
but it seems that the suggested similar questions seem only based on the title.
Anyhow, it still needs someone manually to discover the link between duplicates I guess.
That happens pretty rare I guess :/
 
A bit clunky, but I guess it should work fine... For some reason when you pass an invalid value to Date() it looks like it converts it to the String "Invalid Date", but if ( myDate === "Invalid Date" ) doesn't work, because it's not a String
 
@Phrancis this shit right there is why I hate JavaScript
And a few other kinds of shit
But that one the most
 
37 mins ago, by Ethan Bierlein
See, this is the problem with JavaScript. In other languages, that would throw an error, but because JavaScript = "Joke", it doesn't.
@JeroenVannevel ^^
 
You'd think that one of the benefits of dynamic typing is that you don't have to care about the type
in reality.. not true
It's just a lazy language that takes away the need to specify types to compile, but still requires them to run
 
10:14 PM
That's where a lot of my frustration with JavaScript comes in. I once spent 25 minutes trying to figure out what was wrong with a program only to find out I was passing a string to the method instead of an integer. Except JavaScript didn't give two shits and said, "Whatever, who cares. Just run.".
 
Is someone here that has 3k+ reputation on SO? :D
 
@DJanssens @nhgrif Recently passed 18k.
 
@DJanssens: what for?
 
@JeroenVannevel seems to be appropriate too :D
 
Yes. Finally. Some recognition
 
10:17 PM
I need the number of questions in the to close queue
the number of questions that still need to be processed :D
 
Actually a screenshot would be even better :D
 
but the real amount is probably 100k
 
I'm not sure why so many people are up in arms about this question..
 
Why is the real amount different?
 
10:19 PM
At least that's how they did it after the rework of the queues: first they show only those with 1 more vote needed
then those with 2
etc
I don't know how many they need now
but considering the CV queue was over 100k..
 
I see
 
they do this to not discourage people?
 
yeah, pretty much
and to get the ones with most closevotes sorted out first
since I believe closevotes expire after some time
 
:D Thanks a lot Jeroen :D I'll put some acknowledgement in the back of my ppt :D
yep after 4 days
 
10:21 PM
lol, thanks!
making me famous
4 days?! I was thinking 6 months
 
Close votes age away harmlessly after 4 days if the threshold is not reached. Each new close vote resets the timer, and close votes only start expiring if the question has had 100 views.
 
ah okay, the 100 views thing might explain it
 
:)
 
CYALL
 
KTHXBAI
 
10:39 PM
0
Q: Web Scraping with Python + asyncio

Adam HammessI've been working at speeding up my web scraping with the asyncio library. I have a working solution, but am unsure as to how pythonic it is or if I am properly using the library. Any input would be appreciated. import aiohttp import asyncio import requests from lxml import etree @asyncio.coro...

 
I'm voting to close this question as off-topic because it is asking for code review. — Felix Kling 33 secs ago
@axlpl: If you have a specific problem with the code you have, then explain it. Describe the result you expect and what you currently get instead. Code review by itself simply off topic. — Felix Kling 1 min ago
 
why do we still need to inform users that "the Start Date should always be less than the End Date", or that "First Name is a required field"? Since User.Current.Electrocute() won't be added to the .NET Framework until .NET 4.0, most of us generally have to resort to displaying some kind of UI cues to politely tell the user what they've done wrong - Paul Stovell
 
I want that feature.
 
11:01 PM
There is no question. If you are looking for a review of your code I suggest: codereview.stackexchange.comWalker 37 secs ago
This question appears to be about how to write new code and/or explaining code, which would be off-topic for Code Review in both cases. — Phrancis 36 secs ago
 
Just one more answer and I'll have the tag badge.
 
It's not clear whether there is a problem or not, so I would recommend to hold off recommending Code Review until the author of the post clarifies their intent. — Phrancis 35 secs ago
 
@Jamal Is that a good or a bad thing? ;)
 
Good thing, assuming it won't be burninated any time soon.
 
I don't guess it will be, otherwise you probably would have done so yourself a while back :)
 
11:09 PM
There weren't very many disagreements against the tag on this site anyway. Regardless, I do need to post more answers overall.
 
I think is a good "meta"-ish tag. It certainly does say something about the kind of question one would expect
 
 
Hey @Quill you have a picture now!
 
@Phrancis huh?
 
Oh wait, have you had that profile picture for a while?
(I'm not good at paying attention)
 
11:18 PM
No, it's my third one
I had two with boxes on my head though.
 
Ohh OK. Well, HAI!
 
I'm a bit late I see
2 hours ago, by Ethan Bierlein
I have to thank today's commitstrip for my inspiration behind that joke.
 
Yeah CommitStrips get posted through a feed here. Also xkcd do I think
 
Perhaps I should just ask before posting them then
 
That's answer #2.
 
11:31 PM
@Quill All's good, not like you're interrupting a conversation or anything :)
Ew, I have notifications on Facebook.
TODO: Delete Facebook account
 
I got the tag badge already? I guess something has changed since the script hasn't ran yet.
 
Congrats :)
@Jamal going through Facebook I'm looking for the edit button on others' posts lol.
Learn grammar, people.
 
11:57 PM
PhoneStar ^
 
Drop in the bucket.
 
RELOAD!
 

« first day (752 days earlier)      last day (3259 days later) »