« first day (240 days earlier)      last day (4705 days later) » 
02:00 - 13:0013:00 - 00:00

1:00 PM
@ChristianSciberras combination of duck-typing and dependency injection is usually enough. but you can achieve it multiple ways. (like magic-objects with __call, or by code-generation)
 
@KamilTomšík - DI seriously screws phpdoc :( $db = new Db(new Fs());
 
@ChristianSciberras write your own ;)
 
@KamilTomšík - What? Write my own PHP engine?
It's the darn concept that doesn't work :)
 
How does that screw phpdoc?
DI that is; duck typing does if you don't use @param tags, yes
 
@edorian - You don't know what you're passing in DI.
 
1:02 PM
@ChristianSciberras own documentation generator... but actually - what forces you to generate documentation from classes? why not generate it from existing objects? or better - provide documentation for living objects, not generating it at all...
 
So you are just talking about duck typing and not DI? ok
 
@KamilTomšík - Supporting common IDEs mostly.
You know, autocompletion.
 
@ChristianSciberras okay, fair argument - I don't use IDEs for php devel.
 
@ChristianSciberras yes
 
@KamilTomšík - It's very helpful, to me at least.
 
1:04 PM
and just to be complete, you can to duck-typing with phpdoc support with no problem
looks a little off at first glance but works out well
 
btw: anyone noticed "lack of methods as standalone-objects"? no language which I know, does this, but it's IMHO shame - because literals are basically private instance variables of that method. and it could improve design a little.
@ChristianSciberras ok, no argument there - any meta-magic confuses IDEs
 
But well, I personally don't see the point in duck typing in php anyways. You get many 'problems' without gaining the really nice benefits as the language doesn't support all the fancy stuff the function languages make use of in that regard
Spelling out the interfaces is a very solid default way to go in most cases
 
@edorian yes, it's subjective - spelling method name is enough static state for me... depending on another static interface would be too much for me.
 
And because of that you usually program in a language that supports that purpose well (afaik)
 
@KamilTomšík @teresko - Give this a look: github.com/uuf6429/K2F/blob/master/K2F-DEV/core/system.php
How would you "fix" it?
 
1:13 PM
but the hatred for windows mysql developers doesn't even hold the candle to people who have "id" column in each even fucking every table the make
 
Honestly, I don't see the point behind making it into an instance, let alone adding anything remotely similar to DI.
 
@teresko ?
 
@edorian not sure what you mean
 
@edorian , which part was confusing ?
 
Is an "id" column a problem on windows? (Else i must have misunderstood completly)
 
1:16 PM
you misunderstood
@ChristianSciberras , please watch vimeo.com/13439458 and vimeo.com/13702091
 
@teresko On it...
 
@edorian , the lowercase table names is wide spread practice for developers who keep mysql on windows , because of the ancient mysql table name bug
 
@teresko - But what's the problem with that, really? Lowercase tables, that is.
 
it is a really stupid naming convention , because it makes harder to distinguish columns and tables
 
well, I guess you'd curse select * from db.tbl where a="b" to hell then ;)
 
1:21 PM
posted on June 13, 2011 by Keith Casey

A few weeks ago at php|tek, I was lucky enough to deliver the Closing Remarks. Well.. it was less "lucky" and more of a "wait.. you haven't done anything this week, make yourself useful." So after a week of sessions, midnight hackathons, midnight unconference, tornados, power outages, a red carpet entrance, a family reunion, I got the final word.. Of course, this recap is not verbatim. I did th

 
yes i would
actually i would just put that person on ignore list
 
@teresko - Easy, you can put whole countries there :)
By the way, the vimeo videos don't seem to load.
Maybe the code's too clean for 'em :)
 
if you are really using lowercase for SQL reserver words , if you really use * for select , if you really select have single letter columns , then you should keep at least 100m from any sql access
 
I don't. But arguing naming conventions sounds a tad ridiculous to me.
 
come back when you stop working on projects alone
 
1:27 PM
@teresko ever heard about NotORM? you can write * in selects, and it will remember accessed columns, so next time only those will be fetched...
 
@teresko - You know, there's something called "opinion" and as much as you think yours is the absolute law, everyone has one.
 
@KamilTomšík, are you trying to make me angry ?
 
pats @KamilTomšík on back.
 
@teresko no, I actually agree with you, just wanted to mention one interesting idea related to your discussion
 
@KamilTomšík - This reminds me on the good ol' filename debate.
 
