« first day (2355 days earlier)      last day (2596 days later) » 

6:00 PM
if i have this: C:\Users\username\node_modules\tesseract.js
 
@ZahidSaeed why do you care where it is?
 
@ssube what is dx and dy?
 
@zeddex you need to read up on how node modules work
4 mins ago, by ssube
@Vap0r https://developer.mozilla.org/en-US/docs/Web/API/CanvasRenderingContext2D/transf‌​orm
 
link?
 
@ssube Because I've to draw a shape at a specific position
 
@ssube yeah that's nothing like CSS relative positioning
 
no thats google
 
I just wanted to make sure I wasn't misunderstanding
 
@Vap0r it is the exact same thing
 
;)
 
6:01 PM
you can do any kind of positioning you want in canvas with transforms
 
in other words ask that same question to google
rather than asking us to do it for you
 
you're both vamping hardcore and it's getting old
 
@ssube which is what I said all along. He is going to have to do it manually, like he was asking about. Because unlike a regular web element which displays relative to the content it is next to, he is going to have to manually position them based on a single point
 
user1596138
@ssube Vampires don't get old
2
 
@Vap0r no, he won't, he can use a transform and relative positions. That's all relative means.
 
user1596138
6:03 PM
!!giphy marceline
 
rtfm
 
@ssube a transform and relative positions is the manual that he was referring to.
 
@Vap0r, you are probably about 3 comments away from kick-ban
 
RTFQuestion
 
6:04 PM
tread lightly
 
@tereško why? I'm not defending the guy asking the question, I'm just stating that he thought you could position shapes in canvas like HTML elements. I still don't believe this to be true.
ssube either misinterpreted what Zahid was talking about, or wasn't paying attention until later when I was using terminology that could have confused him in regards to relative HTML/CSS positioning
 
canvas defaults to absolute position, transform makes it relative
 
@ssube I'll concede the terminology but that wasn't what that guy was asking about
 
13 mins ago, by Zahid Saeed
@Vap0r thanks. I'll try that out. Now 1 last question. I drew all other shapes but I don't know how to place each other. I mean put each shape in each position
pretty sure it was
how do you position shapes next to one another? transform
how do you think CSS does it?
 
He was hoping for relative positioning like HTML offers, where elements created concurrently are placed beside each other
 
6:08 PM
got to go, later everyone
thanks for the help
 
@Vap0r I see what you're saying, but transform is still the answer.
That relative positioning is just the browser doing it for you, which I think is what you meant by "manual."
 
@ssube absolutely. misunderstanding of terms is all, that and me using CSS relativity interchangeably for how HTML elements are laid relative to one another.
 
somewhere deep under the covers, it's all going to end up as a matrix multiplication before the render
 
stackoverflow.com/questions/43076879/… <-- internet godz, plz help
 
Hey I ended up looking through some of the documentation for NPM but I couldn't find what I was looking for, could you point me in the right direction?
 
6:11 PM
@r3wt Install the things it's asking for?
 
@BenFortune tried
 
Hello . Can I please have some help here ? I think I'm lost and I don't know how to import JS files to TS while having intellisense. I've asked here I did all the required steps and I think i'm doing something wrong
 
i'm thinking like before there was a greenzone where everything was compatible
 
bonj all
 
I went to the registry page, but that just told me how I already attempted to change the registry. This worked for me but still attempts to download the package from the original registry
 
6:12 PM
and i can't remember how to get back there. all my goats are dead too
 
@Royi this has to do with your editor
 
@r3wt Welcome to the current ecosystem
 
You won't find much help here
VS isn't extremely popular amongst JS devs
 
@Vap0r I'm using VS 2015 pro + Resharper 2016.3 + webstorm So I think I have the best ones and it still happen
I'm also getting errors when TSC ,which is irrelevant to editor
 
@Royi declare interface Go2 is wrong
 
6:15 PM
@Royi All I can say is to make sure you follow the instructions here:
https://code.visualstudio.com/docs/languages/typescript
 
that's a function, it should not be an interface with a new method
function Go2(): void would be appropriate
 
@Vap0r But he's not using vscode
 
@ssube That's what I thought , the CLi tool is not generating correct d.ts
 
@BenFortune I know but the page was talking about things you need to do in any Typescript project and mentioned that after the (almost) first step of setting up tsconfig.json that intellisense should be working, figured it was a good place to start
 
