« first day (2349 days earlier)      last day (2585 days later) » 

12:38 AM
@Trowski heh, this was making the tests hang so I was taking that a look but glad you did that one already meanwhile
 
 
1 hour later…
2:04 AM
Mornings o//
 
um... so when using gdb, and I type in -exec info variables, it shows all the variables, even from system headers and etc... is there any way to get variables from a single file... like in the current working directory?
 
3:47 AM
@Ekin Your efforts were not in vain: github.com/amphp/aerys/commit/…
 
4:14 AM
good morning
 
@Orangepill o/
 
5:06 AM
morning
 
morning
 
!!dad
 
What do you call somebody with no body and no nose? Nobody knows
 
@Jeeves your point is not incorrect.
 
@Linus Yes it is. Lord of the Rings is always valid.
 
5:39 AM
php check for isinf is wrong – #74288
 
posted on March 22, 2017

New Cyanide and Happiness Comic

 
 
1 hour later…
7:01 AM
good morning !
 
! morning
 
logical complement ?
 
nope just like that :)
 
haha
 
7:19 AM
@PeeHaa <3
 
7:29 AM
Hi
 
bob
guys why is google still using mysql_connect with their google maps api?
 
which is the best one create desktop appliction using php?
 
morndolbnfaf
 
Desktop appliction using php
 
@tereško morning
 
7:48 AM
@dinesh You can't create desktop app using PHP (well, you can, but it is not recommended :D ). PHP is only for web applications - for this I recommend frameworks such as Laravel or Nette.
 
mornin
 
Ok @Tom11 By using Laravel or Natte, we can create Application?
 
@Tom11 what?
 
@Tom11 wat?
 
@Tom11 wut?
 
8:03 AM
@Tom11 wtf?
@dinesh no. The short answer is: you can use php to create desktop applications
 
Yes i can create it @tereško
I just worked with PHPGTK
 
PHPGTK is an ancient toy, that is not compatible with any of the currently supported php versions.
and it's results are considered highly unstable
thus, the short answer is: you can't
the longer answer is: you really shouldn't
... then again, you probably did not understand even a half of what I wrote
 
Ok
i can understand YOU
 
8:10 AM
Why do you want to build a desktop app using Php?
 
if I needed to make a desktop application ASSAP, without learning any new language, I would use electron.atom.io
 
Yes now only i got it
Its using of HTML,css and JS
 
yes
 
I can access my php using js
 
why do you need php?
 
8:13 AM
can create an webservice, and access through Ajax
 
why do you need php?
 
For database
 
just use java or .net
 
why do you need database for a desktop application?
 
for example log in log out
 
8:15 AM
why do you need to log in for a desktop application?
 
you dont need php to interface with a database. some dbs allow direct access via http. for instance mysql has a plugin for that: infoq.com/news/2014/09/MySQL-REST and couchdb has an http api as well so you could access them directly via js. also, there is developer.mozilla.org/en-US/docs/Web/API/IndexedDB_API
 
Hi "Tdg master" and everyone :P
 
I am just create an application for my office use, when he logged in app, his starting the day, while log out will close the day @tereško
 
do you recommend using "magic" __get & __set methods in your classes or not?
 
@Gordon, I will look on it
 
8:19 AM
@dinesh Why not build a web app and host it locally?
 
@Julo0sS in general I do recommend against using them
 
You can create a link to it as shortcut on his desktop
 
@Julo0sS no, unless you are making a data structure (like a tree)
 
@Gordon okay, I saw several opinions on the web about it, and its not always "clear"
 
Please explain @iroegbu
 
8:21 AM
@dinesh Build a web app
 
@Julo0sS the recommended practice is to create a separate setter, for each state, that you gonna alter
 
Already having a web application
 
morngin
 
o/
 
@tereško @Julo0sS even better would be not use have getters and setters in the first place but just commands
 
8:24 AM
@Gordon that's what I actually tried to communicate in that sentence :)
just without introducing any new terms
 
@tereško cause he knows I might be writing "what do you mean by new terms" just after :P
 
yeaaaaaah
 
I view PHP's magic __get and __set primarily as error handlers. they get fired when you try to access an otherwise inaccessible property. for some reason people think they are meant as a shortcut to creating getters and setters. you can do that, but that's not what they are in my opinion.
 
@Gordon I agree with that, I never used __get/__set for that reason, but I see many people using it everywhere so I just wonder... why^^ / why not
 
