« first day (2475 days earlier)      last day (2697 days later) » 

00:00
@Mosho who with?
He smiled, I don't know how you get initiated into the "club". Made sure to stay away from that guy every time I see him.
@Arrow I'm Australian.
Also gay. Your sample size is growing
@monners were you at the gym today?
Sorry from one bad experience, I know have a stereo type of all Australians
check anyone out?
other than yoself ;)
00:04
@rlemon No. Just myself.
nice
I was at the gym today
*now
Was at the gym last night. There's this scrappy guy who's always there, just floats from machine to machine, doesn't really seem to know what he's doing, but he's got the motivation of a pro. Kinda wanna suggest to him that he gets a trainer, start doing things properly. Just seems like such a waste to spend all that time incorrectly
@Arrow How is that a bad experience? Don't you like being checked out?
@monners, I don't know people take it to a whole new extreme.
at my gym
00:08
I go to a corporate gym. Everyone largely keeps to themselves. It's great
No bros
There are guys at my gym who have their balls polished, and walk around the lockers naked just to show it off.
I go to a crossfit gym
but I go in the morning before they do crossfit
I stick to mainly powerlifting and associated lifts
Nice
Been slowly getting into more traditional power lifting. It's super satisfying
NB I am not against crossfit, it's just too intense for me
Everyone at my guy is some rich prick who thinks they are a Greek god. I go the guy to climb the 60-foot wall
00:10
I have a problem with crossfit being pushed onto people that aren't physically advanced enough to do it safely. But at the competitive level it's beast mode
yeah, I did it for a while. I had to use a broom handle for like three weeks until the trainer was satisfied I could do the lifts.
but you see a lot of people with poor form basically hurting themselves
Smart
I have a PT. It's not necessary really, I can do it all myself, but it's nice to have someone tell me what to do and how much. And since he is there waiting for me I always go. I can be very persuasive in not doing things.
I also have a PT. Best money I ever spent
00:55
good morning lovelies
what's going on Tavo, nice greeting
morn tavo
I love when people say thanks the answer worked but don't upvote or accept the answer
@Arrow as agreed :P
no one has complained yet lol
01:16
I wish to complain I am not lovely.
it looks like that's going to be my greeting from now onwards
anyone here an express server buff
I have installed and made an api in express
have you ever used passport
no
I am pretty much not an expert in express
01:28
@Arrow No, that's not a nice greeting.
@littlepootis you ever use passport
Did, during a hackathon. But the team decided to switch to Laravel before I could ever get it to work.
Well this question is not that hard, would you ever store your active users on express server temporarily or would you call the database to remove their session when they log out
What do you mean by 'active'? Logged in?
I feel it might be bad to call the database just to invalidate a users session
yes logged in
01:35
I wouldn't do the former.
I'd just use a session middleware. It takes care of that.
dam you are right, i feel stupid
02:07
is /r/cigarettes about smoking?
also, a lot of things in reddit will give you cancer
So there's a chance my date might be a lesbian
You mean bisexual
Who knows at this point
@littlepootis that assumes people only go on dates with those they are attracted to
02:14
@hsimah I thought so.
Wouldn't really call it a date otherwise.
I've taken girls on dates who knew it was not a date and knew that I thought it was a date. Not a lot mind you, but it happens.
I went on a date with a girl who I didn't want to but felt obligated to do so
people are weird
not sure what ages you people are, but I hope it's not your 30s
I'm 31
you type fast for an old codger
02:18
did you just call me a badger
speak up you whippersnapper
no
lol
@hsimah you find loads of desperate people while dating at that age. I was lucky me thinks, but found a lot of weird people...
back in my day i had to write javascript uphill in the snow
02:19
@Tavo I'm lucky I found a nice girl in my late twenties. So far so good.
@SterlingArcher you had snow? Oh, you were so lucky!
I had to code in plain c while crawling in the desert!
(please someone tell me that the reference is not lost there...)
@hsimah I found my wife when I was like 33. I was lucky as well
but I also found a lot of crazy people
I spent my twenties with crazy girls. I still miss one of them, she was totally bonkers but so very hot lol
I think she is actually mentally ill, but I haven't seen her in years
we all have one of those :P
(at least one)
also, nobody carried on with my Monty Phyton joke... Shame!
02:59
I shouldn't have gone on gog.com
I want so many of these games
@hsimah hah
I might get Pharaoh tonight
that was a good game
yeah love that game
I have over 400 gog games 😒
$13
damn really?
It goes on sale for like $5 I'm pretty sure
03:01
I wonder where that money goes
but not sure when the next sale will be
well
I pirated it back in the day so $13 doesn't faze me
I lived in Kuwait and there wasn't anywhere to buy games, only down the market at the pirated game stall
so most things I used from 1999-2003 were pirated
my sister sent me The Sims and The Sims: Livin Large from Australia
thank you all for listening to this little bit of hsimah history
haha
yeah I pirated a little before that
from like idk 1995-2001-ish
before that I played old games people gave me. not copies but I didnt pay for them. command keen, ms flight sim 4.0
I have quite a few more now and more organized
but yeah man I love PC games
Commander Keen would be a good one to get boxed, they go for a ton now though
03:12
pc game boxes were so retardedly large
like a floppy disk and a small booklet in this massive box
yeah that's what's great about them 😋
many of them have some cool additional things as well, posters, manuals, etc.
user6820627
Hey, MDN design is changed now.
user6820627
!!mdn object
03:58
does anyone have recommendations for file upload controls in React? there are several
 
