« first day (1279 days earlier)      last day (3662 days later) » 

8:00 PM
I Just need to collect the strace logs of that system
 
oO
 
@Charles Fixed (I think)
Note that the crappy <hr> rules have been updated, it will just take some time before servers update.
 
@LeviMorrison: Hey
 
@LeviMorrison Yup, thanks
 
8:15 PM
Anyone else feel the format characters in date() documentation needs to be split into a separate page?
 
@AmalMurali Is it referenced anywhere other than date() and DateTime::format()?
 
hi guys
I've a problem
 
we know
 
create a csv and download it from the browser
 
go ahead, we approve
 
8:18 PM
let me create a gist
 
Permission granted.
 
thnx @AlmaDo and @Charles ;)
btw here's the gist
the problem is that the file isn't a csv :/
 
What do you mean? The code looks like it should work .... "should" of course is a curse word.
 
I know @Charles but the csv seems to be the page from which I'm trying to download the csv
 
huh?
 
8:23 PM
believe me or not it is the html page :'(
 
Browser cache?
 
I've tried to clear it by hard refreshing the page
 
What happens if you get rid of the content disposition and just leave the content type?.
 
let me try it
 
Hell, what happens if you get rid of both?
 
8:26 PM
same result
let me try it again
if I get rid of both nothing happens beside the print of the header
with header I mean the first row of the wanted csv
 
thnx @TOOTSKI but do I really need a class
before going OO I want to understand what I'm doing wrong...
 
No, you don't, just rip it out.
 
oki ;)
 
<?php

   header('Content-Type: text/csv; charset=utf-8');
   header('Content-Disposition: attachment; filename=data.csv');
   header('Pragma: no-cache');

    $handle = fopen('php://memory', 'r+');

    foreach($report_data as $row)
    {
      fputcsv($handle, $row);
    }

    rewind($handle);
    $csv = stream_get_contents($handle);
    fclose($handle);

   echo $csv;
@fusillicode try this...
 
8:36 PM
tried :(
nothing
 
Bad luck, mate.
 
anyway I'm using a framework so let me check again if it gives me something
no problem @TOOTSKI u've been kind buddy :)
thank you very much :)
 
You're welcome, and make sure you've enabled error reporting.
 
@Charles The crappy hr styles are now updated.
 
8:41 PM
@Charles Only in php.net/date
DateTime::format() doesn't list any format characters.
> format — Format accepted by date().
 
hoy hoy
 
ahoy
 
what's going on?
 
I used PHP-Parser today and my life is changed for better.
 
8:55 PM
@TOOTSKI traitor!
 
Not much I guess, Levi is opening some RFC, Daniel is updating Aerys, debugger guys are talking something I can't understand...
@HamZa REGEX === FAIL
I combined, to be honest, tokens fails somewhere, regex fails too.
 
unfortunately that's true in some cases :P
 
So, took the best from both.
 
@TOOTSKI That ... is actually quite a nice solution (i.e. something that somewhat works without a lot of work)
 
8:57 PM
@ircmaxell PHPPHP is still on my bucket list :D
 
@TOOTSKI have fun with that
 
@NikiC Yes, yes, I just used the quick fix, I think it failed, actually crons failed and I got bunch of reports ^^
 
< says @TOOTSKI is a traitor, started learning C++
 
@TOOTSKI due to the weird comment hack?
 
@NikiC No, due to shebang in scripts (lots of scripts).
You say it should work, let me recheck.
 
9:00 PM
ah
well, it's supposed to work ^^
 
:D
 
no idea whether it actually does :)
 
FAILURES!
Tests: 352, Assertions: 564, Failures: 1.
:)
 
@TOOTSKI ah, wait
prettyPrint != prettyPrintFile ;)
 
:O
Yes, yes. I see what you're saying.
 
9:03 PM
The test will likely work if you rename it to .test-file or something like that :)
 
FAIL
/me closes PR in shame
 
what are you actually doing?
 
I should probably add that method to the docs
It's usually more useful than just prettyPrint, after all...
 
@ircmaxell Migrating codebase, making the code style "PSR-2", refactoring static calls (automatically), checking if namespaces are correct, file names, etc. etc.
 
@TOOTSKI hold on. refactoring static calls automatically???
can you elaborate?
 
9:06 PM
Yes, typing, sorry.
@ircmaxell MotherClass::getO('Class_Name', $param1, ...); > new Class\Name($param1);
Not sure if it's called like that, or makes sense.
getO is get new object, there's also getDBO (sort of ORM)...
 
Ah
so it's not refactoring any static call
 
Just removing that crap... it's a lot of work to do it by hand, and I'll likely miss something.
 
it's a vcery specific type of call you're refactoring
nice!
 
