« first day (757 days earlier)      last day (4205 days later) » 

6:00 PM
@rdlowrey They certainly don't work well. Curl multi at least is rather buggy
 
user895378
@NikiC Oh, well I can't really speak to that because I've never actually used curl_multi for anything.
 
user895378
I just assume there's not massively buggy code in popular native php libs :)
 
@webarto from what I have heard and been offered, the average php employee salary is between 45 and 65k a year.
 
user1125394
@DaveRandom thx would never have found out that
 
@rdlowrey The curl multi part probably isn't particularly popular ^^ Rarely needed
 
6:02 PM
@Gordon could you tell me about c++ developer since i havent choosed my field and its my last year of degree so what should i choose ?
 
@NullPointer you should choose what keeps you motivated and happy in the long run
 
Hey guys
 
started learning ....will be good in 1 year
 
@cyril NP, although (I hope) you are not giving yourself enough credit, I'm sure 5 mins of googling would have determined that, and I'm certain there will be an SO question about it.
 
@NullPointer Are you good at C++?
 
6:05 PM
the above is the rate calculator for one of the leading freelancer sites. its all in german, but I guess you can figure it out - according to that c++ developers get 71 euros on average in germany.
 
user895378
in Dart Lang, 21 mins ago, by rdlowrey
@LeviMorrison I tend to agree with @NikiC regarding the FuntionException. I have no idea exactly what it's for just by looking at the name.
 
user895378
@NikiC ^
 
@cyril first result when I Google __PHP_Incomplete_Class_Name: stackoverflow.com/questions/7272813/…
 
@Gordon Thanks. I get one newer BMW less salary than lower figure but where I live you need 500€ to pay rent, bills, and eat... Are you familiar with buerolersch.de by chance? They offer working visa etc. (I'm from non-EU country).
 
Has the idea of (ClassName) casts in PHP been ruled out or is it potentially ever going to happen?
 
6:08 PM
@webarto never heard of them. sorry.
 
@Gordon i heard that in Germany education is free for foreigners ...could you tell is it true ? and if yes than what exam i need to clear ?
 
@Gordon don't know if scam or real thing ;) Thanks for info.
 
@NullPointer no clue. sorry.
 
@NullPointer If that is true, it will only be people who's country of origin is an EU member state
(I would imagine)
 
@NullPointer That is not true. I mean, you can always try to get scolarship...
 
6:10 PM
@webarto average cost of living in Germany was 730 Euro in 2008. Likely more by now.
 
@Gordon Per what? Per minute?
 
@Gordon Then f* this s*it. I'm moving somewhere else.
 
@NullPointer but in general, universities ask for only a small fee (~250 euros) every semester.
@DaveRandom yes. per what.
 
LOL
 
@Gordon and about other expansions ?
 
6:12 PM
@NullPointer what do you mean by expansions?
 
@DaveRandom Lets hope that it won't happen :P
 
@webarto Come to the UK! It never stops raining and everyone hates each other but they are all to polite to say! Plus we never elect anyone other than complete and utter fuckwits to positions of power. Oh, and we are in denial about being European.
 
@DaveRandom and drunk at least of halt of the time ;)
 
@Gordon total cost with rent , fee ,food
 
@NullPointer that's apparently included in that number. at least that's how i understood it.
 
6:14 PM
@Gordon No you are thinking of the French.
Where's @Jocelyn :-P
 
@DaveRandom On the rocky road to Manchester :D I think they would shoot me at the border. Fear, Funf, Sex :D
 
@DaveRandom feel free to adapt stackoverflow.com/questions/4080217/…
 
@NullPointer That covers basic costs, like bread, milk, etc.
 
in india if i do degree out side of my home town it cost about 2500euros per year and i have can send only 2600 euros after that i need to earn ... than with that money can i do study
 
@DaveRandom when I was in Manchester the news reporter on tv said britain has a drinking problem
 
6:16 PM
@webarto 250 euros ?
 
@Gordon Yes, but he was talking about this kind of thing:
 
