« first day (929 days earlier)      last day (4019 days later) » 

7:00 PM
Because 6 months from now, when you use that code, you may not remember that it only accepts PDO objects
 
@hakre TLDR: use function foo\bar; bar();
 
@igorw just read through, sounds sane.
 
You may try to instantiate a mysqli object, and then wonder why $this->conn->fetchAll() fails every time.
But with type-hinting, it's not possible.
 
@igorw the "keyword sequence" is perhaps a nice agreement to not need to introduce a new keyword for this.
 
yeah, it's the best I could come up with. if you have any other ideas, please let me know.
 
7:02 PM
Also, if you can, just by looking at the function's arguments and return type, understand what it does, your program is extremely readable.
 
@MadaraUchiha 6 months? For me normally it takes less than two weeks.
 
Heh, I was making an example
 
@igorw real namespaces would be an alternative ;) and while we're at it: functions and objects as first class citizens :)
 
@hakre sure, but that would be a major BC break, since the namespaces would have to be merged.
class foo {} function foo {} would no longer be possible
 
Anonymous
Yea, It makes sense now. Because, there are times when I use the constructor to get only the $conn resources, and other times it gets other data.
 
7:04 PM
@igorw we should somehow do set the must in PHP-DEV that it's soon: If it don't BC it ain't no new release ;)
 
Anonymous
It's more like a //comment
 
@hakre ask guido how that worked out for python
 
nice one
 
7:10 PM
@hakre could be wordpress as well
 
@kaiser what is your idea? I mean why do you say so?
 
@hakre Wordpress biting itself in the ass -> new "features" :)
I guess you read what to the current version/this dev cycle happened?
 
@kaiser hey, if you need to bring the admin up-to-the-lastest fancy stuff two times a year to keep bloggers on wordpress.com happy, there is nothing better than having an army of monkey coders on dot org.
 
:D
afaik the new fancy post formats UI was already available on wp.com
 
lol, haha :)
 
7:19 PM
seems like there's now only the new theme that does into core. main feature: the post formats. missing feature in core: post formats UI ... I don't know the smiliey face I should now write
 
yeah, I never did understood who needs these post formats anyway. we have already post types. and they are even totally different to what most users anticipate.
this is all just hot air that is getting produced there.
they don't even manage to run prepared database statements 2013. that's what I call a happy birthday. and ask @ircmaxell who has an exploit in the pipe. I bet they wait with the release after the next version is out so that everybody needs to upgrade. jipee.
 
user680786
can somebody show me php framework with clean code?
 
@hakre absolutely. I was always writing smaller Apps as standalones and now I'm already digging into Symfony2 to get away from WP. That won't end well.
 
@OZ_ clean as in the book clean code?
 
@OZ_ fat free framework.
 
user680786
7:25 PM
and without Registry as "Dependency Container"
 
user680786
hakre, i doubt it's possible. but something close enough
 
@kaiser WP has overlived it's time. Their end was with the release of Disqus. Users don't need their blog as commenting platform any longer. And then they jumped too late on the CMS bandwaggon.
 
@hakre Nicely put.
 
@hakre you mean diqus?
 
@kaiser yes, exactly.
 
7:27 PM
@kaiser You mean Disqus?
 
@OZ_ Good luck with that
 
@webarto well responded, sir
 
@PeeHaa埽 ZF2 maybe?
@kaiser you need to put sir at the begining of the sentence here :)
 
user680786
sad situation, don't you think so?
 
@hakre well, sir, most of the better developers are slowly moving away from wp. better?
 
7:30 PM
most of the better developers never worked with wp :P
 
@hakre Depends what parts you are willing to use of the entire thing
@webarto Hey I sometimes have to work against WP
 
@kaiser sir you can say sire to me :)
 
@webarto not true
 
only reason they work is because of the money
 
@hakre one more sir and I will call you mistress :D
 
7:31 PM
@kaiser well, I remember a single developer on WP and that is ryan.
 
