« first day (1413 days earlier)      last day (3538 days later) » 

9:02 AM
@BoltClock oh my bad
 
@Fabien The idea is that my friends are travelling to the US and back, so no one has to pay for shipping a phone to Israel (plus customs, since it's a phone)
 
@SecondRikudo Ah, I see.
When are they headed there?
 
Some sort of con, I think about Cassandra
 
9:22 AM
@SecondRikudo what-if.xkcd.com/21
 
Guys recommend me on what to code in PHP.
Something that's advanced.
 
pthreads
 
Whats pthreads?
 
something advanced
 
Please describe. ;)
What does it do? :L
 
9:24 AM
pthreads is something wonderful but nobody knows what it is
(:
 
it turns blue
 
I thought that was black :p
 
Something a bit more baisc pls
I don't understand that.
 
9:27 AM
ok...
 
@Gordon ...because of how much swearing is involved when if doesn't do what you expect?
 
learn if and else then
 
@Florian lmgtfy is considered rude
 
@Gordon in main? yeah I know
 
@DaveRandom actually it was a movie quote :)
 
9:28 AM
lol
you changed my message :D
 
if(something) { do something } else { do this }
@FlorianMargaine happy? :L
 
if ($isFriday) { file_get_contents('http://rebecca.blackfriday/'); } else { do_some_work(); }
 
@HassanAlthaf good. Now learn about SOLID principles, and why dependency injection helps in that
 
@Gordon oic
 
hello everyone
Anyone familiar with Pimcore in here?
 
9:33 AM
> Multi-Channel Experience and Engagement Management Platform
^ sounds like sales bullshit to me
I bet the website has the word "synergy" on it somewhere
 
@GNi33 no
 
hehe
Well, it offers an ORM and it's based on ZF1
 
ORM and ZF**1**
wow
 
inorite
 
I can't get my head around a SQL issue though, maybe someone could help me out
 
9:35 AM
@GNi33 stackoverflow.com/users/2541932/timg is but he never visited chat before. You might try on Twitter: twitter.com/timglabisch
 
@PeeHaa you missed one star. ZF{uck}1{ng}
 
I knew I'd screw up my question, you guys know what I mean
 
@GNi33 You can always ask, the worst that can happen is you won't get an answer...
 
@FlorianMargaine done.
 
basically i have a list of all objects, I'd query for a column present in all of those (o_classId)
 
9:36 AM
@HassanAlthaf so? can you explain?
 
idk
It didn't make sense to me. -.-
 
after that, I would query on the column categories, which is just present in those fetched by the first query. Just using AND will, of course, screw up
 
That's not learning then...
 
I cant find a proper article which can explain it to me in the simplest english
my english sux
 
9:37 AM
having a 27" full hd screen sucks. It naturally leads to too many tabs open
 
I haven't used sql in some time, so how would I approach this?
 
wow @Gordon 27" Screen?!
 
@HassanAlthaf So you can learn two things at the same time. Code and English :) It's two birds with one stone.
 
@Gordon guess what happens with 2 screens!
 
basically I'd need the first query to be executed to just give me the tables with given classId, and perform the second query on the returned list
 
9:37 AM
@Gordon Hanns G?
 
@Gordon ok. keep your screen, but throw out your RAM. hm.. fine, leave 1Gb ..
 
@GNi33 Hard to visualise from that description, can you show example data and desired result? (pastebin or sth)
 
@AlmaDo my thinkpad has 8. the desktop has 12.
 
@Fabien IDK, I didn't have space to build the PHP Interpreter so I replaced the English interpreter with PHP interpreter
 
@Gordon that's your problem. Throw it away. And use only 1Gb :p
now, you'll have pretty cool screen and only few tabs opened
 
9:39 AM
morningz
 
actually, it's a 24" not a 27". my mistake. i wanted to buy a bigger one but then settled for this one because of the much lower price
 
@DaveRandom there are, let's say 10 tables, 4 of them have the column categories. I set up a query on all tables to just return those that have ID 1,2,3,4 (and these are the 4 that contain the column categories
 
