« first day (957 days earlier)      last day (3061 days later) » 

11:00 AM
@Zak It is in some parts of the world 8)
 
It might be in New Zealand now, I think
It's 9pm here
 
@Quill-HATMANIAC I keep forgetting you're Aus and not Murican
 
Zak
@DanPantry Sure, but doesn't SE run on UTC?
 
@Zak Yes. And the comment times I just mousedover said it's the 17th, so I'm not sure where you're getting the 18th from o.o
 
@DanPantry the star wars hat
 
Zak
11:02 AM
@DanPantry I got the Star Wars hat. Which *should* be for activity on the 18th
 
OH wait, @Zak it's ~12 hours either way
12 hours before and after the 18th
 
Yeah, it would make sense that NZ could get it now at any rate
How do you get the hat? Asking for a friend
 
because it was the same for the cake one
@DanPantry vote or post a question or answer
easily
 
seems simple
 
11:03 AM
yes it is
 
Zak
*Phew*. That was a big one.
6
A: Extract values within date and zone ranges

ZakBoy is there a lot to talk about here. First things first, if Option Explicit is not at the top of every code module, go to tools --> Options --> Require Variable declaration. This will automatically insert it from now on (I honestly have no idea why it was optional in the first place). Now, ...

 
Hm
I'm trying to style a CSS nav bar that is scrollable on smaller screens
But it appears only a few platforms offer styleable scrollbars because it's not part of the w3c standard :(
Maybe it would just be better to have a dropdown instead
@Zak RE Option Explicit - it's probably there for the same reason we have to use 'use strict' in JavaScript - backwards compatibility issuies
'use strict' works fine until it doesn't because a script relies on the legacy behaviour, so you can't have it switched on all the time in the browser, you have to opt-in
BTW @Quill-HATMANIAC did you ping me last night? I can't remember
 
Hey @DanPantry you handsome fella
sooooooooooooooooooooooooooooooo I have a question
 
Why are you only ever nice to me when you want something :( I feel like a cheap whore.
But go on?
 
I'm always nice
 
11:12 AM
MOnking
 
Zak
You have to go back 15 questions to find one I haven't been involved in now :)
 
Is there any reason why in the following piece of code, the first two and the last log statements can be reached but not this inside the sendMail callback?
function handleEmailInternal(transporter, mailOptions, callback) {
	logger.info('Attempting to send email with config ' + JSON.stringify(mailOptions));

	logger.info(JSON.stringify(transporter));
	transporter.sendMail(mailOptions, function (err, info) {
		logger.info('test');
		if (err) {
			logger.error(err);
			callback(err, null);
			return;
		}
		logger.info('Email succesfully sent. ' + info.response);
		callback(null, info.response);
		return;
	});

	logger.info('wat');
}
 
is your callback actually being called?
 
Zak
Also, 5 upvotes to edit privs :)
 
no, I mean the sendMail function
It never displays test, for example
 
11:13 AM
>
is your callback actually being called?
 
This is my logging output:
 
I understand what you are asking.
 
lol
 
passwords
 
11:14 AM
nailed it..
Is the callback you pass to sendMail actually being called?
 
Well.. it has no logging output.. so I would assume not
but I don't see what I would be doing wrong
 
There's your problem
Well, neither do I, as that sendMail call is not my library
If the callback isn't being called that's something you're going to have to investigate..
 
Dangerously close to captain obvious territory
 
@DanPantry yes I did, @ismaelmiguel helped me out
 
@JeroenVannevel Sorry but it is a Cpt Obvious thing :P
 
11:15 AM
What I meant to ask was -- if the sendmail callback isn't called, does that mean something went wrong in that function itself or is there another reason a callback wouldn't be called?
Mostly to confirm that I'll be looking in the right place instead of going on a venture which might have an easy different explanation
 
If you got to the last log statement then no there's nothing wrong with the function and it's something wrong with sendMail invoking the callback.
 
aight tight
 
I'm sure I've explained this before :s
 
is this node or browser
 
@Quill-HATMANIAC it's irrelevant, the behaviour is the same
 
11:17 AM
not to me, I never need a double explanation
 
Javascript, like nearly every other language, has run-to-completion
 
Maybe something is wrong with the email config I pass along
 