@webarto true. now what? :)
 
@kaiser in real life my nick is webmistress actually.
 
@hakre sir, are you female?
 
hakra the webmistress
 
user680786
@kaiser i can't find implementation of method "find" for sql-db. Is it finished?
 
7:32 PM
@kaiser sire, no sire.
 
@hakre dachte ich mir schon :)
 
herr hakra
 
you'll have to search. only tried it some month ago
 
@kaiser I should have done the same really...
 
not only can the whole framework put into a single file, as well the documentation is in a single file ;)
 
user680786
well, looks interesting enough. except config of array-oriented-development style.
 
whats up with symfony2 performance? techempower.com/benchmarks
 
@hakre The best part is that there is no file used for unit tests at all
That's fat free for you
 
@OZ_ promising for small projects - webapps
@webarto you still can - market won't die that easily
 
@OZ_ sf2 supports that. docs are still lacking, but you can define controllers as services if it makes you happy.
 
7:36 PM
@PeeHaa埽 tests are only a reminder that the world is not perfect - no don't want that. give me back my rubber ducky.
 
user680786
@igorw i respect sf2, but get('request') code can't make me happy enough
 
Nothing can beat I good rubber ducky. NOTHING!
 
@kaiser dead enough for me i.imgur.com/GFrgKN5.png
 
eeeeh wut now?
$data['source']=Base::instance()->
    fixslashes($frame['file']).':'.$frame['line'];
 
@webarto horizontal poo diagram :D
@webarto no, honestly: what is this?
 
7:38 PM
@OZ_ I know.
 
user680786
@PeeHaa埽 what the piece of crap is it?
 
@OZ_ that's that puke fat free crap
 
@kaiser sales poogram from themeforest.net :)
 
@OZ_ you can ignore that in your own code though and write controllers that take Request $request as an arg.
 
7:39 PM
@webarto from whom?
 
@hakre awesome!
 
@kaiser from me, I can't use other peoples account, anymore :P
 
@webarto what did you sell? plugins? themes?
 
user680786
@igorw that's much more interesting, thanks
 
@kaiser themeforest.net/user/trendyWebStar basically, friend named it, never dreamed it will end up as "elite" with this username :P my point being, sale were the same as anonymous and "elite", don't know if the work is crappier, but declination is there...
 
7:42 PM
@webarto now thats a real username! niffy! :D
 
@hakre I think it's from random buzzword generator :D
 
@webarto well done. guess your sales decrease because you aren't metro / flat enough in your style :)
 
yo dawg, that's so metro!
 
afaik, WPExplorer is doing pretty well. Nice design, most crappy code since a long time.
 
yo dawg, that theme is sooo flat I want to glide on it.
 
7:46 PM
@kaiser I wish I could look at some code and say it's the most crappy code since a long time :(
 
@webarto keep it, it's sweet
we can use it to market some "top notch super buzzworded" themes and plugins
 
@PeeHaa埽 I'm not sure I follow or get around what you're trying to say.
 
Let's just say I see a lot of really crappy code on almost a daily basis
 
user680786
what do you think about this idea: daemon.io ?
 
