« first day (1431 days earlier)      last day (3507 days later) » 

12:08 AM
@NikiC Can I get your test script?
 
 
5 hours later…
4:49 AM
Tonight has been very quiet.
@Ja͢ck You must be busy :D
 
5:38 AM
@LeviMorrison Yeah, with work actually heh
 
Hello All
Good Morning
 
@Ja͢ck :D Amazing. Well good luck with work; I'm off to bed.
 
:) cya
 
how to open native app from html in android
<a class="intent" target="_blank" href="fb://profile" data-scheme="fb://profile">facebook</a>
this opens facebook app
but
<a href="instagram://app">Open Instagram</a>
this doesnt open instagram
pls help anyone
Also tried this -
<a href="instagram://media?id=434784289393782000_15903882">instagram://media?id=434‌​‌​‌​784289393782000_15903882</a>
 
@androidBeckhamania wrong chatroom
 
5:48 AM
No I mean its not related to android
its related to php end or html so asking
 
@androidBeckhamania It's definitely not related to php
 
@Patrick those are html links right
 
this is not html chatroom
 
k sorry but you developers havent anyone tried this
 
6:30 AM
moin
 
good moaning @JoeWatkins
wanna hear something funny @JoeWatkins ?
 
always @Jack
 
I've asked Dmitry what he thought of my userland implementation of ereg ... guess what he said
 
wat ?
that he doesn't want to remove ext ?
 
> I'd rather see that implemented in C extension ...
 
6:33 AM
erm ...
 
My eyes just glazed over
 
yeah bit silly ...
 
Perhaps he didn't realise how silly that sounds.
 
but I've heard him say there is no good reason to remove mysql ... nearly expected that he'd be silly about it ...
 
posted on September 16, 2014 by kbironneau

/* by Kingos */

 
6:36 AM
well, removal is ... just removal from core
 
yeah he doesn't want to do that, for anything ... it seems ...
moar silly
Then which is faster Pthreads or Curl_MULTI? — Deval Shah 9 hours ago
 
Artax!
 
correct!
 
Good Morning Guys
 
6:45 AM
@ircmaxell @DanLugg gist.github.com/gooh/4957242 but never used it for anything.
 
I have two datetime objects how to check whether there is any overlap among those datetimes?
I have been googling but didn't find a matching question
 
@udaysagar what do you mean by overlap?
 
Sorry, I have three date time objects and I want to check whether the third datetime overlaps between first two(start and end date times)
 
if ($start < $dt && $end > $dt) { …
5
Q: PHP, see if date range is partly within another date range

user1128582I've been looking forever for this, but the answer seems nowhere. Here's the problem: Say, I've got two date ranges. $daterange1 = 2012-04-20 till 2012-04-28 $daterange2 = 2012-04-18 till 2012-05-01 Now, I'd like to know if daterange2 is within daterange1. But, as you can see, daterange2 onl...

 
@Gordon Do DateTime objects compare like that?
 
6:57 AM
@SecondRikudo yes
 
@LeviMorrison - re Rust changing wildly every point release - blog.rust-lang.org/2014/09/15/Rust-1.0.html - hopefully by the end of the year we'll have something stable then :)
 
M to the O to the R to the N to the I to the N to the G
 
Thanks Gordon
that's really helpful
Hi to the I @RonniSkansing
 
@RonniSkansing hehe morning
 
@LeviMorrison Unanimous vote for multiple default: labels .. surprise surprise :)
 
7:12 AM
morrning
 
7:25 AM
why is this not working for me

    $date_res = date_create_from_format('Y-m-d H:i:s', $res['date_start']);
    date_add($date_post, date_interval_create_from_date_string('10 days'));
when I output $date_post
 
@halfer thanks for the PRs, will get to them tonight :)
 
$date_res = date_create_from_format('Y-m-d H:i:s', $res['date_start']);
    date_add($date_res, date_interval_create_from_date_string('10 days'));
