« first day (1661 days earlier)      last day (3290 days later) » 

12:11 PM
Q: How many tickles does it take to make a squid laugh?
A: Ten-tickles.
 
SEO spam is funny:
> I came across-your contact over the-web and wanted to-share a brief note. I think a few-changes, aesthetically and/or SEO-wise, can make your site-convert more-visitors into leads
Yeah my site could use some love ty :P
 
yeah, I see your manhood needs fondling, let us do it for you
 
> Get incredible erections to make your lady happy
You will become the kind of lover you never new possible
Guaranteed to help , we guarantee we have it on our site!
Not sure whether I want my erection on their site though
 
Hello
 
yo
 
12:19 PM
I have a question about smarty, like if i have one layout.tpl and in its body I want to load different tlp
but how to set data into those tpl
as i am loading the only layout tpl from my controller
 
user895378
morning
 
o/ flowery
 
morning
 
morning
 
user895378
12:21 PM
I had a really unproductive weekend. Time for some code-based self-flagellation.
 
guys any link or idea? I really appreciate
 
@rdlowrey what do you consider an unproductive weekend? laying on the beach?
 
user895378
@ziGi that would have been more productive than what I actually did, which was mostly just lay on the couch.
 
@rdlowrey yeah, same here, I hate it
 
user895378
I did mow the lawn, so there's that.
 
12:25 PM
you can buy one of those babies
 
You can also get a robot hoover, the "roomba"
 
yeahj
 
and I have my own robot @DaveRandom's mum, for when she's not around in an evening - I showed her that T_JIZZ_ARROW we've all been talking about
 
user895378
|   <-- the line                                              --> @Jimbo
 
Man, we use PHP, we're way over the line anyway...
 
Anonymous
12:33 PM
TIL: PHP === Philippine Peso
 
@rdlowrey Do you ever go to any non-US conferences?
 
user895378
I haven't ever been to any PHP conferences anywhere
 
How come? Just no interest?
 
Anyone going to the Dutch PHP this year?
 
user895378
I had drinks with @ircmaxell in NYC two Christmases ago but that's as close as I've gotten.
 
12:34 PM
@rdlowrey I've been to drupal conferences; does that count?
 
Anonymous
Because @rdlowrey does not agree with anyone :p
 
user895378
@Jimbo Just haven't ever gotten around to it.
 
@rdlowrey You should consider it... they're all usually a really good laugh, great for networking, lots of food, beer etc...
 
user895378
Yeah I will try to get to one sometime this year.
 
user895378
@samaYo I learned this when I did some twitter hose tweet filtering on "php" ... lots of unrelated Filipino content
 
12:41 PM
I love people who expect others to do all the groundwork for them just because they add "please" to their question..
 
@Epodax it's the magic word, you know :D
@Epodax can you write a social network for me, also market it and give me all rights, PLEASE?
 
posted on May 04, 2015 by Synchro

Major changes: * Automatic opportunistic TLS encryption even if you don't specify `SMTPSecure = 'tls'` * Parsing of SMTP server capabilities * The html2text class in extras had to be removed for licence reasons, inject your own converter * Better...

 
@ziGi It needs to look just like Facebook right? And you want me to work in the weekends as well?
 
yes, PLEASE!
 
@Feeds That TLS thing is kinda nice
 
12:46 PM
like facebook but call it BlueBook and make it also a search engine
 
And it should be better than google
 
make it the best search engine in the world, please
yes
please
 
@ziGi FaceBukake?
 
haha
 
@PeeHaa It's everything that PHP mail() isn't. Which is a lot
 
12:47 PM
Although I mostly use swift for no other reason than I used it once and it worked
 
@PeeHaa - Making php projects dirty since 1999
 
:-)
 
should we add github.com/Laravel/laravel/releases in the room's releases? :3
 
They don't even do proper github releases
 
@FlorianMargaine They may vote you off the island out of the room for that man
 
12:49 PM
@PeeHaa sf2 is worse :P
 
