« first day (1594 days earlier)      last day (3359 days later) » 

12:00 PM
@kki3908050 you don't need to download anything. PDO is enabled by default
 
ThW
@tereško I replaced a dual monitor setup with one of these (LG 34UC87) some time ago. Works really nice. But I am not that much of a gamer (just some WOW).
 
so there is no need to make clalss and objects in it
 
@ThW I always get lost in muyltiple monitors
cannot stand them
 
I have 3 monitors at work
 
@kki3908050 what... ? what exactly are you trying to do? did you read the pdo manual?
 
12:02 PM
@MarcelBurkhard it can
it was one of the reasons why I picked that card with the 8gb variation
 
have you looked at 3440x1440 benchmarks?
 
ThW
@tereško I am using the display port but the LG monitor actually can be used as a dual setup (using 2 inputs). So you can get the features without the major drawback (the space between the panels).
 
patrick i need a complete database class of pdo which will help me doing all operation on db like avoid sql injection / select/insert/delete/update/etc
 
@kki3908050 well ... no. But you might wan't to look at Doctrine ORM (which is build on top of PDO and meant to deal with "entities")
 
@kki3908050 All you need is pdo
2792
Q: How can I prevent SQL-injection in PHP?

Andrew G. JohnsonIf user input is inserted without modification into an SQL query, then the application becomes vulnerable to SQL injection, like in the following example: $unsafe_variable = $_POST['user_input']; mysql_query("INSERT INTO `table` (`column`) VALUES ('$unsafe_variable')"); That's because the us...

 
12:08 PM
sigh
 
well I can still hardcode parameters using PDO theoretically?!
as in $pdo->prepare("SELECT * FROM employees WHERE name = ".$_GET['name']);
 
@MarcelBurkhard you can't fix stupid
 
@PeeHaa
what's the proper word for "bs" in German?
 
@Patrick I know. But "All you need is pdo" is just wrong
@AlmaDo Bullshit? I'd go with "Schwachsinn"
 
@MarcelBurkhard how is it wrong?
 
12:11 PM
@MarcelBurkhard ok, is it countable?
 
Q:
How can I prevent SQL-injection in PHP?
A: All you need is PDO **and parameterized queries**
 
@MarcelBurkhard which is why peehaa posted the link?
 
@AlmaDo what you do mean with countable?
 
@MarcelBurkhard if it is, then I can say
 
well nevermind..
 
12:13 PM
Ich habe ein Schwachsinn
otherwise, "ein" is wrong ..
or should it be einen/eine? (f/m ? )
 
no that doesnt make sense @AlmaDo
 
why?
 
i have a bullshit
 
@AlmaDo what's the full sentence in english?
 
doesn't sound right either
 
12:14 PM
I say, bullshit is pretty much countable
 
no It's not imo
 
because you may count how much times were you screwed
 
^ make a sentence?
 
@MarcelBurkhard that's it, like "I have a bullshit in this particular case"
that's why "a", but "one"
so, "ein" ..
I said
 
"I have a bullshit in this particular case" that doesn't make any sense to me
 
12:15 PM
I don't think that's proper english @AlmaDo but I'm no native speaker...
 
Ich habe ein bullshit
and they all understood, but ..
eh..
I tried to translate, btw. And google says that it's "I have one cow shit" .. lol
 
google doesn't like swear words ^^
 
No, google translates such things as "bastard", "shit", "slut", "b*tch", 'fuck up', "screw you" and so on - pretty much precise
 
the translation from bullshit to german pretty much depends on context
 
so, German have different types of bullshit?
ah, got it
 
12:19 PM
Calling bs on smth: That's bullshit! -> Schwachsinn!
 
Germans have strict type hints on bullshit
eh..
anyway. What's most common?
 
yes, you need the spaceship operator to get the right translation
normally Schwachsinn
 
anything shorter?
 
but it's not a "word" translation, its more like a phrase translation
 
it's like - when you learn the language - you should first to learn such words as bullshit
@MarcelBurkhard what does it (phrase) mean?
 
12:21 PM
I'm not native english
but I guess your neither, so why do you translate from english to german and not from english to native to german?
 
hm..
because I'm not speaking on my native language and.. well, it's a habit to use English
 
