« first day (1224 days earlier)      last day (3950 days later) » 

00:00
FYI, I just committed the PHP.net logo in SVG format to the git repo.
user895378
500% zoom! all of the things!
This might be useful to some people like, I dunno, maybe @crypticツ
someone here who can suggest me a good podcast,video, presentation p
before going to sleep?
@rdlowrey I tested; it scales down to 48x24 fairly well ^^
about PHP or programming structures
00:01
@LeviMorrison what about... using <text> and including a font via CSS…? should be much cleaner than this totally non-obvious path…
user895378
@LeviMorrison I've passed the age where I would ever need to size anything down :)
user924016
@Duikboot I sometimes watchs talks from php conferences on youtube, I am sure you can find something good if you have not seem them all
user924016
last one I watched was the UKconf,
@bwoebi Two problems: 1) the font is non-free; 2) the letter-spacing is not standard.
i have seen already a lot of them :D but ill check it thx
user924016
00:03
@Duikboot try one of ircmaxell videos also
seen them all already :D
user924016
hehe
@Duikboot Have you watched the videos on unit testing?
i would like to know more about design patterns
@LeviMorrison letter-spacing… that you can configure with CSS… but that the font is non-free might be a problem… but why do we need an extra font?
user924016
00:03
@Duikboot try this one vimeo.com/43612849
user924016
it is pretty funny also
@bwoebi Ask whoever actually designed the logo. I just modernized it (aka took away the background, basically)
user924016
@LeviMorrison it looks good
isnt that the guy from the book clean code?
@bwoebi I don't think you understand; the letter-spacing isn't just adjusted, it's custom placed for each letter. >.<
user924016
00:05
yes
thx!!
@LeviMorrison <tspan> helps here…
user924016
np ;)
user895378
@LeviMorrison which is much appreciated, btw
@bwoebi ... which I believe is a feature of SVG, yes?
user924016
00:07
Well have a nice one, I am going to get some sleep, gotta be ready for a tommorow. Cya
user895378
@RonniSkansing later
@LeviMorrison yes
svg is really nice to create images.
Even hand-written ones
Well, this doesn't use tspan but it is SVG.
@LeviMorrison häh? <tspan> is a phrasing element of svg!?
just like <span> in html
user895378
<--- knows nothing about svg
00:11
@bwoebi Since the font is non-free, the font was rendered into paths.
@LeviMorrison yes, I know…
So there isn't <text> or <tspan> or anything.
yeah, fine now…but we could think about using a free font…
@DaveRandom and line of work :D
I guess I should update this icon too: php.net/images/logos/php_file_ico.png
00:16
@webarto rioting is not a profession
@DaveRandom Yes, it is. :D
I'm seriously not for violence.
That's for dumb people.
Although AK's are oiled up :D
In case shit hits the fan... like it did before.
Also got two bulletproof vests from Smurfs (UN).
smurfs?
We called them Smurfs.
Yo Big G!
00:23
What's the good word?
I'm going to go with lepidopterist
@LeviMorrison what might be useful to me?
26 mins ago, by Levi Morrison
FYI, I just committed the PHP.net logo in SVG format to the git repo.
00:26
@LeviMorrison what is the license?
Probably the PHP license; dunno.
What OS you on @Levi/@Webarto?
@Fabien I use Debian 7, Ubuntu 13.10 and Mac OS X 10.9
What you currently on? :)
@PeeHaa Only PHP related ?
01:00
tl;dw Kinect on your phone
user924016
01:56
shit, can not seem to fall sleep tonight
falling is easy, though.
and if you fall hard enough, you will sleep for a while.
user924016
=]
That feeling when you order $15 item and pay $45 shipping...
must be worth more than 15$ to you
Yes, wife will introduce sanctions if hair crimper is not received in timely manner :P
02:06
@webarto is it delivered to your door by a pretty lady wearing only a swimsuit?
Sanctions as in, no sex, or worse... beer.
disregart that ^ then
no beer? noooooooooooooo
the horror
@webarto that's nothing, I wanted to buy some shovels which were 24 and with shipping it would be 229 =o\
shipping from China is expensive if they don't sell them in the US
@crypticツ if you dig someone else's hole... it will be expensive :)))
02:09
@crypticツ Word.
Likewise, stuff from USA is expensive for EU, if even it's possible to order.
Everything is so much cheaper...
chime in you guys! github.com/Room-11/Room-11.github.io/issues/7 I'd like to either ditch the idea or push it to repo.
I bought a gun few days ago, paid around $750, and later found out it's about $300 in USA... and it's manufactured in my country.
And USA has the best salaries.
You guys are really living a life :D
@webarto guns are super cheap here. If you want to find a good deal go to armslist.com
some people "might" ship to you =oP
Not possible, ma'm, here you have to have a permit which is really hard to get. Only one gun per permit. About 500 are issued on 500.000 people.
Which is kind of retarded...
<-- will never give up her 2nd amendment rights. It depends per state on the gun laws, but if you have a CCL you can get as many guns as you want and not have to do additional checks.
02:14
I'm not pro guns or anything, but I can't figure why I can't buy one if I want to.
Merrica!
GOD BLESS USA!
Let's invade some country!
@webarto Because doing so shifts power to the people during an uprising. No government wants such a thing =oP
I really like pro gun people. It's for safety and all.
If America can have Nukes, why can't we?
But it's really funny because there's around 50.000 AK47 in the wild.
That's on 4.000.000 population.
02:16
@webarto why do you use dot (.) to separate thousands :S
Because that's non american way.
5.000.12
he's concating strings
that would be five thousand point one two
This... IS.... PHP !!! (sparta?)
02:17
@andho I think everyone should have nukes. The US has no right to tell who can and can not have them. I mean they are the ONLY country to have used it TWICE on a civilian population, hypocrisy. As long as everyone has the big guns we have MAD (mutually assured destruction) and a balance of power.
Guns are bad, m'kay...
@crypticツ besides, a small country like mine, we need to protect ourselves ;)
You better surrender...
:)
and if Laravel has statics, why can't we :S
@webarto yeah... then become part of the US, then have guns and nukes.. it's that simple
02:20
Just let Russia free you... (God forbid).
@CSᵠ you mean partner with the US and help overthrow other world governments to further financial and political agendas?
@webarto omg they beat up Pussy Riot with whips the other day.
Yeah, saw that, I have a RT.com Chrome plugin :D
@crypticツ edited,
Better Cossack than Spetsnaz :D
@webarto RT!! =oD
02:22
CNN is full of crap with this Ukraine stuff.
what do they lie most?
err.. exagerate
man, if only we can have a violent uprising in the php community
lol, why
@CSᵠ They don't lie per se, but hide and twist, i.e. "Police shooting, 25 dead", forgot to mention that half of them are police officers being shot by "peaceful protesters".
"Police, Shooting, 25, dead"
02:28
Whole thing stinks because when we overthrew government, one eight of population got out on streets (one million), and in Ukraine, about 50 thousands : 45 millions.
Clearly not vox populi, but meh.
And no one got killed in the process by the way.
smells staged, 50k is easy to move
Definitely, in my (other) country, last week about 3000 went out and burned government buildings, the next day, 200 people on protests, and no police.
We are savages...
Eastern European block...
Just look at @tereško.
:D
Liberty and just tits for all
I would happily trade places with you...
Hopefully one day I'll infiltrate visit Maldives.
@Fabien When you sent that, I was on Mac; now I am on Debian :)
@crypticツ I don't want to spout political arguments, but being the only country to have used them twice on civilians I think we may know second only to the people we used them on how powerful they are. That's good reason for controlling the nuke population, in my opinion.
02:41
yeah, life's not bad in Maldives, but being such a lazy people, we are pretty rich relatively. So basically, the people should have more money (education, living and health care).
@LeviMorrison If we think it is so bad then we should disarm as well as getting everyone else to do the same, but the US still maintains the second largest nuclear stockpile in the world of ~7,700. Lead by example I say.
@andho Enjoy your spawn point :)
hehe :)
@crypticツ Agreed, but we have at least reduced them in numbers. However, I suspect that while we have reduced in number we have not reduced in overall power.
Not looking to start arguments; it was mostly some food for thought.
If shit hits the fan, it's the end for all, so. Really no need for nukes.
02:52
@LeviMorrison I suspect the same thing. =o)
Screw that, how can we make more $ =]
@crypticツ What operating systems do you use?
@LeviMorrison Xubuntu =oD
@crypticツ Why X instead of vanilla?
(Or K)
@LeviMorrison I like Xfce, it the middle ground for me between ui and low resource use.
02:59
Interesting.
Many reports indicate that "low resource" is no longer true (as of several years going now).
@LeviMorrison once I am done configuring a fresh install of Xubuntu with all my needed stuff running and all I use around 225MB on boot
@crypticツ wow, but I will miss the unity shortcuts if I move
only reason I use it is for the shortcuts
I like how Mac OS X hogs all resources for the UI so that user never feels it's slow with super smooth animations while waiting a few minutes to start a program
@andho I don't have these issues on Mac OS X.
Just my personal experience; I doubt I am a typical Mac user.
Another day, another pr :)
OS X is pretty good. I just didn't feel right in it. Something personal
03:05
I spend nearly 100% of my time in OS X inside of Chrome + terminals + chat apps.
@andho Yea, I hardly have these problems with OS X
Of course my employer was gracious enough to hook me up with a rather beastly laptop
Mine is a stock bottom tier 13" MacBook Pro w/Retina circa 2012.
@LeviMorrison I asked for a stock bottom tier 13" MacBook Pro and they wound up getting me the high tier 13" MacBook Pro w/ Retina
@cspray I can't plugin my head set with separate mic jack into my MacBookPro mid 2012. But it has a CD-ROM.
but people who program on Mac make really good software. Or am I kidding myself?
like the markdown guy
I'd like to think I write good software and I program on a Mac ^^
But I also program on various flavors of Linux.
I need to try BSD sometime though.
03:08
@LeviMorrison But is it because you're on a Mac that you write good software? ;)
@cspray Obviously not ^^ But text is highly readable on my Retina screen and that may help a little bit.
Don't get me wrong, I like my Mac but I feel that a good programmer would be able to write good software on just about any OS. At least the *nix flavors ;)
@LeviMorrison Yea, that actually has been something I've noticed as well. It actually does help with my horrendous eye sight
@crypticツ Out of curiousity I just checked my current RAM usage: ~3G
Vanilla Debian + Gnome, with some shells open with Chrome and a server or two.
@LeviMorrison =oO at that usage I would never have enough to run Windows on Vbox to use Photoshop
I need at least 2-2.5 free of my 4GB total
I have 16G of RAM; not worried about 3G ^^
03:11
This is my last laptop, after it dies I'll be leaving the internet world, but that's a few years maybe =oP
@crypticツ Leaving the Internet?! Blasphemy!
To be honest though, I wonder how much of that 3G is cache that wouldn't be used if I didn't have so much available.
I'm actually using 5G right now, but I have an absolute ton of stuff open and running
Chrome, my shells and mysqld are the biggest memory culprits.
But as you mentioned with 16G I'm not too worried about it
03:14
Plus I have @rdlowrey logged in with at least 2 shells. Curse him, chewing up all my resources! shakes fist
:/ I need RAM.
@andho I have 4G on my personal laptop and after using my work computer it feels soooo sloooow
yes, and I use Firefox (ducks)
@andho meh, people who fire shots because you use <insert technology here> aren't worth paying attention to anyway
Religious wars over tech choices are pretty asinine in-my-not-so-humble-opinion
Unless you use IE
Is Factory the right term for something like this?
03:24
Then I don't know what the hell you're doing with your life
@cspray ;)
IE = Internet Evangelist ... right?
@Jack doesn't look like a factory
Yeah
I was thinking of maybe calling it a Provider instead.
Or Container even.
I question this exception: gist.github.com/datibbaw/…
03:27
The type of the exception?
Or its existence?
Both, but I'm more likely to persuade you to change the first, yes?
Can't be both lol
If it should exist, it certainly shouldn't be an InvalidArgumentException.
If it should exist, it certainly shouldn't be an InvalidArgumentException.
So why shouldn't it exist / be thrown?
@LeviMorrison Why not?
03:29
Read the description in the manual:
> Exception thrown if an argument is not of the expected type.
Yes, I agree with the type change.
I'm not going to go into SPL Exceptions being horrible (I've done that enough)
Touche
But yeah, definitely not InvalidArgumentException.
I'm more interested in the reasoning behind not having the exception at all.
03:31
I know little about context and usage, but in general if you have something that you query for versions it is likely that it will not already have the version, hence the query in the first place.
Right.
If you are going to stick with SPL-provided Exceptions, I'd say this case is a good candidate for RuntimeException.
I was thinking of adding a custom one based on that :)
I think exceptions should be specific yet generic at the same time.
So if you add a custom one, don't make: ValidatorBackendProviderException
I was thinking of UnsupportedBackendException actually. Or something along those lines.
03:37
If you have several types of providers that you choose to throw Exceptions from, try to make some commonalities.
For instance, in Ardent I have LookupException which would work nicely here.
Sounds good ... what's its parent class?
\Exception (I avoid touching SPL Exceptions in Ardent; why would I make an SPL replacement/alternative depend on the thing it's replacing?)
Ah yes, that wouldn't make sense.
Okay, so backtracking a bit, I haven't heard a good reason to actually do away with the exception in the first place :)
It seems a bit control-flow ish to me.
Isn't it likely that it won't exist?
It's likely that it will exist.
03:41
Quantified, how likely?
Extremely.
How likely is it to not exist?
Shouldn't happen, technically .. but the version actually comes from a request header value.
And what will you do if you don't have that version?
The version field is used to determine how a request body and its headers are signed, using which algorithm, key, etc.
A version that doesn't exist should stop the app.
And response will be a 400 Bad Request.
03:44
I would say that I am 60/40 leaning to getting rid of the exception.
I can't control fatal errors, though.
I could return null of course.
No, I wouldn't do that.
Is there another option?
There is more than one other option ^^
Okay, Null Object is another option.
03:46
I actually hate that option, for reference.
haha, it's one of the patterns lol
But yes, it is an option.
Given the interface that a backend should implement (i.e. a single validateRequest() function) ... it's viable.
Then maybe that's a good option in this case.
Yeah .. so I'm curious now, what other options did you have in mind? :)
03:49
The other big option is to return meta-data with the result.
return [SUCCESS, Backend]
return [FAILURE]
This is only slightly better than returning null but I would say that it is better.
I would return [FAILURE, null] to make it easier on the caller, actually.
But yeah, it's a way I had not thought of.
Sure, that would be fine
If you think about it, this is sort of what HTTP does.
Yeah, it always returns a body and headers .. but the status code determines what it means.
As I get more experienced in programming, the thought occurs to me more and more often that we do not think about error conditions enough.
I think you can write a whole book on handling errors :)
03:53
The Space Program engineers are far more qualified to write such a book ^^
Anyway, an exception might be okay but I'm leaning a bit towards saying it's not okay in this instance.
I would entertain a few other options, even implement them, then think about the consequences and then pick one.
(Unless you are time constrained, then just change the Exception type to RuntimeException)
I've decided to go for Null Object for now :)
But thanks for the critique heh
I'm quite certain that our first versions of most things are bad, and our second versions are probably only less bad.
But that might just be good enough.
Funny enough, that assertion never seems to fail.
By the way, I would change !isset($this->backends[$version]) to empty($this->backends[$version])
Just personal preference.
Because of the negative condition? :)
Or rather the "two components"
04:02
I like empty better than !isset and in most cases the semantics are equivalent.
Maybe I'm weird though, because I'd also like the unless conditional.
If only empty('0') was false.
Ah, a Perlism hehe
Sometimes it's just more natural to express it as an unless. Sometimes if would be better.
I have a feeling that it would get voted down so I've never proposed it ^^
Surely it must be natural for developers to avoid, when possible, the use of ! :)
Or, so I thought ... one of my juniors would happily write if (!$listNotEmpty) { ... }
Or something along those lines .. a variable with a negation in the name makes my eyes twitch.
Was looking at the SO 2013 Infograph and I've started wondering whether it be viable to a) work remotely full time from b) a coffee shop :)
I know several places I could work for that do full-time remote.
One day I'd like to do that (when I move out into the less populated regions of the county).
04:21
In other words, when you have a faster internet connection at home? :)
Yay, I know the Z Perm now =D
user895378
@LeviMorrison sorry!
04:50
meowning :)
05:09
hello kitty cat :)
(purr)
:)
*hisses and get's into fight*
=oP
haha..
grabs some popcorn
hey guys :) I'm currently making a game of sorts, but it spikes on some browsers, can anyone test this out for me? 24.79.127.251/bypass.html
05:23
spikes? as in how you would spike a girl's drink?
I mean the framerate jitters, it's not consistent -- top left corner
05:35
hello friends is there any wordpress developer?
good morning
05:50
hello friends can anyone tell me how can I send a mail( daily at some fixed time )to all my website users to provide them with a summary of all the activities on the site. I am a php developer
@Bishal google "cron"
@Jack thanks for your efforts. Even if it won't work on large exp's I've forgotten about number_format() - thus, your way to do that is short and clean
Thanks :)
It went from simple, to more and more complex until finally .. simple again :)
however, I'll use bcpow and bcmul (:
@Gordon thanks, the article is helpful
05:58
Yeah, my answer doesn't depend on bcmath at all :)
@Jack well, it isn't - but fails on too small floats. I can live without 1E+500 - but up to 1E-60 is needed
You should have added that to the question, though :)
@Jack I did (:
Eh?
It wasn't there in the beginning heh
@Jack may be not the best way (see Use-case )
06:00
Didn't reread the question when you edited it 15hrs ago.
in any case, your answer is thing that I've search for - i.e. some "close to native" way. If it will not work with 1E-60 it isn't your fault because such numerics are outside "native" float bounds - thus can't be handled with "native" tools by definition
@Jack that's how it works generally
Yeah :)
It dawned upon me when I decided to look into the source of floatval().
And that led me to zend_strtod().
Which is a behemoth of a function, btw.
But it does exactly what was needed (well, almost).
It still cuts off at 1e-4 or sth.
... cleaning up the comment thread now :) /cc @AlmaDo
^ /done
=D
Does any of you guys do Rubik's cubing? :)
Hmm, I wonder if Gautum has voting friends ... his answers aren't that great and yet get upvoted at least once.
06:19
I suck at rubik's cube, couldn't get the last tile even after following a pattern :S
I can solve a cube in average time of 1m40s now ... miles away from even a lousy speed cuber I'm afraid :)
@Jack i upvoted it
btw.. dealing with bcmath is also about scale search.. by all the gods - why even bcmath is about specifying precision? why can't we have a black box which will resolve that for us? ..
@Gordon hehe
so here we are
function parseFloat($string, $maxbase=1024)
{
   if($e = stripos($string, 'e'))
   {
      return rtrim(bcmul(substr($string, 0, $e), bcpow('10', substr($string, $e+1), $maxbase), $maxbase), '0');
   }
   return $string;
}
f*king scale - even there...
06:28
w00t
@Jack you can't use bcmul or bcpow if you wont specify "scale" ..
how about that
so either calculate it (no thank you) or set it to some max and do rtrim of trailing zeros
but it's "WTF, PHP??"
Which is why floatval() was such a godsend.
yeah..
06:30
well, now you know.
Still, this should really be available somewhere we can't see it .. it should just work.
I wonder why even in bcmath that scale is needed. Why? Really. That lib is intended to be "smart" for dealing with floats as strings. So by definition it must resolve that
@Gordon I see you like cleaning up your own comment threads :)
/me is off to phpuk
have phpun
@Jack :)
@JoeWatkins enjoy
06:34
I have my own long numerics handling class, but it's only for integers :(
@Gordon Wow, I just saw the voting results for your rfc ... pretty polarized =/
@AlmaDo Just like GMP :)
Though, gmp can actually handle floating points too; the library that is.
yeah. but in that times I was learning and dealing with low-level algorithms
yohgaki needs controlling
@Jack my impression was that the patch simply didnt cut it and I tend to agree with that. It might have gotten more support if the vote had included more than just moving $this->foo to the signature.
@JoeWatkins idea diarrhoea ? :)
06:36
diarrhoea for sure ...
@Gordon Are you thinking about making it more comprehensive?
@Jack no. one reason being that internals didnt really discuss the other features when I put the RFC forth initially, another reason being that it collides with the HHVM proposal. So I leave it to the smarter folks at FB to figure out how to provide that feature in a useful way.
I wouldn't bank on them being smarter :)
Niki wrote that patch right ??
:)
I liked that rfc ...
Fair enough I guess ... I don't really like having two "official" versions of php, though.
06:56
^ not rebecca :p
That's what I would say if it actually was Rebecca heh
no it isn't :p

« first day (1224 days earlier)      last day (3950 days later) »