So the company I intern for has a product that they want to promote (it's a website), but since not many people have signed up yet on it, it decided to build another product (one that is far more likely to get users) and is thinking about integrating the site's user system with that of its previous product. Even though the new website is a whole separate product, on the back end, its integrated with product A. So if I login to product B (the new website), I'll also be connected to product A.
The company believes this might help the new website promote the older product.
The problem is the url for the new website.
 
@ircmaxell Thanks, my vocabulary not rich Sir ^^
 
9:08 PM
also do compiler-driven new Class\Name -> use Class\Name; new Class\Name auto-extraction?
@TOOTSKI I wasn't sure if you were trying to refactor all static calls, not just a specific subset of them
 
should it be {product b's name}.{product A's name}.com? or a whole separate {product B's name}.com ?
 
@ircmaxell Can you elaborate? :) Ah, I get it, I think.
 
@TOOTSKI extracting out use statements, to de-duplicate but also auto-expand conflicts
 
evenin'
@TOOTSKI have you already named that abomination ?
 
9:26 PM
hey all, I'm trying to create a function that sets `mysqli->options(..)` for each option in an array where my array looks like:

array("MYSQLI_OPT_LOCAL_INFILE" => true)

but I'm getting an error stating: `mysqli::options() expects parameter 1 to be long, string given`

how can I convert the array key in foreach($options as $KEY => $VAL) to a long?
 
array(MYSQLI_OPT_LOCAL_INFILE => true)
 
constant("MYSQLI_OPT_LOCAL_INFILE");
 
it's a built-in constant (provided you have mysqli extension installed
 
@Populus I wasn't aware I could set array key's that weren't strings...cool
 
9:45 PM
3v4l is down ?
 
@ircmaxell nope
 
@bwoebi can you execute anything?
 
@ircmaxell ah that you mean… no.
 
It just loops XHR.
 
@bwoebi so it is down ;-)
how can I compare the outputs of multiple versions now?
I want to prove this is wrong: phpsadness.com/sad/47 I know on 5.4.26 it returns false (the last example)
 
9:49 PM
I think that had been fixed a while ago?
 
@ircmaxell github.com/DatingVIP/multi I'm going to try with this. (by Joe)
 
5.5.7 returns false
 
Same for 5.5.6
 
that's earliest build I have ...
 
@TOOTSKI yeah, I built some scripts to do exactly that as well, I wanted a website I could do that on
 
@JoeWatkins can this multi be used to setup 3v4l.org like service?
I can't figure quite well from the scripts. Assuming you can.
 
building php would only be one of the tasks
the challenge is actually execution time there ...
 
figured.. do you know what 3v4l.org pulled off?
 
isn't the source for viperpad somewhere online ?
 
Ah, right, workers and stuff.
 
Yeah, @PeeHaa tried to set it up, but failed for some reason, too complicated I guess.
I'm thinking for "private" use, something less complicated could be done.
 
@JoeWatkins well, that and properly jailing to prevent it being used for things like DDOS
 
@TOOTSKI IIRC it was gearman that was giving me troubles.
 
@ircmaxell that's what I meant by execution ...
 
ah, I thought you meant like run-time...
 
10:20 PM
I need to seek professional help... eval.al
I'm a domainoholic.
> Kjo eshte nje mandat per faturen 14812 derguar me 18/04/2014
Domain Registration - eval.al - 1 Year/s (18/04/2014 - 17/04/2015) €12.99 EUR
What is this I don't even
@JoeWatkins these are the people that grow weed for us :D
 
who is ?
 
Albania(ns)
.AL
 
ah ...
 
ev.al is not allowed unfortunately...
Is Twitter riding on PHP now? :P
 
dunno, perhaps ...
brave, I heard it was written and designed by amateurs ...
 
10:27 PM
:-)
 
My buddy cloned it pretty well in 2008, even had more options and stuff.
 
yes we can all clone things ... it's marketing that makes succesful websites, not really code, all of the most popular websites in the world are not more than a months work to copy ...
doesn't matter ...
 
Yeah, but he made the most visited site in country at the time (one of three of them), and they thought twitter clone would take off, but it didn't, despite the half million of existing userbase.
 
I have literally no clue how to sell anything ... if you want some code, I'll write that ... if you want to sell something, you're on your fucking own ...
 
People didn't even know what is it i.e. was hard to understand "140 characters" thing.
 
10:31 PM
the capital they had and have at their disposal makes them not worth competing with ... unless you can remove their capital first, fuck knows how ...
well not not worth competing with but you have to be in the same league with the same kind of capital to have a chance, no matter how good the implementation of the idea ...
people are actually really impressed with really crappy stuff ...
 
i.e. you have to be in San Francisco, California :)
Yup, all true you've said...
Unfortunately, we all know that... but don't know where's the "key".
 
no idea, not much interest in knowing ... I'd be crap at selling anything, not enough kittens in sales ... I'm happy as a programmer, and always will be ...
 
@ircmaxell this Eric Wastl (phpsadness.com) character in lack of arguments, writes a bit of crap?
 
whenever I see something like this, or the pillar of shite article, or whatever it was called ... I always just think ... get a life ... omg use something else ...
 
@JoeWatkins Do your thing :) I don't care much too, and I'm not a good programmer, but get kind of depressed when I see bunch of ... make/succeed more than me (for some reason), thus the fight.
@JoeWatkins Kind of people I'm referring to actually.
I love PHP, and when you talk garbage, it's like insulting the family.
So, people just don't have any respect to other people choices.
I'm sort of hater (don't like buzz) but would never disrespect someone based on their choice of programming language.
Who cares, fuck 'em, let them drown in envy.
 
10:42 PM
fuck em all
I gotta nip out ... lata ;)
 
cloning a site isn't that hard, it is about making it scale... any good team of developers can make facebook or twitter, but getting it to scale to millions or even hundreds of thousands is the real big challenge...
 
Later :) @JoeWatkins
Slides from NomadPHP from our buddy @igorw: speakerdeck.com/igorw/abstract-machines-nomadphp
@PressingOnAlways Actually it's not that it's not, but it's not.
With (almost) unlimited resources people from this room can make *magic*.
 
11:28 PM
45
Q: Can I use vodka to clean my keyboard?

user1068446I spilled beer on my keyboard a while back, and some of the keys are sticky. It's driving me crazy, and I don't have any isopropyl. Can I use vodka to clean it?

^ crazy ideas...
 
11:40 PM
... but only do this if the keyboard is not part of your laptop! — todofixthis yesterday
The best.
 
hehe
 
11:55 PM
Yo pretty ladies around the world.
 
Yeeeees?
 

« first day (1279 days earlier)      last day (3662 days later) »