« first day (1285 days earlier)      last day (3654 days later) » 

1:00 PM
@ircmaxell his complaints seems to be about unit testing more than TDD though.
 
I got sick of having to think about ports on which to run servers.
$port = 8001;
$name = 'MyApplication';
echo array_reduce(str_split($name), function ($port, $char) {
    return $port + ord($char);
}, $port);
 
Nice :D
 
RewriteCond %{HTTP_HOST} ^freshhomebuilders\.co\.uk$ [OR]
RewriteCond %{HTTP_HOST} ^www\.freshhomebuilders\.co\.uk$
RewriteRule ^bathroom-design/bathroom-fitting-and-installation-(Highgate|Gotham)\.htm$ "http://www\.freshhomebuilders\.co\.uk/interior/bathroom-fitting-london/bathroom-fitting-and-installation-$1" [R=301,L]
Why not something like this?
 
@TOOTSKI true, didn't even look at the content (facepalm)
 
1:14 PM
:D
 
@DanLugg map + sum ftw, no-one uses reduce :P
 
YO
woops caps.
 
YO
 
how to show .php as / ??
 
@andho yup
 
1:29 PM
@MikeM. Press F2, then... Oh, by rewriting url.
 
ye rewriting is it hard or?
 
xD
I leave it like this I wanted to add it as optional option in my newsletter script but let it go xD
 
Watching with quiet sorrow as someone makes you a different sandwich to the one you ordered
 
Yay, stackoverflow exception in DAO!
 
1:32 PM
@salathe that's pretty much the definition of a reduce example :-P
 
xD Leri that's all you want right?
 
@ircmaxell well yeah, the sum part anyway.
 
yeah, you could "map" the ord() part...
 
@ircmaxell exactly, classic "map/reduce" :)
 
$port = array_reduce(array_map('ord', str_split($name)), function ($a, $b) { return $a + $b; });
 
1:34 PM
@TOOTSKI there's a new meme for that.
 
Saying you're pleased with your haircut despite the deep internal sorrow it's causing you
Happened today :D
 
user895378
@TOOTSKI I feel your pain. I've been cutting my own hair for ~ten years for that exact reason.
 
user895378
morning
 
How do you do the back? -_-
 
user895378
1:46 PM
Bro do you even mirrors? :)
 
Dejan: yeah, mere update should improve performance of the mirror
Dejan: confession: everytime I see "mirror", justin timberlake's song starts playing in my head
Robert: it's a good thing i don't know that song! :D
Chris: I had no idea.
Robert: i only know old stuff
Robert: (no comments Chris!)
 
2 mirrors?
 
user895378
/me immediately loads that album for the day's programming playlist
 
/me deletes it that song from phone
 
/me wants beer
 
1:56 PM
Uggh my VPS internet connection dropped out again
 
At least you have a fancy graph
 
rofl my programming teacher: "Back-ups are for pussies"
4
 
@PeeHaa I know, I love Fastly. They're great
@MikeM. xD
 
I kinda agree with him
I neither make backups xD
 
2:02 PM
@MikeM. So either your stuff isn't worth shit or you are an idiot ;-)
 
Could be worse, you could be both.
 
Well it's worth something but I just don't backup shit
stuff that is important to be are saved on a usb/hdd never on my local desktop
 
@MikeM. And that does / solves what exactly?
 
> Warning: mysql_connect(): Only one usage of each socket address (protocol/network address/port) is normally permitted. in D:\home\site\wwwroot\blog\wp-includes\wp-db.php on line 1142
 
Nothing just that if my pc breaks It's not lost
 
2:04 PM
How the heck did I get a mysql_connect warning , what did I do do deserve this.
 
unless my usb or hdd gets destroyed but héhé a backup can also be destroyed
 
I don't even like php :/
 
@MikeM. GENIUS!
 
But you love us PHP devs :D
 
so what would solve making a backup if it can also be broken?
 