@Gordon Sounds like you need more monitors. I have 3 at home and I think that's suitable.
 
@JoeWatkins hi
 
Now I'd need to filter the result of this query for a specific category
 
9:40 AM
@GNi33 Wait, so you want to get a list of the tables that contain a categories column? Why wouldn't your code know which tables they are?
 
@Gordon lulz
 
@DaveRandom I basically do, by filtering through IDs. I'm using the ORM for this, which provides list-constructors for each Table/Class. I need to display 4 different classes, that's why I thougt I'd query the whole object list and filter for those 4
surely not the best way, I know. I'm pretty new to this thing, so if you'd have any advice for me or hint me in the right direction, that would be brilliant
being a pure FrontEnd - Dev for over 3 years now has taken a serious penalty on my SQL - skills. I gotta brush up on that
 
@GNi33 in a single line, what do you want to do?
I don't get it :|
 
@GNi33 I'm sorry but I just don't understand what you're getting at. Forget about the ORM for a second, can you show the underlying tables with some data and what you want the result sets to look like?
 
9:48 AM
phew, how do I show that (it's part of my problem that I can't phrase the question correctly, making my google-searches useless)
 
0
Q: Installation procedure of pthreads on ubuntu

lipdjoPlease how to install pthreads ubuntu? I need the thread class to compile my php code.

wut
 
@JoeWatkins ha, thanks for mention.
 
I need acccess to an IIS7.5 server, holla at me if you got it ...
 
@GNi33 Either use sqlfiddle.com or just draw out some tables with ascii on a pastebin
 
@Fabien nah, I am so used to using virtual desktops by now that I find multiple screens a waste of desk space
 
9:51 AM
@webarto I was going to tweet again but was waiting in hospital trying to send that and kept failing, so shortened to one ... hope I didn't word it badly ...
 
@FlorianMargaine 10 tables, I need 4 of them and filter for category in those
 
They just installed camera facing my monitor. LOL wut
 
it's so basic, I just think that this whole ORM, which I'm not that familiar with is getting crazily in my way right now
 
@Gordon With the right monitor stand you gain desk space.
 
Guys I cannot understand "Liskov Substitution Principle" in PHP.
I'm reading from SOLID code principles.
 
screw this ORM - thing, I'm just querying the db directly now
 
@GNi33 That's what ORM generally does
 
@HassanAlthaf That's not language dependent thing.. exactly what thing in PHP causes confusion?
 
1: Search google. 2: Read the manual. 3: If not learned, go to label 1. That learning algorithm always worked for me. — Alma Do 51 secs ago
:-p
 
I'd just be interested in how to approach this efficiently directly by leveraging the ORM
 
9:54 AM
What do you mean @Leri
 
@HassanAlthaf if S is a subtype of T, then objects of type T may be replaced with objects of type S
 
the thing is... you shouldn't think in SQL with an ORM. You should think in objects.
 
@Gordon a simpler way?
 
interface T {}
class S implements T {}

function f(T $t) {}

f(new S()); // works
 
@FlorianMargaine yeah, that's what I basically do, but I still need a list from the db containing 4 different object
and I don't want to query the 4 seperately and put them together in a array to sort them
 
9:56 AM
@HassanAlthaf Subclasses may not change contractual behavior of the parent class.
 
@FlorianMargaine Class never implements a class.
 
@Leri whoops
 
I still don't get it. :[
 
Best article I've read in a while http://bit.ly/X4rgke
6
 
changed extends to implements, forgot to change the class to interface
 
