« first day (1428 days earlier)      last day (3538 days later) » 

12:13 AM
An SSL/TLS cert is not dependent on the port right? Just the hostname?
So I can use same cert for example.com:443 and example.com:4862
 
probably don't want to use it on port 80, but yes, theoretically
 
oops yeah
 
with SNI you don't even need a unique IP address per host anymore
if you're buying a new cert, make sure it uses sha2, not sha1
 
12:56 AM
Was a long, but very productive day for me.
 
@LeviMorrison long produ$ctive day here as well
 
@Leigh sha2 as in sha256?
morning 11'ers
 
1:12 AM
@Ja͢ck yea I couldn't be bothered to research whether 384 or 512 was generally available, so I went for generic overarching
 
sha2k
First travis build, pass! yeah! uhhh!
 
2:02 AM
github.com/php/php-src/pull/818 adds M_TAU constant for τ (2π)
 
2:56 AM
\o/
 
I think this is a good idea
We can't add M_2_PI because we already have that (2/pi)
and M_2PI would be confusing
 
Isn't that M_PI_2?
afaict M_2_PI is not taken.
 
@Ja͢ck No, that's pi/2
Both are taken
 
ohhh
gotcha
anyway, M_TAU seems like no-brainer material :)
 
Well, tau isn't mainstream yet :p
 
3:00 AM
Can we somehow add the Tau Song as well?
@AndreaFaulds In that case, PHP will become the pioneer in mathematics lol
 
@Ja͢ck :D
There's a PEP to add math.tau to Python, sadly it's "Deferred" atm
...what if we did internal autoloading?
Like, not load extensions until they're needed
 
the good thing about loading all things at startup is that if something crashes it will likely only happen at the start.
at least, crash related to the startup of an extension
 
True
There's no real point, now that I think of it
I'd like to allow us to write core extensions in PHP though
Why should all extensions be in C?
 
inorite ... checked out my ereg extension? :D
 
cool :)
 
i'm planning on adding more deprecated stuff in there to tie projects over
 
gotta sleep, night
 
nite
 
@AndreaFaulds night
 
3:23 AM
Odd, the manual mentions that PCRE supports non-greedy matching as opposed to ereg ... but the main chapter says it implements POSIX Extended ... =S
 
 
2 hours later…
5:08 AM
@AndreaFaulds I'd like to see a way to use some tar format like phar as extensions.
 
5:39 AM
What is the number of day of today?
 
6:03 AM
Morning
 
hallo
 
'nin
got me some github swag ...
(I'll soon be as cool as that guy)
 
reach for those stars
 
Sometimes coding requires working in cold environments. It's often hard to find objects which will help combat that pesky chill. Sure, you could wear fingerless gloves or a sweatervest, but why settle for garments that make you look like you can't afford fingers or sleeves. If only someone would create a body covering with a "hood" type of device to cover your head…

Fortunately, here at GitHub, we're idea-men (and women). We decided to put our heads together to come up with a solution. Once we all got over the pain that comes from a sudden collision of 180+ heads at once, we realized we sh
cracking sense of humour ...
 
6:34 AM
1 message moved to Orphan GIFs
 
6:48 AM
hi, anybody is there to help me please
 
@Jack did you check out scan-build ?
(seven hundreds and something errors in master, four hundred and something in 5.5, worth checking out, but going out today ...)
 
if i use virtual and overwrite keywords in polymorphism which function php will execute base function or child function
 
@Fairoz , php has no virtual and overwrite
 
7:22 AM
@JoeWatkins scan-build?
ooh, many errors ... challenge accepted :D
 
php.net/manual/en/oauthprovider.generatetoken.php is this function better or should I stick with the openssl_random_pseudo_bytes method?
 
@AwalGarg It's better to stick with functions that will be readily available; not everybody will have builds that have pecl/oauth
iirc pecl/oauth uses /dev/(u)random or the Windows security service.
 
Yeah, or use RandomLib :)
 
8:29 AM
@sectus will PHP support polymorphism
 
