« first day (2110 days earlier)      last day (2831 days later) » 

3:00 PM
na its because I try to use like global variable to display a variable but it doesn't work..
 
Morning.
 
Mornisson
 
moin
 
pce
3:15 PM
m o r n i n g
 
@LeviMorrison moin
 
Hey what's up folks !
 
I need someone that can explain me something... how a string can equal zero... I mean... I don't understand why and it make my code return a false when it's not supposed that's driving me crazy -.-
How are you @RonniSkansing
 
Empty string equals false when loosely compared.
Falsey.
 
3:22 PM
@DejanMarjanovic but... it's not empty :\ that's why i'm so confused
I manually set it to try...
 
non-numeric strings are loosely equal to 0.
 
compare against false if you wish to catch "" or "0"
 
selinux how dare you!
 
3:24 PM
omg... that's really confusing seriously I was just trying to catch when it's equal to zero -.- lol
 
@bwoebi Strictly you mean?
 
I will do strick comparison
but still -.- lol
 
@DejanMarjanovic no, loosely
@JonathanLafleur well (int)"foo" === 0… thus, "foo" == 0… anything illogical here?
 
Oh... I just understood something I think... lmao.... i'm too dumb...

Trying to compare a string to an integer loosely will just "intify" the string to see if the value of the string is not an int

"1" == 1 TRUE.

"a" == 0 TRUE. ("a" is converted into int, but don't have real value so it goes to 0)
@bwoebi ^
 
@bwoebi is that hex string int conversion whatchamacallit fixed in PHP7?
@JonathanLafleur Sometimes :P
 
3:28 PM
@JonathanLafleur what I just said ;-)
@DejanMarjanovic yip
 
<3 thx everybody -.- now I feel better :P I feel dumb to havn't thinked about it at first... but it's now fixed :P
 
You never know whether you're being dumb or PHP is with this language.
 
Well that was the case before people in this room took action :P
 
@JonathanLafleur "intify" is said "cast to int", ftr
another word can be "coerced"
 
intifyzationing
 
3:34 PM
@FlorianMargaine thank you buddy :P you're right ! But since I was searching the right way to tell everything else, I forgot how to say "cast as int" I know sometime my english hurt some eyes out there :P
 
I thought you might just not know the word
 
@FlorianMargaine that could happened yes ! Thank you :)
 
@bwoebi Regarding enums: how do you feel about the new primitive type route you went down?
 
@LeviMorrison It's still my preferred implementation.
 
Have you discussed it at all with @NikiC?
 
3:46 PM
I'll use an XML parser... Nope, maybe, strict HTML parser? Nope, loose HTML parser? Nope, regex?... Data-entry internship it is!
 
What are you scraping?
 
Hi All,
I am having the field value lik a:3:{i:0;s:10:"Auto";i:1;s:12:"Archi";i:2;s:19:"Safety";}
How to convert in this format Auto,Archi,Safety in PHP ?
 
unserialize, implode
 
@Fabor Generated HTML, and I'm pretty sure the generation script was written by a 2 year old rhinoceros.
 
\o/
 
3:49 PM
Ah, it's ColdFusion... Definitely a rhinoceros.
 
@NorthbornDesign Rhinos get such a bad rap. Just because they used Frontpage 95 that one time...
 
@LeviMorrison no… I maybe should.
 
@NorthbornDesign Use tidy, it has a parser, too.
 
@bwoebi I imagine he'd have good insight there.
 
3:59 PM
How do I change this regex
([a-zA-Z]+)/?$
to capture something like "services-and-guides" in 1 match instead of 3 matches?
 
Just make it match the dash as well?
 
o/
 
Right, if I knew how to write that then I would. I found my answer through google tho
[A-Za-z0-9\-_]+
 
You can also just use [\w-]
 
@Brian here is a good online regex checker: regex101.com
 
4:05 PM
Hey guys, on my webserver i got this error while trying to install Joomla:

Error displaying the error page: Call to undefined function simplexml_load_file(): Call to undefined function simplexml_load_file()

Can u tell me how to fix this ? I gues it is an error in my php version. Using PHP 7
 
@Traxstar Make sure you actually installed the XML extension.
 
how can i @oldskool
 
@Traxstar Depends on your OS.
 
apache web server 2 @oldskool
 
That's not your OS...
 
4:07 PM
Ubuntu Server 16.04.1 LTS
 
user895378
@bwoebi yeah it actually is. I don't have much time to write code at all.
 
my mistake :D
 
user895378
Which you might mistake for a seriousl misallocation of my considerable talents ...
 