8:34 AM
also, when using magic methods, you api will inevitably become magic, too. and magic is hard to understand. your ide will not be able to autocomplete (ok, there is tricks for that, but why use more magic when you can be explicit) and you need to look at the code to understand what something does instead of just infer it from the method signature. and it becomes a major PITA when writing tests for code using magic methods.
I remember ZF1 uses many magic methods for everything. And when I wrote my tests for it, half of the time, the stubs and mocks didnt work because they were funneled through some __call or __get or __set… also, all these magic methods created a massive overhead in production and I was able to reduce loading times by avoiding them
 
8:48 AM
I'm in the "tdg", writing functions, & so on... but, how do you manage your "updateobject" function that passes object and "saves" it to data? you fetch all the "setted" properties of the object, or just leave it "as is" and put the whole thing (even with not setted/not required properties) in data storage?
 
if you want to update only the updated properties, you need to keep track which have been modified
that is usually done with a Unit of Work
 
Moin
Anyone using rackspace cloud having trouble?
 
moin!
 
9:04 AM
@Sean I think they are having issues
 
morning o/
 
@Akshay morngins @pmmaga
 
@sean @PeeHaa Have you got any mail from them for 31st of march regarding some updates ?
 
I don't get their mails
 
I'm looking for wordpress filter to check if file has extension .kml , anyone know how could I check it?
 
9:14 AM
\o
 
o/
 
\o
 
o/
 
\o
 
@PeeHaa Okay I think I am a lucky customer :p
 
9:19 AM
Me: Thanks for your help!
James: Your welcome
*Twitch*
 
@Akshay :P
 
So apparently it's actually due to a patch they applied overnight to customer servers which caused DNS lookup issues.
Fab
 
@WorkingPig without knowing anything about how wordpress filters work, you get the extension of a file path in PHP with pathinfo(), that would be the correct tool for the job.
 
@WorkingPig Where is it being uploaded? If it's just a form control from your theme or a plugin you'll probably need to do this manually
 
@Sean god damn it, this does not bode well for my day at work :-(
on that subject, I'm going to work
ttyl
 
9:23 AM
@DaveRandom Support said it's only affecting 14.04 so you're probably good :P
 
@DaveRandom Why? You just were about to test dnslib on rackspace machines?
 
!!dave
 
@DaveRandom should work on DNS lib.
 
@Sean in admin panel through media upload
 
@Sean BTW did you see @Jeeves' readme on github?
 
9:24 AM
@PeeHaa It was a public place!
 
It still is buddy
 
:P
 
Do you really want to check the extension instead of the type? @WorkingPig
 
There's quite a few hooks there, up to you to pick the right one
 
9:28 AM
@PeeHaa Yea This is my own site I will not hack myself :P
 
@PeeHaa Not yet :O
!!version
 
HA
 
@Sean it will help
Thanks guys
 
@PeeHaa He's working on some WP something IIRC
 
9:29 AM
God I suck
 
Yes. Yes you do :P
 
That's what happens when you use GitHub's editor.. and you also suck
 
BTW @DaveRandom Sunday is my birthday. So I expect a working dnslib release as a gift <3
 
Anonymous
Moin
 
@Sean Or have tests
Hey boy
 
9:31 AM
\o
 
@PeeHaa Saturday is mine!
 
@PeeHaa wat? that's a bit short notice you know
 
@iroegbu yay
 
Nov 9 '16 at 14:54, by PeeHaa
@Gordon You are hereby invited to me next year's birthday party. fyi I kinda like beer
not because of dnslib but because of this ^
 
9:34 AM
@Gordon hahahahha
 
Anonymous
Oooo he has evidence, awkward
 
Somebody else reminded me of that too
 
ok, I could have know the date given that I pinned your bday wishes it last year
 
Well get in the plane I guess :P
BTW mom will not be there
 
Anonymous
I'm out
 
9:36 AM
@PeeHaa boooooooring
admit it! you are hiding her from us
 
@Gordon I could just give you her number :P
 
Hmmm… I'd be too scared to call her. You know… she's @PeeHaa's mom after all.
on a completely different topic: if you ever wondered what parenting is like or have kids, you want to browse fowllanguagecomics.com because it's all true
 
9:55 AM
@Gordon so, somehow you add a new layer between your controller & tdg that triggers or not the update process
 
@Julo0sS not necessarily a full layer, but a tracking object
 
@Trowski ha, nice that it was partly useful :-)
(also 'nings)
 
10:11 AM
Thanks @Gordon found this sitepoint.com/implementing-a-unit-of-work I'll give it a try
once again, the guy seems to be using __get/__set/...
 
in JavaScript and schadenfreude, 21 mins ago, by Joe
can we say that eclipse is just a transformer to make CPU understand the code?
I need a beer
 
@Julo0sS $accessor = "get" . ucfirst($name); and he doesn't know that methods are not case sensitive… it's amazing how often I see this in tutorials.
 
@Gordon It's nice to see the correct casing in logs / error messages though
And yes I have issues
 
@PeeHaa sure, but I'd argue most of the time it's just wasted cpu cycles
 
10:24 AM
@Gordon are them never case sensitive?
 
@Julo0sS functions and method names in php are never case sensitive. only vars and constants are… which is a bit unintuitive, but hey, you picked up php so you don't get to complain
 
I found out yesterday evening that mysql (from console) was not case sensitive with tables names under windows, but is case sensitive from console with table names under linux
 
@Julo0sS That's because it's stored on disk
 
@PeeHaa hey didnt think about that :)
 
