« first day (451 days earlier)      last day (4497 days later) » 

3:00 PM
@edorian Problem solved. I ditched ArrayObject for ArrayIterator, and override the current and key method.
@BoltClock That is a great idea, but what if it was a case of ?
 
@OmeidHerat Like how?
 
@OmeidHerat what are you trying to do?
 
@ircmaxell Encrypted Session. wrapping the $_SESSION array.
 
@develroot I've worked a little with every RC for testing purposes
 
@OmeidHerat Why would you do it that way?
 
3:03 PM
@BoltClock Like using the wrong object to inherent, and thus not being able to get the desired functionality.
 
Morning all
 
@ircmaxell Couldn't thought of a better way, I assume.
 
@OmeidHerat you couldn't implement a Session Save Handler?
 
@ircmaxell I could have, but I rather inject the session then using a session handler.
 
why?
 
3:08 PM
1. I can stick to use the default session handler and yet encrypt it.
2. It's an Object, I can manage it better then having a session handler with bunch of functions.
 
If you want to encrypt the whole session file (why ever you would want to do that but go ahead) It, to me, makes A LOT more sense to implement a session save handler than just "encrypting" all the parts
A session save handler can be an object. Even before php 5.4. See the first comment on the doc page
 
I would implement it as a save handler. That way you can decrypt on session start, and encrypt on save. No need to do transparent piecemeil encryption (which will be hard to do in all cases)
 
3
Q: Reaching 100% Code Coverage with PHPUnit

nikc.orgI've been in the process of creating a test suite for a project, and while I realize getting 100% coverage isn't the metric one should strive to, there is a strange bit in the code coverage report to which I would like some clarification. See screenshot: Because the last line of the method b...

Already hit rep limit today so I'm not even point whoring with the link :P
Just wanted to see if the answer makes any sense
 
No tag? >:U
 
@BoltClock I'm not decided on that to be honest.. pretty much ANY could be too
 
3:12 PM
Woah, my inbox is literally empty
 
@edorian Yeah I just added it.
 
I sometimes add them for exposure .. should I always do that?
 
Yes, do so. It's a question. There's no harm in it.
 
@ircmaxell @edorian Makes sense, but wouldn't it be better to have an array object to inject rather then a global variable (though Session storage is global anyways) ?
 
Also, code snippets will be highlighted with a language tag.
 
3:13 PM
Oh, It does that from the tags? Didn't know that
 
@OmeidHerat no
 