If its about how many times you got screwed, I guess there isn't ever any "bullshit" in that sentence
and german would be. "Ich wurde xyz mal verarscht."
 
yay
But I like how "Ich habe ein bullshit" sounds! (:
 
but thats just plain wrong
 
yeah, I see it now
 
12:26 PM
"Not writing unit tests screwed me three times"
"Keine Unit Tests zu schreiben, hat mich dreimal verarscht."
smth like that
 
no, that's pretty non-countable
because not writing unit-tests is a screw up by itself
but other stuff, like particular bugs, or..
 
It is a rather bad example but I couldn't come up with something better.
 
"I had {that} kind of bullshit two times when using {that} crappy API"
^ placeholders
 
guys cud I get some help
a little off-topic
 
possible translation (but not very precise, cuz it's not possible):
Ich hatte diese Art Problem zweimal beim Verwenden dieser verschissenen API
 
12:31 PM
Art Problem? .. huh.. not so.. expressive
 
How can I get a list of all IP addresses my computer used (using Windows 7 or through modem page)
 
open cmd and type netstat /A
just currently opened connections though...
there is no history on those afaik so you're out of luck
 
thanks
another question
Now I need to know how my IPs were assigned to my computer (by ISP, dynamic IP)
 
@AlmaDo "Ich hatte zweimal Scheissereien beim Verwenden..." would work
 
better (:
 
12:41 PM
but you realize this is very... informal? ^^
 
so what
words like bullshit are not supposed to be said in official presentations/meetings
unless all went wrong and you don't care anymore (:
 
Can a Dynamic IP ever get a static IP?
I have a dynamic IP and someone is claiming that I had an IP 59.*.*.* which is static
 
well, it is very well possible that you get the same IP by your isp for a long period of time
even though you didn't pay "extra" to get a static one
had the same ip for more than a year..
 
If you don't restart, I don't think your IP will ever change
 
All my IPs have been starting from 117.*** but 59.*** is wird
And all 59.* IPs are static here
is the claim by an idiot tat I had an IP 59.*** maybe true?
 
12:50 PM
why does it matter?
 
The idiot is shouting at me tat I am having multiple ISP connections!!!
though I have only one
I showed the proof tat I hav one
Is it possible for a dynamic IP to get a static?
How do I check all the IPs tat wer assigned to me int he last 24 hours or so
 
@YashasSamaga you can't, unless you logged it which you didn't
@YashasSamaga ask your isp
@YashasSamaga why does it matter
 
hello
 
is it a mistake or is it just a feature?
http://www.google.com/Google_Devs_Make_Mistakes_Check_The_Title
somone seriously posted that on a forum. (-.-)
I know
but see the title.
!!**1**
seriously -.-
Error 404 (Not Found) !! 1
check the bold one...
Hehe :P
 
I don't know
 
1:00 PM
That reaction :-)} REMOVE REMOVE REMOVE!
 
@JoeWatkins @NikiC @ircmaxell I think I've found a bug in opcache, anyone would like to spare a few minutes to assist?
 
@MikeM. I never see titles sry, E_TOO_MANY_TABS_OPEN
 
I am bored and my boss isn't around, I want to do a monkey test in this office :-)
 
1:24 PM
suggest a IP monitor
 
@DejanMarjanovic is it the path-related bug?
 
@FlorianMargaine bugs.php.net/bug.php?id=69125 have no idea tbh
 
@DejanMarjanovic is this the correct package?
ah
 
changed to opcache :-)
 
you just changed… yeah…
 
1:27 PM
zend optimizer, optimizer, opcache, blah
 
^^
 
Evenin' PHP
 