Can you give someone collaborator access to just a specific branch on github?
 
@Jimbo no
@Jimbo just tell him to fetch your branch on his fork and work on that
 
@FlorianMargaine ...
 
@FlorianMargaine trololol
 
@Jimbo and lol at his attempt to get access -- that's not how github works...
 
12:54 PM
@FlorianMargaine So saying "You need to fetch this branch on your fork and that'll give you access." will be understandable then
 
@Jimbo or just tell him "push the branch on your own fork, I'll fetch it from there"
@Jimbo then I'll tell you how to do it
:P
@Jimbo it worked on its own ;)
look at your PR :D
 
@FlorianMargaine Yeah, I see how it's still linked to it somehow...
 
@Jimbo just git fetch origin; git rebase origin/pulls/109 your branch, it'll be fine
 
I get invalid upstream from pulls 109
 
git branch -a output?
 
1:04 PM
fatal: -a and -r options to 'git branch' do not make sense with a branch name
:D
I'm in deep git...
 
Are you trying to pull a repo?
 
@Jimbo just run git branch -a
I was asking for the output of this command
 
* glenscott-master
master
remotes/origin/HEAD -> origin/master
remotes/origin/glenscott-master
remotes/origin/master
 
That means you're in the local version of the glenscott-master branch
 
git rebase origin/glenscott-master after the fetch then
 
1:10 PM
@FlorianMargaine man git fetch: any tag that points into the histories being fetched is also fetched … but pull requests don't point into histories being fetched. You need an explicit git fetch here.
 
@FlorianMargaine I just get "Current branch glenscott-master is up to date."
 
@bwoebi ah damn.
 
What have you done...!
 
@Jimbo not sure how to update your code against the PR...
 
git fetch origin pull/109/head:tmp_branch; git rebase tmp_branch @Jimbo
[you could also work with FETCH_HEAD]
 
1:12 PM
@bwoebi That did some stuff, I have no idea what...
 
haha
 
He created a new branch called tmp_branch and pulled the PR into that
 
yeah no
 
So after I make some changes, I now merge this with the glenscott-master branch on my local?
 
he wanted to update his glenscott-master branch with the PR's code
 
1:15 PM
If something went wrong, just checkout reflog…
 
...
 
@Jimbo You don't really get what you're doing here? First learn some git… then come back ^^
 
@bwoebi I know some git, but I don't do rebases or anything like that
 
Why isn't there a DDD channel in here
 
But, I've just followed your instructions, and it's got me in shit, so I need to get back :P
 
1:18 PM
@Jimbo In that case, just go into your target branch… Then
git pull --rebase origin pull/109/head
 
Okay, I think that's put me back to where I was
 
@Jimbo run a git log to make sure
 
Merge branch 'glenscott-master' of github.com/J7mbo/twitter-api-php into glenscott-master
Looking good
 
a merge commit sucks :/
 
Is this what I'll have to do when I want to get it all pushed to master?
 
1:24 PM
@Jimbo Use a Pull Request directly on GitHub. It's much cleaner
 
@Machavity the problem is that he wants to add code on the PR too, and let the original PR sender add his own code too
 
Ah. Then in that case just push to that branch on GH. Should append to the PR
 
the branch is read-only
 
bleh
 
well, the branch is on the guy's fork
github automatically creates a read-only branch matching the PR code
@Jimbo when pushing to master, you'll just need git checkout master; git merge glenscott-master -no-ff
And don't merge the PR itself
 
1:32 PM
How do i decode HTML entities posted with jqgrid in php, the posted data is of JSON type , after decoding it , the space appears in it's HTML form "&nbsp;" , if i call the php HTML decode function i get a null
here is the json object filters
{"groupOp":"AND","rules":[{"field":"4","op":"cn","data":"&nbsp;"}]}
This is how i decode it $filters 		= 	json_decode( $_POST['filters'] );
And this is how i am getting my data
foreach($filters->rules as $filter){

$searchField = $filter->field;
$searchOperator = $filter->op;
$searchString = $filter->data;
 
@Jimbo when you use DIC, do you have a constructor on all of your controller where you define what is going to be injected? (the services most likely, and some factories)
 
@ziGi Not necessarily, you can do method injection
Some people separate their controller / actions into a controller directory with an individual action being it's own class file, and I kind of like that (haven't done it yet though)
But yes, I have a base controller which has common things injected via constructor like the Request, User, Session etc
Problem with that is it's easy for the base controller to be some sort of god object as it contains all the things, so I'm leaning towards the former - an individual class for each controller action for good SoC
 
