« first day (2633 days earlier)      last day (2540 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.
01:06
literally?
Before I took the wrapping off it, it literally did. :-D
Wes
Wes
01:19
-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
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.
01:35
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
Wes
i like WebSocket :B
02:06
@Wes So does PhpStorm, no green underline.
Wes
Wes
:P
 
1 hour later…
Wes
Wes
03:08
i hate like 1kg of walnuts in the past 10 days. i'm not ok
 
1 hour later…
04:13
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)) {
04:30
@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
05:24
oooooooohayoooooou
user7190782
05:47
hi
user7190782
is there any body here
06:06
@SaitamaSama if you need anime ask me later
07:02
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 :-(
07:16
hello
every chatroom I have been to has been filled with idle people
07:28
posted on December 31, 2017

New Cyanide and Happiness Comic

Ferrari?
Wes
Wes
lamborghini
gah
btw did you see my sailor moon esque sketch yesterday?
porsche
Wes
Wes
i don't like german cars
@SaitamaSama nop
sailor moon sigh. you are worse than i thought :B
07:52
14 hours ago, by SaitamaSama
@Wes https://sketchtoy.com/68471218
Wes
Wes
sigh :B
start by copying an existing picture
:P
@Wes will try
Wes
Wes
divide the picture mentally in squares
tho, drawing with mouse is a PITA for me
Wes
Wes
the grid helps you with proportions
07:54
mmm
Wes
Wes
also with fewer squares tho
08:18
@Wes Did you draw that with a mouse or a pad?
Wes
Wes
mouse
Dude, you're a god :o
Wes
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…
09:25
morning
 
2 hours later…
11:08
Hello
I want to enforce mysql application to ask the user from the password how to do that?
11:39
@JavaFan hello. we'll need more info. What have you tried already?
morning guys !!
11:57
morning
Wes
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
Wes
12:06
yeah
@JavaFan you're using mysql command from command line and you want it to ask for password?
yeah
@andho
Wes
Wes
pogo.com/friend/join.do?sn=bobolollo11 @SaitamaSama in case you want to play
there's also monopoly
@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
Wes
12:15
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
Wes
im almost ragequitting already lol
can you play monopoly? @SaitamaSama
nope, already forgot how to play it :B
Wes
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
Wes
12:26
@SaitamaSama mortgage is when you are running out of money
mmmokay....
Wes
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
Wes
now green is going to ask you to buy
but don't sell
alright
Wes
Wes
12:28
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
Wes
wanna play risk?
what's that?
Wes
Wes
only if you know the rules...
guess I'm going to pass
Wes
Wes
12:30
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
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
Interesting. I never knew about this game.
Wes
Wes
@MadaraUchiha wanna play?
I'm at work right now
But generally? Sure
Wes
Wes
:B
longest game played? :B
i think once we played for like 15 hours straight lol
@Wes wat, really?
12:44
@SaitamaSama Yeah, sounds about right
Wes
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
Wes
we did go insane indeed
Actually, building a Risk client/server for web could be a fun project to undertake
Wes
Wes
most games ended with someone surrendering, even if they don't needed to
12:46
@MadaraUchiha hmm, would that require any sort of knowledge about the game?
@SaitamaSama You'd need to know the rules
Wes
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
Wes
might be a nice project
12:47
seems like a project I could do after my tests are over
It's a simple game rule-wise
Wes
Wes
i don't know the infantry/artillery/cavalry cards count though
@Wes Those are easily discoverable
Wes
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
Wes
12:50
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
13:06
@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
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
13:24
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
Wes
i think i'm going at a festival/concert tonite. #foreveralone
Wes
Wes
13:39
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
13:42
@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
13:49
It's a bit of a mess tho, because semi direct port from C code
@SaitamaSama yeah
Wes
Wes
@SaitamaSama you can't understand :B
I think I found my wallpaper
Wes
Wes
lemme guess, it's an anime
Wes
Wes
13:57
HAPPY NEW YEAR ROOM 11
nobody did that..
which tz are you in?
Wes
Wes
central europe
it's 15:00 here / 3 PM
so.... how the in the world is it NEW YEAR yet? :B
14:17
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
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
14:31
@MarkBaker in PHP or C?
@MarkBaker There we go, now they can read it.
ahahaha
Wes
Wes
sketchtoy.com/68472739 @MadaraUchiha i see the resemblance, but something is wrong
SPLHeap is a one-off use, making it less than useful
14:33
@Wes Nose too large
Wes
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
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
14:42
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
Wes
no @FélixGagnon-Grenier :B
@MarkBaker well … is the key range known?
Wes
Wes
14:47
@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
Wes
15:10
final version. i'm tired :B sketchtoy.com/68472828
15:21
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
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
15:46
@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
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
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
Wes
15:58
lol
Happy New Year, minna-san
Happy New Year everyone!
Wes
Wes
\o/
Happy new year :)
Ugh, it's still -29°C outside.
lame weather lol
@SaitamaSama Boo, mine is without a watermark :D
16:18
pretty much.
Happy New Year!
2
 
1 hour later…
17:38
lol
6
Wes
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
Wes
s/artis//
17:41
idiotic
Wes
Wes
2 upvotes even
cause laravel
Anonymous
ow
I like how your hat isn't properly centered @SaitamaSama
I have glasses now too
they showed up for me
Wes
Wes
:D
I DONT HAVE GLASSES
/ME WANT
17:48
no idea how I got them
like most hats during this event
@StackOverflow do something about this
18:01
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
18:15
thanks
18:31
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…
I have ten hours
20:20
3 more here.
And HNY who ever need it. ^^
20:45
sup @rlemon
let me guess, someone flagged that anime new year?
no, just rejoining my rooms
 
2 hours later…
22:27
@tereško I fucking suck at sand and sanctuary. I hope 2018 will be better.
22:44
dunno .. I might be a bug in the code (of the genetic variety)
23:25
@tereško as in... you l33t the shit out of the bosses?

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