« first day (1964 days earlier)      last day (3209 days later) » 

00:04
@Danack parse_str is a bit weird though…
php > parse_str("a[]=b&a[]=c", $a); var_dump($a);
array(1) {
  ["a"]=>
  array(2) {
    [0]=>
    string(1) "b"
    [1]=>
    string(1) "c"
  }
}
php > parse_str("a=b&a=c", $a); var_dump($a);
array(1) {
  ["a"]=>
  string(1) "c"
}
that is the correct behaviour though...
@Danack defined by what standard?
please, search it for me; I've never found that standard describing it as correct behavior.
This doesn't say it precisely, but: w3.org/TR/html401/interact/forms.html#h-17.13.4.1
application/x-www-form-urlencoded

This is the default content type. Forms submitted with this content type must be encoded as follows:

Control names and values are escaped. Space characters are replaced by `+', and then reserved characters are escaped as described in [RFC1738]
Which doesn't explicitly say arrays are encoded the same as query string arrays are encoded.....so I'm still searching.
correct behavior would actually be $a = ["a[]" => ["b", "c"]] for first example and $a = ["a" => ["b", "c"]] for second AFAIK.
@Danack my point is, you won't find such a standard. It's really just field=val concatenated by &. And PHP is deliberately not converting that to an array and forgetting about previous fields with the same name and instead parsing [] as array
Which just so happens to be the thing that all browsers expect it to do?
00:14
@Danack browsers do nothing special except what the RFC says. It's PHP who does special parsing here.
Wes
Wes
it's irrelevant for browsers, no?
yes it is.
It's PHP removing values.
PHP didn't invent it ....it's almost certainly a perl-ism.
it's reinterpreting the query string in its own way.
Wes
Wes
github.com/WesNetmo/php-dot-querystring this for instance works just as well with dom api
00:15
@Danack I have no idea. Or maybe they did it for comfort.
at least $_GET["foo"] looks better than $_GET["foo"][0]
Wes
Wes
...actually going to bed now. gn :P
00:35
I need this to be something...real
 
1 hour later…
Wes
Wes
01:54
thou shalt not sleep
lol
what a timezone to be in
Wes
Wes
i'm in this timezone as well, but i live in europe
in transylvania to be precise
...as i live during night and i drink blood
heh
How thinks about commit vendor folder to the repository abot private enterprice project?
once in a lifetime, than never again because you won't
@Wes lol I actually wanted to comment something like "10$ says you're actually not asleep"
Wes
Wes
02:06
i slept 3 hours this afternoon and was a bad idea :(
:p just took a nap before the hockey game, I was sleeping standing
Wes
Wes
lol, that's dangerous
@NabiK.A.Z. in case it wasn't clear, do not commit your vendor directory
@wes, how sleep less time? I like it but can not, and my sleep is very long!!!
well, at least we do not allow real checks so I can't really die out there
Wes
Wes
02:08
you must be young, once you reach 25 you will sleep less
I guess I'll find out :p
I wish I'd be hired on a laravel project. just to participate in the discussions later on.
Wes
Wes
i'm not a scientist [laughs]
but... as your body grows mostly while you sleep, once you stop growing, you will need to sleep less
Wes
Wes
:P
maybe it's the other way around? when you stop sleeping you stop growing o.O
Wes
Wes
02:12
also coffee helps
Wes
Wes
I CAN QUIT WHEN I WANT
@FélixGagnon-Grenier but evrybody after pull, must be run composer update, beacuse someone maybe change composer.json, also after pull on server, must run again composer update!, and also it is possible confilict between version of third-party soft, I means is some one of team have diffrence of packages...
Wes
Wes
i'm just slightly addicted to coffee. i promise
:P
that's partly why you commit your composer.lock also
but with a correct composer.json, you shouldn't have third party libraries conflicts
unrelated: I wonder if champagne guy's arm recoils in his balls after the hit from the bottle (in the pinned by @Feeds post)
02:14
@Wes lies
that I tell myself as well
Wes
Wes
lol, programmer's best friend
@NabiK.A.Z. composer install on the production server - not update.
lol @myFace ^^
@Danack yes I mean same.
02:21
But so I thinks better is commit vendor, It seems more reliable. and team and server dont need to self composer.
@NabiK.A.Z. you may find this interesting.
read the fine manual:
3
> Commit your application's composer.lock (along with composer.json) into version control.

This is important because the install command checks if a lock file is present, and if it is, it downloads the versions specified there (regardless of what composer.json says).

This means that anyone who sets up the project will download the exact same version of the dependencies.
@NabiK.A.Z. committing vendor may be interesting if you have time to slow down all your GIT interactions big time
@Danack with your permission I'll proceed to try and change my inner feeling when I'm tempted to rtfm someone. much peacelier
02:36
@Danack @FélixGagnon-Grenier That was interesting. I did not know about composer.lock and the difference between the install and update. So I thinks must commited composer.json and .lock, And so have a bash script: git pull & composer install ?!
@Ocramius I dont have with speed, beacuse the project is it not public, and my team is limit, so just one time need download and pull all project, so no problem with size of vendor folder.
@NabiK.A.Z. please do not star a message as a way to say thank you
nor that it was useful
stars are a bit complicated but should be reserved for meaningful comments that apply to many persons, even when out of context :)
in any event, gotta go cya
@FélixGagnon-Grenier I star it beacause that's favotrites answer for me! I didn't know is for all !
@FélixGagnon-Grenier I still pronounce it 'fucking'.
With this workflow, After each git pull, Does everyone of team and server must run composer install ?!
 
2 hours later…
04:51
moin
Wes
Wes
\o
05:09
\o/
/o\
Who do I have on one of the many anti-CoC sides that can review this article draft without calling my sexuality and motives into question?
that's a serious question ... we are so fucked ...
Wes
Wes
05:37
¯\_(ツ)_/¯
i need to find a software that shows windows registry statistics, just for the fun. on average every computer has million keys in it imho
it's virtually infinite
and from what i can see, it's mostly junk
05:57
@JoeWatkins I am not even sure what he's trying to say
he's asking for a "no voter" on the CoC RFC to review his article, fairly ...
since he is a looks like heteronormative white cis male, he should just shut up
:D
@tereško :P :P ha ha ha
Wes
Wes
you'd expect programmers to be open minded progressist entities, but no
@JoeWatkins when you say "we" i hope you mean the whole... humanity, not just php :P
06:04
developers have this nasty habit: we spot patterns
Wes
Wes
not sure what you mean
Check on the intern during their first project
@Wes I mean that opposition of CoC has nothing to do with open/closed mindedness but about what follows. Like we have seen with Atheism+, Occupy Wallstreet, Gamers and what has happened in other developer communities (think python).
... can someone bin that gif?
Wes
Wes
what happened to other developer communities? i haven't been following CoC much
06:21
Is there a quick way to wrap selected text with an HTML tag in Pstorm using a hotkey or something? Say I want to highlight a block of text and then wrap it in <p> tags. I feel like I read about it at some point in the docs.
Wes
Wes
@crypticツ ctrl+alt+j
awesome, thanks!
Wes
Wes
yw :P
o.O
mornin
06:55
Hi guys
Please check out my question
0
Q: Auto update div inside slider jquery when MySQL changed

Vintage BeefI want my div content inside slider jQuery automatically update when MySQL has changed or has a new row added. My code : index.php <html> <head> <script type="text/javascript" src="//code.jquery.com/jquery-1.11.0.min.js"> </script> <script type="text/javascript" src="//code.jquery....

07:07
dammit ran out of coffee
Good morning
Who is Jeeves?
@VintageBeef are you aware that questions usually come with question-marks?
posted on March 02, 2016 by Joe Watkins

Fig 1. Several LanguagesI should hope that the majority of people reading this consider themselves polyglots. A polyglot is a person able to speak in many languages; It's almost a requirement of programming that we should know more than one language. Using the right language for the job is a worthy aspiration to have. When you, or I, as a programmer are setting out to write a new product, o

Hey you guys
@Epodax Ask Jeeves
07:19
mornin' !!!
@Jeeves Who the debugger are you?
Hey so I have a simple question

form\Element

form\element\Layout

form\element\Decorator

Would you :

element->setDecorator() and element->setLayout

OR would you

layout->setDecorator() and element->setLayout($layout)
!!man awk
[ awk [ ] awk [ -F fs ] [ -v var=value ] [ 'prog' | -f progfile ] [ file ... ]
Okay, so it's not a bot... or wait is it?
07:20
@兜甲児 in any case, I would remove the pointless newlines
its a chat bot @Epodax LOL
what is "decorator" in this case?
!!man Jeeves
@Epodax Command not found. Have you tried Windows instead? It's great and does all the things!
DOesn't he have a command list? :o
07:22
now i got rid of windows and installed centOS ... gonna play around for a while with it...
@tereško Well, the layout is how are values laid for an element, the decorator adds decorations to said layout/element
!!imdb kung fu panda
@兜甲児 decorators (in the pattern sense) usually aggregate the to be decorated instance
^ I don't think that's what he's going for
07:23
Right, this is a "decorator"
I cant call it OutputSpitterWithBlings
N'stuff!
I would just had a template file ..
But well said @gordon
@Gordon How do I found out what my php function matches my personality? :(
Jeeves isn't being helpful right now!
@兜甲児 making a "form builder" (which it looks like you are trying there) is usually a horrible pain in the ass
isn't it
07:26
@Epodax you want to know which php function you are?
Don't call him stripslashes
@Gordon According to a stared message I can ask Jeeves to find out!
!!docs @Epodax
[ explode ] Split a string by string
07:28
@Epodax there you go
!!docs @Gordon
aaah
[ ord ] Return ASCII value of character
[ crypt ] One-way string hashing
!!docs @Epodax
[ ord ] Return ASCII value of character
!!docs @crypticツ
07:29
[ crypt ] One-way string hashing
!!docs 兜甲児
!!docs @兜甲児
[ htmlspecialchars ] Convert special characters to HTML entities
oh funky, when I edit my message, Jeeves also edits it's message
alright
makes sense
kind of ...
07:30
heh
!!docs @Jeeves
@tereško btw about templates, yes $layout->loadFromString(
or fromString whatever
I think we broke Jeeves
ok, so apparently Jeeves tries to find matching strings. G-ord-on, hence ord
cryptic -> crypt
!!docs @Gordon
07:32
[ ord ] Return ASCII value of character
Just curious
!!docs @crypt
[ crypt ] One-way string hashing
psssh, no kidding
!!docs Kyra
07:33
haha
[ key ] Fetch a key from an array
!!docs @rumba
something tells me this uses same stuff as pattern=ekin in any php manual url
[ umask ] Changes the current umask
@兜甲児 I usually go with an improved version of this: chadminick.com/articles/simple-php-template-engine.html
07:34
um ...
right
also, stop playing with the bot
Ekin yes
Just trying to find whats the algorithm on the naming
you can check the code on GitHub
@tereško But he followed me home, can't we please keep him?
@tereško ah yeah cyth's templating engine
been there
thanks for the link though
07:35
I used php 10 years ago.
And I came back to php again.
cool :)
Which is the best template engine.
for PHP
?
Wes
Wes
php is best php template engine
Any Advice...
I remember cake was good.
cake is a framework, not a template engine
07:36
yeah ... do a bunch of blow
oh ... about php
I am going to make a SNs.
what is a SN?
I think Wordpress is a good start
.
template engine, isn't that like smarty?
for reference...
07:37
@iamslash I think you are trolling
cake is a lie... but the cube is forever
Wes
Wes
me too
smarty is so 2003
php.net/manual-lookup.php?scope=quickref&pattern=cryptic it using this and then fetching the first result
@Wes But isn't Smarty a template engine?
Or am I getting something wrong?
Wes
Wes
it is
07:38
Wooo! I'm not completely dumb!
Wes
Wes
today popular ones are blade, twig, mustache
but raw php is still the best :P
Hrm, what about Zend then?
Wes
Wes
does zf have a template engine?
07:41
Not idea tbh
@Wes Dude you look so much like the guy from myth busters
Can you recommend opensource CMS like wordpress ???
I think wordpress is good. But I got a hunch for better product.
Wes
Wes
@兜甲児 i suggest you watching "the walking dead" :P it's a nice series. the guy in my avatar is an actor
Oh
well he looks like a mixture between the two guys from myth busters
Not a tv guy here
btw my pic? yeah ... my dachshund all pimped out
@iamslash bolt.cm
07:47
Isn't there a thing like IRC 2.0 ... with user pics
I remember microsoft chat, the comic book mode, it was hillarious
@兜甲児 slack, hipchat, so chat
slack even has irc integration
shame irc itself has not evolved much
but @ircmaxell has evolved to slackmaxell
:O
Do you guys enjoy coding mostly at night time

« first day (1964 days earlier)      last day (3209 days later) »