« first day (1752 days earlier)      last day (3189 days later) » 

ThW
10:01 AM
Morning
 
Morning @ThW
 
... let me check guides about LSP...
 
Jimbo monrin
 
your "guide" is simple. LSP states that for any class X you can take any of it's subclasses Y and your program should work
that's why it's contravariance in argument types
 
10:06 AM
Or, forget inheritance and use interfaces - depend on abstractions rather than concrete implementations :-)
 
15
Q: Why does PHP allow "incompatible" constructors?

Emanuil RusevHere's a couple of snippets: Overriding constructor method has an extra parameter. class Cat { function __construct() {} } class Lion extends Cat { function __construct($param) {} } Overriding (regular) method has an extra parameter. class Cat { function doSomething() {} } clas...

 
10:18 AM
Ugh, hate having to breath near an unwashed person. People should shower before leaving their domiciles.
 
@Fabor You talking about Laravel users again?
 
heh
 
@Danack I have run your command, what am I looking for?
Mysql is still running on bloody port 3307
 
10:38 AM
@Jimbo basedir is the directory that holds all files and then one of the others may have the actual cnf file name?
Also, monring.
 
Wahay, I solved it!
Took half a bloody day
So it's the MySQL preference pane that's launching mysqld
This solved it, I had to edit the bloody plist file as it's hardcoding the port
 
HI guys
i am receiving xml from the client url and i am converting the xml data in the form of html and showing to my users.
in xml i am having one node which will have some text followed by one url. I need to change the url as hyperlink.
ex: <Description>To complete request please visit https://www.url.com/complete</Description>
Can any one help me how to do it
 
hi guys
While working on form I am facing a critical issue .. when I submitted a form I redirected to listing page but redirection is taking long time like if process is completed in 2 secs ans then redirection is taking 11 secs so total is 13 secs to load to redirect and display page...
is this code problem or http redirect issue?
I used
header("Location:$link",true,301);exit();
at the end of the script..
 
What comes between C-Bug and E-Bug?
 
@Jimbo how did you install it to get that horribleness?
 
10:45 AM
@Danack My downloading the official x64 dmg from the mysql site and running it
 
10:57 AM
Does Zend\Db\Sql use prepared statements or not?
 
@sectus why are you thinking of using that?
 
@Danack , I have legacy project where all queries uses Zend\Db\Sql queries.
 
Hello everybody
 
Hi Dr. Paner
 
11:15 AM
@Fabor F-Word?
 
@PeeHaa nope, but that would be nice. :P
 
@Tyrael not that you'd get a lot
:P
 
I think php7 is the most "sexy" release in the recent years. the next php 5.3. :P
so there is a lot of discussions/news about it
comparing to like 5.6 which had a lot less of buzz
 
@Tyrael Do you ever question your life? I know I did, when I called ternaries "sexy"
 
good question, sometimes I do, but not about stuff like this
(and yes, I know that was a joke)
 
11:28 AM
:D
 
@Tyrael :-)
@Tyrael Yeah it totally is. Not in the least because of return types, scalar hints and strict types
 
I just think that some stuff are overhyped, and that we get less applaud when we ship a release which just works and doesn't have much BC problems compared to when we ship a bunch of features, even if nobody is really using them (traits) or if there is a bunch of bugs in them (traits, finally, etc.)
 
And the performance. Oh god the performance :)
 
but I think php7 is really nice
 
It's a proper major version imo
 
11:30 AM
yep
and I like the fact that it seems that we did not delay it
I was really afraid of that
 
But, does PHP 7 have Unicode?..
:P
 
@Tyrael Actually, I got the impression from hackernews (so who cares anyway) that a lot of other people are amazed at how PHP maintains BC compared to other projects.
 
Asshole @salathe :D
 
that we vote down 5.7 then we delay 7.0 for like a year or something
 
haha
 
11:31 AM
my impression from hn was that they don't really like php
or willing to accept that we are doing anything good
usually when php comes up the upvoted stuff is that eek, you should be moving away from that
 