2:05 PM
@BenjaminGruenbaum We don't like you too ben
 
@PeeHaa oh, I like room people, just not the language.
 
a computer can be broken and also a backup... so what if both gets corrupted or all backups? then it's still not worth anything xD
 
@MikeM. If you have to ask I don't feel like discussing it
 
My important files get saved to several external HDDs plus copies on mine and my wifes PC.
All that important anime -_-
 
@BenjaminGruenbaum :-)
@Fabien s/anime/pr0n
 
2:06 PM
xD Fabien
 
Why would wordpress do that :/
Srsly.
 
:D
 
@BenjaminGruenbaum Why would you even get remotely in cotact with WP is the real question
 
@PeeHaa I have to maintain this one.
Stuff works sometimes :/
 
@BenjaminGruenbaum Windows server + Wordpress = You're gonna have a bad time
 
2:11 PM
@PeeHaa Ability to work with crappy code is a skill. If you want to earn money you have to be patient when working with crappy code
 
noo not again
503's are red here
I'm moving to Amazon as soon as I can, they're surely more reliable
 
@AustinBurk My breadtoaster is more reliable by the looks of it
 
@BenjaminGruenbaum Using mysql_pconnect may help, also what's the value of the mysql.max_links ini setting?
 
@PeeHaa That's over the past week, it always randomly drops out during the day; no significant cpu usage or b/w usage, just drops most packets
Some of them make it through then though, just enough for me to maintain my ssh session for this:
[root@sudomemo py]# ping google.com
ping: unknown host google.com
 
@AustinBurk try www.google.com
 
2:16 PM
It works now, but the name resolution failed on that one
Like I said, drops half the packets
 
I see...
 
@DaveRandom I think it's an azure issue, there is a connection limit of 4 concurrent connections or something absurd like that.
 
Is it really surprising that someone who chooses to stuff an entire application’s logic into active record models doesn’t like unit tests?
 
user895378
related:
 
user895378
The more critical your system the more critical the unit tests. Don't confuse a CRUD webapp written in Rails for "critical system software."
 
2:19 PM
@BenjaminGruenbaum What you have there is a client problem, it's not an issue with the server (client is trying to bind to a local socket that the OS thinks is already in use)
 
@DaveRandom I think it's an azure issue.
 
@BenjaminGruenbaum I have literally no idea how Azure handles shit like that, but isn't it like a VPS?
 
Yes, it is.
 
Then you should get the full range of 65535 theoretical local sockets per address, surely?
 
@rdlowrey well said
 
2:22 PM
It sounds like either a) you have an insanely heavily loaded server or b) windows is not letting you recycle sockets fast enough because of some kind of crappy timeout configuration
 
user895378
Yeah, I mean I'm pretty sure NASA isn't going to read that "unit testing is pointless!" rant and be like, "oh, guess we don't need unit tests anymore."
 
Have a great day, everyone!
 
@rdlowrey and SSL is definitely one of those things that qualifies as "critical system software"
 
user895378
@ircmaxell Totally.
 
@DaveRandom I should probably just migrate to sql azure.
 
2:25 PM
Active Record Models? The model being a layer, are we talking about Entities here?
 
@BenjaminGruenbaum Very possibly, although whether that would solve the problem is debatable. ext/mysql doesn't have any configuration governing the behaviour of port reusage afaik, I'd have thought it just says "connect me to this server socket, I don't care with local socket you give me" unless you use pconnect (hence the pconnect suggestion).
One thing you can say with absolute certainty though is that it's a client-side problem, because that text string is directly from the OS, and if there was a problem with the server accepting your connect attempt you'd either get a timeout or connection rejected (or whatever windows tells you when you get an RST in response to a SYN)
 
You can see the error yourself in the blog :/
 
Morning
 
2:41 PM
My dad just criticised me for sleeping in too long. Just before he went up for a 4pm nap. :p
 
