« first day (1938 days earlier)      last day (2999 days later) » 

12:01 AM
@cspray done
 
Awesome. Thanks.
 
god the MySQLi API is horrible
so horrible
 
@Andrea PDO is a tiny bit better … an own abstraction ideal ^^ (eih, I like amphp/mysql API :-D)
 
PDO is pretty nice
PDO reminds me of Python's database API, which is also nice
hmm
can we add lexically-scoped variables to PHP
mostly just for foreach's sake
 
no. But we can add break the reference after a foreach loop.
 
12:10 AM
Yes but only if the keyword to declare the scope is my. Mmmmm, perl.
 
@bwoebi okay
@Charles :D
@Charles then we just need to add shift and it's complete
 
Na, shift alone is incomplete without @_.
 
:)
 
And down that road lies madness and newbie confusion.
 
@Andrea at least I'm (often enough) using the last value of the iterated array, but never on a by-ref array iteration assigning to it…
 
12:13 AM
hmm
I'd like it if we just unset a foreach var at the end of the loop
 
I wonder how much non-bug BC breakage that would cause.
 
as said, no, please no. It'd break code from up from PHP 3.0
 
I know at least three places in the code at work where we intentionally reference the foreach var.
 
posted on February 05, 2016 by bwoebi

amphp/artax v2.0.2

 
D:
okay, new keyword after all?
oh, we don't even need a new one
foreach ($someArray as var &$k) {
   ...
}
// $k is no longer set
now for the party trick
foreach ($someArray as var int $a) {
    ...
}
var float $foo = 1 / 0;
one day.
goodnight
 
12:17 AM
Ehm, Andrea, please go to Go and find something to complain about … this isn't fun any more what you do to PHP here :-P
 
why did I add weak return types. My greatest regret
 
@Andrea I'm happy we have them
 
@bwoebi function returnsBool(): bool { return "false"; }
 
@Andrea oh, return
sorry, can't read.
then I totally and fully agree
 
I should have asked internals before I made that decision. Alas.
I suppose they might be useful in some cases, but...
 
12:27 AM
@Andrea Create a RFC for 7.1.
I'll vote yes.
 
@bwoebi But the release process RFC...
We're not supposed to break BC
 
@Andrea hmm?
eih, 7.1 is a minor, not a micro
 
1:06 AM
@bwoebi still can't break BC under semver
 
@Andrea but it's not semver…
 
@Charles I'm going to be giving this talk next week - at my local user group docs.basereality.com/ValueCaseForUnitTests/#
 
hello :D
rename only works if file is at same location that script ?
 
1:29 AM
@AmadeuAntunes no, it works fine anywhere, you just need to provide either an absolute or relative path to the file e.g. rename(__DIR__.'/../../img/foo.png', __DIR__.'/../../img/bar.png');
 
1:41 AM
thanks:D
I have other question, how can i make a name that never be repeted in server to files ?
 
i dont know use it
if i use it , time() will it any time repeat the same?
 
thanks :)
 
I recommend NOT using the system temp dir. Create a directory in the project somewhere.
s/comming/coming
 
@Danack why not?
 
having 10k files in a single dir that is accessed by many processes is kind of not great.
if nothing else it makes doing ls in the tmp dir be annoying...
 
2:53 AM
why appear stanges caracters in page adota-me.tk/anunciar.php ?
 
525
Q: UTF-8 all the way through

mercutioI'm setting up a new server, and want to support UTF-8 fully in my web application. I have tried in the past on existing servers and always seem to end up having to fall back to ISO-8859-1. Where exactly do I need to set the encoding/charsets? I'm aware that I need to configure Apache, MySQL and...

 
it show me � caracter but its set to ansi
 
user5722584
3:28 AM
hi
 
user5722584
guys
 
user5722584
i have a question
 
user5722584
i am creating a php api
 
user5722584
this is what i have so far:
 
user5722584
<?php
$createusername = '';
$createpassword = '';
$createfirstname = '';


if($_GET['create']) {
	if($_GET['create'] == 'user') {
		if($_GET['createusername']) {
			$createusername = $_GET['createusername'];
		}
		if($_GET['createpassword']) {
			$createpassword = $_GET['createpassword'];
		}
		if($_GET['createfirstname']) {

		}
		if($_GET['createlastname']) {

		}
		if($_GET['createnickname']) {

		}
		if($_GET['createdisplayname']) {

		}
	}
}


