« first day (935 days earlier)      last day (4028 days later) » 

2:00 PM
^^ vanilla
just not sure where to place the "js" :)
 
@Ihsan i saw one today ...
 
@Jack Compile to alcohol
 
Circuit breaker is a design pattern in modern software development. Circuit breaker is used to detect failures and encapsulates logic of preventing a failure to reoccur constantly (during maintenance, temporary external system failure or unexpected system difficulties). Common Uses Assume that your application connects to a database 100 times per second and the database fails. You do not want to have the same error reoccur constantly. You also want to handle the error quickly and gracefully without waiting for TCP connection timeout. Generally Circuit Breaker can be used to check the av...
 
@ircmaxell you are not, just a certain Anthony Ferrara you might know him. :p
 
@Ihsan I keep asking my self what the hell is Circuit breaker design pattern
 
2:01 PM
okay people, bbl, have a good one
 
Circuit breaker pattern is basically invoking shutdown -s now when the system makes a booboo.
2
 
@ircmaxell Just noticed your mug :)
 
user895378
@Baba IMO I think at least 75% of design patterns are just common sense problem solving and aren't worthy of memorization/classification.
 
seems i might be attending one of your talks ;p
 
@Baba Because every single freaky programmer re invented it ad-hoc on the fly and the one midgetbrained stooge blew his mind to figure it out and thought it is an invention and named it.
 
2:02 PM
@Baba In other words: a Maybe Monad
 
@rdlowrey i think i agree with you 100%
 
@Baba imo it's a grace period :D
 
:-( -$1,282.65 (78.80%) That's today's change :-(
 
@ircmaxell :)
 
@rdlowrey +1
 
2:04 PM
@Ihsan am going to name my own solution in a moment
 
@rdlowrey You mean like the "Don't drink and code" pattern? :)
 
user895378
@Jack lol
 
@Jack lol
 
@Jack lol
 
user895378
I always have trouble with that one.
 
2:05 PM
@rdlowrey @Ihsan @Baba lol
 
@Jack this post is closed to further lols... :)
 
It's easier the other way :)
 
@Jack Delicate dosage... Remember windows ME?
 
I'm glad that I don't.
 
@Jack I did not let it windows me too...
 
2:10 PM
@Ihsan windows me gave me a lot of cash once ....
 
"Do not forget to finish your coffe while while you are programming" pattern reduces the chances of drinking cold coffe at work.
 
@Ihsan not while but before
 
@Baba Yeah it collapsed and you restored or formatted it back and became rich ain't it?
 
I had a client who does not like to pay so .. i wrote a bat file to run shutdown and put in start-up folder .. He was convinced he had virus offered to pay x 3 for support
thank you Microsoft
 
@Baba U little devil..... Lol :D
 
2:11 PM
I'm getting more a feeling for this. but I'm still not satisfied.
 
@Ihsan lol
 
And then my graphics app crashed.
 
misses glitter
more glitter
 
That logo has eaten too much space cake.
 
and vampires
 
2:12 PM
@hakre that looks like ebola or something ....
 
Needs more seizure friendly colors.
 
Perhaps you would need some cowbells.
 
@hakre Needs an X all the Y in there?
 
it needs some claim
 
print_r() all the things!
 
2:13 PM
@hakre I think i can some up with a better design for you
@hakre your print_r fails in some cases ... where \n was replaced with " "
 
I f* hate hipsters...
 
@hakre this should have a preceding warning page. Like nintendo ... The thing you are about to see may cause seizures, unvoluntary violence or utter blabla on sensitive people...
 
Worked fine in dev.
I f* loooove quattro
 
I hate audi drivers -.-
 
Was of the similar opinion until I became one :P
 
2:16 PM
and bmw
lol
 
@webarto lol
 
@Jimbo So basically drivers who earn more than you? :)
 
The directive responsible was max_input_vars. Thank's to all!!!!! — user2342558 5 mins ago
 
I still have to wait 10 days for my car
:p
 
@Jimbo hate the game not the player
 
2:16 PM
Can't wait
 
@Jack No, because I'll never buy an audi
They sit in the 3rd lane at 100mph, see a bike come up behind them, then are arrogant enough to think that "oh, the bike won't be going much faster, I don't need to move over"
Then when I go up to 165 they realise, that their audi TT isn't actually that fast.
 
