« first day (2561 days earlier)      last day (2402 days later) » 
00:00 - 14:0014:00 - 00:00

12:14 AM
Need some help with a regular expression for matching strings separated by new line.
Input contains sizes ([width]x[height]) separated by new lines and I need to validate that the input is exactly this
test data: 100x100\n200x200\n300x300
^(\d+x\d+(\r\n|\r|\n)*)+$ seems to match it, but it also matches 100x100x400
 
12:31 AM
Mornings o/
 
12:53 AM
I see that this regex works: ^(\d+x\d+\b[\r\n|\r|\n]*)+$ where I added \b. Can someone explain why the other one doesn't work without word boundry?
 
1:06 AM
@MadaraUchiha haha :P all these junkenstein reddit plays :B
 
1:50 AM
I wish there was a Symfony/ZF for Node.
Sick of having to use tons of abandoned libraries whose authors think documentation belongs to a README.md.
 
2:35 AM
Morning
 
3:04 AM
o/
 
3:15 AM
\o
 
\o
 
 
1 hour later…
4:40 AM
o/
 
4:52 AM
\o
 
5:26 AM
Anyone use logstash?
 
I forgot.Happy friday all!!
 
7:04 AM
moin
 
mornin tereško
 
Watcha you playing these days @tereško?
 
Anno 1404, Mount&Blade and Civ5
 
Mount&Blade is on the console now, still need to give it a go on there
And Anno 1602 was my first and still by far (imho) the best Anno
Actual random maps
 
@Jimbo you need top play games on a real computer
and the game is so old, that it should run smoothly even on a oldish laptop
 
7:16 AM
@tereško Is why I'm looking at 1080 TI mini articstorm and NCase M1, although I'm really tempted to just wait off until we get a card that finally does 4k at 144hz and those new monitors
 
I know you can always keep waiting, but I'm just waiting for a baseline ultra 4k gaming experience at a decent frame rate
on a single card
 
I like my 3K setup :D
 
3
Q: backup files to google drive using php

mohamad mohamadI have a server and a domain name on godaddy I want to create a backup for my files to google drive all files and database have a copy on google drive I use PHP and mysql for my database After a research i found that and i did what he say backup to google drive I have downloaded this files ...

 
but I am unwilling to pay 250+ bucks for an enclosure
then again… I am also unwilling to repair my pc or buy a new one. I am fine with my thinkpad. I just want it to have decent graphics.
 
7:27 AM
Why my simple preg_match is not working? I have files named like Sähköpyörätuolin aloite2015.doc, säippä2015.pdf and Tammelin.pdf so the names can be like anything. And I am trying to catch only files which filename contains "ä or ö" letter. I did try with this, preg_match("/[ÄäÖö]+/", $file_name) but it is not working.
 
php > var_dump(preg_match("/[öä]/i", "Sähköpyörätuolin"));
int(1)
php > var_dump(preg_match("/[öä]/i", "no umlauts"));
int(0)
php >
@Arto works for me
 
So the problem is not on my code? Could the filenames be problematic? I am using osx. PHP does not give any errors...
 
try to add u (PCRE_UTF8) as a pattern modifier
 
@Arto possibly.
 
Okay now it gives me error. Invalid UTF-8 string at offset 2
 
7:36 AM
Check if your file is ISO
Run a utf8_decode() or utf8_encode() on "Sähköpyörätuolin" to find out what combination you have.
 
With encode "LamminsivuLääk.pdf" with decode "LamminsivuL??k.pdf" original "LamminsivuLääk.pdf"
 
mornin
 
\o
 
heppi frietag!
 
Wes
7:59 AM
\o
!!rebecca
 
@Arto Try with php.net/manual/en/function.mb-detect-encoding.php but also /u modifier to regex. Not sure what charset is used up there.
 
@DejanMarjanovic How to hell they can be ASCII? Atleast according to mb_detect
 
add the 'utf-8,iso-8859-1,ascii' and set to strict, try again
 
Now it say UTF-8
 
Anonymous
8:11 AM
mornin
 
Happy Diwali all of you from India.
 
Happy Rebeccaday from R11
 
lol
 
Sorry I didn't manage to test that call stack last night @DaveRandom, last night was.. not a good night for me.
 
