« first day (1010 days earlier)      last day (4163 days later) » 

21:00
@MadaraUchiha thanks
@DaveRandom nightly
You like my German with an English twist? :-P
@DaveRandom perfectly perfecting :D
you like my english with a german twist?
but you know what?
rarely
terms used which are thought over are of roman roots
those not thought are germanic
and that was said by someone in english IIRC
21:04
I feel like phpunit blocks on a Javascript yes/no popup in my tests. Does that make sense? If yes, how to skip it?
The Brits are particularly bad at foreign languages, there's a really sad culture of "it's OK, everyone else speaks English" that runs throughout our society. Foreign languages really take a back seat in our education system, most people don't start learning any at all until 13-14, and most of them only take a couple of years of either French or German
Or Spanish
@cheesemacfly selenium?
@DaveRandom E_TOO_MUCH_ENGLISH (in the world)
@DaveRandom But I think that comment was regarding English language. The words with a Germanic root and the terms with a Roman root - in English language.
Most of modern English is by these roots.
Myself, I have real difficulty remembering that other languages rarely pluralise things by appending an s
21:07
@DaveRandom whats so troublings?
@hakre I wish I could tell...just started with this today using Symfony2
So I guess that's a no
What I am doing is just calling phpunit and in my test I select a link and call click($link) but the redirect after doesn't validate (and there's a yes/no js popup when clicking on that button)
I like this one ... make sure to view source
21:22
@Gordon hehe
@Orangepill But how about if I have tabular data? Should I use the tables to do the layout of that data? (and yeah, the source is quite funny)
21:38
Hi all.
Evenin'
@cheesemacfly hmm. Well PHPUnit straight to the point is PHP not JS.
The JS part normally is involved with the Selenium Driver.
@Gordon see as well: toodumbtoclick.com
@Gordon lol
@Orangepill well site's i've desinged with tables still work responsive today for all kind of devices.
and it's years ago.
So: It was not that bad.
Fun Fact: HTML5 / CSS3 is trying hard to adopt what did tables in HTML 3.2 for webdesign. It's not yet booked across all browsers (tables are since years).
@Ihsan good evening
@hakre To you too.
user1125394
21:46
is it stupid to call multiple times [$acc], Vs having a temp variable $a = [$acc] ?
@cx what do you mean?
And why should something be stupid?
I guess he means about localizing a global or array element for avoiding redundant accesses. Is that so?
or any object - sub ->sub n
user1125394
@hakre in the fact of repeating an action that requires time for php
@cx well, generally the computer is fast with things to repeat, so it most often is fine because the computer has been made to repeat things.
So stupid is good for computers, because they are.
@hakre :)
user1125394
21:51
@hakre ok
Stupid is not good for your code. So probably give an example of your code and you get better feedback :D
user1125394
$st = $pdo->prepare("SELECT symbol, SUM(pnl) FROM orders WHERE concat(broker,broker_user)=? AND (type='BUY' OR type='SELL') AND ct>DATE_SUB(NOW(), INTERVAL 1 MONTH) GROUP BY symbol");
$st->execute([$acc]);
user1125394
6 queries like that
@cx add a space before and after >
user1125394
k
21:54
so you want to reduce duplicated code, right?
user1125394
not for that, the queries are really different
@DaveRandom well, the common failure I'd say. With English you're in a comfortable position but for education it's not good to take the most easy path.
13 / 14 is probably over the median to start with foreign languages.
user1125394
but related question :p, how could I parametrize that expression above to call it with SUM(pnl) or with SUM(ratio*pnl) (another column) else I end up with repeated code
user1125394
or just a $ratio , variable, beging empty or 'ratio*'
that's a good question.
because to really answer that, it requires a good example code.
user1125394
21:58
"... SUM($ratio pnl) ..."
user1125394
ugly :p
it's not just string substitution you're looking for.
this is a bit more
user1125394
oh
user1125394
I don't know if it's a pattern or not, but eval.in/38422 seems cool
user1125394
22:03
function stats($pdo, $acc, $r = 1){
user1125394
ah you mean to make it more object-oriented, well will see that later
@Mr.Alien I am lost in development. ;)
@cx that is string substitution for the SQL statment.
C'ya all. bye...
It's limited for prepared statements which is a pitty.
@Ihsan nooooh, don't get lost :D
and there is not much wrong to try things object oriented.
user1125394
22:20
@hakre ow shit..
@cx what do you mean? shit?
like crap? or just too much?
user1125394
you said it's limited for prepared ... but I didn't test the code yet,
user1125394
but I guess it won't work :)
well, there's nothing better than trying and playing your own.
if you run into any kind of problem just ask here in chat.
@hakre :-P
22:31
;)
@hakre I don't know, it might be better by now, it's a while since I was at school
I hope it's better now
well school sucks regardless which country *gg*
Indeed
yeah, but that sentence is cheating as we're all older and out of school.
school actually was fun making the best out of it.
:D
Read: taking drugs and not showing up?
That's certainly what most of my later school career consisted of
22:34
ehhhhm. no.
I'm not so much into drugs.
Me neither any more
I always said someting along the lines, if you can't produce the drugs for your own (like inside the body) you're not human enough.
but today I'm probably consuming too much alcohol.
And just to make it clear: Coffee is not a drug at all *gg*
22:37
I'm not sure about that tbh, alcohol in particular is way more damaging both to society and health than quite a few illegal drugs
> throw new SomethingWentBadlyWrongException('No.'); <-- historical me made present me giggle
@DaveRandom I asdlfasdlfjasöldf asf think thatÄs a known fact .... indeed.
:D
@Danack what's the problem with automated headlines and overlays?
They walk among us
@hakre looks creepy
22:41
@Jasper yes, indeed. press didn't cover it that creepy but they published it.
like the kid was dead already.
I lost you there, but I suppose it's not something that really matters anyway
I just wonder why US users are interested in royale UK births.
any thoughts on the use class, use interface, use trait in addition to use function that someone suggested on internals? I kinda don't like it, especially if it won't actually do anything special.
use functions?
mustn't it be call function?
That's completely pointless IMO, the names of the entities should speak for themselves (as in it should be obvious what they are without the modifier)
22:44
@hakre context
@hakre because they don't have their own? Either way, I just meant the (I suppose accidental) color inversion makes the picture look creepy
user895378
@igorw I'm not crazy about it ... seems like a lot of extra mental work I have to do.
You could always do use /* class */ \My\App\Foo; if you're particularly bad at naming things
@Jasper yay, perfect like x-ray vision :D
Date: 2013-05-02 plus arrrefffzeee? why not earlier?
@igorw Is it really necessary to have the function keyword in there anyway? Couldn't you just do use \My\App\do_stuff; like any other symbol?
22:47
posted on July 22, 2013 by Evert Pot

