« first day (844 days earlier)      last day (4119 days later) » 

user895378
9:02 PM
@webarto Forthcoming:
 
user895378
$ipv6Addr = '[::]:1337';
$serverSock = stream_socket_server($ipv6Addr, $errNo, $errStr, STREAM_SERVER_BIND | STREAM_SERVER_LISTEN);

// ...

$clientSock = @stream_socket_accept($serverSock, 60, $clientName);

var_dump($clientName); // string(22) "::ffff:127.0.0.1:50888"
var_dump(stream_socket_get_name($clientSock, TRUE)); // string(22) "::ffff:127.0.0.1:50888"
 
user895378
I don't know a ton about IPv6, but that doesn't seem right.
 
null
boolean false
:\
 
user895378
Well you can't paste that in because the client acceptance needs to happen in a loop ... it's a server
 
Oh :)
 
9:04 PM
@tereško :D
 
@rdlowrey well if that is supposed to be the ipv6 loopback address is hould be ::1
 
@PeeHaa the ipv6 loopback is a lie
there is nothing but ipv4 i don't adapt or change for the world the world changes for me now give me my Windows 2000 drivers
 
user895378
@PeeHaa So $ipv6Addr = '[::]:1337'; should be $ipv6Addr = '[::1]:1337';?
 
ahoi
 
@Lusitanian NT4 FTW!
@rdlowrey IIRC yeah
 
9:07 PM
> For example 127.0.0.1 has the address number 7F000001 (2130706433 decimal) in the ipv4 address space. ::ffff:127.0.0.1 represents the same address in the ipv6 address space where it has the address number FFFF7F000001 (281472812449793 decimal). Meanwhile ::1 has address number 1 and serves the same purpose in the ipv6 address space that 127.0.0.1 serves in the ipv4 address space.
 
@PeeHaa I'll see your NT4 and raise you an MS-DOS 6.0 floppy disk installation set.
 
@kaiser hola
 
@rdlowrey Yeah, try [::1]:80 etc
 
@webarto useful post is useful
So basically it is just a "translated" 127.0.0.1 instead of the actual loopback?
 
@DaveRandom actually knows networking but he's probably out doing something silly like making money to support his family
 
9:09 PM
@Lusitanian 6.0 neh. 6.11 has always been the way to go tm. Even before 6.1 it was the way to go :)
@Lusitanian That stupid wanker :P
 
@PeeHaa I think I have install disk 3 and a manual for it and nothing else :D
 
@Lusitanian hehe
 
given my age when i would have seen that stuff, for all i know i might have eaten the other floppy disks :)
 
:D
 
@rdlowrey somebody knows something about servers in Site5, so I can ask if something networking specific etc.
kids these days :D
 
user895378
9:11 PM
@webarto I just don't know enough about ipv6 to know if it's something I'm doing wrong or if it's something php is doing wrong. Probably the former.
 
@webarto Sounds like a provider I would throw my money at. "Somebody might know a thing about servers" ;)
 
@webarto i have set it up once ... it was a pain (on freebsd)
 
I still have windows 3.11 on my server somewhere: puu.sh/1Yuw4
 
user895378
But FWIW, when I use [::1]:1337 I can't connect at all, but if I give php [::]:1337 it connects just fine.
 
@Hiroto Wow! You're special ;)
 
9:12 PM
@PeeHaa I can't vouch for anyone, I fix/break on my own :) They are red hat certified if it means something.
 
Red Hat Certified (TM). Now with nearly 75% of the meaninglessness of Microsoft Certified (TM)!
 
Dunno but obviously 400 servers would fell apart if someone is not doing it right :)
 
if you cannot set up LFS, then stay away from servers
 
@webarto I'm sure they're bright, I just think certifications are silly resume padders that only impress non-technically skilled managers.
it's too hard to condense systems administration down to a two hour test
 
@webarto I like red hat for my webservers (mostly because I have the most experience with it tbh)
 
9:14 PM
@Lusitanian For my job (php), it's not important, it is neither good or bad, they don't care about that.
 
@PeeHaa I've been using CentOS
 