It will execute every statement in the order the function is defined
If there's an issue it will stop exactly where the issue is and bail
 
@DanPantry well one I know you can easily debug
 
When you have callbacks, the callbacks aren't invoked immediately, they are invoked at X point in the future (or maybe not at all)
So if a callback isn't invoked, but statements after the callback is passed are, then there's no issue with the function, it's just an issue with the thing that's meant to be calling the callback
@Quill-HATMANIAC you can debug node as well using node debug script.js
 
11:19 AM
@DanPantry i dont do node i wouldnt know that but now i do
 
@Quill-HATMANIAC Node runs on the V8 engine. broadly speaking, if webkit can do it, so can node
 
or mocha script.js --debug-brk
PS, check this really sexy javascript functionality:
const response = {
	type: 'EMAIL',
	config: mailOptions,
	action: function (subCallback) { return handleEmailInternal(transporter, mailOptions, subCallback); }
}
 
That's as sexy as the word "moist"
 
@DanPantry Now I imagine a bearded dude saying that...
 
Passing an anonymous function with local parameters so I can call it with those local values from an external location at a later point in time
 
11:21 AM
You want code review? >> codereview.stackexchange.comTom 41 secs ago
 
that is sexy
 
Sounds like a surefire way to get headaches
 
For once I'm positive about this language and again the man isn't satisfied
what must I do
 
Here is something that is sexy
 
Lol, why is it national news here everyday if a day is in the top-5 of hottest (or coldest on rare occasions) days of the year ever in history :|
 
11:23 AM
you and your sassy company
 
> Why is Climate Change news?
@JeroenVannevel More like the fact I am requiring a .sass file and using the css classes as a javascript object ;-)
 
@DanPantry The news postings aren't much related to the climate change, it's more like "Look! We have a new record yet again!"
 
Greetings, may the monk be with you.
 
@skiwi we had golfball size hail the other day
 
Don't be so hard on the Dutch. They can't even get through the EC qualifiers, a record in anything is very important to them.
 
11:25 AM
@Quill-HATMANIAC Sydney, Australia?
 
yeah
not necessarily we, I don't live there
I just live in the same country
 
@JeroenVannevel Buuuuuuuuuuuuuuuuuuuuurn At least we have a parliament most of the year
 
Belgians don't need a government to babysit them
2
 
No i dont want a code review. Im looking for the right clean way to do it, and i just posted what i have tried so far. — Emil Kaminski 42 secs ago
 
@JeroenVannevel who needs a government when you can be incapacitated by chocolate 8)
 
11:28 AM
Alright, I have two days to get some features working before I go back to Belgium
Time to focus
 
oh well at least half of your country isn't desert
 
@DanPantry Help, I'm confused
2
A: Simon Says: is this too complex?

SirPythonFirst off, your code looks very pretty and clean and was an ease to read. JavaScript Get all the document elements! No. You are often calling the method document.getElementById. You should try to minimize these calls as much as you possibly can. Just imagine how slow this function must be, ...

> You are often calling the method document.getElementById. You should try to minimize these calls as much as you possibly can. Just imagine how slow this function must be, having to traverse the entire DOM for a single element.
 
I'm pretty sure you said yesterday that document.getElementById was a good thing? ;)
 
@skiwi well is anything good
 
Zak
11:29 AM
@Quill-HATMANIAC As low as half? I'm amazed :)
 
things are just better than other things
@Zak more like two thirds
 
@skiwi It is a good thing.
Doesn't mean you should use it when you don't need to
4 function calls > 1 function call
Regardless of what function it is
 
And you want that someone looks over it and suggests better solutions. This is one of the goals of "Code Review". — Tom 17 secs ago
 
document.getElementById("newGame") is cached by both firefox and chrome but IIRC there's no spec requirement to do so.
You should still assign it to a variable, like the result of any other function that you use more than once.
Array access is fast, but you don't see yourself using arr[i] several times in a for loop. You do var foo = arr[i] and then use foo
DRY etc
 
Alright, but it does traverse the full DOM? So it's good for "static" lookups, but not (so good) for elements you create dynamically?
 
11:32 AM
document.getElementById could traverse the whole DOM.
But then again you need to do that to get any DOM element.
Realistically speaking, seeing as elements with IDs are unique it's likely the browser does some optimisations based on element IDs so it's in a hash table or similar.
 