@Gordon Was thinking about this over the past year. Just getting an enclosure
 
8:22 AM
@Jimbo well, you also need the card that goes into the enclosure :)
 
However, it's still not plug-n-play. You get a 30-40% power drop because of driver support in the latest cards on OS X native. ~10% drop if used in Bootcamp with Windows though
(I'm talking OS X + enclosure)
And you have to use an external monitor
 
Streaming games from nvidia grid/shield would also be an option for me, but I dont understand how it works
 
Don't take streaming advice from Jimbob, unless you want to put people to sleep
 
Anonymous
@Sean you alright?
 
Just use OBS
 
8:27 AM
@JayIsTooCommon Set the sun on a 7 year relationship last night, things are difficult at the moment ^^;
 
Anonymous
@Sean oh shit dude :( Sorry to hear
 
I just wanted my hacktoberfest tee, I never asked for this :x
 
@Sean :(
 
Wes
 
Hahah thanks, what are the differences between the files?
 
Anonymous
8:34 AM
@Sean if I was up there i'd go for a pint or egg her house, one of the two. Keep the chin up <3
 
Wes
there were some untranslated lines
i did my best. translating is hard :B
 
@Sean Try not to dwell too long, and rebounding is a very real thing.
If things still suck just do what I did, quit your job, sell your shit and leave the country. Nothing quite like literally running away from your problems. ;)
 
Anonymous
@Fabor however, Newcastle is the best place to be single
 
@JayIsTooCommon Is it f*, with Newcastle birds?
 
@Fabor I know. I attended one of of his conf talks
 
8:37 AM
@JayIsTooCommon Yes but only if you're into trolls.
@Gordon heh
 
@Sean you finally ditched Windows after seven years? congratz dude!!
 
@Gordon til death do us part (until game portability for linux is better at least)
Don't need a lawyer, deleted facebook, got a gym subscription. Time to get hench I think.
 
7 days <3
 
@Sean The reddit breakup advice :P
Come to Vietnam, even Jay is handsome out here.
 
Anonymous
8:41 AM
fuck you
 
@JayIsTooCommon rude dude
 
Anonymous
@Gordon dude rude
 
Wes
ahaha
 
well, I guess, better than nude. aint no one wanna see that
 
Anonymous
lies
 
8:42 AM
Yeah @JayIsTooCommon sheesh, so rude.
 
Anonymous
@Fabor No, I said Newcastle..
 
Zoocastle
 
Cheers for your support anyway, I'm not really sure what to do but I'll be damned if I don't get that t-shirt. Something to aim for at least ^^;;;
 
Hm, I still have to commit something but whenever I got time for that I spend it in 7days atm
 
Newcastle can add as many new posh restaurants and cocktail bars as it wants, but it can never be rid of the bigg market.
 
Anonymous
8:44 AM
@Sean the whole getting fit / gains thing, really helped take my mind off shit. You can set some good goals and feel 10 x better about yourself. The money that you would spend on ze lady can go to a PT as well, if you were that way inclined
 
@Gordon Currently trying to build Isengard in 7 days, good stuff.
 
Exercise releases endorphins. Regular schedule keeps you in balance.
 
@JayIsTooCommon you make it sound as if you were talking from experience. are you suggesting you are fit, got a gf or money? bwahahahahahahaha
 
Anonymous
I hope you fall down some stairs today.
2
 
I actually believe some doctors prescribe exercise for certain mentalities
@Gordon He lives vicariously.
 
8:47 AM
:39681282 I am fine with smashing zombie cheerleader heads with my sledgehammer
@Fabor yeah, watching the life of others in a reality soap on tv still doesnt make it your life @JayIsTooCommon
 
@Sean It's pretty superficial but simply meeting another girl who is interested will help a bit, like a confidence boost.
Bit early to be talking about that though
:P
 
dont bullshit yourself. recovery means pizza, beer and binge gaming for the next few months.
 
heh, funnily I actually did go the healthy eating and exercise route. Didn't realise how soft I had gotten in my marriage. Literally.
Binge reading too.
 
I go the gym three times a week, so it wouldnt make a difference to me
 
Name of the Wind. Your starting point.
@Gordon Do you even lift bruh?
 
8:54 AM
I have been told to read the king killer chronicles before
 
2/3 released. Was a great way to take my mind off things. If you like Skyrim/Witcher then you'll like this.
 
I've just finished my last trilogy, the first law by Abecrombe
 
@Fabor nope. I do fitness boxing mostly. Lifting got too boring. I only do that occasionaly nowadays.
 
Anonymous
I presume the fitness part means you concentrate on the cardio rather than technique?
 
Don't play any sports?
 
8:58 AM
used to freerun, now I just run I guess
 
@Gordon because you got stuck on a certain amount you could lift?
 
Fan of badminton though
 
Sports are an awesome outlet, plus it's cheat exercise.
 
Anonymous
^
 
@JayIsTooCommon we do both, but yes, the emphasis is on the cardio.
 
8:59 AM
Basketball is my happy place. Even if it's broken me so many times -_- like right now...
 
@Naruto yes, once I was strong enoug to lift you over the balcony I stopped ;)
 
so basically you can only carry +- 70 kg? :P
 
@Naruto good enough for me. for anything heavier, I'd pay a movíng guy
 
morning
 
@kelunik o/
hahaha :D
@Gordon let's hope your misses (or mister, don't want to discriminate anyone) doesn't weigh more then? ^^
 