2 hours later…
06:16
There's something wrong at Mozilla. That the MDN layout could be approved and go into production is crazy...
06:32
I find it good
Having to wait for the menus to fade in before I can select an item is infuriating. It was 100% made for the look and totally neglecting usability. And everywhere you have to try to know if the item you see is a link, a button, an input, reacts on hover or on click, etc.
Are we talking about new mdn??
I think their whole dev team got heavily involved with drugs
Why does their h2 and h3 have completely different style its sooo annoying
nerds XD
06:39
I just tried mdn.com
(its design is worse than the MDN)
It even has the same style!
Learning some js functionality suddenly I know quran
Ok, at my workplace, they installed Ubuntu 16 and I am not liking the terminal. I always liked the putty terminal more as it was easy to read. Any suggestions to improve terminal looks so it becomes easy for the eyes ?
@Paran0a Their constant changes of size and style makes it harder to read indeed. Small underlined titles are harder to read than the abstracts. That's not how a title should be ^^
@FlyingGambit the standard ubuntu terminal's look can be customized (font, colors, etc.)
06:43
I tried those and I am still not able to get it to a comfortable place
And one of the things that annoy me ( but I feel thats personal preference) is that last design had such a soft contrast on everything , while this one punches me in the face as soon as I open the page. Even the main title is HUGE and BOLD, check it out developer.mozilla.org/en/docs/Web/JavaScript/Reference/…
@Paran0a Yes, this is tiring for the eyes, this constant adaptation you have to make between so different sizes just like having to switch from white over black to black over white
That's not just about personal preferences, it's like basics of ergonomics
"Constant adaptation you have to make between different sizes and colors" Yep , that's pretty much it. Back to w3 👰🏾
07:02
just installed windows' creators update
and when launching PS I got
Windows PowerShell
Copyright (C) 2016 Microsoft Corporation. All rights reserved.

 Hi master!
 Navigating to <omitted>...