When I output $date_res, I am not getting an incremented date
anything wrong with the code?
 
why are you using procedural style?
 
I also used this:
$date_res = date_create_from_format('Y-m-d H:i:s', $res['date_start']);
$date_end = $date_res->add(new DateInterval('PT' . $this->duration_hours . 'M'));
var_dump($date_end->format("Y-m-d H:i:s")); echo "<br>";
$date_res = date_create_from_format('Y-m-d H:i:s', $res['date_start']);
$date_end = $date_res->add(new DateInterval('PT' . $this->duration_hours . 'M'));
var_dump($date_end->format("Y-m-d H:i:s")); echo "<br>";
But even here, $date_end is same as $date_res
 
@udaysagar 3v4l.org/Ujn1j
@udaysagar I think you want something like this instead? 3v4l.org/mbIDP
 
7:36 AM
my $res['date_start']is giving me string(18) "09/16/2014 12:30pm"
 
then why this? ... date_create_from_format('Y-m-d H:i:s', $res['date_start']);
 
Hey
 
Yes Yes
I have to give correct format
 
7:54 AM
Morning
 
moin
 
8:09 AM
Ohi
 
\o/
When is this html / css madness going to stop and will they put me back in my php cage? :(
 
morning
 
@PeeHaa o/
 
@PeeHaa good morning
 
ThW
8:26 AM
Good Morning
 
>Naruto
Good morning 'ttebayou
 
goodmorning
 
>Andrea? :)
 
My name isn't from an anime about ramen noodles, 'ttebayou
 
8:35 AM
posted on September 16, 2014 by kbironneau

/* by Bobby */

 
What are you trying to prevent? @ThinkkSo
 
wait im still typing my folder scheme but i dont want anyone or anything to be leaked as in the config or anything important @PeeHaa
 
fucking almost-but-not-quite Markdown
 
@ThinkkSo If what you just shared is in any way an issue regarding security you are doing it really wrong :P
@AndreaFaulds #MDFAIL
 
I-can't-believe-it's-not-Markdown™
 
8:37 AM
:P
 
@AndreaFaulds E_MARKDOWN_FAIL
Good morning
 
@Feeds looks like the intern hits the naughty senior? :-)
 
@AlmaDo E_RECOVERABLE_MARKDOWN_ERROR
 
hey guys i was wondering how an i organize my website folders for great security
-project(Folder holding everyone and includes folder)
folder1-everyone(folder holding files that people can view)
-index.php
-config.php
folder2-includes(folder holding includes password encrypter etc..)
-passwordencrypted.php
 
sigh
 
8:39 AM
how should i do it @PeeHaa
 
hello anybody uses postgres?
 
not for encryption
 
yay, and what may be other purposes for it?
 
4 mins ago, by PeeHaa
What are you trying to prevent? @ThinkkSo
 
anybody?
 
8:41 AM
@ThinkkSo are you aware that it is possible to run PHP code which is not inside document root?
 
well i want it to be well organized as in best practice and i want the files to be secure in the folder2-includes
@tereško what do you mean?
 
@ThinkkSo Without saying what you are trying to prevent it is almost impossible to make it secure
 
I think I misread what he was asking ... of course there wasn't really a question, but still
is he trying to make some sort of source-protection ?
 
ok so the folder that holds everything that will be displayed is the everyone folder but i want to know what do i not include or what do i have to not have in the everyone folder @PeeHaa
 
@AndreaFaulds Does that matter? :O
 
8:45 AM
Not really, dattebayou :p
 
@ThinkkSo When you say "folder that holds everything that will be displayed" do you mean the doc root?
 
@ThinkkSo can you explain what exactly you want, without using the word "folder" or "directory"
 
the main root folder would be "project" and i have two folders inside that. folder 1 called "everyone" holding the index and folder 2 "includes" holding the functions, includes, password encrypted, etc. and what i want to know is this a good setup?
 
