« first day (1311 days earlier)      last day (3862 days later) » 

18:01
why are you taking it by reference?
@ircmaxell The Image magick library function it calls returns a variable and takes two parameters by reference. I could return everything in an array I guess.
The two parameters passed by reference are updated with the values updated by the ImageMagick lib.
Heya room
@PeeHaa You have any issues with Owncloud and "Request Entity Too large" ?
Nope
Superb question!
-5
Q: Ascii characters 0-21 do not display

user3653759Hey I am trying to print out the ascii characters using a for loop but 0-21 the characters do not display. Here is my code. I am not sure why the other ones will not print out. Thank you in advance. package lab1v1; import java.util.Scanner; public class Lab1v1 { public static void main(S...

18:13
Well, to be fair, CP437 does have glyphs for the control characters...
Don't be fair dude...
:)
Hey, those control characters brought me my favorite childhood game, a DOS port of Rogue.
@PeeHaa Got it. client_max_body_size #m; in nginx.conf
I also upped it in php.ini too.
And if that asker is on a teletype he'd be able to see LF and FF.
18:16
@Fabien Ow yeah. Mine is unlimited + 1 :)
Upload all the things!
@ircmaxell that looks pretty dangerous
@bwoebi exactly what I was thinking
I have asked it previously, but it was a draw at the time. May I please remove the UGT line from the room 11 repo?
18:27
go for it
Aaaaaaaand it's gone
COVER YOUR EYES!
$html = file_get_contents("HTML_doc_with_no_php_in_it.html");
eval("print \"" . addcslashes(preg_replace("/( ---(.+?)---)/", "\\2", $html), '"') . "\";");
ummm wutnow
I don't even want to know what OP is thinking
Yeah sure blame continue. continue must be reason and just doesn't work
-2
Q: php continue not working

user260778i tried to run the following code using xampp - $e=0; while ($e < 5) { if ($e == 3) { continue; } echo "{$e} "; $e++; } Why is it not working? But this is working - $e=0; while ($e < 5) { $e++; if ($e == 3) { continue; } echo "{$e} "; }

18:39
@PeeHaa I don't know about you but whenever I write "wrong" code it is always the language's fault.
@PeeHaa "Requirements: Easy support for OCI8 and MSSQL." wat.
Yes of course! @cspray
@Danack :P
@Danack You actually read the questions I dump here???? Just downvote and close man!
@PeeHaa They make me feel better; "At least I'm not involved in that project.".
Man I love me some dupehammer.
Two of the template guy's six questions were dupes so far...
18:47
> Daily close vote limit reached; please try again in 5 hours
...
Guessing for a long time why a code block doesn't get executed… I forgot to place the value passed to the #define in it ...
yeah, Pete is in the next room over from me
Tell him I like his 404 page :)
19:03
@Ocramius is there general support for removing fluent interfaces for zf3?
user3141603
Hello.
Hola
user3141603
Why do I see � instate of one specific letter? I'm using UTF8...
251
Q: UTF-8 all the way through

mercutioI'm setting up a new server, and want to support UTF-8 fully in my web application. I have tried in the past on existing servers and always seem to end up having to fall back to ISO-8859-1. Where exactly do I need to set the encoding/charsets? I'm aware that I need to configure Apache, MySQL and...

user3141603
19:08
The strange thing it that only if I write it inside the PHP area it shows me it
user3141603
utf8mb4 What is it?
user3141603
user3141603
but look, everything except one letter is OK!
That's not a letter. That's gibberish
The entire page!
WTF even the tabs are RTL. TIL
Hell even the taskbar is RTL
user3141603
19:11
LOL, It's Hebrew, not gibberish
I hoped to get a better view on my macro mess when using gcc -E, but instead it removed all the line feeds in output :x … Any alternative?
user3141603
I found the reason but I don't know why. What the problem with this code?:
$content = trim(preg_replace('/\s+/', ' ', str_replace(array("\r","\n"),"",$content)));
@VladGincher Yeah I kinda guessed it was hebrew. Just never knew that freaking everything is RTL over there. Even the GUI
user3141603
@PeeHaa Yep... Everything.
user3141603
even the notebooks in schools are opened from right
19:14
:o
Crazy world man
:P
user3141603
LOL
user3141603
user3141603
Facebook :D
You people have serious issues. cc @SecondRikudo @BenjaminGruenbaum
@PeeHaa oh, lol.
19:16
:)
@hohner not yet. I am pushing my ideas, others their own
user3141603
Have you ever seen Arabic?
All my apps are in English, so...
Good answer!
:)
user3141603
It's even crazier!
user3141603
19:17
(Arabic)
@hohner I'm just very loud, that doesn't make me the guy that will be followed
@Ocramius I shall follow you until eternity.
user3141603
SOOOOOOOOO.... Someone can help me?
But serious @VladGincher where does the data come from?
user3141603
What the problem with $content = trim(preg_replace('/\s+/', ' ', str_replace(array("\r","\n"),"",$content))); ?
19:19
What is the original character?
@VladGincher @PeeHaa gave you a link ("UTF-8 all the way through") read it.
user3141603
@PeeHaa That line is who makes the error
user3141603
נ
@VladGincher western web design is not meant for languages where you read from right to left
it looks like crap
user3141603
What? Facebook or mine website?
19:21
facebook
@VladGincher The problem (or rather the solution) is in the linked question
@tereško you're just not used to it - I can read it just fine, I just find it very ugly :D
0
Q: Does filter_var guarantee that $_SERVER["QUERY_STRING"] will be protected against XSS Injection?