ok, that sounds interesting
but isn't that making quite a lot of classes then?
I think the class is not concidered a controller anymore if it's just a separate action per class
 
@ziGi Well, it is a controller, but just for one action, right
Yeah, it's a lot of extra classes
 
Good morning
 
1:39 PM
@marcio I'm not sure what you mean?
 
@ircmaxell mornin'
 
@Jimbo I would separate them in two: Query and Command since I use CQRS
 
how's it going?
 
so then you have like 5-10 actions per controller max
 
@ircmaxell Following git suggestions in here in my first attempt at being nice and collaborating on github
 
1:44 PM
alright, this is pretty cool: platform.sh/blog/deploy-github-pull-request (disclaimer: something from my company)
 
Hello guys I need help in php... i am implementing date picker ..so i select two date and on search button click i want to send that two values to php function..but how can i do that
 
@FlorianMargaine that link doesn't seem to be clickable?
 
i have 3 different file 1 for javascript 1 for php and another for css
 
oh now it is
 
awesome
 
1:45 PM
:S
 
@Jimbo btw even if you split all your actions, you still have to inject Request, User, Session everywhere, so I don't see what is the harm of putting them in the abstract class
 
@ziGi will every action need request/user/session?
 
almost all of the time
but I see your point Florian
 
any one can help me?
 
@ziGi Tbh perhaps a service layer would provide that additional required abstraction so you don't have to DI your request etc in every controller? Well, everyone says that a class with too many components is doing too many things...
@FlorianMargaine I believe it worked and I pushed successfully to the glenscottmaster branch :-)
 
1:49 PM
@Jimbo I see, thank you for the shared knowledge
 
@Jimbo you can even create a PR from here ^
(and you should, if you want travis to run)
 
@FlorianMargaine After all this, if I want to tag it as 1.0.0 before I merge, can I do that or is it too late?
 
good mornings.
looks like it just moved over from tuxradar and has been update for PHP 5.6 - hackingwithphp.com
 
@Jimbo I'd tag separately... but you can do it anyway. Tagging is just adding a label on a commit.
 
@FlorianMargaine Everything will already be in master though when I merge
 
1:56 PM
@Jimbo the tag?
 
@FlorianMargaine Okay, so basically I'm ready to hit that merge button but I want it to be v1.0.0. Should I just merge, then on github itself add a 1.0.0 like you said?
 
@Jimbo git tag -a v1.0.0 -m "v1.0.0" and git push --tags once you have everything locally
Or can github itself also tag shit?
 
posted on May 04, 2015 by kbironneau

/* by Sord */

 
@PeeHaa Florian reckons that they're just labels?
(on github)
 
They are
Ah yes github also provides a way to tag shit
> Choose an existing tag, or create a new tag on publish
Never seen that before
Makes sense though
 
2:04 PM
GH Tagging is the same as Git tagging, just gives you a nicer interface
 
2:23 PM
@Jimbo merge. You can tag any commit anytime.
 
@FlorianMargaine Will do, after bloody travis catches up with the commits... -.-
@FlorianMargaine I think it worked... github.com/J7mbo/twitter-api-php/pull/110 :D
 
@FlorianMargaine Where's the github tags bit?
 
/releases
@Jimbo but
It's a git tag, and a github release
Don't confuse both
Github releases create or use git tags
 
2:42 PM
For a public repo, I would use GitHub releases. Since it's how users will get your code, it offers you an opportunity to comment on the tag. A git tag is just a git tag
 