What is the doc root?
 
folder1 - "everyone" folder
 
8:49 AM
And what are you trying to prevent?
 
well first off is this a good setup and second , i want to know what do i have to store inside the includes folder and wether i should also store files that submit data to mysql database into the includes folder
 
I give up
I have asked the same question at least 5 times without any answer so I will be going to de something productive now
 
you asked what do i want to prevent
i dont want to prevent anything i just want best practice
for sorting a website directory
 
@PeeHaa sigh .... do it :P
 
@NullPoiиteя I will :)
 
8:54 AM
@ThinkkSo Just make sure your public (docroot) folder contains as little as possible. Example
There's no singular answer for it but that's a start
 
@Fabien ty just whaat i was looking for
 
mornings
 
@DaveRandom heya
 
9:09 AM
@Gordon :-(
 
@JoeWatkins what happens with use statement (and references)?
 
depends on the executing context
 
@JoeWatkins I'm missing some more detailed explanation…
 
@AndreaFaulds :D
 
@bwoebi haven't tested this stuff yet ... finding out what could be done ...
strange things happen with use()
yeah lexcial vars don't work
 
9:14 AM
fix it! fix it! fix it!
 
dunno how actually ...
ideas ?
 
@JoeWatkins unicorns
 
@JoeWatkins 42
 
@SecondRikudo Is that really a bad question?
 
9:16 AM
@AndreaFaulds unclear.
 
brilliant ...
@bwoebi there's no way to check if an op_array had use statement, right ?
 
@JoeWatkins What's the problem with use?
 
nothing really ... just trying to figure something out ... possibly ...
 
@JoeWatkins well, you can look if the opcode before the function declaration is a ZEND_FETCH_STATIC or ZEND_FETCH_LEXICAL
 
how do you calculate that ?
I don't think you can, can you ?
 
@JoeWatkins I wanted to say: you can look if the first opcodes of the function are dynamic ZEND_FETCH_STATIC or ZEND_FETCH_LEXICAL ops.
 
that's actually how this thing is implemented.
 
I did not know that
 
I just looked it up...
I'd really consider checking that yourself in phpdbg print first
It's just what I think a quick glimpse at code told me.
 
still lexcial vars are like globals ... we can't have globals in threads ...
 
@JoeWatkins yeah, true. :-/
 
@LeviMorrison Why did you vote against intsem?
 
@PeeHaa search in backlog, Andrea already asked him.
 
When was it (searching the backlog is known to give people cancer)
 
9:30 AM
I'm still wondering now that I got rid of div by zero bit
 
@PeeHaa yesterday evening
 
I have a solution-ish
 
tnx
 
@JoeWatkins hmm? :-)
 
$test = new Threaded();

$threaded = Thread::from(function() {
    var_dump($this->test);
}, function($test) {
    $this->test = $test;
}, [$test]);
(run, ctor, args)
 
9:33 AM
what about… changing the ZEND_FETCH_* things into a ctor?
 
we don't want to fuck with the closure, it might be referenced elsewhere ...
 
duplicate the closure.
 
it's already duplicated for the new context, but be strange if it behaves differently in different contexts, better to provide a sane api and enforce it's rules (throw ex if closure unaccpetable, if has args or uses lexical vars)
 
e.g. function () use ($a) {} => class ThreadedClosure { protected $a; function __construct($a) { $this->a = $a;} function run() { $a = &$this->a; } }
 
9:57 AM
I already done the simple thing ...
 
hehe
 
simple lexcial vars work, must be compiled as local vars, can't detect fetching lexcial vars for some reason either ...
 
:o ?!
 
everything other than objects work actually ...
 
hi. is it possible to reuse a google adwords code (conversion_id) after relaunching a webshop with a new shopsystem?
 
10:05 AM
still, probably avoid lexcial vars, just use the ctor mechanism and all will be good ...
wish I could enforce the rule though ...
 