Cody Garrett############################################ ## Connection Creation for Both Databases ## ############################################ //Create Connection for Pokemon Test Database $PokemonConnection=mysqli_connect("URL","username","password","database"); //Check Pokemon Test Database Connectio...

user3141603
@BenjaminGruenbaum, You can read it?!
WAT?>!?!?!
19:25
@PeeHaa I don't even.
@VladGincher Yes, was that unclear :)?
if($Password != 'Password')
lolwut
user3141603
@BenjaminGruenbaum אתה יודע עברית?!
@VladGincher כן, also @SecondRikudo שזה מה ש @PeeHaa אמר לפני 4 משפטים
@PeeHaa basically, I implied your mother had a questionable profession and questioned your sexual orientation in that last sentence in case that wasn't clear.
@Ocramius I'm working on refactoring Zend\Http and don't know how much time + energy I should spend removing fluent interfaces if there's a chance it might not happen
user3141603
19:27
קיצר יש לך מושג למה האות נ נדפקת אצלי בשורת קוד ההיא?
@BenjaminGruenbaum hahahahahahahah excellent :)
@VladGincher Please keep this chat in English so that other participants may also participate in the discussion, also - like I said - the answer is inside the link @PeeHaa linked you to, really. I also strongly recommend Joel Spolsky's article on unicode.
Ich wollte doch gerade Deutsch reden :-(
user3141603
But my English suckes. I'm only 16
@bwoebi Thanks but no thanks :)
19:28
@VladGincher This is a good chance to practice.
That language is even moar horrible than Dutch :P
user3141603
@PeeHaa Not it isn't!!!
@PeeHaa Luxembourgish, German or Frech, which one do you prefer? :-P
German for sure :)
user3141603
@BenjaminGruenbaum I'm 5 points in the Bagrut, I'm that bad!
19:30
@PeeHaa I thought you just said it were horrible…
It totally is, however considering the alternatives...
@PeeHaa is kinnding me.
user3141603
Heyy I'll be in Germany soon
user3141603
How cool am I?
Depends on what you are going to do in Germany :P
19:34
@PeeHaa I cannot imagine that there is any language apart from those which use completely other characters which is worse than Dutch… Dutch is like having put a lot of grammatical rules and vocabulary from other languages and wildly mixed them.
Yeah Dutch grammar is pretty fucked up tbh :P
EXCEPTION ALL THE THINGS GRAMMAR
Latin grammar is very clear…
@bwoebi However, uncertainty principle still holds.
Latin grammar is very clear, meaning of words is very unclear ;)
Isn't latin "do whatever you please"?
:P
@NikiC That's the little issue here :-D
19:37
@NikiC had some ...interesting... discussion with Pierre today. He's off the deep end, and I don't think there's any bringing him back :-)
user3141603
English is the fucked up language. Why the hell do you have present simple, progressive and all of those? In Hebrew we just have present!!!
@ircmaxell yes...
English Murrican just makes kinda sense
Just like in German everybody misuses subjunctive perfect…
19:40
@bwoebi Yeah ... and you know why?
@NikiC no?
Because nobody has even the slightest clue wtf the subjunctive perfect is.
I sure haven't
Er habe, Er hätte … bleh…
Aaaaaahhhhh the horror. stop it!
19:43
@NikiC I still wonder why the last Rechtschreibreform didn't improve subjunctives…
@hohner please keep your eyes on the next PSR if you do
also consider opening a PR even if your refactoring is at an early stage
Is there yet another PSR?
They are using the CHrome release schedule now to keep things fresh :)
@bwoebi yes, HTTP request/response interfaces
quite minimal iirc
@bwoebi and we'll likely propose more :P
19:50
@Ocramius just copy from rdlowrey/Arya, he did everything right.
may be a good idea :)
@bwoebi IIRC @rdlowrey tried to enter the discussion but he was bullied away :)
@rdlowrey isn't one of the framework cool cats.
@PeeHaa show me the discussion?
@bwoebi I think it was on github
19:54
@salathe @rdlowrey you could always just poke around and get some support
hmmmz cannot find it anymore
@PeeHaa #244… but I don't see that he was bullied away?
I don't know tha exact discussion any more, but it ended it @rdlowrey giving up and saying everybody is stupid
IIRC it was the BenMorel discussion
psr is a collection of stupid people who think they are right.
@Ocramius propose it on psr ml, good luck. Please.
@Ocramius I'm aware. It's using fluent interfaces, unfortunately
20:03
@bwoebi I dunno, 3 and 4 aren't too stupid. And 1 isn't bad. 2, though, that's stupid.
@Charles 1 and 4 are the only ones which are fine…
and 3 is stupid too. Who needs so many different cases in a Logger. Even PHP doesn't need so many. notice, warning and error are enough…
@bwoebi POSIX logging.
I know, but still.
@bwoebi that I strongly disagree with
We don't need to repeat in PHP the errors made in POSIX…
20:10
logging isn't just about errors
it's about providing debug info. After all, imagine instrumenting your code, and turning off a log level at the collector. So you need to debug a routine, you just turn "info" and you get tons of useful information
which are tons of fcalls which need to be needlessly executed at runtime to collect that info? even in production.
In C that makes sense where you have a nice preprocessor…
@ircmaxell a fcall is one of the most costly opcodes... (apart from exceptions)
20:26
Hmm, guess that PSR needs some nuking then
20:44
@Ocramius see groups.google.com/forum/#!topic/php-fig/qXktLjkyLd4. My comments against it are at the end. The response was effectively "meh they're useful"
> My general rule is that if a method has nothing useful to return (because it doesn't make sense in context), it should return $this. Why? Because returning null is totally and utterly useless 99% of the time
:O
@hohner noted...
The fuck
What are they smoking
I'd never bring a fluent interface within a 10 mile range of a specification
it's way too opinionated to enforce in a proposal like this
To put it into perspective that quote is from Larry Garfield so yeah...
20:50
@NikiC no idea why the interface should be fluent. That's an implementation detail…
My favourite was "Returning $this lets me chain if I want to, but I can safely ignore it if I don't."
I don't think the 1000s of people implementing this interface can ignore the return type
Thanks for reminding me why I ignore that group @hohner
@hohner just posted on the ML...
I'd encourage other people to lend their thoughts too, because this might be a pretty far-ranging PSR
use of flamethrowers encouraged
yeap
20:54
I just ignore shit coming out of that. No problem there :)
@PeeHaa wrong approach
btw, this is the thread to throw rants at: groups.google.com/forum/#!topic/php-fig/BjuMHOzTUJs
Why?
@PeeHaa because libraries will probably be using these standards
@PeeHaa because then you'd have to use it somewhere somewhen when you get a project that is based on it
if it doesn't affect you, it will affect others who will assume everything included is "best practice"
20:56
And I am free to either use it or don't.
abstaining is just not the right approach ;-)
@PeeHaa heh, not really if your app uses zf2/sf2 (which are going to implement it once it passes, I can pretty much ensure that)
I don't feel like wasting time on PSR-whatever or whatever stupid idea they will have next
@Ocramius Neither of which I use :)
Meh, that's not constructive at all
unleash your caremad within, skywalker
@PeeHaa See the problem: most people who have more knowledge just don't care about shit :-)
20:57
Why is not that constructive? I really just don't care what they do?
@PeeHaa if you think it's shit, even just standing up and shouting "it's shit" is enuff
I don't really think apathy is any kind of solution
but do it before it's out
I have done it right from the start
because then it smells for everyone :)
20:58
even if you don't use these libraries, you do actively disagree with their approach
I disagree with a lot of things
I disagree that you disagree with a lot of things.
so .. what's up ?

« first day (1311 days earlier)      last day (3862 days later) »