Mostly, but people were aware that other projects were fucking over there users when it's not absolutely necessary.
 
glad to see that some people are willing to look past the circlejerk
 
hahahahaha
https://www.reddit.com/r/PHP/comments/3fdwgj/will_learning_laravel_help_me_understand_php/ctnvpct #frameworkWars #php
3
 
@rdlowrey I keep running into this problem, do you have any suggestion of a good way around it:
function foo(callable $callable) {
    $injector = new Injector();
    $injector->execute($callable);
}

class SomeClass {
    function instanceMethod() {...}
}

foo(['SomeClass', 'instanceMethod'])
> E_STRICT: [2048] Non-static method SomeClass:: instanceMethod() should not be called statically in file...
 
hi
why header function is slow .. anybody got any idea?
 
11:37 AM
@John it's not slow
 
#laravel #frameworkWars #php http://t.co/0FstmV9TrS
 
problem solved
 
@FlorianMargaine sorry ?
 
Obviously I could just remove the callable type.....but then errors happen later in the program. So is there a way to check if something is a callable acceptable to Auryn.
@John There is probably something weird going on with your computers. You may need to use some low-level debugging tools like wireshark or strace to figure out what is going on.
 
@Jimbo only one question remains: who does not have a sofa? ^^
 
11:38 AM
Those functions are not slow in general - only when something is borken with your computer.
 
nice
if any php framework would turn into a church it would be laravel
10
 
I'll take "things that have already happened" for $600 Alex.
 
yeah, they already have the charismatic leader
 
s/charismatic/asshole/
 
@Danack I have tried on server only and its slow there only .My localhost doesn't have this problem...
 
11:40 AM
Yes, almost as if it's something peculiar to the server.
 
Damn. We really need to do some more work on feedr
Can't I just pay someone to do shit on it? :P
 
@PeeHaa Mate, you can pay people to do anything on you these days
 
lol
 
@Danack how can I identify that this issue is related to server and not the code ...
 
> Laravel will help you learn MVC and application development better, rather than PHP per se.
 
11:43 AM
@John I would make a really, really simple test case, e.g. a file that contains only:
header(whatever values are appropraite here);
echo "This is a test.";
and see if that still has the issue. If it does then contact your hosting company and ask them what is wrong with your server.
If that doesn't show the issue, then you need to add stuff one piece at a time until you isolate what code causes the issue.
 
@Danack Yes i have tested that too ..like you said above and it was printing that echo statement
 
You could also try investigating the issue with wireshark.org and linux.die.net/man/1/strace
 
@Danack after header() it took 11 secs to redirect
is it related to more data in database?
 
@John You just said something different - before you said it took ages for the header to send, which is not the same as taking ages to redirect.
 
Where can I find the php7 timetable again?
 
11:47 AM
I suggest downloading wireshark so that you can actually understand what problem you are having.
 