9:03 AM
@Naruto did you just call her fat?
 
I most certainly did not
 
What!? Paul Rudd was in Clueless. Wow.
 
@Naruto I think you did. whats wrong with you? dude. stop that body shaming. you dont even know her.
 
Anonymous
@Naruto disgusting behaviour dude.
 
wait what?
 
9:04 AM
How dare you @Naruto !
 
I did no such thing!
 
I should flag and kickban you…
but then one of those humor lacking monkeys that call themselves mods will come in and complain that you just didnt get we were playing you
 
:P
 
Anonymous
:>
 
@MadaraUchiha spoil sport!
 
9:08 AM
for some reason, since you made me think I called her fat, I kept getting this image of wee man disappearing magic trick
 
So turns out there's 2 womens days a year here, not inc valentines. Still zero mens days. MY buddy said that to his GF and she goes "Every day is mans day" and he responds "Where's my present?" :D
 
Anonymous
lol, legend
 
@Fabor What you talking about willis, there's an international mens day
 
Anonymous
waits for the pun
 
user8713979
Hello the world of php!!
 
9:13 AM
So there is.
When's international Fabien day
 
Nov. 19th, AKA steak and blowjob day
 
user8713979
Is this really php chat??
 
I thought April 14th was male Valentines
 
No wait, I think that's a different day
 
Anonymous
@AnimeshSahu yeah
 
9:14 AM
No this is Love-Hotline Chat. How can @JayIsTooCommon service you today?
4
 
No, it's the PHP Anonymous group
 
Anonymous
!!welcome AnimeshSahu
 
Welcome @AnimeshSahu, please read the Chat Guidelines
 
Not like the with the masks, but like alchoholics, only worse.
 
Anonymous
@Fabor take a look at the profile pic before you respond.. C:
 
user8713979
9:14 AM
Hmm!!
 
it's friday
 
!!friday
 
not not Friday
 
9:15 AM
No this is Love-Hotline Chat. How can JayIsTooCommon service you today?
 
user8713979
OOps my sublime text theme goes away
 
Anonymous
I feel like I can't even swear now..
 
user8713979
Bye all this isn't a php chat
9
 
Anonymous
\o
 
o/
 
9:18 AM
\o
 
o/
 
\o
 
Wes
o/
 
Wut. #^(\d+)(B|P|S)?$# matches 1234SB, am I missing something?
How does that work when it expects the end of the string straight after 0-1 matches?
 
Anonymous
he's gone. We can swear again
 
Anonymous
9:20 AM
piss off @Gordon
 
@Sean no?
 
Wes
@Sean looks correct to me
 
^
 
it's friday, everything looks fine today
 
OH
Oh I'm stupid
It returns 0 and my check is looking for !== false, how dumb is that.
 
Anonymous
9:21 AM
@Naruto especially @Jimbo's mum.
 
@Sean you really want an answer to that question?
@JayIsTooCommon I feel like I'm going to get dragged into something again...
 
I think I found a bug in NumberFormatter: 3v4l.org/mjA6B
 