A good PHP framework to quickly set up a MVP?
 
none
 
@Duikboot minimum viable product or model view presenter?
 
Minimum_viable_product
 
I was interviewed for PHP Magazin. It's all german though: phpmagazin.de/artikel/agile-us-marine-corps-176218
@Duikboot depends on what stage you are in
an MVP can be as simple as a landing page that stirs interest
like people can signup for beta or something. you wouldnt need a framework for that.
 
10:11 AM
most of what comes to mind combine the stability of rapid prototyping frameworks with with intuitiveness of wordpress source and documentation of php's reflection classes
 
@Patrick Nice!
 
Anyone in here got experience with Symfony?
Having trouble understanding how to separate sites and having them under one folder so it can be used in a single repository (JS/CSS files, template files, etc)
From what I understand, symfony has a certain file structure, although it can be changed, this is where bits and bobs are:
./src/Company/MainBundle/Resources/public/Base/images/handle
./src/Company/MainBundle/Resources/public/site/handle
./src/Company/MainBundle/Resources/views/Site/handle
./src/Company/AnotherBundle/DataFixtures/files/handle
But when updating that particular site (handle being the site's handle name), it would be nice to have a separate repo so update are particular to that site
*updates
 
@Gordon He is also a member of the PHP documentation team.
/me pokes @Gordon with his latest commit :P
 
@salathe :/
 
10:23 AM
> Interview with Gordon uncle
Still amuses me
 
@SecondRikudo If you have any feedback let me know. Halfer already fixed a lot of my bad english but I did not yet have time to sort out his PR :)
 
Hey @Gordon, any chance I could pick your brains understanding this folder structure?
 
@Gordon nicht schlecht. Definitely some truth in it. :-)
 
@Titanium folder structure?!
@bwoebi thanks
 
@Gordon But, still, in the army, the little decisions are decentralized, but the main decisions still remain at one single person. I believe that code just go further than just that. It also should decentralize its main decisions.
 
10:37 AM
@bwoebi the talk will have very little in terms of code organisation. if anything, concepts like centers of gravity can be applied to focus on what to implement or where to build in flexibility into code. the talk will be more about leadership strategies.
 
Dann hab ich wohl den Hauptpunkt des Artikels missverstanden...
 
@bwoebi its more about how we work as individuals and in teams than concrete programming techniques
 
10:55 AM
@Gordon jup, got that now. As said, thought the inverse.
 
11:08 AM
Is it correct the mysql datetime column doesn't understand some default like NOW() or CURRENT_TIMESTAMP or anything that is the current datetime?
Or am I missing something here?
 
@PeeHaa Yeh you have to use TIMESTAMP type for that
 
Goddamnit mysql is even more stupid than I thought
 
(which, btw, does basically the same thing in 99.9% of circumstances)
 
tnx mr dave
 
@PeeHaa difference is that TIMESTAMP is stored as a unix timestamp in a signed 32-bit field. So if you need to support dates outside that range you need a DATETIME, which is stored as a set of ints for each field but restricted by stupid SQL string size things, so has a range up to 9999-whatever.
But if you want to track changes to records rather than represent date/time data (which if you are using CURRENT_TIMESTAMP I guess is the case) then you want TIMESTAMP
And I imagine by the time we get to 2038 that issue won't exist any more
 
11:17 AM
> in a signed 32-bit field
...
 
128
A: How do you set a default value for a MySQL Datetime column?

