« first day (2174 days earlier)      last day (2768 days later) » 

Knu
12:54 AM
hey @littlepootis
Anyone knows what is the name of the main object/constructor/function of a module?
 
the default export?
 
Knu
mmmmh
technically that's correct
 
the best kind of correct.
 
Knu
but I need something less generic
export and default have many meanings
 
and yes "the default export" has one
thus, language.
 
12:57 AM
they have a pretty well defined meaning: developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/…
 
@Knu Hey, long time no see
 
There's no special term used in the spec as far as I can see
 
sometimes referred to as 'the module's api'.
 
Knu
I am searching for a word that is more high level that would be used to describe that in any language.
something like the point of entrance
 
but it's not an entry, it's more like an exit
 
12:59 AM
um. entry point?
 
just because it's a default doesn't mean there aren't other members exposed.
 
and it could be a static value, not a function, so not always an entry point
 
Knu
well yeah but I am using a fluent API
so it's nested
 
sounds like your exposing implementation details then :P
 
no, he's exposing a Type
 
Knu
1:01 AM
@Luggage "Type"?
 
i just mean, you can have a fluent api without 'exposing implementation details'
 
Knu
true.
naming things is so hard
 
One of the two hard problems in programming
 
I have nothing better than just describing the exports, default and non
I can't think of any magic words for all languages
 
Knu
if ur bored here's the origin of my problem:
got the signature of that default export in my documentation but since the user can name it anything it wants…
the signature needs to have a name :)
 
1:04 AM
name it after the module?
find documenation like yours and see what they did
 
Knu
that defeats the purpose but yeah that would work if you want to choose a canonical name for the user
it's UMD so I can't even name it default export if it's a global, or can I?
 
so, you need a name.
jQuary
 
Knu
if I was admin :)
man seeing SO using jQuery, makes me not want to work for them
 
what's your module do?
 
Knu
some cross-browser shit
irrelevant :)
 
1:09 AM
it's not irrelevant for naming something
import cbShit from './cbShit.js';
 
Knu
true but I was searching for a word that would work with any module more than anything + I think the user should name it whatever he wants
that's one thing I don't like with pure CommonJS
you have to name your default method
 
you 'suggest' a name, but the user is free to choose another.
and that name is often the name of the module.
or some convention base on the type of export
and that name is what would be used for a global export.
there, you don't want anything too generic
 
Knu
off topic @Luggage your top tag is powershell > what do you think of PS for Linux?
 
I know nothing about it other than it's supposedly a thing. I like (but not love) powershell, though
and favor cross platform, so..
I could be content writing bash scripts, but I see the appeal of that ecosystem.
 
1:19 AM
my current project is mostly JS, so introducing that dependency might not make sense as I have no need, but yes..
ohh, we misunderstood each other.
I meant that I saw the appeal of powershell. You could already run bash scrips on windows, before 'ubuntu on windows'.
 
Knu
security wise it's a nightmare though
 
also i'm no on windows
it's not a nightmare.. it's runnign shell scripts. they can already do a lot
I think ubuntu on windows is an interesting turn, and I'd be ussing it if i did any of my development on windows, whichi I don't these days.
but have and likely will again
 
1:37 AM
I think windows should run on osx
 
Knu
What about factory? (in my case it's not a class or constructor)
I circumvent the problem :)
 
i'm yes on doors
 
Knu
it's like calling a Ford a vehicle
 
Knu
1:58 AM
fuck it anonymous signature FTW :)
gn guys
 
help me
I'm getting 4 extra bytes (F0 F0 F0 F0) when I open a serial port to my Arduino. Where are they coming from?
I'm opening the serial port via C#
 
@towc not bad, a little too punk for my tastes
 
Morning~
 
Sup brah
 
2:13 AM
@Exception Is your localStorage code working now?
 
1761
Q: Our security auditor is an idiot. How do I give him the information he wants?

SmudgeA security auditor for our servers has demanded the following within two weeks: A list of current usernames and plain-text passwords for all user accounts on all servers A list of all password changes for the past six months, again in plain-text A list of "every file added to the server from re...

jesus christ wtf.
 
