« first day (1677 days earlier)      last day (3271 days later) » 

8:05 PM
@bwoebi do i need a php debug build to generate an apache crash backtrace?
 
@Worf mourns the loss of mod_top
Gosh I miss that tool
Remi does have the debuginfo repo tho
baseurl=http://rpms.famillecollet.com/enterprise/$releasever/debug-remi/$basear‌​ch/
then install php-debuginfo
 
maybe it's easier for @kelunik to generate the backtrace if he's using linux
 
> The unit files have no [Install] section.
yay systemd \o/
 
8:17 PM
@Worf @bwoebi do you have time for that?
 
@PeeHaa Debian 8. They're in your box, making you use systemd
 
hehehe this is golden
 
@PeeHaa I see your puppet and raise you a Barbie
 
8:23 PM
hehehe
 
@PeeHaa you can add support for ipv6 without changing the interface, am i right?
 
Yes
 
8:43 PM
Hi Folks, I have a multidimensional array in wich I have to find the position of an int, I tried to use a fonction that can treat my structure and it work well, the only thing I would like to be able to specify wich column it have to search, right now it throw the first instance found on any column and that's a problem because the whole array are int...

If you want to test / tweak it and see how it work right now :

http://sandbox.onlinephpfunctions.com/code/4841e035cc4dbdaaed7ff6c24508da90adb58b52
 
@JonathanLafleur Will it always be the same depth?
 
@PeeHaa For reusability it should be really cool that depth is not a factor, but let say yes for the actual situation
 
@Worf yes, you do
@kelunik currently investigating some issue with zend_vm_stack…
 
Because when having n depth makes it a bit harder because the same key can be used on multiple levels
But if it is just those levels you could just foreach the thing
 
yeah you're true, that's why I will say always the same depth, anyway right now it's not supposed to change i'll modify the code if needed if I can find how to deal with search by key
 
8:56 PM
foreach through it and check $item[$key] === $valueYouWantToFind
 
I'm trying something with SPL right now ( php.net/manual/en/class.arrayiterator.php ) I think it work better than my first solution :P
 
Or just use foreach :P
ping @DaveRandom
 
@bwoebi any chance to get this supported
$x = $x ?: throw new Exception;
$x = $x ?? throw new Exception;
$x = $x ? 10 : throw new Exception;
i know "ternary stuff" is used for assignment but shortcuts are cool :P
 
@PeeHaa or just learn something new and use it ;D
 
@JonathanLafleur Even better! :)
 
9:03 PM
Seriously it work really well
 
@Worf nah :-P
 
oh wait @kelunik can also be useful
 
@PeeHaa yeah :) I just found someone on stack telling to use it for a similar usage, then I tried that's how I learn the most
 
It's imo the best way to learn
 
@PeeHaa hm?
 
9:05 PM
@PeeHaa the first fonction was working badly since this morning, i've parse 15 csv file trying to match data and export them in my database for a total of 2500 entry that I'll need to remove tomorow morning and re-enter ....
 
@bwoebi booooo y u so negative :D what about then

$x || throw new Exception;
isset($x) || throw new Exception;
 
I wanna die -.- lolll
 
@Worf same here
 
@kelunik Do you have an nginx ssl config for me pretty please :)
 
boooooo @bwoebi :D
 
9:06 PM
@JonathanLafleur At least it's csv and not some custom format ;)
 
@bwoebi well... throw could as an expression return the thrown exception object... just for the sake
:-P
 
tnx
 
try {
    $e1 = throw new Exception();
} catch (Exception $e2) {
    $e1 === $e2;
}
 
Didn't even saw it also added that this afternoon :P
 
9:07 PM
@PeeHaa i'll have to format them before client has sent them in shitty format without bom but with special char AND he havn't followed the template so I had to edit all the csv... I have like 5 php cli script to use to convert them in the right way
 
@Worf How about no?
 
@DanLugg you're trolling me, right? :-D
 
this one was the first transformation and it failled :P
 
@NikiC <3
 
@bwoebi 50/50 ;-)
 
9:08 PM
so i'll have to pass trough every other transformation LOL
 
@JonathanLafleur People actually want a BOM?
 
I wouldn't mind $x == $y or throw new Exception()
 
^
 
PeeHaa if not Excel can't read it well...
at least in mac
 
Ah yeah. MS...
 
9:09 PM
LOL
 
It's nostalgic to OR DIE; // MOTHERFUCKER and could actually yield some useful brevity.
 
Anyway, my workday is done, thank you dude have a nice one
 
np. later
 
/me **polyfills**
function catapult(Exception $e){ throw $e; }
isset($x) || catapult(new Exception);
 