1:30 PM
which one?
 
Where some people actually believed no one would write spaces in a file's name.
Someone must have thought, "heck if people just can't help it, let's make it a standard".
 
@ChristianSciberras I think files will disappear one day... and maybe even earlier than I would expected.
 
As did the floppies.
Does it mean we have to purposefully introduce design issues in everything we write?
What's the point of automating processes when we only do half a job?
Machines should be nearer to people, not the other way round. At the same time, abstraction is nothing more than fixing problems we introduced earlier.
Blacklisting characters surely isn't the way forward. And the larger the language/system is, the more widespread mess in characters. @KamilTomšík once mentioned this when he said "more features" isn't necessarily better.
 
@ChristianSciberras I wrote about related topic... cztomsik.posterous.com/fighting-ui
@ChristianSciberras yes, I wrote a post about it too - "language simplicity matters"
 
Thanks for the link @KamilTomšík.
 
1:39 PM
np
 
The only good thing about this is that if abstraction was written good enough, there may be the slightest chance it holds up in the future when you remove it in favor of a proper system. I don't see this coming soon though, judging by the folks writing RFCs....
 
2:06 PM
posted on June 13, 2011

The Adminxweb site has put together some framework benchmarks for several of the popular frameworks out there, some of which you may not have heard of before. There are various PHP frameworks and they all have different speeds. The only way to judge a framework by its speed is by benchmarking - conducting tests and comparing the results. [...] Comparing various benchmarks is less of a scien

 
old but with some truth included
 
2:51 PM
posted on June 13, 2011

In a recent post to his blog Jason Stiles takes a look at some of the things you can do with PHP to help protect your site from XSS (cross-site scripting attacks) with some basic filtering. Cross-Site Scripting (XSS) is a type of attack where a hacker attempts to inject client-side scripting into a webpage that others are able to view. The attack could be as simple as an annoying alert win

 
3:06 PM
@Feeds use DOM -> no XSS. at least if you dont allow them to set attribute values
 
just put an ignore on @Feeds
it will save a lot of pain to you
especially when it comes back with news from phpclasses.com
 
ponders trolling gordon
 
ponders removing phpdeveloper.org from Feeds because of the continous stream of low quality messages
9
 
that would be nice of you .. lets vote on this
 
hey. anyone good at identifying MVC?
 
3:24 PM
we are better at identifying not-MVC
 
@teresko i have to work on a proj for my office on a 2 yr old site and the orig dev isnt here and idk what the mvc he/she used is
 
i n clu w u mn
 
well, if it a well structured code , then you shouldn't have to care about the specific flavor of mvc
 
and since mvc is just a pattern it should kinda look the same anyways and it shoudn't matter that much what the implementation details are
 
@edorian , don't make fun of people who pay for internet on per-letter basis
 
3:33 PM
@edorian I dont normally (ever) use mvc. so i dont rly know what im doing
 
@Neal I don't have a solid "explaining MVC in the Web" link ready. In very shorts it's just seperating buiness logic (models), handing of (user)-input (controllers) and presentation (view)
 
@edorian yes i understand that. but i just want to edit code that is there. is it worth it to scrap the mvc just to make 4 static pages (that my boss wants to change to)
 
Well if you want 4 static pages it seems pretty straight forward to just create 4 static pages
and not touch the application at all
 
@edorian exactly. so just block the application?
aka rename the index file and create my own?
 
4:00 PM
Huh? Room for Christian Sciberras and Kamil Tomšík?
@ChristianSciberras ?
 
posted on June 13, 2011

In this new post to his blog, Stefan Koopmanschap shares some of what he thinks both the PHP language and the PHP community need right now to help make things better overall. Today, a riot fight strong discussion happened on Twitter regarding PHP. Some guy forked PHP and made some changes to it, then released his package on his own site. Some of the improvements were clearly just to please

 
@KamilTomšík ??
 
@Neal dunno, Christian invited me to his room, but I don't know why :)
 
he has something embarrassing to ask you
 
lol
 
4:11 PM
I hope not :-P
 
5:01 PM
Any ideas what causes php's ZIP not to write the actual zip file?
 
posted on June 13, 2011

Greg Wilson has an interesting new post with some of the recommendations he made to a friend about recommended reading for a software engineering teacher so they could be one step ahead of their students. I got mail yesterday from a former student of a friend of mine who has just been told that he has to teach an "Intro to Software Engineering" class this fall to a bunch of third-year under

posted on June 13, 2011