the red circle is deserty
 
But DOM access is slow, that's a known factor in JavaScript, you should avoid it as much as possible
I think my version is more realistic.
 
what's up with the line
actually there's box jellyfish on the east side too
 
the part south of that line is the habitable area
 
Are you trying to define a notion of "safe" in Australia?
 
11:36 AM
@DanPantry except victoria is bad (isn't that right @mjolka :P)
 
@Quill-HATMANIAC I put the label in the sea for a reason :p
 
@DanPantry fixed it
I called done() in my test but I never defined it as a parameter
:D
 
literally midnight last night and it was so hot I was sweating
 
@JeroenVannevel this is why I use promises
@Quill-HATMANIAC it was midnight last night? fascinating
2
does midnight occur often in australia?
8)
 
I would make a horrible lover to JS
I break promises and don't call back
5
 
11:37 AM
do people consider you funny, or do they just sigh and walk away
2
 
I think I'm funny
 
That better be meant for @DanPantry
 
well that makes one of us
 
@JeroenVannevel well I starred your message
 
11:38 AM
@Quill-HATMANIAC that cuts deep :-(
 
@DanPantry it's okay bby, you've still got the hair thing going for you
 
you can tell I'm sad because i actually gave the emoticon a nose
 
The stars reveal deep truths.
3
 
My humour walks into a bar.
There is no counter.
 
Zak
VBA just hit 250 questions. yay!
 
11:40 AM
@Zak This accomplishment would be more impressive if the answers could be more varied than "Use C# instead"
3
:^)
yes I know VBA != VB
 
@Quill-HATMANIAC Often both.
 
@Mast my goal is usually to piss people off with puns
 
how disappunting
2
 
not good enough
 
the star disagrees. >8)
 
11:46 AM
From my friend's skype status: A friend of mine tried to annoy me with bird puns, but I soon realised that toucan play at that game.
that's a good pun
 
Zak
To be fair, I'm present, so all stars implicitly carry less weight until I run out :)
4
 
@Quill-HATMANIAC I guess you could say your friend was... parroting the other friend
 
 
@Mast Oh, look, it's @Zak
 
@Zak You haven't run out yet?
 
11:48 AM
My response, @DanPantry, was: I thought you might've been finally crowing out of that pun habit, but I guess that would be robin you of your fun...
 
@Zak uses so many stars he might just be the space personality core from portal 2
 
@DanPantry LOL (goddamn that's a good game)
 
user image
5
 
Zak
@Mast You would have heard if I had :)
 
@Quill-HATMANIAC There's a star. There's another one. Star. Star. Star. Star. Star.
 
11:52 AM
0
Q: I'm trying to convert a mp3 file into a wav file using JAVE