@Traxstar Then you should just be able to sudo apt-get install php7.0-xml (assuming you used Ondrej Sury's PHP repo).
 
user895378
Until you hang out with me ;)
 
4:08 PM
@oldskool sudo: /usr/bin/sudo must be owned by uid 0 and have the setuid bit set is the error i am getting when doing so
 
@Traxstar Ehm, that does NOT sound good. You might want to have a professional look at your server.
 
@Oldskool haha what should this mean ;D
 
Sounds like you messed around with chmod/chown just a little too eagerly.
 
@Oldskool so how to fix this ? : D
 
@Traxstar Restore the backup of the last known configuration.
 
4:10 PM
@Traxstar Let someone who actually knows what they're doing configure your server. No offense, but by the sound of it you have no idea what you're doing on your server. And that's pretty problematic...
 
@Oldskool unfortunally there is nobody 'professional' who can have a look :D
 
@Traxstar What kind of machine is that? At home or with a hoster?
 
@hakre at home
 
@Traxstar Is re-installing the OS an option for you?
 
@hakre it is a really bad option, but if it is neccessary it is an option
 
4:13 PM
Well the other thing is that you start to read those error messages and the according man pages and learn about the details so that you can progress your own.
I would prefer that, but I also don't know what you did with your system.
As @Oldskool wrote, the error is a sign that some more fundamental file permissions are out of order.
 
i even dont know whats wrong, it was a new server installation - i startet to install the webserver and then i want to install joomla. getting this xml error - trying to figure out what is the problem - founding the command that oldskool have postet and getting this new error - finally i am here
 
It's basically a configuration issue, the interesting part is you to learn about what caused this.
Well on a Ubuntu system normally "sudo" won't give such an error.
 
I'm hazarding a wild guess, chmod -R or chown -R on... like sudo chown -R www-data:www-data / home/oops/i/typed/a/space ;-)
 
@rdlowrey I'd love to :-P
 
Don't know how else sudo would whine about bad ownership and permissions.
 
4:18 PM
That could be, so yes, learn to quote :)
 
But a reinstall would be the best option. There's no telling what other core stuff might be corrupted.
 
@Traxstar for that specific error, here is a not-much-explaining "answer to the problem" askubuntu.com/questions/584262/…
 
@hakre thank you :)
 
Btw, chown has a nice parameter to only change files / dirs that are with specific ownership.
 
Please note that that error is probably part of a much larger problem. So just fixing this will probably not fix your box.
 
4:21 PM
As I wrote you can start fixing that error and then the probably other ones. You might even not see them in the first place and only realize later on that something fundamentally is still flawed in the system configuration.
Reinstalling from scratch is perhaps fastest in your case. If you write the steps down you did (e.g. in a bash script) it's even faster then.
 
4:39 PM
its not a php question but in windows.. what is the best progz to create pdf with like 10 images
 
4:57 PM
use google docs, and export to pdf? (also platform independent..!)
 
+1 I try
its just because it shrink image but Yeah I tried and the DPI is ok.
if I +90, to be in landscape before upload my picture, the DPI is nice and the size is ok too
 
5:36 PM
evenin
 
Eve'
 
@Jean-philippeEmond Word and export to PDF?
 
Words sucks when you use Big Image.. like.. centered... margin .. etc..
bug I do it with google docs.. its ok if I do some modz before (change to landscape)
 
hi
what app do u use to connect to mysql remotely
u know i have a ubuntu server
i don't know how to connect to mysql
 
5:41 PM
so .. I had a game idea ... which was immediately followed by "hmm .. rest of the world does not have cheap unlimited 4G bandwidth"
 
is there a windows application to do that
 
@Sarah mysql workbench
also, please use complete words
 
What's the internal ce for the "object" type? Trying to specify a generic object typehint internally, not sure which to use.
 
@tereško flaunter
 
@tereško what do u mean about complete words
 
5:43 PM
"u" is not a word, it is an indicated for you probably violating StackOverflow's ToS, because it does not allow people under 13 to use it
 
@rtheunissen there probably isn't one because it isn't a real type
 
lol
 
But you can typehint with it, so there must be a way to at least do that.
 
ok
 
Will try null.
 
5:46 PM
@tereško So... you're better than the rest of the world?
 
not really
 
Not sure which countries have cheap unlimited 4G
Cheap for few GB, yes
Still better than rest, just kidding :)
 
last month I used 41GB (and a bit) from my phone .. mostly youtube (some movie/music streaming from my home computer)
 