Jimbo, I am still trying to understand, why is it necessary to make a class for every single action. Isn't that overengineering in a way? Although I agree that only the instance that has to be executed will be instantiated so it would be quicker than instantiating a controller with 20 actions and using only 1 of them
so SoC would be complete
 
/me nudges @Danack
 
@Ocramius You still thinking in town or 'up north' ?
Oh, and will you have eaten already?
 
in town, mainly because co-workers live around Cabot Circus
and no, will not have full stomach :D
 
hey @Ocramius I was working with Symfony a few days ago and I think I saw your name somewhere in a package that is being used in the FW
 
2:45 PM
so
what have I missed ?
 
@Ocramius k. Tell me where to meet then and time eta. Oh actually can you DM me your mobile number?
 
Ah, yes, exactly
 
@Danack do you have gmail or such? My mobile is german anyway, so it's like a pound per message :-P
 
@Ocramius I have gmail - Danack@basereality.com.
 
2:48 PM
looped in, thx
 
@ziGi It isn't necessary, I'm just saying it's an option. One person's over-engineering is another one's necessary abstraction
It would be faster and there would be a cleaner separation of concerns as everything you constructor inject will be used - that would negate the need for method injection then as well
 
@Jimbo to be honest I like your version too
yeah, otherwise you might inject things that are not going to be used by the actions
 
@FlorianMargaine Sorted, thanks for the help today - I owe you a beer :-)
@ziGi Exactly. I always maintain controllers don't adhere to SRP, because of all those actions doing different things with different requirements. But perhaps having an individual one for a class would bring us closer to SRP
 
has anyone seen this before
 
No, because I don't download code over plain HTTP and try to run it directly.
 
2:58 PM
@Danack did you get any jabber notification or such?
 
well that's what Packagist suggests
 
I feel dirty
I pulled an @Ocramius
 
true
 
@ircmaxell That probably means that you've done everything right [your last tweet]
 
https did the trick
 
2:59 PM
well, for speed, I am doing some really... weird... thigns
 
is the repo public?
 
it's a stateful parser, with hierarchical states (think nested states)
@bwoebi no
I used an array queue for the states, but got a 2x perf boost by switching it to an integer array
 
@ircmaxell eh, stop pulling
 
@Ocramius Ah, no. If it's a Google+ product you mean, then it's probably not enabled for my account. Just send via Twitter DM.
 
$state = ($state & self::STATE_MASK) | State::CONSUME_TO_WHITESPACE; // change current state
$state = ($state << 8) | State::DOUBLE_QUOTE; // push new state
$state >>= 8; // pop state
$state & 0xFF; // get current state
 
3:01 PM
Did you compare that with PHP 7?^^
 
no... let me run that now
actually, not much faster
php 5.5: 0.068 seconds on average
php 7.0: 0.058 seconds on average
 
Well… that doesn't really surprise me. But now compare the version without integers…
Should be much faster on php 7 than php 5
 
I don't have that version anymore
 
...
 
now, I do need to test this on HHVM
 
3:05 PM
@bwoebi Sounds very hacky, but might work ^^
 
yeah, that sort of code should be nicely optimizable with HVVM and even more with Recki^^
 
yeah, I'm going to hand code this as a PECL extension at some point
which should make it MUCH faster
 
@NikiC Except, when parent scope is global scope… And you do $_GLOBALS["var"] = &$ref; … then the reference won't be updated in local scope… sigh.
 
@bwoebi when a new variable is created in the closure, is that one supposed to show up in the parent scope as well?
 
I can do both. Not sure what's better.
What'd be much stabler would be using VAR in every case and doing also an IS_INDIRECT check there.
but the impact of changing VAR instead of CV should be probably much smaller, I guess?
 
3:09 PM
@bwoebi did you measure the cv impact?
 
@NikiC not yet… let me do that now.
 
@NikiC no
 
@ircmaxell this is such a shitty abstraction
 
huh?
how so?
 
