« first day (2610 days earlier)      last day (2354 days later) » 

12:34 AM
@tereško ignore the email. Having Ghost issues.
 
Wes
youtube.com/watch?v=8hrPWrgSRM8 not sure why i'm doing this to myself
i blame youtube
@Jeeves suggest me a movie
 
@Wes The Hitchhiker's Guide to the Galaxy.
 
Wes
@Jeeves suggest me a different movie
 
@Jeeves suggest Wes a different movie.
 
@Wes Shawshank redemption is very good.
@Fabor Ummmm how about Blade Runner?
 
Wes
12:38 AM
@Fabor jinx?
 
Mine is better formatted though -_-. Grammar heathen.
 
Wes
@Jeeves seen them all. suggest a more recent movie
 
@Wes Then you've read the book?
 
@Jeeves Can you fetch me a banana?
 
Wes
i've read hitchhiker yes :B
 
12:39 AM
@Fabor Yes, master gets master a drink.
 
Wes
@Jeeves do you like the new thor movie?
 
@Wes With you around, I'd prefer to be fumigated.
@Wes No that's not possible! :) love you more.
 
Wes
did he answer me twice?
it's a bug!
 
!!error
 
It's @PeeHaa's fault
 
12:52 AM
New One Punch Man
 
Wes
are you suggesting me to watch that? :B
 
It's a manga, so nope.
Go watch The Punisher
 
Wes
animes are not for me
the tv series? i'd probably dislike it
since i dislike daredevil, arrow, agents of shield
god they are awful
maybe i have become a pain in the ass boring fuck, but when i search for movies i get those top 100 movies of 2016 lists and i read first place "mad max" i just close the page
second best movie of 2015 "creed"
 
Arrow and AoS was not good.
 
Wes
"the martian"
 
1:00 AM
Daredevil the nextflix version?
 
Wes
how can people like the martian. it was an absolute piece of shit
yes that
also the revenant
another shit movie that everybody liked for some reason
 
Watch The Departed
 
Wes
of course i've already watched it
 
Well what films do you like
 
Wes
any genre really, except the stupid genre
how is bridge of spies?
 
1:04 AM
ascii shrug
Watch Stranger Things
 
Wes
also watched
8th best movie of 2016 according to this list, is the movie about amy winehouse
what the fuck is wrong with the world
 
Watch Narcos
watch Mr. Robot
 
Wes
mr robot watched
not sure if i still like it
 
Watch Friday
 
Wes
what's that
 
Wes
not sure if i'm in the mood for this kind of stuff :B
 
Sherlock
 
Wes
the tv series?
 
Yeah
 
Wes
i think i'll drink myself to the bed watching some shitty history documentaries
thanks for trying tho :B
i don't like anything
it's all shit
 
Wes
why serial killers :B
 
Why not
Ooh actually
watched "Mind Hunters"?
 
Wes
i prefer history ones, especially if history is at least a 1000 years old
nope, what's that
 
Netflix series about the start of the BAU
If you like nitty gritty, True Detective is good too, season 1
The Killing < also good.
 
Wes
ah i have the man in the high castle to watch
do you watch that one? it's been good so far
 
1:20 AM
Negative
 
Wes
it's very mysterious. it is a story in the world after ww2 but the nazi germany won it
but there's a but... i don't want to spoil it to you :B
 
Worth?
 
Wes
i think. it is intriguing that strange things happen and that it's not clear what they are or they mean
drama, sci fi, historical, fantasy. i can't tell yet what's it about
mind hunter seems nice tho
netflix has way too many series
and they mostly suck
 
1:44 AM
Yeah, they used to be quality over quantity, but I think they still have enough good ones that it's ok
@Wes Mindhunter was good, I guess you haven't finished it yet based on how you said that?
 
Wes
watched the trailer only :B
 
@Wes Rectify this
 
Wes
?
 
watch the series bruh
 