Loading personal and system profiles took 600ms.
the last line is a nice addition, but useful ?
Master?
@KarelG Microsoft likes it kinky
brb downloading the update
Windows-chan best servant
@FlyingGambit that 2 sentence with space is from myself :P
I load powershell with predefined functions because I do some commands very often like deployment
i simply invoke "deploy" and it checks which project and target to do. Then it's easy to input with option ID's. The script does the rest
@KamilSolecki I'll throw you a bone
07:10
Bark!
You can assume that placeholders are always full path segments, there can't be /users/profile-:id or some such
Given that, you don't need a regexp.
@MadaraUchiha yea, Robert hinted me yesterday towards the fact that URL lib has stuff to handle that nicely
@KamilSolecki While that's true, you can go simpler.
Hm, I guess.
I have an internal fight to not tackle this at work
Heh, that's fair
Dunno if I mentioned this already @KamilSolecki, but writing this router (without the HTTP part, just provide a callback and call it with the parameters) is the last (and hardest) interview test we have at our company.
07:17
Yeah, you did. That makes me even more eager! :)
what router :O?
@Proxy Write a router with two methods: .add(urlPattern: string, callback: (params: {[param: string]: string}) => any): void and .match(url: string): any.
// Used like this:

const router = new MyRouter();

router.add('/users/:id/profile', params => console.log(params.id));
router.add('/admin/:name', params => console.info('hello', params.name));

router.match('/admin/madara'); // logs 'hello madara'
router.match('/users/1234/profile'); // logs 1234
router.match('poo'); // nothing
Oo yay, I love routers.
@MadaraUchiha Just GET?
@BenFortune There's no HTTP involved in this one
Only callbacks.
07:28
@KamilSolecki's does involve HTTP though
And in his case, just GET is sufficient for the purpose of the exercise
The idea is to understand routing, not necessarily HTTP
that is basically just loading part of the js application?
like you click on a link it loads the userlist without refreshing the page?
@Proxy Huh? No. It's a pure JavaScript exercise without any sort of extenral communication.
When you write JS on the server-side, you often use a ready-made router to match the URL of the request
I wanted him to write his own router before turning to already-built libraries and solutions, so that he can understand what he's seeing better when he sees it.
yeah i'm explaining myself bad
what i want to ask, its basically a single page js app that executes fucntion based on the url?
@Proxy No
The URL is provided as the argument to .match()
It doesn't look at external sources
It's a completely self-contained thing
yeah
i know
eh man
can you elaborate a bit more or give me an example app what needs to be done :P?
07:46
22 mins ago, by Madara Uchiha
// Used like this:

const router = new MyRouter();

router.add('/users/:id/profile', params => console.log(params.id));
router.add('/admin/:name', params => console.info('hello', params.name));