sometimes you need to just walk away
 
monring
 
@BenjaminGruenbaum a) That is just a crappy limit on a paid service (or is it not paid?) b) What I find odd about that is how they seem to have limited it, unless Windows is just reporting a misleading socket error code
 
@DaveRandom yeah, I wonder how/why it works that way.
It's paid, although we get Azure for free for now for up to 5000$
A 4 connection limit is... absurd.
 
2:46 PM
Esp when they don't queue the overrun, they just let it fail
 
Also, WP doing that poorly on 4 connections is absurd.
 
user895378
Uh, WP is synonymous with terrible performance.
 
"WP is synonymous with terrible"
It doesn't matter what it is. WP is probably terrible at it.
5
 
user895378
Uh, WP is synonymous with terrible performance. WP is synonymous with terrible
 
WP stands for "What's Performance?" I think
 
2:49 PM
@DaveRandom Nah, it stands for "WORD PLAYA!"
 
Fellas, how can I send an HTTPS POST request with HTTP authentication from PHP 5.1.6?
 
@DanLugg Yeea Boiieeee
@SecondRikudo Curl, stream contexts....
 
Time to dig into cURL :|
 
@SecondRikudo there should be some answers on SO about it...
 
Who is making you write for 5.1.6?
 
2:52 PM
7 hours ago, by Second Rikudo
Hello from my brand new job which I started today! :D
 
Quit
 
It's for a good cause though, we're retiring it XD
 
:-P
@SecondRikudo In favour of...?
 
IT'S ALL @BenjaminGruenbaum 'S FAULT! HE RECOMMENDED THIS JOB FOR ME!
Java, probably :|
 
Apr 15 at 12:59, by DaveRandom
Don't listen to him ^ he has no idea what he's talking about, he only hangs around in here to cause fights. Benjamin "Troublemaker" Gruenbaum is what we call him
 
2:54 PM
@SecondRikudo Java o___________O ??????
 
@PeeHaa Legacy. They mostly work with Java nowadays
This tiny piece of code is the only thing left in PHP
 
:)
 
@SecondRikudo You gotta help the ones of your kind :D
Congrats!
 
I hate the "XD" smiley face.
 
2:56 PM
@DanLugg That's not even smiley.
:)
 
Nobody emotes that much; unless you're Cartman taking a shit with a grin. Because that's what it looks like.
@TOOTSKI Then what is it?
 
I mean... it sucks as smiley face.
 
@TOOTSKI So does your mum I agree.
 
ARG
why can't people post conference talks to youtube, instead of really bad streaming services that can't even buffer a video...?
 
@ircmaxell Because they don't want to support corporations.
@DaveRandom Oh, you've got me there.
 
3:03 PM
@TOOTSKI so have an experiences that "pauses to buffer" every 5 seconds for 30 seconds. Screw the user, as long as your ideals are held!
 
lolwut
 
> google makes all the money and we stay broke..
 
@TOOTSKI lol
 
@ircmaxell Of course, f* 'em, idiots, mostly.
Either make it a lot better, or just use what everyone else is.
 
3:05 PM
Suspension ends in Feb 1, 2027
 
@SecondRikudo We genuinely hate that smiley.
Unless it's @DaveRandom mom.
 
:-)
 
@TOOTSKI Tough.
 
@TOOTSKI Dunno, I just usually use die. They're strictly equivalent, after all
 
@NikiC ...Die then.
 
3:07 PM
  public function pExpr_Exit(Expr\Exit_ $node)
  {
    return (null !== $node->expr ? 'exit' : 'die')
      . (null !== $node->expr ? '( ' . $this->p($node->expr) . ' )' : '');
  }
Blame @ircmaxell.
 
uhm, no
 
:-)
I use exit when there's a status, and die when not
 
What you actually want is die if it is a string or none and exit if its an int
 
@NikiC that I can buy
 