And windows FS is case insensitiveish weird
 
10:26 AM
(maybe just didnt think at all)
 
@tereško it's probably easier to just let them say that
 
@tereško that was giggleworthy ...
 
@PeeHaa I'll see what I can do.
 
\o/
 
!!reminder apologise to PeeHaa for not having made a working amphp/dns release at 2017-03-27 09:00
 
10:28 AM
Reminder 36242126 is set.
 
hahahaha
 
:-P
I will actually try though
 
<3
 
@Julo0sS some frameworks try to force the users to follow a pattern, Ex : controller methods should end with Action , showUsersListAction() . in those cases it is case sensitive , but imposed by the framework .
 
BTW in somewhat related news dnslib on windows is like reeeally broken for me
 
10:29 AM
@Vamsi symfony does it right?
 
But I will test again with the new version. Couldn't be bothered to debug obsolete code
 
There are at least 3 known, very similar looking bugs with very different causes in the current version
 
lol that sucks
 
@Vamsi umm, no? Symfony cannot magically make method names case sensitive.
 
@Vamsi in php, method names are not case-sensitive
 
10:33 AM
I know
 
It doesnt matter if you try to run $controller->showUsersListAction() or $controller->showuserslistaction() or $controller->ShOwUsErSListAcTiOn()
 
@PeeHaa Yeh it does a bit, one is generally how TCP/IP works on a LAN and another is specifically NAT related, which is why it tends to be more reliable on servers with their own public IP addresses. The other big one is just a general logic error which can affect anything.
 
@Julo0sS only if you insist on using the entire framework, instead of just picking the components, that you need
 
@Gordon I have heard PHP is even 1337-speak insensitive
 
10:35 AM
I have spent a lot of energy planning out the strategies in the new version to mitigate network weirdness and make it as robust as possible.
Turns out that UDP is unreliable. Who knew?
 
WWWAAATTT
 
@PeeHaa there probably soon will be an issue opened, claiming that php is too insensitive and it should recognize people, who identify as uppercase
 
:D
 
@DaveRandom raises hand
 
... kinda like the "issues" claiming that "master" is an offensive name for a branch, because it does not take the lived experiences of the oppressed colored people people of color
 
@tereško it is offensive. the main branch should always be called robert
 
Turns out that UDP is unreliable. Who knew?
 
@Gordon stop with your white cis male privilege
... and dont start me on the oppression in database cluster architecture
I dont want to live on this planet anymore
 
@tereško I am referring to Robert in it's Proto-Germanic meaning obviously
 
you should decolonize your language .. obviously
 
10:42 AM
I'm trying to add custom wordpress mime_type "kml" like that: $mime_types['kml'] = 'application/vnd.google-earth.kml+xml'; But it still does not work any idea?
 
@WorkingPig sorry, nobody here really uses wordpress. You should probably try asking on IRC: codex.wordpress.org/IRC or on wordpress.stackexchange.com
 
2 days ago, by Paul Crovella
remember kids, @PeeHaa is our local wordpress expert. make sure to ping him if you have any trouble
 
:D
right
 
@PeeHaa hey :D
 
@Gordon @tereško I stand corrected. turns out they only enforce the action being appended to the method name, it doesn't matter if its Action or actTion ActiON or aCtiOn
 
10:46 AM
or you could help us on our quest to give @PeeHaa an aneurysm
 
