« first day (2633 days earlier)      last day (2331 days later) » 

@FélixGagnon-Grenier Yeah… good to remember that. Current outdoor temp: -26°C
 
When I got up this morning it was -30°C. Forecast is the same for tonight.
 
heh, don't get out :)
also:
2 days ago, by tereško
add more alcohol?
 
Definitely will be doing that. There's a bottle of Tequila aged for 3 years with my name on it.
 
1:06 AM
literally?
 
Before I took the wrapping off it, it literally did. :-D
 
Wes
1:19 AM
-30? :B that's serious cold :B
 
@Trowski do you ever do this youtube.com/watch?v=vgPH5Qz9tyI ?
 
@Danack I'm not from Wisconsin, so I'm not that crazy.
 
Wes
lol
 
I at least wear a T-shirt, that's just common decency.
Quick poll: Websocket or WebSocket?
Specifically for a PHP namespace, Aerys\Websocket or Aerys\WebSocket.
 
1:35 AM
Websocket
as it's a single word by itself
 
@Danack Most places I see it written as WebSocket, but yeah, for namespace purposes I suppose it's a single word.
 
people used to write 'E-Mail'
 
heh
So I've probably re-written a quarter or more of Aerys in the last week :-P
 
Wes
i like WebSocket :B
 
2:06 AM
@Wes So does PhpStorm, no green underline.
 
Wes
:P
 
 
1 hour later…
Wes
3:08 AM
i hate like 1kg of walnuts in the past 10 days. i'm not ok
 
 
1 hour later…
4:13 AM
Can someone tell me what this code is doing step by step
function onLogin($user) {
    $token = GenerateRandomToken(); // generate a token, should be 128 - 256 bit
    storeTokenForUser($user, $token);
    $cookie = $user . ':' . $token;
    $mac = hash_hmac('sha256', $cookie, SECRET_KEY);
    $cookie .= ':' . $mac;
    setcookie('rememberme', $cookie);
}
Then, to validate:

function rememberMe() {
    $cookie = isset($_COOKIE['rememberme']) ? $_COOKIE['rememberme'] : '';
    if ($cookie) {
        list ($user, $token, $mac) = explode(':', $cookie);
        if (!hash_equals(hash_hmac('sha256', $user . ':' . $token, SECRET_KEY), $mac)) {
 
4:30 AM
@ircmaxell Sir, I have few doubts regarding your approach to keep me logged in? Could you clear them up, I am asking for help because I have already exhausted all other sources, and did research first on my own
 
5:24 AM
oooooooohayoooooou
 
user7190782
5:47 AM
hi
 
user7190782
is there any body here
 
6:06 AM
@SaitamaSama if you need anime ask me later
 
:P kk
 
7:02 AM
I sent a ticket to [vultr](www.vultr.com) (VPS provider) and told "I don't have neither Paypal nor any Credit Card, is there another option?" And they answered "If you are based in an embargoed country, we will have no choice."
Well I'm from Iran, yes, but I'm a human, right? What's wrong with me as a developer :-(
 
7:16 AM
hello
every chatroom I have been to has been filled with idle people
 
7:28 AM
posted on December 31, 2017

New Cyanide and Happiness Comic

 
Ferrari?
 
Wes
lamborghini
 
gah
btw did you see my sailor moon esque sketch yesterday?
 
porsche
 
Wes
i don't like german cars
@SaitamaSama nop
sailor moon sigh. you are worse than i thought :B
 
7:52 AM
14 hours ago, by SaitamaSama
@Wes https://sketchtoy.com/68471218
 
Wes
sigh :B
start by copying an existing picture
 
:P
@Wes will try
 
Wes
divide the picture mentally in squares
 
tho, drawing with mouse is a PITA for me
 
Wes
the grid helps you with proportions
 
7:54 AM
mmm
 
Wes
also with fewer squares tho
 
8:18 AM
@Wes Did you draw that with a mouse or a pad?
 
Wes
mouse
 
Dude, you're a god :o
 
Wes
sketchtoy.com/68469509 there was this one too :B
copying images doesn't take much effort tbh, drawing from your head is much harder
not only i would forget tons of details, but i would likely fuck up proportions
and i'm not even trying to do that :B
 
 
1 hour later…
9:25 AM
morning
 
 
2 hours later…
11:08 AM
Hello
I want to enforce mysql application to ask the user from the password how to do that?
 
11:39 AM
@JavaFan hello. we'll need more info. What have you tried already?
 
morning guys !!
 
11:57 AM
morning
 
Wes
i'm playing risk online. and i'm full hardcore already
insulting everyone etc :B
 
@Wes wat?
 
0
Q: Enforcing mysql application to ask loggining user from name and password

JavaFanI work with xampp apache server. so when I log in mysql.exe application I log without application asking from username and password and I log as root user . How to enforce mysql application under xampp\mysql\bin to ask user from it username and password when he tries to login.

 
@Wes it runs on flash :<
 
Wes
12:06 PM
yeah
 
@JavaFan you're using mysql command from command line and you want it to ask for password?
 
yeah
@andho
 
Wes
pogo.com/friend/join.do?sn=bobolollo11 @SaitamaSama in case you want to play
there's also monopoly
 
hmm
 
@JavaFan you need to set a password for the root (or whatever) user. dev.mysql.com/doc/refman/5.7/en/set-password.html
 
Wes
12:15 PM
you can use a disposable mail for subscribing in case :B
like guerrillamail
 
@Wes woah, thanks ^^
I probably need to open it in chrome
 
Wes
im almost ragequitting already lol
can you play monopoly? @SaitamaSama
 
nope, already forgot how to play it :B
 
Wes
ah, there are ads though
they are annoying af
 
MariaDB [mysql]> SET PASSWORD FOR 'root'@'localhost' = PASSWORD('mypasswordl');
ERROR 1290 (HY000): The MariaDB server is running with the --skip-grant-tables option so it cannot execute this statement
MariaDB [mysql]>
@andho
 
Wes
12:26 PM
@SaitamaSama mortgage is when you are running out of money
 
mmmokay....
 
Wes
so now just do end turn
 
@JavaFan your mariadb server shouldn't be running with --skip-grant-tables unless you're trying to reset the root password or something. If that's what you're trying to do, follow this article: dev.mysql.com/doc/refman/5.7/en/resetting-permissions.html
 
Wes
now green is going to ask you to buy
but don't sell
 
alright
 
Wes
12:28 PM
otherwise he's going to make houses there
because he has 2 of 3
if you sell him the third one they can build
lol
did you leave? ahaha
 
I'm out
 
Wes
wanna play risk?
 
what's that?
 
Wes
only if you know the rules...
 
guess I'm going to pass
 
Wes
12:30 PM
the greatest game ever... if you weren't 16 you would know :B
 
I'm going through this atm: wikihow.com/Play-Risk :P
 
Wes
download domination risk for android (publisher is yuranet)
and learn by playing
it doesn't take much to learn
 
okay then :)
 
@SaitamaSama Risk is amazing
But a decent game takes hours
 
12:39 PM
Interesting. I never knew about this game.
 
Wes
@MadaraUchiha wanna play?
 
I'm at work right now
But generally? Sure
 
Wes
:B
longest game played? :B
i think once we played for like 15 hours straight lol
 
@Wes wat, really?
 
12:44 PM
@SaitamaSama Yeah, sounds about right
 
Wes
yeah if the level is high you can continue forever. it only depends on luck
 
I'd go insane if I'd have to play a game for >2 hours straight
 
Wes
we did go insane indeed
 
Actually, building a Risk client/server for web could be a fun project to undertake
 
Wes
most games ended with someone surrendering, even if they don't needed to
 
12:46 PM
@MadaraUchiha hmm, would that require any sort of knowledge about the game?
 
@SaitamaSama You'd need to know the rules
 
Wes
only if you want to do ai
 
In order to implement them
But you don't need to be good at the game to implement it, no.
 
ohokay
 
Wes
might be a nice project
 
12:47 PM
seems like a project I could do after my tests are over
 
It's a simple game rule-wise
 
Wes
i don't know the infantry/artillery/cavalry cards count though
 
@Wes Those are easily discoverable
 
Wes
and the objective cards i don't remember them all
 
The objective cards can be safely ignored in normal gameplay
There's the "Secret Mission" mode, but I've actually never played that.
There are 42 marked cards, as well as 2 wildcards
So 14 each
 
Wes
12:50 PM
i only played the objective mode
never "death match" or whatever it's called
but actually, i have the actual game somewhere
it's almost as old as me :B
20+ years for sure
 
I owned in deathmatch mode. The trick in these games is to not play the strat that benefits you, but the strats that screws with everyone else's
 
Does we need to pass keep me logged in cookie with every request
along session cookie
 
@MadaraUchiha I got a sharpshooter Hanzo PoTG today
 
1:06 PM
@SaitamaSama :o
Capture, upload, share
 
alright... would do in a couple of hours
:B
 
Can someone answer my query
 
@SurajJain if someone wants to, they will
 
Wes
@MadaraUchiha lol
also in objectives, you focused on the objective only towards the end
before that you need to make sure that nobody has territorial hegemony on the map in its entirety
 
this is one of the best ed's I've ever heard
 
1:24 PM
If someone need, as i see talking of anime, high quality naruto episode they can ask me
I have collected best I mean best available naruto episodes with very very high quality subtitles, and I could be happy to provide you all this
PS: By naruto I mean naruto and naruto shippuden
 
Wes
i think i'm going at a festival/concert tonite. #foreveralone
 
Wes
1:39 PM
just kill me already
 
that song was english tho
 
@SaitamaSama I really like the OP of 魔法使いの嫁 youtube.com/watch?v=yq6VhQGz-no
 
@DaveRandom WinRAR \m/
 
Mahoutsukai no Yome is <3
 
1:42 PM
@NikiC have you watched the show as well?
 
@SaitamaSama yes
 
did you like it? :B
oh, I had a comment posted on that video as well youtube.com/…
personally I loved it as well... kinda lost interest in the show after I marathon'd the whole manga and got ahead of the ongoing narrative
 
user1804599
All the parser generators are written in C or JavaScript. :(
 
@rightfold we recently did github.com/ircmaxell/PHP-Yacc
2
 
user1804599
OMG
 
1:49 PM
It's a bit of a mess tho, because semi direct port from C code
@SaitamaSama yeah
 
\o/
 
Wes
@SaitamaSama you can't understand :B
 
I think I found my wallpaper
 
Wes
lemme guess, it's an anime
 
Wes
1:57 PM
HAPPY NEW YEAR ROOM 11
nobody did that..
 
which tz are you in?
 
Wes
central europe
it's 15:00 here / 3 PM
 
so.... how the in the world is it NEW YEAR yet? :B
 
2:17 PM
New Zealand and parts of Australia are already in 2018
So happy new year to them
 
And to the English cricket squad, preparing for the 5th test on Wednesday
 
Wes
@MadaraUchiha so yeah, turns out this one is much harder lol sketchtoy.com/68472721
 
Wondering if there's any efficient way of inserting entries into an array in an arbitrary order, but so that they're easily retrievable ordered by key (wthout resorting to alternative datastructures like a heap)... I know that I can ksort, but want to try and avoid that overhead if I can
 
8Ɩ0ᄅ ¡ɹɐǝʎ ʍǝu ʎddɐH
9
 
2:31 PM
@MarkBaker in PHP or C?
 
@MarkBaker There we go, now they can read it.
 
PHP
 
ahahaha
 
Wes
sketchtoy.com/68472739 @MadaraUchiha i see the resemblance, but something is wrong
 
SPLHeap is a one-off use, making it less than useful
 
2:33 PM
@Wes Nose too large
 
Wes
spl heap is useless
 
@MarkBaker your keys are known beforehand?
 
Keys aren't known beforehand unfortunately, I'm loading unordered data and need to order it, but volume-wise, ksort is an overhead; I'm using it at the moment, but would prefer to avoid it if I could
 
Wes
how aren't keys known beforehand?
 
@MarkBaker I know of no datastructure able to do that in less than O(n log n) as you are effectively sorting your data there
and sorting is by what we know an O(n log n) operation
 
2:42 PM
Data is read from an arbitrarily-ordered file, split into key an value based on the data in that line
 
yeah, then your only realistic option is the ksort()
 
Other than using a fixed array, where I can inject directly to a set position in the array based on the key value, but that's not memory efficient, especially with lots of holes in the fixed array
And requires converting the string key to a numeric value
 
.. linked list?
 
Wes
no @FélixGagnon-Grenier :B
 
@MarkBaker well … is the key range known?
 
Wes
2:47 PM
@FélixGagnon-Grenier @MadaraUchiha sketchtoy.com/68472785 better?
you can skip to the end image by dragging the seekbar
 
well, building on the "inject directly to a set position in the array based on the key value" but without the "lots of holes in the fixed array", one can get to a linked list, that would offer its values in sorted order, but add a small overhead on insertion, yes?
I think I understand some of the words I'm using.
20 mins ago, by Mark Baker
PHP
oh well. Let's jump directly to the Happy New Year™ part of today's program then, shall we?
 
@MarkBaker I.e. is maxkey - minkey == sizeof(array)?
 
Wes
3:10 PM
final version. i'm tired :B sketchtoy.com/68472828
 
3:21 PM
0-255 for the key range with the work I've just done, I've been refactoring my Trie classes; but with what I'm looking at now, it's a much wider range, with RadixTries
I suspect I can't really avoid the ksort, but was idly wondering if there was any alternative
 
What are you using tries for?
Especially in PHP, it's a structure of questionable utility
 
Wes
@MarkBaker sparse array, hash map?
converting the string key to numeric value should be possible.... although i have no idea how to do that properly :B
 
It does have its uses, although "loading" the trie is inherently slow and needs to be redone every request because of the lack of persistence in PHP; but they're still highly efficient for searching
But I've been coding all my existing datastructure libraries for PHP7 over the holiday break
 
@MarkBaker How and what are you searching in them?
 
That varies.... postcode lookups on an outcode, lists of rugby players through the ages, dictionary words ending in *tch (cheating at Pointless words rounds)
But more practical using them for anything where the data is dynamically retrieved from external sources where loading the data into a database is slow and will be out of data on the next request
 
3:46 PM
@ircmaxell hey, long time no speak, I have a design question about testability and I'm stuck on and I think you'll know what to do - if you have a minute lmk.
 
Wes
@BenjaminGruenbaum why don't you ask even if ircmaxell is not here? i like interesting questions :P if it's something you can ask publicly...
 
Honesty it's a lot of context and I think it'll take him 1m to answer while it'd take the rest of you quite more. You're all competent, but having read Anthony's blog - I know he's likely spent time thinking about it already - so it'd take me longer to explain it to anyone else around the SE chat than it'd take him to answer it.
In a gist - it's about module dependencies and the right approach to testing something in principle.
It's a complex chain of dependencies, I feel there is a "right" solution but I'm not sure what it is.
I'd mail him, but I don't like bugging people in the holiday season
 
> Don't ask to ask, just ask.
Even if he has time to answer.....how can he without the actual question.
 
Wes
testing is hard, is all i know :P but if you feel you want to discuss it or at least use me like a rubber duck, i'm around
hey dan, happy new year
 
@Wes thanks, happy new year to you too. I got slipper socks for christmas.....they're frigging awesome.
2
 
Wes
3:58 PM
lol
 
Happy New Year, minna-san
 
Happy New Year everyone!
 
Wes
\o/
 
Happy new year :)
 
4:10 PM
 
Ugh, it's still -29°C outside.
 
lame weather lol
 
@SaitamaSama Boo, mine is without a watermark :D
 
4:18 PM
pretty much.
 
Happy New Year!
2
 
 
1 hour later…
5:38 PM
lol
6
 
Wes
secure.
¯\_(ツ)_/¯
 
yeah, if that's what the client wanted, other than trying to convince him of the security flaws, not much else can be done...
 
artisanal
 
unless the developer comes up with a way to differentiate between users
 
Wes
s/artis//
 
5:41 PM
idiotic
 
Wes
2 upvotes even
 
cause laravel
 
Anonymous
ow
 
I like how your hat isn't properly centered @SaitamaSama
 
Wes
5:46 PM
damn no preview
 
I have glasses now too
 
Wes
 
they showed up for me
 
Wes
:D
 
I DONT HAVE GLASSES
/ME WANT
 
5:48 PM
no idea how I got them
like most hats during this event
 
@StackOverflow do something about this
 
6:01 PM
Evenings
Happy new year room 11.
Make php more better this year ^^.
 
it's almost new year, and I'm still sitting and watching animes
;-;
 
Anonymous
@SaitamaSama what is wp?
 
Anonymous
ow speak
 
ggwp -> good game, well played
also some of the things that you need to know is BM'ing, as in teabag-ing an enemy hanzo or genji when you kill them
and when you sleep dart someone with Ana, never forget to teabag as well
 
Anonymous
hmm
 
Anonymous
6:15 PM
thanks
 
6:31 PM
HAPPY NEW YEAR ,LADS, from GMT+5:30
 
Anonymous
Not yet lazy :)
 
Still 5½ hours to go for some of us, but happy new year for your timezone
 
Nite all
 
 
1 hour later…
7:52 PM
 
I have ten hours
 
8:20 PM
3 more here.
And HNY who ever need it. ^^
 
8:45 PM
sup @rlemon
let me guess, someone flagged that anime new year?
 
no, just rejoining my rooms
 
 
2 hours later…
10:27 PM
@tereško I fucking suck at sand and sanctuary. I hope 2018 will be better.
 
10:44 PM
dunno .. I might be a bug in the code (of the genetic variety)
 
11:25 PM
@tereško as in... you l33t the shit out of the bosses?
 

« first day (2633 days earlier)      last day (2331 days later) »