« first day (2668 days earlier)      last day (2504 days later) » 
00:00 - 19:0019:00 - 00:00

00:14
How do you do a bitwise case conversion in javascript? I need to change the fifth bit from a letter
@Asperger use the bitwise operators
yea, pretty much "standard" C syntax. Bit shifting, signed shifting, AND, OR, XOR all there for you
0x6c && 0xdf
should work
00:41
Any suggestions for podcast programs? google play keep losing my place and pissing me off
jQuery
01:01
have you guys heard of the squat magic
01:22
also someone needs to figure out why penguins are only in the southern hemisphere but elephant seals arent
Hi guys.I m a newbie.can someone say on what basis and when this chat happens?
@GunacelanM 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.
It's happening right now.
ok.thanks
@Meredith Well, given that there are some penguins in the northern hemisphere...
01:29
yeah in zoos
but its not like you find them wandering out vancouver island
Also in the wild
ok like 1 island in the galapagos
but it's not like you find them wandering around vancouver island
There are many places you don't find penguins wandering around
the US deports them
I realize that polar bears would destroy them
but polar bears are gonna be extinct sooner or later so we should replace them with penguins
01:33
or just paint some brown bears white and send them to alaska
conquer nature
I realize that's a stupid idea.
Bleach the fur instead.
we dont need more brown bears trust me
same number of brown bears, just move some north.
also correct me if im wrong but penguins would be perfect for farming
They can't operate tractors.
pretty sure florida has a law
no like raise them to eat them and make oil lamps with
01:36
are penguins tasty?
i mean they cant be that bad
they're birds
I need to be sure before I invest.
They'd still be valuable for their blubber and feathers
for making tuxedos
I was thinking like pillows
you could buy a plot of land along the ocean and farm sheep on the land and penguins in the water
self sustainining pillow and blanket farm
01:40
I don't see the benefit over chickens unless they taste better.
chickens need warm weather and cannot be farmed in the water
is farming in the water an advantage? sounds like a disadvantage
Gotta use every bit of land
also they're hardy creatures
water !== land, but I know what you mean
the marine equivalent of the humble yak
01:42
well.. except they aren't beasts of burden
how about dolphin?
You can't farm dolphins
and they die very quickly
and cant handle stress
when you cook them
my sister went on her honeymoon in the keys in december and she couldnt swim with the dolphins cuz they were all killed by the hurricane
01:58
my god are you still talking about this
I'd love a sandwich right about now
I did almost nothing today except binge watch altered carbon
AMA
penguin sandwich
02:13
I just don't buy that seals can cross warm water currents but penguins can't
those that do become sandwiches
Honestly the more i research this
The question isnt how come there arent penguins in the north
but rather why are there seals
It just doesn't add up
what is NASA hiding?
Also wikipedia says that ross seals are the least well known antarctic pinniped
That seems too opinionated for wikipedia
+ the least well known one has to be the crabeater seal right
@Meredith sounds like you found your calling
02:26
seal genocide
So there are apparently closely related seal species native to hawaii, the caribbean, and the mediterrean
Uh huh
02:38
I love how in resident evil apocalypse the guy runs over a zombie and yells “GTA MOTHER FUCKER”
I think I figure it out
Seals were originally tropical species but moved north/south for some reason
but also north and south america werent connected in the miocene era which explains hawaiian seals
But penguins were always just in the south
Still doesn't explain elephant seals though
03:04
A seal banged an elephant it’s pretty obvious
03:17
oh yess Door Monster does RimWorld
 
1 hour later…
04:21
1 hour later...
when using the ... notation is there a way to exclude a property? ie I want to do const current = { ...prev }; but leave off one property. currently I call delete current.property after
04:50
const {leaveOut, ...current} = prev;, I guess
A K
A K
05:15
exactly what mosho said
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.
05:37
How to call event more than one on same click in reactjs
@HimanshuPandey 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.
 
