« first day (2711 days earlier)      last day (2241 days later) » 

12:04 AM
@KendallFrey ugh, even more infuriating is that you can get the dev build from ckan, but ckan is bugging and not letting me option the settings
 
12:27 AM
morn
 
noo it's slowing down
 
12:51 AM
 
that IKEA one is gold :D
omg the bird
that was great
 
Hi good day. Im having problem with removing option in select tag.
i already have these syntax when hitting submit btn
 $("#location option[value='D001']").remove();
but after it submit, it doesn't remove the data
here is the whole syntax of function click
$("#btnAdd").click(function(e){
		e.preventDefault()
		location[ctr] =$("#location").val()
		$("#location option[value='D001']").remove();
		console.log(location)
		ctr++
		return false;
	});
 
holy shit he cracked a smile
 
1:00 AM
and the data coming from the select tag is I used php to bind it
while($row=$add->fetch_array()){
     echo "<option>".$row['sap_loc']."</option>";
 }
 
removing the html doesn't do anything on the server
you need to submit some data telling it to remove that option. not just remove it on the client side
 
ive searched it in google
and i saw this
$("#location option[value='D001']").remove();
id of the select tag is location
 
okay I guess I don't understand the question. "but after it submit, it doesn't remove the data" so you mean when you click the button the element isn't removed. or that when you submit some form somewhere the server doesn't see it removed.
 
yes
when i select and submit the selected value
it doesn't remov
e
what i needed to do when clicked the addbtn the location selected option tag must be removed
 
1:15 AM
well the options don't have values. they have text content.
 
oh i see
let me try
haha
thank you @rlemon
 
oh ffs
 
Just had a date with a future doctor 🙊
shes so smart
 
2:23 AM
-2
Q: (a== 1 && a ==2 && a==3) ever evaluate to true in pl sql?

Surface TensionJust like some questions here, (a== 1 && a ==2 && a==3) had been proven that it can be evaluated to true in javascript and I'm just wondering if there is also a way in PL/SQL to evaluate it also to true.

@KevinB look familiar?
 
@SterlingArcher good bye health insurance? :D
 
@IanC scientist doctor, not health doctor lol
I should have said doctorate
 
ooh, ironically lots medics don't have PhDs, I'm not sure why we started calling them doctors :p
what area is she making a PhD on?
 
Biology! She's hella smarter than me, I didn't understand much of what she was talking about lol but I know it's currently having to do with neuroscience
 
sounds cool, though I'd probably not understand most of it too
 
2:32 AM
I'm not used to being the dumb one, intelligence is super attractive
shut up Kendall
 
anyone need some ram?
free downloads
 
@SterlingArcher it's, getting to have meaningful talks for a change
 
You don't have to be smart to have those :P
 
yeah, I think so, it's just that smarter people are more willing to have them I guess
 
@SterlingArcher lol
 
2:40 AM
@KendallFrey would a dumb person preemptively call that?
Checkmate, boys
 
If you want to feel smart again I can link you the flat earth stream I'm watching
 
No it's ok I just documented my entire feature, I'm doing good
 
I'm envious of your productivity
 
10pm is like when I get my best work done
If I start something at 10pm, I can truck all night and crush it
 
I can't handle late nights anymore
 
2:42 AM
I can handle the late nights, what I can't handle are the early mornings the next day.. :p
 
well yeah that
 
Just a redbull and some Pantera and I'm good for the workday
 
I used to be able to come home at like 12 and be alert and productive for another couple hours
 
however I will crash after work hard
arent you like 15 kendall
 
@SterlingArcher well if you wouldn't ride on ice...
@SterlingArcher lol
 
2:44 AM
LOW BLOW BOYS
 
you make me feel old
 
I forget we've known each other for like what.. 5 years now?
More? less?
 
more or less
 
"more or less" is one of the most meaningless idioms
 
2:45 AM
you're meaningless
im sorry i love you
you just make me so angry
 
so we're basically married?
 