dude. that's a lot of music
 
:O What provider is it?
 
5:49 PM
@DejanMarjanovic this one: lmt.lv/lv (they dont even have an english page)
 
> Internets
<3
 
Russia is just behind your back so it's natural. Nice.
Best pre-paid here is 5e for 3GB for a month.
 
I pay 10€ for unlimited
 
basically they are aggressively trying to move people to that plan, because for 8.99€ you get 2GB
 
5:54 PM
welp, you gotta have a huge bandwith to catch em all
 
.. that payment plan also happens to be at least 2 years old
 
TIL object is not a real type.
 
trying to explain to the colleague that the character set encoding problem is not exactly related to them
> don't worry, you can't exactly type in iso-8859-1
 
btw, what is the mobile landscape in other countries? How popular are various "unlimited" plans?
 
non-existent, here. we pay up to 50-60 bucks (make that something like 40usd) for sometimes even just 1Gig, of 3G network
 
6:02 PM
wait, are you saying that you dont even have "unlimited local calls" plans?
 
oh sry
yeah, unlimited calls happen
 
@tereško do you know the free one
 
in a way: you have a limited number of minutes during "daytime", then unlimited during nights and weekend
 
@Sarah mysql workbench IS FREE: dev.mysql.com/downloads/workbench
 
I have a unlimited text / calls plan, with 1Gig data, for a honest price considering the other plans available
but most plans are limited for calling and text messages
 
6:07 PM
lol
 
so yeah, that unlimited 4G data plan of yours is something unthinkable in my experience
 
@FélixGagnon-Grenier so ... this should give you easy to understand pricing scheme in latvia for plans: bite.lv/tarifu-plani (picked this provider, since none of them actually have english pages)
 
wow
that's like... :(
 
the icons in the "bezgaligais internet" section are the zero-rate sites (once that do not count as "used traffic")
 
I wish telecommunitaion companies would inspire themselves from those numbers
That being said, I don't think there's a cost effective way of offering that all over Canada.
 
6:12 PM
yeah, we have the benefit of having new infrastructure .. and the size also matters
 
Hell, just Quebec is bigger than most european contries
 
btw, Estonia has about the same rates
 
@bwoebi Hi, I'm right now ;)
 
you are high
ok
 
I had to go out to a remote location and couldn't set up all the stuff
 
6:18 PM
@eXtreme sigh, and I'm about to go to bed again in 30-50 mins :-( [awake since ~20 hours) … tomorrow then, yea?
 
yeah ;) what UTC time will you be available?
I should be at 9 UTC
well, from 9 UTC to 22 UTC I guess, so maybe in this window
 
6:33 PM
@eXtreme me too, probably
Ping me when you'll be available, as I'm earlier up than you.
 
ok :)
 
if I curl.. how I can persist SSL key communication to make multiple Curl?
not a real question ^^
 
@rtheunissen you can?
 
Anonymous
what's the correct way to call a parents constructor while still passing the parent dependencies as arguments? Requiring the dependencies in the child seems hacky and untidy :/
 
If a parent requires it, then the child probably requires it too. Why would that be hacky?
 
Anonymous
6:48 PM
Because I would have to declare them again in the child, no? So for example, if I was extending this class github.com/JayPHP/Project-Template/blob/master/src/Controllers/… I would have to inject template and request into the child just to pass it back to parent... Or have I got this wrong?
 
GitHub just went down haha, I can't see
oh that was quick nvm
Yes, your child will still need it then. That's life :P to make things easier, you can look into github.com/rdlowrey/auryn
 
Anonymous
Using that :p github.com/JayPHP/Project-Template/blob/master/config/… ah well, this is annoying
 
Anonymous
@KevinMGranger thanks anyway :>
 
@JayIsTooCommon Just do not define the ctor (constructor) in your child class. Should work as well w/o.
 
Anonymous
@hakre but I need to inject another class into that child class. And that class is specific to that child, I.e. Shouldn't be injected in the parent :c
 
7:01 PM
@JayIsTooCommon If it feels "hacky" then you are probably using inheritance where you should be using composition
A child ctor is an extension of the parent ctor, if it feels wrong calling the parent ctor, then it should feel wrong extending the class in general ;-)
 
@JayIsTooCommon Well, that's new information. Can you do only constructor injection or do you have support for setter injection as well? Calling the parent ctor goes like: parent::__construct($request, $response). Your IDE should support you typing that in quickly.
 
^ this last sentence.
If it is a legit case for inheritance, then filling out that boilerplate is an IDE job
 