1:43 PM
Uuugh.. I just woke up and found I was still in this room:( I really must cut back on the beer.
 
Better than waking up in a room you don't know.
 
[checks]... nope, not in Android room.
 
Hey guys, do you recommend this type of an architecture? imakesnowflakes.com/…
 
Bye..
 
I guess he was referring to a physical room, as in reallife.exe ... what a fool :P
 
1:45 PM
:|
 
"what a fool" was directed at Fabor and just a joke
no need for sadface
:P
 
morning
 
Good (UGT) Morning, @NikiC!
 
@HassanAlthaf don't force your project into an architecture, instead worry about separation of concerns
 
@Patrick I know but, I also want the code to be robust. Moreover, I am not satisfied with how I separate concerns.
I went through a few sites which recommended the use of an architecture, your thoughts? Is it fine to use an architecture or I shouldn't use it?
 
1:54 PM
@HassanAlthaf it doesn't make code more robust. It forces everything into a bucket even if it doesn't really belong into one of the buckets.
Like with that article. Where would you put authentication stuff? Talking to an API? Logging?
 
what do you mean
 
@HassanAlthaf You end up with a platypus iamronen.com/2010/05/reading-lila-platypus sooner or later
 
@Jack Sorry? That didn't make sense.
 
user895378
2:09 PM
morning
 
Mornwrey
 
morinin
 
@HassanAlthaf it does make sense. read everything again and think it through
 
Oh
Does he mean that there will be a lot of times where there will be confusion.
 
I encounter a platypus with almost everything I develop :P
 
2:19 PM
@HassanAlthaf it means that every application is unique. You can't force them all into the same architecture.
 
@Patrick Do you recommend me a general pattern to follow?
 
@HassanAlthaf separation of concerns, SOLID
 
@Patrick I know, but don't we use patterns to achieve that? :/
 
user895378
It's unfortunate that Yasuo has a language barrier. I'm sure he's probably very smart but it's usually quite difficult to see the point in his proposals.
 
@HassanAlthaf Eventually all hierarchies are wrong like arguing over whether a platypus is a mammal or a reptile when it is neither. That's not to say you should use a framework or an architecture, just something to keep in mind. If you're building a website then MVC works well for most cases. I would recommend an MVC framework that is well documented and has a good active community.
 
2:28 PM
Oh @Jack So you recommend me MVC? Not gonna use a Framework where I'll have to waste time to learn how it is used and crap.
 
@HassanAlthaf Stop
 
@HassanAlthaf no, patterns are something that are made from your code, not the opposite
 
"MVC" should never be a goal
 
@PeeHaa Nah, even though he recommended me MVC, I don't like MVC.
@FlorianMargaine oh.. I see.
 
@HassanAlthaf you'll learn by using a well-established framework like symfony or zend
 
2:31 PM
@HassanAlthaf You don't even know what mvc is...
 
@HassanAlthaf patterns are only a name so that we know what we are talking about. the implementations can differ. the pattern name is only describing your code, you don't build your code around patterns
 
@PeeHaa lol? Nice joke.
 
It's true
 
@Patrick I see.
 
Explain it to me
Neither does @Jack know what MVC is
Which is fine
 
2:32 PM
Which one? ;-)
 
@HassanAlthaf No explain it to me
 
It's simple as that, isn't it?
 
@Ja͢ck The real one ;)
 
lol
 
2:33 PM
:D
 
@HassanAlthaf you know what they say... if you can't explain it simply, you don't know it.
 
@HassanAlthaf You are utterly clueless
 
@HassanAlthaf I can assure you that @PeeHaa knows what MVC is. Explain to him so that we can assert that you do too.
 
Fine then.
According to all sites I've visited, Model-View-Controller works like this;
 
user895378
Hey @marcio congratulations on group use ... it was touch and go for awhile there :)
 
2:35 PM
A controller captures user requests and calls methods in the Model to fulfil it's logic and makes use of View to update the User Interface.
Am I right?
 
Hi everybody, I have a question about performance, I'm working on an database export class, who will export a lot of data trough Wordpress... (sluggish!) and write theses data in CSV. I have multiple call to do and was wondering if I call them all one after the other

Ex :

public function Do_Export() {
$this->Prepare_Export_Folder();
$this->Export_Create_subFolder();
$this->Export_Agency();
$this->Export_Calendar();
$this->Export_Calendar_Dates();
$this->Export_Fare_Attributes();
... 13 more exports ...
 
@JonathanLafleur php is pretty synchronous in its operation.
 
@Patrick it's more a PHP question than WP, if I havn't specified it will be extract from WP database what will be your answer ;) ?
 
I always stop reading once I see "Wordpress", I think it's an allergic reaction ;)
Can you rephrase it as a PHP question?
 
2:39 PM
@Patrick can't edit it but I would do it normaly just for you :P lolll
 
@HassanAlthaf no
 
@PeeHaa What then?
 
