« first day (2078 days earlier)      last day (2853 days later) » 

12:39 AM
/* unlike phpdbg_remove_watch_element this *only* frees and does not clean up element + children! Only use after previous cleanup (e.g. phpdbg_dissociate_watch_element) */
void phpdbg_free_watch_element_tree(phpdbg_watch_element *element) {
/* ... */
        phpdbg_clean_watch_element(element);
        phpdbg_free_watch_element(element);
}
yay, I've written a comment … which does not match the implementation (which is bad thus…)
 
 
2 hours later…
2:29 AM
Just lost my job
Just over wrote 800k rows with a botched where statment
O-E
back ups arent set up yet
 
3:04 AM
morning roomies
!!rebecca
 
@AnmolRaghuvanshiVersion2.0 You're welcome!
 
3:45 AM
generally where you all put templates in public folder or outside doc root?
 
Gon
Moin
 
@Gon you again changed your name saitama?
 
Gon
yep :D
 
Anyone know File Maker Pro Database here?
I need help for my project.
I want to update my existing record but its not working.
$edit = $fm->newEditCommand('accounts', 39350, $values);
$result = $edit->execute();
That is my code to update any help guys, thanks a lot
 
4:14 AM
I have mac os x 10.9 and I want to update my php, I did use php-osx.liip to update and then changed the path in ~/.bash_profile, my terminal is then showing the new version but when execute the phpinfo(); I see my previous version of php. please help! the php.ini lies in /etc folder according to phpinfo
 
5:31 AM
moin
 
is there an easy way to upgrade from php 7.0.6 to 7.0.7 with homebrew
 
sad morning
 
5:48 AM
maybe for you ... I just got a huge payrise ...
(I get paid in USD)
 
while I am happy for you, I still find the result generally depressing
 
I probably won't get to collect ... we knew this was a consequence, and done it anyway ...
 
6:10 AM
Morning!
If I post a music video, is that against the rules? :(
 
Good morning and happy Rebecca day
@MattPrelude Only if the music is bad.
 
off-topic is okay as long as it's not interfering with any ongoing on-topic discussions. though it's friday, so it better be rebecca
 
Sorry, against the rules, gotta ban you now.
 
Anonymous
Well shit, we're leaving the EU
 
6:15 AM
Oh yea.
They voted to leave EU
 
I know, it's 7am and I've already opened the Champagne
Might be the last time I can afford French wine
 
I wonder how long until the Nordic Alliance is created.
 
yeah, given the geographic distribution, they should have voted whether england and wales wants to stay in the UK instead
at least in london they seem to have some sense left
 
lives in London
My borough voted Out though
 
probably from the east of london then
 
6:19 AM
Bexley
 
is that in the east?
 
southeast
 
Morning
Im surprised when i read the news about uk referendum
 
yes, very horrible. and annoying. and depressing. such much short-sightedness. such much ignorance.
 
I read a tweet "it is end of uk. It is not end of eu"
It's funny
Uk is a strong country
 
6:28 AM
IMO, just repeatedly calling people stupid for voting a particular way, doesn't actually make a persuasive argument leading them to change their.
3
 
I have to implement web based real time chat in PHP?
does websocket is realiable solution
or should i have to other messaging middleware like redis
or
Rabbitmq
 
It's politics room here. Please go to php room
[insert-trolling-face-here]
 
@AdilIlhan actually, please don't do that even as a joke.
 
@AhesanaliMomin your question is far too big to answer. Yes, websockets can be used, but they are only a small part of the technology you will need.
 
6:33 AM
@Danack c'mon :(
 
@LeviMorrison I thought about similar approach when type restriction would be applied to that properties that have getters/setters notation, e.g. private string $foo = 'test {get, set};
 
@AdilIlhan No - this room is for tech discussion. Off-topic stuff needs to shutup when people are talking tech.
 
stop it with the flagging
 
@Danack oh really? I thought this room is for politics
 
i got a weird log entry in laravel today with this \xa5\xb4\xc3\xc9\xa8c\xc0\x19&\x93\x86\xe0ZK<6\xef\x87\xe1\x1a\xf3]\xff\xad\x96‌​\xd7\xf6\x81\xae\x81\x8c\xcfi\x87\x93K+\xbe\x03q\r,*\xd6J\x84+\x1e\xb1O\xb9\x99 does anyone knows whats this ?
 