1 hour later…
06:39
is there a better way to check for nested null values than row && row.data && row.data.property; in C# I would do row?.data?.property.
try/catch
that could work
i do like that null operator in c#
Once again im stuck with dang rxjs operators and confused as hell
So in my .subscribe() i am building a chart.js object, and for my data i am passing res.map((x) => x.myData, which results in it building an array out of all of my objects myData...works great.
Returns a number[] and the graph looks right
07:14
Instead of that though im trying to do what they are doing here in the first answer stackoverflow.com/questions/44083537/…
To get a running average of that resultant number array...but im stumped as its not an observable i cant .scan it
Anyone that could help would be greatly appreciated
is it possible to retrieve updated/changed localstorage data without reloading page ?
07:31
Turns out the idea I had for an ES proposal is already in stage 1
@hsimah that syntax is currently a stage 1 ECMAScript proposal.
ah nice
08:16
Gah, so i have an observable that im trying to get to an array, i subscribe and then log the results but only the first item comes out the rest are NaN? I can log the observable and see the array inside full of the values i w ant...rxjs confuses the hell out of me
Wax
Wax
09:13
hi
anyone familiar with mongoose and mongodb
My post request is taking forever
stuck on pending
and will fail after a couple of minutes
10:10
what did you try to fix it?
try using curl instead, see if you get the same result
try using a computer on a different network
try making sure the server is actually working correctly
maybe it's making a huge query and it's taking too much time
10:41
TIL Martin Schkreli has a full chemistry and finance courses on YT
11:38
@KamilSolecki Link?
12:01
I have a module called "alarm", which would also contain a list of "alarms" that it would manage. Those alarms are objects containing config stuff for each alarm, like time, duration, loudness...
issue is alarm.alarms sounds awful, if I ever need to touch that
I'll be modifying it through alarm.add and alarm.remove anyway, I think
12:12
I feel for you little guy :(
I would have said "old" and linked to this, but the facebook url expired:
Jan 24 at 9:54, by towc
user image
huh, here's an interesting and controversial idea: const { ... } = Math should expose all properties of Math
why is that interesting? what is it good for?
@towc It does
const { max } = Math; works.
@MadaraUchiha the ... is literal
not a template for some other property
Ah
But why?
12:27
const { ... } = Math;
console.log(sin(1)); // 0.8414709848078965
Way too magical for me.
that seems like it introduces variables without telling you
may as well with with
@MadaraUchiha sometimes you have a lot of properties that you need and writing them down is boring
@ssube hence the controversial
I don't know if I would like it
@towc I'd argue that if you have so many properties that it gets boring, you're doing something wrong vOv
yeah, you're solving a smell
12:29
Also, nothing wrong with just using Math.sin(1) imo
with with, lol, which isn't controversial, just bad
the Math. prefix has the obvious advantage of not stomping on other names at runtime without warning
with (Math) {
  console.log(sin(1));
}
@towc ^
:'(
12:30
yes, I agree
I mean import 'x' isn't much better
afaik it brings all the variables from that module to the current module
might be wrong
import Math from 'x';
Math.sin(1)
seems fine to me
yes, but import 'x' is different. It might have been on a weirdly configured project
@towc It isn't.
import 'x' with no variables shouldn't put anything in the global/local/module scope, it just loads a module
then it was a weirdly configured project
12:33
This format is generally for legacy JS files with side effects.
it seemed really weird and unusual for JS
it's still used for CSS files that have been transformed to add themselves to the DOM
but yeah, it relies on a side effect in the module, it doesn't add any variables
@ssube CSS modules FTW
some teenagers want to come to the hackerspace today
they came for like 5 hours 2 days ago
so full of motivation that they're bound to get rid of very soon
have a problem with mirrors?
12:35
I think they just saw "oooh! Hackerspace! It's got the word "hacker" in it!"
@ssube very much
yep, not doing that again
thanks
I wasn't done yet though
I'll give you a break today
multiple owners have taken to mass-binning you, stop before it turns into kicks
@ssube well, I've asked them
that's... not how that works.
your messages are getting binned because they're spam and we've been very clear it's not welcome here, not because you asked
12:39
yay
user7858150
Am I correct in that I can use $("#element").onchange to call a function in the same way I might use $("#element").blur?
yep, they are both events
user7858150
Great, and to clarify, onchange fires when the value (val()) of the element changes, yes?
user7858150
I'm seeing some seemingly contradictory information on w3schools is all
w3schools is full of wrong information :(
onchange should fire when the value has changed, but the exact semantics may vary between browsers
user7858150
12:45
I am only now learning this. It's a bit frustrating. Is there any documentation for Javascript in the same way that there is for C#, or is it sort of all over the place?
user7858150
champion thanks
MDN is the MSDN equivalent
user7858150
Weirdly enough, a fortnight ago I had never written anything in Javascript save for adding alerts to ASP functions. Now I've almost completed an entire validation script in JS/JQuery, and as weird as I find JS it's also reasonably straightforward. Apart from the bit where I have no debugger because VS hates me.
your browser probably has a debugger built in, unless you're using an old IE
user7858150
12:50
It does, but it also steps through every other plugin I have. If I could configure it not to jump into JQuery that'd be great...
user7858150
Also I don't understand why, but Chrome doesn't reload JS files on refresh. Not even ctrl-f5 forces this
chrome might have that, there's a button to "blackbox" certain scripts, but I don't know that part well
how are you serving those JS files?
if your server is sending cache headers, those apply
user7858150
My project is an ASP.NET project, it runs a local copy of IIS in development/headless mode when debugging.
user7858150
ctr;f5, though, is supposed to refresh the cache is it not?
user7858150
In any case, Firefox behaves itself
13:01
@ScarySpice ctrl+shift+r
13:35
I always just open up dev tools and right click the refresh icon, empty cache and hard reload
13:49
I restart my pc every time I make a change to my scripts
user7858150
14:06
Uh... will an onchange event fire if the element isn't in focuse?
fs.watch('*', () => exec('reboot -f'))
14:34
hi
@chun 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.
14:53
sup guise
how do you setup the ssd card? long usb from computer to driver? wireless ssd? unplug and replug all the time?
15:09
octopi
the printer sits next to a server with a dozen USB ports, so I got a raspi kit, installed octopi, and that runs over the network
15:23
brb ordering a Pi on amazon. Did I say that Prime kinda kills it? Next day shipping is neat.
I need another pi to setup a pi hole
Guys, schema.org question
Say I have a Person, and I want to annotate his worksFor property
worksFor accepts type Organization, which doesn't exist in the markup, but I know it.
I was looking at using <meta> tags to annotate it, but it seems like <meta> can only be used for "primitives", strings, numbers, etc, and not for full structured data.
Anyone knows how could I annotate something like that?
Are rich data snippets still a thing?
Yeah, Google loves them.
For some reason I thought they were being deprecated
My bad
16:23
seems like from time to time cmder just decides to stop cooperating with VS
and requires a reinstall
well, conemu to be precise.
16:36
See, Windows can't reasonably be blamed for something like this
But all the tooling on Windows sucks, because no one gives a fuck enough to develop good tooling for Windows.
Because it sucks.
@FélixGagnon-Grenier Wait till you get to use Prime Now
1 hour delivery is killer
Amazon's probably developing a Prime Yesterday, where it sends you stuff a day before you need it, according to what their AI system decided
"Prime Whatever Whenever"
1 hour is great, but costs money. Free same day for $30+ or whatever might be a better deal
@ssube It's free where I am :/
16:50
a friend sent me this yesterday: hackernoon.com/…
he was saying really good things about it, and another friend also joined in saying that
I find the article repugnant
interesting, prime now is free with the 2 hour delivery window, but 1 hour is $5.99 or something
> working in artificial intelligence now
lmfao
> Basic application
17:19
shiite... one hour ;)
wtf is this
17:37
The future
@ndugger reeeepost
hello guys please help me
0
Q: How can I get textnodes of any position present in element in js

Alisha SharmaI have an element that might be <p> or <div> or any other element. I want to get all textnodes of all the element with it's respective text . my code html:- <div id="mynav"> text1 <div style="border:1px solid red; height:100px;"> text2 <div style="border:1px solid green; height...

Open new Wandows 10 server. Wandows server comes by default with anti malware service. Anti malware service hogs 80% CPU at any given time.
Great success Wandows.
How do you disable it? Make up some arcane gesture and pray to the regedit gods.
Thats because you use a chinese knockoff Wandows!
17:45
in all honesty though, Win10 is really annoying with its' "mandatory updates and security"
@MadaraUchiha nice
Screw you W10, this is a server, go away.
windows 10 comes in server versions?
sorry if I didn't understand
@MadaraUchiha Do you need help ?
@RoyiNamir No, just ranting
you want to bring your hd to my place and we'll scan it with professional AV ?
17:48
@Luggage No, which is the problem, I think.
^ well if you need to restore or to connect it as a slave , be my guest.
Some poor sod opened this server without knowing what they were doing and without asking for help
@RoyiNamir It's not even a proper Windows server
are you that poor sod?
It runs Jenkins
It should have totally been a Linux server
But reasons...
18:03
He really should take off his coat
18:26
woof, these chunkazoids on tinder
tinder is for poor people... and Sterling
You’re poor
I'm not tinder-poor
No, you’re just homeless-poor
sure
00:00 - 19:0019:00 - 00:00

« first day (2668 days earlier)      last day (2504 days later) »