« first day (2136 days earlier)      last day (3036 days later) » 
00:00 - 11:0011:00 - 00:00

00:02
btw, about that nodejs site from scratch, I still have no idea how to bind it to a domain, nor really know where to look
you run node behind a real server like nginx and on your domain supplier you point your domain to your ip address
then in nginx (assumed) you proxy the incoming shit from port 80 to your node server
why's that necessary? I feel like it should be as simple as telling the dns database to link to an ip of my choosing from a certain domain
the proxy is a good idea because node cannot run on port 80 without being root
or you allow it to using other commands
and that means if you do have security concerns, the attacker potentially has a process running in root
< port 1024 is protected
don't fuck with security, do it right
00:06
sudo setcap cap_net_bind_service=+ep /path/to/node
no need to run as root ;)
why not just do it the proper, accepted way
(nginx is also better equipped to serve static content and probably handles scaling better)
well, I don't want to need to use nginx
Capabilities are nice, but nginx is better
okay, then do it your way
but understand it is wrong
I get you're doing a learning thing
oh, the idea @rlemon, was to experiment by writing everything from node's net and fs modules, no additional plugins
adding nginx would already break that
and it feels like you shouldn't need nginx
00:08
yes but there is a reason for running node behind another server
You don't, really
node isn't meant to do a bunch of things
ofc I was going to put in production I'd be using a standard server
other server technologies with node is the best setup
For learning, though, use whatever floats your titanic
00:09
I'll keep it in mind for production
yea, like I said above. just understand what you are doing (while probably beneficial for learning) is the wrong approach for a real product.
node can do a LOT of things really well, but nginx does a lot of things better
so, ideally the domain provider takes care of all of the dns stuff, and all I need to care about is that the packets will be coming to my ip?
so why not use both for their benefits
point the domain suppliers dns to your ip, listen on 80
not sure there is much more you need to do
cool
thanks
now, question is, what domain to buy? :/
found a cicada in my back yard today
thought that was cool
00:13
Having a backyard is cool
yes, I'm very happy with the little land I have
ew, towc.io is £42 on godaddy
don't use godaddy
use namecheap for domains
or anything else. godaddy has terrible security policies
wow, towc.co.uk is £0.01
(they store passwords in a reversible hash, call in support agents can unhash your password)
seriously fucked up
00:15
towc.uk is also 0.01
oh yeah, remember you talking about that XD
@rlemon wtf?
yup
wtf indeed
why even hash it XD
no clue
I mean at least they kinda half assed try
hmm, towc.uk on namecheap is ~800 times more costly than on godaddy
00:16
but I was 100% taken for a loop when the support agent was like "ohh yea, I just logged in with your password and I can see..." "umm wait? you what? you logged in with my password?" "yea, we can reverse the encryption, but don't worry it is only for serious reasons"
2
can't I simply make a deal with a dns master myself?
we were on the support call for like 10 minutes and my problem was only because I couldn't ping my server (they changed my ip)
@towc no, use namecheap
> don't worry it is only for serious reasons
seriously do, both namecheap and godaddy must be doing something on the backend to talk with the dns database. Why can't I do that?
that was when I changed from godaddy hosting to SYS
00:18
I guess a license thing...
@towc because you didn't pay the shitload of money to get a trusted status
same reason you can't sign your own https certs
well you can, but no one cares
same with email hosting... and a bunch of other things
fair enough
lol
how is that a thing
(on namecheap)
Is that UK english? Because I don't get it
you can make an offer to the namecheap people to buy a domain from another source
I built half a shed!
:D
00:26
Hey anyone wanna help me solve this problem
Great
Ok so I have a procedurally generated dungeon, with some number of paths of varying lengths
Each path goes through a number of rooms, and each room is only part of 1 path
& paths don't merge
so there's only a single linear path chaining rooms?
I want to add keys to random doors (i.e. a subpath between two rooms)
@towc Yeah
Do the paths branch out?
Yeah paths branch but don't merge
wut
00:28
so your dungeon is a tree?
show us a graph or something XD
@rlemon Yeah
understood
whats the prob bob
I got a bunch of renderings just give me a second
So I want to ensure that you can find a key before the lock occurs
randomly select the rooms from N depth in the tree, then back-track a few levels and place the key
00:30
Oh yeah each room can only have 1 key
Like I have no problem placing the keys but I'm having trouble guaranteeing that it will work
make an array of all rooms from like 10 levels deep say, select two of the rooms and join them with a door and remove them from the array, move X rooms back from each of those rooms and place a key
that way you have a much better chance that they will ensure the room they are going too they have the key for
okay that image looks nothing like I imagined :D
my idea might not work on that
what's the significance of lighter and darker colours?
Right now my strategy is to generate a list of paths
Light is the path connecting the start room to the end room
00:33
er
not really
Darks rooms you don't necessarily need to enter to finish the dungeon
4th down, second in from the left doesn't have a significance for the finish and is lit
or am I wrong?
You're wrong
You go down the path and back up
00:34
but that isn't necessary
unless you have weird constraints
or is that the keys?
What's in the room?
I merge some paths after the dungeon is generated to make it a little more interesting
and what about the door colours? do those mean something?
They're supposed to but I have a glitch in the renderer that I don't know how to fix
It's just supposed to be light if it connects two light rooms
Anyway the strategy is to generate a list of paths and randomly disperse keys between them
I mean locks between them
But I'm struggling to determine where keys should be placed
I can think of an algorithm to distribute locks and keys, but not sure how to make it evenly distributed
00:37
if every path can be traced back to a single root, place the key at the root?
It doesn't need to be evenly distributed
wtf. So decided that as long as I'm experimenting and I place the server in a VM, there's not too much need to care about security, so went for the nice price godaddy offered, £0.01
it just withdrew £8 from my paypal
You suck
Don't us godaddy
There's one with path stitching turned off
well, at least towc.eu works
kinda
it's as if it was linking to the router of the wifi network I'm connected to
(192.168.0.1)
not my node listening on 80
sigh
@rlemon what now?
00:45
So, godaddy really encrypts passwords.
Great
do I need to set up the router to forward all :80 to me?
towc.uk*
or do I need to set up another static ip address that uses my address as a proxy? -_-
@BenjaminGruenbaum I've seen docs.google.com/presentation/d/… … I wonder whether emitter backpressure … is not just a solved problem? I.e. have emitter.emit() return a Promise returned by Promise.all() of all eventually returned promises by the observables.
Or are there other issues with that approach?
yup, need to configure the router :/
@towc yea you need the router to forward port 80 to port 80 on your machine
your network doesn't automagically do that for you
so can't host a server unless I have admin access to the router settings, which I currently don't
00:54
also if you're not being given a static ip from your isp this will fail eventually
most isp's charge extra for static ip
and if you don't have a static ip they recycle your ip frequently (ie it changes)
once again rlemon, it's just for testing. Ofc in production I'll need to use a much much more secure/tested environment
so your dns will need updating a lot
well even in testing, your ip could change once a month, or once a day
depends on your isp
I used to need to update the ftp filter almost every day when I was using aruba as my hosting service, so that's not necessarily a problem for testing
well, I'm stupid
I could have limited it to just credentials, no ip verification -_-
anyway
that got me into the habit
so it's fine-ish?
I can just set up towc.uk to point to towc.eu when I'm not running node
which can't be done automagically
unless I run a script that sets that up every time I open/close the node server
which is meh
you could do that with nginx...
well, I can use sequential bookmarks to go through the steps quite easily on the godaddy site...
@rlemon I mean, nginx doesn't use magic either, right?
00:58
every one of my websites is node. all nginx does is proxy everything.
whatever it does I can probably learn to do as well
@towc no but it is constantly running and has a forward_if_not_found option
so you'll have to have another service monitoring everything
if you don't want nginx
well, how can it run if i'm not connected to the internet on my machine?
well then your dns will fail
or is it also a service?
oh, it doesn't
00:59
you want a candy shop setup, you get crap
:P
cool, don't care too much if the dns fails ;)
or again, can set up a few simple js bookmarks to point everything to towc.eu's ip directly on godaddy's site
again, not like I need it
I'd be the only one ever using towc.uk for what I wanna do
@Meredith Well, how about this one: start by placing some number of locks on random doors. Then take the set of rooms and locks that are accessible from the start, place a key in a random room and assign it to a random lock. Then add whatever is accessible beyond that door to your set, and repeat until all locks have assigned keys.
@KendallFrey Ok that's a good idea
Thanks
01:15
That will evenly distribute locks, but obviously the keys will be biased toward the start.
Yeah that's fine
@KendallFrey will also favour a single path aka branch
^ which is preferred actually
What do you mean?
It'll favor the first child
01:19
after first door is opened, doors behind it have the same chance as being picked as doors on the first layer, right?
unless otherwise set up
that will mean that the chances of the other doors being picked will be less over time
because more doors will be exposed
not necessarily
say each branch has 3 doors, and each door exposes a branch
That's unlikely
01:20
1st key: 3 doors at same level, each door has 1/3 chance of being picked, say first door is picked for simplicity
then each path has a 1/5 chance
so the chance of any given path being picked goes down
2nd key: 3+2=5 doors, each door has 1/5 chance of being picked. The likelihood that the doors at the second level are picked is higher than a door at the first level being picked
to put it simply
the proof can be more satisfying, but this is enough to give a good idea
The chance of a door being picked at the deepest level decreases over time
over time, the deepest path will be favoured
01:22
sure, but will still be greater than any other path
You assign keys to locks randomly
evenly randomly. If that's the case, exactly what I said should happen
@towc No, every lock has an equal chance of being assigned to a key
exactly
@towc What exactly are you implying should happen?
01:23
ok, back to second key: we said each door has 1/5 chance of being chosen, right?
Are you saying all keys to the "main" path will be placed near the start?
2 at the root level, 3 behind the first door
which will mean that the chance of the key appearing at root is only 2/5, whilst the chance of key appearing behind first door is 3/5
see where it's going?
the second key you mean?
no
yeah
it will have an equal chance of being before the lock and after the lock
because it's placed in a random room
01:25
ok, what is most likely to happen is for the key to be in doors behind first door
agree with that?
for the second key
3/5 vs 2/5
I don't understand it
so I can't agree
are you talking about the location of the key, or the door it's assigned to?
let's use a tree notation of 1.2.3 to indicate the third child of the second child of the first child
in the beginning, you can either pick 1, 2 or 3
for first key
say you pick 1, doesn't really matter, all chances are equal
Just explain in simple terms what the effect you're predicting is
so, now you have 1.1, 1.2, 1.3, 2 or 3
Yeah, i get that
why is that a problem?
01:28
the chance of the next key being in (1.1 or 1.2 or 1.3) is bigger than the chance of the key being in (2 or 3)
agreed?
sure. again, what does that mean?
so, let's pick 1.2 for simplicity
now you have accessible 1.1, 1.2.1, 1.2.2, 1.2.3, 1.3, 2 or 3
again, the highest chance of things to happen is that the key will be in a 1.2.x door
then 1.2.x.y
no, that's now less than 50%
well, it's 7 doors
3/7 vs 2/7 vs 2/7
3/7 < 50%
01:30
less than 50%, but still the most likely
You seem to be pretending that the most likely outcome is the guaranteed outcome
no, but it is, by definition, the most likely outcome
it's what you'll expect most of the time
not what you're describing
ok, let's say that 1.1 is now picked
you have 6 doors at 3rd level, 1 door at second, 2 doors at first
According to your logic, A is most likely, and next B is most likely, therefore A+B is most likely. That's just not true.
01:31
say 2 is picked instead
And you still haven't explained what effect this has on the generated dungeon
3 at 3rd, 5 at 2nd, 1 at 1st
ideally you'd try to exhaust by levels of depth
with this method the chance of the first level being exhausted is less and less likely over time
@towc why, what benefit does that give?
01:33
so you may never hit 3 until the very end
@KendallFrey even distribution
@towc No, it's more and more likely, due to the law of large numbers
unless, again, you're favoring a single path
@towc of?
well, from a game design perspective it's best not to have the player need to travel around too much and need to check every door, so even distribution is not really needed
@KendallFrey how? if you've gotten say 8 doors at not first level at a certain point, and only 1 at the first? chances are more of the in-depth doors will be opened first
I think my suggested algorithm will make it so that not every door needs to be checked, but there will be some branching paths and backtracking required. Typically.
01:36
well, I guess my definition of "even distribution" is what would require the player to walk around the most, backtracking
something that doesn't favour any path
@towc The chance of a given first-level door being unlocked by step n is 1/3 + 1/5 + 1/7 + ... + 1/2n+1, which grows quickly
@towc Mine doesn't favour any given path. Yours would be biased toward backtracking.
@towc what's your solution?
@Meredith give weighs to doors based on depth
Oh
Yeah naturally they'll be weighted
I'll just set the weight to 1 and see how it looks
@Meredith Why naturally?
01:41
Just to have more configurability
m59
m59
hey bros. Only in Chrome, my code is performing VERY bad. It can get hung on a frame for seconds. Can I track that down in the dev tools?
@m59 more details?
timeline -> js profile
02:29
It's impossible to get the target given a Proxy, right?
m59
m59
Like if you make a request and want to figure out what port you ended up on?
m59
m59
Ohhhh
03:52
I see some weird title in mdn saying: Yayasan Sabilur Rosyad An Noor
04:14
oh lol
thanks, fixed it
user4196492
04:29
I have been trying to come up with some kind of idea for my first AI program. What should I start with?
user4196492
I will probably be using codepen to do so btw
user4196492
04:46
@KendallFrey eh...
@pebble225 girlfriend ai
Why would you make anything else
user4196492
@littlepootis seriously tho
user4196492
like some kind of evolution thing
user4196492
an automated natural selection
oh, the boring kind of AI
user4196492
04:53
mhm
user4196492
;)
8 days to my first gold badge
The ISP upped the bandwidth and the money for the plan.. :|
I don't pay for Internet :P
100-200 mbps
No D/L limits.
Well it would be, 13,000 INR a year for 1Mbit/sec..
05:07
That is insane. Wtf?
It's <1,000 INR for 40-60mbps here.
Or something like that. It's now ~$20.
For a whole year?
Nah, a month.
$200/year. 40mbps.
They sell, 50Mbps but it's only 600 GiB a year..
Ah, that sucks.
I asked my friend what his plan is. He pays $150 for 40mbps and 1.44TB an year.
Oh, that's for another.. it's 4000 GiB.. but $400..
05:11
ah, expensive
My ex's cousin runs an ISP.
So I get that for free.
Ex with benefits :|
3
@littlepootis you know the funny thing
all cities cannot support that
till like 5 - 10 years in future
(>4mbps internet)
talked to Vodafone and Ex Airtel guy who lead their cable program in MP and Jammu the gvot policies suck for cable :(
I'm thinking of switching to 3Mbps unlimited.. it's only $10 expensive than 1Mbps.. .-.
@cswl where do you live?
@Abhishrek yeah, I know
05:19
Nepal ._.
Also, I've seen on news that 2mbps is the minimum
@cswl oh
It's near India..
That's.. expensive.
@cswl I've never heard of it.
Like totally.
India very big country.. cannot see small country from there..
I've got a classmate from nepal.
05:23
I think most people from here go to India for CS..
yeah, and then they realize it sucks.
I don't know.. I never studied here either :/
I wouldn't recommend college if you can learn stuff on your own.
At least not in this subcontinent.
Well, most jobs that require college degree don't need college education anyway..
05:31
I didn't join high school..
:/
Why, if I may ask?
Lots of stuffs.. money,
I didn't want to... hard to explain
you hated it?
05:47
Uhh..
Long story..
 
1 hour later…
07:11
@bwoebi what?
07:34
@bwoebi with observables you can emit backpressure up - but that's not typically how observables work. Typically they have no backpressure - you just subscribe at which point you have no control.
With async iterators - it's pretty easy to control not only whether or not it pumps events - but also the velocity.
Well, not the velocity that's a lie, just the speed.
@BenjaminGruenbaum when throttling becomes an issue, would it be better (or even a good idea) to use an observable as the "throttler", and consume that observable with an async iterator?
07:54
@NathanJones you'd just use the built in throttle combinator.
 
2 hours later…
09:29
I am working with Cordova and I am using forge library nad browser's Web Crypto API to perform PKI operations. Nonetheless, Web Crypto API only supports getRandomValue(). So I thought adding Web Crypto API shrim would fix github.com/vibornoff/webcrypto-shim but nothing has changed. Any idea please?
good morning all
09:47
0
Q: Web Crypto API in Cordova

MarekI am working with Cordova and forge library and browser's Web Crypto API to perform sign and importKey operations. Nonetheless, Web Crypto API on Android device only offers crypto.getRandomValues() and SubtleCrypto is undefined (crypto.subtle). So I thought adding Web Crypto API shrim and its dep...

10:16
I just realized I have never felt emotions like respect, affection, love, and stuff.
Like.. never in my life. I am that kind of person that doesn't care when a 10/10 walks by
Thats good
@SaravanaKumar 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.
Not sure if that's good. That could be due to chemical imbalance
I cried a lot and was depressed for months when my ex broke up with me, but it's not because I missed her. It's because she said I was basically a piece of shit.
Is this what people call maturity?
That's what girls usually do !!!
Did I mention she wants to get back now?
10:24
No...Am just telling that common....Not you !!!
Am i mention your name ?
anyone familiar with statistical learning!?
This is not fair! I haven't done anything and suddenly my whole app is full of bugs :D
I haven't wrote single piece of freaking code, god damn it
That is Because of Cookies ... Just clean and refresh your Project...Every thing will be fine
00:00 - 11:0011:00 - 00:00

« first day (2136 days earlier)      last day (3036 days later) »