?>
 
user5722584
3:29 AM
to call this api
 
user5722584
it will be something like this
 
why it is saving in database Cão when should be "Cão" ?
 
user5722584
@AmadeuAntunes you talking to me?
 
user5722584
3:32 AM
i am not done with the api yet
 
user5722584
it will insert into my own database
 
user5722584
the goal of the api is to where people can create cms and use the api to manage it all
 
user5722584
@AmadeuAntunes
 
user5722584
but my question is
 
user5722584
am i doing this right
 
user5722584
3:35 AM
anyone
 
user5722584
any help?
 
3:49 AM
@NBOT creation should be a POST, for one thing
 
user5722584
but it is being passed in the url
 
user5722584
@jbafford
 
And if you're emitting JSON, you should probably be receiving it as well. So rather than all those get parameters, json_pasrse() the POST data, which should contain an object with all the required data.
it shouldn't be passed in the url.
 
user5722584
i am not using JSON
 
user5722584
@jbafford
 
user5722584
3:52 AM
and i have seen many php apis being passed in a url
 
that may be so, but I can't comment on them because I don't know what you're looking at.
 
you do not need to use JSON but when you want to create a real API you have to use POST to create a new resource
 
user5722584
but i do get what you are saying
 
I assumed you were using JSON because that's what's at the other end of that link you provided.
but in any case, creation should not be GET.
 
user5722584
no that was a example link
 
user5722584
3:54 AM
sorry
 
user5722584
my fault
 
user5722584
i see what you are saying
 
user5722584
<form action="mydomain.com/whatever" method="post"
 
user5722584
that way i do not have to do php
 
user5722584
hey you helped a lot i think i will switch to post
 
user5722584
3:55 AM
now that i think about it
 
user5722584
@jbafford
 
user5722584
one more thing is there a compiler for php?
 
Has anyone used sonata admin with symfony2? I am trying to export a an entity (document) to csv
Does anyone know how to do that?
Example I can do something like

public function getExportFields()
{}
public function getExportFields() {
return array (
'title'
);
}
But this doesn't work

public function getExportFields()

{
return array (
'tags->title'; //
)
}
 
4:51 AM
moin
@Wes they look nice ... but not a fan ... they are plastic and have medieval suspension ...
I'd rather have something a bit older with a bit more ... class ...
nobody buys vettes here, because there are corners to contend with ...
you had me at old ferrari ...
 
5:28 AM
@Wes 30k for a murican car? <_<
 
5:46 AM
0
A: How Do I load pthreads extension in CLI?

Joe WatkinsYou already have the desired result, but don't seem to know why ... The key parts of your configuration are: configure options If PHP is being built with Apache DSO SAPI, you must use --enable-pthreads=shared, this causes the build process to create a DSO (shared object, dll in windows speak) ...

@Ocramius hopefully he changed his mind and got the ferrari ...
 
mornin
 
'nin
 
Wes
@JoeWatkins yeah, muscle car suspension
 
yeah, like ox carts in ye olde times ...
 
Wes
iirc the c6 still has the torsion bar - whatever you call it, spring leaf maybe?
 
5:58 AM
or like roman chariots had ...
 
Wes
lol yeah that
 
cool to look at ...
 
Wes
the engine is ferrari levels though
 
but what about weather, and corners, and bad roads, and real life ...
you know why they never gave a roman chariot 700 hp ?
 
Wes
meh i don't think so, it's not that i will drive it on track
on the road will work fine
 
6:01 AM
it's not really about the power of the thing anyway, it's about how much it can put down, and how much it can keep down round corners ...
 
Wes
the 90 ferrari is double as expensive and it will probably break down every moment
 
but you will own a ferrari ...
there's no comparison imo ...
 
Wes
lol
 
maybe there's something in between the two
 
Wes
i like jap cars a lot but they aren't making good stuff recently
 
6:04 AM
well, except stupid stuff ... lfa ... too focused on economy to make anything really great, everyone is ...
 
Wes
the brz is a step backward compared to my current car (rx8)
 
although that said, some of the best are hybrids now ... which is horrid ...
 
Wes
370z is oldie... and heavy.. not a fan
gtr is too expensive for me
 
ah the gtr, I forget about those ...
awesome ... you never see them on the road .... exclusivity must be nice ...
 
Wes
mx5 they made it ugly
 
6:06 AM
yeah angry looking
 