Wes
just watched the trailer for pacific rim 2
clearly they've ruined it
i hate everything
/me feeds cats + starts high castle
 
2:03 AM
Good LAWD the game "Getting Over It" is frustrating.
 
 
2 hours later…
3:39 AM
Hello Dereleased
@Dereleased hi
 
Segmentation fault with NextGen Gallery – #75651
 
4:03 AM
@JavaFan hey
 
good evening
you have promised me to talk about some websites security issues @Dereleased
 
What timezone are you in?
 
you might need to sleep
6 am
@Dereleased Do you go to sleep?
 
There are some people getting on who can help. All I wanted to do was tell you about a few more kinds of vulnerabilities for you to watch out for. Have you heard of OWASP (specifically the OWASP Top 10)? That was all I was going to cover
but yes, it's 11, about time to start heading to bed
 
@Dereleased I need also to know about SSL true?
 
4:13 AM
Who is your host?
Or are you self hosted?
 
Apache
 
Do you own the server or are you going through a hosting company?
 
no
I am going through a hosting company
 
they may have a guide for setting up SSL
 
@Dereleased but please a question in my mind from long years
 
4:15 AM
yes?
 
what hardware and software I need if I want to own a hosting server?
normal pc?
@Dereleased
Can normal pc achieve the task?
 
yes
not advisable for a business, but for a personal project or just to learn how to set up and maintain a server, no problem
Honestly, you can turn pretty much any computer running Windows, OS X, or Unix/Linux/BSD/etc into a web server in about 5 minutes
 
great
if I have mysql database on another server how I can update it from my location ?
@Dereleased
 
As long as you can access that server, you just need to set up your user for access
say your web server has an IP of 10.2.2.2
GRANT SELECT[, other privileges] TO 'dbuser'@'10.2.2.2' ...
 
thank you
 
5:16 AM
morning
 
mornjoe
 
5:33 AM
o/
BTW ! Good Morning R11!!!
Have a fabulous Friday!
 
!!friday
 
 
2 hours later…
7:40 AM
mornins
 
8:01 AM
o/
 
\o
 
o/
 
8:18 AM
\o
o/ bye all
 
mornin
 
o/
 
hallo
 
8:53 AM
I made dis
The legs are kinda malformed tho :B
@Wes ^
 
@SaitamaSama Practice practice practice
 
:P yeah!
 
hello All,
 
the legs are supposed to be like... the girl is tip-toe-ing
 
hallo all,
I want to ask when I submit the form through ODK(open data kit) app. then the submitted result should be automatically update in our website
 
9:04 AM
I am trying to execute PHP function gethostbyaddr() from 192.168.1.1 to 192.168.1.255 to get host name... but I am getting execute time exceeded 30seconds. Is there any solution where I can set timeout to this function ? please help.
 
@NeerajDhekale 192.168.1.255 does a broadcast ping
just continue the loop if the counter variable equals 255
 
ok upto 192.168.1.245 if there is ping for say 192.168.1.2 it get stuck there
and if 192.168.1.2 is not using anyone...
PHP execution stucks there itself.
is there any solution where I can set timeout to this function.?
 
can anyone help me out in this There is insufficient memory for the Java Runtime Environment to continue.
 
@Linus -Xmx
 
hmmm ... before Tumblr-generation, people like this would have been sent to talk to a medical professional
 
9:14 AM
@JoeWatkins should i give more memory to jvm using that?
 
yes
@NeerajDhekale not for that function, it calls library gethostbyaddr at C level ... write your own function, or use one that someone else wrote (which can set socket timeout) ...
 
moin
 
9:33 AM
moin
 
I was just wondering if I could `array_map()` a class constructor, then I found this in the Google results:
https://why-cant-we-have-nice-things.mwl.be/requests/callable-constructors
By @Danack
 
why can't we have multiple constructors :p
though you can do a lambda where you just do return new Thing()
 
gawd, I'm such a bad genji
 