Wait I have just the right plugin for you
 
Can It be done without one
 
@PeeHaa a butt plugin?
 
@WorkingPig Why does it need to be without one?
 
@PeeHaa Idk my boss don't want any plugins
 
10:48 AM
but he wants wordpress :D
 
Just wait
Once I found the plugin I have used with much success every single time he will agree to use iut
 
Tnx
@WorkingPig ^^
 
Best plugin on the market
 
He said "If plugin can do it you also can" :D
 
10:50 AM
!!alias wpplugin say wordpress.org/plugins/uninstall
 
Command '!!wpplugin' aliased to '!!say wordpress.org/plugins/uninstall/';
 
@WorkingPig Check the plugin, I'm sure you can do it by hand too if you prefer it that way
 
@Patrick thanks just used it
 
Hello guys I want to disable https only on 1 page here this is livechat.php

Currently i have

<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /

RewriteCond %{HTTPS} !=on
RewriteRule ^ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]
RewriteCond %{REQUEST_URI} !/livechat.php
RewriteRule ^index\.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
</IfModule>
 
copy paste, its wordpress any how
 
10:50 AM
THis is giving me internal server error
 
Fix the page to make it tls compliant instead
It's 2017
 
@PeeHaa what that means ?
 
What part?
 
This line you gave as my answer right ?? "Fix the page to make it tls compliant instead"
I dont understand it what it says
 
It means. Don't disable https on any page
 
10:54 AM
But i need this
 
Instead fix the reason you want to do that
 
i have to make webhook request on that page
 
What is a webhook?
 
sometimes my https not responds correctly so i will use only this page with http
 
And what does it have to do with http?
Fix the issue instead of working around problems
 
10:56 AM
Okk let me explain
 
morning Leigh
 
morng @Leigh @Jimbo
 
i have a another server i want to call this url when a specific event happens in that server so i am using https but some of those calls not getting proper response. So i just want to disable https on this page only
so that i can access this page via http
 
10:58 AM
how about, fix the calls that are not getting a proper response
 
...
You keep doing that cowboy programming thing
I am not going to help people do that
Just fix issues instead sweeping stuff under the rug
Or in your case on top / in the rug
 
Ok sorry for this
but can you just simply tell me how to do that
 
No :)
 
:D
RewriteCond %{REQUEST_URI} !/livechat.php
 
Here you go: xyproblem.info
 
11:01 AM
why this line giving me internal server error
I know what a xy problem is a good guy(Gordon) once told me about it, but this is not an xy problem
 
yes, it very much is
 
i just want that my htaccess should redirect 1 of my page to http and others to https
 
so you solved the first problem ?
 
that is the first problem
 
why can't you use https for everything like a reasonable adult?
 
11:04 AM
i am using it currently
 
have you ever looked at the documentation for RewriteCond, or any of the module at all ?
 
The first problem, would be to ask for help with the "not getting a proper response" that you apparently cannot fix on your own
That is the X, the rewrite is the Y
 
@JoeWatkins No, i know nothing about it
 
There's the first thing you should fix
!!? mod_rewrite documentation
 