^^ Breaks the trace
Oh wait
No
 
9:12 PM
nope. trace is generated on "new" not on "throw"
 
Right, we just went over this, lol
 
:P
/me adds to polyfills.php
 
Well, that itself is a problem.
$x > 1 or catapult(new Exception());
$x > 2 or catapult(new Exception());
$x > 3 or catapult(new Exception());
$x > 4 or catapult(new Exception());
$x > 5 or catapult(new Exception());
2
^^ All of those exceptions are created, and thus every one gets a trace generated.
That's probably costly. Bench first, complain later. But probably.
 
nope if first expression is evaluated to true the next one doesn't get evaluated @DanLugg
 
@Worf No... just... no.
 
9:15 PM
I know short circuit, but I thought there were some edge cases for things like ^^ that
In PHP at least.
 
@Trowski
11 mins ago, by Worf
@bwoebi booooo y u so negative :D what about then

$x || throw new Exception;
isset($x) || throw new Exception;
 
Good. I was worried for a second :)
 
@Worf I'm going to introduce this to every codebase I work on
 
@FlorianMargaine +1
 
I dunno, I'm still 50/50 on it. If we had $x or throw new Exception() I'd use it.
 
9:17 PM
@DanLugg yes. i don't know the internals but it does no harm imho, it's like exit()
 
Anyway gerd nert.
 
how can i install pthread in PHP Xampp
i tried i am getting error not a valied win32 application
 
Anonymous
9:48 PM
is there a way to get a php error (stderr) before it reaches the log file?
 
Anonymous
nah, that's just a run time error or web based ... or whatever it's called. I need moar, like knowing if php-fpm has some internal errors not related to the interpreter...
 
good morning
 
@Sara I can't remember; were you working on some kind of improved extension API that works for both HHVM and Zend Engine?
 
Mogguh @Rican7
 
does anyone know of any way in PHP to represent a positive or negative infinity with DateTime?
 
10:02 PM
@Rican7 There really ought not to be.
$date = new DateTime('infinity');
$date->getDayOfWeek(); //outputs Monday?
 
@TobiasGies It isn't actually username/password. It's their account API IDs, which are sort of like username/passwords. I need the IDs in order to communicate with their PayPal account.
 
haha, yea @Danack
I guess it wouldn't work well with the interface
I would like a way to have a method accept a DateTime or INF (-INF) in a type-safe manner
I almost need a Haskell Maybe like structure
damn
(just instead of representing a null/empty value, instead to represent a theoretically infinite min/max)
 
Warning: Uncaught var_export does not handle circular references
oO
That text is weird
 
haha, Uncaught
:P
#stackchat
PHP 7 needs some polish around the error/exception changeover
but its happening
... slowly
 
stop spamming stars :x
6
 
10:16 PM
my god, who just did that?
 
There's no newcomer in this room… maybe @Andrea [random name calling… yay!]
 
holyfuck
 
i know i'm the suspect number one, but i didn't do that xD @PeeHaa
 
That's exactly what I would say when I would have done it!
 
bugs.php.net/bugs-generating-backtrace-win32.php @bwoebi is it me or this page is a bit outdated?
 
Anonymous
10:21 PM
32 mins ago, by samaYo
is there a way to get a php error (stderr) before it reaches the log file?
 
@PeeHaa lol
 
Anonymous
30 mins ago, by samaYo
nah, that's just a run time error or web based ... or whatever it's called. I need moar, like knowing if php-fpm has some internal errors not related to the interpreter...
 
I think by definition they would be outside of the interpreter - so there would be no way to intercept them.
 
\o/ finally my server is back up pieterhordijk.com. Now I can finally set up all my sites
 
10:26 PM
@Worf Windows XP interface elements… so maybe.
 
@PeeHaa Automate all the deployments?
 
Anonymous
@PeeHaa is the theme free?
 
@Danack That is actually a good idea yeah. The only thing I "forgot" to back up was the databases so sadly I see a manual task for that. But the sites should be doable
 
Anonymous
thanks :)
 
np
 
Anonymous
10:30 PM
I would like share my site here, but I need it to stay online :)
 
@samaYo Also if you are looking to quickly glue together a site for a demo or something like that I highly recommend bootswatch.com
I made this with it in a couple of minutes (exluding content)
 
Anonymous
bootswatch.com seems interesting. I will check the source when I'm not on mobile, to see if it's bloat free.
 
Anonymous
I bought 2 bootstrap themes from themeforest ... didn't use either one, because too many css/js libraries
 
@samaYo It's bloat free (as far as that goes with bootstrap)
You basically just include the theme css file and that's it.
 
