« first day (2036 days earlier)      last day (3134 days later) » 

18:00
@ssube Yeah I know, I'm just trying to get this one song and can only find it on 1 site.
good luck
user1596138
I'm using Cmder and it doesn't support that
user1596138
@littlepootis Powerline seems to be an extension
I'm just using babun on windows now
cygwin, verbose... sure, but it does what I want it to do
18:01
@Josiah so long as it's normal escape sequence coloring, bash and conemu definitely support it
How do you guys handle multiple tokens for same user
If I only permit once token then the user will get logged out from the other side automatically
one*
@GandalftheWhite that depends entirely on what kind of token you're talking about
@Loktar did you ever listen to Alpha Wolves?
@GandalftheWhite that's not specific.
user1596138
18:03
@Shea I don't want to go to insider builds on my main dev machine :P
JWT is an encoding, it doesn't provide any information on what the token actually is.
user1596138
@ssube Yeah, you say that
it's coming though
user1596138
But it's not true :P
Token is just encoded value that consists of user id & date.now value
encoded with value*
18:03
@Josiah do you have the colors enabled? I imagine cmder has a similar color setup tab to conemu.
user1596138
Are you using real bash (it doesn't work with cmd prompt and may not work with cygwin)
user1596138
It outputs colored text lol
ha
user1596138
Not colored blocks. I mean yeah it's close... Ish
18:04
nice
looks like your script is just spitting out bad escapes
user1596138
It works fine on Mac and Linux
user1596138
It's git-stats
@GandalftheWhite then all the tokens issued will work, no?
18:05
That is what I am asking
how to take on this problem
architecture wise
well, how have you implemented it? what are your requirements?
user1596138
It looks very different in real bash lol but still just colored text
At present, user logs in using his user id and password - a token is generated for the user and then I save the token along with user's id in redis. Whenever verification is needed I check if the token sent by the client side is allocated for him to use or not
@GandalftheWhite that kind of defeats some of the advantages of using tokens
18:07
Like...
Verification via decoding right?
that and the ability to provide stateless "sessions"
encrypting your tokens provides enough verification that you don't need to keep them in redis
@nderscore ty
I am keeping them in redis so that I can make use of logout from all devices options
option*
18:09
so you've already implemented multiple simultaneous tokens?
mobile app is someone else's responsibility
BTW on that stateless point - Saving token and user's id in cookie will make the system stateless right?
nope
I meant non stateless*
My Bad
also no
I meant non stateless
18:12
storage medium has very little to do with statefulness
user1596138
Oh well lol
Dang I'm so elite. It was encrypted with base64, so a reversal of that gave me the URL to the mp3. cool
tokens allow you to be completely stateless because the verification comes from the cryptography, so whatever the tokens contains is The Truth
what do you suggest
if you can successfully decrypt the token, you already know it's trusted and who the principal is
18:12
as in architecture wise
I was doing exactly that
@ton.yeung Encoded?
I was decoding the token and checking for user's id
@GandalftheWhite I suggest you ask a real question. That's way too broad to be answered.
neat, Arma 2 is on sale for 2€
as that was there in the token
but the other guy was like
18:13
@ton.yeung ty :)
what's the point of decoding the token
we can check if the request was made from right person or not via just checking on redis
@GandalftheWhite decoding the token (with a private key) provides verification of authenticity and origin without making a round-trip to the database
it provides completely portable, stateless sessions
@GandalftheWhite that's exactly what tokens let you avoid. Making a check against redis is typically cheap, but with tokens, you don't have to do any of that.
If it decrypts, it's a trusted token with the principal already provided.
Even round-tripping the principal through a database to get more info is optional, at that point.
we are using redis to make sure we can allow the user to logout from all devices
@GandalftheWhite ok? That doesn't change much of anything.
@SterlingArcher did we... stirr up some shit earlier? I needed to leave the office and scrolling through the transcript now... holy hell
18:16
so this is what I should do - decrypt and verify after retrieving the token from redis
wont that just increase one more process
@GNi33 wasn't us ;)
@GandalftheWhite those things are redundant
I don't get it?
haha, I love this room
stateful sessions in redis and encrypted tokens provide the same thing: verification
18:17
I had to leave :(
it was the most excitement here in a while
whether you're storing the "token" and fetching it later to verify or decrypting the user input, it does the same thing
it's just that using redis or a database means a few more round trips
so there is no point in decoding right?
if I am using redis
I can't even identify how that shitfest came to be
18:18
redis doesn't provide at-rest encryption, so there is
if you're getting deep enough into the security model to worry about your redis cluster being compromised
since redis doesn't usually use auth, that's a very real concern
That is understandable
and we are dealing with money
albeit - we are starting for now
therefore no security compromises
Now back to the main problem
how to handle multiple users
doing your own security with money is a bad idea
meeting PCI is complicated, at best
We don't have our own gateway
so PCI DSS is not required
18:20
wow github is so polite
we are making use of other's gateway
and wallet system
money doesn't protect you from malicious users :D
@GandalftheWhite well that's good
By Money - I meant that system we are developing deals with money.
plz help me out :(
0
Q: Store Youtube video with File API using XMLHttpRequest

Bas van der PloegThis is what I want to make: First get youtube video file via XHR. Then get video file via XHR. Store with File API. Read Blob from File API and set as video src using createObjectUrl() Play video I'm having a problem with the XMLHttpRequest. Is this problem because youtube just don't let m...

18:24
@BasvanderPloeg enable-cors.org
@Loktar I'm sure you know this. Is the Arma 2 DayZ mod still playable and active?
@GNi33 last I knew it was still playable, idk how active it is though
okay, thanks, I'll give it a try. there's an Arma (and Bohemia in general) sale going on on Steam
Can't hurt to try Arma 2
@ton.yeung most misleading headline in a long time
dude holy shit
the new Doom is 52 gigs
going to take a little bit to dl it
18:28
@Loktar Say whaaaaaaaaaat?
carmack, you sob
Carmack isn't even there anymore :(
So basically, the disc just gives you access to download the game.
oh, well then screw those guys
carmack was 90% of the genius at id
@Trasiva lol yeah I'm looking at whats on the disk right now
@ssube yeah for sure
18:28
American McGee was the other 10%
he made the ummm snap map feature for the new doom
that was the last thing he did before leaving
the snap map looking fucking sweet though
some of the tricks he wrote for Doom 2 and 3 were nuts
the sheer elegance of his bit twiddling
oh yeah man he is amaaaazing
dumb little things that saved trillions of cycles
he has done so much for PC Gaming in general
so glad he blessed us with his genius
I put him way higher than Gabe Newell, and pretty much everyone else tbh
Adaptive Tile Refresh is a computer graphics technique for sidescrolling games, invented by id Software's John Carmack to compensate for the poor graphics performance of PCs in the early 1990s. Its principal innovation was a novel use of several EGA hardware features to perform the scrolling in hardware. The technique is named for its other aspect, the tracking of moved graphical elements in order to minimize the amount of redrawing required in every frame. Together, the combination saves the processing time that would have been required for redrawing the entire screen. Because CGA (the previous...
he even did lesser known stuff that helped pc gamers tremendously
18:30
all gaben did was find a good way to take our money
and spend it on cheetos
he's the Jobs or Gates to Carmack's Carmack
But gaben is god
gaben is the great satan
@ssube exactly
he's gaming's George Dubya
That really pisses me off that id would make a 52 gig download. For those with data caps that's going to fuck them over pretty hard.
18:32
@littlepootis I figured Robin Walker would be your god :p
@Trasiva not much they can do
GTA 5 was larger iirc
@Loktar No, especially if they day one purchases.
@Trasiva well there was preloading available
I ordered a physical copy though
@Loktar I was on a server with him once.
@littlepootis dont you lie to me!
lol that is pretty badass though
18:35
Not kidding. Saw a reddit post and tried to join the server. Gaben blessed me after a few minutes.
I remember getting annoyed with him because he promised jiggly bones and an animation for my HOUWAR
took 2 years to get
@Loktar Well, preloading won't help with their data caps though. :P If I was on my old plan, that'd leave me with 250 gigs for the month (which I'd certainly use).
@Trasiva yeah I feel bad for people on those plans
imgur.com/gallery/bsKQ0 this was great
some are just rude af though
@Loktar I got lucky, they had a promo so I pay $65/mo for 100mb/s down with 1TB datacap.
18:37
@SterlingArcher LOL #4
@Trasiva good god. What ISP is that?
When you draw something on a canvas, the previous image remains visible unless you specifically clear the canvas yourself. So drawing one of your ID's multiple times may appear as multiple squares. Think of it as adding new squares to the same image, instead of creating a new image. Try clearing it once you get the ajax request, before you draw any new squares
> Load 90 more images
@ssube Mediacom (Media-Con)
@Loktar is this true?
@Learning yes
you have to manually clear the context
18:38
So is it like every time my data comes I have to redraw from the scratch
@Learning well that depends
you can draw from scratch or you can optimize it, prepare some things ahead of time, etc
Like for eg I have drawn 20 users and on next ajax request I get 10 more users then I have to draw agaun 30 users
@ssube I learned a new insult over the weekend
Wait, I mean... yesterday
Yesterday was thursday
@Learning just every loop clear and redraw, it isn't that bad honestly
18:41
@SterlingArcher today it is friday, friday
@SterlingArcher what is?
pastebin it or something
> Words cannot describe how beautiful you are. But numbers can. 4/10
6
18:42
lol
@Shea that's just evil :P
ahhh
@Loktar so on every ajax request first I empty my canvas tag and agaun draw everything
Right?
@Learning well you want them animated right?
@Shea lol
18:43
like a smooth motion of them bouncing around?
@Loktar yeah animated
if that's the case you just have a requestAnimationFrame loop clearing and drawing everything
Should I be using true and false or 0 and 1 for evaluating Boolean?
so that would just constantly be running and when you add new items they should just appear if you're looping through an array or something in your render
18:44
evaluating a boolean?
@Loktar hang on what are we talking about here
@KendallFrey ;)
I'm not sure what the heck is called. I just need to record state, yes or no, true or false, 1 or 0. What is the preferred method, t/f or 1/0?
@Waxi two of those values are booleans, two are not.
lol
18:45
@Waxi true / false
@Waxi Think about that. I'm going to use integers to compare boolean. This sounds fuckin' stupid.
@Loktar ok thanks for your kind suggestions. I will definitely try this.
yknow why it sounds fuckin stupid?
@Waxi You should coerce it to a voltage
If 0 always evaluates to false, that means I COULD if I wanted to, but I shouldn't?
18:46
@ssube ...are you drunk?
@Trasiva no :(
@Waxi 0 doesn't always evaluate to false
@ssube Your sentence is all kinds of fucked up.
@Trasiva how? It looks mostly ok
@ssube Then that's where my misunderstanding came from, ty.
@Waxi use "yay" and "" instead
18:47
@littlepootis lel
@littlepootis oh wow I still wanna complete that darklord compiler :P
0 or 1 only if it's in MySQL
oh man.. I forgot about that
there's my technicality for the day
> "If you, Hitler, and Stalin were in a room and I had a gun with two bullets, I would shoot you. Twice."
18:49
has some homies from the chat
<3 reddit
@Shea that's not quite right. C always uses 0 and 1, because it has no boolean type. Databases frequently do.
3 years passes by fast yeesh.
there
@KendallFrey lol the savagery
18:51
@Loktar Aaand there goes my eyes.
that scrolling text is still fresh as hell
and them blood drips
pretty much everyone is still on the chat minus Ivo, Raynos, Octavian, and Gacnt
man Ivo is such a badass I wish he still visited.
@AwalGarg darklord compiler?
@Loktar I'm in this \o/
ofc dude
never saw that one, awesome work
18:57
thanks, yeah its pretty damn old, I was looking for examples for @Learning and came acrossed it lol
I totally forgot about it
ok, back in the UK :/
Raynos, that's a name I haven't heard for a long time
yeah he hasnt been on here in years
I think he was gone even when I made that
you remember Ivo Wetzel right?
he worked for Zynga for a bit
not sure where he ended up after that, but he always was working on really interesting side projects
yeah, haven't seen him in ages either
@Loktar I havent came across any such plug in which can give me such functionality
18:59
First time I met Raynos he was shitposting/trolling in C#
haha
different guy though
so, yesterday I chugged a liter of malibu in 20 seconds thinking it was water after a couple of drinking challenges...
that was fun
Ivo's GH says grandcentrix gmbh
learnt to throw up on purpose

« first day (2036 days earlier)      last day (3134 days later) »