php does support porlymorphism
but it is not c#
 
@tereško thanks
 
oh dear .. a 3.3GB repository .. this will take some time to clone =/
 
8:56 AM
@tereško --depth 0? :)
 
9:21 AM
now I have to figure out , how to purge entire directory for the repo's history
 
9:49 AM
hmm ... looks like it's working
 
10:20 AM
@Ja͢ck ok thanks :) I would use either ircmaxell's library (probably this) or stick with openssl way.
@Patrick that is a very nice lib, thanks for linking that :)
 
friends, is there any limit for recursive includes of files in php? (i know this is a dumb question) but just now my boss is told me to find out the limit?
 
Morning
 
@FerozAkbar include __FILE__; PHP Fatal error: Maximum function nesting level of '100' reached, aborting!
 
yeah i saw that , but that is for nested functions level right ?? i am asking about the limit of recursive includes ?? :(
 
10:36 AM
include __FILE__; is a recursive include
 
can you explain it bro
 
10:57 AM
Wish there was some sort of (non-judgemental) breakfast delivery service.
 
@Fabien There is some nice slogan in that :P
A delivery service for pigs like you
Imma be rich!
:P
 
@FerozAkbar tell him: 4
if you have such a codebase, that you are worried about hitting the depth limit for includes, you either need completely rethink the development practices in the company .. or leave as fast as you can
@FerozAkbar .. I have worked in such environment. It extremely corrosive.
you should change that environment one way or another
 
@PeeHaa lol
 
;-)
 
11:19 AM
well ... today I am at work, because I am fed up with working in a 20th century establishment
 