Wes
honda is not doing anything good in decades
 
2 seaters ?
 
Wes
no preference, 2-4 it's the same
the cayman is great and i could even consider to spend that amount of monyz, but it's such a clichè...
 
yeah you said you don't really like porches ... I think they are worth considering ...
 
@bwoebi Your tags do all miss a change summary. github.com/amphp/artax/releases
And you retagged 2.0.2…
 
6:13 AM
@Wes jaguar (f-type) ?
 
Wes
oh i love that, my second favorite best looking car :P but it's too expensive
 
dunno what conversion rate is ... shame ... they are sexy ...
 
Wes
it's about €70k
 
oh :o
 
Wes
6:18 AM
\o
 
moin @Anmol
 
Wes
i don't have many options
 
Wes
have to check something second hand
 
yeah probably best, can still be a bit new ...
I can't find f-type coupes ... probably because who is gonna sell theirs ... but maybe someone somewhere is ...
it opens up the possibilities whatever ...
 
6:30 AM
@Ekin yes, "clean code talks" are mostly about TDD. But the reason why I link to those videos is because, while writing unit test might not be an option, there is major overlap between "testable code" and "well designed code". If you aim for one, you get the other for free. The guidelines are basically the same.
 
Wes
f-types are too new to exist second hand... maybe in few years
 
@Wes ferrari .. do it :D
loadsa convertibles actually
^coupe
 
Wes
not a fan of convertibles unless they have hard top
 
/me dribbles
 
Wes
lol
@tereško seen "predestination" ?
man that was good
 
6:35 AM
@tereško I see, yeah it makes sense.
totally irrelevant but can anyone can tell me what "provable metaphysics" means?
 
an oxymoron
 
@bwoebi You still have to use a tagged version of amphp/file in Aerys.
 
sounds like bullshit
 
Wes
@JoeWatkins idk... uk's very far from here... but a jag with right hand drive is a kinda cool thing to have :P
 
you could look closer to home, but probably the best market for them here ...
 
6:37 AM
@Ekin there is a word for "provable metaphysics". We call it "physics".
 
@kelunik no, I mistagged with a wrong tag name the first time (which I removed)
 
Wes
i need moar money - need to start a drugs cartel
 
@Wes I hear they can be rather dangerous you know ...
 
Wes
:P
 
@ indeed. Someone wrote me "aren't 'proof' and 'testing' what metaphysics is all about? "http://qr.ae/ROgEON
 
6:40 AM
I'm just gonna leave the coupe on my screen for a while, I have a million windows open and none of them have anything nearly as beautiful as that on them ... it deserves some screen space ... @Wes
 
@kelunik That's what the CHANGELOG is for… the tags are just to make composer work :-P
the summary of tags is a github feature, nothing inherent to git
 
I suck at changelogs ... sometimes, they just contain a joke ...
 
@bwoebi I know and you should use it. ;-)
 
@kelunik nah, not going to.
 
Sucks when you're looking at releases and just see a lot for preparing to tag messages.
 
6:41 AM
@Wes downloading
 
Wes
@JoeWatkins :D it's beautiful
 