user1125394
@DaveRandom lol thx I has this tab opened and one answer (yet from a noob) is telling it stackoverflow.com/a/9474007/1125394 it seems there can be some unserialization issue too
 
@NullPointer Sorry, what are we talking about? Life costs or faculty costs? Also check anabin.kmk.org to see if your college is valid in e.g. Deutschland.
 
@cyril Keep in mind that session data in serialized as well. It is subject to the same limitations.
 
6:19 PM
@webarto its about fee + other expenses per year for master degree
 
@NullPointer I don't know, where I live it is €350 per semester (and you have 2 semesters for masters degree). Small apartment in e.g. Wien is about 500€ per month. So I'm guessing you would need at minimum about 800€ to live on bread and water, and study all the time...
 
Is there a css selector for "attribute begins with value"? As in selector says "href starts with google.com"; which matches <a href="http://www.google.com/search?q=stuff">
 
@Gordon Everything is really cheap considering salaries. Same prices are here and average salary is 400€...
[href^="http://google.com"]
 
@webarto Browser support?
 
[href*="//google.com"]
@DaveRandom I think all of them, let me check.
 
user1125394
6:24 PM
really you can do
a [href^="http://google.com"] { color : pink; } ?
 
@webarto looks like i need to do some work here first save money than ... think about it
 
@webarto I was just looking at that before, can't find any ref to ^= or *= - I only need it to work with browsers that support querySelector()/querySelectorAll()
I presume ^= is "starts with" and *= is "contains"?
 
nvm, read the spec myself
 
6:29 PM
@benlevywebdesign dont take it other way navigation in this (benlevywebdesign.com/thearcsf) website is not working properly
 
(like I should have in the first place)
 
@NullPointer what do you mean its not working properly
 
or use jQuery :P
 
@webarto You really are cruising for a bruising this evening, aren't you...
:-P
 
Did I, did I just read w3schools?!
2
 
Oy, I'm cruising for bruising :D
 
Mozilla.org pffff what do they know ;)
 
That is like, kernel of CSS... It must work... except IE6...
 
6:33 PM
@PeeHaa Well they certainly don't know how to document their own extension platform, I'll tell you that for nothing...
I'm hoping to have an ff-cv-pls beta out this week, btw
 
@webarto As always. 'It works in all browsers! (except IE6)' :P
 
@NikiC ^^
 
noice
 
@benlevywebdesign its hiding on hover
 
it is??
can you screen shot it?
 
6:36 PM
i cant since i can not explain it ...have you got team viewer i can show you
 
no, is it free
 
yes ..it is
 
6:38 PM
i have version 8 it some time show warning ...if version are not same
 
window.btoa('stackoverflow').replace('=', '');
 
How come this JS code replaces only one '='... ?
before: c3RhY2tvdmVyZmxvdw== after: c3RhY2tvdmVyZmxvdw=
 
is it on global?
 
btoa('stackoverflow').replace(/=/g, '');
 
6:43 PM
right, left the quotes in first param... thanks.
 
^ global tag used
 
@webarto You need to use a regular expression.
 
No, that wasn't the issue @webarto
 
window.btoa('stackoverflow').replace(/=/g, '');
 
@NullPointer ready
 
6:44 PM
@webarto It's the g tag
 
Yes, I wrote "/=/g" too... but should left out the quotes...
 
Not here: window.btoa('stackoverflow').replace('=', '');
 
After I posted that, my bad.
 
@benlevywebdesign id 216 360 877 and pass 6880
 
I see, okay.
 
6:45 PM
@NullPointer Starting TeamViewer...
 
@ShaquinTrifonoff is that you
connected to me
 
Yes. You should, ideally, create a new room, then delete the message with the details in it a few seconds after. Then change your password.
 
this is IDE error I guess...
 
6:49 PM
@webarto Doesn't like regular expressions :P
 
@benlevywebdesign was that you ...?
 
@NullPointer Both him and me connected, you could see that in the session list.
 