As a good web citizen, I try to always follow redirects. Not just in my browser, where I actually don't have all that much control over things, but also a consumer of web services. When doing requests with CURL, redirects are not followed by default. <?php $curl = curl_init('http://example.org/someredirect'); curl_setopt($curl, CURLOPT_POSTFIELDS, "foo"); curl_setopt($curl, CURLOPT_POST,

@DaveRandom read the FAQ
@igorw sounds easy to introduce. however the impl. is missing. you are asking for support? I'd say, let's try this.
Personally I'd rather have less T_FUNCTIONs that we have already, not more. I would like to be able to declare methods without it
@igorw Ahh right I forgot about that
I guess there is no other way around that
@Hamster sure looks like a troll...
@Feeds so; to; follow; redirects; requires; you; to; enable; javascript; =?; go; fuck; your-;-self; :D;; .... : . ; . ;; .- :: . . . . . ; . , .
22:51
@hakre my point is I don't think use class foo; is a good idea
@igorw but you don't write that.
@DaveRandom I completely agree, but this is the best BC solution I have seen so far.
@igorw well, I like the intention to pinpoint what using in a scripting language means.
@Feeds wow... just wow
@Jasper not really. see http bis.
22:56
@igorw namespaces as implemetned aren't a good idea
@ircmaxell very true
I also like how you say "implemetned" as in not correctly implemented
@Feeds So to sum up: Don't use cURL, it sucks.
@hakre Are you saying I should look at the http specification? If so could you just tell me what is relevant to this, rather than having me read the whole thing?
What's the polite way of asking "Is it dead yet?" wiki.php.net/rfc/anonymous_catch
23:01
Hello, Is there a way i can search through this with multiple words, sort of..
$query = 'SELECT * FROM search WHERE company LIKE "%'.$search_string.'%" OR name LIKE "%'.$search_string.'%"';