navalrishipublic String ConvertFileToWAVE(String inputPath) { String outputPath=null; try { int index = inputPath.lastIndexOf("."); String name = inputPath.substring(0,index+1); outputPath = name + "wav"; File f = new File(outputPath); try{ f.cre...

0
Q: TabLayout inside fragment fetch data from web

Mina FawzyI am working in project that I use Tablayout inside fragment , I have three tabs where they fetch data from web service , this part of the app show questions , we have three categories one for recent , second for unanswered third for all question view. Here is my situation my web developer desi...

 
Zak
@Mat'sMug @RubberDuck Now that I'm trying to avoid upvoting *too* many of your VBA posts, I've noticed *just* how many there are. I'm routinely finding questions with 2/3 answers where every post is one of you 2 :)
Also, turns out I'm responsible for half of all the new VBA questions for the past fortnight :)
 
0
Q: Building a heap

Colonel PanicI tried building a max-heap following http://rosalind.info/problems/hea/ The goal of this problem is to build a heap from the given array. For this, go from the end to the beginning of a given array and let each element "bubble up". I understand there's a smarter algorithm to build a heap, ...

 
12:08 PM
It should but it doesn't. I use another way : codereview.stackexchange.com/questions/114221/…Mr-Moqadam 44 secs ago
 
Monking
 
If your code is working and you're just looking to improve on it, you'd be better off posting this at: codereview.stackexchange.comSam 59 secs ago
 
Lol @Zak yeah. We have a nice little niche. The sub community waxes & wanes.
 
0
Q: Create a Color Box Image GUI inside WEB

user4316754I have been working on a web application that produces an image out of colours, having multiple divs works, but the load time is slow and until the image loads its timetaking, I would like to make a table like image with lots of colors extracted from an image and display them inside a web page. I...

 
12:26 PM
@CaptainObvious Wait... I'm rereading this slowly. Are they asking about doing this code in another language?
 
Zak
@SuperBiasedMan That's, an interesting review.
How can I do this better, in another language if necessary.
Too broad?
 
I'm not sure, it's not entirely clear what they're saying.
 
Zak
Just had to help a colleague find some "missing" spreadsheet data. They'd scrolled 2 columns right and failed to notice.
3
 
12:52 PM
This just popped up on my feed scontent-ams2-1.xx.fbcdn.net/hphotos-xfa1/v/t1.0-9/… had to share it.
 
0
Q: relationships in class diagram

user1989I am studying class diagrams and I have doubts on modeling aggregation, compositions etc. The picture below represents a simple application where the user inserts names on the database. I would like to know if it is correct, specially the following: When a class is instantiated inside a method o...

 
Zak
1:17 PM
Question, would a review of purely code comments be technically On-Topic?
 
@Zak Sometimes.
 
IMO no
 
Let me grab an example.
 
OSI does not retweet - but, when they do, they retweet me;-) :
@OpenSourceOrg, Palo Alto, CA
Global non-profit: promotes and protects open source software, development & communities through education and advocacy. Yes, we coined the term!
8.5k tweets, 9k followers, following 130 users
 
58
A: Derpifying Images

nhgrifThis script is a total of 99 lines. Of that, 49 lines are insulting, annoying, and ironic self-congratulating comments. In general, comments are good. They help any future maintainer (including yourself when it's been 6 months since the last time you looked at the script) to understand what ...

However, in more usual circumstances, it's all a bit finer lined.
Technically this is Code Review. Are comments code?
 
Zak
1:19 PM
I meant, a question consisting solely of code comments.
 
@Zak Huh? No. Most definitely not.
 
Zak
Thought as much.
 
Comments are useless without the code they're accompanying.
 
Zak
Sure. In this case, I'm starting a new project and just finished the top-level description. Figured I'd get some feedback on if I've structured it well. So, if anyone has some informal feedback:
 
@Zak I'm not sure what's standard for such applications, but as long as those statements are accurate they look quite good.
Looks like you're putting the documentation in the code, are you supposed to?
 
Zak
1:27 PM
@Mast Who knows? I *am* the IT department, and things will probably remain that way for some time to come.
The company has no policies on software development.
And if I suggested it, they'd just tell me to figure it out.
 
@Zak Ask your manager
Oh wait, you are your manager?
 
Zak
@skiwi Pretty much. People give me things they want done/built. I figure out the rest.
That's the extent of their involvement in the Dev. Environment.
 
So you're also responsiblef or some important stuff then I figure?
 
@Zak those inputs, how are they given to the function? Just wondering.
 
Zak
@DJanssens Right now, they're sitting on worksheets.
I'll put them in Arrays. From there, who knows.
@skiwi I guess. We're not at the point where if I left, they'd *have* to hire another developer to maintain my stuff, but we're not that far off either.
And since I'm the only IT person, I get involved in pretty much every part of the company (except the trading system, I give that a very wide berth.)
So from our bank accounts at one end, through to writing powerpoint presentations at the other.
 
1:35 PM
That's quite a lot
 
Zak
Yep. On the plus side, nobody else has any idea how to program, so they've no idea just how badly written most of my stuff is :p
3
 
@Zak Well, don't make too big mistakes though :P
I did this refactoring yesterday and am proud of it: github.com/skiwi2/OLog-Userscript/commit/…
Though I'm actually a bit hypocrite, first I write bad code to just get the job done, then I refactor it and feel proud, while I could've avoided it in the first place
 
@Zak I could get used to such an assignment, but it sounds a bit like a final destination.
 
Zak
@Mast It's really not. It's an established small company (so no startup), 10-12 employees, on the expansion path (right now, about 50%/year). I'm the first non-Director, non-Admin employee. So anything and everything technical comes my way.
I got the job on the basis of being a guy they knew (I did a few months' data entry before University), who was smart, adaptable, and cheap.
And now I'm frantically learning as fast as I can to try and keep up :)
 
1:44 PM
@Mast I thought you were referring to the movie series for a second lol
 
@Zak That's not what I intended to say. It's more that it's a job requiring a skillset that doesn't map too well with more usual jobs.
 
Zak
@Mast Ah, right.
Sure, it doesn't fit well into a standard low-level corporate heirarchy.
 
0
Q: Quicksort for strings in Java

coderoddeI have this implementation of Quicksort for strings. The algorithm sorts the requested range by first character, then by second, third, and so on. (Please, do not confuse this with radix sort; it is not.) The pseudocode might look like this: # Public API Sort(R): Sort(R, 0) Sort(R, len): ...

 
But it sounds like a great job.
 
Zak
But the ability (and encouragement, support and funding) to go through constant training, learning how to actually *be useful* to a company. And weaving my work into every part of it.
If the company keeps growing (and it's doing pretty consistently so far)
 
1:47 PM
2 more VTC on this
 
Zak
Within a couple years' it could be quite substantial (we're giving serious thought to splitting out our fund management into a fully-regulated Investment Fund)
 
Almost sounds like you got yourself job security for the next couple of years. Not bad.
 
@DanPantry when I have a function that throws an error and returns a callback, where do I log that error?
 
Zak
@Mast Well, assuming my mental health works out.
But yeah, exciting :)
 
I keep getting "504 Gateway Timeout" errors on Coding Grounds, would someone else try and see if it works for them? Coding Grounds - pick any language, the 504 happens after trying to load the editor for me
 
1:51 PM
yeah same
 
Zak
Ditto
 
Nope, dead to me too
BTW, Greetings everybody
 
Dead.
Never heard about Coding Grounds before, any good?
 
@IsmaelMiguel Greetings
 
Zak
Only midday and I'm just 8 votes from rep-capping...
 
1:53 PM
@Mast It's pretty good especially when you want to try out a new language or write/test a quick script without having to install all the stuff on your PC
 
@Mast Well, they seem to be having uptime issues :P
 
Zak
@Phrancis I'll have to bookmark it
 
@skiwi Except for that obvious issue ^^
 
It's a bit like ideone except their web interface is more responsive (and prettier and fewer ads)
 
Ads? Oh, right.
4
 
1:57 PM
Monking
 
Monking @Vogel612
 
Monking @Vogel612
 
Monking @Vogel612
 
Zak
@Mast Adblock FTW
 
Monking @Vogel612
You broke it @Zak
 
2:03 PM
Morning!
I arrive this morning, didn't type a single answer today, already +110. That's cool.
2
 
Monking!
 
@TopinFrassi How did you do that?
 
Nice answer of a new user
2
A: Synchronous / asynchronous REST client

dezhikOn every getAsyncData call you create new DataFetcherTask with private ExecutorService executorService = Executors.newFixedThreadPool(10); (why 10?) then create 3 threads and then abandon them all. (Note that it's better to shutdown threadpool manually than rely on ThreadPoolExecutor.finalize(...

 
@IsmaelMiguel With answers from yesterday that are popular today :p
 
Zak
@TopinFrassi I woke up to this this morning:
 
2:07 PM
Sounds like the way to do it
 
Zak
It was a good feeling
 
@Zak Merry Hatmass
 
@Zak That's nice. :p It's fun not having to work today to get that rep. :p
 
@SuperBiasedMan Hatmess
3
 
0
Q: Is my design is still a state design pattern, or some abomination?

user902383I was trying to review state design pattern, and tried to create flexible implementation of it so it could reuse it in future. So I came out with this: public interface FsmState<S extends Enum<?>,INPUT> { Result<S> action(INPUT input); } an this public class Result<S extends Enum<

 
2:23 PM
You should consider posting this on codereview.stackexchange.com, rather than SO. — Brian Keller-Heikkila just now
 
STAR WARS HATS!
 
If you want this to be legit on Code Review, it should include the code that is currently left out! :) And maybe, just maybe, try to reduce the length of your text, that's kinda long — TopinFrassi 33 secs ago
 
With the addition of the star wars hat, more than half my hats come from doing basically nothing.
Zak, i skimmed the old chat and your job environment sounds so similar to mine. :P
 
@SuperBiasedMan Are you sure you're not the same person?
 
@skiwi I had to check, but I don't think I work for a place that handles investments.
 
2:32 PM
Okay, good ^^
 
Zak
@SuperBiasedMan Plus, pretty sure we live in separate countries.
 
That question made about as much sense as the government worker today asking if I had passed my exam when requesting a drivers license...
 
@Zak To a lot of people Britain and Ireland are basically the same anyway
 
Zak
@SuperBiasedMan Yeah. 'tis true.
IIRC, it should go: (Great) Britain: England, Scotland, Wales. UK: Great Britain and Northern Ireland. British Isles: UK and Ireland.
Trust us to make it complicated ^^
 
Yeah. All I know is that the British Isles is the land mass, after that I'm lost on the political differentiations.
 
2:49 PM
And, of-course, there's the Commonwealth.
 
There's Commonwealth in Fallout 4 too
 
Zak
If people want to help me get hatrick. I've done 20 or so Q/As in the last fortnight, and I only need 8 upvotes to rep-cap today...
 
I think this question is better suited for codereview.stackexchange.com. — Wesley Egbertsen 13 secs ago
 
0
Q: CakePHP static pages (without entity) but with dynamic content

RicardoI have a few pages that is not conected with entities (index page, terms of use page, email page). Detailed description: In CakePHP when you want to have a static page (such as index for example) you should use the PagesController (is not connected to any entity). However my static pages have dy...

-1
Q: Android application for Quotes with pictures, suggestions?

ristoI am building an Android application for Quotes and Sayings (with pictures). Here is what i already did: Categories like : Funny,Love,Inspiration,Wisdom, etc. I am aiming around 20-25 categories. Like, Share, Download, Set as wallpaper. Top 50, most liked. Every picture you like goes into your ...

0
Q: How to properly handle java instant ajax request/respond with angular?

Jason ZI am trying to build a food search app. Technology I am using angular and spring. Currently I am using the yelp api, but its done in Java side. I think what I have achieved is really bad design, it works, but the data is not always get updated correctly. Here is what I've done: For java, I cr...

 
3:10 PM
@CaptainObvious no code
 
@CaptainObvious no clue
> You've earned "A New Hope" on Code Review
everybody has that hat, right?
 
Monking
 
monking!
 
@Mat'sMug ask, answer, or vote on December 18th
 
StackLand Dec.18, so today works
 
3:19 PM
So yeah anybody who vote answer or ask
 
🎄 He's making a database He's sorting it twice SELECT * from contacts WHERE behavior = 'nice' SQL Clause is coming to town 🎄
5
 
@Mat'sMug Ahaha I'm now realizing we are not the 18th :P
 
@Marc-Andre aw, that sucks. that moment you realize it's not Friday... ;-)
 
Indeed! More so that I'll be in holiday starting tomorrow until the 5th of January
 
@EthanBierlein That's one of the better holiday jokes I've heard recently.
 
3:24 PM
Agreed
 
Today is not Friday but our Christmas party is tonight. I predict questionable productivity levels tomorrow.
 
Any thoughts on this (VBA folks)?
or not
 
lol
Aaaand DVLR
 
3:43 PM
I'm sending data from an userscript to the server instance, data is in the form of "[1:30:10]", but I process it as {galaxy: 1, solarSystem: 30, position: 10}, any clue where I should do the conversion?
 
@skiwi Wrong chatroom?
 
@EthanBierlein Nope, well, it's non-existing-code-yet-review
 
@skiwi is that a galaxy far, far away?
 
STAR WARS HAT IS COOL
 
0
Q: Repeating a std::string n times

DanielI recently posted an answer to this SO question as I did not think any of the current answers were satisfactory (most don't even answer the question!). I was wondering if anyone could offer any improvements on my solution to this problem? I'm most interested in performance here. Also note this al...

 
3:45 PM
@Mat'sMug Possibly
 
@skiwi ArrayToJsonConverter
 
3:58 PM
I'm voting to close this question as off-topic because this questions would be a better fit on: codereview.stackexchange.comJorge Campos 44 secs ago
 

« first day (957 days earlier)      last day (3061 days later) »