Search for "mod_rewrite documentation" (https://www.google.com/search?q=mod_rewrite+documentation&lr=lang_en)
• mod_rewrite - Apache HTTP Server Version 2.4 - The mod_rewrite module uses a rule-based rewriting engine, based on a PCRE … and examples, are prov… (http://httpd.apache.org/docs/current/mod/mod_rewrite.html)
• URL Rewriting Guide - Apache HTTP Server - This document supplements the mod_rewrite reference documentation. It describes how one can use Apa… (http://httpd.apache.org/docs/2.0/misc/rewriteguide.html)
 
11:10 AM
@DaveRandom second.. or third probably
 
I didn't read the backlog
although actually, "redirect 1 [path] to http and others to https" is a thing that you need for ACME
 
trying to use rewrite without a single clue about how it works could be the root cause of the "not getting a proper response" problem ... regardless, the first thing that needs fixing is attitude ...
don't ask a question and then ignore the answer, don't ask a question and assume the answer either ... if you are told you are asking the wrong question, then it's possible you are asking the wrong question, you should consider that ...
before "gimme the codez" ...
 
Strange behavior when casting the types of functions/methods – #74289
 
Sorry guys i didnt mean to hurt anybody.

Done it, just had to put that line above 2 lines only simple. ;)

<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /

RewriteCond %{REQUEST_URI} !/livechat.php

RewriteCond %{HTTPS} !=on
RewriteRule ^ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]

RewriteRule ^index\.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
</IfModule>
 
never use Sonata
it's a fucking buggy piece of shit
 
11:17 AM
you are hurting nobody but yourself ... and possibly your clients ...
 
@JoeWatkins just add him to the ignore list
if a person is not willing to understand, then it is not point in wasting your life
 
I know you're right, but my ignore list is empty ... possibly just as a result of my British-ness ... it seems awfully rude to ignore someone ...
 
^ php devs being underpaid compared to other langs
 
Ok let me try to ask a genuine question now.
What are possible reasons that SSL is not giving proper response (I.e. 200) for 4 out of 1000 response
Server is amazone EC2 with ubuntu 14.04
 
11:22 AM
@JoeWatkins Sorry man
Now is that a xy problem also ?
 
you know we can't actually fix it for you, or guess what is going on ... however, here are some non-stupid questions you might ask (of yourself) ...
what response is it giving ?
what are the relevant log lines for those errors ?
are you able to use the information in logs to reproduce the error consistently ?
are you able to reproduce the error in any other environment that closely matches production ?
is there any hints on relevant mailing lists for relevant software that this may be a known bug or configuration issue ?
@PaulCrovella ha ... my cloak of civility is getting thinner by the year ...
 
@tereško SonataAdminBundle ?
 
yes, it's a mess
 
^bundles ...
 
the time I spent customizing it could have been used for better things.
 
11:31 AM
Drugs and booze
amirite
 
Or Guitar
 
what I am currently trying to get to work is Sonata's Formatter bundle
and something is not working ... as in "can't make hello world" level of "not working"
 
@JoeWatkins where's the code (in src) that actually validates zvals against user-defined function/method argument types? I've been looking for ages but I can't seem to find anything relevant other than compile-time logic
 
hi guys in PHP i have a parent class and then a child class. the childclass has a method that extends the parent class method (same name) how can i get the child to call the parent method. i thought self::getParent(); would work, but that just returns the classname.
 
parent::methodName()
 
11:42 AM
ahha, i new it was something like that, thanks.

how much of a NO NO is this? Or is this an ok thing to do?
 
Depends what you are doing, I often find that it's code smell but there are legitimate use-cases
 
@Andy Depends on what the parent and child represents
 
i'm extending a Symfony form to have an additional field within the admin vs. duplicating the class.
e.g. a user form for signup has name, email etc... but within the admin form i have a checkbox that says "isadmin" seemed the easiest way to add this functionality
 
In that sort of case, where you are augmenting or transforming the return value of the parent method, it's probably fine. Although also you should consider decorating it rather than extending it.
!!? composition vs inheritance
 
Search for "composition vs inheritance" (https://www.google.com/search?q=composition+vs+inheritance&lr=lang_en)
• Composition vs. Inheritance: How to Choose? | Tho… - 12 mei 2015 - The biggest point of confusion and contention seems to be composition versus inherita… (https://www.thoughtworks.com/insights/blog/composition-vs-inheritance-how-choose)
• Composition over inheritance - Wikipedia - Composition over inheritance (or composite reuse principle) in object-oriented programming is ….. o… (https://en.wikipedia.org/wiki/Composition_over_inheritance)
 
11:45 AM
Oh there are probably some crappy resources there, anyone got a known-good one?
 
"unit tests like interfaces" why?
 
5 messages moved to Trash
 
@tereško why do you need that formatter-bundle ? WYSIWYG ?
 
does it matter?
 
ftr where the web is concerned, what you see is never what you get
 
11:49 AM
@DaveRandom i read the first one i think i have a bit of an understanding. how would you use composition in the user example i gave above? or is this too simple a task and inheritance is the best one?
i see composition as traits ... or am i way off piste?
 
Yes
 
that's one approach, although you should also look up "decorator pattern"
It depends on the task at hand @Andy. If you need a thing to be working 5 minutes ago, just use inheritance, it is the quickest way. If you have a bit of time to invest in learning about/experimenting with composition, then you should do that, it will be worth the investment.
Composition (done well) generally results in much more maintainable code
it's also much more flexible
 
kk thanks @DaveRandom as always when i ask questions on here i always come away witha million and 6 thing to learn :) but that's the point right?
 
:-)
 
the only reason I see to use formatter-bundle is if you need the sonata_formatter_type form type, for all other needs, there are better ways.
 

« first day (2349 days earlier)      last day (2585 days later) »