@Ihsan warning. only use this webservice in peer programming. otherwise you might turn into a zombie unnoticed.
 
@Jimbo you're generalizing
 
@Jimbo 165 of what?
 
@Jimbo What you need is a fog horn
 
2:17 PM
mph
 
Bike? Yeah, bike.
 
@hakre Braiiin , braiiin, hungryyyy .... :D
 
"Code Review Zombie" Achievement unlocked - You survived 10 code reviews that took at least 10 hours - without drinking anything than coffee.
 
Yep :D You can pay 3k and have something that's three times as fast as a car that costs ten times as much, albeit at the expense of safety... lol
 
whats is everyones opinion on the zend certified PHP engineer. Worth doing at all?
 
2:19 PM
@Jimbo or you can take a walk
@RyanMurphy wondering the same thing
 
@Robbert Or you can cycle, yeah sure....
 
@RyanMurphy If your boss pays, go for it :)
 
@Jimbo You need this puppy, 2 sensors at front and 2 at the back, and you're in stealth mode against police radars.
 
@hakre Skimming the same old piece of routines with bloodbathing eyes. Your breath taking your breath away, at brink of epileptic seizure, and you have an achievement... wow...
 
@Jack its only 150 eur or something, rite
 
2:20 PM
@webarto Is that... a raspberry pi? lol
 
@Jimbo laser-interceptorusa.com but similar, yes :P
 
@Ihsan it's hard to get.
 
@Jimbo I think its the inside of an Xbox 360
 
just over 100 pounds i think. Whats it like to pass, notoriously difficult, ok? easy?
 
2:21 PM
@hakre where do you get it? :)
 
thanks gordon
will make good reading for train home
 
@hakre That was my youth sport...
 
@Ihsan When you qualify you can ask for certification by me. ;)
But be warned, the word coffee might have a slightly different meaning here.
 
@hakre I am overqualified for that... I may grant you one.
 
@Ihsan Silence!
 
2:23 PM
/me hides in the corner with scared eyes...
 
php vs ruby vs python?
 
LEGEND: If you say "Node is close to the metal" 3x in a darkened bathroom, Dennis Ritchie will appear and smack you in the back of the head.
 
@Gordon helpful, thanks again Gordo
 
Can anyone suggest me a solution? pastie.org/private/f4zfhsllllv5wai2dp9sq
I have to parse the result but It genreates a multi-dimensional array
array(1) { [0]=> array(1) { ["clothing_size"]=> string(3) "xxl" } }
But I only want ["clothing_size"]=> string(3) "xxl" .
What am I doing wrong?
 
2:26 PM
well you're putting the entire $row into an array itself
so you have array($row)
and $row = array(whatever)
resulting in array(array(whatever)), right?
 
When I do : $results = $row I get : array(1) { ["clothing_size"]=> string(1) "s" }
:)
Is there a way I can mimize it to only the 's'
 
that's what you want though right?
 
yes
 
oh, sure, if you only need one field
just say $result[] = $row['clothing_size'];
 
I only need 1
Works but ont in my template argh
I can get the god result, it got saved the good way but I can't see it when I get the result.. though I got the result when I do a var_dump
 
2:29 PM
maybe because of the typo at line 2 ($reults > $results)
 
Yet another reason to bitch about phpclasses <-- phpclasses.org/newsletter/news/19554.html
 
$results = $row['clothing_size'];
Not hat's working :)
It's just smarty that is not parsing it
 
I don't know, I need the context
I've no idea what your code is expecting this piece of code to do
 
@ircmaxell why? you don't want phpclasses to give you more reach?
 
I found it out
 
2:31 PM
 
its woring thank s :D
 
@Gordon copy/pasting text unmodified from other sites is not cool
 
@Duikboot geen prob
@Baba what is this I don't even
 
@Robbert TELLING @hakre I DON'T LIKE i.stack.imgur.com/ZKKxj.jpg
 
@Baba I liked it, it looked really happy
 
2:34 PM
@ircmaxell ah you mean, he copied the phpdeveloper.org summary instead of writing his own?
 
@Gordon I think with well written paranoid php and a correctly configured server you can build secure applications . Am I wrong?
 
@Baba nice!
 
@Gordon right, added nothing, just re-published
 
@Robbert it hurts my eyes
 
@Ihsan as long as you save the password in a cookie you'll be fine
 
2:35 PM
@Robbert :)
 