@Jack so it's mean they're going to start all at the same time and eat up all my memory... ? So now, my second question, I was looking to create callback for each method, does that look correct or crazy ?
 
@HassanAlthaf You cannot really do MVC using PHP
 
@JonathanLafleur Nope, the method calls are serialised so to speak.
 
2:42 PM
@Ja͢ck @Ja͢ck this answer confuse me more than the first one ;) I'm not english speaking, so please just be clear with me :P
 
@JonathanLafleur they won't be executed together. Just append each to the file instead of keeping it in memory if it is that much content
 
@PeeHaa I know, I read ircmaxell's blog post which makes me to stay away from MVC.
 
@JonathanLafleur First method is called ... when done, second method is called, etc.
 
@Jack okay so the method I use is okay right now !
 
i.e. serial execution
 
2:43 PM
Okay !
Now I understand sorry ;)
 
Isn't it sequential execution?
 
no probs
 
@DejanMarjanovic what bug would that be?
 
@FlorianMargaine this term look more natural to me "sequential execution" than serial I was thinking about serialisation like json or so... :)
 
@ircmaxell bugs.php.net/bug.php?id=69125 tried to fiddle with C, failed miserably, nevermind, I won't fix it :-) Thanks
 
2:44 PM
Morning
 
dammit Class 'PHPUnit_TextUI_Command' not found
 
@FlorianMargaine If that's your preference.
 
@NikiC Ha! That looks too familiar
 
@DejanMarjanovic It's simple issue ... best wait for dmitry to fix it :)
In the mean time, disable optimizer ;)
@PeeHaa after doing global install with composer
 
I fixed teh code instead ^^
Thanks Nikita
 
2:45 PM
:-)
 
@NikiC yeap. I have created a ticket for it a year? ago
 
Is there some magic one has to do before this works?
Please don't tell me that PHPUnit still needs include_path or some crap like that
 
Let me think hard about whether I jforgot about it or fixed it eventually
 
I've successfully installed it with composer once in the past ... not sure what is wrong now
 
@NikiC why are you doing global install?
do a local install and use vendor/bin/phpunit
 
2:47 PM
^ that was my "solution" :P
 
@ircmaxell cause I want to use it for a number of things ^^
 
never heard about jForgot, sounds like an awesome library :P
 
I guess... But I still local install it everywhere, disk is cheap and version requirements are easier to manage that wya
 
and you can put it in dev-dependencies
composer has something like that right?
 
yup
 
2:51 PM
Composer is a babe.
 
yay, ordered that latest "primary components" for by pc build
 
@tereško nice
 
so ... I don't see phpunit stuff in the autoloader :/
 
Now for @tereško productivity to slip as gaming invades his life.
 
2:57 PM
@ircmaxell \o/
 
@Fabor well , I will also need to buy a monitor, but everything except a storage-hdd has been received or is on the way.
 
@ircmaxell write "const" out
 
user895378
I read "const" as "constant" ... not "ctor"
 
3:02 PM
ran out of space, had to bit.ly some of the links
 
@rdlowrey same
 
okay ... I reinstalled phpunit, now it suddenly works
 
I'm thinking about emailing my perspective on scalar type declarations to internals: gist.github.com/theodorejb/41e932344136c65ca9c4
Any feedback? CC @ircmaxell @NikiC
 
phpunit will show a fatal error if it occurs, right?
looks like it doesn't ...
#1  0x00000000007b540b in php_error_cb (type=64,
    error_filename=0x7ffff548ba28 "/home/nikic/PHP-Parser/lib/PhpParser/Lexer.php",
    error_lineno=54, format=0xc96738 "Invalid numeric literal", args=0x7fffffff9ab0)
    at /home/nikic/php-src/main/main.c:1227
 
posted on February 26, 2015 by kbironneau