9:57 AM
class SomeClientUsingBase
{
    public function doSomethingWithBase(Base $base)
    {
        $result = $base->bar();
        // …
 
@DaveRandom I totally fell for it ...
 
@HassanAlthaf In the code above, imagine Child (subclass of Base) changes bar() to require an argument. If you then pass Child for Base into the client, you will break the client, because the client calls $base->bar(); without an argument. And that violates the principle: if S is a subtype of T, then objects of type T may be replaced with objects of type S
 
<?php
class T {
    public function goDoSomething() {}
}

class S extends T {
    public function goDoSomething() {
        /* contract fulfilled */
    }
}

function f(T $t) {
    $t->goDoSomething();
}

f(new S()); // works
?>
 
Thanks for the heads up @NikiC
 
more like that ...
 
9:58 AM
@FlorianMargaine Your example is still wrong. :-)
 
What is the $t variable in the f() arguments?
 
@Leri why?
@JoeWatkins isn't a subtype an implementor and not a inheritor?
 
@FlorianMargaine Well, because interface does not have implementation so class that implements it can't violate any contract...
 
> Put all your excuses in a box ... burn the box, and forget about them.
^ lol @JoeWatkins
 
meh, I was mainly explaining the practical application, i.e. passing a S to a function accepting T, and it works
 
10:00 AM
but you didn't substitute anything
@DaveRandom hehe
 
@FlorianMargaine Well, that's not what LSP is about and original question was about it.
 
Oh shit is @rdlowrey on holiday now?
(again)
 
@Leri ok :(
 
OHHHHHH
 
probably, gotta work on his tan ...
 
10:02 AM
Understood it a bit.
Thanks @gordon
 
He isn't on holiday, he'd have to have a job for that.
Though he works like a FT trooper.
 
@HassanAlthaf LSP basically says if you create a subclass it may not break any code using the parent class
 
A Financial Times trooper?
 
Yup.
 
Oh @Gordon so child class is not permitted to override a function defined by the parent class?
 
10:04 AM
you can override it, but you must fulfill the contract
so don't change the implementation details, such as arguments ...
 
Oh, so the arguments are not to be touched.
 
or what it returns ...
 
@HassanAlthaf a subclass can override a function by the parent class but it must stay compatible with the parent method. That means, it may not require additional arguments or stricter arguments and it may not throw additional exceptions or return something different
 
Oh, I got it.
Would ...$args solve the problem of additional arguments?
 
10:06 AM
Or we cant use the '...' operator?
 
Okay then.
I gotcha
And what does "Dependency Inversion Principle" mean?
@Florian
@FlorianMargaine it allows to avoid tight-coupling?
 
@DaveRandom RT'd Cheers
 
10:22 AM
@Fabien I don't see your RT?
 
Used a different account. I think I have more twitter accounts than tweets :P
I'm trying to make my online profile a little more anonymous. My name is far too unique.
 
I am bored. Can someone suggest me to code something in PHP?
 
@HassanAlthaf Finish this project for me github.com/Commentar
 
@PeeHaa I sux at Git
and i wanna code sumfin from scratch xD
 
@HassanAlthaf Write a self hosted git GUI
 
10:31 AM
@PeeHaa what is that?
 
Something like this, but written in php
 
nah idk how l0l
 
@Fabien huh?
 
something else?
 
why would you do that ?
NSA ?
 
10:33 AM
Nope I got bored hearing nope nope nope. Do whatever you want. Good bye
 
@JoeWatkins he is a hacker.
@JoeWatkins suggest me to code something in PHP? I'm too bored. :/
Something that helps me learn new stuff
 
I don't do ideas of the kind you will understand ;)
 
oh pls pls pls
:/
 
10:39 AM
@DaveRandom That question fits you just perfectly. JS AND VB!!!!!11
 
Throw in a bit of Jet DB and it's the perfect question
...for me to poop on.
Bible is weird
 
@DaveRandom LOL
morning @TomášAresakMalčánek
 
11:03 AM
someone pls help lol
 
11:14 AM
testing does not guarantee to detect mistakes such as creation of a wrong application
 
Does anyone here ever used or just know any flash GUI library?
In ancient project AsWing is used but it seems to be dead.
 
You said Ass
 
@Leri show respect to dead ones. Don't use necromancy
let it rest in peace
 
@AlmaDo lol. I simply can't product should be in production at the end of the next week (and if I won't succeed in explaining that there might be bugs... on real money)
 
I knew it. I knew real money have bugs too
 
11:25 AM
E_TROLL
 
:-Ъ
 
12:04 PM
So @rdlowrey I got to thinking some more and for that use we were discussing a couple days ago our solution won't work. I don't need to just be notified that a request has been sent... I need to intercept the request and prevent it from going over the wire at all. I'll either wait for a RequestGenerator in 1.1~ or hack something together in the mean time
If you aren't opposed to PR I could probably pull the request generation stuff out of client and throw some tests on a new object
 
I made a simple error logging system.
Rate?
<?php
class Error
{
	public function throwError($string, $time, $line, $file)
	{
		$error = $string . " on line " . $line . " in " . $file;
		file_put_contents('errors.txt', $error);
	}
}
function doThis($hello)
{
	if($hello == true) {
		echo "Hi";
	} else {
		(new Error)->throwError("False return!", time(), __LINE__, __FILE__);
	}
}
doThis(false);
 
@HassanAlthaf Why does throw error logs something. :-)
 
