« first day (985 days earlier)      last day (3970 days later) » 

4:00 PM
@ircmaxell That is a bit counter-intuitive though - why would that be the case? (not arguing with the benchmarks, just wondering)
 
@NikiC I don't think that awkward is the right word. It's two different things, and as like it's totally understandable how the different operators operate with each other an in which priority and after which concepts, I don't see a reason why the common PHP dev should have any problem at all with that. It's not called interfaces, it's not called mixins it's like written in Go so there is even higher level reference (in the meaning from out of the php.net project), so what is awkward?
 
@hakre E.g. deciding when exactly I would use one over the other ;)
 
And because isntanceof is O(log n) vs mine which is O(1) average case (both are O(n) worst-case)
 
I've stepped on a hornet's nest with that hydrator thing O_o
 
4:05 PM
@NikiC Well, if you don't know, you don't know for interface-hints either, right? Or how should I read that`?
@Ocramius What happened?
 
@hakre Huh?
 
nothing, I just woke up lisachenko (AOP guy)
 
user895378
I have to say, I haven't spent a lot of time investigating AOP but when I looked into it I didn't see much real value beyond OOP other than hype about a new paradigm. It's likely I just didn't do enough research though ...
 
@NikiC Only if you don't know when to decide between no type-hint and the interface type-hint, then you would also don't know for the three. And there is already array. Oh ha. Which should I use? Concrete type? Or better array? Or is mixed the way to go with PHP? Hmm. That's a tough decision (since PHP 5.0).
 
@hakre I have no idea what you're talking about there
 
4:08 PM
4 mins ago, by NikiC
@hakre E.g. deciding when exactly I would use one over the other ;)
 
What I'm saying is that I, at least currently, don't see a straighforward heuristic for when to use a Foo typehint and when to use a <Foo> one
 
@NikiC When you're not looking for the concrete type but the cast.
 
@hakre What is a cast supposed to be?
 
@NikiC cast is an object that has a protocol but is of a different type.
 
This is not an efficient way to generate random strings or hash password .... — Baba 1 min ago
 
4:10 PM
It allows you to use concrete types in different roles in other layers of the software.
That's one use-case I can see of those protocols.
 
@hakre Okay, so please explain when it is I want to hint against an interface and when I want to hint against the cast of the interface (or whatever the terminology is)
@hakre dinner, talk later
 
I'm away later, will install my first RaspberryPi
reminds I need to phone that kid
 
@NikiC any comments on this stackoverflow.com/a/17286610/1226894
 
@NikiC when you want type, use the Foo, when you want behavior, use <Foo>... And yes, type is not behavior... Even though we like to think it is
 
@ircmaxell Fair enough, but I don't get why that would be the case in the benchmark in the RFC (notably, why the interface would actually be slower). What you are saying is that using interfaces moves the loop to compile time and always iterates the methods regardless of whether it's used. But in the benchmark, since both co-exist both iterations will happen exactly once at different times
It seems like the difference (though negligible) should tip toward interfaces in that specific benchmark script
 
4:16 PM
@DaveRandom instanceof is O(log n) average and O(n) worst, and structural is O(1) average and O(n) worst...
so the 1 run (since execution), they are the same, but only within the margin of error for the test (about 5% on my machine). For 100 runs, structural jumps out to a huge lead...
 
Hi all ..I asked this and some people suggested abt caching techniques but I am new to it ..can some one plz help me with this stackoverflow.com/questions/17347139/…
any help??
 
@ircmaxell what is that? A comet?
 
@iroegbu space shuttle
 
@ircmaxell OK I think I wrapped my head around that one eventually. Whatever the difference though, it certainly isn't significant or really relevant to the proposal.
 
EXACTLY
 
4:26 PM
@ircmaxell , that one's gonna go in my "random images for testing uploaders" folder
 
Do i need to wait for 2 days to raise bounty for the question or some another way to get an answer or help for the question stackoverflow.com/questions/17347139/…
or very sorry if the room is for only advance developers
 
@Trialcoder Firstly, stop using Simple PHP DOM and just use DOM. Secondly, I can't see any reason breaking it up into 3 steps like that, it seems like the logic in the second and third loops could be moved into the first
 
@ircmaxell , i am helpful quite often .. only usually it take some time and psychotherapy for people to realize that
2
 
@tereško I know, I just like to bust on you
 
a few beers wouldn't hurt either :)
 
4:31 PM
@DaveRandom thx for the help ..so instead of 3 whole code can be pulled into a single loop..is it really possible?
 
@Trialcoder I'm just reading it properly, but at a cursory glance I can't see any kind of state that persists in such a way that it's necessary to do it that way, give me a few mins to work it out properly
 
@DaveRandom actually this is what I am trying to achieve sfori.herokuapp.com
something similar to this oscarotero.com/jquery
 
@Trialcoder Does it really make sense to initialise $prevLabel as an empty array? It seems to be a string when you actually use it for anything...
 
Let me share the code with you
 
> cUrl is better option than file_get_contents by the way
love the empty assertions.
 
4:37 PM
context ?
 
exactly!
 
@Jack okk..i need to chk whether CURL is available at heroku or not??
 
user895378
well, let's be honest ... file_get_contents is a garbage http tool.
 
@rdlowrey okk .let me then First remove that.
 
user1125394
 //is there some one-liner for constructing currency  :)?
$currency = [];
foreach ($accounts_info as $v)
   $currency[$v[0]+$v[2]] = $v[9];
 
4:41 PM
That would be the first garbage that can take itself out ;-)
@cx That doesn't even begin to make sense.
 
user895378
@Trialcoder If you have a very simple use case and file_get_contents fills it, there's no reason to move to cURL. It adds a (nonstandard) extension that won't be universally available across all PHP installs. I was just talking generally about the merits of file_get_contents as a tool for retrieving HTTP resources.
 
user1125394
@Jack it's just an object mapping a couple (broker+accountid) to a currency
 
@cx Ah okay, that just clears it all up </sarcasm>
 
All dat technology and again stupidity prevails... blog.fin1te.net/post/53949849983/…
 
Integer indexed arrays pretending to be objects... oh, the horror :P
 
4:46 PM
@webarto wow $20k ... noice!
 
user1125394
oops it's $v[0].$v[2] in php sorry
 
@rdlowrey Actually I am trying to make like this oscarotero.com/jquery for php sfori.herokuapp.com/ but for php lot of links so the site is little bit slow
 
user1125394
@Jack not clear? {fxcm0: "€", dukascopy0: "€"}
 
I finally managed to make myself really cool, big mousepointers on linux as well (and they look much better there!)
 
user895378
4:50 PM
@hakre lol congratulations
 
@webarto stop rubbing it in ... do you have any idea what that car costs over here? =p
 
Hey homies, quick question I am implementing a PHP type populated drop down list of images and they are taking long to load, what can I do to make it fast?
 
@rdlowrey I love it, it's much more comfortable as the sight gets reduced with the age
 
I would need to report at least 8 of those bugs before I can drive it.
 
43 secs ago, by David Biga
Hey homies, quick question I am implementing a PHP type populated drop down list of images and they are taking long to load, what can I do to make it fast?
 
4:51 PM
I always hate these mouse-trails or echoes, but these large-size contrast-rich pointers are great.
 
user895378
@hakre Oh, believe me: I've just started looking down that hallway myself ... All these kids and their tiny fonts ...
 
@ircmaxell why is laruence complaining about 50 nanoseconds? This really doesn't make any difference even in huge load real life apps
 
user895378
Some people are just negative about anything they didn't create.
 
@rdlowrey Yeah, those were the times. But silly them. In our generation, the screen-sizes grew with the loss of sight.
For those tiny fonts on todays screens, that doesn't hardly make any sense for them in the future :)
 
user895378
ctrl+mousewheelscroll FTW.
 
4:52 PM
@rdlowrey sigh making me feel old...I have same problem on so many sites
@rdlowrey Hear, hear!
 
user895378
\o/ High-contrast for all!
 
@rdlowrey only the pixel-images look so ugly on 250%... :/
 
It could be my horrible astigmatism and need for a new prescription...
But I'm gonna blame the small fonts anyway
 
@rdlowrey I cannot unzoom on FF, I brokeh something for overzooming it :D
 
user895378
Definitely.
 
4:54 PM
@rdlowrey LARGE LETTERS ALWAYS. THAT DOES NOT MEAN SHOUT ANY LONGER. IT'S JUST: HEY, I'M NICE AND HELP YOU READING THIS :)
 
@Jack I just know it costs twice less in 'murica :D
 
user895378
@webarto E_TOO_MUCH_ZOOM?
 
Plausible.
 
@webarto It's a feature called Zoom Lock.
The browser automatically finds out by your usage what the appropriate zoom level is and then only corrects over longer times.
 
Really? I wanted to report a bug :P
Thanks!
 
4:55 PM
shit, need to exchange something broken from the shoppe. got to run, 5 mins left. ... :/
 
run @hakrola run
 
@Trialcoder Well codepad.org/6sHb5aFR does the exact same thing, but I think you actually want something more like codepad.org/zejymr5g which is very slightly more expensive but a lot clearer (IMO)
 
I don't get the whole, "somebody might do something bad with this so it can't be added" argument for protocol type hinting. If we didn't add anything to the language that might be abused by people who don't know any better we wouldn't add anything?
I don't know. Maybe I'm just not understanding that part of the argument
 
> Which shows that unless you want to argue about literally microseconds, I think we can put this performance piece to rest...
@ircmaxell no… it's about nanoseconds
 
when anyone return back in my website then cookies automatically delete... how i can do it for my html site... radiochowa.com
 
4:59 PM
@rdlowrey it's nice for debugging and altering behavior without rewriting everything. Typical use-case: some method is called too many times and you want to log it without rewriting the entire wheel.
 
@bwoebi Performance is coming up a lot for something that shouldn't matter, and yet, neither party wants to ignore each other's findings ... one of those things I guess.
 
user895378
@Ocramius I guess the conclusion I came to is that I felt like you could accomplish the same things with OOP when implemented correctly ...
 
@rdlowrey yes, but you would have to use composition for that, and honestly, it can become a huge PITA
 
@rdlowrey Ohh no no no it's way worse than that. If you read that code you'll find it's actually a call to file_get_html()
 
especially if some a-hole starts using fluent interfaces everywhere :P
 
user895378
5:03 PM
Really? I've never once seen composition as a PITA. Modern DICs eliminate any difficulty with it (for me, anyway).
 
user895378
I see composition as a goal ... not something to avoid. Maybe that's just me?
 
@Ocramius FIFY especially()->if()->some()->ahole()->starts()->using()->fluent()->interfaces()->everywhere()
7
 
user895378
Also, I generally think method chaining should be avoided for that very reason ...
 
@webarto That should be the accepted answer ... to anything =D
 
user895378
Jun 29 '12 at 1:46, by rdlowrey
user image
4
 
5:08 PM
@rdlowrey So basically the answer to all problems is really method chaining? :)
 
user895378
@Jack Yep. I call it, "@webarto's First Law"
 
I like how Jack is stirring the pot .. of shit...
:P
 
What can I say, I like getting my hands dirty, and everything else with it.
 
ah, now I know what's code smell!
 
@rdlowrey I actually love composition and attempt to compose my objects together whenever it is feasible to do so.
I'm actually about to add some object composition to a project at work... right this very moment
 
5:09 PM
I have no idea what you guys are talking about
 
@cspray hey, get a room!
 
Beer? Beer.
 
@Jack Only if you join me
 
user895378
I implemented composition for the LusitaniansMother class the other day. It was a great ... plugin.
 
@Jack @cspray here you go:
 
5:11 PM
@cspray Just make sure I don't remember anything.
 
@Jack mainly because I feel it's irresponsible to ignore false or misleading findings, especially when being called out
 
user895378
@DaveRandom winner!
 
@ircmaxell I understand, but honestly I would deal with such matters off-list .. my opinion.
 
we were, in irc
but Laruence kept responding to list
what the heck am I supposed to do?
 
5:13 PM
@rdlowrey a winrar is he!
 
When in doubt, ignore :)
 
eih
 
There's more interesting stuff to focus on.
 
@Jack no, circular reference :)
@ircmaxell I love this one.
 
5:13 PM
Yeah I knew that was coming lol @ircmaxell
 
A metaphor for my current status: A football coach needs to be smart enough to understand the game, yet stupid enough to care. #sigh
 
I'm not awake enough to actually realize how the benchmarks differ, I see numbers that are awfully close to each other; works for me! :)
 
@Jack One is counting the actual creation of the object AND dispatching the function. The other is only counting the dispatching of the function.
 
Not the first time I ask myself this question: should I vote to close (would have used too localized before but now...): stackoverflow.com/questions/17348432/… ?
 
@cspray dispatching 2 functions, the outer one as well
 
5:16 PM
@cspray Like I said, numbers, not much difference ... yay :)
 
@ircmaxell Touche
 
and the creation of the closure
 
@Jack Yea, that might be true. But the benchmarks are testing two different things
With the proposal I think we should only be focusing on the actual function dispatching and not creating all the resources needed to dispatch the function
 
@cspray Yes, and I care about neither :)
 
@Jack Fair enough :P
 
5:19 PM
@rdlowrey so I have a console here finally :)
 
@cheesemacfly Under the current regime it needs answer/accept I think
 
@hakre You're fast Lola.
 
@webarto eh dude, I was in that shoppe, made a quick turnaround exchange pwning the whole queue because I could side.step them (looking like huh?) and was out of it right 19:05.
Then even brought out the mail to the mailbox which needs to be done until 19:15.
As you can see, a perfectly synched processing over here :)
And all by feet ^^
 
"That's right, bitches, I'm side stepping y'all."
 
@DaveRandom Ok, I guess I'll ask op to answer his question then. Just feels like this is unlikely to help anyone in the future.
 
5:22 PM
@cheesemacfly I agree, but rulez is rulez
 
@cheesemacfly OP should document that here on site. I sometimes also just write a Q&A only to have it documented somewhere in the internet :)
 
@hakre Just found this problem a bit trivial but I just add a comment asking OP to provide an answer :)
 
Interesting, on the internals list it now seems to be commonplace to add +1 in an email to indicate agreement with the counter-argument of the main discussion ... yay for readability!
 
@cheesemacfly Yes I underline your comment as well :)
 
@DaveRandom It applies the settings and cuts off the connection..
@Jack Long tym pal
 
5:28 PM
@webarto GAH!
 
@Mr.Alien It shouldn't when you only change the DNS settings, but Windows is generally a moving target where shouldn't != doesn't
 
@Mr.Alien yeah, i've been away for a bit ... attending amazon's architect course :)
and then spending the last few days enjoying a viral infection =(
 
Interesting, I'm noticing a new trend: referer spam.... Getting traffic to my blog with clearly-spam referers (lookginf ro the back click)
 
people are probably trying to get google to blacklist blogs
 
people huh? what makes you so sure it's not actually skynet?
 
5:42 PM
 
user895378
@hakre Nice. I shifted all my resources to refactoring artax over the last couple of weeks so I could use it to perform massive integration on the http server. I plan to return to server development after this weekend. In any case I'll give you access to the repo. There isn't any documentation at this time but the examples scripts are fairly exhaustive and should be enough to show you the way.
 
@webarto He now has a new narrative ... Q: could it be that my hair is designed by aliens? A: yes, it could!
 
@rdlowrey okay, I'm just on a jump, will be online later, you can also shoot me a mail via the contact-form on my wordpress blog.
 
news.php.net/php.internals/67982 listen up people, it seems we have ourselves a human pretending to be a compiler, or the other way around.
 
user895378
@hakre No need -- I just added you onto the repo. Feel free to peruse/try it whenever.
 
5:45 PM
ah there, cool!
 
@webarto who cares about skynet. NSA is already watching us all.
 
@tereško That would explain my IP camera moving all the time.
 
@tereško NSA is skynet...
 
yeah , it kinda is, minus the self-awareness
=P
 
how do you know?
 
5:55 PM
@ircmaxell not good enough to be skynet.
 
user895378
Skynet would never have let Snowden out of Hong Kong. For that matter, Skynet would've precognitively known what he was going to do before he did and sent a terminator back in time to his childhood to eliminate him.
 
@rdlowrey Yeah, but this time they wouldn't send back Arnold as he was obviously not up for the job.
 
user895378
@Jack Clearly. Down the road when I'm supreme robot potentate (after I've had my consciousness digitally copied onto a cyborg's circuits) I'll definitely not send my old retro terminators to eliminate high-value targets. Bleeding edge technology only.
 
@rdlowrey Running the latest node.js
 
user895378
lol. The T-800: now with more event emissions!
 
6:03 PM
@rdlowrey congratulations ... now we all have been added to some list in some damned filter
 
And that's why you should always carry a printed copy of jQuery, with a small recursive bug in it.
Famous last words: "Damn you, Resig!" KABOOM!
 
@DaveRandom Started :D @Jack Architect course? :-/ n take care bro..
 
Ohh k.
the resize stuff is good :p
 
lots of good stuff :) but somehow managing permissions for ec2 is severely lacking =/
 
6:10 PM
 
@Jack So what are you basically studying that for? building any cloud app?
 
Hey guyz, Is it only me or everyone else too is missing a search function in PhPExcel?? i.e How do I search for a particular String in my excel using phpExcel
 
QUIC is a new experimental protocol, delivering HTTP over UDP.. in Chrome Canary: http://bit.ly/10ZmggW - 0-RTT, FEC, packet pacing.. ftw.
 
yay!
 
user895378
@igorw interesting.
 
6:16 PM
@igorw woah
 
user895378
> Why didn’t you build a whole new protocol, rather than using UDP? Middle boxes on the Internet today will generally block traffic unless it is TCP or UDP traffic. Since we couldn’t significantly modify TCP, we had to use UDP.
 
user895378
:(
 
Yup
 
user895378
It sucks that worldwide adoption takes years upon years.
 
user895378
I think we'll be lucky to see HTTP/2.0 in the next 5 years.
 
6:18 PM
I think we'll be lucky to never see HTTP/2.0
it's really a horrific concept
 
user895378
hehe, good point. For me websockets solve the existing http/1.1 problems anyway.
 
user895378
From looking at the SPDY protocol it mostly seems like a bunch of hacks to work around the slowness of TCP and a world without websockets.
 
@ircmaxell That's all very nice, but I'm not sure how I apply that rule practically
I.e., assume I write a library, containing an interface Foo. I have methods making use of the methods of Foo. Do I hint against Foo or against <Foo>?
 
@NikiC is it in your codebase? use an interface. Is it a library or a service that you depend upon from outside? Use a protocol/structural hint
 
@ircmaxell I must say though that most external code bases probably should be designed with interfaces to be used outside :X
 
6:22 PM
eih, to an extent
 
or at least use those as extension points, no?
 
it depends on why
for example, if I depend on monolog's interface, I'm depending on Monolog... Sure something can replace it, but I'm depending on that code forever... If I depend on the structure of monolog's interface, that changes things
 
@Ocramius the problem is that you cannot define an interface on the consumer side, because the producer must explicitly implement it nominatively.
 
yes, adapters everywhere :\
 
exactly. it forces you to make adapters for everything.
 
6:24 PM
yeh, I don't really have a problem with doing that, but it's indeed annoying
<ot>duke nukem ftw</ot>
 
Hi everyone. Is there some kind of html-beatifier that puts each opening and closing tag on separate line with ident?
 
if you look at how go-lang uses its structural type system, it's actually quite interesting. you have writers/readers, which already provides a high-level I/O abstraction without the need to define reader/writer interfaces as part of the language.
any "object" with a read() method is implicitly a reader.
 
yes
but does GO also have return/parameter types to match that read ?
maybe I'm just too old-style and am scared by it :P
 
6:43 PM
Hi all!! is thr any php file function that let me know about the last updated date of a file ?? I checked here but cant find any relevant method php.net/manual/en/ref.filesystem.php
So that if the data of modification from new exceeds 30 will reflush the file data
 
@Trialcoder filemtime?
 
@bwoebi is it safe to use as im on windows
There's a deeply-seated problem with filemtime() under Windows due to the fact that it calls Windows' stat() function, which implements DST (according to this bug: bugs.php.net/bug.php?id=40568). The detection of DST on the time of the file is confused by whether the CURRENT time of the current system is currently under DST.
 
Hey guyz
hve a quick question
Does phpExcel has something using which I can search through an excel get the row
having my search string
 
@Trialcoder substract the dst conditonally maybe?
Or change your host.
 
yeah ..im on localhost using wamp
 
6:52 PM
can anyone suggest me an ascii code that is valid class name identifier and that doesn't render as �� ? :|
 
@bwoebi so do i ned to uninstall it ?
 
@Trialcoder I mean switch to an unix server
 
okk
 
@Ocramius what's the problem? wrong encoding?
 
which reminds me .. i should actually start working again on setting up a VM again
 
6:56 PM
@bwoebi I was hoping that class names containing extended ascii were fine, but it just renders crappy in console and such... that's a problem if you want to remove a file that was generated and has such a symbol in it
 
@Ocramius my console supports unicode… yours too? that's maybe why it'll render crappy?
 
well, my current terminal doesn't render this correctly: github.com/Ocramius/ProxyManager/blob/master/src/ProxyManager/…
 
0
Q: Creating a custom Moodle certificate

ruda.almeidaI'm using the Certificate module for moodle and trying to customize it. I need to print specific information on the certificate, such as: Full user name Full course name Course starting date Course ending date Certificate generation date Final score for the course Final total hours count Per-mo...

 
specifically '†‡•'
I just need some symbols that could eventally be typed, but can't find any :P
 
a command like echo '†‡•' works perfectly on the console…
 
6:59 PM
Who flagged that question and why?
 
switch your terminal :-P
 
could someone remove the spam from the room ?
 
@BenjaminGruenbaum what Benjamin said
 
@bwoebi I need to make this portable XD
 
@tereško simply read past it and move on. it'll scroll away soon enough.
 
6:59 PM
@bwoebi currently reading ProxyManagerGeneratedProxy__PM__ProxyManagerTestAssetBaseClassYToxOntzOjc6mZhY3Rv‌​cnkiO3M6MzY6IlByb3h5TWFuYWdlclxGYWN0b3J5XEh5ZHJhdG9yRmFjdG9yeI7fQ��.php
 
@LightnessRacesinOrbit that is not the point
 
@tereško it is absolutely the point.
 
@Ocramius then you're restricted to basic ascii only ;-)
 
@tereško what shall we do about your spam? some people will post things that you do not care to read. that's fine. simply forget that you read them.
 
@bwoebi blubb... :S
 
7:00 PM
@LightnessRacesinOrbit are you saying that i entered this chat room ONLY TO POST A LINK TO MY FUCKING QUESTION AND THEN LEAVE !?
 
do you expect your console to recognize the encoding of the output? there's one default and basta.
 
@LightnessRacesinOrbit Why are you lecturing @tereško who is a room regular here about what's considered good and bad quality? You don't see random people from PHP at the lounge whenever some noob is told to 'fuck off' so he flags that message.
 
@tereško it seems that you entered this chat room to moan and complain, and then shout at me in bold capital letters. you have caused by far more damage than a single oneboxed question link.
@BenjaminGruenbaum The lounge doesn't flag messages.
 
It's their room, its theirs to decide. I just didn't understand that random flag at all.
 
@BenjaminGruenbaum also, I'm not random. I'm the flag police! :D
 
7:02 PM
@LightnessRacesinOrbit Lounge doesn't, random vampires asking stupid questions and getting lovely responses do.
 
@bwoebi well, I have no real problem with it, but looks like all of the first 127 chars is taken @_@
 
@LightnessRacesinOrbit some random member of the flag police. not important.
 
stay in c++ room
 
@tereško bit of a jump, especially considering that we haven't even met. but okay... thanks for your kind words. what a nice fellow.
joining your room today has been a fantastic experience. thanks for having me.
 
@Ocramius there are 128 chars including nul byte … but NUL byte in files … er yeah xD
 
7:03 PM
@LightnessRacesinOrbit that's actually what some say around here - stay away from @tereško :P
 
lets review the facts: you entered a room, only to bitch about flags ... seems like quite an asshole'ish behavior
 
@ircmaxell Cleanup on isle 3.
 
@bwoebi haha, yeah, no
 
@tereško He's already gone, and he did it in the JS room before. The problem is flags are broken :/
 
@Ocramius why do you need more than 127 chars?
 
7:04 PM
@bwoebi the problem is just that I'm using base64 to encode some information into the class name, but then base64 may produce /, + or ==
 
i wonder .. what was here referring to in "you have caused by far more damage than a single oneboxed question link"
 
@Ocramius replace it with -, _ and . ?
 
@tereško sure. let's review facts: whenever one of you get your panties in a bunch over someone on the internet being mean to you, and you choose to flag it, every single high-rep user on SE chat is alerted. So of course people come here to tell you to grow up. What did y ou expect?
 
@BenjaminGruenbaum ?
 
@bwoebi _ may already be in use, ., ?, -, , are not valid class name chars
 
7:06 PM
@ircmaxell Read the messages above that one -_-
 
@Ocramius then don't base64 encode it?
 
huh?
What are you talking about/
 
@bwoebi need to... it's basically some arbitrary parametrization of a generated class
 
There is a bunch of non-constructive talk about flags with name calling
 
and base64 removes most of the weird symbols safely for my use case
just those 3 are still itching
 
7:08 PM
@jalf , so , i should not flag something that i consider to be spam ... because it might upset someone ? It feels a bit counterintuitive .. maybe it's just me/
 
@Ocramius why not use hex encoding?
 
@NikiC actually a good idea :O
 
@tereško one post is fine. It has always been. We only consider it spam after the 2nd or 3rd post in a short time. What's with the reaction?
 
@tereško You could try dealing with your problems, for example. Say, talk to the person who upset you. Or, if the matter is really serious, there is a separate option to flag a message for moderator attention. But here's the thing I would like you to understand: merely flagging a message has no fucking effect whatsoever, other than to tell other chat users that HEY I FLAGGED SOMETHING". We can't do anything about it.
And we don't want to know about it
If you think it's counterintuitive, complain to the SE team who designed the chat
the rest of us are just trying to live with it
 
@ircmaxell It was the "join, dump, leave" that was off about it.
 
7:10 PM
@Ocramius you could also try to create your own base62 encoding… xD
 
@jalf I think everyone agrees that the chat flagging system sucks and I am also very sure that people already did complain ;) It's just that SE doesn't give a shit about chat
 
@bwoebi creating own encodings is EXACTLY what I don't want :P
 
@bwoebi I advise against base62 because PHP class names are case-insensitive and the base64 encoding relies on case-sensitivity
 
In the JS room, room owners can ban people. That solved that problem for us, but it's very problematic and we debate about justification a lot.
 
@tereško still, we don't need to go nuts about it...
@BenjaminGruenbaum HUH?
 
7:12 PM
@NikiC that's not a real problem tbh. With hex I'm more worried that I'll reach the fatal 255 chars path limit on windows
 
@ircmaxell Go in the JS room
 
meh, windows =_=
 
in there already, but yes?
 
@ircmaxell i just flagged it .. and then the c++'s *** brigade showed up
 
@Ocramius huh, what does path have to do with class names?
 
7:12 PM
@NikiC okay. then base_convert($hexstring, 16, 36);
 
@NikiC if I have an autoloader doing 1:1 classname->filename then I haz problem :P
 
@tereško I think flagging that was kind of... a bit much. We don't typically do that anyway for that level of offense...
 
@Ocramius for auto-generated classes? Not sure I see the point in that
It's not like the file name would be meaningful to anybody
 
And "the C++ *** brigade", relax people... Not worth starting crap over
 
unless of course they know the ascii-table by heart ^^
 
7:13 PM
^ * 2
 
@NikiC well, I could also dump all generated classes in a single file, that's what I do in SF2
 
perfect time for:
 
@Ocramius If path length is an issue and you're okay to have a separate autoloader I'd just store it under md5(className).php
 
@NikiC can work, I suppose. Will think about it, thx :)
 
7:16 PM
the world (room 11) isn't ready for that :[
 
@Ocramius Also, encoding info in the class name? what crazy things are you doing there again?
 
@CarrieKendall You should be glad that you don't need that. It's not something we like, just something we need right now.
 
@NikiC parametrized code generation :X
 
@Ocramius I think you would love Java :D I heard they generate all their code from XML :P
 
@BenjaminGruenbaum is that a butchered batman reference?
 
7:17 PM
@NikiC hehe, you caught me ^_^
 
@CarrieKendall Not intentionally at least
 
flagged ;]
@BenjaminGruenbaum oh you're talking about the banning, i was referring to my watermelon meme
 
@CarrieKendall Ah lol
 
CAM
@ircmaxell it looks like they deleted the php master series talks from fuzemeeting
do you know if anyone saved those?
 
oh?
I didn't...
I'd get in touch with Cal
 
7:53 PM
type rot13Reader struct {
    r io.Reader
}

func (r *rot13Reader) Read(p []byte) (n int, err error) {
    var i int
    n, err = r.r.Read(p)
    if err != nil {
        return
    }

    for i = 0; i < n; i++ {
        switch {
        case p[i] >= 'A' && p[i] <= 'M':
            p[i] += 13
        case p[i] > 'M' && p[i] <= 'Z':
            p[i] -= 13
        case p[i] >= 'a' && p[i] <= 'm':
            p[i] += 13
        case p[i] > 'm' && p[i] <= 'z':
            p[i] -= 13
        }
    }
    return
 
if err != nil mmmmm
 
What are RTFM questions closed as now?
 
@crypticツ "Lacks basic understanding of the problem" is what I do, or minimal effort
 
@crypticツ off-topic. There is a "has no clue" reason for that
 
Is thr really a need of last else ..or its a junk code -- pastebin.com/aeMsatMH
 
7:56 PM
@NikiC yeah...
Hmmm, a monadic pattern may be better
 
where should I put the .htaccess file? inside /var/www or /var/www/myapp/ ?
im using apache2
 
@Trialcoder The one where the file is created if it doesn't exist? Seems sane to me. I mean, there are better ways to do it logically, but it's not bad.
 
depends on , what for the .htaccess file is
 
??
@tereško im using htaccess to create friendly url.. so I set a RewriteRule
and it will load a specified php file
like
 

« first day (985 days earlier)      last day (3970 days later) »