« first day (2155 days earlier)      last day (2803 days later) » 

Knu
12:51 AM
Can someone please explain me why this question was put on hold?
It doesn't have to be reworded. It's on-topic and it's not a recommendation in any way.
What's even more surprising is that 5 people agreed!
robo reviewer or something
 
1:06 AM
@Knu I would say the question is to broad
different reason entirely
it isn't a narrow q&a question
 
1:30 AM
@SterlingArcher starchertrek.com
 
that is awesome
 
1:44 AM
@KendallFrey want an older rpi if you're ever in kw area?
2b iirc
 
Knu
@William please develop. I am asking something quite precise: global require function.
 
yes but asking someone to list and test all possible implementations isn't an actual programming problem
 
Knu
I don't what's your definition of broad but here Id say it's pretty much the complete opposite. Id even say it's too specific.
 
@Knu you have more rep then me dude. I 'm just guessing why it was closed. People often don't look at the vote but just vote to close if it is to broad. Where is a similarly posted question? If you can't find a similar quiestion in another language or platform then bingo it won't work
 
weird, because an AMD implementation should, by definition, include one.
 
Knu
1:47 AM
@littlepootis not global
it's optional see the question
 
again where is a similar question posted?
 
Knu
@William well I am not very active in the queues
 
@Knu oh, I get it now
 
@Knu whereas I don't think it is a bad question, I do think it is not exactly a fit for SO. I'm not even sure which site it belongs in? maybe just the new documentation stuff?
 
Knu
seriously more than the fact that it shouldn't be on hold is that there were 5 ppl agreeing worries me
 
1:49 AM
@Knu look at the votes no some people downvoted it
 
also @Knu I'm sure you're aware that questions with hundreds or even thousands of upvotes get closed and/or deleted
 
Knu
@William that's because I wasn't giving the bounty immediately to the guy
for a 400 rep bounty I was asking for a bit more
they probably felt bad for him and downvoted
 
if you really want the community to weigh in on it ask on meta
 
Knu
nah
 
meta hahah
 
Knu
1:51 AM
I never ask anything on meta
 
that isn't what meta is for
 
no, meta allows such questions
they are perfectly in line
 
Knu
and since some of my questions on meta were SO were wrongly migrated to SE meta
it's a mess
 
OFTEN they are closed with read the reason, but if you feel 100% the close was wrong they can and do rectify it
(if it was wrong)
 
Knu
no I am coming here because I have fellow JS programmers
that should know better
 
1:53 AM
well I am a fellow js programmer and I would have voted to close it
 
@Knu If you really want your question to be acceptable create a library that autotests in all the versions and then extend off that question
 
Knu
the guy answered with code
 
it's asking for a complete list of implementations -- too broad. if you said "do these three blah blah" then okay
but you're asking for an open ended list
 
Knu
(even if it could be improved)
a list of implementation?!
it's asking for support
 
> Do all major AMD implementations expose a global require?
well first we would need to define what you want by all major implementations
you say "at least these" which can be interpreted as "all"
 
Knu
1:55 AM
sorry what's you point?
 
SO isn't for general questions, maybe programmers would accept it? it isn't a bad question.
but it isn't a good fit for SO imo
 
^
 
Knu
you are gonna ask about the implementations that support a certain feature on programmers?
don't think so :)
 
why not?
 
Knu
I mean if you close my question you can close thousands of other questions.
 
1:57 AM
sure, and they also are getting closed
problem is they don't get seen
as they get seen they are closed
 
Knu
No I mean on what ground would you close it?
 
we've been over this
 
Knu
Ill scroll up. I didn't see anything.
 
to broad
 
@Trasiva lol
 
1:58 AM
@littlepootis Trasiva is afk: Uh...I need to get some real work done.
 
Knu
> but you're asking for an open ended list
@rlemon I disagree canonical answers are accepted on SO
The more you add to them the better.
 
this isn't a version tracker github system
although I wish it was
 
Knu
anyhow I am baffled oO
 
You have more rep then me and almost rlemon how is this baffling?
 
Knu
if anything Id understand if it was closed as too specific
 
2:01 AM
@William u suck at math
 
Knu
@William some ppl with less rep are sometimes more active on meta
 
meta is stupid
 
Knu
ppl are gonna star that comment
 
@Knu and I don't view this as such, to me it is more inline with this type of question: stackoverflow.com/questions/17718673/… yes it is useful and yes it should probably not be deleted but no it isn't a specific programming problem and no it isn't a 'common problem' justifying a canonical
but that is just my opinion, like I said take it to meta or something if you really want it undone
 
Knu
2:04 AM
> How…
@rlemon with that type of questions you get several good answers, not one.
 
well, good luck. my pi is done updating
 