/* by jpatricio */

 
3:06 PM
if (false === $id = filter_input(INPUT_GET, 'id', FILTER_VALIDATE_INT)) { <-- need an extra set of () there
 
@Andrea argh, why is this a fatal error :/
 
@TheodoreBrown other than that, sgtm
 
@NikiC well… looks your RFC will pass… then it's an exception.
 
@bwoebi did you merge the date.timezone warning RFC?
 
not yet
 
3:09 PM
k
 
@ircmaxell Thanks. Updated.
 
@bwoebi even if its an exception this still fucks with token_get_all usage
 
token_get_all? what are you trying?
 
wassup guys
how to create a new error_log file everyday
 
@TheodoreBrown I don't get the filter_input example
 
3:15 PM
I have a single one its too large to open in notepad
 
oh nevermind, it's about the second call, not the first
 
@AhmedDaou Have a look at logrotate.
 
@kelunik for windows?
 
@TheodoreBrown lgtm
 
@NikiC Thanks.
 
3:17 PM
@bwoebi not a big problem, just prevents me from full compatibility when parsing 5.x code, because I can't parse code with invalid octals anymore
 
oh okay
 
@AhmedDaou Just search for "logrotate windows".
 
@kelunik I did
 
"logrotate windows" [[I feel lucky]] -> ubuntu.com :D
 
@AhmedDaou sourceforge.net/projects/logrotatewin < first result.
 
3:20 PM
@kelunik have you used this before, im gonna give it a shot
I dont wanna install cygwin just for logrotate
 
And scalar type hints pass with a vote of 3:1
 
@AhmedDaou No, I'm using Linux. :-)
 
yo @ircmaxell, @Patrick and I were just discussing scalar_type_hints_v5. I just wanted to leave my 5¢ on the table: Provided that declare's block mode doesn't apply to the use case: wouldn't it make more sense to use something else that doesn't hijack the already defined scope of the statement?
 
@thwd "already defined scope of the statement"?
I don't get what you mean there, can you elaborate?
 
3:24 PM
@kelunik oh ok cuz this project is still beta
 
@ircmaxell I mean the scope rules defined here: php.net/declare They apply to the statement in general. right?
 
Hello from Ypsilanti, MI.
 
@thwd this proposal uses it similar to encoding where it must be the first statement in the file
except that it adds the restriction that you can't use block mode with types
 
@AhmedDaou There are some more results, but they're German, so I don't know if you'll see them. ;-)
 
Email sent.
 
3:29 PM
@ircmaxell I think (and this is just my humble opinion) that having a statement whose semantics depend on its parameters is complex. Like, depending what declaration I'm doing I might or might not use certain scope. Difficult to pick up.
 
@thwd declare already does that though
also, have you looked through: wiki.php.net/rfc/… ?
 
@thwd scalar type hints don't change declare semantics
 
@ircmaxell I just did, thanks. Declare already being difficult with it's 2 use cases has me inclined to think that maybe it was a bad idea and letting it die makes more sense?
 
@thwd what alternative do you propose?
especially considering declare was made for this exact purpose (changing parser/compiler/executor behavior).
 
please excuse me a minute (work)
 
3:35 PM
^^ it's been updated
> Unlike user-land scalar type hints, internal functions will accept nulls as valid scalars
 
Scalars are winning with 75%
 
Yo
OMG, the voting started
 
yup :-)
 
One more yes vote and you can run around saying "Four out of Five PHP developers prefer Scalar Type Hints" ;)
 
hehehe
 
3:44 PM
@kelunik all I had to do is ini_set ('error_log', 'error_'.date("m-d-Y").'.log'); ;)
 
@ircmaxell LOL
as if php wasn't inconsistent enough...
 
and still break everything in 8, because it's not 7!
 
So what happens if Zeev starts a vote on coercive type hints now, and both type hints RFCs pass?
 
another vote to decide which one
 
or both
since they aren't incompatible
 
3:51 PM
@AllenJB Rock, Paper Scissors
 
@ircmaxell ow god
that would be horrible
 
:-P
 
we'd combine the worst of both ^^
 
@Machavity rock paper scissors lizard spock
 
@salathe if you're up to it, come on into #gophp7-ext on freenode, we're talking about the gophp7 movement, starting with extensions :-D
 
3:55 PM
@ircmaxell sorry had to attend something urgent. What occurred to me is C's #pragma. It's an older and known concept. Disguising it as a statement doesn't make much sense either cause it obviously is not. Considering all this my bet would be on a pragma directive with a syntax resembling that of a parser/compiler directive. Meaning not statement/function-call like.
 
well, except that declare is already that
 
6:2
 
@ircmaxell I am aware of that. It's syntax doesn't say "compiler directive" though.
 

« first day (1594 days earlier)      last day (3359 days later) »