@LeviMorrison I was, but I got distracted by other things. Were you interested in working on such an endeavor?
 
10:37 PM
Potentially. I've been thinking about longer goals for PHP that I'd like to see and a better extension API is one of them.
Even the engine itself would likely benefit from some things, such as better API's for calling user functions.
Right now it's a pain and it's full of duplication.
@Sara What kind of progress did you make? Like, what were you working on before being distracted?
 
@LeviMorrison I had basic extension, constants, and functions working on the HHVM side, but I hadn't written the PHP side plumbing yet (it'll be simple though). Classes were designed out, but not implemented.
And yeah, stuff like dispatching to other function implementations is part of that.
 
@Sara To clarify; there would be some API call such as declare_constant()?
Takes a fully qualified name and value or something?
 
Yep
I took from HHVM in some places, from PHP in others, and a mashup in some areas.
I should write up my design notes at some point
 
This is one reason I wish we had longer for PHP 7.0.
PHP doesn't maintain ABI between minors but I also know we try to not break it too much.
Stuff like this is certainly more feasible in major versions.
@Sara Something like this?
PHP_RESULT php_declare_constant(php_string fully_qualified_name, php_value value);
Probably with more * and const?
 
10:52 PM
s/PHP/zend/?
 
I meant PHP; if it's intended to run across multiple engine's they aren't zend types.
 
oh, okay
Also, that'd be adding things to ABI, which theoretically is possible in micros too.
 
I assume module_number is supposed to be like the extension declaring the constant?
 
11:10 PM
@PeeHaa sup dawg
 
Welp, we just let go our frontend dev.
The one that thought there was nothing in SASS or LESS that couldnt' be done via PHP-derived CSS.
 
They refused to try SASS/LESS or just couldn't handle it?
 
@Charles yeah… you can do more with PHP-derived CSS :-P
 
He didn't understand the use case and remained intentionally ignorant of their massive featureset and benefit until pushed.
 
sometimes I prefer to just get what I type and not: I type -> here be dragons -> result...
 
11:22 PM
@Charles Do I win a prize:
May 1 at 20:32, by Danack
@Charles That is....a problem. People not knowing stuff is a solvable problem. People not wanting to learn new things, is possibly not a solvable problem.
May 1 at 20:33, by Danack
For the person at least. It's always possible to find someone else willing to learn...
 
@Danack Yup, you win the "first time we've had to let a developer go for performance problems" award.
 
\o/
 
Sooo, anyone in the Seattle area want to come work for me? Looking for a frontend focused dev. Design skills would be nice, but aren't required. SEO knowledge is needed, but addtl training will be provided.
We're working with a great consultancy for most of that work.
 
A lot of people just run away here when they smell some frontend work ^^
 
A lot of people just run away when they smell my frontend work...
 
11:26 PM
HAHAHA
 
Yeah, pretty much the same for our existing team.
My design skills halted in the mid 2000s.
If you want a simple, functional, boxy, table-based application, I'm totally your guy.
2
 
No love for flex?
 
@Charles Seriously though - it's really hard to get people to change their basic attitude to life. If someone is not open to trying new ways of doing things, even when they're being told that it's pretty much required to keep their job, that's a fundamental problem that can't be solved by the employer (other than firing the person).
 
Well, there were a whoooole lot of other problems with him.
My only interaction with him was via chat, as I hadn't been able to get into the office yet.
He stepped on a lot of toes.
I knew he would, but I had no idea the depth of the problem until I was told.
He'd been a temp/contractor so long that he seemed unable to actually come up with non-hack, non-workaround, long-lasting solutions.
We were trying to beat that out of him, but it wasn't working.
His pre-interview code sample was also a huge red flag, but we chose to ignore it.
I wish him well, but he ended up being a bad fit.
 
....yeah, don't do that, unless there's decent reason why they can't show a decent example.
 
11:32 PM
We've only had one other bad fit, and he quit before anything interesting could happen.
Well, we didn't hire this role with the intent of doing majority coding. Unfortunately the role changed a bit due to things like Google's mobileopocolypse and whatnot.
We had to push a mobile-friendly site out the door pronto, and ... well, I think it was a huge disaster.
Other people disagree, but they don't have to deal with this 10+ year old codebase daily.
For now our contract SEO company will be helping there, and we're gonna spend some good quality time with the new layout and CSS and make it maintainable.
Probably going to get serious about a new frontend dev hire once HR and management agree.
 
Am I the only one with chills every time a "Micro optimization" commit appears?
 
Only if it increases complexity.
 
11:56 PM
@marcio haha, no, you're not the only one :-D
 

« first day (1677 days earlier)      last day (3271 days later) »