I can never find it for some reason :(
 
lel thanks captain obvious
 
Your google powers are weak old man.
 
@PeeHaa I know, it depresses me and also makes me laugh that they're not going to get anywhere any time soon in their careers
 
11:48 AM
@Danack :D
Found it
 
I'd rather help people though
 
@Jimbo Very slowly but shirley the community is moving away from that stupid concept from what I can see though
 
okay thanks guys ..let me check that s/w
 
I am serious... and don't call me Shirley.
 
@Fabor hi shirley
 
:P
 
posted on August 03, 2015 by kbironneau

/* by HadesCH */

 
moin
 
Afternight sir
 
12:05 PM
Shut yer face, some of us have real jobs :-P
 
moin
 
Dave is always quieter Monday morning. IE when he actually does some work.
 
When you write IE like that it just reads as internet explorer
 
@Danack Haha
Confused about the car at the end now though
 
IE is old news. It's all Edge now.
 
12:14 PM
Lmao ikr. :P
 
> "That's why I need a name that's cutting-edge, like CutCo, EdgeCom, Interslice."
 
Is edge any good?
@Fabor D-Bug :D
 
@Jimbo do it yourself LPG gas conversions are bad: youtube.com/watch?v=zdzCY_CSx6k
 
Of course it was Russia
I'm flying to Russia in ~ 17 days too.
 
File nm:- LOGSSS:: Function nm:-ENTRY TIME Time:-03-08-2015 17:42:53MSG:-<b>Total Execution Time:</b> 0.0426640510559 Secs\n
File nm:- LOGSSS:: Function nm:-IMAGE CREATION TIME Time:-03-08-2015 07:12:55MSG:-<b>Total Execution Time:</b> 2.37041592598 Secs\n
File nm:- LOGSSS:: Function nm:-MIDDLE TIME Time:-03-08-2015 07:12:55MSG:-<b>Total Execution Time:</b> 2.42922687531 Secs\n
File nm:- LOGSSS:: Function nm:-END TIME Time:-03-08-2015 07:12:55MSG:-<b>Total Execution Time:</b> 2.86929297447 Secs\n
 
12:16 PM
@Fabor In soviet russia, Russia flies into you
 
thses are the timings I am getting before redirect
 
heh. I wish it'd climb a mountain for me instead. My legs are tired just thinking about it
 
i am using this code to check execution time... stackoverflow.com/questions/535020/…
this is about header() function
after END TIME log I called header()
 
@DaveRandom Yearite
 
Abe
@LeviMorrison So if you call valid() before anything else, should it return false? sounds a bit odd to me
o/ @all
 
12:27 PM
\o
 
OH: "We're in the process of moving from Ruby on Rails to Software Engineering."
10
 
hahahaha
 
12:43 PM
wat
 
@Gordon OH: "We're in the process of moving from PHP to a programming language."
 
mus
hello everyone
 
Staph answering dupes @bwoebi! :P
 
mus
can someone help me?
or just guide me to the right direction
please!
 
@mus just ask ...
 
mus
12:47 PM
ok thanks
I'm working
on a store
where I sell some stuffs
I already made it
 
@PeeHaa I didn't search for "recursive" when quickly looking if it'd be a dupe ^^
 
mus
but now I want to add expiration
to every user
 
@bwoebi :-D
 
mus
now I add durations to products
 
Please be aware that punctuation often works better than new lines
 
12:48 PM
@PeeHaa Also, need more votes to dupehammer everything.
 
1 message moved to Orphan GIFs
 
mus
ok sorry
I just need some guide please
so I can go start coding
 
Ask your question and if somebody is here and wants to help, they will
 
mus
ok sir
 
Why do first-comers never learn it…
 
mus
12:55 PM
now I have a store where I sell products
I added durations
expiration time
and I don't know what to do
should
 
38 messages moved to bin
Instakill
 
mus
I add a column
in mysql
 
@bwoebi reading is hard
 
mus
for every product I sell
 
Also think about your actual problem before writing it out
There is no need to spread it out over 100 lines
 
mus
12:56 PM
:/
 
@SergeyTelshevsky reading? Rather call it common sense…
 
mus
why ppl are like that
 
@mus better yet ask the question on stack overflow and paste the link here
 
8 messages moved to bin
 
@bwoebi well, it's common sense if you're used to public chats in general
 
mus
12:57 PM
how can I add expiration date
for my products
 
@SergeyTelshevsky Some people actually do that IRL. WHere they start their sentence... annoying pause ... and they continue talking
 
mus
should I add another column on the table users ?
 
@SergeyTelshevsky Well… SO was the first public chat ever I was in… but I'm sure I didn't act that way when I came here two years ago…
 
mus
but if I add a column on table users it will work for only one product I sell
 
morning
 
mus
12:59 PM
but I have like 5 products on the store
so how to add expiration date for every products in the users table
 
@PeeHaa Example :P
 
heheh
@NikiC Mornign
 
mornin'
 
Well, not quite teh example I was after but right person
 
@tereško o/
 
mus
1:00 PM
:/
 
Abe
browsing the internet with #firefox http://t.co/SfOTSJVxv0
 
@Abe That's not a firefox
 
Abe
That's not the internet, too
 
They still could've used an actual firefox crapping
 
user895378
morning
 
1:06 PM
morning @rdlowrey
 
Abe
o/
 
@rdlowrey o/
 
@rdlowrey |\
 
Not sure I would approve of setting a fox on fire @NikiC :P
 
How about setting @NikiC on fire?
Not that I'm advocating that either
 
1:15 PM
we all know who's mom is on fire (:
:p
 
@ircmaxell WHat's the sigh about? I use something like that too
 
> There is no way to decode the output without knowing the salt (refer to how hashids works). The only known way is to use a brute-force attack.
meaning that whoever built it has no idea how cryptography works
 
Ooooh yeah. I don't use it like that :)
 
@ircmaxell No they just don't give a shit.
> However, when people search for a solution, like a "youtube hash" or "bitly short id", they usually don't really care of the technical details. So hashids stuck as a term — an algorithm to obfuscate numbers.
 
1:25 PM
:P
 
@AlmaDo The Followill brothers, presumably
 
What did I do wrong if git isn't fetching remote branches?
 
@NikiC Does it have the correct remote?
Captain obvious does it again
 
Yes
I've just recloned it now
Probably something f*d up while unshallowing
 
@NikiC What is "unshallowing"?
 
1:35 PM
@PeeHaa converting a shallow clone to a full clone
 
@NikiC ty :)
Isn't it easier in that case to just burninate and do a full clone @NikiC
Shallow only pick commits currently in head I assume
 