Dude I've been trying to get my green card and marriage tax benefits for years we've been over this
 
lol we have?
 
if it wasn't with you it was lemon and y'all are basically the same to me
 
that reminds me, my dad has almost gotten himself banned from the US
well not quite that bad
 
2:48 AM
No kidding? My buddy can't go back to Oregon
 
but he got flagged for trying to enter illegally for work
 
filthy canadian illegals stealing our jerbs
 
so the other day he almost got turned back from a vacation weekend
@SterlingArcher I'll have you know I'm American
When the border guard asks
 
Sometimes I forget you have a family and that you didn't come to be by some crazy variation of mitosis or a mini big bang
 
meiosis, mini big bang, and then a literal buttload of mitosis
 
2:51 AM
With a splash of maple syrup and a penalty shot
 
nah he didn't get to shoot again
 
once was enough to score
 
oh shit flat earther went biblical
!!afk 😴
 
2:57 AM
think I'll hit the bed
good night!
 
Yup me too, night boys
!!afk tilly time
 
3:30 AM
@ShrekOverflow Hey Shrek, do you know anything about development on github.com/auth0/express-jw? Their 'secret' function signature doesn't pass in the jwt header, so I can't get the key id (kid) for the jwks thing... The koa one however ONLY passes in the head, so I think maybe they figured out it was the most useful? github.com/koajs/jwt
 
3:47 AM
you mean express-jwt
also for key getting you should be using jwks-rsa along side that
github.com/auth0/node-jwks-rsa/tree/master/examples/… @david we provide koa as well as express wrapper in that one
reading the source it seems that express-jwt docs are a little out hated
 
@ShrekOverflow Yeah, we are using jwks-rsa but we want to keep backwards compatibility with the old HS256 tokens while we switch over
 
Don't do it that way
since you are changing token format I'd just either version the API
 
so I use the secret: fn section of the options to choose whether i want to use the old symmetric HS256 key or use jwks-rsa to get the new one
 
or something like that
 
Mornings
 
3:55 AM
this is only for like a couple of weeks at most hopefully
easier than versioning the APIs
 
Ok makes sense
 
in the koa version it's super easy
(we have one koa backend service and 4 express)
but for the others i'm currently storing the kid key id thing in a shared config file and hoping that it doesn't change ><
so we're using the kid we expect, not the one that comes with the jwt
 
@SterlingArcher lol
 
@KevinB SterlingArcher is afk: tilly time
 
 
3 hours later…
7:15 AM
what's the node equivalent of very very basic encoding like btoa/atob?
I just don't want to accidentally remember stuff when looking through a db
but it should still be easy for me to see it in case it goes wrong
btoa/atob would have worked well
rot13 is a simple encoding, but gives up quite a bit of info already
well, I can still use buffers to get base64
how do I find a list of encodings? nodejs.org/api/…
would be nice if the docs linked to that, at every reference to an encoding argument
 
7:48 AM
Ohai
 
o/
 
no
 
nice
I'd like to be that kind of priest
 
i.stack.imgur.com/ek33Y.jpg . took me an eternity to color this
 
7:53 AM
morning!
 
wow, github spazzed out hard:
 
ouch
 
this is why you use gitlab
 
I've actually never used gitlab
worth my time?
 
been using it lately, and it's been pretty nice so far
 
7:57 AM
it looks like github + jenkins all together
what does it do?
 
For my needs, gitlab is generally overkill
@tfrascaroli git + project lifecycle management
 
I still really want that terminal gh navigator :/
 
oh... that might be interesting here at work
 
how do i get the nightly node.js docs
 
not sure if they are up
these go up to 9.8
 
8:01 AM
@KamilSolecki do you know if gitlab "libre" (free) plan can be used for commercial purposes? It doesn't really say
 
no idea, never used it
 
Morgen
 
o7
 
oh cool, my shop platform has introduced NN-based recommendations
 
8:12 AM
bloody monday morning Madara
 
