« first day (2244 days earlier)      last day (2710 days later) » 

3:01 PM
*Fira Mono mozilla.github.io/Fira (drop to the bottom)
if you're using one of the supported terminals, might want to have a look at github.com/tonsky/FiraCode, I use hyper.is
 
wtf React, you should at least warn me for -> htmlFor
 
Anonymous Pro
 
@towc 8px? seriously?
 
@doug65536 I have a relatively small screen
@Luggage that does look pretty
 
3:06 PM
and apparently really good eyes
 
although in all honesty, I'm not sure I can actually tell the difference between monospace fonts tbf
 
on low dpi you might not
 
@doug65536 well, mostly every time I use my laptop I'm in bed, so the screen is also closer to my eyes
 
I like Deja Vu Sans Mono but I use huge font usually. probably looks okay small though
 
and on another note, I'm still too young to start having sight issues
 
3:08 PM
my eyes are perfect. to keep them that way I use comfortable size :)
 
The thing you're looking for is a VGA font.
 
@doug65536 old terminal fonts (the one used by default in linux ttys) are generally set at 8px only.
 
Although I'm not sure that's what you want.
 
I use linux
 
@littlepootis and also live on the framebuffer all the time
 
3:09 PM
not running text mode though
 
text mode is awesome
 
awesome for killall lightdm yeah :P
 
hmm
i've a problem
 
uuuh, I should have a very broken font as my default terminal font, so that if I quickly want to do something while making sure people have no idea what I'm doing and I'm confident in my typing skills, they may have no clue. And if I want to actually work on something, I set the font manually for each terminal window I'd be using (sakura)
@rlemon not sure how I feel about the filling of the 0s
 
That soudns horrible.
 
3:11 PM
a dot was clean and nice, but a line?
 
3 mins ago, by little pootis
The thing you're looking for is a VGA font.
 
@Luggage welcome to my laptop
 
!!google vga
@littlepootis oh ew no
I like my antialiasing
 
yea, dont' listen to him. he has no idea what he's talking about.
 
3:12 PM
take that away from me and I'll be ewwwing
 
You want anti-aliasing on an 8px font??!?!?!?!?!?!
 
yiss
 
> I should have a very broken font
 
He needs a font with hinting.
 
> I like my antialiasing
 
3:13 PM
user A access a page that creates an user
1 -> GET request with id: server checks if he is authenticated.
2 -> if (auth) display HTML form with hidden id on the page
3 -> user A fills the form and submits
4 -> POST request: server checks if he's authenticated
5 -> if (auth) do db stuff (create user ect )

but I cannot figure out how to check if the id in post is same as in 2 unless i use a db ... is there an alternative
 
MS fonts have great hinting and look good at small sizes (but they lose any unique style due to that).
rip Consolas from a windows machine.
 
Courier New is a great font too.
 
@KarelG session
 
Times New Roman
 
Maybe inconsolata has good hinting, not sure.
 
3:14 PM
Comic Sans!
 
@doug65536 can be forged :/
 
Comic Sans Mono
 
@KarelG no it can't
 
@BenFortune just do it
 
@towc none of these people know what they are talking about. :)
 
session is server side. they are going to "forge" a 512 bit random string of gibberish?
 
@Luggage hey, I suggested Hack
he didn't like the 0's
 
 
Also, linux font rendering can suck. You may have to adjust it or just deal with shit.
 
that's 8px vim
on a transparent terminal
 
3:17 PM
@doug65536 trivially. Sessions are weak.
 
well, semi-transparent
 
I haven't seen this before
 
@ssube citation needed
 
@Shane yes
 
3:17 PM
hong kong has this massive fountain coming out
 
what, MITM attack? lol
 
usually it's spread around
 
heh, the data is just wrong :P
 
@doug65536 look at JWT and some of the modern replacements. The main difference is that they use strong crypto, sessions have nothing protecting them.
 
they must be having server side problems
 
3:18 PM
right, ok
 
@ssube "protecting" them from what
 
lol hilarious level of intellectual talk here right now :D
 
@towc don't know if this is 8px, I'm going blind already, Fira Code in Hyper snag.gy/KeQHVv.jpg
 