@Lusitanian Yep me too :)
 
and Amazon Linux on AWS ofc
 
@rdlowrey You may be interested in this new Stack Exchange site about ipv6 ipv6exchange.net/questions :D
Now with less ham
 
@tereško I have to try that FreeBSD :)
 
9:17 PM
@PeeHaa Is the ipv6 site by SE?
 
@webarto it's where gentoo and arch took their ideas from .. and every damned OS got network stack from
 
Who the hell flagged that?
@Phorce It's just some ripoff :)
 
user895378
@PeeHaa Ah, thanks. I'll keep that in mind when I need free streaming video :)
 
:P
 
@PeeHaa Made by you or...?
 
9:18 PM
Let us all summon @DaveRandom by pinging him @DaveRandom
 
@Phorce No. I have my hands full on doing my civic duty on Stack Overflow and trolling here in chat :D
@DaveRandom
 
@PeeHaa How's that going for you? ;-)
 
Repeatedly pinging @DaveRandom is easy! Thanks to the new @DaveRandom auto-pinging bookmarklet, your pinging troubles are a thing of the past.
 
@PeeHaa wow ... how the hell have you got 5 flags on this ?
 
@ThiefMaster could you clear the flags please
 
9:20 PM
Yo
 
Thanks you you great mod :D
@MadaraUchiha jo
 
How do you like the new duplicate?
 
@PeeHaa why they gave you room ownership, I may never know
 
@tereško I'm interested now.
 
Where is that post about SO clones on meta again?
 
9:21 PM
already cleared.. saw them even before your ping (this room doesn't get its own tab in my browser :P)
 
@Lusitanian ssssshhhh they don't know it yet :)
 
lol
 
@ThiefMaster :D
tnx anyway :)
 
123
Q: How can users be prevented from pouring water into coffee machine beans compartment?

sharptoothTypical coffee machines have two user-accessible compartments - one for water and one for coffee beans. Pouring water into the beans compartment kills most machines, the repair costs a fortune. Now here's an improvement (Schaerer Siena-2 if that matters) this machine is permanently connected ...

lol, i can think of some ways that probably wouldn't go over well with corporate
 
9:25 PM
Our office full of engineers came up with a solution to this: a sticky note that says "Do not add water to machine" — roviuser yesterday
 
@PeeHaa of course the engineers figure it out ;)
 
@Lusitanian Our solution to a similar problem was making people that screw it up clean up the mess. Solved it real quick.
 
@Charles funny how that works :D
 
@Charles Too bad that same solution is useless with code monkeys in the office
 
@PeeH
@PeeHaa this guy has it right
 
9:27 PM
> As you observe, connecting the machine to a water pipe removes the need to add water, but the need to add coffee leaves the user with one place to put water. So we're looking for is a way to remove the need to add coffee; the user will then have nowhere to put the water. The solution: mains piped coffee beans.
by far the best answer.
 
lol
+1 - However, would humbly suggest leaving the users no space for mistake and hiding the coffee machine from them entirely. Am going to put the steaming coffee pipe right into my office... — Deer Hunter 23 hours ago
 
user895378
@webarto and @PeeHaa for the sake of putting your minds at ease, my problem was the result of E_PEBKAC. When I modified my hosts file I only added the relevant names to the 127.0.0.1 and not the ::1 line. And that explains why it failed when I tried to use the ipv6 loopback for what I was doing. Thanks for your help.
 
So much gold in that thread
 
indeed
 
@rdlowrey Oh my gods I'm so, so, so using E_PEBKAC in my next application.
 
9:30 PM
@rdlowrey :D Glad it is resolved.
 
@rdlowrey I almost smashed meh computer once, because of that...
 
user895378
@Charles I wish I could take credit. I first heard it from @DaveRandom. Can't say whether he was the originator.
 
Think it is tm @tereško?
 
Nay, it's @deceze and he derived that from me :P
 
as early as 2004 on slashdot
> The last is particularly insidious (no E_PEBKAC level of reporting), but unit testing (see Volume II) gives you hope to find and fix those.
article from August 2004.
 