Oh, noes, another commit.
@NikiC FYI folks at Nexcess are loving it and want to have your babies.
It f* up some code but the code itself is f* up.
 
3:10 PM
good lord, I can't watch this. it freezes every 10 to 15 seconds... not what we call a good user experience
 
@ircmaxell Streaming as in live or ?
 
no, it's pre-recorded
 
... they should have offered download link at least.
I download if I want to watch the whole thing, even YouTube messes it up for me when I rewind or something, loses buffer I think.
Damn, just made the same mistake as you did.
 
@ircmaxell Is there no service to download it for you?
 
Loooooose.
 
3:13 PM
@SecondRikudo I don't typically do that
 
@ircmaxell Sounds to me like you don't have much choice :D
 
sure I do, not listen to this talk
 
@ircmaxell Even better.
 
Your streaming is bad and you should feel bad.
 
@TOOTSKI BURN THE WITCH!
 
2
Q: Different regex output on 2 PHP systems?

Tim JonesGiven this test script: <?php echo setlocale(LC_ALL, '') . "\n"; $in = 'Città'; $var = preg_replace('/\s+$/', '', $in); echo bin2hex($in) . "\n"; echo bin2hex($var) . "\n"; PHP 5.5.3 on Ubuntu, I get: en_GB.UTF-8 43697474c3a0 43697474c3a0 PHP 5.5.9 on Mac (via Macports) en_GB.UTF-8 436...

^ any thoughts? Might it be a compile issue?
 
@ircmaxell Meh, even I am on cnet.com.au :P
no, cnet
> This tutorial from Dejan Majanovic takes that one step further for serious coders out there.
This is my pickup line.
Are you even serious coder, bro? @rdlowrey
/me had too much caffeine and sugars
HYPERACTIVE
 
user895378
@TOOTSKI nice :)
 
http://php.ac/pthreads/multi-threading
Uses Niki and yours router thingy. Had to modify a bit.
Wanted to PR but didn't because I suck.
You would laugh at me.
 
What is .ac?
 
3:24 PM
Academy, bitch.
oxford.ac
 
How'd you wangle that name? -_-
 
@Fabien My name is Dejan "Sniper" Marjanovic.
Domain sniping and stuff.
But mostly it was because it was available and I had money :P
 
@CarrieKendall monring
 
@TOOTSKI Same rule applies to hookers.
 
3:26 PM
@Jimbo dat 10k, congrats :D
 
I wouldn't know @Fabien my friend.
 
@CarrieKendall Thankyouuu, FINALLY :D
 
i think a pasty picture of @rdlowrey is in order
 
@Jimbo The sensation wears off in few days, 20K or nothing :D
 
@rdlowrey pay up
 
user895378
3:31 PM
@CarrieKendall I forget the parameters of our agreement. Reminder?
 
Apr 10 at 20:45, by Carrie Kendall
this just in, @rdlowrey has just offered to update his gravatar to show his true pastiness if the Jimbo 10k User Fund is met before the end of the month
 
user895378
Oh right!
 
user895378
Also, congrats @Jimbo on 10k :)
 
DOMDocument: I've tried removing <script> tags but it borks sometimes just like regex? Is it expected?
 
well , I made a mistake
7
I decided to look at code for out "internal CMS"
 
3:33 PM
@rdlowrey Thanks, lol. Avatar update incoming...
 
ah, out of context stars.. the best
 
Now you want to commit suicide instead of a code fix?
 
@TOOTSKI yeah
unfortunately I cannot share the horror, but it is really bad
 
Work is work, but you need to enjoy it .
You deserve that much.
 
i can just see @rdlowrey in the bathroom taking a selfie at a flattering angle as we speak (type)
 
user895378
3:35 PM
E_TOO_LAZY_FOR_SELFIE
 
@TOOTSKI Wife around or something? -_-
 
user895378
You guys are getting a recycled picture.
 