ohh, nvm, data actually seems ok
 
3:19 PM
Does anyone know a good way to manage nested structures in redux? I find they are really cluttering up my reducers...
 
yeah, that's not normal
 
@doug65536 anything. mitm or spoofing.
 
@ssube You could just sign your cookies, just like you sign your JWT
 
@AwalGarg you're not offering much yourself.
 
@OliverSalzburg well yeah, using signed tokens is my whole point
 
3:19 PM
spoofing eh? ok. how would you spoof it. it's a gigantic random bunch of bits
 
Gotcha
 
@towc why would you need anything more than a 80x24?
 
typically with signed tokens you then have some actual data in the token, rather than a random session id
 
@BenFortune that site's not loading for me
 
@FilipDupanović it also depends on the distance from your eyes
 
3:19 PM
Just use a 10-11px font.
 
I suppose backfisting them in the face and bringing up the debugger and copy/pasting it would work
 
in general, tokens are a much better idea
 
Don't fuck your eyes up.
 
reason I ask is I'm having issues with my hosts, wondering if there's a relationship
 
web's been slow today
 
3:20 PM
@rlemon true, noted
 
@doug65536 you generate random session ids and see which one works
 
or you knock down the server and force everybody to recreate their sessions
 
@littlepootis because I want to see as much as I can?
 
lol... you make it so big the sun won't last long enough to guess it
 
3:20 PM
@Julix Little bit of angularJS
 
stateless tokens are far more robust and much more useful
 
your lines of code shouldn't be that long anyway.
 
@towc do you want to see as long as you can?
 
reading small text won't hurt you.
 
@rlemon if you have a ton of small messages coming in, I would look at something like statsd or fluentd or elasticsearch, rather than a full size database. They handle tiny payloads better.
 
3:21 PM
Hello young men and old men \o/
 
if it's comfortable and non-straining to read, then it's fine for him.
 
@littlepootis I'm young and there's no future
 
reading is hard all on its own
 
@ssube i was just thinking to use the hidden ID as supply to generate the token :P
then i can compare
but that's ffs
 
@towc man this is what I work at snag.gy/gRw2OU.jpg
 
3:23 PM
@KarelG the best way to do tokens, IMO, is to take a JSON object (model) of whatever data you need for the user (like id, log in time, etc) and stringify it, then encrypt it with a real keypair.
 
glasses, 4x display and all
 
@FilipDupanović wuz that?
 
@FilipDupanović how many lines can you see at once?
 
When somebody makes a request, they send that token. If you can decrypt the token and parse it into JSON, you know it's valid because asymmetric key crypto is still good.
 
also, how distant from your eyes is your monitor?
 
3:24 PM
Then you have a "session" (really just request context) that has a known valid user id and all the other info.
 
@towc ~30-ish... maybe you should get something with a minimap
 
I have 55
 
60 lines
 
@ssube what I've never understood about tokens, is how you manage the key pair on the client
 
3:26 PM
@KarelG pic or didn't happen
 
@Shane you don't. The client never sees the key.
 
@KarelG portrait ultrasharp or something?
 