When I wanted the highlighting I used ```php
 
@BoltClock I tried <pre class="Lang"> ..</pre> it just breaks the pre :|
 
47
A: Syntax highlighting language hints

Jeff AtwoodNote that this question is a bit obsolete, because we now infer prettify language type based on the tags. See more: Changes to syntax highlighting This is now implemented. In addition to tag inference (a recent change), you can manually specify the language as a hint to Google Code Prettify. T...

 
I am of the opinion that you should never try to hijack default functionality. Handlers are included for a lot of it, so use them instead
 
3:14 PM
Use the language hint syntax shown in that meta post with Markdown code blocks.
 
That tagging will get me a lot closer to gold on
 
lol
 
I was just about to ask how to search for that :) Didn't know -[tag] was possible. nice
It still feels a little strange to add php to all of those shurg
 
I have a bunch of questions to remove from... went through about 100 in an hour the other day.
I know what you mean by strange x_x
 
3:19 PM
Is increasing visibility (protected -> public) of a method in an inheriting class typical to the fundamentals of agnostic OOP, or should inheriting classes require that methods keep the same visibility?
 
@BoltClock With all the synonyms on those how did you find 100 that didn't fit the tag? oO
 
@edorian Many people use that tag when writing questions about CSS or other theme-related stuff, presumably because of the word "style".
 
@ircmaxell OK, but that way I have to manage the storage myself as well and can't use the default storage, right ?
 
Wouldn't it be nicer to burinate all together instead of having one mapping for it that maybe fits 50% of the usages at most?
 
Some coding style questions are valid but I'm not sure
-shrug-
 
3:26 PM
@OmeidHerat yes, but that's easy to do
 
I meant: leave coding-style but get rid of the generic tag. But yeah :)
 
@Bracketworks I wouldn't say require, but it's typically seen as a violation of Single Responsibility Principle
 
@ircmaxell So the fact that PHP allows a protected method to be overridden as public in an inheriting class is such a violation?
 
@Bracketworks I don't see any issue with that. If you are exposing more functionality it doesn't really matter if you do it by making something public or adding a new method that just exposes that functionality
if you make doStuffpublic, for me, it's the same as creating a new makeStuff() { return call_user_func_args($this, 'doStuff', func_get_args()); }
Do well.. the only question is if that functionality was in the right place to begin with as @ircmaxell pointed out
 
@Bracketworks Not at all... There can be use-cases.
 
3:31 PM
My question is, because I noticed that PHP permits overridden constructors to have their visibility changed in the inheriting class.
This didn't seem ... well, right.
 
it permits any method override
 
there are no rules (at all) enforced on __construct. No signature no visibility
 
Hmm, that's unfortunate
 
Signature for very good reasons I'd say.
 
I know the signature isn't enforced
No, of course
But I would think visibility should require be preserved
 
3:34 PM
That visibility isn't enforced is just nice to "break" singletons :P
 
Haha
 
Next time someones talks java down. I will post This Link.
2
 
Well if you have one class with a public __construct and you want a child to have 3-4 static constructor methods but no default constructor it can be nice
@OmeidHerat Talks down java? All we do here is try to make PHP look like java anyways :D
 
@OmeidHerat Java sucks
 
3:39 PM
Yup so does all other languages.
21 hours ago, by Omeid Herat
'There is languages that people bitch about them, and there is ones that no one uses.'
@ircmaxell Nice, we made to 4 Language.
JavaScript Sucks.
 
The hate wall
PHP memory usage sucks.
 
Even so I find the PHP related stuff a lot nicer on the starrs
 
dum de dum
 
huh?
 
:)
 
3:40 PM
The self deprecating humor of the php community is a lot nicer than the "other stuff is stupid" quotes :)
 
@Donut I am trying to start it, but I feel guility of talking about a language that I haven't even wrote a line in.
 
"PHP 6 must be around the corner guys! I already bought a book, and started refactoring!" -- Painfully optimistic guy
 
posted on January 10, 2012 by Paul Reinheimer

I fell in love with Hooks in frameworks recently; the honeymoon period was tragically short. First, the love story: I ran into hooks rather simultaneously with two very different frameworks: Code Igniter and Lithium. In both cases I was using a rather nifty hook to handle ensuring that users were properly authenticated and authorized before accessing a page. I think we can all agree havi

 
@Bracketworks That would have been much more relativistic if s\6\5.4
 
3:44 PM
which is why you ignore all books that come out about an unreleased or a just-released version, that were not written by lead developers of the project
> PHP 6 (due out in 2008)
 
Hahaha
 
'With step-by-step instructions....' Those walk through 'make web sites...' stuff. Ah.
 
"The book's publication date is likely to beat the official release of PHP 6" Just by a little...
 
@edorian Hahaha, PHP 6 (due out in 2008) says the book.
 
The way things are going, even with a head start (now of 4 years) 2/3rds of what's offered in that book will not be offered in PHP6 when (if) it is released
 
3:47 PM
> This guide is indispensable for intermediate- to advanced level Web designers who want to replace their static sites with something dynamic.
Now that is plain stupid assumption.
 
I was really hoping that alot of the fundamental constructs introduced as of recently (5.2/5.3) would be sorted out for 5.4; so they decided to add traits instead.
 
@edorian I saw that book in my school library three years ago
 
@BoltClock How old are you ?
 
@OmeidHerat I turned 20 last Wednesday
 
Nice. and Happy birthday.
 
3:50 PM
Happy belated birthday!
 
@Bracketworks Thanks :)
Apparently I am the youngest mod on SO
 
Speaking of school, I'm off; later gentlemen.
 
But not across the network by far
@Bracketworks Enjoy
 
I am feeling the power of Douglas crockford, no one stared this:
12 mins ago, by Omeid Herat
JavaScript Sucks.
 
We are only allowed to hate on the things in which we are experienced in. And when it comes to JavaScript I'm fairly sure that I'm not
 
3:53 PM
@BoltClock Youngest and best ;-)
 
@edorian Makes sense, that is why I said:
13 mins ago, by Omeid Herat
@Donut I am trying to start it, but I feel guility of talking about a language that I haven't even wrote a line in.
About Go.
 
@lonesomeday Best...? :O
 
just noticed that @Gordon is #12 SO-Germany and that I made top 100 today
 
@BoltClock I'm not too proud to suck up to mods.
 
I hate Brainf**k, its name is so offensive to random people that I can't even spell it out here >:(
 
3:57 PM
Not saying/writing fck but having a thousand words around it it a very strange quirk of American culture
 
@BoltClock What? My rule is that if there's a Wikipedia page for it, it's not too offensive
The brainfuck programming language is an esoteric programming language noted for its extreme minimalism. It is a Turing tarpit, designed to challenge and amuse programmers, and was not made to be suitable for practical use. It was created in 1993 by Urban Müller. The name of the language is generally not capitalized except at the start of a sentence, although it is a proper noun. Language design Urban Müller created brainfuck in 1993 with the intention of designing a language which could be implemented with the smallest possible compiler, inspired by the 1024-byte compiler for the FAL...
 
@ircmaxell FLAGGED
 
really?
 
@BoltClock huh?
 
4:00 PM
Nah, just kidding :P
 
(and sorry for the lame joke on my part)
 
Where do find the language constraints implementation in the PHP source ? I am looking for foreach now
@edorian That is kind of a personal thing, it's offensiveness is subjective.
 
:-D
 
@edorian Cheeers. I am trying to figure out how is var_dump accessing the information in a different way then foreach.
 
4:12 PM
Hi, I'm developing an application that requires a 1-1 private chat; I think I pretty much understand how to make the chat logic work, except one part.......how do I identify if the chat recipient isl online or not; the current login mechanism uses a cookie system, and I'm not sure how to implement the chat system with that
 
@ChristianSciberras @hakre btw, I reckon they have fixed the json_decode in 5.4, and plus now it throw exception.
 
@user705339 Web based I assume? And do you use ajax, long polling or something else?
 
@edorian yes
I just read about Comet, but don't really understand it for now; so I plan using basic AJAX timer
 
With ajax you can maybe send a "logout" off it the user closes the tab but the fallback is always "didn't hear from the user for 3 times the ping interval" I'd say
So all you can do is assume that they are not there anymore
 
4:27 PM
@edorian no....how to initially starts the conversation
@edorian how do I know that the user is online, in order to start chatting with him/her
 
Well if you are doing it with ajax you will have your users "pinging" your service
So everyone that has pinged you in the last 30sec to minute is considered "online" I'd say
 
oh..so create a table for online users
and anytime a request is sent, update the table?
 
for example
 
@user705339 Or you can even use Session, that way it's way cheaper but a bit harder to implement and less flexible as it relies on lots of external factors.
I am off.
Later everyone.
 
@OmeidHerat You can't search through sessions :)
(Well you can.. technically.. but really you shouldn't)
 
4:33 PM
@edorian Unless you implement your own session.
 
@OmeidHerat I don't want to use session variables at all; that's why I use cookies where possible
 
@user705339 Well, you have to use Session anyways. how would you keep track of online users ?
Oh. cookie.
 
Still why would you store the whole session (why would you have one and load it) for each chat pull and push request
Seems like a strange way to store this
 
@edorian store what?
 
@edorian True that, but if you make your own handler, I don't see much difference to create a proxy that pulls the session information to a table other then session or just using the data from session table.
This time. I am off for real.
Peace out.
@edorian write your answer I will read it when I get back tomrrow, Later now.
 
4:51 PM
blah
Yay, just crashed Netbeans
 
@ircmaxell Lucky you.
 
Why oh why does Windows let applications steal focus
 
@ircmaxell You think it only happens on Windows? :/
 
no, but it's annoying as hell
 
Anyone here used php 5.4's SessionHandler?
 
4:58 PM
no
 
wow, look at the stars :-D
 
@KamilTomšík I know, right?
 
let's add new one...
C++ sucks
 
@KamilTomšík I'm not voting that. I quite like C++!
Now the people over in the C++ channel here at SO. . . I don't particularly like them :)
 
@LeviMorrison seriously, I don't like c++ and what it did with original idea of OOP
 
5:14 PM
@ircmaxell Can you stop pinning "us" bitching about non-php-related technologies?
 
@KamilTomšík Well, C++ isn't flawless, I'm not saying that at all.
 
@edorian @ircmaxell Exactly. I'm this close to wiping all of them.
 
I actually wouldn't mind getting rid of the cpp and java stars but please at least leave up salathes ones
It's grown to our hearts over the last half year and I think it's ok for us to be mean to php :)
 
Yeah, I'll whipe them
 
one rule them all :-)
 
5:24 PM
@KamilTomšík But at least it helped the return of functional languages
 
evening
 
(By not really being about OO and people iterating over the concepts a lot)
 
hey @KamilTomšík
I just got an announcer badge on stackoverflow.com/questions/1300655/…
But I have no idea where I linked that (on SO)
 
@NikiC Well @BoltClock got 140 or something today :) I also got one
 
@edorian 150+
Somebody decided to star my screenshot, go figure.
 
5:26 PM
@BoltClock wtf? 150 badges?
 
3 hours ago, by BoltClock
@edorian No, it's because they changed the badge criteria to no longer have time constraints. I've been tweeting SO links so naturally those got clicked over time.
 
hö, but how does SO detect links from outside?
I did link to that answer, but I never linked to it on SO
 
@NikiC The little hyperlinks called "link" that you see under questions and answers have your user ID appended to them, so any visits will just count.
 
QuestionId/UserId
 
5:27 PM
@BoltClock aaaaaaaahhhhhhhh
Now I get it :D
 
As for the badges themselves
28
A: Booster badge should be golden or easier to achieve

balphaThis is actually already in the works. The Announcer / Booster / Publicist triad will behave like other similar badge groups afterwards, e.g. Nice Answer / Good Answer / Great Answer or Notable Question / Famous Question. In particular: The timeframe will not matter anymore. You still get the F...

I have more Announcers than Nice Answers... so annoying.
 
I'm off. Laters :)
 
@edorian you mean cpp?
 
@BoltClock thx
 
@NikiC hey! :-)
 
5:31 PM
how's it going @Kamil?
 
and I'm good btw, how about you? ;)
 
good, good, me too ;)
 
@NikiC 150 today?
I got 4
 
@ircmaxell not me, @BoltClock. I only got a single poor little badgy
@ircmaxell Hum, the pointless post on single quotes did get on phpdeveloper for some reason phpdeveloper.org/news/17369
 
nice
yet mine on interviewing didn't...
 
5:40 PM
@ircmaxell Most of my other posts ended up there as well, I just didn't really expect with this one
 
mine have in general too
 
6:19 PM
@KamilTomšík Yeah
@NikiC Rule #1 about php blogging: It will get on phpdeveloper
 
i want to do a sql query that involves 3 tables... any good tutorials for multiple table queries?
 
Once they have your rss feed there is nothing "to pointless" that has 2 cents worth of drama or one person that still thinks otherwise
(Still like the side, no offence intended, they just have a very diverse audience that they cater to)
@KamilTomšík Yeah i was referring to cpp
 
@edorian Yes, they accumulate pretty much. Much more than planet php e.g.
 
planet php just reposts feeds from stuff they already added iirc?
 
yeah
 
6:24 PM
@edorian my latest didn't :-(
@edorian yes, I haven't been able to get listed
 
@ircmaxell Have you tried?
 
this dang thing doesnt work: code.google.com/p/mod-auth-token
 
three times
 
@ircmaxell Now see it didn't have "PHP" in the title
 
lol
 
6:25 PM
@ircmaxell Huh? You mean like asked them to add you?
 
@NikiC How does one "try" there?
 
my system admin installed it, but i can still access the files that are supposed to be locked
 
@edorian Yeah, that's exactly what I wondered ^^
 
sec
 
6:27 PM
that's the one, it's not loading for me
loaded, went to the wrong URL
 
hm, will try it :D
 
@edorian how's that? cpp made something good for functional programming?
 
@KamilTomšík Well it made programming really painful for a lot of people so there was pretty rapid innovation that spawned a lot of new languages
 
ROTFL
 
Oh btw: I've talked to a friend that currently majors in CS and in the Software-Development course there was a piece of pure gold
 
6:31 PM
Fair enough
 
@edorian oO
 
This shows, what they teach are, the communications path and hierarchies of a "good" software project
 
So the PM is above the PL?
 
Hello Everybody
 
QA doesn't talk to Developers, Developers don't talk to the Architect, Project Management doesn't talk to the architect or developers and the Architect also doesn't talk to the customer.
> German engineering in da house!
@Rahul Hi :)
 
6:33 PM
@edorian star
 
Well, I can see PM not talking to developers... But the others are fubar
 
And who does talk to the architect?
 
The project lead assigns him work but he doesn't inform anyone (according to the graphic and the other slides at least)
 
Funny
One way path
 
@KamilTomšík Nobody needs to. He's in his own world...
 
6:35 PM
And this is one of the Universities with a better CS course.. which is somewhere between really funny and really sad :)
 
True :-D
 
@edorian Sad :( That's why I'm going to study physics, not CS.
 
Physics? Which specialty?
@edorian It's expected. CS degrees don't teach students very much that they are going to use in the real world after freshman year (first year). If you want to be good, you're better off learning on your own (meaning on the side)
 
@ircmaxell To be honest it apparently got a lot better in some areas since I went to Uni. He can code (programm, not develop) sort of ok in Java, C# and Python. That are 2 more langs than I learned. And they do way bigger projects that span 6 month and a team instead of just having little examples
 
Oh really? nice
My school tought Java, C and C++... I took Fortran (required for engineering and math majors)
 
6:44 PM
@edorian my research today let me discover f-ei.hs-zigr.de/… (german, so uninteresting for the others)
apparently, they discover that their way of teaching could be improved
 
I should flag you for discrimination :-P
 
@ircmaxell Can't one study "just physics"?
 
@NikiC sure, but I was curious which area you were interested in (theoretical, quantum, astrological, etc)
 
@ircmaxell I would be interested in theoretical or quantum physics ;) Though seriously I don't think that I'll go into physics later, that's more just so I have studied at least something.
 
Oh, I got that much... :-D
 
6:49 PM
@ircmaxell :D
 
if you weren't going into dev, I'd be shocked
 
why?
 
you have a talent
 
lol
@ircmaxell appreciate you saying that though :)
 
it's the truth
 
6:59 PM
@ircmaxell i second that
 

« first day (451 days earlier)      last day (4497 days later) »