« first day (920 days earlier)      last day (4042 days later) » 

user652649
10:00 AM
@Jimbo lol
 
@DaveRandom I think that the original should be closed as a duplicate actually
This one got a better answer.
 
1 message moved to bin
Yay, now I have cv'd both questions as dupes of each other. It's a race!
 
@DaveRandom lol
 
Heh
But the original have more CVs
 
@tereško Did you quit your job man?
 
10:06 AM
> It's filling my HDD (90 GB in ~4h) and I really need to fix this
Why the hell would you leave something running for 4 hours that cannot possibly be working?
Especially since that would also be melting your CPU
 
user652649
@Jimbo nopaste.info/8f2e33557b.html consider that's not a good class design... seriously LOL it's just a test class. but allows you to understand how other things work
 
@wes Yeah I see, it could be a little nicer, but I like it. Makes sense. I'll re-write so I understand it better and give you credit - cheers :)
 
user652649
@Jimbo no it doesn't make sense :P
 
@wes Just needs a few method name changes, that's all! I mean... methodCall(), really? :D Might as well call them all that :P
 
public function doShit() and public function doShitWith($crap) are all you need.
 
10:12 AM
posted on April 23, 2013 by till

Last week I blogged some Vagrant tips and pretty much jinxed the run I had in the past months. Here's how: I decided to upgrade to Vagrant 1.1, which broke bento: the current bento master is incompatible with Vagrant 1.1. But selecting the right rbenv env and installing the latest available Vagrant gem (inside the rbenv environment) fixed it. My base box build, but for some reason, the gu

 
doShitWith(Crap $crap)
Then you just iterate your crap, and get a load of shit out of it.
 
Good Morning Everyone
 
Sounds painful
 
heloo
 
@Baba hi hi hi there
 
10:13 AM
Lmao
Morning @Baba
 
@DaveRandom Am good .. how is my friend ?
@Jimbo Morning .. how is work today ?
 
@Baba Good thank you! No stress :) You?
 
user652649
@Jimbo methods applyPayment getCheckoutDetails createCheckout and verifyIPN should have their own classes, the paypal class should be only a curl helper
 
@Baba Oh, y'know, still alive. Needz Moar Sleepz.
 
@DaveRandom Don't we all
 
10:15 AM
@Jimbo ..... Little Stressed up ...
 
@wes I'm all for abstraction and stuff, but why do applyPayment etc need their own classes? So they can be used with other API's or something?
 
@DaveRandom Cool .... say hello to him for me .. hope to meet him one day
 
@Baba You need a big cup of tea
 
@Jimbo yeah ... @PeeHaa埽 is a bad influence
 
not sure is php-related, but surely web-related: does anyone know how to embed a youtube auto-generated channel like the youtube sports channel youtube.com/channel/HC7Dr1BKwqctY ?
 
user652649
10:17 AM
@Jimbo single responsibility principle
 
@wes Not in their own methods? Completely in their own classes?
teresko is the lead singer of The Darkness: stereogum.com/img/justinhawkins.jpg
 
user652649
yes because, extending them you would like to create dependencies between them like for example public ApplyPayment(Checkout $checkout)
 
@Baba Huh? How is he a bad influence?
 
lol, earned nice answer for meta.stackoverflow.com/a/177598/161180
 
@Baba hiya ........... morning ....
 
10:22 AM
hi @Baba
 
@MadaraUchiha @PeeHaa埽 Theory says : Beer + PHP = Better Code ... now am trying had to wake up properly
@NullPointer Where have you been ?
 
@kaᵠ Good Morning ....
 
@Baba buys in exams .... how are you ?
 
10:23 AM
1..2 beers+php might get better code :P more is just wrong
 
It takes a very specific amount
 
Hi All,

http://stackoverflow.com/questions/16163623/fedex-api-schedule-pickkup
 
lol right
 
@MadaraUchiha lol
 
Please provide answer
 
10:24 AM
@MadaraUchiha lol
 
and one have more Idea about Fedex Api
 
wlf
lol
 
@kaᵠ 1.2 per hour , per day or per PHP file
 
lol @Baba
 
@Baba its per php code line :P
 
10:26 AM
Hi
 
@NullPointer that is where i got it wrong .... I did 1 beer per PHP file dammm .. Poor PHP documentation caused this
 
lolwt ... that is huge .. blame @PeeHaa埽 for that :P
 
@BrijKishorRajput I've edited your question, it should be bumped to the top now. If anyone here knows they'll help you, but don't expect anything from a specific API (most of us don't know it)
 
@NullPointer Oh ok .... thanks :)
 