Let's say in company we have Razer and in Name we have Mamba 2012 - I want to search for Razer mamba 2012.. How would i do that?
@Jasper hmm. I said that, the bis part, however, you might be right, that might require you to read the HTTP part firsthand.
I'm not so sure if that would make sense indeed as you already complain :-P
and take care the bis part is not binding.
recent relaease of a related HTTP group goes in another direction.
so what I should say?
it's all fucked up to it's boundaries gg
fuba
@Danack I hope it's dead. Simply say anything… If nobody says anything, it never will be alive again…
@JesperJacobsen With difficulty. I mean for a start LIKE is always slow, and the solution to that particular issue would be even slower. But for completeness:
@DaveRandom Maybe it is slow, but how would it be done? It might be handy to know anyways :)
@hakre Ah, I see. I googled httpbis and got to a page filled with documents on the http protocol (both 1.1 and 2,0) and didn't know what to read
23:05
@Jasper yes, it's confusing on first sight.
@bwoebi I presume you meant 'simply say nothing' ?
SELECT *
FROM search
WHERE ? LIKE Concat('%', company, '%')
  OR ? LIKE Concat('%', name, '%')
aka let sleeping dogs lie.
(never said this is easy)
@JesperJacobsen ^^
Where both params are bound to $search_string
23:06
@Danack yes (the fact that it is night doesn't improve my English...)
But I must make it clear, I don't recommend that, it will be sloooooooooow.
what is a better alternative? and which params bound to $search string?
like is pretty slow anyway if your db grows
You'd be much better presenting the user with two separate fields, one for each column
or just one total? - would that be better?
23:08
if you're running into a concrete problem, best you can ever to is to admit it.
@hakre Anyway, how does it relate? Does it show why curl can't just do redirects with more ease, does it give one an alternative to using curl like that, or did you just mean to show how much more things are messed up than that article describes?
@Jasper well, the problem with the article (not curl) is that by default the location header requires an absolute URI. The article ignores that.
So the article is at fault. Not curl - just the article.
would it be helpful to have the question score in front of the title on the backlog?
As the article has overlived itself, it tries to blame (read: explain) curl for that.
This does never work out well.
cURL is also at fault for having a shocking API
23:11
@crypticツ screenshots / mocks to the compare :D
@DaveRandom It's hip!
It makes you puke rainbows
@Ocramius hip? I don't know this sh*t.
@hakre bleh, ok will do a mockup on the dev site, but got some chores to do. =oP
@Ocramius puking rainbows is a lie D
@hakre it makes rainbows puke you
23:11
@crypticツ okay, well just try
And it is true that changing the request method to GET when a 301 is received in response to a POST request is a violation of the HTTP spec
But that's not exactly news, and cURL is in the majority by doing that
@DaveRandom curl does that?
never liked it.
it's okay, but just no love.
According to that article it does, I don't know if I've ever tested it
but it's only following the behaviour of browsers by doing that anyway
@DaveRandom or to say it the other way round: who the f*c*k*ing hell cares?
@hakre there's one asterisk too much.
23:14
@bwoebi asterix is zero or more chars.
lol
anyway need to produce a commit.
regardless of state of mind
but can do it next morning
so gn8
@hakre when you're talking about regex write regex :o
@bwoebi ~.*~ :D
@Ocramius only available in Soviet Russia
so now what should that comment say?
user1125394
is it possible that SQL could return a 0, when no match in a GROUP BY (it would easy my stuff :)
23:15
@hakre everything is too much. maximum CPU time for regex exceeded.
anyway, it's late
and @Ocramius: WTF great salami in italy :D
@hakre I actually knew that (yeey). So if curl gets a response with the location header set to an absolute URI, it does properly handle the forwarding? If so, the article is a negligent in not mentioning it, but after the mention the article would have been the same. After all, the problem is that the world doesn't follow the standard (and maybe that curl doesn't do the deviation from the standard the rest of the world does)
@hakre that we agree upon.
time to stop the nonsense, gn!
@Jasper well the funny part is, even that relative redicecting is quite-like accepted, the concept is broken. so it hardly makes it into the next revision of the standard.
@Ocramius indeed!
@Ocramius nonsense? maybe ?!
gn!
user1125394
transforming ['foo','bar'] in ['foo'=>[], 'bar'=>[]] ?
23:19
@cx array_map.
user1125394
yep k
@hakre Why is it broken? (not disputing it, just wondering)
(and just tell me when my questions are annoying, I'm not that good at figuring out when I need to stop asking question (especially online))

« first day (1010 days earlier)      last day (4163 days later) »