@ShaquinTrifonoff Important thing is that code works :P
 
http://www.php.net/manual/en/language.oop5.autoload.php#example-178
Shouldn't he try to catch `MissingException` ?
 
@webarto UnsureWhichTypeOfExceptionToThrowException
 
I find all of these examples to be wrong...
 
@PeeHaa omg
@Lusitanian I would love to see ANY training code that is substantially better than the code I've written. Why? So I can feel better about the state of things. Frankly, I don't think I've ever seen any training code that is anywhere near as good as what I posted. — Theodore R. Smith 12 hours ago
he's back
 
@Lusitanian Somebody should put it of of its misery
 
oh noes
 
@PeeHaa He responded two months later...like wut
 
user1125394
he's a one-file OK coder
 
7:42 PM
Can someone explain difference between...

$a = new Class();
$b = new Class();

and..

$a = new Class();
$b = clone $a;
 
Yeah, $b isn't defined in the second one, so PHP won't like that :D
Trying to clone itself...
 
Fixed :) cloneception...
 
Aaaaarrrgh stop the obvious repwhoring ±)
 
@webarto Here is the difference: codepad.org/LUF2LfeE
 
7:47 PM
hi everyone!
 
@PeeHaa Kolink repwhores like crazy
 
This is getting pretty annoying
 
@DaveRandom the reason I'm asking is because I'm not sure how to handle this i.imgur.com/9dAcJ.png multiple Clients inside another class/object. Thank you!
 
Guys, we need to stop closing dupes as NARQ/TL, people will get justifiably annoyed about it
 
7:49 PM
@DaveRandom +1 to that. find dupes when it is a dupe
 
@DaveRandom NARQ/TL ???
 
@NullPointer Not a real question/Too localised
 
not a real question / too localized
 
localized :P @DaveRandom
 
:D
 
7:50 PM
Not my fault the Americans can't speak their own official language
 
Proper Engrish
 
@webarto lol
hahah but you are sorting .. like anything ...
 
I think a lot of too localized questions shouldn't be closed.
 
@DaveRandom It's not official
 
Just because I have a narrow question doesn't mean it isn't helpful.
 
7:51 PM
@Lusitanian So America's official language is not English?
 
@Lusitanian Yes, but xenophobia is not a language, so it's the closest you've got :-P
 
America has no official language.
 
UK doesn't either
 
Hi all ....
 
England? British English?
 
7:53 PM
I think it only applies in countries where there is more than one language. Although America could probably have English/Spanish and we could definitely have English and Welsh
 
French too
 
Canada eh
Not sure aboot the US though
 
I speak "In God We Trust" language :P
 
ping @PeeHaa -t
 
@DaveRandom looking forward to it :)
 
7:54 PM
@Baba lol
 
hi @NikiC
 
so guys it was about the "stop closing dupes as NARQ/TL"
 
Ahhh, geek humour
 
Hello @DaveRandom :)
 
-l 65536
 
7:55 PM
@Baba Evening
 
How was your day today
 
@Baba Server does not respond
 
@NullPointer Yes, basically if a question is an obvious dupe, find a dupe to close it against. If we close as the wrong close reason we will provoke the wrath of meta.SO (again).
 
@Baba pliong
 
@PeeHaa pliong .... thats new
 
7:58 PM
Hey, so I want to add an advanced search to my site so I can go through my database, I already have $name, but I want to add $x $y $z, but if one of them is blank, I want it to just put * in place of the blank?
How should I go about doing this?
 
Has Chrome always had rulers when you hover over an element in the debug panel?
 
@GeorgeSumpster Leave out the condition that checks for the blanks
@DaveRandom I think it has been in Canary for some time now.
As of version 129 I think ;)
 
what do you guys think of my date now: benlevywebdesign.com/wordpress
 
@benlevywebdesign Much better
 
8:00 PM
O_o
 
@webarto What does the constructor signature for Client look like? Could you do new $this->_client? The clone looks wrong somehow...
 