@ircmaxell Well, you're supposed to treat the closure like it's just any code block (that's the justification for this imho rather questionable behavior in the first place), but then you keep newly created variables in a separate scope despite PHP not having block scope
 
3:12 PM
it's not like a code block
that's the point
 
@ircmaxell thanks, I'll look at it shortly. first looking at cv impact
 
it automatically has access to the parent scope, but it's a new scope all together
 
@ircmaxell I've been told by a bunch of people that closures should work the same ways as say, an if {} or a for {} block
 
uhhhh
no
 
That being the justification for having (reference-like) scope sharing in the first place
 
3:13 PM
that's one way to design a language
and JS took that approach (bind all variables unless explicitly declared in a specific scope)
 
honestly still think this is ridiculous and we're better off with nice, predictable by-value binding
 
perhaps
 
Hey guys, I need a regex to match only " (" and ")" from the string "Foo Bar (foo.bar@gmail.com)". So far I have /[\s()]+/, but it selects the space between Foo and Bar. Any help?
 
That does not require writing ($i ~> () ~> $i)($i) to get the binding behavior you intuitively expect
 
@PedroPinheiro if you mean the text between ( and ) you want something like /(([^(]+))/
chat strips escapes
/\(([^\)]+)\)/
 
3:19 PM
@JoeWatkins Actually no, I need the space open parenthesis " (" and the close parenthesis ")"
 
@NikiC that may be reason enough...
 
@NikiC no. That's not the justification. The justification is that you'd intuitively expect modifications when modifications are done.
 
@JoeWatkins I think I found it: /(\s()|())/
 
This time I ran against a debug build… bah…
 
@bwoebi It's one of the justifications ;)
 
3:30 PM
@NikiC just going by time, CVs impact is already up to 6%…
 
@bwoebi That's a lot more in line with what I'd expect
 
and 3,5% more instructions
@NikiC Totally.
Totally crazy idea now… What about pointing the var offsets directly into the original scope or symtable (if original call frame is already destroyed)?
...
It'd mean manipulating the op_array at runtime though…
 
@bwoebi that's pretty much a no-go
 
o_O
 
@ircmaxell aka lexical scoping
 
3:36 PM
@NikiC why? pass_two does it too?
 
@FlorianMargaine but it has nothing to do with blocks
 
@NikiC no, seriously, why?
 
@bwoebi ah what? pass_two is compile-time
 
@NikiC I don't mean modifying the original op_array, but copying the op_array on the vm_stack and modifiy the cv pointers
 
o_O
 
3:41 PM
@bwoebi yeah ... no
 
I feel like I must be totally insane…
 
@bwoebi Which is, of course, not bad at all!
 
@bwoebi welcome to the club
 
A certain degree of insanity comes with the job :P
 
Yeah, I'm just trying to be creative. I just don't see what's so bad about my idea.
 
3:43 PM
you do, you started with "crazy idea now"
 
There are only 2 types of people in this industry: those that are new, and those that are insane...
 
@bwoebi for once, this is a pretty expensive setup operation
 
@NikiC I don't expect it to be more than 1 KB to copy…
in usual case
 
@ircmaxell when you're new, you don't know what is crazy ... when you're not, you know what is crazy, but suggest it anyway :D
 
@NikiC I just can tell you… assigning each CV with an IS_INDIRECT pointer into cv is also not that cheap. Because ht lookup.
 
3:52 PM
@bwoebi oh btw you shouldn't do indirects into hashtables
they can be reallocated
 
@NikiC yeah… but symtable is a list of indirects into cv…
you need it to fetch information
 
@bwoebi sorry, wasn't clear before your edits what you meant there. sounded like you had indirects pointing into a ht
 
@NikiC Also, why not? As long as nothing is rehashed?
(except it's doubly indirect, that might be bad)
@NikiC My WLAN was weird… got your replies only later, sorry.
But just to say… it's not going to be cheap in any case.
no matter what you do
And another problem are dynamic variables because they're just present in symtable…
 

« first day (1661 days earlier)      last day (3290 days later) »