> learning time: 10 weeks
I better fire it up
 
eh, do not forget to verify the results afterwards
 
well sure
 
I need to debug nvm :|
Or I could write my own node version manager... which one should I do ;\
 
what are you trying to fix?
 
8:20 AM
just ping benjamin, he will fix it in no time! :P
 
!!> 53*0.8
 
@KarelG 42.400000000000006
 
ok it was not me
 
NVM_NODEJS_ORG_MIRROR=https://nodejs.org/download/nightly/ nvm ls-remote gives iojs.. like watafak
 
lmao
This is... totally not helpful of an answer. — Kamil Solecki 16 secs ago
 
8:28 AM
Which language do I code a CLI in? :t
 
@cswl well technically any language that can be run from an operating system
 
@cswl you can specify a shebang, so that it is first interpreted and then parsed
 
> ~~read shebang
shebang?
 
The only requirement is it has to be fast... not just any fast... blazing fast
 
#! maybe?
hashbang?
 
8:33 AM
> Rust is a systems programming language that runs blazingly fast, prevents segfaults, and guarantees thread safety
Time to learn Rust.. it's blazing fast
 
> ~~what bangsforbuck?
wanna call a hoe? (Y/N): Y
...
call <phone number of an escort service>
Hmm that reminds me of something. Gotcha check my contact list.
 
gimme two letter words. that refers to.. nodejs
 
@cswl ehm, what is it going to have to do? Since in most cases it likely wont matter what you write it in
 
@cswl no
 
no refers common English phrase of negation... :| it has to imply nodejs..
 
8:38 AM
mm
 
neat. I have two phone numbers for an escort service in my contact list. That must be something from my past.
 
nj vs nz which one sounds more nodejs-y?
 
Go to bed
 
talking to a mirror atm @ndugger ?
 
👺
 
8:48 AM
whats the bot command to choose between two stuffs?
 
!!tell cswl foo or bar
 
@cswl //learn
 
lmao wat
 
Wat
 
8:50 AM
!!roll nz or nj
 
@cswl nj
 
NJ stands for New Jersey, the greasy Italian expat capital of the US
 
@BenjaminGruenbaum from this day, known as Rust420
 
You’re unfunny
 
@ndugger You pee at night too much
 
8:53 AM
I pee in bed
 
@ndugger What's your I pee address?
 
@Tavo if you ain't going to script, then go back to your java room
😉
 
Yeah, tavo, you filthy spammer
 
in Python, Mar 15 at 19:59, by MooingRawr
This isn't the JS room, we don't usually enjoy prying information out of a user. :\
 
@FlorianMargaine I take offense to that. We don't actually enjoy it!
 
9:05 AM
Dank
 
Ok, maybe a little
 
@FlorianMargaine Only because people come here with questions like "how do I button in jQuery"
 
9:23 AM
then we reply with "do not use jQuery" :D
 
ndugger needs a bot so that whenever someone sends a message containing jQuery (except his), he'll send "do not use jQuery"
obnoxious and useful at the same time
I'm starting to get offended by PayPal's marketing emails
> You mean nothing to us
> You'll get nothing to us this valentine's day
 
Using Angular: <custom-component>Some HTML</custom-component>, can I receive the HTML inside my custom-component? I want to prepend and append some stuff in my custom component
 
Just wrote a stub README for expected, njenv project :\ github.com/cswl/njenv
 
9:39 AM
the purpose of your ... project is still vague
 
so, I need to move away from using a temporary fairly insecure hash function
problem is it's a hash and not an encryption (as I thought it should be), which means I either ask all the users to reinsert their passwords, or I need to branch out and let old users use the old hash
and just send them an email encouraging them to change their passwords
I never thought about this, but maybe this is why some companies choose to encrypt their passwords? I still don't think it's a good idea
 
morning
 
Oh my god where have you been all my life
 
@FlorianMargaine those sneks...
 
@towc Just re-generate it when they next sign in
 