user1994804
@DaveRandom after trying all day yesterday to use $_SESSION[''] to transfer my variables to the file my AJAX request brings back info from I am still stuck
 
@HassanAlthaf sorry but the function names a re horrible. throwError does not a throw a error? Basicly atm all you have is
file_put_contents('error'.txt', $string . " on line " . $line . " in " . $file); is becoming a very vague "error logging system" and rating it is nonesense now =]
 
user1994804
using $_SESSION produces unexpected results (long delay, an empty array or no data returned)
 
12:12 PM
Hello everyone
 
morning room
 
@Ja͢ck Mornig
 
user1994804
Not sure what to do now
 
user895378
@DaveRandom Not for a few hours :)
 
12:21 PM
@Ja͢ck Erm...how about putting a good reason for why the current behaviour is bad?
 
Good morning
 
@Danack Isn't that under the Proposal section?
 
@Ja͢ck You've given code examples.....you should be able to express the problem textually as well.
 
user895378
@DaveRandom I'm actually taking my laptop with me because I need to get some work done over the weekend and will have some downtime. And will be accessible via phone.
 
user895378
@cspray You don't want to send it at all if it has already been scraped. Is that what you're saying? Or something else?
 
12:24 PM
@YourAdrenalineFix put a minimal example for what you are doing and where you are unexpected behavior is, in a pastie/pastebin
 
@Danack I could explain it textually, but code examples are easier to follow imo
 
user895378
@Jack I haven't gotten to testing your ereg eracination yet. I'm sorry but I will likely not have time to do it until tuesday/wednesday :/
 
I totally read "erection"
 
@Ja͢ck The code examples have the problem that they don't help explain the problem until you already understand the problem. It took me a couple of re-reads of what they were implying. How about:
 
> Currently the rules for ending a heredoc or nowdoc are quite restrictive, requiring a newline after the closing identifier; this proposal aims to loosen or altogether remove that restriction.
 
12:28 PM
"Heredoc and nowdoc can only be used as a separate statement. Then cannot be included as part of other statements (e.g. to define an element of an array or to define a constant in a class) without difficulty to follow the new line requirement."
"Currently the rules for ending a heredoc or nowdoc are quite restrictive, requiring a newline after the closing identifier; this proposal aims to loosen or altogether remove that restriction." That states the restriction, it doesn't say why it's a problem.
Or what the change would allow.
 
kay
what the change would allow is inside the proposal section itself ... i can reword the introduction though, i guess you made a point there.
 
user895378
@Ja͢ck Oh, me likely. The newline after the opening token always drives me nuts.
 
Reworded the introduction ...
 
user895378
lol:
 
user895378
> The above just illustrates the issue and doesn't advocate using eval().
 
12:34 PM
Disclaimer :)
 
user895378
"I don't <3 eval I promise!"
 
hehe
 
@Ja͢ck "combine multiple quotations" er...do you mean multiple doc statements?
 