@GeorgeSumpster you like it? I think it looked cooler the other way cause this way looks plain/flat any suggestions to make it look not as flat
 
@DaveRandom newer knew that would work... much appreciated.
 
@benlevywebdesign The submit button is showing text as well as an arrow :P
 
8:01 PM
@ShaquinTrifonoff that only happens on webkit browsers and I'm trying to fix that
 
@benlevywebdesign You don't need input type="image" do you??
Just a regular submit button?
 
@GeorgeSumpster It doesn't pop right now(the date)
 
@webarto Key point is that clone doesn't call __construct() in the creation process, so if the class performs and actions in the constructor (which, of course, it probably shouldn't ;-) ) then clone is not for you
 
@ShaquinTrifonoff I think I do hold on
 
$stmt = $db->query("SELECT * FROM co_containers WHERE user = '".$name."'"); - there is my SQL code, so I want to be able put * instead of $name of define $name as *
@benlevywebdesign Well, try a gradient of some kind. colorzilla.com/gradient-editor - Good gradients there, but I think it looks nice..
 
8:03 PM
@DaveRandom didn't know that either, no ctor in Client, only in this "main" app, for DI purposes, because I don't know better.
 
@GeorgeSumpster Why aren't you using bound parameters?
 
@PeeHaa Because that requires me to have any idea what that is. xD - Newb to PHP
 
#searchsubmit {
border: none;
float: right;
background: url(images/searcharrow.png);
background-repeat: no-repeat;
width: 53px;
height: 27px;
border-top-right-radius: 4px;
}
@benlevywebdesign That fixes it if you change it to a submit button.
 
8:07 PM
So, like this? $stmt = $db->query('SELECT * FROM co_containers WHERE user = ?');
$stmt->execute(array($name));
 
@PeeHaa i have a quick question about the RFC
 
what rfc?
 
But wiki.php.net/rfc/shortsyntaxforarrays got better attention
i think PHP supports [] supporting {} would be nice too
both at the same time
 
[] is implemented in 5.4
 
instead of implementing array and leaving object
 
8:09 PM
@webarto $socket = $client->connect(); looks wrong to me, what does this actually do? Personally I'd prefer to define Client::read(), Client::write() etc and let that class worry about the socket operations. This would mean that (for ex.) you could rewrite Client to use socket_* instead of stream_* underneath without having to change any code outside the Client class.
 
yeah i know
it would have been nice we have {} too in 5.4
that proposal has been there since 2011
I have to write new stdClass all the time ... and its not fun if they are in arrays
 
@Baba Tbh. I don't know why it didn't get implemented. Maybe @NikiC / @Gordon can tell you that. The fact it that I don't use new StdClass() that often either way. In most cases where you think you need it a normal array will suffice
 
@Baba (object) ['property'=>'value'] - not a nice as {} but nicer than new stdClass()
 
@DaveRandom Yes, Dave, you are right, but I'm afraid I've created a mess, main thing was that it worked, and that s* is wrapped in classes, but I need to do this today and get it off my back... paste.debian.net/hidden/45814c3a
 
> We use it a lot. This grep is from the root of the Gimme Bar code (my work project):

$ grep -ir 'StdClass' * | wc -l
229
 
8:13 PM
> throw Exception('Shit happens.');
^^ love it
 
good night guys
 
@DaveRandom you are right ... but if you read the Benefits in wiki.php.net/rfc/objectarrayliterals
 
@NullPointer night
 
nite
@Baba I don't see that as very big benifits
 
@DaveRandom $up = new Exception(); throw $up; it is usually like this :P
 
8:15 PM
Considering we have json_encode()
 
@PeeHaa If i buy you a beer ... with it convince you ?
 
hehe
 
@Baba Imho {} is fairly useless in PHP
PHP is a rather array oriented language
Actually, what is called an array in PHP would be called an object in JS
It's just words ;)
 
@NikiC .... lol
 
@webarto Actually that's a good point, the line I quoted is missing new
 