router.match('/admin/madara'); // logs 'hello madara'
router.match('/users/1234/profile'); // logs 1234
router.match('poo'); // nothing
poo.. POOOOOO!
i have seen that...
@Proxy Then I don't understand what's unclear
lets say in a real app
the admin name could be taken from an input element
@Proxy Ah
This sort-of-kind-of imitates what express does
The admin name would generally be taken from the URL, after a link got you to https://example.com/admin/whatever
07:53
@Neil 🖐💩
eh, a robot vacuum cleaner, Roomba memorizes your building plan by cleaning around and transfers it to the company so that they can sell it
@KarelG Roomba memorizes your building plan by cleaning around, then discards it and drives into the wall.
yeah that is what i was asking @MadaraUchiha
sorry for explaining myself bad
you are looking for an experience js developer or a junior one :P?
We're looking for a decent JS developer
@Tobiq You can also use String instead of null. Or anything. String.fromCharCode does not care what is this.
@KarelG want to come to my graduation in November?
08:05
it depends of the location
Bochum, Germany
@Sheepy He's suspended from chat for a few more hours
did he used caps again ?
@BadgerCat might be possible. It could be that I have to check for a room for one night
Suit him. I didn't read the history ahead enough. I now see he went into that bit discussion again.
yeah i assume so. what kind of question do you usually ask candidates?(well if i'm annoying il stop)
08:07
@Proxy I don't think I should be posting them on a public chat
But I assure you they are all things that any JS developer should know, and are all concepts that existed in JS for more than 10 years
Mainly this and event handling
i guess i will have to apply and see it for myself then :D
@Proxy You gonn relocate to Israel?
if i get the job
13 hours ago, by Tobiq
These ppl dont even understand my question
nah i'm joking i dont even know js to begin with
08:10
lol ... I already told him taht he comes up with a vague question
@KarelG No, his question was perfectly clear
a dense string ?
He wanted to know, given JS's UTF16 character encoding, what would be the most space-efficient way to store a string
What he neglected to explain was for what purpose he was doing it
Because there were better solutions, and he refused to listen.
well that's why I asked him for which purpose he wants to get that
apparently it's something for "keys" (object keys I presumed )
to do something with files
Yeah. I (and my baby) spend half an hour on him yesterday. He is stubborn. He can't shake his incorrect mental modal on js and encoding.
I had confident my short code would do what he wants and close the case. Too bad.
08:17
@KarelG He had a 64 byte GUID and he wanted to use it as key
I told him to use a hash calculated from the GUID, and he complained that hashing would mean losing information
And I bid him farewell and wished him luck with finding a collision in sha1 or sha256 or whatever
sha1 can have collisions :P
why did he not use the guid as key itself?
Memory constrains. Because, with 1 Million records, you could save like 5 MB RAM if you trim down the key size
It totally makes sense if you think about it
@KarelG That's what he wanted to do
But he wanted to encode the GUID in a way that would be more space efficient
@BadgerCat Is everyone invited? :D
Eh, would you use the RAM if you have to work with that amount of records ?
I prefer to use a db for that
08:25
I was kidding. The problem was self-made
It's probably some secrit project involving the blockchain
He's just obsessed. Self made +1
Or maybe he's working on the next big JS exploit
Which is a buffer overflow when using large keys into an object
thatsapenis.gif
morning ^^
08:54
Today is day 207 of the year
Soon it will be the infamous 256th day
what is in the 256th day?
Everybody is allowed to touch "the bits"
can anyone recomend good responsive slider with transition effects?
@EarvinNillCastillo programmer's day
found few, but didnt really liked them
08:57
@Neil *255
what is "the bits"
ohhh
how to celebrate programmers day?
@EarvinNillCastillo get wasted writing code :)
@KamilSolecki everyday wasted writing code @_@
> code drunk debug sober !
09:13
^^ For sanity, do it the other way :D ^^
man i cannot work when drunk
well at home
but i don't like working after a few beers like on friday evenings when they come out early
what is the difference between java and javascript ? just kidding :) hi
@HaJa Welcome to the JavaScript chat! Please review the room rules. Pleasedon'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.
@KarelG 256 actually. You made me check though
09:25
is the limit not at 255?
@HaJa "script"
256th day of the year
eh, just checked too... it's even an official day in russia
255 if you count from 0
yeah, day 0 doesn't exist :P
@KarelG I believe it originated in Russia
09:26
it is
or, was popularized there
The Day of the Programmer (in Russian: День программиста) is an international professional day recognized in many technology companies and programming firms, that is celebrated on the 256th (hexadecimal 100th, or the 28th) day of each year (September 13 during common years and on September 12 in leap years). It is officially recognized in Russia. The number 256 (28) was chosen because it is the number of distinct values that can be represented with an eight-bit byte, a value well-known to programmers. 256 is also the highest power of two that is less than 365, the number of days in a common year...
either of these two
gotcha check if i can make it as official day for my team
Would be cool :)
@KarelG its Sunday XD
or wait
Its wednesday.
09:28
it doesn't matter actually
Wednesday, I can confirm
if an official day is in a weekend, my personel are allowed to move it to a day of week
Doesn't matter in my case for sure..
eg if christmas is on saturday, they may move it to eg the monday after that (27th) and make it as "moved official holiday", giving them a free day
@KarelG but your team doesn't work 'officially' on sundays, do they.
09:30
@KarelG lucky for you
and your team
well, I meant those public holidays as "official days"
next month im 1 year in my job happy 1 year to me or not
lol
@EarvinNillCastillo first year as a programmer?
How do you like it? Just curious
@Neil yes.
I came at the company without proper endorsement due to the last programmer last day is earlier than my first day so all the programs were endorsed to the staff which is not that knowledgable in the programming
so for me my first year as a programmer is stressful yet enjoy
I came as my only knowledge is VB.NET and PHP with basic skills for querying db.
and now i learn how to use jquery and javascript.
ALSO there are lots of pending request waiting for me when I came. HAHA
Wohoo coffee break time
09:44
Hi All
anyone used forever? I had a doubt and I believe it's pretty straightforward but I can't seem to find the solution anywhere
I've been going to that same cafe almost every day
Maybe I should change
@sanketpahuja just post your question. If anybody will know, they will answer
forever logs logs <script|index> Tails the logs for <script|index>