Interesting stuff /cc @rdlowrey
The repo is a mess though :(
 
7:54 PM
@PeeHaa埽 HOW are you ?
 
@PeeHaa埽 well I had to buy one of his themes. Activated it in full wordpress "debug" mode and got some hundred pages of errors. even the bible has less pages...
 
hey!
 
I am FINE
How are you today?
 
user680786
 
The code somewhat looks like the overall feeling I get when looking at the repo :(
I just cannot look at other people's code anymore. I'm getting too old and grumpy I think
 
7:56 PM
@PeeHaa埽 actually i am good i know you are very good person hehehe i saw you so many times here i have a lil question for you that i am trying to make something which will see that users sign up on that website or not that website is not mine but i want to check once he sign up to that website i wana give access to my website anyway ask users to sign up there 1st is it possible
 
@MalikUsman Do you have control over that other website>?
 
user680786
but idea is interesting enough, it's like nodejs in php
 
user680786
permanent database connection is already worth thing to try
 
no i dont its same like you see facebook like exchange website people go and like the page and when the done the click on confirm if they like page they get points if not they they wont
lol
 
What is keeping @rdlowrey??? Somebody said nodejs damnit!
@OZ_ The idea is interesting
 
7:59 PM
@OZ_ the font is not good for headlines :) idea is fine. i've seen something like that in C yesterday
 
user680786
it's not my project, just to clarify :)
 
@MalikUsman facebook shares resources by using oauth
 
@PeeHaa埽 but i want for someother website there users have to sign up
its not for facebook
and that website is not mine
 
8:02 PM
Not possible. There is no way to tell whether somebody is signup on some service if you do not have control over it
 
@PeeHaa埽 using cookies or something
 
@MalikUsman You cannot read cookies from other domains
 
Oh well what is the best way to force users to sign up there
 
@MalikUsman Does the third party provide some API?
 
user680786
8:06 PM
@hakre thanks. but also without documentation :(
 
well cpa network does
but i dont know about advertisers
 
@OZ_ there's an example linked.
 
i dont think
 
user680786
@kaiser example is just example. there can be a lot of stuff that is under the cover
 
Please, please, please try something first, Show some initiative. Then show what you tried and how you failed. — Neal 34 secs ago
DESTROY ALL THINGS!
 
user680786
8:09 PM
kill all humans
 
@hakre Super Awesome jQuery Modern Metro Flat Theme HTML5 CSS3+
 
 
lawl
 
@Neal only the stupid
 
8:12 PM
or you could help with the question I asked... let me rephrase it if you chose not to read it the first time... "I took html code placed it in a php file, and call it with jumi inside of a joomla article... nothing shows up... if I directly open the php file it works... I dont understand what the differences are except the joomla already has a header, and body - so what is it i should do to make this work? general guidance would be appreciated not asking anyone to solve all problems — morty346 1 hour ago
 
@bwoebi hmm?
 
(but the problem is that everybody is stupid...)
 
user652649
did someone ever notice that Chrome sometimes truncates the view-source: of the page, for example if you have a fatal error during <div class="THERE"> ? is there a way to show the raw page source in chrome?
 
@Wes uhhhm there is nothing more
A fatal is kinda fatal
 
@Wes in source view press F5. But it can be that PHP did not output a full page because of the error as well ;)
 
8:14 PM
@PeeHaa埽 “Woke up, felt like shit. Went to work, felt like shit.” :)
 
@webarto Metro Awesomium (Mobile + HTML 5 Responsive) [2013 May Release Branch]
 
user652649
@hakre no it's Chrome truncating the output..., btw f5 isn't a good solution for testing post data :P
 
user652649
damn you chrome!!
 
user652649
 
@Wes just confirm you want to re-post. works.
 
8:16 PM
hellllllllllllllllllllllllllllo
 
user652649
@hakre ehhhm not, i have some code that prevents double submits, also recaptcha and more
 
hi
 
@Wes dude, you need something if you debug to not have these. (okay sounds ass-clever I know)
 
user652649
@hakre yes, indeed
 
@FunBeans helli hallo
 
8:17 PM
Question: I have a web page where you select something from a menu and then push save, after that it runs throuhg a bunch of php files and functions, then pauses for about 5 minutes, then finishes up. Whats the best way of debugging this type of situation?!
 
user652649
no, you are right, i should do something for to override these protections
 
Im new to php
 
@FunBeans You can best debug that if you can control the time.
so you don't need to wait 5 minutes in debugging.
 
i tried adjusting max_execution_time in the ini file.
but it didn't work
 
or you want to find out why your script takes 5 minutes?
 
8:19 PM
Yes, I would like to find out why its taking so long. it should take about 1-2 seconds
 
@FunBeans is that on your own computer or on a remote computer?
 