is there like a shared key, like in SSL? (I really don't know much about this yet)
 
@littlepootis your io is bad and you should feel bad. why assign 0 to Offset props?
 
@Shane nothing shared except the token.
 
3:27 PM
because I'm guessing if you have encrypted payloads, you need some way to decrypt them on the client
 
@AwalGarg because it's a type
 
@ssube I have say 500 devices in the field. we need a central place to pass information and requests from client -> device. right now I'm using ssh tunnels but they're proving to be a problem like 1/10 because of stupid isps
 
not a regular object
 
so I was thinking of having a store on the server just hold and pass off messages.
then everything is https
 
@FilipDupanović but but but but but but vim
 
3:28 PM
I think I'm probably going to need to just set aside a few hours and dig into it... haven't needed it yet, but I know the day's coming when I do
 
@Shane you can, if you want, publish a public key and allow clients to decrypt. There's not much risk, but it's usually unnecessary.
 
@littlepootis I know io :P it is considered non idiomatic to assign statics to types
 
k
 
typically you don't provide any keys to the client and the token is opaque for them
@rlemon what kind of data?
 
sit'snot a static..?
 
3:28 PM
0 is not static?
 
@ssube json
 
@towc I know sad face... Emacs has a nice mini map if you use the GtK editor
 
There's no reason other than creating a store
 
@FilipDupanović but that's emacs
 
@FilipDupanović screen height 1200
but i'm playing not fair
 
3:30 PM
@rlemon so the corn health devices send you small (<100 bytes, you said?) JSON payloads and then your server does what? Does it respond right away or issue commands later or are you just collecting data?
 
it's a simple cmd shell
:P
 
This sounds like a job for some kind of message queue or redis or fluent type thing
 
@ssube real time data monitoring and occasional commands for control.
and occasional blasts of history reports which are ofc larger
 
@rlemon are you horribly opposed to using more than one piece of tech? I don't think you have to, but I'd probably do monitoring and C&C with statsd and a simple REST API, respectively.
 
3:32 PM
I'm just toying with ideas right now
 
@AwalGarg No reason other than creating the store ^. Children inherit parent's created store.
 
like I said, the current situation 'works' and I seem to be the only one bothered by it
I get a chance to evaluate it sooner than later (next year)
 
so for real time monitoring, the whole statsd/datadog stack is really nice. It handles new machines very well, which is what you'd need.
There are free variants based on statsd and graphite.
 
I also need something that is 0-config on the device.
 
Point is, for a bunch of numbers with little context: statsd
 
3:33 PM
it needs to be able to call out and communicate with no client network messing about or input
 
The rest of it sounds like you could just use HTTP and polling, with the occasional report POST.
 
user5534204
What is your plugin that is providing .dialog? I'd recommend exploring .ajax instead of .load and leveraging the success/error callbacks. — anied 27 mins ago
 
@Tharuperera 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.
 
@ssube that's what I'm going to demo next. when I first designed it in my head that would be way too much traffic.
 
@rlemon do you have any sort of auth, somewhere they log in, or is it literally plug and play?
 
3:34 PM
do you believe isp's block ssh?
 
absolutely
 
they can do that
 
it's to keep script kiddies off their rural network
 
user5534204
can anyone help me on this stackoverflow.com/questions/41020210/…
 
the ssh protocols have specific packet types
 
3:34 PM
@ssube the device collects a unique identifier from the main controller, I use that to map them to a user account they log into the web
 
just filter it out
 
so it is plug and play from their point of view
 
@KarelG have you seen the haproxy setup to handle HTTP and SSH on the same port?
@rlemon ok, so you do have enough auth (the unique id) to verify incoming data
 
@ssube yup
 
btw, I think it's time I made another codepen thing. Anything I should try?
 
3:35 PM
cause for the numbers, statsd is great, but it sends tiny UDP packets with no metadata
 
@Tharuperera Seems like you haven't really tried anything
 
but I'm wondering what the best 'store' for that type of setup is. with so few users postgres would probably work, but dealing with picking up commands and such seems pretty awful for a db.
 
so I'm actually not sure how stats would fit in
 
don't you dare library me
 
3:36 PM
@rlemon for numbers, you probably want something like RRD databases.
for C&C, that sounds like a classic message queue
both of which postgres and redis can emulate at low volume/scale
 
1 message moved to Trash can
@Tharuperera 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
 
problem is, all the servers for that are built without auth, mostly
 
on connection (from the web) I'd need to pull a larger data packet, then I'd need to pull every second they are connected a few hundred bytes. commands are very very simple. I pass a register key and a value. the other end validates it
 
@ssube no. Should I look into that?
 
user5534204
@CapricaSix : oh sorry . I'll resend
 
user5534204
3:38 PM
@OliverSalzburg : var loadedAjaxUserupdate;
function load_js(mlink) {

    $.when($.ajax(mlink)).then(function () {
        loadedAjaxUserupdate = true;
    });

}
if (!loadedAjaxUserupdate) {
    alert('Still loading, please wait just a second longer');
    return;
}
 
@KarelG it's nifty. You can set up a git server with both a web UI and SSH access on a single port.
They sniff the first packet and SSH and HTTP both have very obvious encoding, so it can reliably switch.
 
Could someone tell me if this is a legit MVC pattern jsfiddle.net/alex_netkachov/ZgBrK and if should I follow it ?
 
user5534204
@OliverSalzburg : can you help me
 
@rlemon graphiteapp.org github.com/OptimalBits/bull are both tools I've used with good results (at one point @Luggage was using bull as well)
 
Still do.
 
3:41 PM
thanks, I'll check out bull then
 
> Graphite does three things:

Kick ass.
Chew bubblegum.

Make it easy to store and graph metrics.

(And it’s all out of bubblegum.)
Seriously? :P
 
graphite sounds more specific to the task
where-as bull is general purpose queues
 
@OliverSalzburg Duke Nukem will never stop being cool and also a horrible person
 
@FlyingGambit he made the things complex. Same effect can be applied with half less code
 
3:43 PM
why is people so eager to get MVC pattern on front end only ? unless you don't do single page stuff, forget that
 
@KarelG Thats a big relief because I have been trying to understand it from this morning and now its like 9 in the evening here
 
you could have learnt basic Elm in that time ...
 
@KarelG Do you have an example that I could follow and learn ?
 
And the entirety of haskell
 
what basic elements ?
 
3:45 PM
Elm is a haskellish language adaption of javascript
 
Knu
+1 @littlepootis
 
Elm looks interesting
will look into it later
 
@KendallFrey i could see some transparency trails :P
 
3:47 PM
Have to study JS , have an interview tomorrow but more than that I want to learn it
 
nice abuse of background change
 
shush
 
just attend a basic js tutorial. Most companies don't use Elm
i use that as hobby
 
@KarelG I know the basics but I want to learn the MVC way of implementing it , because in my last assignment they asked to make it in MVC and I could not do it
 
@littlepootis so just use Map? io has real maps
inheriting from Object for that sounds odd
 
3:51 PM
Man, I have re-written routing/navigation enough times. I think I finally am happy with where I am at.
routing is hard when you want to have "unsaved changes" blocks, pre-fetching, etc.
 
@FlyingGambit did they really ask you to develop a client side only MVC ?
I would laugh and walk away
 
@KarelG yes :C
 
that's not as crazy as it may sound.
 
just comprehend the MVC architecture
 
@AwalGarg wat mate
no
They're objects.. with methods and all.
 
3:53 PM
tell it in abstract way. Then you can answer that too when you're soliciting for work as .NET developer.
 
@KarelG why wouldn't you use MVC on a client side app?
how do you structure your code?
 
MVVM
MVWTF
 
there's always a controller of some sort
 
Are you thinking of ASP.NET MVC? Which is just one very-specific interpretation of MVC.
 
3:56 PM
If I am right, in MVC, model is supposed to store the data and notify the observers. View is suppose to render the data from model. Controller is supposed to handle user interactions and call view / model methods .
 
Very loosely: Model (your data), View (your html or template), Controller (the things that has .save()). All of these can be on the client-side.
 
on the client, the "controller" is typically called a "router"
but it's the same thing
 
@littlepootis nope! io's Map from the core namespace is a real unordered dict type! Has been there since, like, forever. Which shouldn't be surprising at all seeing that io has coroutines, actors and introspection since forever which everyone is now falling over in ES6 :D
 
But the part with the observer pattern is the one where I am facing difficulty
 
well.. router can also just be something that parses urls.. but yes..
I don't think observers are a mandatory part of MVC
 
3:57 PM
But I don't need a Map.
 
but.. MVC is such a loose and mis-used term..
 
@Luggage All examples including this one also using observer for MVC sandbox.thewikies.com/javascript-mvc-hello-world/index.2.html
 
imo MVC and MVR are the best vague acronym for "I have one set of classes that model data, one set that render data, and one set that control application flow"
 
@KendallFrey I think you can can't you?
eh actually you might be right
there is a code for 2 other games though you get emailed to you
 
Yep, got those
 
3:59 PM
SMRV: Store Model Router View
 
you're going to like touch I think
they are nicer than the vive wands for sure
 
user3119231
Is there a efficent and good way to find an specific element on each DOM level? -> jsfiddle.net/47kd209p/2
 

« first day (2244 days earlier)      last day (2710 days later) »