@JoeWatkins just update it each time you change something … (obviously if you do an change-all-the-things refactor, then it's going to be harder :-D)
@kelunik well, I'm never looking at them and searching for a CHANGELOG or NEWS file instead ;-)
 
I do try now, because I get told off when they are shit ... like you are being ...
I try to summarize on the tags page on github and sometimes on pecl, but package.xml fucks it up for me ... I have no idea how that file works ...
 
@bwoebi Doesn't matter what you personally do, we had it for the releases before you did them: github.com/amphp/artax/releases
 
@JoeWatkins pff, people always find something to complain … but a project should have some form of changelog IMO.
 
6:44 AM
github.com/amphp/amp/releases < And til Amp 1.0.5…
 
my commit messages are terrible, so when it comes time to do the changelog on tags page, I've totally forgotten what's happened ... usually closed bugs is all I can dig up ...
I need another me for this stuff, and documentation ...
and also to carry me around the house when I'm tired ... or bored ...
 
@Ekin the current scientific consensus regarding big bang theory is "we don't know". According to what we can observe, the total energy of universe (assuming matter is just a form of energy) is equal to 0. But that does not explain what caused the universe. You could say that big band theory ends where inflation hypothesis begins. To know what happened before the proposed "inflation period" ended, we will need to have a working theory of quantum gravity.
 
@bwoebi It's minor work each time to copy it from the changelog, but it's great for an overview over all releases.
github.com/amphp/artax/blob/master/CHANGELOG.md < The changelog could also include the titles of these issues or better even links.
 
@Ekin and with "inflation" I refer to this proposed order of events.
 
6:57 AM
@tereško which is the real quest as long as we're not even close to the required energy specs to observe apparent effects of it yet.
 
"Where did the materials that made up the Big Bang come from?"
the short answer is: "as far as we can tell now: it didn't come from anywhere and it didn't need to"
 
7:12 AM
Yeah, there is no provable answer to the question unless there is a solid reasoning/understanding over the "it didn't come from anywhere" bit. I guess this is the bit where some people tend to switch over to non-logical thinking and they end up daydreaming about "existence". Or some thinks that matter was always "there" existing whereas they accept universal laws fail at the bang.
 
people want everything to mean something
 
indeed
 
Good morning and happy Rebecca day
 
7:22 AM
meurning!
 
Can someone help me to confirm this isn't an error that occurs because of our servers but on the other side? pastery.net/ytdqxw
Someone tested a form on 1 of our websites but I got that in my mailbox.
And it seems when just e-mailing this specific person we get the same message.
 
so you want me to mail you?
 
Not really, but it seems there is something wrong with "xyz@otherHost.fr"? Which is not in our hands. But I think the person can't receive our mails, and I want to be sure of that. :D
 
@Duikboot The receivers host (the one hosting the receivers email account), might be rejecting the email because of some silly reason, it could be lacking DKIM / SPF, or because your server isn't running static IP. I've had this happen a couple of times.
But you can usually see the status in your mail.log
Or if your mail server doesn't have a reverse dns.
 
@Duikboot if you have a gmail, try mailing with that? if that works, then it's probably your ends fault :)
 
7:38 AM
Well we used gmail to mail the person directly, but also that fails.
 
Wes
7:49 AM
 
@Wes not gonna be a scientist .. more likely a project manager
 
haha
 
Wes
eheh
 
@Wes :D :D
 
Friday! o/
 
8:03 AM
@tereško did you play xcom enemy within?
 
yes, a lot
 
I just got that too, enemy unknown showed me how addictive this can get
 
the EW version is just a better version of EU
also, dont bother researching laser weapons, go directly to plasma
 
yeah I saw it adds some more nice stuff
 
!!friday
 
8:13 AM
morning
 
!!> echo 'Happy Friday!!!';
 
Wes
^ bad ass :D
 
:P
 
8:54 AM
@FélixGagnon-Grenier Confused - I do both :-)
 
moin
 
o/
 
posted on February 05, 2016 by nlecointre

/* by Fabien */

 
Wes
@rtheunissen do you removed me from the repo? i may have accidentally unwatched it :B
 
@Wes it moved rtheunissen/ds
it's gonna move again when it's opened
 
Wes
9:09 AM
oh
 
Morning guys
 
!!> echo 'Happy Friday!!!';
 
!!> echo base64_decode('Z290dGEgZ2V0IG15IGJvd2w=');
 
9:13 AM
@AllenJB You have to wrap it in codeblocks
 
moin
 
Mogguh all
!!> echo 'Happy Friday!!!';
Does that work?
 
Oh damnit missed link
:P
Oh well
 
9:17 AM
yay :)
 
Ooh, nice. Markdown support :)
LOLWTF that domain actually works? xD
 
black friday
 
Still not used to those exotic TLDs
 
it would be nice if a majority of messages weren't for @Jeeves .... not that I don't like her, she's great, but it's going to get quite annoying ... #justsayin ...
 
@JoeWatkins meh, you usually get a couple of messages like that, then it's ignored for hours
it's the novelty of it for now
 
9:28 AM
hailo
what's the general opinion on codeigniter in the current time, as compared to other frameworks? does laravel have an edge?
i'm reading related articles online, but wanted to know the general inclinations from the room
 
CodeIgniter is lol. Laravel is for junior developers who don't care about best practice. Take your pick! :p
 
@Jimbo what do you go for?
*framework
(that encapsulates/encourages best practice)
 
pfft, jQuery ftw
 
> Laravel is for junior developers who don't care about best practice.
It does not prevent you from following best practices, so it's not really just for juniors. Just learn to code and Laravel is fine.
I agree with Joe, you can never get enough jQuery
 