mada mada
Shimada-mada :p
 
9:47 AM
do you need healing? (:
 
I require healing, (tho I'm 199/200 hp)
 
didn't play this hero seriously
 
I used to do great at genji in console... but PC is much harder for Genji
 
console.. console... ha (:
 
@AlmaDo Yeah. That's what I'm currently doing.
 
9:49 AM
@jjok use a static factory method ("named constructor")
 
PC is just harder in general. you were.. say.. master in console? that would be plat in PC or even worse :D
 
@AlmaDo use a static factory method ("named constructor")
:-P
 
I was high diamond, one season, and that's about it
 
@DaveRandom if the intent is to call __construct() then I have bad news for you (:
 
I used to hang around low diamond, and high plat at other times
 
9:50 AM
Hi every1
 
Morning 11
 
@DaveRandom Yeah. I was thinking I might do that.
 
The new operator has a purpose and a semantic meaning, which is "allocate some memory to store an instance of this class and return a pointer to it"
 
@AlmaDo one of my nicer, but early game plays: xboxdvr.com/gamer/WidowPlaysHoe/video/34842537
 
9:51 AM
@SaitamaSama PC? high dia isn't bad
 
I realise that PHP != C++ but regardless, that's what new means
you can't just abandon it wholesale, but you can decorate it
 
If this is OW I couldn't get out of plat, almost got diamond, then stopped playing ranked
Too much salt all around
 
Although I would also like method overloading
but I don't think it can ever work in PHP
 
ok, @DaveRandom why can not we have multiple constructors??!! :p
 
because PHP is just too ambiguous
 
9:52 AM
@AlmaDo no console
 
poor excuse man :p
@SaitamaSama ah.. console... I.. see :D
 
Should you always turn constructors private if you go down the named constructors route?
 
never say never
 
guys,i have a regex to extract a substring from a string like this 'Something,something more sector 3, bla bla'.I'm interested in substring 'sector 3' but there can be any other digit.The regex is preg_match("/\bsector[0-6]/i", $address, $sector); but the problem is that if my substring is like this 'sector6'(note that there is no space between digit and string anymore), it wont be extracted.I dont know what to add into my regex in order to cover this case too,any ideas?
 
it could have it, so long as some conditions were met ... strict types and typed parameters ...
 
9:53 AM
@Sean why?
 
@AlmaDo say I define __construct(int, int, string) and __construct(string, int, string), then I do new Foo('1', 2, 'three'). In strict mode and weak mode, what's the expected result?
 
@JoeWatkins but now it has? kind of..
 
@PeterCos /\bsector\s?\d/i
 
@DaveRandom in strict mode the second one is called. In weak mode you have an exception about method call ambiguity just like in Java
 
@Sean , yeah sry, i was just testing for up to 6
 
preg_match("/\bsector\s[0-6]/i", $address, $sector);
 
or forbid to define multiple constructors when weak mode is enabled altogether ..
 
@AlmaDo ftr there is only one sane answer to that question and it's the one you just gave, but that scenario is why it will never happen, because "people" will never reach a 2/3 majority agreement on it.
 
@DaveRandom re: rfc, I agree with double and real, but meh @ integer and boolean
 
Pop a question mark after your space
 
9:55 AM
forgot to add the \s
 
makes it optional
 
uhm,ok lemme try
 
That is my constructive feedback for the week
 
@Leigh I'm kind of in that camp as well, but I don't think you can reasonably propose one without the other
 
@DaveRandom hahaha... nope (: I remember the drama about scalar typehinting way too good :p
 
9:56 AM
also I have never once actually used the long-forms anyway
 
@Sean, awesome it work , i really need to read a beginner tutorial about regex .... anyway , thank u
 
No probs, regexr.com is your friend
 
For me (Learning with Pascal because I'm old), Real was a single. Double doesn't make sense without a single. We only have one type of float.
urgh, we still have (binary)
 
@Sean Not always. Only if you don't need the constructor (and you might have to make it public at a later point again)
 
@Sean, seems like \s? matches 0 or 1 space , but what if i have more than 1 space between?
\bsector[\s]+?[0-6] this work for more than 1 space, but the optional modifier no longer works..
 
10:09 AM
@PeterCos \bsector\s*[0-6]
 
^
+ matches 1-many, * matches 0-many
 
+? doesn't mean the same as *
it controls "greediness"
but in that expr it would have no effect
 
oh...
yep it work,than you ^^
 
^ that whole website is worth reading from start to finsih
 
Agreed, how I learned!
 
10:11 AM
also the PCRE docs in the PHP manual are pretty good/comprehensive
 
oki
 
morngin
 
@Sean I also actually bought a license for editpadpro, which is by the guy who runs that site, it's basically a competitor for N++, but it has an epic regex find/replace implementation. I still use it whenever I'm doing complex regex refactoring/codegen, it's way better than anything else I have ever used
 
@tereško it reads like a thriller (:
 
It's one of those "the flaw is in the other code ... genetic one" problems
 
foreach strange error – #75652
 
@jjok yeah....that one was annoying. People were against it because they don't need it right now themselves. As a work around, it's probably sanest to alter the composer autoloader generate a function per class loaded and eval it.
Can anyone recommend me a gaussian distributed random number library?
 
when eval() is the "sanest options", it's bad .. really bad
 
@Jeeves Another one bites the reference dust
 
@PeeHaa I like when you sing.
 
10:37 AM
@PeeHaa herp derp. Second foreach is overwriting the last element with each element in turn :D
 
Surely we have an example in the docs about it
 
Would you be a good guy and link OP to it @Leigh? My internet is slooow
 
I'm linking an example explanation
 
@PeeHaa My php.net password is in lastpass, and I need my 2fa token, which I don't have on me
 
10:39 AM
@Danack Have you got an example of that? I'm not sure what you mean.
 
@PeeHaa And yes, there is a big ol' red warning in the docs about references
 
@Danack php.net/manual/en/control-structures.foreach.php also link to the warning please <3
@Leigh Yep just crawled to it
 
And it covers this case exactly
 
Yep
I knew we just had to have it somewhere
How is your strict php coming along and did you remove references yet? :P
 
public function loadClass($class) {
        if ($file = $this->findFile($class)) {
            includeFile($file);
            $code = <<< CODE
    function $class() {
        // reflection magic goes here.
    }
CODE;
            return true;
        }
    }
@jjok changing the autoloader to be like that....
 
10:53 AM
@PeeHaa I like references, but I know how to use them..
 
@Leigh I think foreach by-ref should probably be removed. It was good in PHP4 where objects were by-val semantics, in PHP5 there is literally always a better way
It produces some proper head-fuck scenarios. Like, the guy who reported that bug is going to look at those fairly clear explanations and think "wtf?", and not unreasonably so
and that's a fairly simple one
 
There is almost always a better way
 
But I know I can avoid a hash table lookup if I don't have to foreach ($arr as $k => $v) { $k[$v] = ... }
 
But your brain is exposed out of your skull. So there is that
:P
 
I need to remove that lemon slice and straw, forgot about that
 
10:59 AM
@Danack Ahh. "reflection magic". That's the key. :)
 
@PeeHaa Looks like hybrid brain! Double then normal people! :p
@Leigh But yeah that's creative one :)
 
11:20 AM
@PeeHaa maybe it should just be undocumented :-P
I might do that to the weirdo casts, remove the docs then wait 10 years until everyone has forgotten they even exist. No RFC required!
 
If Wonder Woman and Spider-Man go into business together, they should call it Amazon Web Services.
 
@DaveRandom :P
 
@Patrick I got your email, sorry I haven't had a chance to take a look yet but I will
 
Anonymous
11:43 AM
!!wotd
 
dundrearies long, full sideburns or muttonchop whiskers.
 
11:55 AM
@James Change your name back immediately!
 
Anonymous
and let me know where you got that SO shirt @James
 
Wes
12:21 PM
morn
 
guys, how can i match a digit with leading 0 (it can be without 0 too) using regex?
i tried something like /[0]?\d+/ but no luck
this also matches : bla bla 23 bla bla
i want it to match only 03 or 04 and so on
uh,seems like this work [0]\d?
i've been using the wrong modifier
 
Wes
/^[0-9]{2}$/ but accepts 00, 24 25 26 ... 99
you can only validate the number of digits, not the actual number
 
doesnt match the digit in a string like this: Sector 3
 
Just use \d+
you don't need the character class (square brackets)
\d+ will match "1 or more digits"
it doesn't matter whether there is a leading zero or not
 
yeah but i want just the first digit after the leading 0
it will return the entire number if it is like this Sector 32424
 
12:33 PM
So for that you just want '3'?
 
So just use \d and leave it at that? No need for + or anything after it.
Oh wait I see
 
@Sean, using \d will return just 0 for Sector 03
 
You have an object who's responsibility it is to decide between a list of available strategies to use. What do you call it? Is this effectively a factory?
 
0?\d
 
@Leigh U no liek my name? :(
 
12:34 PM
@Sean 0*[1-9]
 
... yeah
 
@DaveRandom yes that. brain fart
 
but... why this didnt worked? [0]?\d
 
@James I don't like change.
 
ah, i just had one more ? at the end,that why
 
12:36 PM
@PeterCos can you explain what you are actually trying to do here? Why do you want only 1 digit?
surely you want the number
like for sector 054321 you want 54321
 
 
Also I'd totally (?:0?\d|\d\d)
 
the short story is, i got an address input which the user can type in whatever they wanted, but for a delivery service,it was important the sector info(which in my county there are 6),so in order to avoid further problem i gotta do a script which gets the 'sector digit' from the address field and match it with another table where are already predefined thsoe sectors
 
Oh just replace \d+ with [1-6] in the link above then I guess
 
definitely needs machine learning and a million or so hand-written addresses from users
 
12:40 PM
there are around 4000 addresses
 
don't forget jQuery
 
And erlang
 
🀢
 
has any one used site verification api of google?
everytime i verify i get permission insufficient
 
have you tried getting sufficient permissions?
 
12:42 PM
thats what i am trying to get
i dont knw where i did wrong
 
until now i found some addresses with the substrings like this Sector 3, SECTOR5,SECTOR 02, sector 01 . The regex you helped me build so far deals with those cases which are 3592 from 4000, still pretty good
 
@PeterCos 3v4l.org/ak9v4
The key part there is the (int) cast. PHP will ignore the leading zeroes while parsing an integer from a string.
 
@DaveRandom, uhm that looks good
 
You can do it with regex, but imho it is better not to for things like this, because it makes your regex harder to read, and conversely (int) is a lot more readable and explicit about what you are actually doing.
What you want is the sector number, which is an integer and should be treated as one
 
What if there isn't a sector! What if they specify a county like Jud. Brasov :thinking_face:
 
12:47 PM
screw those guys
 
@Leigh, this piece of code won't check counties without a sector
@Lei
 
Roger roger
Kind of surprised this isn't a solved problem, nothing on first page of google at least for parsing romanian addresses
 
@Leigh , yeah ik
 
Wes
@PeeHaa @JayIsTooCommon i am again disappointed by GT
 
damn
 
Wes
12:52 PM
at least they didn't stage gags tho
 
@Wes No surprise there
 
Wes
remember the home made caravans episode? the white citroen with the tower on top
the only thing i liked in season 1 is that they didn't interview special guests like they did in top gear... but now they are doing it. i had to skip it because i dont' give a damn about the guests
bah
i have renewed amazon for this :B
 
what's that?
 

« first day (2610 days earlier)      last day (2354 days later) »