Because Germany
Didn't even know about that class...
 
@DejanMarjanovic err? why would that be "because Germany"?
 
9:35 AM
One of those guys looks like Weird Al
 
@Gordon Disregard, just frustrated about fixing all of the de_DE and ISO-8859-1 things...
 
Not a very diverse crowd
 
@Fabor you can tell I live in a filter bubble because I first though you'd written weird ai instead of weird al. now I want someone to create a weird AI that can mock weird Al
 
@Gordon that PHP_MAX_INT seems to behave as 0 there?
 
@Gordon lol.
 
9:40 AM
@pmmaga yes, but why? does it overflow or something? maybe it gets casted to a smaller sized number type under the hood?
 
@Gordon "working as intended" It appears to be a feature of the underlying library: icu.sourcearchive.com/documentation/2.1/…
fMaxFractionDigits = uprv_max(0, uprv_min(newValue, fgMaxIntegerDigits));
(╯°□°)╯︵ ┻━┻
 
int32_t
 
there we go :)
 
> uprv_min
 
accept EFAULT in addition to ENOSYS as indicator that getrandom() is missing – #75409
 
9:49 AM
well, I guess if you need to handle floats with PHP_INT_MAX digits, you are using the wrong language anyways
so ascii shrug
 
so, Bobiverse book (at least first one) is quite awesome
 
heh… php -r "echo number_format(1.123, PHP_INT_MAX);" prints 1
 
Wes
@PeeHaa @JayIsTooCommon USA grand prix this weekend. hamilton said he wants to win for what is going on in the country, like jesse owens. if he loses the blame's gonna be on who wins (implicit nazi). he is such a prick
 
Anonymous
So our designer was asked to create a Santa tracking app, showing Children's addresses on 'santas list' when they scan their order.. imgur.com/a/CPxAW
 
Anonymous
@Wes What a twat, he drives a piece of metal on some tarmac. He needs to get over himself
 
10:04 AM
Santa tracking app?
 
Wes
@JayIsTooCommon he visited NASA, he said "i'm interested in space tourism" ahah
 
Anonymous
@Fabor Just a novelty for when kids are scanning their tickets and going through the gates. They see their road name appear on a television supposedly showing where Santa is going
 
Sounds creepy.
 
Anonymous
In no way can I see how that is creepy but sure :P
 
Anonymous
@Wes I dislike him so much
 
Wes
10:09 AM
he's a joke
 
@Gordon IMHO that would classify as a bug. at the very least, as a doc bug because it's not mentioned anywhere
 
I know this is not the right place to ask this question, but html channel is not active right now..
is text in ol permitted? <ol>list title <li>list item</li></ol>
 
@edwardtorvalds no
morngins room
!!friday
 
morning
 
10:23 AM
@Jeeves yay
 
@PeeHaa Do you like it too?
 
so is there a way to define title of ordered or unordered list?
 
@Jeeves yep
 
@PeeHaa Don't shake them.
 
k
@edwardtorvalds Yes. Add a title above it
 
10:24 AM
outside ? it is pretty obvious, how can it be title/heading of list?
 
Yes outside
 
ok, thanks
 
@Gordon actually.......I completely misread that Cpp code, didn't i....
 
dammit
 
sudo make sandwich
 
10:26 AM
moin btw :-P
 
!!rebecca
 
@DaveRandom your version numbering is bad and you should feel bad :P
@DaveRandom o/
 
This site gets like 15 releases a day sometimes, I gave up on semver for it a long time ago
 
Rolling releases ftw \o/
> I am trying to MVC a simple XML feed of images based on this structure.
lol!
 
10:35 AM
@Danack I am the last person on the planet of being in a position to tell anyone s/he misread C or Cpp code
@pmmaga I am too busy/lazy to file a bug right now. remind me tomorrow :)
 
I always forget that I am on a paper for Numeric Traits in Cpp
 
wat lol
 
!!remind in 1 day remind gordon to file the number_format bug
 
Have a look at the time again, yo!
 
10:40 AM
Refactoring numeric limits even -_- here
 
!!in 1 day remind gordon to file the number_format bug
 
Reminder 39682922 is set.
 
@Fabor is that actually you?
 
<3
 
Correct
 
10:41 AM
@PeeHaa ty! ^^
 