:P
@AgniScribe CI is utter crap
Laravel is utter crap but at least is still being actively developed
turd in progress
 
9:42 AM
So.. we figured out whats crap. What are the alternatives?
 
components, or diy
 
In other words, reinvent the wheel?
 
urm ... no
 
Moin 11
 
9:44 AM
indeed @Sean
 
jquery? but i meant as a php framework
 
Thanks for the link Florian, but I am fully aware that you don't need a framework to make apps. I just don't think it's the best approach.
 
@AgniScribe </troll>
 
I can see people here bashing frameworks, everything is crap, but nobody (except you) actually came up with alternatives or at least a reason to why they are utter crap.
 
@FredrikEriksen Build something specific for the specific use case yourself if you are going to have to maintain it. There are lots of packages out there you can leveraghe
 
9:45 AM
well that's not really true
 
@FredrikEriksen I was typing...
 
Oct 20 '15 at 9:22, by Jimbo
@Sean Fair enough. It advocates serious architectural problems, like global state and 'facades', or did at first before it backed out of things like that and now provides alternatives - the others shouldn't have been there in the first place. Active Record (coupling domain to persistence) is heavily advocated and the argument is "it's easier for users" (bollocks). It's intentionally designed to couple every part of you to the framework with no escape
Oct 20 '15 at 9:22, by Jimbo
Add to that that the owner of it is an egotistical, arrogant asshole who has genuinely been horrible to other members of the community on twitter (I've seen him be an ass to Phil Sturgeon - saying "I'm going to stop you coming to this conference") and things like that...
Oct 20 '15 at 9:23, by Jimbo
It also steals ideas without attribution - I guarantee he robbed the auto-wiring injector thing from Auryn, nothing else out there does that and hasn't until that point in PHP land
Oct 20 '15 at 9:24, by Jimbo
Basically, all the things I like about the community - advocating best practice, helping each other to progress and succeed, it doesn't do, and I won't back something like that. For both technical and moral reasons
 
The worst part of laravel besides the like of architecture is taylor
Well taylor and all taylor followers / praisers
 
@PeeHaa I can agree with that, he has his own way of doing things, and his way is always the right one.
According to himself
 
if we were going to ban ourselves from using software written by people who have proven they can be arrogant and abrasive, most of us wouldn't have an operating system right now ...
 
9:48 AM
@JoeWatkins That's why I run windows!
 
I'm happy to bury my head in the sand over things I don't have a choice for :P
What I do believe in though, is being excellent to each other, and progressing each other
 
@JoeWatkins Linus is always ranting about code though
(insulting the author, but that's about the code he wrote.)
 
Not always :P
 
true, he's more focused, but not less of an asshole when he wants to be ...
 
4
Q: Why use Laravel

B-RellI am trying to understand why I would use Laravel instead in addition to using PHP. I get that it’s a “Web” framework which is helpful (almost necessary) when using another language like Python (using Django) or Ruby (using Rails). My point is PHP is already built to plug into a website. Since ...

 
9:52 AM
so what is the go-to php framework in one's opinion here?
 
@AgniScribe the one you are good with and that solves your app requirements
 
@JoeWatkins it's always been with people he knows though. I've never seen him ranting a newbie
 
@AgniScribe You might even find that a micro-framework suits your requirements, or a full-blown one
 
he does it in public, how would you feel about a manager, even if they weren't your manager, that berated their junior managers in front of the whole office staff, and also newspapers were there writing down everything he said, and who he said it too ...
 
9:54 AM
@AgniScribe I believe the PHP world is heading towards microframeworks and libraries / components. You choose components that are more specifically designed for what your project is doing, rather than trying to use monolithic, general purpose frameworks that you often have to beat into doing exactly what you want if you're doing anything slightly outside the norm.
 
@JoeWatkins yeah, that part I don't condone.
 
@JoeWatkins Exactly. I don't care how much money you make, or how popular you are. Imho, it shows how you are as a person by how you treat those who aren't going to help you further your career, or if you're not a popular person / speaker.. etc etc
 
@kelunik what acmeclient branch should I be testing against?
 
@AllenJB - makes sense
 
I did mention components ... but got "so, reinvent the wheel then?" ...
I dunno what to do with that ...
 
9:59 AM
What a framework can do, however, is provide structure and direction for a team where most are not seniors who are good with architecture and know the general direction they want to go
 

« first day (1938 days earlier)      last day (2999 days later) »