Im putting error_logs in various places but I'm basically just tracing very very slowly
its on a remote computer
Ubuntu box on amazon
 
@FunBeans if anything is recursive try there.
 
LAMP
 
okay, do you know how to do remote debugging?
 
8:20 PM
not really
 
ever heard of that?
 
no
 
okay, which software are you using to edit your PHP files?
 
debug_backtrace() prints out wayyyyyy too much stuff
Aptana
 
Okay, here is a remote debugger: xdebug.org/docs/remote
it might take some time to set this up however, you can then step-through your own program.
you can see where the code flows and what the variables contain and all that.
 
user680786
8:22 PM
and it will save a LOT of your time
 
yes it will safe you a lot of time.
 
user680786
thanks :)
 
but you need to get warm with it once.
club mate in da house.
 
cool! about how much time to setup do you think? should I attempt to use the eclipse plugin on aptana(aptana standalone is basically eclipse ) or should I just learn to use it on the command line?
 
They an extension for chrome
 
8:24 PM
@FunBeans you use it with your IDE normally.
 
They have browser extensions
 
Let me check if Aptana supports it otherwise go with the plugin. I used it with PDT and it worked well.
@FunBeans this might be interesting for you:
4
A: XDebug with Aptana Studio 3

Andy BrahamI realize that this is a old thread but I also had a difficult time finding out how to debug php with Aptana Studio and FireFox so here is a quick how-to to get it working... The easiest way I found is to install wamp server V2.2, this is a very useful program as it installs Apache Server, PHP ...

you don't need to install the server, more about the configuration and what to do with eclipse.
you can first try with local debugging if it generally works tough
 
@hakre That one is going to be a killer.
 
but for that you can also try in the shell, this does not require a webserver for a testdrive.
@webarto Turns WordPress into your personal PwnagePress !
 
ok, cool.
 
user680786
8:31 PM
@hakre PP
 
logic much?
Ok. I'll edit the answer if the link goes down — brillout.com 14 mins ago
 
when was instanceof added to php?
 
@PeeHaa埽 yeah as the link is currently down.
@bizzehdee PHP 5.0.0
 
ty. making sure :)
 
@bizzehdee Yes, you find that documented with the is_a function Changelog ;)
 
8:43 PM
@hakre TIL: is_a
 
@webarto TIL? This Is Legend?
 
also, specifying the return types of functions came in 5.3 or 5.4?
 
@bizzehdee is not available yet.
 
so 5.5?
 
Only via pass by reference parameters.
but not for the return statement.
 
8:45 PM
@bizzehdee php 6
or 7 whichever comes first :P
 
@bizzehdee Hmm, which feature do you mean ;)
 
as in public function string MyFunction() { return ""; }
or something like that
 
1,2,3 test: ⌨
 
What is it?
 
user680786
some small... something
 
8:47 PM
@bizzehdee does not compute in PHP so far and I don't think this is even planned.
@PeeHaa埽 keyboard. ctrl + mousewheel to the extreme makes looking chat great, too!
 
ah k now I see it... :P
 
hakre: im sure i have seen something like that being used somewhere, or being tested
 
@bizzehdee It might have been people in here talking about it :)
 
no, I do not need to wear glasses (until I get probs to click the tabs)
 
8:54 PM
@hakre are you missing some charset? The Chinese character in PeeHaa's name is not printed...
 