@tereško :(
What are you fixing?
 
git infrastructure
 
that include cleaning shit out of repositories and setting up gitlab
 
^ spam
Is that even doable in a single day?
 
11:21 AM
setting up gitlab - yes, easily
cleaning the crap - not sure actually
there is one major repo that I have to fix (the one that's 3.3GB .. that's ~ 7GB when you actually clone it)
 
:O
 
yeah
some shittard decide that it would be an awesome idea to commit all the uploaded images from the production site in, when the project was moved to git
 
Damn. Sounds like buriniting the entire thing would be the easiest :(
 
yes, but I would loose the commit history
 
yeah :(
 
11:26 AM
I do not intend to leave anyone off the hook for this fuckup
 
I can imagine
 
-_-
 
hello guys.
I'm facing very annoying problem with my code, every thing work fine but the javascript is not loading in the safari browser.
can any one give me suggestion please itradesecurity.com
all javascript are external javascript
 
What's the PHP question?
 
well lol its coded in php
its like crossplat form issue.
 
@FaizRasool Here's a suggestion - don't use a massive run-on sentence on the front page of your website.
@rdlowrey I know you want to push ahead and get the release of Artax done - and so I realise that this may have to wait, but I think that the Response class should have an interface defined for it. Basically I'm just implementing a cache for my GithubArtaxService, and as the thing that processes a response is type-hinted for a Response object, it looks like I'm going to have to either extend the Response class or manually inject the data into it - either way is not great.
 
@Danack This is what pull requests are for? :D
Not sure what I feel like working on today, I kind of crypto'd myself out lately
 
@Leigh Mr Lowrey codes faster than I do, and he's already rejected the idea once, so it needs discussing first.
 
12:17 PM
Can anyone know how must time it take to change php version on server. I have change php version on server and added mysqli but it is not changing it is still showing me 5.4.
 
It's instant :|
 
I'd go with, not enough information
 
Okay I will check it , am changing it but its not changing in phpinfo!
 
@TheRealHamza Have you restarted your webserver?
 
@Danack no!
 
12:20 PM
Well try doing that.
 
or fpm, if you're using that
 
@Danack okay!
 
FOR FUCK SAKE
so ... I am still cleaning up that 3GB repo and discovered this nice artifact
 
drum roll
 
Just look up some cat gifs to turn that frown upside down.
 
12:25 PM
as I said some hours before, someone in the initial commit dumped all of the content from the production version (including user-uploaded images) in the git
 
If you want to 100% identify IE you would have to go to the user's home and check what they are using. — PeeHaa 55 mins ago
@PeeHaa LOL
 
but, he did it twice ... because he was testing how git does branching (it says so in the commit message)
 
@tereško :P
 
Finally getting round to watching Steins;Gate
 
they say it is slow to start and the source material in few moments starts showing through
 
12:32 PM
Aye, episode 3 atm
 
Native speakers: I need a more catchy phrase than "to think outside the box". In german, we say "look beyond the edge of our plate". Is there sth like this in english?
 
@Gordon does it have to be a well known phrase, or would you just like something that means the same thing?
 
I'd prefer a standing phrase
 
outside the box is pretty much the goto phrase :/
 
would "peek over the fence" work?
 
12:41 PM
nope
 
exterior paradigm cognition!
Not a real phrase :P
 
@Gordon trying to translate that back to German… what's the exact German expression?
 
what I want to express is that industry A has the same problems than industry B, so it makes sense to see how B solves those problems.
 
sounds more like a synergy than box-constrained thinking
 
Get thee to english.stackexchange.com !
 
12:43 PM
I'm not so sure there is a phrase for it, but "outside the box" isn't it.
outside the box refers more to coming up with a solution that isn't normal.
 
You could say that industry B is able to "hit the ground running" when it comes to solving these problems
but that would be more appropriate if you just had industry B solving your problems for you
I guess you want to steal their ideas and processes for your own
 
@Gordon I think maybe 'we need to draw parallels from other industries' ? But it's not particularly pithy.
 
thanks
 
Yeah that's pretty close
 
I'll just write "have a look"
 
12:46 PM
lol :)
 
I want to say "Stand on the shoulders" but not for giants. It would also suggest improving on the found solutions.
 
this is what I came up with:
>
While developers do not fight wars, the traits of their work environment
are similar to those of a battlefield: rapid change and constant uncertainty
require us to be highly agile and flexible. To achieve project success,
we need to cooperate, lead and communicate efficiently with the team and
other business units to make timely and right decisions. The US Marine
Corps has a long tradition at solving these problems. Their leadership
strategies scale to 190000 soldiers. Consequently, it makes sense to have a
 
Or not reinventing the wheel
 
@Gordon btw you very well may have read this book already but basically:
 
@Gordon my girlfriend says the phrase you want is "industriespionage" :D
 
12:49 PM
Is the US military's main fighting doctrine, and it's basically 'agile'.
 
@Danack not that one but yes, I am aware of it and the OODA loop is part of the talk
 
LOL OOAD
That's my previous company!
 
@Danack sorry, its da not ad. habit since i do ooad ;)
@Leigh hehe :)
@Danack i wrote my thesis on that subject, comparing it with agile software development. the talk will be present the findings
 
Cool.
 
user1994804
 
12:52 PM
You going to post it somewhere?
 
@Gordon ok, reading that paragraph, Danacks "draw parallels from" fits pretty well
 
strategies could be changeable with models for a broader spectrum of what you may be stating
 
@Danack my thesis? no. its in german anyway
 
" it makes sense draw parallels from these strategies and apply them to our craft."
 
@Leigh sounds good. thanks.
 
user1994804
12:53 PM
Ok, Had my browser tabs jumbled... Back to stackoverflow.com/questions/5906686/…
 
user1994804
Is $future_date = new DateTime('2011-05-11 12:00:00');
 
user1994804
supossed to be
 
you might be able to get a "reap the benefits" in there too :) - meaning "harvesting the fruits" of someone elses experiences
 
user1994804
$future_date = new DateInterval('2011-05-11 12:00:00');?
 
user1994804
I commented below Jimmys answer
 
12:56 PM
emm , wat
why would an interval be made from a date time value ?
 
user1994804
I dont know
 
@Leigh I'll try to fit that into the second paragraph. thanks.
 
user1994804
Im trying to learn and figure out how to make it do what Im attempting
 