May be that's a test of whether you can provide plain text password.
And of course I'm being very, very optimistic.
Ok. That's quite a detailed question. What a list. The answers are good, though.
 
2:33 AM
@Knu I'd say Windows is not inherently more insecure; the platform's security model has long ceased to be a major factor. The IoT is run on Linux, and is now a major botnet contributor. Easier to hack and infect an IoT than a windows desktop.
 
@littlepootis good lord
 
you gotta hand it to windows, they made it work: imgur.com/w6hsIUw
 
2:49 AM
Man, Angular2 looks super funky.
 
I'm going insane
 
It uses [] for property binding, (click) to declare an event.. decorators? my god
@KendallFrey old news
 
serial ports are a bitch
I don't know who to blame
arduino, windows, or .NET
 
Blame the node-serialport module that's only compatible with v0.12.9
 
@SterlingArcher it's dope
 
2:51 AM
I haven't tried node
if it gets bad enough i will
I feel like I've earned a week's vacation in the last 5 hours.
 
Don't feel bad. I spent all today struggling to figure out why my python server wasn't accessible on the outer network and it was because the CentOS firewall was running and blocked all external traffic :(
@phenomnomnominal I think in our new projects our Lead Principle Engineer wants us to start using Angular2
 
event decorators?
 
So I might build a Grunt'd Angular2 template to get started on it
 
@SterlingArcher I'm at Angular Connect in London right now
There's some super impressive stuff going on
fuck grunt, get ng-cli
 
We use bower, require and grunt so if they port nicely with Angular2 that would be great
ng-cli? will look it up
 
2:54 AM
@SterlingArcher I've narrowed it down to receiving serial port traffic that I didn't send. I'm not insane, something else is
 
Kill all that
 
Send pics of Angular Connect
 
6 hours ago, by Kendall Frey
awww yea my package came with free bubble wrap
 
lol Bob's Burgers..
 
somehow they knew I'd need this
 
2:55 AM
> Is that a gun?
Yup! It's where I keep mah bullets!
 
begins popping furiously
 
@KendallFrey are you using an oscilioscope to watch the serial traffic?
 
Don't be crazy I can't afford such a thing
 
osciloscope?
 
lol i could but they are expensive
 
2:56 AM
what the shit those are expensive
@rlemon you dickhole I was looking for ubuntu oscilloscopes for free they're like several hundred to tens of thousands of dollars!
That's like a Canadian Jackpot!
 
I'm gonna download a serial port sniffer and use that to narrow it down somewhat
 
What is your traffic coming from?
 
my pc
 
Only the arduino? Logs?
 
huh?
 
2:59 AM
Can you list what is connected to said serialport?
Something in your computer might have latched onto the port
 
No, I opened it from my app
unless that somehow automatically closes something else and sends traffic
Unless I'm batshit insane, only one program can have the serial port open at one time
 
Make sure. Check the port connections
 
is there an easy way to do that?
 
what language?
C#?
 
Windows?
 
3:04 AM
what
 
I'm on Windows
is there a tool that will show me who has control of my serial ports?
 
yes but how are you sending serial data
 
with C#
 
God dammit
 
what
 
3:05 AM
I asked if you were using C# lol
you said windows
 
i thought we were still on the "check the port connections"
 
Yeah, so far I'm only finding a way to list all available serial ports
string[] ports = SerialPort.GetPortNames();
check this out
 
i don't have process explorer (yet)
 
Yeah you're gonna want a process explorer lol
 
I'm pretty sure only one thing can access a serial port, so
@SterlingArcher Not "a"
process explorer is basically task manager on steroids
 
3:09 AM
Ok, you're gonna want THE process explorer
You raging waffle
 
bubble wrap therapy helped
I'm going to bed
 
no get the process explorer first
sleep is for casuals
 
hangouts me if you have any more urgent unhelpful tips :P
 
Dicks out till the process is explored
Night dude
 
user6820627
Hello!
 
3:15 AM
Are you here to teach me how to be transparent
 
user6820627
No.
 
user6820627
That is just my name.
 
user6820627
Is there any three.js expert here?
 
You're entire existence is misleading and I don't like it
 
user6820627
3:19 AM
If you are good at three.js, please help. Let's contribute to three.js docs because it's still new.
 
3:30 AM
Can someone write a npm module called oath which is just export path from 'path'; please
 
It might be because it's 4.30am in London and I have no idea what timezone my brain thinks it is and I just got room service pizza, but I can't fucking type.
 
That's my aspirations in life
 
hi
 
3:36 AM
Where should I insert text on below code? $('#output').append('<a href="https://www.theguardian.com/world/' + user +'/rss">https://www.theguardian.com/world/' + user + '/rss</a>');
 
you can't star a removed line?
 
Of course not
 
rhetorical question
 
Peterlu12 just before </a> i suppose
 
@EirikBirkeland 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.
 
3:39 AM
think "unnecessary censorship"
 
so IRC wasn't good enough huh
 
yeah, I did, but then the hyperlink will include text..
even put before <a>
 
@Peterlu12 I don't get your question.. there's no context. What text are you putting in? Where? Why?
 
I was trying to put text b/f hyperlink, but not sure where I should put it so the hyperlink will not include text
 
@Peterlu12 do you mean you want text that's not hyperlinked to be appended as well?
$('#output').append('Insert text here <a h
unless you want to wrap it in a tag
$('#output').append('<span>Insert text here</span> <a h
etc
just had a half a wine glass full of bailey's and I'm now disgusted with myself
 
3:49 AM
:) not working.. the text is still hyperlink when my mouse hover there
$('#output').append('The Test<a href="https://www.theguardian.com/world/' + user +'/rss">https://www.theguardian.com/world/' + user + '/rss</a>');
 
"The Test" is hyperlink
 
user6820627
Have you ever seen this pen? http://codepen.io/kranzy/pen/ALOYZw
The lesson from the pen: Never listen to onclick a light helper in `three.js`.
 
user6820627
(function x(a) {a.fn.extend({number:function(b){if(arguments.length==0){return this.data("number")}this.data("number",b);return this},add:function(b){return this.number(this.number()+b)},subtract:function(b){return this.number(this.number()-b)}})})(jQuery);
 
@Peterlu12 what happens if you remove the hyperlink from your append string altogether?
sounds to me like you're inserting into a hyperlink to begin with
as in, is #output a hyperlink or wrapped by one?
when stuff like that happens, stop taking anything for granted... test the basics first
 
ow... somebody's got an alpine climb ahead of them
you know... I do feel bad for people starting out here...
I do think we need a dignified "clueless corner"
where people don't get shot down for not knowing anything
ot
 
Stack was never designed to be a newbies help center, it's an information collection. All these 101 questions either are dupes, or are so basic they don't belong
reddit has subreddits more tutorial friendly
 
issue is that a lot of the new people don't know the terminology
 
@Shane It's less the that's a stupid question and more the you clearly haven't put in the minimum amount of effort to find the answer yourself that most people here have a problem with
 
@LearnHowToBeTransparent nice job introducing a variable that doesn't exist ;)
 
3:59 AM
hard to google something if you don't know what it's called
yeah, sure
 
@Shane May be they should read tutorials and manuals first, instead of getting a few simple answers and think they have mastered the art.
 
@Shane I can point you to a dozen tutorials that express this, no terminology needed.
 
Programming is hard.
 
sure, but sometimes people just want to ask... preference for human to human contact
just saying it'd be nice if there was a kiddie corner for that
is all I'm saying
 
user6820627
@SterlingArcher It does exist!
 
4:00 AM
something that wouldn't mess with the archives
 
@Shane So make one.
 
classic
 
Well you've got enough rep to start a room
 
anyone know why new Buffer(buffer.toString()) !== buffer?
 
I don't scale
 
4:01 AM
@LearnHowToBeTransparent tid is OP's variable, not i
 
@Shane To learn programming, you need to learn to read silent text on computer screen. Many, long, dry, hard to digest text. Tutorials help train that.
 
Chat's are great for newbies who know how to google
 
sure, been there... for a long time
 
user6820627
@SterlingArcher WOW! I don't see it.
 
4:03 AM
just saying there are those moments where you don't know what something is called and searching it out takes a lot longer than a quick, stupid question
 
 
The community is typically not as hostile to people asking those kinds of questions in chatz
 
yeah, chat's not something you discover till later
 
@Feeds fuck that was literally my today
 
just saying, while the questions annoy me, I do get empathy pangs
I remember that feeling...
 
4:04 AM
@Shane the problem is, most of the questions we close literally have the keywords in the title.
 
haha, ok... yeah
can't argue with that
that's just fucking lazy
 
I wonder if...
 
@Shane That's exactly the problem. Should research more before asking.
 
No technical terms (other than JavaScript)
https://www.google.com.au/webhp?sourceid=chrome-instant&ion=1&espv=2&ie=UTF-8#q=javascript%20add%20a%20variable%20to%20another%20variable
 
what I have a soft spot for is when somebody is working hard to get a concept, but they don't know what it's called
@Sheepy - yeah
 
4:06 AM
@Shane humm.. is there a name for that?
 
probably several names
 
Sounds like me tryin to grasp FP
 
Reading pretty much any decent language introductory book will equip you with the essential terms that you can use to describe what you're struggling to understand the next level up
 
@monners I think "variable" is a relatively technical term in this context.
 
yeah, there's always something you need to know where you're at the bottom of the curve
 
4:08 AM
@Sheepy If you don't know what a variable is then you clearly haven't done the bare minimum
 
in a hurry and the person signing the checks is looking at you like "this is what I hired you for"
because they don't get the distinction between your core skillset and what's needed
 
Ugh, this is starting to sound like the participation award argument
 
err
 
if the core skillset is there then adapating new tech shouldn't be a massive effort
 
I'm just saying carve out a spot to say "what the fuck is this?"
without being told to google something you don't know the name for
not trying to boost anybody's self esteem
 
4:10 AM
@monners Have seen someone call every variable "json" in a non-English community. I guess (s)he takes that as "data".
@Shane And... why not google or tutorial?
 
for instance, say you could frame a question (without going into the archive) and ask "where can I start trying to solve this problem"
where the goal isn't an answer so much as an orientation or disambiguation
 
Nevermind.
 
I'm saying don't treat those questions equally, but give them room to exist
 
Orientation doesn't quite fit the purpose of SO. Disambiguation Q&A we have many.
 
4:13 AM
if you're question isn't well researched or is a somewhat obvious dup, you take a penalty... unless... you frame it as "I need to know where to start on this problem"
 
@Shane They DO exist, and they've been answered!
 
Too Broad for SO
 
yeah, but take that guy's question, it doesn't belong in the archive
but how does that guy know where to start and where else is there to ask where to start?
 
@Shane Google, User groups, Books, School, YouTube, Documentation
 
#output is hyperlink, not wrapped by one
 
4:15 AM
@Shane Not on SO. May be the new documentation section, but not Q&A.
 
but what do you search for when you don't really know things that fundamental
 
clearly that guy lacks so... haha
 
It's even on the w3schools tutorial
 
4:16 AM
oh jesus
 
@Shane What do you search for anything on the web? How did you arrive at SO? I doubt your browser or developer tools comes pointing to SO as default.
 
if they don't know what a variable assignment looks like...
 
If you can't be bothered to read through a tutorial, you have no case
 
alright, sure
I know what your arrow was meant for, Sheepy
pretty clear on that
 
We do. Someone reading the history may not.
 
4:17 AM
ah, right
 
@Sheepy I'll never forget. NEVER!
 
look, SO is really intended to move the field forward, I get that
but... if the avg IQ is 100... that means half the population has an IQ <100
 
/me resets monners' short term memory
 
we have to share the space, no choice on that
 
What... What year is it???
 
4:18 AM
so we might as well minimize the problem and give it a place to exist comfortably
instead of fighting it like we think it's something we can dissaprove out of existence
that's all I'm really saying
 
Didn't SO try creating something like a "beginner's SO" before?
 
@monners Depends on which calendar you are asking. Say hello to the world!
 
did it?
I think that'd be great
somewhere the archive can stay separate, keep it's integrity, but people can go in and ask all the questions they want without fear
 
@Shane If you disagree with us then take it to meta, or build it yourself. Pretty sure we're all in violent agreement about what constitutes a question that, in this context, doesn't belong on SO
 
4:20 AM
I think there is already plenty of beginner-oriented resources. The problem is not lack of resources or lack of trying by SO.
 
use it for nub questions
 
it's a persistent problem thoughj
which to me says "we're doing it wrong"
no?
it's not like there's such a thing as "perfect"
 
That's a very good question. As any computing teacher can tell you, there are some students who seem to never get programming, and there are students who are simply too lazy to learn things on their own.
If you can solve either problem, you'll be rich. Fast.
 
Bam! That! ^^^^
 
like when you have a networking question that you KNOW won't get answered on superuser, but if you ask here, you get your question shunted
despite getting two answers before being pushed over to the graveyard
 
4:22 AM
Ok, time to get back to work for me
Just thought I'd remind everyone that I'm still alive
 
lol im in bed. enjoy the sun you kiwi
 
I think I'm going to stagger off to bed myself
 
I'm not from New Zealand :|
 
Fine, you kangaroo
 
Thaaaaaaat's better.
 
4:24 AM
heh, where are you?
The team I work with is in Melbourne
 
Melbourne
 
you aren't with commoncode by any chance are you?
 
ohemgee
 
Nope
Marketplacer
 
k, I've worked with a few teams in melbourne.. never them
like 4, actually
kinda weird
 
4:25 AM
You a contractor?
 
seeing as I'm near toronto, CA
sorta
employee contractor hybrid
 
that's what I was 6 months ago
contract-to-hire
 
hi
i am facing one issue in node js
 
you an employee now?
 
@SterlingArcher What, other than drunk?
 
4:27 AM
full employee yeah
@monners also that
I don't drink a lot anymore
 
cool, I miss insurance
 
i.e while i am redirecting from one view to another view i want to take object with me at second view..without using session,query string or cookie..
 
Yeah I was paying $275/m for literally shit insurance
 
how can i do that i have posted problem here'
 
got a kid who's got severe CP, 20k wheelchairs are a lot easier with insurance
 
4:28 AM
0
A: how to redirect and read data at another jade template using node js without using session and query string

posit labsYou can use cookies. http://expressjs.com/en/api.html#req.cookies router.post('/customers/add', function (req, res) { req.cookies.name = req.param('name');// req.body.name;//second way req.cookies.address = req.param('address'); req.cookies.email = req.param('email'); req.cooki...

 
Cerebral Palsey
 
Ah, my condolences. Those wheelchairs are way too expensive
 
yeah, and they're shit
there's a market to disrupt... actually thought about that
3d printing could go a long way
 
any idea guys ??????
 
4:30 AM
@stylishCoder I don't suggest it, but you can set a global to your value so it's higher scope than the routes, but that makes it easily overrideable and bad code
What's wrong with sessions, cookies, etc? That's the proper way
 
eyes getting heavy... night all
 
@SterlingArcher being a beginner in nodejs i am very surprised session is the only way..is ita good practice ????
 
There are literally dozens of duplicates for this question. Why answer it instead of closing it? — Sterling Archer 11 secs ago
Jesus christ the guy has almost 500,000 rep and he's whoring
@stylishCoder if you're new how are you surprised? How else do you expect to persist data across a state or scope?
 
@SterlingArcher thats why i am here to clear my doubt.. i am not pointing any one just to clarify if i use sessions it will be good..because mostly we people say session make slow the apllication
 
Do you have any benchmarks to support that claim?
 
4:40 AM
You'll be hard pressed to find any kind of webapplication with state that does not use some kind of session
 
@SterlingArcher It took me less time to answer than it took him to find a close enough duplicate, and I think my answer is better at explaining what's going on than the three answers to the duplicate. I also don't think the question deserves its five downvotes, because Java newcomers do not associate += and assignments right away. — dasblinkenlight 1 min ago
-_-
 
4:58 AM
@stylishCoder Who are "we people"?
 
@Sheepy coders . :)
 

« first day (2174 days earlier)      last day (2768 days later) »