@bwoebi :( MeNoHazNoSuchCharzOfPeeHaa 埽 :(
 
@hakre oh wait... No wonder, your UI is looking like windows :-P
 
Yes this is IE 6. But thanks to jQuery chat works like wonder.
Only the Unicode snowman is missing here!
 
im using windows, i see the character properly
 
8:58 PM
@bizzehdee you no have not IE6, right?
 
chrome 25something
 
@bizzehdee And not a 32 bit operating system probably.
 
> Uncaught RangeError: Maximum call stack size exceeded
Pussy JS with your pussy limits
 
64bit :)
 
@hakre awesome, little keyboard char (and in color !!!)
 
9:00 PM
@hakre Then I'd like to see the chrome of today, when this was IE 6
 
I'm using Windows, I nev r hav
e any pr blems with iSTOP ERROR 0x0000008E
□□□□□□□□□□□□□□□□□□□□□□□□□□□□□□□□□□□□□□□□□□□□□□□□□□□□□□□□□□□□□□□□□□□□□□□□□□□□□□□□‌​□□□□□□□□□□□□□□□□□□□□□□□□□□□□□□□□□□□□□□□□□□□□□□□□□□□□□□□□□□□□□□□□□□□□□□□□□□□□□□□□□‌​□□□□□□□□□□□□□□□□□□□□□□□□□□□□□□□□□□□□□□□□□□□□□□□□□□□□□□□□□□□□□□□□□□□□□□□□□□□□□□□□□‌​□□□□□□□□□□□□□□□□□□□□□□□□□□□□□□□□□□□□□□□□□□□□□□
 
hey @DaveRandom
 
English man made funny.
 
evening
 
got an interview near you next week...
 
9:01 PM
@DaveRandom Here I only had kernel panics, but never ugly bluescreens.
 
@DaveRandom Evening dave
 
wwwwwwwwwwwwwwwww those stick together @DaveRandom
 
A @crypticツ just appeared. Will he greet us?
 
he.. not likely
 
s/he/it/
 
9:02 PM
looooool
but true
 
@DaveRandom: you ever heard of inviqa.com ?
 
malfunctioning lately
 
@DaveRandom remove the e and the slashes?
 
@bizzehdee no, why?
@bwoebi That would just be a random profanity. I'm not down with that.
(bollocks)
 
interview with them on thursday i think, they are in picadilly somewhere. offering 45 - 55k for php devs
opened a new office in manchester (have offices in liverpool and london too) and cant fill them, hiring like crazy aparently
 
9:04 PM
@DaveRandom It seemed to me as if the order wouldn't have been a random choice...
 
@bwoebi you caught me :)
 
@bizzehdee I know a couple of those guys
 
@bizzehdee k of what?
 
@bizzehdee interesting...
 
@kaᵠ in color?, please send me a screenshot.
 
9:05 PM
@DaveRandom: want the guys details who im speaking too?
 
@webarto real money. Or possibly chickens
 
sorry, was reading the new deletion rules. good evening everybuddy
 
I would like 55K chickens
 
@kaᵠ you were wrong!
 
@webarto: £55,000
 
9:05 PM
@hakre yeah.. but very lazy with the scrreen shoty
 
55 kilochickens
 
@bwoebi nope...
 
@DaveRandom: i would rather 55 killer chickens
 
@bizzehdee that's insane
 
@b* super ping :P
 
9:06 PM
@bizzehdee zelda reference?
 
@crypticツ Evenings
 
@bizzehdee this was connected to Ibuildings once, but they branched off to england as a new firm.
 
no, i want an army of chickens to do my killing for me
 
Happened last year or so.
 
@bizzehdee In a down-with-the-kids kind of a way or actually murderous chickens? Not sure about that...
55 is hardly an army
 
9:07 PM
murderous chickens. i would use them to defend my interests
would you like to fight 55 chickens?
 
I need to pull out my kitchen axe to get to the defense.
 
why do people wanna get Payd in chickens now? rusty beer caps not enough anymore? you guys always want more and more...
 
@DaveRandom what is this. I only see boxes. Screenshot please ~~~
@kaᵠ because money and the global finance markets - you know?
 
@bizzehdee can't really do anything about it at the moment, if you get it I may come back to you in a couple of mths though...
 
chickens are taking care for themselves and when you need something to eat you have got eggs or just a chicken.
 
9:09 PM
@hakre They're actually boxes
 
@hakre there's also the 'sunflower seed peelings' currency
:)
too much lol
/out
gNight @*
 
hi did lol-out into the good night. ;)
 
This chat's looking nice when I use cmd+alt+ctrl+8 (color inversion)
 