8:17 PM
bug fixed :P I know to take some drugs or something... to be normal...
 
Don't you think it would be nice due to current existing implementations
 
current existing implementations?
 
JavaScript , Ruby , Phyton , MongoDB .. etc ..
Coming to PHP would automatically make you feel in a familiar ground
 
Well, In PHP its the same, just with [] instead of {}
Adding {} would only confuse things I think. Because there would be two easy ways to do a similar, yet different thing.
 
wow
 
8:22 PM
@MadaraUchiha Did you work out the issues you were having with that font of yours?
This seems to be the same thing: stackoverflow.com/questions/13334622/… ?
 
Yeah
I narrowed it down to the lousy font file
 
:P
 
which caused the Hebrew gylphs to die
 
@NikiC i don't think it would confuse things .. instead it would Improved communication with third party vendors (read: authors, for small open source projects), who often understand JSON and thus other literals, but not necessarily PHP.
has stated
 
If they don't understand PHp that will mean they can write some litaral, but that's it :P
 
8:26 PM
$a = {'one': 1, 'two': 2, 'three': 3}; and $a = ['one': 1, 'two': 2, 'three': 3];
 
@Baba You mean that the different object syntax is the main obstacle in that regard? I find that rather hard to believe
 
@NikiC not really ...
look at Short syntax for arrays
What is the advantage over array()
 
@Baba It's shorter
 
now {} and (object) array() or new StdClass()
which is better
more readable
globally implemented in other languages
 
Just don't use new StdClass() and you would be fine ;-)
 
8:30 PM
@Baba I think my point is that you shouldn't use stdClass
 
`
$s = new stdClass();
$s->cool = "nickc";

array($s);
`
[{"cool":"baba"}]
 
What's wrong with:
$a = ['cool' => 'nikic'];
 
@Baba There is a fixed-font button, you know...
 
@ShaquinTrifonoff ... no idea
 
@ShaquinTrifonoff You don't say ^^
 
8:33 PM
@PeeHaa its an array and i can not access it like $a->cool
 
Uhhu. So?
 
i can only access it like $a['cool']
 
Writing->like->this->doesnt->add->anything
 
code
  is
    much
      more
        readable
          when
            you
              use
                fixed-font
 
@Baba Why do you need to access it like an object?
 
8:34 PM
@PeeHaa hold on let me write a simple code
 
kk
 
@ShaquinTrifonoff any link to that
$s = ["cool" => "nick"];
hello($s);
function hello($s) {
echo $s->cool;
}
 
@Baba When you enter more than one line, a fixed font button will appear.
$s = ["cool" => "nick"];
hello($s);
function hello($s) {
echo $s->cool;
}
 
@PeeHaa that would return Notice: Trying to get property of non-object in C:\Apache\xampp\htdocs\lab\stockoverflow\a.php on line 10
@ShaquinTrifonoff thanks
 
@Baba Yes. That is true. I still fail to see your point. It's the same as saying:
$s = new StdClass();
$s->cool => "nick";
hello($s);
function hello($s) {
    echo $s['cool'];
}
Ow noes an error
 
8:38 PM
@PeeHaa yeah
But if i can do $s = ["cool" => "nick"];
why not $s = {"cool" => "nick"};
 
Because you don't need to have those default objects in PHP
being able to write $obj->cool = 'something' doesn't make your code any better in any way
 
@PeeHaa It's two characters shorter :P
 
user1125394
I'm trying to make a redirection without header(), but the page does'nt really refresh, is there something to call for that?
 
fail @NikiC ;)
 
user1125394
like something_flush() ?
 
8:40 PM
@NikiC :)
 
@PeeHaa Counting is hard ^^
 
Tell me about it :P
 
lol
 
But seriously as @NikiC already stated and like I said earlier there is no need to do new StdClass() in PHP. Often you can just use an normal array or have some real class to back it up
 
@PeeHaa why ???
i only need 1 reason
 
8:42 PM
@ShaquinTrifonoff Yeah that works but I don't want it to look like a button
I mean have the beveled edge
 