6:35 AM
@LeviMorrison but i guess there are technical restrictions to do that right now. And plain getters/setters without type restrictions are less likely to be useful as is. Anyway, current behavior with magic __get and __set requires detailed discussion, as it is it just raises discussion flaw to the sky.
 
@GeoPhoenix which log?
@Gordon I can't see any flags........oh.
orly.
 
@AdilIlhan no, its not. Danack is right. On topic always has to be go over on-topic.
 
[Thu Jun 23 17:04:42.647229 2016] [core:error] [pid 6258] [client 169.xxx.x.xx:39684] AH00126: Invalid URI in request \xa5\xb4\xc3\xc9\xa8c\xc0\x19&\x93\x86\xe0ZK<6\xef\x87\xe1\x1a\xf3]\xff\xad\x96\xd7\xf6\x81\xae\x81\x8c\xcfi\x87\x93K+\xbe\x03q\r,*\xd6J\x84+\x1e\xb1O\xb9\x99
 
@Danack Completely agree.
 
@Gordon i like irony.
And it was an irony guys
 
6:37 AM
> please don't do that even as a joke.
 
@Danack I agree, too. But if you try with factual arguments and they still rather believe the populist and fud, then we get to call them stupid.
 
good Friday people!
where's Rebecca?
we have to add one bot more, Jeevis needs a gf
 
@GeoPhoenix its hex encoded
 
@GeoPhoenix someone is trying to hack your server. This is normal. People scan websites for vulnerabilities all the time.
 
so i assume is something send from an automated scanner?
 
6:39 AM
@Gordon Sorry but the FUD was just as bad from Remain. I heard WW3, I heard attempts to mar Leave voters with the Jo Cox tragedy, I heard deep recession and becoming a developing nation, no trade with Europe. There was not one positive case made for the EU, it was just FUD about if we come out.
 
@Gordon so? Who is stupid here?
 