@PeeHaa yes, that's what I did in the end
Because I couldn't get it to fetch remote branches anymore, apart from master
 
Travis officially added 7.0.0beta2 \o/
 
Can we also target that in travis config or is it still just one php 7 to rule them all?
Also speaking of which @JoeWatkins I just used anon classes in my unit tests <3
Where's the guy BTW. Did he get lost again on his way to the store?
 
user895378
The dumbest composer error:
 
user895378
1:43 PM
Fatal error: Uncaught exception 'InvalidArgumentException' with message 'A non-empty PSR-4 prefix must end with a namespace separator.' in /home/daniel/dev/php/                                        nbsock/vendor/composer/ClassLoader.php:225
 
why dumb?
 
user895378
Because composer should be smart enough to do this when generating its autoloader:
 
@rdlowrey Fixing it themselves would be as much work as printing the error message :-)
 
user895378
rtrim($namespace, "\\") . "\\";
 
1:44 PM
Holy shit I love you @Danack
 
I know.
 
You better
 
/way to show the punchline google.
 
:P
 
user895378
hehehe youtube ruins all the good jokes
 
1:47 PM
@Danack That's SE, they never touch chat and for some reason when they decide to they make something worse instead of fixing something :-(
 
user895378
I only just realized this last week how all these packagist libs attain such unrealistically high numbers of installations ... because people pull in deps every time there's a travis run.
 
user895378
Which effectively makes that count completely useless if you care about measuring real impact.
 
user895378
So if you want to create package with enormous numbers of packagist installs just make something that people will use in unit tests.
 
user895378
@Danack hmm, hadn't seen your message. Will look now.
 
user895378
1:50 PM
@Jimbo wait, is @Jimbo working on a sweet Errol Flynn 'stache? Super-legit.
 
@Danack That's an instance method being called statically. What else are you expecting to happen?
 
user895378
@Danack Does the execute() call do any typehint provisioning of the arguments when it invokes the function?
 
@DaveRandom Not expecting something else to happen, I just keep forgetting that i can't use callable as a typehint, and so can't prevent bogus values being used.
 
user895378
Because it's the callable typehint that causes the error
 
user895378
You can keep the callable typehint if you "pre-make" the executable and pass that in instead of the array
 
1:53 PM
Yeah - it's just annoying to not be able to use the callable typehint, when it's "almost" a callable.
 
But it's not callable. Either you need a valid callable, in which case you can use the typehint, or you don't, in which case you can't. You can't use things because they almost describe what you are doing... :-P
 
Strict/weak/close-enough - type-hinting.
 
Type-desiring
 

« first day (1752 days earlier)      last day (3189 days later) »