Anonymous
Ok, I'll give that a shot now.. And then if it works explain my situation to see if I should even be extending :p
 
@DaveRandom you can't, my mistake.
 
A propos typing quickly IDE: Using inheritance on PHPUnit_Framework_TestCase in a Magento 2 project brings PHPStorm to crawl.
I had this in the past, then it was better but since today I have this bummer again.
 
Anonymous
7:21 PM
@hakre Yeah, sorry this is what I was trying to get around. I was trying to find a better way of doing it i.e. without having to have the same dependency arguments on the child constructor. But by the sounds of it, It's probably because I shouldn't be extending
 
Anonymous
@DaveRandom So I was using this as my base controller github.com/JayPHP/Project-Template/blob/master/src/Controllers/… with the plan of any other controllers having to extend this (So that they have access to the request and template classes). I guess instead I could just not use ctors in child classes and just use a custom init() or something.
 
@JayIsTooCommon Not necessarily. Even it may look cumbersome to only pass constructor dependencies to the parent ctor, that alone is not yet a smell.
You can also extract action methods into new classes which are just invoked. The first parameter these methods have is the $request, and the second is the $template.
You can make that an interface.
Then you would have one class per controller action
All this needs is one controller implementation that is able to execute any controller method (works per that interface).
Now you've decoupled the controller action from the controller itself.
 
can i use windows server to run php code
 
yes, but you really shouldnt
setting up a webserver on windows is kinda painful
(unless you use something like XAMPP, in which case it is a gamble - it either works and you dont know why OR it doesnt work and you dont know why)
 
7:38 PM
to be fair, ampps has some degree of stability, and ships with php7
 
Anonymous
@hakre Alright, I think I understand what you mean. I'll try a few things out and see what works best for me - and if I can't get anywhere, I know now that what I was doing isn't a smell, so I've got somewhere :P Thanks for your help, appreciate it.
 
7:53 PM
Evening bitches
 
Anonymous
heyo o/
 
heyho
@JayIsTooCommon You playing on the same server?
 
Anonymous
@PeeHaa Yeah :) You coming?
 
Yeah going to do a quick login
 
8:12 PM
anybody there?
 
any way around this
'SO~~00FF~SM#abc' where 00FF is dynamic
tried
(?<!SO~~(?=\w)~SM)#(.*) didnt work
 
I don't even... what's this^^
second kinda seems like a regex. what are you trying to do @ChrysUgwu ?
 
So just watched The Revenant. A film about a man impervious to cold.
 
yeah trying to get #abc that dosnt have SO~~(any string)~SM before it
eg:
SO~~00FF~SM#abc' bad
SO~~0WSFF~SM#abc' bad
#abc' good
 
@ChrysUgwu What characters can 00FF represent?
 
8:21 PM
any a-zA-Z0-9+
 
@ChrysUgwu and #abc is always just exactly #abc or can that too represent any letters or numbers?
 
maybe something diffrent
like .*?
 
.*? meaning you just want everything to the end of the subject as long as it's not proceeded by the pattern SO~~[a-zA-Z0-9]+~SM?
 
yeah
 
So (?!SO~~[a-zA-Z0-9]+~SM)#(.*)
Actually that's a negative look-ahead.
Yea, you can't do arbitrary length negative look behind in PCRE.
 
8:31 PM
it returns both phpliveregex.com/p/gxT
 
5 mins ago, by Sherif
Actually that's a negative look-ahead.
5 mins ago, by Sherif
Yea, you can't do arbitrary length negative look behind in PCRE.
It would probably be easier just to check ^SO~~[a-zA-Z0-9]+~SM and ignore the subject if it matches.
 
@Sherif There are a couple tricks tho. Like \K
 
@rdlowrey Maybe you can give @DaveRandom / @Danack / @bwoebi / me collaboration rights for Auryn, so we can close some of the issues?
 
@NikiC Hmm, never actually used \K before
 
it must not be at the beginning of string. just for demo.
 
8:52 PM
lol nice avatar @sjbennett85
mornings r11
 
Thanks, @RonniSkansing !
there wouldn't happen to be anyone well versed in FB graph API 2.7 here would there?
Or is this more of a generic PHP language reference?
 
@Sherif any other way?
 
Well NikiC did just mention \K
 
didnt work
removed the first array element. maybe i did it wrong
 
@sjbennett85 dunno maybe, If you have a question feel free to ask, maybe someone knows
 
9:10 PM
@ChrysUgwu Not sure what exactly you want -- maybe SO~~[a-zA-Z0-9]+~SM#(*SKIP)(*F)|#(.*)?
 