Keith Casey has a new post to his blog today sharing some thoughts similar to those he gave in the closing remarks at this year's php|tek conference that recently happened in Chicago. A few weeks ago at php|tek, I was lucky enough to deliver the Closing Remarks. Well.. it was less "lucky" and more of a "wait.. you haven't done anything this week, make yourself useful." So after a week of se

 
5:24 PM
@ed
@edo
@edorian still here?
 
 
1 hour later…
6:32 PM
@KamilTomšík I must confess....Firefox 4 sucks big time. Hmm not much of a confession. XD
I was just trying things out ;)
 
6:44 PM
use opera =P
 
anyone here with knowledge of unit testing?
 
7:13 PM
anyone here?
unit testing in php?
grab some tools and go ahead
Firefox is sinking to big with FireFox. It is still bulky and slow on startup and keep crashing all the time
still using Google Chrome which is the best so far
quick, nimble and slick
 
Tek
agreed
 
Offhand - anyone know why NULL variables would show up as &NULL in php sessions?
 
which part are you asking? & or NULL?
1
Q: In PHP, why are my session variables persisted as references?

WilliamHere's the code. It's a simple operation to check that a session ID isn't being spoofed by verifying the IP address: session_start(); $session_ip_address = $_SERVER['REMOTE_ADDR']; if((!isset($_SESSION['SESSION_IP_ADDRESS'])) || !$_SESSION['SESSION_IP_ADDRESS']) { $_SESSION['SESSION_IP_ADDRE...

maybe this one could help I am not sure
 
7:30 PM
Thanks for that
Thought I think its still a bit over my head >.<
Basically I have a session, and after trying to var_dump() it on another page, every variable is set to &NULL some how.
 
wow ... a lot of people ..
 
Trying to research why its being set to null, and why the ampersand is showing up.
 
hi
-3
Q: Can people PLEASE spell out their acronyms

NealOkay. I keep seeing new acronyms everyday on Stack Overflow. Like AFAIK or IMO etcetera etcetera.... Is it possible to make a stack rule (or Frequently Asked Qustions [FAQ] entry) that when you are answering a question you spell out whatever acronym you are using. because not all of us know wh...

 
7:45 PM
guys i urgently need this php function but I forgot what it was as I havent used it in forever, its similar to substr_replace but instead what I want is a function that starts at a specified position and retrives a certain amount of strings. For example, if I want to start at position 5 and get 6 strings that come after the position 5 then I would use it. What is that function?
 
Hi
can anyone please dictate me? I need to parse phone no. from this website:
sorry operator name
the problem is when I search from website I need to enter just phone no.
but in the address bar it wants three parameter
I have two, but I don't have the operator name parameter
 
8:22 PM
what exactly do you mean by "dictate" ?
 
ESL fail I think.
 
hey , english is my 4th language
i dont take this as an excuse
... besides , the guy left
 
9:10 PM
anyway to do a mysql auto reconnect?
with php?
saw this (stackoverflow.com/questions/982442/…) already which is useless
 
9:27 PM
@Neal , emm .. wtf ?
 
what?
 
what do you mean by "reconnect" ?
php applications usually do not persist for long
you reconnect each time you load the page and need uncached data from database
 
i have a comet implementation. it might lose the mysql connection
 
then the PDO will most likely throw an exception
> PDOException: SQLSTATE[HY000] [2013] Lost connection to MySQL
.. or something similar if you actually drop mysql and try some some serious DB system
 
10:24 PM
posted on June 13, 2011 by Mayflower Blog - PHP

Am kommenden Donnerstag, den 16.06.2011 findet ein weiterer öffentlicher Vortrag im Mayflower-Büro in Würzburg statt (Pleichertorstrasse 2, 97070 Würzburg, Straßenbahn und die Haltestelle Congress Centrum). Beginn ist um 18:00 Uhr, Thema des Vortrags ist "Redis". In dem Vortrag von Peter Voringer geht es um die Funktionalität und den Einsatzbereich/-möglichkeiten von Redis, sowie die

 
10:59 PM
Hello, does anyone know if there are any working bridges for zen-cart 1.3.9? I am trying to perform a zen-cart login in an alternative script and preserve the session. Thanks.
 
11:50 PM
@SteveHartken the only one that will work exactly as you want is hiding deep some where and you have to dig it out with some good coding :)
 
02:00 - 13:0013:00 - 00:00

« first day (240 days earlier)      last day (4705 days later) »