Knu
Mine was offering a bounty. So I wanted a canonical answer ideally.
> no it isn't a 'common problem
@rlemon now that's untrue being able to require a module using a global require which would be compatible with AMD and CJS is something that comes up very often (if you are doing modules of course).
 
@Knu it isn't a bad question but it isn't exactly narrow either
 
Knu
The bounty needs a justification.
 
i don't understand you can post a justification on your bounty
 
Knu
2:15 AM
Making the answer better shouldn't be a reason to close the question!
 
@Knu did you have a bounty when they closed?
I can let you in on a little secret
 
Knu
no it was already given
 
oh well nevermind then
that's funny situation that hasn't happened like that to me before
 
Knu
but I dunno about the period of the bounty
I gave it before the end
 
your question feels like a good github issue or post or something
 
Knu
2:18 AM
It's gonna be used as a resource and eventually be reopened once a lot of answer will link to it.
No sweat.
 
I don't see a simialr question posted on the site so I find it unlikely
 
JSLint says 'Unexpected statement '=' in expression position". Why?
 
@MichaelMcGinnis Welcome to the JavaScript chat! Please review the room rules. Please don't ask if you can ask or if anyone's around; just ask your question, and if anyone's free and interested they'll help.
 
(i = 0; i < suggestions.length; i += 1)
 
Hm.. weird
 
Knu
2:20 AM
@Michael try ++i
 
for(i = 0; i < suggestions.length; i += 1)
 
@MichaelMcGinnis might want you to declare the variable inside of the statement?
 
^ that's it
it woul dtechinically work but it isn't a good idea
 
Hah! JSLint complained first about the for, then about the ++i
 
@William many people define i outside of it
 
2:22 AM
@MichaelMcGinnis Crockford hates ++.
 
@MichaelMcGinnis what is the actual block? and where is i declared?
 
json, the good parts, jslint, jsmin
 
he has influenced js for a long time
 
Knu
nvm then :)
the poor guy was bashed on twitter recently
 
2:24 AM
he's a grumpy old man
very opinionated
the twitter hate was misplaced, there were so many other reasons to hate him
 
Knu
they said publicly he wasn't welcome anymore to the conference he was invited to
 
yes we've discussed it in here in detail :)
 
Knu
that's harsh treatment :/
"Come!" "Fuck off!"
 
consensus (I think) is that it wasn't cool.
he's not very polite, granted, but the reasons the opposition gave wasn't very correct
as in, there was no proof he was 'slut shaming' or 'being sexist'
 
Knu
to get anything done it seems you have to be rude
well I am thinking of Linus
 
2:28 AM
who isn't invited where
y?
 
Knu
the weird thing is that it's not the first time he doesn't show up for a conference
 
who and what?
linus?
 
Knu
Crockford
 
@rlemon I mean, probably, but I have no idea what it's good for.
 
Console error: Uncaught SyntaxError: Unexpected token ;
When I say i=0; is that where i is declared?
 
2:31 AM
If it's not declared elsewhere, that defines i as a property of the global scope
 
Knu
Declared I dunno, but being assigned yes.
 
Don't do that
 
Oh. Okay.
 
Always declare your variables with const if possible, otherwise let, and always declare them in the most restricted scope possible.
 
Crockford said that too. :)
 
Knu
2:33 AM
Id advise to use var and to learn about hoisting instead.
question of taste
 
I'd advise to NEVER EVER EVER EVER EVER use var because it's never useful and is just plain subpar and there's no reason to ever use it anymore.
 
Knu
ES3 compatibility, ease of use
 
Anyone going to Angular Connect?
 
:)
I'd suggest learning everything so that you'd be able to make informed decisions about what to use and what not to.
 
Knu
:)
This course of action will take time or practice though.
exercice: no prior knowledge about modules + having to choose between AMD, CJS and ES6
good luck.
 
2:39 AM
I'd suggest CJS, it's simple.
 
@KendallFrey it has no i2c
so digital only
but they are neat for a lot of different things
 
Knu
now let's try to guess what he means without googling
 
(they also have a hdmi port)
 
Knu
here's a hint :)
internet to c…omputer?
Inter-Integrated Circuit
would have never guessed
 
@Knu Do you still have doubt on why your question is closed?
 
Knu
2:42 AM
yeah
 
@Knu it is a bus -- tl;dr adc (analog to digitial)
 
@rlemon Such as what? A POS system? A robot?
 
@KendallFrey nas, small server (minecraft), controller, anything you would do with an arduino on a digital channel
pi-hole.net looks interesting, albeit not something I'd use
mitm for your local network
:D fuck with yo fam
 
Heh, wouldn't be the first time I wanted something for that
Unfortunately the page won't load without crashing
 