Gustav BertramIn version 5.6.5, it is possible to set a default value on a datetime column, and even make a column that will update when the row is updated. The type definition: CREATE TABLE foo ( `creation_time` DATETIME DEFAULT CURRENT_TIMESTAMP, `modification_time` DATETIME ON UPDATE CURRENT_TI...

 
mysql 5.5 :(
Didn't know that though
 
@PeeHaa I know, it's pretty insane that the world still works like this, apparently people fixed the millenium bug and then pretended that nothing like that would ever happen ever again.
 
4 mins ago, by DaveRandom
And I imagine by the time we get to 2038 that issue won't exist any more
care to make a bet ?
 
11:27 AM
@tereško I'll bet you $<number of seconds since unix epoch at that time> that it's fixed
So if it's fixed, I get $2^31, and if it's not fixed, I get $2^31 + 1.
I hope it's not fixed.
 
@DaveRandom yeah, we got it without the explanation :P
 
I assumed someone would ask and thought I'd head that one off, as I now have to go do some actual work
 
I have a strange problem:
> 3 16 14:38:18 SELECT * FROM temp.Accounts LIMIT 0, 1000 6 row(s) returned 0.016 sec / 0.000 sec
> 0 17 14:38:50 DROP TABLE temp.Accounts Error Code: 1051. Unknown table 'temp.Accounts' 0.000 sec
 
11:43 AM
@tereško Something else dropped it in between?
 
nope
the table is still there
 
yeah
.. so .. the conclusion is: fuck it, reinitialize mysql
 
awesome title btw
 
@JoeWatkins Get on it
 
12:14 PM
Always a good way to get help: "and please not negative point my question. its your fault that you cant understand question"
and please not negative point my question. its your fault that you cant understand question. — CHiRAG 2 hours ago
 
@tereško Question ban, here we go!
 
2
A: Convert Date/Time based on location(TimeZone)

Iain CollinsThere is, unfortunately, no reliable HTTP client header which returns this information. So, if you want to get the timezone of a system accessing your website the simplest way is to read it with JavaScript and return it to the server (e.g. in a cookie or via an AJAX request or WebSocket). It's ...

How can someone write long answer for an idiot and its question?
 
no its not my attitude, still i am in problem but this is wrong that i want to tell. if you want to negative my question then do it third time. – CHiRAG 2 hours ago
still i have 10 points – CHiRAG 1 hour ago
still 1 points to go – CHiRAG 1 hour ago
good keep going... – CHiRAG 1 hour ago
 
s/long answer/lot of crap
 
12:24 PM
"and please not negative point my question. its your fault that you cant understand question" lol
 
who the crap upvoted his comments
 
people who found it to be funny, at least thats my best guess
 
Sure looks like it
 
the dude asking "hOW?" in response to "I guess you'd want a javascript solution which you can find by Googling for it in a few seconds." enrages me for some reason
 
another one:
i have nothing and my question on that i have nothing and how can i do it – CHiRAG 2 hours ago
 
Ohi
Someone else vote in favour of wiki.php.net/rfc/integer_semantics#vote and it'll have a 2/3 majority
 
@AndreaFaulds who the hell are brianlmoon and jedibc, people I've never seen on list, you've managed to drum up from somewhere?
 
@Leigh No clue.
 
brb, off to make a pecl ext no one will use and I don't plan to maintain so I can get vote privs..
 
12:51 PM
heh
Did you vote on that RFC?
 
nope, too lazy to make a consistent effort, so never bother asking for karma ;)
 
> Warning: Unix style paths with forward slashes can cause significant performance degradation on Windows systems; be sure to call realpath() in such a case.
Errrmm... wat?
 
/me blinks
 
are docs on github yet? (doesn't look like it)..
 
O... K...
I somehow doubt that's got anything to do with the separator style, more likely just some relative path nonsense
 
@DaveRandom test it test it test it test it test it test it test it test it
 
If you were to list the things I have time for atm, that would not be on the resulting list.
 
@PeeHaa pfft, revert commit without testing!!!11
 
Ugh some lady poured the kettle for my tea for me and used far too much water -_-
E_TEA_NOT_MILKY_ENOUGH
 
12:59 PM
@salathe \o/
 
@Leigh I mirror the en docs at least (which comes in super handy)... github.com/salathe/phpdoc-en
 

« first day (1431 days earlier)      last day (3507 days later) »