I went into the referendum pretty open-minded. The Remain campaign disgusted me from the start, even worse than UKIP (which is saying something, because I can't stand UKIP).
 
!!rebecca
 
Campaigning on the idea that Britain isn't good enough to be a nation is not the way to win people over, and that's all Remain did.
 
6:58 AM
@MattPrelude which really just means, you chose to support UKIP.
 
@Gordon I chose to support Britain being a sovereign nation
 
@MattPrelude britain is a sovereign nation. that argument is nonsense.
 
@Gordon No it's not, at least not in the way Matt means. We have to at least some extent given up some sovereign powers to the EU, telegraph.co.uk/business/2016/06/12/… puts it more clearly than I would pre-coffee.
 
next level of rebecca: all links to php.net reference manual redirect to rebecca
 
@Gordon So, we can limit migration from the EU based on skills?
 
7:09 AM
What does this dot in opendir mean?
opendir(".");
 
@I.Am.A.Guy current directory.
It's standard notation for directory traversal - and two dots = parent directory.
 
But if I replace it with
opendir("../Somedirectory");
it doesn't work.
 
Is Somedirectory in the parent directory?
 
You're using relative paths, as you aren't starting from a known position. I quite strongly recommend doing something like:
opendir(__DIR__."/../Somedirectory");
To make sure that the base directory you're starting from is a known constant thing.
Or even better, create actual types to hold those values, and initialise them in your bootstrap, to avoid having magic strings distributed across your application.
class TmpPath {
    private $path;

    public function __construct($tmpPath) {
        $this->path = $tmpPath;
    }

    public function getPath() {
        return $this->path;
    }
}

// In bootstrap.php
$tmpPath = new TmpPath(__DIR__.'/../var/tmp/');
 
mornin
 
7:18 AM
hmmm
 
Wes
brexited. bye bye \o
 
@Danack sorry, but he calls the EU an unelected regime in the third paragraph. I will not continue this article if its based on that assumption. its nonsense.
@MattPrelude maybe you cant, but you can make your politicians lobby for it and pass legislation for it. though I wonder why you would want that anyway.
 
forums.comodo.com/… < Forum response by the Comodo CEO.
 
@Gordon Because I want to be able to hire developers from outside the EU, and I think they should be treated with priority over plasterers from Europe.
 
@Ocramius Someone had a good time a few hours ago: i.imgur.com/1Y3GNEk.png
 
Anonymous
7:30 AM
@Wes Just read it like 10 seconds ago ... /unexpected
 
Gon
user image
3
 
@Gordon Because to keep migration figures sane the govt has to heavily restrict non-EU nationals in order to allow free movement with the EU.
@Gordon Come down to London and try to get on the trains, try to buy a house, try to get a doctor's appointment, then tell me you still support unlimited immigration. It's crazy.
If I try to book an appointment to see my doctor today, the likelihood is I will see him next friday.
 
Anonymous
@Gon .wife{right:100% !important}
2
 
@MattPrelude ah, so you are saying foreigners are taking away doctor appointments?
 
Gon
7:38 AM
lol
 
@Gordon I'm saying that public services are strained because of population growth, and 2/3 of population growth is immigration, yes.
 
Anonymous
@Danack Damn right!
 
@Gordon Do you live in a high population area? Or are you unaffected by the strains on public services that ordinary middle class Brits have to live with?
 
@MattPrelude I am very much unaffected by "the strains", because I live in the rhine ruhr area, which is one of the most densely populated and multicultural areas in germany.
 
Wes
31:22 typed properties, not brexit
 
Anonymous
7:47 AM
xD
 
Morning.
 
Anonymous
o/
 
So, the Brexit is happening.
Glad that I dumped all my stocks well in advance. The European markets are crazy today, as expected.
 
My stocks are going well... GLD -> Long ;)
 
@MattPrelude to clarify in case it didnt get across: I live in the largest metropolitan area in germany with 11 mio people from a variety of cultures spread across a dozen cities. So while I do not know your purported british strains, I do know what life is like high population areas. Depending on the doctor, I have to wait weeks or even months to get an appointment. Yet, it would never occur to me to blame foreigners for it.
 
7:53 AM
Time to buy! some stocks today
 
Mornign all
 
Morning all!
 
Population of the UK hit 65 million in the last period. Up 500,000 on the year of which 350,000 is migration. I don't blame 'foreigners', I blame EU/British policies which allowed our population to increase like that.

At the end of the day, you need to be able to plan for expected growth/decrease in population. If you can't predict the changes in population, then it's impossible to plan services for it.
 
Anonymous
Moin pooha
 
And later @JayIsTooCommon @Danack @DaveRandom @Sean o/
 
Anonymous
7:55 AM
ahaha
 
nigel for president queen!
 
o/
 
so now brexit has happened will foreigners living there be massacred ?
or sent to exile
 
Are there much 'uk-ers' here?
 
*Sigh* https://t.co/YHHuuFxWFa
 
7:57 AM
tbh the vote was too close for the exit to happen
 
I got caught in the echo chamber pretty bad
 
Wes
the only vote we give a f*** of is wiki.php.net/rfc/typed-properties vote, and vote only if you intend to vote yes
 
I confidently thought we were going to stay.
 
Wes
:B
 
@Wes Wait, typed properties is still going on?!
 
7:59 AM
Absolutely brilliant poll on Brexit by @YouGov https://t.co/EPevG1MOAW
2
 
Thought this was voted on ages ago
 
it's stupid, but I find it funny :)
 