user1994804
Thanks @ThW I was looking at that and was overwhelmed
 
user1994804
1:00 PM
I was looking at the construct method and thought Hmmm.... That's a full day of studying....
 
user1994804
And I found the example I posted here stackoverflow.com/questions/5906686/…
 
/me blinks
 
ThW
@YourAdrenalineFix more about 15 minutes
 
user1994804
then was greeted by teresko and here we are
 
user1994804
back where we started lol
 
1:02 PM
Ok, so to answer your comment on that question, DateInterval isn't used at all.
 
8 messages deleted
 
user1994804
Ok Thanks
 
Explain your problem
 
user1994804
Thanks @Leigh
 
user1994804
I know a specific date in the future
 
1:03 PM
the diff() returns a DateInterval
 
user1994804
slow typer, plz bear with me and not sure why I keep leaving
 
user1994804
Ahh... I thought diff() was something user defined btw
 
user1994804
Heres what I'd like to pull off...
 
user1994804
I know a date in the future, Say 10 days from now...
 
user1994804
1:07 PM
when a visitor hits the page I want to store the time from that point until my date 10 days in the future
 
user1994804
in a variable as such
 
right, so you want the difference between request time, and your known future date.
 
user1994804
P9DT12H15M12S
 
user1994804
Correct
 
user1994804
in the above format
 
1:08 PM
ah, so you want the format code for the diff back in a DateInterval format string, I see
 
user1994804
$Remaining = 'P9DT12H15M12S'; with $Remaining being dynamic ofcourse
 
user1994804
Any ideas??
 
yea that's a bit more complicated
 
user1994804
 
sure use that code, but then you need to extract values from the returned $interval. It is going to have properties like $interval->y, $interval->m etc. that you can use
 
user1994804
1:11 PM
Hmmm
 
var_dump($interval) and have a play
 
user1994804
Nice, And I have only very recently learned the value of var_dump
 
user1994804
I usto use echo for var_dump
 
user1994804
LOL
 
How to turn stringarray to array?
 
1:13 PM
If you want to completely hack it, and only care about day resolution, get "P{$interval->days}D"
 
user1994804
That one flew over my head @Leigh
 
well you could generate a format string like 'P700D' for nearly 2 years in the future
 
user1994804
This whole bit may get saved for a reserved half day monday
 
you don't have to convert up into years and months
 
Sorry code mistake
 
user1994804
1:14 PM
or full day
 
hm, I guess, you could convert everything down into seconds :D
 
user1994804
What if
 
user1994804
$future_date = new DateTime('2011-05-11 12:00:00');

$interval = $future_date->diff($now);
 
user1994804
$future_date simply = the date stored (10 days ahead)
 
user1994804
Then wont $interval = the difference?
 
user1994804
1:18 PM
while using an available method (unbeknownst to me)
 
it will, but it's an object of type DateInterval, there's no available method to convert back into a DateInterval format string
 
user1994804
to store the difference as PxDTxxHxxMxxS
 
You'd have to make your own function
 
@PeeHaa Watch Peep Show yet?
 
echo 'P' . $interval->d . 'DT' . $interval->h . 'H' . $interval->i . 'M' . $interval->s . 'S';
 
user1994804
1:20 PM
Is there another way to get the difference between and store it as PxDTxxHxxMxxS
 
user1994804
?
 
user1994804
Thanks @derp Would this be the "Function" which Leigh suggested?
 
@YourAdrenalineFix $format = "P{$interval->days}DT{$interval->h}H{$interval->i}M{$interval->s}S";
 
What exactly are you going to do with a stored interval anyway?
 
user1994804
@Leigh I thank you so much but Im not exactly sure how to make use of what you've provided
 
1:23 PM
new DateInterval($format) :)
 
user1994804
still lost...
 
user1994804
I need to digest it all
 
still don't actually know what you're trying to do
 
user1994804
Determine time from right now until a date in the future (9-23-2014)
 
sure, I think that's covered
then what
 
user1994804
1:26 PM
Convert and store as PxxDTxxHxxMxxS
 