@Royi it looks like it's adding new methods. Maybe because your functions use capital names?
capitals typically denote a type, so it may be assuming
 
6:19 PM
@BenFortune any advice for navigating { the current ecosystem } ?
 
put aside a booze fund
 
don't stop sniffing glue
 
i don't drink alcohol
or sniff glue
 
@ssube I've renamed all functions to lower and the generated d.ts file is this one. I'm completly lost here
 
@Royi what version of typescript do you have that says declare is not valid?
and myClass (as a type) should use a capital, the function should not
 
@ssube I've installed 2.2.1.0
 
Hey guys, how do I select all <option> elements whose data-parent attribute does not equal a given value?
 
@Alex Welcome to the JavaScript chat! Please review the room rules. Pleasedon'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 tried element.find('option[parent!="' + value + '"]').hide(); (using jQuery)
 
i could really use a xanax rn
 
6:27 PM
@Alex Why do you think that would select a data attribute?
 
@BenFortune Just a first try
 
Oh man, just made chipotle sauce for the first time. It's pretty fucking great
 
you forgot data @Alex
 
chipotle is one of the best purchases I've made for my spice rack
 
It's pretty rare in the UK
 
6:29 PM
@BenFortune see if you can find yourself some smoked paprika
they go very well together with chili powder and a little red pepper
all 4
 
ooooh
 
Thanks!
 