9:44 AM
@BenFortune oh, that's a clever idea
well, actually pretty obvious when you think about it. These are the things I look forward to learning every day :D
 
😛
 
I know I shouldn't roll my own crypto, but this hash function doesn't even seem that insecure:
(token) => token.split('').reduce((acc, char) => Math.sin(acc * Math.PI + char.charCodeAt(0)), 0).toString(16).split('.')[1].padEnd(14, 0)
 
Bcrypt
 
not sure what kind of analysis you could do to revert it
 
I collect all cell phones and iPads from the kids at night and keep them in my room. Last night those little ***holes all set alarms to go off at various times throughout the night. I’m impressed with their ingenuity and team effort. They’re all grounded.
kids can be evil haha
 
9:47 AM
@KarelG good job
 
> ***holes
can't think of anything that fits
 
assholes
 
ass
 
oh
well
 
@towc Better not to presume that there are not people more clever then ourselves that could attempt to learn something from it just the same
 
9:48 AM
@Neil yeah, I'm moving away from it anyway
but I'm still curious
 
They might be able to get some but not all the password digits, making it then easy to brute force
 
@towc you clearly have a problem with that ugly-one-line code
I know it's hard to resist
but you must
 
@Neoares it's not meant to be easy to read anyway
 
it is always meant to be easy to read
 
eh cryptoanalists have abilities to read all kind of code.
 
9:49 AM
obfuscating your own code, clever!
 
if you want to obfuscate it, use a uglifier
 
they only have to comprehend what you want to do
 
and it was a temporary hack because I was under a strict deadline of "I need it yesterday"
 
use an existing hash function ?
 
well, tbf nobody knew we'd need it until the moment I started writing it
@KarelG this was faster than looking up the docs and running npm
 
9:51 AM
what were you hashing btw?
 
tokens :D
 
passwords for the access system to the hackerspace
 
password
10/10
 
if it is for passwords, then I should get a flight ticket to bratislavia to slap you in the face
lol
ok
 
but they're tokens because they're unique identifiers too
@KarelG you're welcome to visit at any time
it had nothing confidential in it
just the full name :P
 
9:53 AM
the sine function with PI has a very similar pattern
I guess it is for that rpi thing ? :P
 
and the hashing function wasn't public unless it got leaked
 
with text file based storage
 
and there was no reason to think that it would get leaked, so it wasn't too bad
@KarelG yes
it was a hack. I'm somewhat proud of it
it's still working
 
throw in md5 at the result of your hex string
 
@KarelG similar pattern to what?
 
9:55 AM
well if it's deteriministic the hashing will always "work"
the trick is to drop information otherwise it's reversible
 
@Neil well, the whole hack
 
well, let say those passwords are starting with same character
 
@Neil the nice thing that I did actually think about, is that information is dropped thanks to the floating point numbers not being perfect in precision, and sin of rational numbers always being irrational
 
let's pick a as example (that char code)
 
which means that you lose information at each iteration of the reduce
 
9:57 AM
> passwords for the access system to the hackerspace
10/10 would do a film about it
someone wants to be the hackerman?
 
ok we have the guy
congrats @kamil
 
hackerspace is what you call a public meet up place for programmers and tech enthusiasts in general
 
> hash('aaaaaaaaaaaaaa')
"ffe93456e25c60"
> hash('aaaaaaaaaaaaab')
"8ff353bb008cf0"
> hash('baaaaaaaaaaaaa')
"613b2abfc9101c"
@KarelG
 
looks salted
 
9:59 AM
!!> const arr = []; for(let acc = 1; acc <= 3; ++acc) arr.push(Math.sin(acc * Math.PI + 67)); arr
 
@KarelG [0.8555199789753241,-0.8555199789753258,0.8555199789753203]
 
see the pattern ?
 
nu
 
a cryptoanalyst will say "there is a constant math function"
 
oh I thought it was a linguistic function
 

« first day (2711 days earlier)      last day (2241 days later) »