@NullPointer imagine the code:`
<?php
include 'file.php;
funion ($ariable, {
if $varble=400) br;
els retur;
}fd iu
Lkjoiy9887gi
lkp--------
 
10:29 AM
xD
 
@kaᵠ whot is that ?
 
@NullPointer coding with 1beer/code-line
 
lol
 
@kaᵠ you need to use the right beer for the right task ....... the is Microbeer Optimization i don't agree
 
Hello Folks
How things going on
 
10:31 AM
Imagine
	foreach ( range("A","C") as $l ) {
		echo $l , PHP_EOL ;
	}
With a good beer .. it can be
	foreach foreach foreach ( range("A","B","C") as  as as = > $l <= <= range("A","B")) {
		unlink($l) , PHP_EOL ;
	}
	echo "Thank You";
 
looool @Baba, good beer ei?
 
@kaᵠ you would sill get some lines correct like the echo "Thank You" part
 
Please give me more...
 
@kaᵠ others way be wasted or suffer repetition but you would never make mistakes :)
 
Any Drupal guru's here?
 
10:35 AM
foreach ($arr1 as $el) {     // iterate the array
    foreach ($arr1 as $el) { // just to be sure
        // do stuff with $arr2 here
    }
}
6
stupid markdown
 
@DaveRandom lol lol lol
 
loooolwwt
 
nope @Duikboot and there are no guru's here, just some guys who like reading manuals, guru is so final
 
@DaveRandom you are crazy man ...... lol
 
:D haha
 
10:35 AM
stackoverflow.com/a/16166863/1338292 - carpet bomb answer and copied from an old answer (his own).
 
( BRB lunch )
 
@DaveRandom that's some good beer :)))
 
@kaᵠ can you see a good Beer code by @DaveRandom
 
ohh yea.. take what he wrote, and make sure 10 times more :)))))
 
Am i the only that does not understand this :
2
Q: Memcached Ignoring OPT timeouts

AschererHaving an issue where calls to memcached->get( $key ) is taking over 30 seconds, and is throwing a fatal exception. Kind of a weird scenario, but basically, the environment we have, has 4 servers running memcached 0.4, and 3 running 1.08. Here's the exception Maximum execution time of 30 second...

1. There is nothing like Memcached::getConnection
 
10:38 AM
WTF! This guy daisy chained his answers together; stackoverflow.com/questions/7586479/php-regular-expressions/…
 
2.
   for( $i = 0; $i < 10000; $i++ ) {
                $value .= sha1( $value );
        }
 
@Baba that is madness :P
 
@NullPointer I just want to be sure Guinness is not making see things
 
@Baba Now write that using a Y-combinator :)
 
@Jack lol
 
@Baba with a better beer you will change 10000 into rand() and add $i as a salt every time, then save that in the database
 
@NullPointer wtf .. and his topic is Memcached Ignoring OPT timeouts
 
@kaᵠ good good .... thanks for the inspiration
 
10:43 AM
@Jack chasing that guy :D
 
@Baba have you noticed this for($i=0;$i<=1;$i++) { ? lol
 
@NullPointer lol ..... i saw that too
 
@Baba now you may answer :P
 
@HamZaDzCyberDeV Yeah, I've flagged the daisy chain starter answer for moderation :)
 
@NullPointer i can't really think of a place to start ....
 
10:46 AM
@Jack what did you choose ? "custom" ?
 
@HamZaDzCyberDeV Yeah, I've flagged this one and mentioned it's a daisy chain of two other answers.
 
@Jack ok :-)
 
there is no way to prevent labels getting rendered by default?
and of course the frigging codebase doesnt allow for easy modification either
 
user1125394
[windows users] is there a way to modify system Path without rebooting
 
10:50 AM
@Gordon Why are you using The Lie?
 
@DaveRandom historical reasons
 
@c'c Yes. Just start a new command prompt. Environment variable changes are immediate but they don't propagate to open command prompts.
 
@c'c first result on Google does help?
 
@c'c why would there be the need to restart?
It's just a variable of which the state gets changed
 
user1125394
@DaveRandom hehe, will know now, always retarted so far
 
10:52 AM
Most of the time when windows tells you to reboot you don't actually have to.
 
hahahha
 
user1125394
@PeeHaa埽 because I assumed windows == stupid
 
@c'c Why?
 
Also ss64.com/nt/setx.html if you you have the win2k resource kit (and if you don't have it, why don't you have it? Go and get it. It has many other useful thingz)
 
i did it... i reinvented the wheel ! (probably... most certainly... almost definitely)
 
10:59 AM
@kaᵠ is it rounder?
 
Don't mess around with legacy code. If nobody pays to to replace it with a proper solution, don't touch it. You will not make it any better and in most cases fiddling around will just break it. — Till Helge 29 secs ago
I wonder if that's to generic in spite of being true ;)
 
user1125394
$st = $pdo->prepare("SHOW COLUMNS FROM account LIKE 'foo'");
$st->execute();
if (count($st->fetchAll() == 0)){
	//..
}
 
@TillHelge i would disagree
 
user1125394
any way to make it shorter since there is no variable bound ? ^
 
if you have to work with legacy code, you will have to start to repay the technical debt, or your "additions" will result in causing unpredicted errors
 
@tereško So will refactoring the legacy code...and very often in places where you would never expect it to have any impact at all. (I assume legacy code never to come with a test suite.)
 
how to change apache server port in xampp
 
@c'c PDO::query()?
 
@shankar.parsanamoni some way as on normal apache , you edit the configuration file
 
@Ocramius of course, kinda like:
 
user1125394
11:09 AM
@TillHelge perfect ;)
 
@c'c That foo should be a bound parameter though.
 
user1125394
@TillHelge no it will not
 
We0
Hi everyone
best way in php to handle the referrer
someone is redirect to my page, i do something, then i redirect him to where he came from
 
@kaᵠ sooooo round :O
 
oh yea :)
 
11:14 AM
@We0 You know that the referrer is easily spoofable and shouldn't ever be relied on for anything important, right?
That is to say, you can do this, but don't rely on it working 100% of the time.
 
We0
yeah decided against ir
it
 
It will still work 99.999% of the time, the only time it won't is when someone intentionally tries to break it. But you can't use it for security.
 
We0
rather get parameter url encoded return utl
 
@HamZaDzCyberDeV Mods have removed the other two answers :)
@We0 Either store the previous page in a session or pass it along in the GET params.
I'm not a fan of passing it via GET though; it seems easy until you need to pass it to login, register, send it as part of the welcome email, forgot password, reset password, etc.
 
user652649
11:27 AM
@user1026090 you can't use an iframe i guess... you can do it via php or js, probably
 
@wes thanks for response, i'll have to look further than the youtube-api then
 
@NullPointer i think i answered at last
 
ht*p://img.leprosorium.com/1779362 #funny
 
@Madara Thanks
 
11:46 AM
@Jack good (y)
 
Great video
 
@an1zhegorodov -1. Not enough jQuery in that video.
 
hello/everyone?everyone=all+of+you
 
	switch ($_GET['everyone']) {
		case "all+of+you" :
			echo "We are fine";
			break;
		case "baba" :
			echo "Am drunk";
			break;

		default :
			echo "Get Lost";
			break;
	}
@okok ^^^^^
 
12:01 PM
ROFL
 
hi Gordon!! @Gordon
dude now it'0s nice in js chat room ;) everythings ok for me ;)
and for others too also ;)
 
@Gordon lol
 
@okok good
 
;)
 
12:03 PM
@Jack $('#camera').click();
 
@an1zhegorodov old one :D but always nice to see gopro features
 
When I can afford one, I need to get a Gopro - for my next bike accident that won't be my fault
 
@Jimbo Buy a car. Die less.
 
@DaveRandom I has a car! But I'm not paying £7 a day for parking + petrol :/
 
@Jimbo dont park car :P
 
12:18 PM
Hello.
 
@DaveRandom @NullPointer Sup!
 
@Appu hiya
 
@NullPointer Why did you leave pony?
 
@Appu for the sake of butterfly :P
 
12:23 PM
Today: I get to make a 30%+ return on an investment I made yesterday
 
@ircmaxell whoa nice profit
 
posted on April 23, 2013 by Brandon Savage

All of us would prefer to work on code that we love. And all of us are faced with code code that we feel…well, not so warm and fuzzy about. Its the nature of our business. Legacy code is everywhere. From code that’s just been around a long time to code that was rushed to [...]

 
Yup, bought some Netflix stock yesterday, at $172 per share, and in pre-market trading it's over $220 per share
 
@NullPointer Butterfly? Rolls eyes
 
@Appu :P because its awesome
 
12:29 PM
Wish I understood why I was previously not getting database errors via. pdo's errorInfo when mysql queries were clearly failing...
too bad I fixed the problems anyway and moved on too far to replicate them
 
@ircmaxell stock market is really cool sometime to earn money but risk associated with it is greater
 
I made a blog, and I use AJAX to load new contents if there is any every 10 seconds, but the problem is that its the whole content of the blog area that gets updated every 10 second, what I really want to do is just update and place records that are not on the display, How can I go about this easily people?
 
now i live in fear of new, subtle errors going undetected
it's funny that i could input the same sql into phpmyadmin and get the error plain to see there
 
@NullPointer yup. Big risk, big rewards
 
hmm, i think i know whats wrong...
 
12:37 PM
good morning
 
mornin
 
@igorw very good morning
 
@NullPointer Lol, okay I'll just hover it over the building
morning @igorw
 
@Jimbo sounds better :P
 
hmm,
UPDATE oow_users SET firstname=:fname, ....
fname = the name field in html? ( from the post var) and firstname the fieldname in the database?
 
	/**
	 * Checks if a user is allowed to login into the application
	 *
	 * This function controls access to the application by comparing username
	 * and password against the stored values in the database. The function
	 * counts unsuccessful logins and sets the current number of tries to the
	 * view. The view can implement additional client side measures to help
	 * users login, like e.g. modal windows or similar things.
	 *
	 * @ToDo make password string salted
	 */
 
mornings
 
Morning @hakre
 
@hakre mon-ring
 
@Gordon Nice! Didn't realise PHPDoc had an @todo - I've been putting // Todo: This, here in the comments. Will change to PHPDoc now
 
12:53 PM
@Jimbo the wicked part is actually what's given in the todo there.
@Jimbo its proof that todo tags are the equivalent of "will never happen"
 
@Gordon I've already fixed a lot of ToDo's in my code... This isn't true!
 
@bwoebi then you are the notable exception
 
stackoverflow.com/questions/1407638/… isn't git really stupid? the the answer suggests just works when you actually know what is deleted ...
 
@Gordon Nono... Once I've added there ToDo's, I fix some of them, but nearly never they'll be ALL fixed.
 
@bwoebi everyone I worked with considers @todo tags a code smell because they never fix them. its just a great opportunity to give the responsibility away.
 
12:58 PM
wow @hakre thanx :) was looking strange at my rep, 110... then saw the +bounty :D
 
@kaᵠ there you go. And the next bounty is set :)
 
@hakre nice keep-alive, TTL +7d
 
@Gordon I have some ToDo's like this in my code: // :TODO: re-enable this, when bus error in pthreads fixed I fear they will really never be fixed....
 
Hey guys, In my google graph i created using the google api, i attempt to retrieve values from my PHP document by using the post and response method and it says the variables have been set but the graph stays empty:
oli.pw/stats.php?id=12131
 
Can anyone see where Im going wrong?
IS this the correct way of updating
and again: Invalid parameter number: number of bound variables does not match number of tokens' :p
 
user652649
1:09 PM
yet another css fail ( stackoverflow.com/questions/16170010 )
 
Good morning take 2
 
Hello
 
:D
Stupid argh update statement
 
1:22 PM
http://simonholywell.com/post/2013/04/three-things-i-set-on-new-servers.html
Planet PHP
3 things I set on new servers
Simon Holywell
1366720920
 
@Feeds Y U SUCK SO BAD?????
Although the article is reasonable, even if it does manage to stretch over 6 screen heights something that could be said in 3 sentences.
 
Do I have to this when I execute an update statement :
$sql = "UPDATE game_users SET :fname,
OR
$sql = "UPDATE game_users SET fname:fname,
 
$sql = "UPDATE game_users SET fname = :fname";
Assuming you have a column name "fname" in table "game_users".
 
And what for multiple updates
 
1:27 PM
Multiple queries. :)
 
$sql = "UPDATE game_users SET fname = :fname, lname = :lname ";
I have to update 13 fields from a form.
 
That works, yes.
Don't forget the WHERE clause. ;)
 
@ircmaxell what's your take on package/namespace visibility for PHP?
 
@wes with JS http://jsfiddle.net/vNP9N/
Click first on the field and then you press a key on the keyboard
press a key again and it will disapear again
 
@Gordon If we had first-class namespaces, yes, I would love it
 
1:31 PM
It is just POC @wes
 
@ircmaxell would it be much effort to implement in the current state?
 
user652649
@HamZaDzCyberDeV i know how to do it in js, i was looking for a html+css solution
 
user652649
1:39 PM
@hakre @cryptic ツ @NullPointer i wish i could sell my close votes 1$ each
 
lol. Anyway, just did some HTML parsing with Tidy - for the fun of it:
$url = tidy_parse_string($text)->body()->child[0]->attribute['src']
 
@Gordon absolutely
right now, namespaces are just class names with some compiler copy/paste
 
@ircmaxell can I somehow bribe you undertaking that effort?
 
No, because it'll never get in
 
first-class namespaces? As in visibility across the namespace?
 
1:46 PM
in order to do that, the only logical way to do it would be to merge Namespaces, Constants, Classes and Functions into one hashtable (one entity list). Which means that a lot would change...
 
@ircmaxell :/
 
We were discussing something similar the other day
 
@wes Pretty certain it's not possible without JS
 
yeah, with functions being separate from classes/interfaces/traits.
 
user652649
@DaveRandom guess so
 
1:53 PM
convince @NikiC of why it's needed :-P
 
good afternoon
 
@nikic congratulations. you have been chosen to implement package level visibility.
 

« first day (920 days earlier)      last day (4042 days later) »