Would ('option[data-parent... work if they're using jQuery's fake data attributes?
Just read an article that described 4chan as weaponized autism, gave me a good chuckle
 
i don't think it would work
it just gets passed off to queryselectorall, which is going to miss any changes made by .data(...)
if all changes were made by .attr('data',...) though, it would work.
 
Yeah, that's what I thought. I'm curious now
 
6:37 PM
is there any way to store a video in memory, in the same way you can store an image in memory?
 
anyone familiar with Angular 2? I am unable to wrap my heard around the concept that with each no model (User for example) I need to make 3 htmls, 3 component files, module and route file....
 
@corvid Blobs
Many html5 players use them nowadays
@KevinB You were right, thanks. jsfiddle.net/u6LL1cac
 
people be crazy
 
@rlemon Is that the same guy that did it with the bongo drums?
 
lol
should use a toaster next
 
6:43 PM
yea
he looks so happy
he also did a gun mod for overwatch imgur.com/gallery/PbalJ
@Loktar you should try that
 
do it using a duck gun or whatever they're called (from nes)
 
looks like it would be more fun
 
yeah you can buy kits pretty easily for those
 
!!clean the kitchen or turn over the garden
 
6:45 PM
@rlemon clean the kitchen
 
going to get a set of those for my arcade
they just emulate the mouse
uses a sensor bar like the wii/wiiu
 
when I watched how duckhunt gun works I was amazed
early game devs were crazy innovative
 
one of the first consoles had a gun
that's the funny thing
and it looked awesome
 
it's the same tech as the light pen iirc
which is ancient
 
6:47 PM
@rlemon yeah from the 30s
 
it did some magic when you clicked the trigger, the screen would draw a recognizable pattern iirc
 
I'm 5'8" size 9
Nice
 
or maybe it was just b/w and any light meant the hit box
 
the object (duck) would become a white box, and the rest of the screen would go black
the gun read white as a hit
 
1 message moved to Trash can
@AK Please don't post unformatted code - hit Ctrl+K before sending, use up-arrow to edit messages, and see the faq. For posting large code blocks, use a paste site like gist.github.com, hastebin.com, pastie.org or a demo site like jsbin.com
 
6:49 PM
it's a super clever way to do that
 
is it?
It's really the only way you could.
 
1 message moved to Trash can
@AK Please don't post unformatted code - hit Ctrl+K before sending, use up-arrow to edit messages, and see the faq. For posting large code blocks, use a paste site like gist.github.com, hastebin.com, pastie.org or a demo site like jsbin.com
 
loses it's magic though I think after the 1000 time hearing it and people saying it's clever though :P
 
being the only options doesn't make it any less clever
 
im having issue in my js code.
 
6:50 PM
Yeah it was clever the first time
 
can anyone look into
 
yeah the first time on the magnavox
 
especially since something similar is used in a bunch of other places, like the depth buffer for modern rendering
 
A K
can anyone help me with this function? I have a bunch of dumb contraints
 
youtube.com/watch?v=ZIZSpa6F3Iw the cheap pasta sauce is 3.49...
Not fair cuz none of them are cheap
 
6:51 PM
the super nintendo did it way cooler "Cathode ray timing" vs "Sequential targets"
 
whole foods pasta sauce is $2
 
I could definitely tell dollar store pasta sauce from $10 pasta sauce
 
@AK return new F()
?
 
But like the premium prego stuff is 3.49
 
hi friends
 
6:52 PM
> prego
> premium

please
 
anyone here knows javascript
???
 
I mean prego is still cheapo
 
A K
i know what youre talking about rlemon, but that's not what im looking for
 
omg @AK this again.,..
@rlemon we spent like 45 mins on this yesterday
 
@Swapna nah
 
6:52 PM
Monners myself and Derp
 
@Loktar so don't fix it? :P
 
hi @BenFortune
 
Wait I thought this chat was about java this whole time
 
@AK sounds like it is
 
It's vamping at this point.
 
A K
I'm definately quitting,
 
can anyone help me
 
A K
if he won't let me move on because of a stupid function, than fuck the company
how would i send a generated file on express to the client for download?
fs stream?
 
@AK Pipe it to the response stream
Just make sure you have the right headers
 
A K
image files
so the library i'm using generates the file, it needs a path
 
6:55 PM
    function inside(point, vs) {
        // ray-casting algorithm based on
        // ecse.rpi.edu/Homepages/wrf/Research/Short_Notes/pnpoly.html

        var x = point[0],
            y = point[1];

        var inside = false;
@Swapna ^
y u do dis?
 
@AK It generates an actual file?
 
A K
yes
 
hi
 
Just use res.download(path) then
 
A K
generates a new image
 
6:56 PM
hi there hi here
someone any ideas if it is possible to get facebooks public user data with the opengraph without asking the user for permission?
couldn't find something in google
 
A K
ill try res.download then
see hwo that works
 
hi @rlemon
 
@PomeGranate pretty sure you have to ask for any information, even if it's only publically displayed
 
sure sure?
so its not possible with a get request and users_id to get his name?
I mean the name is public with the browser itself for example
hm ok
you mean it
 
okay
okay guys
 
6:58 PM
okay
 
okay
 
okay guy
 
Pretend for a second
 
!!giphy alright alright alright alright
 
6:58 PM
we are together in a room
 
a silent hill esque room
 
@SimonSarris are we naked?
 
called module hell
No rob
 
can we be?
 
6:58 PM
is there such a thing as module hell?
 
Too late
 
modules are awesome
 
Yes, I've got 3423424 imports in Typescript and they are circular
 
script hell sucks
 
Modularize all the things!
 
6:59 PM
So TS + webpack is saying "Util is not defined"
during Spot's setup
But util is referenced before spot in the webpack code
Util has dependencies on Brush, which have dependencies on Spot, etc
 
!!s/(.*) hell/java$1/
 
And around we go, maybe
 
my only problem with modules is remembering what level I need to backtrack to get to the right directory
 
@BenFortune javascript sucks (source)
 
@rlemon hah yea I have a sublime plugin to help with that a bit
 
7:00 PM
Something is breaking this, and the nuts thing is that this was never a problem in plain old javascript
So what gives, TypeScript?
 
@Loktar ohh yea? whazzat
 
AutoFileName
took a second to find it
basically a file auto complete, so I can hit ../ and it shows all the dirs/files
 
Is there a typical way to force dependencies to resolve in a certain order, or something?
 
@Loktar
2
Q: How get public information of a user in facebook without requesting for his/her permission?

aceraven777Is there a way to get public information of a user without requesting for his/her permission? In facebook I know that we can get the basic informations of the user such as id, name, picture, gender, and his locale (but not his other public information) without requesting for his permission. Look ...

 
@PomeGranate wonder if it's changed since 2012
2012 is a long time for FB apis
 
7:02 PM
oh fuck haha
didn't see that
 
what syntax
 
@skyline33 Welcome to the JavaScript chat! Please review the room rules. Pleasedon'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.
 
@Loktar I love this with vscode, where it knows what modules you have installed
 
@BenFortune oh really? I haven't used it too much with modules actually, been using it with a legacy project of mine
that's badass
 
so how can I get a lot of user datas for my bachelor thesis? o_o
 
7:03 PM
I think it has the dir thing too
Wew
Writing an SFTP UI with electron. Should be fun
 
@Loktar What editor are you using?
 
sublime for work but have been messing around with vscode at home
 
hi guys
any one is there
 
I switched over to vscode at work and home and really like it so far, though there are a few problems
@Swapna what's up
 
yeah I still use JS though not TS
so not sure how sold I am on it :p
 
7:07 PM
@SimonSarris Nothing some extensions can't fix, they're also really into their feature requests
 
im struck in javascript function
i need to do some modification in google maps
 
@BenFortune Alt instead of Ctrl click for multi cursor selection is a little annoying, and middle click drag to make lots of cursors does not work
 
need to add drawing tool in google maps
hi @SimonSarris
 
It looks like you are on your way, what's the deal?
 
7:10 PM
It's definitely on the agenda
 
@BenFortune yeah that's the meaning of not there
I do admire their pace, a lot
 
hi @rlemon
 
@Swapna stop pinging users and asking the same question
 
@Loktar
ok
 
7:20 PM
hi @BadgerCat
:P
 
@BenFortune that was on HN the other day
 
man, I got close to my keyboard and realized how disgusting it is
gotta pop dem keys off
 
@rlemon keyboards are literally the most disgusting things humans own and touch.
 
Depends on what you like to touch
 
7:24 PM
@SimonSarris I think you're forgetting about smart phones!
 
What's the proper way to hide/show <option> in jQuery? And how do you distinguish between these options after (e.g. :hidden or other)?
 
@SimonSarris You're a virgin, are you?
 
@SimonSarris idk. maybe on average. but there are a lot of things I can think of that are dirtier
 
@Loktar people wipe down smartphones
@KendallFrey idk check my tumblr
(or instagram)
@rlemon like WHAT
 
there was a recent study done saying they are pretty damn nasty
 
7:25 PM
Do you post hardcore amateur porn on your insta or something
 
@SimonSarris Kendalls mom
 
@Meredith no but I made one post recently that someone complained about
you could guess which
 
I like cats
 
cats are good people
better people really
cats don't bomb subway stations or judge your credit score
filthy filthy humes do that
 
What's the word for the design style in js where you use GET and POST exclusively for data load and setting?
 
7:28 PM
You haven't met my cat
 
my cat is moslem
 
@SimonSarris they just judge you on everything else
cats are good people if "good people" were assholes.
 
@rlemon they judge you when you don't share the yogurt
 
c re us ly.... this word is driving me nuts. somebady save me!
 
but who should not do this
@SephReed nary a clue
 
7:29 PM
it's like "responsive" or "react" or something
 
Horses are Terrible People
 
restful?
 
I don't like horses
 
RESTFUL!!!
thank you so much @rlemon
 
7:31 PM
rest in peace!
 
aguuuugghghghghuuauaguggghhh
 
eat slowly
should I call an ambulance?
u ok?
hmmm
 
what might cause a page to only execute javascript when the browser tab is NOT focused? (other than doing so intentionally)
 
nothing
 
this syntax in a switch statement implies that both of these conditions will trigger the behavior below CREATE_PRODUCTION, right?
    case EDIT_PRODUCTION:
    case CREATE_PRODUCTION:
      return {
        ...state,
        data: {
          ...state.data,
          [payload.id]: Production(payload),
        },
      };
 
you can test that in the console
very, very, very, very, very trivially
 
@captainrad something using requestAnimationFrame to stop code execution
I mean I don't see how it could not be intentional, so maybe that's unhelpful
 
@captainrad plenty of browsers do that
especially mobile ones with any power saving features
 
@ssube that might make more sense if it was not executing javascript when the page was not in focus.. but it is doing the opposite
.. seems like some weird race condition
 
oh, that is strange
 
7:45 PM
@SterlingArcher lol i.imgur.com/o2Szp2d.jpg
 
@rlemon SterlingArcher is afk: vape and sprint review
 
Hands down best sprint review we have ever presented. I've never seen the customer so happy
@rlemon lol
 
Nice we're all proud of you
 
@rlemon I love steve aoki
 
7:50 PM
what cake aim
 
yeah cakes arent particularly aerodynamic so thats v impressive
 
the hell challenge is low key actually a funny twitter meme
 
2:24 LOL
Nothing like caking a guy in a wheelchair
 
7:55 PM
 
LOL
@BenFortune wtf what a master
damn super surprised he hit him from that far holy shit
 
oh my
3
I'm doing an impromptu demo for General Clapper tomorrow
 

« first day (2355 days earlier)      last day (2596 days later) »