9:32 PM
WTF C++
seriously I mean come on
 
Aug 2 '12 at 9:06, by deceze
@Whisperity E_PEBKAC
@Lusitanian True.
 
If you're going to have a pipe for coffee, why not pipe it in liquid form. Then this could actually be feasible if you ignore all the reasons it's not feasible. — Random832 2 hours ago
 
Jan 4 at 23:09, by webarto
We should patent E_PEBKAC...
 
prior art, we can't :(
 
/me is going out for a quick beer. Cya all later!
 
9:35 PM
@Lusitanian Not if we remove traces from teh internet.
 
Ow and before I forget
@DaveRandom @DaveRandom @DaveRandom @DaveRandom
 
Got beer? @DaveRandom @DaveRandom
 
happy thirst @PeeHaa
 
too bad it doesn't do single line multipings :(
 
@PeeHaa have a good one, i doubt it'll be"quick" :D
@DaveRandom
 
9:36 PM
@TheOptometrist ty :)
and ty @Lusitanian
 
Drink wisely.
 
You know me ;)
 
> interpreted above as "what does 'wisely' mean, anyway?"
 
Number of commits: 1337
My work here is done.
 
@webarto you have reached the final version
 
9:42 PM
@Lusitanian Correct!
 
@webarto i hope it's already boostrapped then
 
user895378
@Lusitanian lol ^ that
 
Actually, I'm just fixing the layout.
It works as Doxa :)
 
@Pheagey I tried it like this. It works fine but I couldn't see the pagination bar!! pastebin.com/McnSFbFG
 
stnad by
*stand
@Che Jug can I get a pasterbin of pagination.php
@Che Jug and are you testing this locally or a publicly accessible server?
 
9:56 PM
@Pheagey pastebin.com/9qJcV8eS I use local sever
but I don't think it's the issue
 
@Che Jug Can you check the rendered page's source. See if "class='paginate'" was rendered.
Looks a lot cleaner with that function and proper indention.
 
everything looks rendered
 
Does $resultya contain data?
 
it contains the fetched data from the table city
 
k
try changing the CSS for the pagination DIV after it is rendered, see if it is being rendered under another element, etc.
 
maybe it's not rendering right. I tried to set a background-color and didn't see the div
 
and you are not getting PHP errors on the page, correct.
 
it's sometimes surprising , huw much crap you can remove just by ignoring two users
 
@tereško :D
 
10:17 PM
> Post Reopened by Wesley Murch, Salman A, Bohemian, Andy Hayden, Rachel
after that
 
@Pheagey no errors
 
@Che Jun Good, I would lean to it not rendering correctly.
stackoverflow.com/questions/14450093/… not constructive? sure, but entertaining
 
10:33 PM
@Gordon as with kolink
night
 
sup?
 
Using double quotes in PHP is lazy. In straight strings you should always use single quotes as it is processed faster, and for strings containing variables use double quotes as it is faster than concatenation. But that's different from the question asked, so my apologies. — user986541 Jun 25 '12 at 12:00
._______________________.
 
@Lusitanian dafuq are last two comments about...
 
10:45 PM
lol
 
Is there some reason you guys are aggressively removing posts I've answered?
Not meaning to ask about specific posts, but why are folks here trolling my answers for stuff to close/delete?
Have I made an enemy or is there some other issue?
 
likely because you happen to have a pattern of answering questions that aren't suitable for SO
i sincerely doubt there's anything personal
 
what happens with rep @close/delete?
 
close - nothing, if a question you answered is deleted
i believe you lose the rep from your answers
 
11:01 PM
i lost some rep because of a deleted user, figured it should be similar for Q's
 
@Lusitanian ding ding ding
 
@WesleyMurch I'm sure you haven't made an enemy. I just happened to close vote some ofthe questions you're talking about and I was thinking, should I say something or shouldn't I... because, well, things can be seen in different ways and I've kind of given up on some stuff. some people strongly believe that as a user with so much reputation you have a greater responsibility than just answering any question.
@WesleyMurch this responsibility would be to actually first evaluate if a question is a duplicate, or an RTFM question or otherwise not furthering the quality of SO and then act as a moderator. this is an altruistic decision to some extent, because it doesn't gain you rep. it may gain you some fancy golden batches, tho (as a side note).
 