Wes
@Sean 10pm exit polls were still 51% remain lol. it's the last time i checked
 
so it will take 2 years for brexit to happen right
 
Anonymous
@avz2611 Yep, if we do it by the book. Which I think we will
 
Wes
8:02 AM
@FlorianMargaine sigh
 
can php be used to perform certain actions on a linux remote server , like create directory and stuff
 
@avz2611 More like 2 and a half
 
Oh I almost forgot it's friday! youtube.com/watch?v=boTXUnvfhE8 chillll
 
Cameron will leave triggering Article 50 to the next PM
 
sorry for my ignorance , i am not a uk resident so idk shit about article 50 and stuff , only thing i have heard is that cameron is a cunt :P
 
8:08 AM
!!friday
 
-.-
 
what steps should one take (if any) to protect OTHER websites from WordPress websites hosted on the same server?
These WP sites are not too much in my control - and what are some ways I can make sure other sites don't get affected if WP sites get affected
 
@MattPrelude sorry, but the only thing I hear is "UK is flooded with immigrants".
 
8:10 AM
Can you jail virtual hosts?
 
"jail virtual hosts"?
 
As in, chroot jail
 
@Gordon I take no responsibility for you preferring to treat Leavers with contempt than with respect. Perhaps you should consider if that's why 52% of the British public, and 56% of the English public, decided to thumb their nose at the EU.
 
what do you want to say?
 
@Test What's your underlying server?
Apache, presumably?
 
8:12 AM
Yes Apache on Ubuntu
 
@Gordon The fact is that you can either continue to assert that 15 million Brits are awful xenophobes, or you can accept that the EU isn't perfect, and for us wasn't working.
 
tbh i would be pissed if my country was allowed to be a hub of a million immigrants who give nothing back
 
@MattPrelude I can easily turn that argument around by saying that the majority of Scotland and Northern Ireland voted to stay. The much more interesting statistic would be the demographics of the voters.
 
Aye, my main worry is what Scotland will do.
 
hope andy murray wins wimbeldon
 
8:15 AM
@avz2611 fortunately, they do give back
 
@Sean, what about Apache server?
 
*wimbledon
 
@avz2611 They give plenty back, but at the same time, our services can't handle them. We don't have the ability to provide the school places, hospital places, transport or housing.
@Gordon That's Scotland and Northern Ireland's choice. If Scotland decides to leave Britain and join the EU then I wish them the best of luck.
 
@MattPrelude I never said the EU was perfect. On the contrary. I always said that it was imperfect. But I stand by my opinion, that it's still the better choice over nationalism. the last 100 years of history should have taught us that.
 
i just hope this doesn't cause any problems to premier league , tbh thats pretty much the only thing i care about with regard to the exit (no offence)
 
8:18 AM
@Gordon Well then I hope Germany stays in the EU for you. David Cameron asked for the most pathetic of reforms and couldn't get them. I don't want Britain to become an inward-looking nation, I still want to trade & have healthy migration with Europe (I've lived in Italy!) but I want it to be our choice.
 
@Test It's possible to chroot apache virtual hosts so they're isolated from one another, but I've not tried it myself.
 
@MattPrelude I will make sure with my votes
 
guys i am having a problem
my modules are being loaded in php
 
You should already be doing the more generic stuff which locks apache out of modifying / serving files out side of it's scope, but I've not particularly tested it across vhosts
 
buy when my index is trying to access the modules(PDO) it says class PDO not available
but my phpinfo() is working perfectly
so php is loading modules but apache doesn't seem to recognize it
any ideas what might be wrong?
 
8:22 AM
@MattPrelude fwiw, that's not a problem. if anything, it's a temporary bottleneck. services will adapt. the much bigger problem is the age pyramid turning upside down. and this is actually a problem only immigration can solve.
 
@Gordon Agree, but it should be immigration on our terms, not open borders. We have a limited capacity, especially in (for example) London, and I'd rather that the capacity is given to people who are capable of supporting themselves and contributing in taxes.
 
@MattPrelude why not expand capacity instead?
 
posted on June 24, 2016

New Cyanide and Happiness Comic

 
@Gordon that is being done constantly
 
@Leigh great, so keep doing it. apparently it works.
 
8:36 AM
the cost of buying into that new capacity though...
you need at least £500k if you want a small place in london
 
Wes
BREAKING: live at the channel tunnel #Brexit #EUref https://t.co/PF0ZNYYwo7
 
@Leigh thats not a problem of immigration, thats a problem of urbanisation (and to some extent global investment). people flock to the cities because thats where the work is. consequently, prices rise. remember industrial revolution? very similar effects. but it ended very well for the UK.
 
Is there a good spot out there for a crash course in phpstorm?
Want to make the most of the trial before it ends so I can get a good feel for it
 
Can't believe we're out of the eu
I'll miss you Gordon :-(
 
):
 