user1994804
slow typer
 
everything you need to do that is written above
I guess what I'm trying to get at, is why do you need the format string, what are you doing with it then?
 
user1994804
thats why i was saying I need to digest it all
 
user1994804
cause I still dont understand it all
 
user1994804
Im trying to "keep up"
 
user1994804
1:29 PM
cause I want to then break it apart and display it
 
hey guys
 
ok, well you can skip the step where you recreate the format string, and get the values already broken apart from the $interval returned by DateTime->diff()
 
user1994804
Thanks @Leigh Im still figuring stuff out...
 
why do you wan to store the interval ?
 
user1994804
But I have a quesstion that will help my understanding
 
user1994804
1:32 PM
so I can echo $StoredVariable;
 
any one here who can help me with json aand php
 
Khan, just ask the question
if someone here can help, they will
 
user1994804
Yea yea yea
 
user1994804
I know
 
s/can/wants to
 
user1994804
1:33 PM
just saying hang on while i gather intel
 
user1994804
In @derp 's response above, what does the "d" in echo 'P' . $interval->d output?
 
user1994804
@Leigh just ask the question. I thought it was at me for saying I have a question
 
@YourAdrenalineFix d is for difference in days, but at a day of month level, where "days" in my example is an absolute number of days
 
user1994804
1:36 PM
Thanks @derp I had seen all of that earlier, Its just so much to take in
 
user1994804
My bad
 
user1994804
I'm still often figuring out system from user defined
 
user1994804
Didnt know if "d" was some shit the author of the example dreamed up
 
user1994804
or system
 
1:38 PM
Good Evenings :)
 
@YourAdrenalineFix generally the examples in the official docs don't include "imaginary shit" :)
 
user1994804
 
user1994804
Its all coming clearer now though...
 
I am posting some data to another php page in background using ajax and json when I am directly accessing the page where I am posting the data it executes successfully but when i send the ajax data usng a button click it does not executes
 
I think it's best if you go and have a play around with what you've learned, and come back in a little while when you have a better understanding of your own question :P
 
user1994804
1:41 PM
This is what happens when you try to learn a days worth in 15mins
 
any of you referring to me ? @Leigh @YourAdrenalineFix
 
no
@KhanShahrukh are you 100% sure your button executes the ajax request?
 
user1994804
A Question tho...
 
ok
thats what I am not able to verify
 
user1994804
$now = new DateTime();
$future_date = new DateTime('2011-05-11 12:00:00');

$interval = $future_date->diff($now);

echo $interval->format("%d days, %h hours, %i minutes, %s seconds");
 
1:42 PM
if you want to have a look on my code it is tny.cz/f055ca3d
 
ThW
@KhanShahrukh Have you checked the request in the developer tools of your browser?
 
user1994804
Would it work if $now = NOW();
 
@YourAdrenalineFix no, NOW() is an SQL thing :P doesn't exist in PHP - the closest is time(), but the answer is still no, it wouldn't work.
 
user1994804
I dont know what new DateTime(); produces
 
user1994804
Ok
 
user1994804
1:44 PM
Like I said, I'm still figuring things out
 
user1994804
and trying to think thru before executing
 
user1994804
to find the veryyyy best way
 
@YourAdrenalineFix right, you are missing some fundamentals about PHP objects, really is a big topic to cover, and I really recommend reading through the manual pages, and asking here when you have a specific problem. Really short answer, new DateTime creates an instance of the built-in DateTime class, which has built-in methods, and properties.
 
user1994804
Nice
 
user1994804
Ive scratched the surface of OOP in the past but know I have a LOT to learn
 
user1994804
1:46 PM
Thanks so Much for Your Help!!
 
@ThW not yet
@ThW did you see my code ?
 
ThW
@KhanShahrukh This would be the first step - isolate the error, get an error message.
 
ok trying to do that now
I have never used developers tool
there is no error when i click the button
@ThW
anyone here ?
 

« first day (1428 days earlier)      last day (3538 days later) »