@markus: Thanks, it just seemed strange that the same 3 people had deleted posts which I have answered, then I come here and see "that Wesley Murch guy's answer list is a second cvbacklog".
I beg to differ on some of the calls above to close-vote.
 
@WesleyMurch yes, I understand... the groove around here can be quite ahm... group thinky and seem harsh... but overall, people really care for the quality of SO contents
@WesleyMurch absolutely fine, yes... I think the group think in here sometimes leads to overly strict actions
 
On the other hand, I'll often CV + Answer when the OP is getting upvoted answers that are bad.
Seeing crap answers.... ugh... must... help.... poster....
But stuff like this: stackoverflow.com/questions/5656894/… Too localized? Really? Seems a bit excessive IMO.
 
11:10 PM
@WesleyMurch I know the urge :) showing a good duplicate, downvoting and commenting the crap answers and closing/deleting the question leads to the same goal: helping the OP... but with more work for you
@WesleyMurch I agree
 
@WesleyMurch I agree as well. I'm not sure how that is too localized
If it is then nearly every question involving how X framework does Y would be too localized
 
that one's an RTFM one
 
Yet there is a call to action here in chat to remove it. I assume the 3 CVs are from the same 3 people.
 
Is Stackoverflow really came down to those types of questions?
 
but isn't too localized
 
11:12 PM
Which makes me think.... CONSPIRACY!!!!
 
and lol
there's no conspiracy
 
it's actually just a conincidence that I'm talking to you here because I visit only sporadically and rather changed to read the transcripts
 
YOU"RE IN ON IT!!! ;)
same here @markus
 
@WesleyMurch MUST SIPHON ALL OF YOUR REP INTO MIDDLE EARTH
 
@webarto That is a question that has lived on for nearly 2 years now. It isn't like this just all of a sudden was an issue
 
11:12 PM
honestly, what I'm guessing happened, is that someone just used your answer list to find a bunch of questions thought to be crappy
i've done that with kolink's before...works every time
 
@cspray IMHO OP is an idiot, he hasn't accepted any of the answers, neither I'm sure it can be answered, or the fact he knows what is he asking.
 
@webarto it's such an RTFM thing
 
No it's useless also — Buffon Apr 13 '11 at 23:34
 
as I say, generally I think this room does a lot of good... but there IS group think and from time to time some overzealousness (if that's a word)
 
Yes, it's called community I think.
We have separate brains.
 
11:15 PM
overzealousness is in fact a word
 
what i was talking earlier today... herd following, and I was 'arguing' with @Gordon....
 
Is amenable the word?
 
I'm out before this turns into a war :) happy answering and closing and all in all making SO a better place
 
@markus @Lusitanian is just a troll, don't be afraid.
:P :P :P
 
11:17 PM
since when am I a troll?
that's Mr. FancyRoomOwner @PeeHaa
...and you
definitely not me, no sir.
> runs
 
:D
 
Wasn't @PeeHaa trolling in another room as well?
 
he went thata way!
 
lol
wrong one, oh well, start at 0:50 and that's peehaa vs this room
 
@Phorce Yes, he often replicates himself with trollus maximus spell.
 
11:19 PM
14 hours ago, by The Optometrist
@Gordon cv-pls is an invitiation to follow the herd, most people don't think for themselves and just push the button
 
@Lusitanian LOL :) Memories :'(
 
@webarto i loved this show growing up
 
@Lusitanian i love d this show growing up
 
that too :D
 
> Due to a bug in mod_qos, we've had to disable it fleetwide until a solution is found. The bug basically caused the module to still count connections even after they are closed.
QoS, yeah right :P
> Over the past day or two we've had a big outbreak of servers running into a bug that causes Apache to go nuts and consume all the resources on a server, eventually leading to a crash or other downtime.
mod_security
 
11:23 PM
lol
 