8:43 AM
Hi
checking whether a file is selected using if(isset($_FILES['input_field_name'])) is right?
 
@Jimbo I will miss you, too.
 
@astrosixer There's a bit more to it than that
!!docs Handling file uploads
 
[ maxdb_num_fields() ] Get the number of fields in a result
 
dont get it @Sean
 
Damnit Jeeves. php.net/manual/en/features.file-upload.php Check this out @astrosixer
 
8:48 AM
There is a reason why i ask ed above ...@sean
yesterday it was simply working but not today...
 
@Gordon Taxed enough already.
 
@MattPrelude yeah, I remember you said you think taxes are too high and will leave the UK because of that. It still gives me good chuckles.
 
@Gordon I might not now. ;)
 
@Sean could you add that please?
 
@PeeHaa Sure, as soon as I stop being such a slacker
 
8:56 AM
:D
 
!!version
 
I know dat feel bro
 
Going on vacation next week makes it hard to be productive :P
 
9:01 AM
guys should the modules i am loading in php be located in root directory of apache as well?
 
@avz2611 what do you mean by modules?
 
mysql and PDO extensions
 
hey guys checkout a search engine i made based on ai for songs
www.openaisearch.com
 
@avz2611 you should be using mysql anymore. its deprecated. pdo is enabled by default iirc. in any case, extensions are usually located somewhere close to your php installation.
@Sumit I searched for friday on a friday. it didnt give me rebecca. not very smart that ai of yours.
 
Gon
9:12 AM
!!friday
 
ok, enough
I have bought 20 games already, enough is enough
 
!!wotd
 
Endsville: most wonderful or exciting.
 
Man, Endsville is totally Endsville
 
9:20 AM
Leaving the EU is endsville.
Well I mean exciting in that context. Dunno about good or bad.
 
lol now that modules are loaded , i am getting an error message saying driver not found
this is annoying
 
Is a factory useful for injecting all of the millions of support classes used in a single class?
E.g. logger, registry, etc.
I guess you then need to only create and use a single factory around different parts of the system. More injection. More confusion.
Programming is hard ):
 
@Sean technically, yes. But you really should examine the amount of dependencies that your unit has.
also, I prefer loggers to be implemented as decorators
 
gd afternoon
 
@tereško Decorators don't place nice with type enforcing though, right?
 
9:26 AM
what has logging to do with type enforcement?
 
@tereško Say you've got a decorated object, how do you inject that into a type checked function or method?
 
Wes
@Sean decorators have the same types (interfaces) of the decorated object
 
if you want to enforce the types, then just make the decorator to implement the same interface
 
@Sean yes
 
@Gordon then you're probably missing the point. People in the UK are deeply unhappy that sovereign powers were transferred from the UK to the EU, without having either a referendum on that, or it ever being a clear part of a platform of any political party in the UK. Yes, it's possible we can't continue the conversation if we can't agree on that being a valid point of view.
 