@kaᵠ nite
 
@DaveRandom: looking for a team leader/development manager too from what im told, 75k
 
9:11 PM
But why am I unable to take inverted color screenshots...?
 
That's definitely not me. I can barely organise myself, screw organising other people
 
haha, same here
 
hey everyone
 
Hello
 
Anyone attending/speaking tek.phparch.com ?
 
9:15 PM
is there a relatively simple way of showing users that the file they chose for upload has been 'received'? what i mean is this: i don't want to actually upload the file(s) until they submit the entire form, but I also don't want the user to upload a good few files with no visual indication whatsoever that they did anything. This may not even be a PHP question, but I'm building in PHP/Codeigniter so I figured I'd go here first. thanks for any input
 
@JohnBlythe The default upload fied shows the filename as an indication they did something
 
What you've said is contradictory.
 
@bizzehdee Ugh, I hate that building that they're in. I did a whole bunch of Cat5 in there a few years ago, it's one of my least favourite buildings in Manchester. Not that that's a major issue.
 
mmm, you're right @PeeHaa埽. I guess I need to look into how best to style it cause I'm going to pretty it up. Need to do so in a way that maintains the file name display
 
@webarto No way I can afford to go outside Europe any time soon
 
9:18 PM
and another epic win: Not getting an answer fast engouh on SO? Well, then I'll take the time to read PHP manual and user-notes - and get answer quick.
 
@JohnBlythe One does not simply style an upload field
 
@DaveRandom GB is in Europe :P ? Go work for Inviqa, that's some sirius money I think.
Yeah, for me to go on some event, it would take my entire salary, not worth it.
 
@webarto No offence, but visiting a conf where Andrew Nacin is doing the Keynote? KTB
 
@hakre I'm sort of dissapoint, there are some PHP core devs and they are at the bottom of the list...
Have you been on one lately (in general)?
print
include_once
 
I would like this thread to die
 
9:26 PM
13 messages moved to bin
I hate fun
9
 
@DaveRandom curl && exit
 
awwwww, meanie
 
Yeh, anyone would think it's Friday or something.
 
We are getting there... slowly
 
Slowly, but safely.
 
9:28 PM
@Ocramius "Your order does not need to be confirmed"
 
Is it bad I wait 3 hours and then do 10 commits?
 
@ircmaxell Re de3.php.net/hash_pbkdf2, are you sure that PBKDF2 is actually approved by NIST for the purpose of hashing passwords? I have my doubts there...
 
@ircmaxell I'm asking specifically about password hashing
 
There is no recommendation in that realm
 
9:31 PM
@DaveRandom not yet, but closy close.
 
As I read it that one only recommends it as a derivation function for cryptographic keying material, but not for anything else (and is rather explicit on that actually)
 
@PeeHaa埽 ha, true. but one can hack it.
 
@PeeHaa埽 we should make fun of your hatred.
 
@NikiC depends on interpretation. And there's not much out there on that...
 
@Pheagey commits for what?
 
9:32 PM
0.14750013 BTC
 
@JohnBlythe If a client would tell me to customize some upload field I would tell em to fuck off in the nicest way I can
 
@hakre Git
 
@PeeHaa埽 fair enough. Shaun Inman is helpful in making it a little less strenuous
 
@Pheagey you don't need to wait. You can just change the date and time value of the commit and push into the future.
 
"the WordPress code reads like the dream book of teenage stoner. a patchwork of half baked ideas & limitless voids." http://bit.ly/10YNkxn
 
9:46 PM
if $argv is disabled in php.ini, how do you go about getting command arguments passed to CLI ?
 
@ircmaxell Genius.
Almost Freeday.
 
@ircmaxell ouch!
 
@bizzehdee err... you don't?
 
@bizzehdee ps auxwww | grep -v php | grep php
 
@webarto lol
 
9:58 PM
Unless -H is specified, then you're funked.
 

« first day (929 days earlier)      last day (4019 days later) »