I am the Cpp authority around here. Muahaha
 
@Fabor wtf that is well random, how di that come to be?
 
Alisdair is a family friend, back when I was getting in to programming I did some HTML for him and this is how he thanked me (sort of what it was for).
 
I wonder if something like luis.ai/home will benefit Jeeves
Also mornings
 
@Fabor I'm slightly jealous but at the same time kind of don't want my name associated with C++ because then people would make me use it
I do not get along with C++
 
10:44 AM
Also happy Rebecca day
 
although I should probably have another go at it, it's been a while
 
Does Jeeves only work in English?
 
@DaveRandom lol, it's had exactly 0 benefit so far :P.
Nor was it exactly earnt.
 
@Leigh in what sense?
 
!!fr he speaks any language, I believe
 
10:45 AM
Il parle toutes les langues, je crois (translated from English)
 
@Leigh ^^
 
\o/ good job @IROEGBU
 
Hallo @Jeeves, wie gehts?
 
@Leigh Gut und dir?
 
hm
@Jeeves Вам нравится пюре?
 
10:46 AM
@Leigh Да.
 
@Jeeves que dia da semana é hoje?
 
haha
 
@pmmaga 54455645.
 
LOL
it was going too well :P
 
@Jeeves Awright Giuvna, owss it angin me ol cobbler?
 
10:48 AM
@Fabor Yes. It is my favorite type of pie.
 
haha
 
HAHA
 
picked cobbler out of all that
 
that makes about as much sense as cleverbot normally makes when you use proper english, I'd call that a win
 
11:20 AM
anyone know if when I generate constructor in PHP storm, it can include the types on the params, not just in the docblock?
 
Guy who is leaving next month, has written a new service... in ruby
what an asshole
 
Don't put it live...
 
it's already live
so... clearly didn't go through code review or qa
 
Time to throw a wobbler...
 
@Danack I don't get
But if you set the type on a property's docblock, you can generate constructor and take care of setting that property
All with the correct type showing in constructor's doc block and arg
 
11:33 AM
 
Alt + Insert
 
From that, I want the generated constructor:
 
Select constructor then the props you want
 
to include the types for the parameters.
 
oh! I don't know if it does for primitives
 
11:35 AM
so looks like that
 
@Danack Settings -> Templates -> Code Tab -> Constructor
 
It doesn't work for primitives...
 
Do you see an option for putting the types in? I can only see a 'param list'.
 
Under setter it has a bunch of vars
maybe you can use them and they're just not listed
try it :D
Ah I guess you can't, because it's only given as a list
no way to iterate it
Unless... it's a proper list, and you can use velocity.apache.org/engine/devel/…
 
defenestration intensifies
3
oh, apparently I need to update
 
11:53 AM
Doesn't appear to be a way, you'll probably have to make a support ticket
Can't get proper apache velocity stuff working either... like dumping $context.keys to check hidden variables
 
It works by default for non primitive types
 
evenings
 
Anonymous
12:20 PM
!!wotd
 
perlocutionary Philosophy, Linguistics. (of a speech act) producing an effect upon the listener, as in persuading, frightening, amusing, or causing the listener to act.
 
12:35 PM
Any logstash users here?
 
12:45 PM
why would I get a startup error about undefined symbol: ZEND_ASSERT in CLI when not using a debug build?
 
1:34 PM
@Gordon It's a macro....so maybe something couldn't find the header when it was compiled?
s/find/including the correct/
 
yeah, it seems ZEND_ASSERT was only added in 5.5. and the error comes from a 5.4
ok. got it.
 
@Gordon uh … wasn't it added in 7.0 only?!
 
1:49 PM
@Gordon oh
I thought you meant the opcode
 
but apparently, the macro doesnt exist beyond 5.6?! Oo
 
!!lxr ZEND_ASSERT
 
[ /Zend/zend_portability.h#107 ] # define ZEND_ASSERT(c) assert(c)
 
Wes
afternoons
 
1:53 PM
@Jeeves thx
 
@Gordon You're welcome!
 
Code Coverage Report:
  2017-10-20 13:59:26
  Lines:    5.44% (421/7740)
 
00:00 - 14:0014:00 - 00:00

« first day (2561 days earlier)      last day (2402 days later) »