9:29 AM
Sorry, I'm totally Mr. 50 questions over here. With an interface you would actually need to declare all of the methods rather than relying on generics with magic methods
So the decorator class would need to be created specific to the interface and act as a wrapper, that makes sense
 
@Sean your oop-fu is weak
 
@tereško Absolutely
 
Gon
@Leigh \o/
 
Wes
@Sean yes, but you can easily end up having a gazillion factories. consider using an automatic DI thingy instead
 
9:31 AM
@Leigh FINALLY!
 
@tereško I'm learning though, and I consider that an important step ^^, even if it's just little bits
Would there be an alternative to defining a decorator specifically implementing an interface and explicitly defining its methods?
 
https://github.com/php-src/php/blob/8281bf7d4604c318c0287ef6ec2f7d708fdec6c6/LICENSE (Pretty interesting change in the PHP License)
 
Wes
@Sean no. it's a tedious operation but it's the best option
 
1
Q: How to set time over x-axis using flot graph?

ExceptionI am using Flot chart to create line graph . my code to display graph over page.But I am trying to show graph only with given times only.But its also showing other times in between. How can just show given timings over x-axis.

 
9:40 AM
Looking for some help on a very simple block of code
 
If it's simple, why do you need help?
 
I am trying to create a dynamic grid.

Say I have 4 columns, I wanna loop through with a counter.

and basically add as many classes eg: 1 of 12 1 of 11 1 of 10 and so on
well 1 of 4 1 of 3 1 of 2 and 1 of 1
where 4,3,2 etc will be the # of columns
 
@Sean when you define an interface, it is pointless to have all the public methods of a class in that interface. An interface is a contract. When a class or a methods has a dependency defined with a specific expected interface, then it should contain only the method, that will be used by this structure.
 
Any Doctrine1 experts here? Is there a way to make it lazy load?
 
10:10 AM
> Any Doctrine1 experts here?
 
@Leigh how one make such pattern?
 
What did you do in a previous life to deserve that?
 
10:25 AM
Hey Guys
 
@Danack I voted 'Leave'. I deserve it all. :D
 
How can i allow a user to view all records but edit his own only, I am using ACL layer where i have ROLES and for each role I have permissions
eg : i have edit_user as a permission and if Its associated to some user he can edit
 
@ScoRpion Make a new permission to edit your own resources? E.g. edit_user_own, or edit_user_self
 
I just read a german tweet (hence not linking it) that said: with brexit happening, we now have 1 GB more space in the EU.
14
thats witty
 
Haha
 
10:44 AM
@Sean Do u see this a best approach creating self role ever edit, say self_user_edit, self_profile_edit, self_attendance_edit etc
 
To me it would depend on how you want your system built. Having the ability to take away access to one's own resources might be useful for certain use cases, such as banning or locking accounts
Otherwise you could just add an IF check in your ACL to check for resource "ownership"
 
and are u taking about adding this slef_edit permission on login, without storing this in database right ?
@Sea
@Sean I have already build 80% of my Application. I want logged in user to edit his profile but restrict him to edit others. I have a permission Edit_profile which if i set for this user, can edit EditProfile method
 
Anonymous
@Gordon Were you for or against Brexit?
 
I guess If would be better for me
if( false == has_permission('Edit_profile') || LogInUser->id == record->user_id ){
EDIT ALL PROFILES CODE
}

Right @Sean
 
@ScoRpion Seems like it would work the way you want it to
 
10:53 AM
Yes, Thanks Sean.
@Sean
 
still looking for some help
willing to paypal if someone can figure this out for me
 
You can @Hybridwebdev If u have any better approach for me
 
no
as in i need help
 
@Hybridwebdev so for e.g. gridify(12,4) what are you expexting?
 
@samayo I am german, so I wasnt entitled to vote. But I am against a brexit obviously.
 
10:59 AM
i am expecting that it'll go through something like this:
 

« first day (2078 days earlier)      last day (2853 days later) »