Gratz @Jimbo! Now make us proud and start circlejerking!
 
<?php
$submit_url = "https://sitename/process.php";

$curl = curl_init();

curl_setopt($curl, CURLOPT_HTTPAUTH, CURLAUTH_BASIC ) ;
curl_setopt($curl, CURLOPT_USERPWD, "username:password");
curl_setopt($curl, CURLOPT_SSLVERSION,3);
curl_setopt($curl, CURLOPT_SSL_VERIFYPEER, FALSE);
curl_setopt($curl, CURLOPT_SSL_VERIFYHOST, 2);
curl_setopt($curl, CURLOPT_HEADER, true);
curl_setopt($curl, CURLOPT_POST, true);
curl_setopt($curl, CURLOPT_POSTFIELDS, $params );
curl_setopt($curl, CURLOPT_RETURNTRANSFER, true);
Looks promising
 
wut?
curl_setopt($curl, CURLOPT_SSL_VERIFYPEER, FALSE);
SPLIT**?!?!?!?!?!?!**
 
3:39 PM
@PeeHaa That's required, every answer on SO says so.
 
FU2 MD
 
@Fabien I have, honest to God, never been involved in such practice.
 
ow wait php 3.8 php/fi ofc
 
curl_close($curl);
 
@TOOTSKI Oh okay :wink: :wink:
 
3:40 PM
Pointless at the end of the script.
@Fabien :D
Fancy a round delete voting? Yes.
Why thank you, Sir.
 
user895378
@CarrieKendall + @Jimbo: untanned @rdlowrey with sweet faux-hawk now available on my SO profile. Who knows how long the chat icon will take to update.
 
@rdlowrey You attractive bastard
 
@rdlowrey Never knew you were italian? :P
 
In a totally non-gay way
@rdlowrey IS PHOTOGENIC GUY
 
@rdlowrey Hi Adam Levine!
 
3:43 PM
@rdlowrey Not tanned enough.
 
dat smirk tho.. what are you up to, you pasty sly devil
 
I'd love to one day see the Active Record pattern get the same reaction as Singleton in design discussions
 
@ircmaxell Invite him over :D
 
Photoshop awwwaaaay!
 
class Rt_article extends MX_Controller //extendojam MX_kontrolieri (HMVC) nevis parasto CI_kontrolieri
{