@hakre Good to know you like it
 
@ircmaxell Hmm, it's a bit lazy but he's not pretending it's his content either and links to the original phpdeveloper page, so I am not sure I find anything wrong with it.
 
@Baba haha
 
@Baba the dark one was cool too
 
It's not hard to get :P
 
2:36 PM
@Ihsan that is why i made 2 different types
@webarto cool
 
 
@webarto Is it expensive?
 
@Baba: It made a great fit for the BG!
 
@Gordon I do. If you're not going to do anything to the content, don't post it. End of story.
 
@hakre Nooooooooooooo
 
2:37 PM
@Ihsan $195 or €195, depends on your region... it's standard price for any certificate.
 
I think we can also place an incient inka scenery into one part of the background
 
@ircmaxell how is it different to what @Feeds does? It's aggregated.
 
and into the other part we could place sputnik or something.
 
Glittering Sputnik!
 
@Gordon because @Feeds doesn't repost. It injects into the chat (acting as a reader, not a publisher)
 
2:38 PM
so this symbolizes how technology evolves over time.
 
user895378
 
@ircmaxell Consider it as data replication...
 
@hakre hahahaha
 
user895378
@Jack see above screenshot :)
 
I guess I just consider it bad practice for a site with content to also syndicate like that. Either provide content, or syndicate. Doing both is bad
 
2:39 PM
@hakre lol
 
user895378
@Jack will play with it today and let you know how it goes.
 
@ircmaxell syndicating as in RSS?
 
@ircmaxell I agree. If something to say. say it. If not we have enough of noise in web.
 
@ircmaxell Hmm, go complain with Manuel if it bothers you. I wouldn't mind if it was my content as long as there is proper attribution though. But I will not RT anything you say from now on ;)
 
2:41 PM
well there is always the third option to re-syndicate based on markov chains. which probably is not really syndication.
 
There, you'll pay me when you can :P
 
@Gordon I still consider it bad...
 
@webarto lol
 
@Gordon RT is different
 
@webarto I prefer php 6.0
 
2:41 PM
Paper quality of diploma is bad :(
It's too thin, heavier paper costs like $0.2 ...
 
@webarto it's not paper. it's carton
 
@rdlowrey YAY! :)
 
@webarto Scan and reprint... :) And one for me too. 195 Euro.... wow.
 
@Gordon It's not carton, it's heavier than standard paper.
Or I got scammed :P
@Ihsan You can go to zend.com via US proxy and you'll pay in USD... Zend support dude is moron... I asked him, how come $195 and €195 is the same... and the answer was... "Yes!"
 
@webarto Rotfl.... this really blew my nerves. lol....
@webarto In their cyberverse euro is equal to USD and it is equal to yes...
 
2:46 PM
Huzzah :)
 
Hard to accomodate those greetings... Anyway Moarrr....
 
I coded a multi-language thingy, that works fine. Thing is i started thinking: I can translate everything unless user submited content; I could use googles api and pay $20 per 1M chars but i thought.. What if use google translator website and save the translation of the user submited content and access them whenever i wanted. [besides that being heavy] why shouldn't i approach this way?
 
Is 238ms slow as loadtime for a webstie?
Page size
268.6kB
 
@Duikboot at each burst or first time?
@Duikboot That is a "BIG" page... and normal. Consider optimizing the page
 
13 requests ❘ 3.2 KB transferred ❘ 294 ms (onload: 294 ms, DOMContentLoaded: 233 ms)
 
2:52 PM
sudo rm -Rf * <-- Yeah, I just did that...
 
@Duikboot Slow.... Maybe because internet speed did you tried on local?
 
Online
 
i dont know if I shoul weep or laugh, ircmaxell
 
What should be a better time then?
 
user895378
@ircmaxell lol really?
 
2:54 PM
@ircmaxell murderer!
 
user895378
user image
6
 
@Duikboot There exists humongous codes out there like Joomla! and on server it has sometimes 75MB code but it scales and optimizes and caches.
 
I'm sure he didn't run that statement in / :)
 
@ircmaxell The -R is for Really remove :)
 
2:57 PM
What's the F for then? No wait, let me guess...
 
 
:-D
 
@DaveRandom The -f is for with fire
 
@Duikboot Unless you do plan to serve less than 4 people per second with that it is not slow.
 
I might create a bash script in the path which adds -f to any command passed to the arguments and name it fucking
fucking rm myfile.ext
 