I am not getting logs when I specify the script, index is working fine. If it's not possible to get logs from script, can I get index from script instead?
10:06
@sanketpahuja You're probably not using the right script name/path
@EarvinNillCastillo glad to hear it. Never stop learning and force yourself to try new technologies and you will be a very knowledgeable programmer
8:konnect sp$ forever list
info: Forever processes running
data: uid command script forever pid id logfile uptime
data: [0] QKlY /usr/local/node6103/bin/node /var/www/konnect/node/capp.js 75192 75193 /Users/sanket/.forever/QKlY.log 0:0:25:41.342
what should be the name of the script in this case, @OliverSalzburg
/var/www/konnect/node/capp.js or capp.js would be my first tries
But that is what is labeled script in the the command output you just posted ;D
10:24
😐 just done with my programming for an issue. The unit tests on my new functions succeeds while ... lots of other one suddenly turns red. It was green before I started.
You angered the little people inside your computer
@Neil thank you. yes im still reading about new technologies and what should i do with my career
forever logs capp.js
error: No logs available for process: capp.js

forever logs /var/www/konnect/node/capp.js
help: usage: forever [action] [options] SCRIPT [script-options]
help:
help: Monitors the script specified in the current process or as a daemon
@OliverSalzburg
One thing I learned as I went along was that nobody ever gets to be so knowledgeable that a programmer could solve a problem never before encountered
You just learn what tools have served you best for similar jobs in the past and you just do your best
a fast way to get a selected option-element in a select box is to use urSelect.selectedOptions[0]; buuuut IE doesn't support it.
10:35
isn't it possible to create and store a room id in db with socketio so that i can retrieve it later to get the users associated with that id?
@marukobotto No
Anyone here familiar with WebGL?
@OliverSalzburg then how will i create a group chat and retrieve it later so that the users can carry on chatting in it?
10:41
@OliverSalzburg any ideas? or some other alternative? I need to programmatically fetch the log file and make it available for download.
@marukobotto You are confusing. And you probably shouldn't be writing chat rooms if this is what you're struggling with
Why wouldn't you be able to store (roomId,userId) records ?
@sanketpahuja Seems to me as if it was an issue with your shell or something. It's been ages since I used forever, but you could also just give it a fixed name for the log file when you start your process
@rlemon browsing for wet lemons?
10:46
@OliverSalzburg that's an illogical answer.
@OliverSalzburg it even has a hole for something little wiener
@KarelG #sohot
-6
Q: tell me { i love jquery } this is true?

hamidreza nikoonianow react.js is popular in every where i know about most benefit of react for example the best idea is shallow DOM or virtual DOM but this is simply , you can do in pure javascript for example i have an element and i want select from DOM several time my idea is var myElement = $('#example');...

should you not take #sosourish ?
I have no idea what was the purpose or meaning of this question
(needs one more close vote by the way)
10:52
Free downvotes!
I only want to get a (numeric) hour from hh:mm:ss string and came up with something silly: (time && time.length > 2 ? +(time[0] + time[1]) : -1);

« first day (2475 days earlier)      last day (2697 days later) »