Basically, they do more harm than good.
Hosting is cool.
Better than (I can't paste image I'll get banned).
What is the most popular PHP conference except ZendCon?
Care to shed some light, no?
Help me ASAP... thanks.
@Lusitanian ?
@DaveRandom ?
 
@webarto where are u qouting from?
 
@PeeHaa ?
 
word
 
lol
 
11:28 PM
@tereško ?
@ircmaxell s*, I better run, cops are here :P
 
cannot afford to ..
 
@tereško do what?
@ircmaxell Hey, are you going/speaking at SunshinePHP?
Sorry, beer kicked in.
 
yes and yes
 
oh .. wait .. i thought you were asking about who will go to it
 
11:30 PM
:clapshands:
 
@tereško Let us say you can, where would you go? (what conf)
@MadaraUchiha Ladies first :P
 
well .. there is ConFoo , PHPUK13 .. that's about it ( cannot recall any others )
 
@webarto I'm all out :)
 
11:32 PM
@MadaraUchiha Let us say you're not, what is the reason?
 
It appears I cannot triforce.
 
@WesleyMurch [tag:cv-pls]
 
Welcome.
 
@webarto Juggling between NARQ and TL
 
11:33 PM
-1
A: What are some good tips for a new PHP developer?

JonBUse a framework. If you choose one such as Zend Framework (the one I favour and recommend), it will give you an understanding of OOP and MVC. Understanding MVC and why it is important will give you a better idea of how and why to seperate html forms, and the PHP form handlers.

 
I broke every possible pattern with ZF...
 
@tereško that is....despicable
 
it's sad
 
@tereško PHPNW?
 
oh , yeah ... i know that one too
 
11:36 PM
stackoverflow.com/a/1285722/746010 Says to use md5() for password hashing. I'm not familiar enough with best practices but that should probably be changed.
 
DPC?
 
wat
 
@cspray Excuse me?
 
@cspray changed it to "- Hash your passwords and use a unique salt for each password."
at least makes it a bit better
 
@cspray the whole question should be burninated on grounds of being filled with bad answers
 
11:38 PM
@tereško +1
 
@Phorce That answer includes the advice of using md5 for password hashing
Which is not good
 
It is not good, Andi Gutmans knows :P
I'm lobbying at Site5 to sponsor at least one PHP conference this year.
 
> StackOverflow has almost 12,000 questions on PHP. Use them.
lol
 
Maybe in past month.
Damn, these airplane tickets are expensive...
 
11:42 PM
@webarto bicycles are fun
 
@Lusitanian Hah, I'm dead after 20 miles.
0
Q: String Replace - Add Slash Before Single Quote

Brian SchroeterI'm trying to escape a single quote within my PHP by adding a slash before it. Unfortunately, I've been unable to get it working with str_replace and I'm wondering if I'm doing something wrong. What I have is the following ... $string = 'I love Bob's Pizza!'; $string = str_replace("'", "\\'", $...

Oh, man...
 
That is indeed amazing.
<noscript>alert('You MUST enable javascript!');</noscript>
 
:D
ProTip: CTRL + K will make it look like code
I think the parse error is relevant in this example... — Wesley Murch 40 secs ago
 
That would be too classy.
 
11:50 PM
@webarto forgot to send the pull request for that...
 
@orourkek Brilliant.
 
Just in case...
 
@webarto we wouldn't want those leet haxors to be aware of fatal errors...
 
@ini_set('display_errors', 0) or die('Could not disable error display!')
 
Just when you think you've seen it all :)
 
11:52 PM
naah ... you would not want any error message
just @ini_set('display_errors', 0) or exit;
 
@ini_set('display_errors', 0) or die('Script executed successfully!') IMO
 
But others need to get the chance too.
 
It should probably be more OOP. Better put it in a class.
 
with static methods
 
if method really a method if it's static?
 
11:57 PM
code bowling on that project could get interesting
 
@orourkek excellent PR, you really improved the boostrap
i need direct commit access to the boostrap, as I write better boostraps when entrusted with such boostrapped powers
 

« first day (844 days earlier)      last day (4119 days later) »