2:59 PM
@DaveRandom lol...
recusively fu*king destroy da files
 
alias burninate='rm -f'
 
@hakre And after the command finishes, Trogdor should appear saying "Your files are now burninated"
 
yes with a synthesizer voice.
 
Ha, anyone have an iPad here? Just seen this (for php coding)
 
3:02 PM
@hakre and with an arnold quality to it.
 
@hakre lol
 
alias can='sudo'
alias burn='rm -Rf'
alias everything='*'
alias has='apt-get install'
 
@Jimbo Why would you be coding on an iPad?
 
can burn everything
 
3:03 PM
lol ^^
 
@DaveRandom When I went to Berlin, I didn't take a laptop lol...
Also, beach times when you're being 'social'?
 
Not feeling it, I can't even type on a real keyboard
 
@ircmaxell :)
 
@DaveRandom Bluetooth keyboard - also if you jailbreak, you can use a mouse too :D
 
can has everything?
 
3:06 PM
@Jimbo Might as well just take a laptop with you
 
" vs ', which one should be used generally, eg in an echo and why? speed etc?
 
@hakre apt-get upgrade/yum update ? Or you could write something insane to install every available package...
 
@DaveRandom yes that would be funny.
 
@RyanMurphy I use ', so I don't have to escape every " in HTML
I find it more readable for HTML and it makes sure you're not calling any variables by accident (as they don't validate between ' ')
 
Anonymous
hello everyone
 
3:14 PM
also, use commas between echo statements
 
@phpNoOb hi
 
echo '<some HTML>', $variable, '</some HTML>';
 
Anonymous
hi @Ihsan @Robbert
 
@phpNoOb hi!
 
@Robbert Not really a totally legit reason since single quotes are legal in HTML but I take your point.
 
Anonymous
3:17 PM
@Robbert so, your getting addicted
 
@DaveRandom legal, but not pretty
for attributes at least
 
Anonymous
hello Mr. @DaveRandom
 
11
Q: Speed difference in using inline strings vs concatenation in php5?

Uberfuzzy(assume php5) consider <?php $foo = 'some words'; //case 1 print "these are $foo"; //case 2 print "these are {$foo}"; //case 3 print 'these are ' . $foo; Is there much of a difference between 1 and 2? If not, what about between 1/2 and 3?

 
Anonymous
@DaveRandom heyyy?
 
@Robbert <foo><?php echo $variable; ?></foo>
 
3:20 PM
Bye all, have a nice time.
 
@Robbert Yeh but those tests are pretty meaningless. Unless you run that on a server where there is literally nothing else going on the results will vary wildly, plus (and here's the really salient point) over 10000 iterations the deviation is ~1ms. That's just not a meaningful difference.
@phpNoOb yo
 
@DaveRandom I know, performance doesn't really matter here. but there's more discussion going on on that page about the differences between single and double quotes
@tereško yes, obviously it's better not to echo HTML at all. but sometimes it'll make stuff more readable
 
if html is not echoed, then how will it ever leave the server?
 
Anonymous
later
 
Anonymous
@DaveRandom :) just making sure, I am not tiny avatar
 
3:24 PM
@Jack Well duh, obviously via print
:-P
@phpNoOb No my tiny avatar list is itself pretty tiny
 
@DaveRandom Of course, silly me.
 
ancient question
 
Anonymous
@Gordon Kill me for a week :)
 
57
Q: Is there a performance benefit single quote vs double quote in php?

GeoffreyF67Are there any performance benefits to using single quotes instead of double quotes in php? In other words, would there be a performance benefit of: $foo = 'Test'; versus $foo = "Test";

 
Anonymous
3:30 PM
got a lot of things to do, for a week
 
@Robbert there is another one
 
@phpNoOb done
@ircmaxell its the oldest of these. I am not sure it should be deleted. I am tempted to lock it. just like the other one
 
there should only be one
pick which should be there
but IMHO, having both is bad...
Or perhaps merge them
 
@ircmaxell yeah, im checking if they can be merged easily
 
3:35 PM
Meanwhile in Bosnia.
 
@webarto Beautiful
 
@ircmaxell why facepalm? if you know something I don't, please don't act arrogant and just say what I'm doing wrong
I can handle feedback :)
 
@Robbert Don't mind his face palms ... he just likes to hit himself on the head a lot ;-)
 