Nice, Any Doc for that. not familiar with '(*SKIP)' and '(*F)'
 
@NikiC: What's the equivalent of the define() function in php while writing an extension?
 
@MarkWeiman The REGISTER_* macros in Zend/zend_constants.h
E.g. REGISTER_LONG_CONSTANT
 
Thanks.
 
array_column does not preserve keys when not using the 3rd parameter. Man I hate this function.
 
@RonniSkansing wow
 
yea sorry I dont wanna talk politics, I just find it hard to understand
 
10:27 PM
What was the URL to lxr that Lawngnome put up again?
 
the grok thing?
 
10:44 PM
@Sherif There is this: php-lxr.adamharvey.name/source
 
wooo
my nginx module can look at response headers from the upstream request and do stuff based on that
progress
(currently, "do stuff" is adding another response header)
I'll call it a day.
 
Wes
11:11 PM
morning
 
@Wes Yo ..!
@Wes I'm wonder .. what's your sleeping system exactly? you have just woken up now?
 
Wes
i'm from east asia. it's morning here
!!google UGT
 
برو بخواب هم وطن خخخ
 
:-)
@Sarah Agha man nafahmidam shoma pesari ya dokhtar?
 
چطور
 
11:20 PM
akhe avataret dokhtaroonas, esmet maloom nist pesaroonas ya dokhtaroone, shoghlet ham (barname nevisi) maluman pesarunas (onam tooye in time)
kholase ajibe hamechi ye khorde ;-)
 
Sara pesaronas ya dokhtaronast
 
@NikiC: Is there any way to detect if a value in a class (e.g. person->age) changes in an extension?
 
ahan .. "Sara" dokhtaroonas ..! on "h" chiye gozashti akharesh?
 
khodet ro dargir nakon in system anonymous hastesh, ham pera bahash karmikonan ham dokhtara
lol
sara zerang bod
 
man nemigam in system male faghat pesaras .. daram migam esmeto dorost benevis
ya "h" ro bardar .. ya aslan famileto benevis
ya kolan ye nickname dorost benevis .. benevis "derakht" .. ya harchi, vali dorost benevis
:)
 
Wes
11:29 PM
è consentito usare altre lingue adesso? grande! pizza! spaghetti! polpette!
 
@Sarah "Sarah (alternatively spelled Sara) is a Jewish feminine given name found in many different areas of the world." .. rasman dare mige yahoodiya be sara migan sarah ... to yahoodi hasti? man fekr mikardam ke mosalmooni ;-)
 
dinemonam anonymous hastesh lol
 
:-) ..! baba hazf kon on "h" ro ..! harchi bet migam begu khob :-)
 
ok bezar mashverat konam bashe, chashm, faghat, age kar be ja barik keshid khonatoon ja darin
mehmoon nemikhayin
 
11:37 PM
:-) shoma on "h" ro hazf kon avaghebesh ba man ;-)
 
Hazf shod
khobe digeh
 
Felan hanooz "sarah" tooye session hast ;-) vali are hala khoob shod .. barikala :-)
 
migam ye app android daram ke etelat ro ba post request miferest be server
 
khob
 
va server ye file php hast ke post request ro modiriat mikoneh
 
11:43 PM
khob
 
be nazar shoma host begiram ya vps
 
host
 
ta hala VPS config kardi?
baed midunam .. pas hamun HOST ro begir
 
سرویس شدم
هم هاست خریدم هم وی پی اس
 
11:44 PM
Khob alan moshkel chiye?
 
وی پی اس سرویس شدم کانفیگ نشد
 
pas boro to kare hamun host
 
هیچ منتظرم دامنه ای که به هاست زدم دی ان اسش ست بشه
چقدر طول میکشه الان 6 ساعتی شد که دی ان اس زدم
رو سایت نیک
 
24 saat sabr kon .. ehtemalan ok mishe
 
خیلی زیاده
 
11:46 PM
hade aksareshe dg ...
 
دست سرویس دهندس
منظور دست اونجاییه که خریدم
 
midunam ...
 
یا نیک
 
khob tooye sitesh zade cheghadr bayad sabr koni?
 
از اینجا خریدم
 
11:55 PM
@MarkWeiman does the ext provide the "person" class?
 
@Sarah az jaye khoobi kharidi .. (intori be nazar mirese) .. ehtamalan ta chand saate dg set mishe ..
 
Inshallah
 

« first day (2110 days earlier)      last day (2831 days later) »