I have 3 pi3's now, and the pi2 is collecting dust
 
2:45 AM
@Knu It is a specific question for an open-ended implementation list. Because it is specific, it is not canonical. Because it is open-ended, it is too board. If you had not asked for an exhaustive list, you may get less close votes. But by asking for an exhaustive list, you are stressing the question's open-ended nature.
 
but if you don't think you'd use it I'll give it to someone who will have fun with it
 
I's probably use it for a day, but I don't know if it would be interesting enough to use for a project
 
well think about it
 
I already don't have enough projects in mind for my arduino
 
I don't think I'll find another nerd close enough any time soon
 
2:46 AM
lol
 
Put it on eBay :p
 
not interested in money for it
 
Is Jordan actually coming this year? We need to hang out sometime
 
no
he mentioned maybe in the spring/late winter
I offered him a room :P
 
so probably never :(
 
2:48 AM
he fucking better! you hear me @SterlingArcher
don't toy with me boy :P
you can even bring your new so
 
But hey I have lots of spare time so if you ever want to hang out just say so
 
s/so/son/
 
I know you want to try my VR
 
but I swear if you conceive at my house you have to name the baby after me
robert if a boy, roberta if a girl.
 
roberto if spanish
 
2:50 AM
@KendallFrey listowel is a good time est right?
 
what?
oh
 
sorry I can never remember where you live
 
I meant coming to your house, but ok
 
well, I assumed it would be easier to come to you for the VR
you need a capable PC
I'm not sure mine is
770 4gb, i5
 
What kind of stuff do you store in 7704gb?
oh
 
2:52 AM
sorry
there is a 770 2gb model and 4gb model
 
Also if you want to try VR you could just buy a Google Cardboard
You'd at least be able to figure out if it works for you
 
it's all the same tech?
 
generally yes
 
3ds and 3d tv's that I've tried and 3d imax do not work for me
 
My cardboard has better visual resolution than my Rift
because the FOV is smaller
 
2:54 AM
OLD 3d worked for me, like from the early 2000s
and the red/blue glasses one works for me
:D
 
TBH I don't see how a VR headset wouldn't work for you
 
<script onload="foo()">/* some inline script */</script>

IE/Edge invoke the load handler for inline scripts; is there a use case for this?
 
I looked it up, apparently it isn't THAT uncommon and it is usually because one eye is faster than the other
 
that sounds... weird
 
but I also get those crazy ocular migraines .. which I'm told is 100% neurological in my case.
so I'm not ruling out that I'm just broken
 
2:56 AM
oh right those
I've had a couple minor ones
 
no pain, but I do see auroras
they are super annoying
can't read
therefore can't work
also around 28 a permanent dark spot appeared in my vision. I'm told nothing to be worried about, but i do notice it
crazy annoying
like a spot on your monitor
 
a blind spot that your brain doesn't correct for?
that would be annoying
 
To me it seems not, because whatever you would need to invoke in the load handler, you could just append it to the inline script, since the load handler runs immediately after the script.
 
no, something physical they said
like those floaty things in your vision sometimes
 
Well I mean that's what it looks like?
 
2:59 AM
but it is fixed, and dark
like a 2mm pinhole in the right middle of my vision that darkens
@KendallFrey imagine looking into a light source and getting the purple spot and the very middle spot never goes away
then shrink that spot down to a very small spot
 
annoying is right
 
yea
the migraines are the right middle of my vision looking like I have a water drop on my camera
it is visible, but all blurry
and the blurs move
 
3:22 AM
is there a name for something like "alert()" which pauses the rest of the script from running?
 
3:43 AM
blocking
 
ok that's what I thought but it is hard to search for that term because it is so broad
I'm trying to find a list of things that block like alert() confirm(), are there others?
 
4:06 AM
 
4:59 AM
@joshhunt alert, confirm, prompt, and showModelDialog (deprecated). Try google javascript "blocking functions" (with quotes).
 
Wes
5:17 AM
*modal or window.open with the modal flag. i think it's just these, though
 
5:59 AM
@Feeds Oh man, I know too many people like this
 
6:36 AM
hey guys.
im trying to download an image from a url and return the buffer object. but my code is not returning the body.
var request = require('request')
function downloadImageBuffer(url) {
	let params = {
		method: 'GET',
		uri: url,
		encoding: null
	}
	return request(params, function (error, response, body) {
		// body is the decompressed response body
		console.log('server encoded the data as: ' + (response.headers['content-encoding'] || 'identity'))
		console.log('the decoded data is: ', body.length, ' and type is ', typeof body)
		console.log(body)
		return body  // the  body is not returning
	})
}
appreciate any help. thanks
 

« first day (2155 days earlier)      last day (2803 days later) »