Hi all! Is anyone here familiar with web services AND/OR Windows 8 app development. I am trying to create an app and am doing fine working with the front-end stuff. I now however have to link it to a database so that it can display relevant content.

I know I have to create a web service to interact with the database but until now I'd never even heard of them. I only have limited back-end knowledge; a bit of PHP and a bit of MySQL, the database I'm trying to link to will be MySQL. Is any familiar with creating such a web service?
 
If you don't have a default object do you know how many things would fail in PHP ??
 
@Baba Why what? There just is no reason to use it. The only "benifits" in that rfc is because somebody who doesn't know PHP can start creating "default objects" and that;s it
@Baba Like?
 
you would never have empty object .. they have to be defined
what would json_decode return ?
 
Hiya all
 
8:46 PM
what would fetch_object return
you mean all this would have to be implemented or you would have different objects for this ??
naaaaaaaaa
a default object class is key
 
@PeeHaa wassap
 
The fact that PHP returns an empty object doesn't mean the developers should do that same thing. Remember PHP is object capable as the cool kids like to say.
 
it does not matter if its new stdClass or new Object or {}
 
@InGodITrust Whatap
 
@Baba It would return an array. Actually, it does return an array if you pass true as the second arg. Most people do that.
 
user1125394
8:49 PM
why I'm calling session_destroy but $_SESSION variables still set, anyway unsetting them...
 
@cyril Have you read the docs?
 
user1125394
nop :D
 
Start there ask later
 
@PeeHaa hoping to set up my own web company soon, but aint got a clue about how much to charge. Every where i look on the net I see it depends etc etc. One of my friends recently got this website done, could you place an experiecned estimate at how much it would have cost him? netlighting.co.uk. Only roughly
 
Everything would be array ? ... Do you think they would have been a future for PHP without objects ?
 
8:50 PM
@ShaquinTrifonoff Fixed it
 
Can anyone tell me if web services are difficult to implement and learn? More specifically PHP / MySQL web services.
 
MySQL web services. ... that is a new one
 
what I mean is a web service that interacts with a MySQL database.. sorry I hadn't even heard of them before today so If I sound confused - I am!
 
@InGodITrust Idunno. Depends on what is in it
 
@PeeHaa ok, but how much would you chargge gor that? $1000? 5000? 10000? or am i way off mark
 
8:54 PM
Also it depends on what the customer can spend. And luckely I'm not a sales person
 
user1125394
@PeeHaa that's you who told me exit(); is evil?
 
@PeeHaa so you fish out how much they wanna spend huh?
 
pce
@J
 
user1125394
because it's pretty much necessary in my case
 
user1125394
or I can have the page displayed several times below each others
 
8:55 PM
@PeeHaa :)
 
@InGodITrust Let's just say I haven't build that much < 10000. Often it would be way more.
@InGodITrust That's what sales do :)
 
@InGodITrust that was a modified template
 
@baba I thought so, so how much do you reckon
@PeeHaa woah, can you link me to some of the things you done?
Wouldnt mind getting a price idea
 
@cyril I doubt it, but I like the sounds of die() better though ;) But seriously nothing wrong with exit() (depending on the situation)
 
@InGodITrust if they client does not know what they want .. they can be priced at the same thing
 
8:57 PM
@Baba so you could ask for $10000 for such a thing? A modified template?
 
Am I correct in thinking that learning XML is essential to create a web service?
 
@InGodITrust i can never do such in the first place
 
@Baba why is that
 
@InGodITrust i don't Joke with UX & GUI
 
user1125394
call_user_func_array(
	array( $controller, $method ),
	array( $params, $this )
);
exit();
 
8:59 PM
@Baba you mean you write it out yourself?
 
Note to all: If it seems like a good idea to get your young child out of bed to give them dinner because they've had an exceptionally long afternoon nap - you are wrong, it isn't.
 
user1125394
@PeeHaa ^ ok thx
 

« first day (757 days earlier)      last day (4205 days later) »