I am willing to code something but IDK what to code, suggest ma good educational project? Please keep in mind that what you say is not too advanced.
 
@rdlowrey that is ass, isn't it?
 
12:35 PM
@Danack well, yeah ...
I took the term "quotation" from the manual.
 
user895378
@AlmaDo Heart. It's a heart, man.
 
2.9 is too.
 
It could be both.
 
because 2.9 < 3.
 
@rdlowrey ouch.. so someone has ass instead of heart? .. :(
 
12:36 PM
@FlorianMargaine okay, i actually required that addendum lol
 
"I don't poop eval I promise!"
 
hehehe
 
@DaveRandom FUUUUUU
 
If nothing comes up my proposal will be blasted to internals // cc: @NikiC @bwoebi :)
 
12:44 PM
@Ja͢ck The text "A fix for the following scenario:" is confusing to me....shouldn't it be, "Examples of where the current syntax can't be used:".
 
@rdlowrey Yea, that's what I'm saying. If the request has been sent and we have a stored response use the locally stored response and don't send a request over the Intertubes.
 
@Ja͢ck a bit low on the "why"
in particular also on why EOSBLA is not a problem
 
Oh yes, I forgot about that one ...
 
user895378
@cspray Okay. Then you're right: the RequestGenerator needs to be a thing so you can "hash" the request object to compare to your "list of sent requests" in a client wrapper implementing an Artax\HttpClient interface.
 
Open to suggestions on more "why" though :)
 
12:47 PM
19 mins ago, by Danack
"Heredoc and nowdoc can only be used as a separate statement. Then cannot be included as part of other statements (e.g. to define an element of an array or to define a constant in a class) without difficulty to follow the new line requirement."
s/then/it
@Jack You should probably just lose the eval example and get straight to the array one. The eval example adds nothing to the RFC and will put people's teeth on edge.
 
I'm trying to create thumbnails from a fairly big snapshots of webpages. If I show 133x100px of a long page, it will be extremely small to see. So how can I take the top portion and then create a thumbnail out of it?
 
@Danack It does, because right now you will get a parse error if your script ends right after the EOS;.
 
@Ja͢ck But hardly anyone cares if eval goes wrong.
 
It's not about eval()
 
@AmalMurali Crop the image to a maximum height?
 
12:53 PM
I could of course write it out as a script as you may see it in a generated file ...
 
@rdlowrey Yea, for now I'll just be dirty and reflect on your private methods
 
user895378
@cspray Yeah, sorry but you'll have to wait until the end of next week before I can actually implement that.
 
No worries. Take your time
I'd rather you shore up a solid 1.0 instead of worrying about a new feature
 
@Danack You mean crop the image first to get the top portion, and then create a thumbnail of that? Is there a better solution?
 
user895378
@cspray then again, can you not just compare the URI+http method?
 
user895378
12:55 PM
Do you really need to check against the entire set of headers and all?
 
@rdlowrey Sure, but I still need to prevent it from going across the Internet :)
 
user895378
That's what the wrapper is for.
 
@AmalMurali Take two bottles functions into the shower module?
Seriously though - what is the problem with using two functions?
 
Well, I don't know exactly what the best answer for comparing the request is
Yes, URI + method seems like it would work for a lot of use cases
But some APIs allow you to set a different Accept: * header and get back a different response type
Say XML vs. JSON
In that case URI + method would not be sufficient
 
user895378
Oh, okay.
 
user895378
12:58 PM
But you could still just concatenate all the fields you do care about together and md5() them.
 
I'm thinking that I can provide an interface for you to override the RequestMatchStrategy and just provide a basic implementation that compares URI + Method + Accept... but I haven't entirely fleshed that out yet
 
user895378
Just say, "okay, these are the only header fields my requests vary on, so I'll use them to build my hash for every request."
 
Yea, probably something like that
 
user895378
Not sure the RequestGenerator is necessary.
 

« first day (1413 days earlier)      last day (3538 days later) »