    public function __construct()
    {
        parent::__construct();

        // --- snip ---
        // 80 lines lower, same method


        if($article && isset($article->id) && $article->id) //ir atrasts šāds raksts
        {
            // --- snip ---
            // few more lines

            if($article->method) //ir izvēlējies metodi
            {
                $methodname = $article->method;
 
3:44 PM
@ircmaxell I've heard the downsides of Active Record. But I'd love to see an ORM that doesn't use it that is simple to use as something like Doctrine. Entity / Repository for me, active record in the background - really has been awesome for my development
 
i just wanted to share this par
 
@tereško With a dash of Latvian, LOL.
 
yeah
comments are mix of latvian (mostly) and english
 
@tereško Is it constructed yet? :P
 
If this is HMVC I'm going to puke.
FIX IT @tereško
 
3:46 PM
@rdlowrey I force refreshed your gravatar; it seems someone upstream from me is caching it.
 
user1642018
hi all, i have a query,
 
> The McCabe complexity of '__construct' is 31.
 
@AMB Awwwww a query. What's his name?
 
3:47 PM
Fire away, minions of !
 
@Jimbo doctrine isn't active-record...
 
Does anyone here use Ratchet websockets?
 
@ircmaxell Doctrine1 is I think.
 
ThW
@Jimbo I don't think Doctrine 2 is an Active Record implementation
 
@ircmaxell Ohh my bad. Doctrine 2 is DataMapper, Doctrine 1 is Active Record :-)
 
3:48 PM
@ircmaxell doctrine 2, if correctly used isn't active-record...
 
user1642018
@PeeHaa umm php query.
 
The Doctrine Project (or Doctrine) is a set of PHP libraries primarily focused on providing persistence services and related functionality. Its prize projects are an Object Relational Mapper (ORM) and the Database Abstraction Layer it is built on top of. One of Doctrine's key features is the option to write database queries in a proprietary object oriented SQL dialect called Doctrine Query Language (DQL). Usage demonstration Entities in Doctrine 2 are lightweight PHP Objects that contain persistable properties. A persistable property is an instance variable of the entity that is saved i...
 
@user3123545 No, but what is the question?
 
Totally glad I'm using something that utilises good practices then
 
if incorrectly used, DOctrin 2 is "Big Ball of Mud" pattern with logic even in comments
 
3:49 PM
@tereško you can use anything incorrectly. that doesn't make that thing the incorrect usage. Doctrine 2 ORM isn't an implementation of the Active Record pattern
 
@PeeHaa I just installed Ratchet socket library, and when I use the name space, no signle suggestion pop up from PHPStorm ,it's unknown
 
@user3123545 Sounds more like a phpstorm question to me :)
@SecondRikudo! ^
 
i'm going home
 
^ @ircmaxell duplicate of the one you answered on.
 
@user3123545 Is it in your include paths?
 
3:52 PM
Well I used this - getcomposer.org/download and used the installer
 
@Jimbo woah, we have a wikipedia page? :O
 
@Ocramius Duh, Doctrine is legendary
 
@rdlowrey did you hear about this?
 
We're almost a religion :P
hrhr
 
A bad one.
:P
 
3:53 PM
@crypticツ FUBAR yet they are doing just that for two weeks now
 
> Before PHP 5.4.20/5.5.4 instead of FALSE you will receive -99999 upon accessing the property.
o_O
 
user895378
@crypticツ All the complaints about OpenSSL are true. But BC is important and until there is broad support for and ubiquity of a good alternative it makes little sense to switch.
 
@hakre lolwut?
 
user895378
The OpenSSL source code is a mess and the documentation is terrible.
 
3:55 PM
DateInterval::$days
Just wrapping my head how to deal with that ... .
 
user895378
But I blame the community, not OpenSSL. I mean, we're talking about a piece of software used by an absolutely huge number of companies and no one is giving back. No one is donating $$$ to support the project and very few people are actually contributing.
 
@rdlowrey Exactly. It isn't OpenSSL that failed the community, it was the community that failed OpenSSL.
 
@rdlowrey now they're paying ;-)
 
user895378
So when problems like heartbleed arise people need only point the finger at themselves.
 
@rdlowrey That's a bullshit reason
 
user895378
3:58 PM
What is?
 
Who's donating to PHP? :)
Who uses PHP?
 
Perhaps the licence gives no incentive?
 
End of discussion.
 
@rdlowrey Blaming it on the $ and the (crap) not giving back culture
 
user895378
PHP has a similar problem. How many people are contributing to its development? Not many.
 
3:58 PM
@ircmaxell you really think it's as bad?
 
@TOOTSKI I think SugarCRM and Zend are doing a lot there, no?
 
@user3123545 How did you install it? oh just saw your other message.
 
user image
14
 
I mean. It sucks, but that should not be the reason for crap
 
user895378
@PeeHaa You get what you pay for.
 
ThW
3:59 PM
@user3123545 can you put your composer.json on a nopaste?
 
not that much, but I mean, there's Stas and Dimitri for example
 
@Fabien Pinned.
 
user895378
lol omg
 
@Danack I downloaded it and then did init composer with phpstorm
 
:D
 
3:59 PM
@BenjaminGruenbaum I think it's far worse
 
PERFECT!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
 
@Fabien it needs the text "DEAL WITH IT"
 
@Fabien A million panties just hit the floor.
 
I was tempted but we can multi-use this.
 

« first day (1285 days earlier)      last day (3654 days later) »