@Jack Sure is, it's pretty low (clouds) and high speed, never seen this in my life. I bet @Jimbo summoned thunders to hit Audi :P
 
 
3:38 PM
@ircmaxell merged
 
:-D
 
That was the best I could find in under 10 seconds by searching for "zeus throwing lightning bolts at audi"
 
@Gordon imo this question has the better answer :)
 
@Jimbo lol
 
@Jack the other is older and has the better question though imo
 
3:39 PM
tough choice i guess ... and another populist badge for that guy :)
nope sorry, his first apparently.
 
@Gordon Gordon, what do you use when you echo html (if you ever do)?
 
@Jimbo ERMAGHERD
 
single quotes? commas? etc
 
@webarto lol
 
@Gordon doesn't echo html, he is HTML.
 
3:42 PM
@Robbert when I echo HTML I usually use echo $dom->saveHTML()
 
@Gordon o rly? you don't ever write raw HTML?
what is it that you build then?
 
@Robbert nah, it's not worth using DOM all the time. I like using sprintf for returning raw HTML from Helper functions. It let's me separate the template from the PHP. And for larger templates I just use html files with <?php echo $foo ?> but no logic in the templates.
 
/me is coming to the conclusion that he needs to write a book on OOP
 
@ircmaxell to join the ranks of all other books on OOP?
 
@ircmaxell nah, you have no clue about OOP. You recommended Brandon's book. And let's not forget, you got no gold badge in OOP either. So if anyone should write a book, it's me :P
 
3:47 PM
/me quits
 
@ircmaxell scnr ;)
 
@Gordon yeah you shouldn't use logic in your HTML templates. but still, for example, you have a form handling object that handles outputting inputs n stuff. you'd probably end up writing a $form->getField($name) function and inside that function, you're gonna save some HTML in an output variable.. long story short: you can't have 100% HTML and PHP separation
lol, outputting inputs
 
Ah, but then you're forgetting the Esher Droste Abstraction: at every level of code, there's always another layer of abstraction.
 
ah, here it comes again... co-worker's first encounter with Zend_Form...
let's count the seconds to madness
 
@Jack nice
which PHP frameworks do you guys use, and why?
 
3:52 PM
Don't attempt to use the Zend_Form, it's impossible. Instead, only try to realize the truth: there is no Zend_Form.
 
class HtmlHelper
{
    private $linkTemplate = '<a href="%s">%s</a>';

    public function getLink($href, $linkText)
    {
        return sprintf(
            $this->linkTemplate,
            htmlspecialchars($href),
            htmlspecialchars($linkText)
        );
    }
}
@Robbert that is pretty separated, don't you think?
 
@Gordon That should be the accepted answer.
 
@Gordon you've got to be kidding me
 
@Robbert Don't fight it, embrace it :)
 
And in your larger template you can then simply use the helper function like this: <?php echo $htmlHelper->getLink('foo', 'bar') ?>
 
3:54 PM
yeah, of course.. but isn't all this overhead a bit silly
 
@Robbert depends on your needs
 
I mean you can read HTML perfectly, why would you want to separate it completely
yeah I guess so
 
@Gordon ah, but then you want to add custom attributes :)
 
@Jack exactly, you'd have to pass an array of attributes as an argument or something, just to make sure someone can throw unlimited no of attributes at an element
 
@Robbert it's an example. it's not a full fledged generic helper
 
3:56 PM
but that's dumb, you could've wrote a string of HTML and instead you're making arrays of attributes and new methods which serve no other purpose than to output that same string
 
Well, then you introduce another function ... getLinkWithAttributes() =D
 
@Gordon I know Gordon, I just like a good discussion I guess
 
@Robbert @Gordon knows Gordon too, they upvote each other's answers ... or so I was told ;-)
 
Guys I'm trying to figure out how to install PHP extensions... The accepted answer here says to install memcache.so, but I downloaded the module and there is no memcache.so file in the download folder?
 
is there a .dll?
 
3:58 PM
@JoelMurphy pecl install memcache ?
 
(I'm assuming Windows) just drop the extension in the /extensions folder and add it to the php.ini extension list
 
@Robbert what would be the alternative? putting sprintfs all over the place would be severe code duplication. and concatenating the html with the $href and $linkText directly in the template is ugly. at least in larger projects.
 

« first day (935 days earlier)      last day (4028 days later) »