« first day (1384 days earlier)      last day (3554 days later) » 

12:17 AM
A computer is like an onion: cutting through it makes you cry, but it's somewhat tasty afterwards. — Alek yesterday
 
12:37 AM
@bwoebi first reddit post ^.^
 
1:03 AM
@Jack pronon?
 
@Danack he wrote it in french apparently :P
 
"Oh hon"
 
@Danack I blame Apple spell check for that!
Then again, may as well have been French lol
 
@Jack Y U delete your accountu?
 
I didn't .. deleted the post to correct the spelling.
Cos reddit doesn't have an edit function
 
1:16 AM
I see
@Jack Damn it, because of that I'm browsing reddit again and landed here
 
lolwtf
 
@HamZa Why did I click on that?
 
hehehe
 
I know reddit isn't a place I want to be but I still click on it anyway
 
/b/ is probably definitely worse.
 
1:24 AM
@Jack 4chan?
 
yup!
 
heh
 
Blarglglglglglgl
 
hey does anyone here know how that box with of option of addthis can be made to scroll down with page ? thanks
 
php doesn't do scroll.
 
1:38 AM
i know
 
For like five minutes I was searchin for "iOS share dialog" and I just couldn't fucking find anything because of fucking Facebook results ... turns out it's called UIActivityViewController ... fuck!
 
1:55 AM
nvm i did what i wanted.
 
See, that's why I don't use any anti-virus software, can't trust 'em :)
 
2:37 AM
Hi
Does anyone know what I should be googling when trying to get more results when a "view more" button is clicked?
Like a 1 button pagination.
 
3
Q: How to add "View more results" kind of functionality in my PHP based website?

Coder007I want to make a website which will recommend users books according to the genre selected by them. I am using PHP, JavaScript and mySQL. The problem is that there will me almost more than 100 books for a particular genre. I want to display only 10 books at a time and subsequent next 10s to be vi...

 
tytytytyty
 
@Jack lol that answer is so prehistoric that even YCS would be ashamed when he sees that
 
heh
@HamZa speaking of him, it seems that he was banned again?
For a year!
 
2:52 AM
@Jack indeed, a very long ban this time too
it seems he was rude or something like that again somewhere
 
well, some people in here are rude too, but i don't see them banned for that long
 
@Jack Yea, but when you start getting banned for it and then you keep getting banned for it
 
true, true
he seemed an okay guy to me, but his snarky comments and dv behaviour are quite telling.
 
Yea, personally I never ran across anything that bothered me
Of course I've all but stopped answering PHP questions on SO
 
so you're just here for the room? :)
 
2:58 AM
Pretty much
I can't look at anymore...it is too brutal
 
user895378
3:26 AM
I only use SO for room 11
 
@rdlowrey hey, did you ever add things to the documentation yourself?
 
user895378
you mean the php.net docs?
 
user895378
(the answer is no, if so)
 
user895378
I'm terrified of the docbook editor.
 
i've contacted philip, but his reply was fairly open ended, giving me the idea that i'm responsible for docs as well heh
this is of course regarding the fingerprint function and context option.
 
user895378
3:29 AM
I've been fortunate in that the docs team was able to do most of the openssl stuff for me because the relevant RFCs had all the info they needed.
 
user895378
But since there was no RFC needed for the peer_fingerprint stuff no one bothered or knew to bother.
 
user895378
If I were you, I'd just try to put the relevant info together in a markdown file and then we can get someone to handle the rest.
 
sounds like a plan.
@rdlowrey quick question ... was there any particular reason why php_x509_fingerprint_match() is not inside xp_ssl.c?
if there is, then that would be fine, just seems like it would be a better place imo
 
user895378
Well my logic in that whole organization was ...
 
user895378
xp_ssl.c is only for stream things.
 
user895378
3:34 AM
php_x509_fingerprint_match() exists for an actual userland function.
 
eh?
don't you mean openssl_x509_fingerprint()? :)
 
user895378
Oh, that's what I was thinking of.
 
they're both in openssl.c now, but I think the former should be in xp_ssl.c
 
user895378
If that function is only used with streams then yeah.
 
because it's used when the ssl context option is given.
 
user895378
3:35 AM
oh okay. Then yeah, that should be moved to xp_ssl.c
 
okay, thanks, i'll move it then.
 
user895378
Great. Lemme know if you run into issues or anything. Good find.
 
:D
 
user895378
All the streams-related things are supposed to be in xp_ssl.c. Having stream stuff spread out over openssl.c and xp_ssl.c is a big part of why trying to fix things in the 5.4/5.5 branches is such a PITA. It's all a jumbled mess from people bolting on things after the fact and just shoving them into openssl.c
 
$file = ['xp_ssl.c', 'openssl.c'][rand(0, 1)];
 
user895378
3:46 AM
Seems that way.
 
user895378
Looks good!
 
user895378
@DaveRandom E_TOTALLY_WORN_OUT ... will push the socket lib tomorrow. Passing out now.
 
user895378
@Jack me = sleep. Have a nice day :)
 
see ya! :)
 
4:01 AM
I am back.
 
4:21 AM
From outer space?
 
yes :)
 
4:45 AM
mornin'
 
@tereško morning
 
5:01 AM
first phpdoc commit .. w00t ^^
 
morning
 
morning friends. :)
 
morning yogesh bhai.
 
@YogeshSuthar Oh, welcome back
 
5:19 AM
@Nileshpatel @Leri morning.
 
 
2 hours later…
6:57 AM
@Nileshpatel English only please.
@jned29 That doesn't sound like a PHP question to me, you are in the PHP room.
 
Either PHP is really getting less popular or all answers are found on the site.
 
@Jack What makes you say that?
 
Yeah, there are lots of PHP programmers.
 
morning
 
Morning @Patrick
 
7:04 AM
@SecondRikudo Based on the fact that more people come here and ask JavaScript / HTML stuff.
People besides us.
We just come here to waste our time.
 
@Jack We need onboxing for our room guidelines
 
hmm?
 
So when I link to dont-4, it'll resolve to "Don't ask JS questions here"
 
hah
Alternatively, just yell DONT-4 at them until they stop.
 
@Jack heh
 
7:06 AM
Please help me .
what is wrong in this
 
DONT-4!
 
@Prashant That you're asking it in the PHP room.
DONT-4!
 
morning @PeeHaa
 
uuugggh mornign...
 
you guys are boring
(:
 
7:08 AM
@AlmaDo Level?
 
@PeeHaa Wasted again last night? :P
 
@SecondRikudo : dont-4!?????
 
@Jack 0
 
nice
 
@SecondRikudo Yeah kinda
:P
 
7:09 AM
@PeeHaa you ahame me. I'm afraid to lose title of most famous slacker here :(
 
@Prashant Yeah, dont-4, and if you had read exactly 2 minutes before you arrived, you'd see that we were just talking about it.
This is PHP, not JavaScript, don't ask your JavaScript question here, because we won't answer it.
 
@Prashant ask your question in JavaScript room
 
ok
thanks
 
no imagination. You guys have just lost great opportunity to troll :\
 
@AlmaDo I don't want to troll newcomers...
Why the hell would you want to troll newcomers?
 
7:14 AM
depends of how you do that
well, you just kicked him off (: So doubt I can be blamed :p
 
You can always be blamed @AlmaDo.
Always
 
:'(
:-)
 
Morning
 
@RonniSkansing moningi
 
Almost friday
 
7:17 AM
oh, yeah. btw, I've forgotten to say "morning" sigh no sleep..
 
Morning @AlmaDo
Time for coffee and a magic bean
 
@RonniSkansing \o/
 
hi what you mean? [cv-pls]
 
Any of you guys use Angular btw. I have a few pain points I would like to talk with someone about... one of the being the way it handles CSRF
 
7:19 AM
@Boopathi j.mp/18eUa3Q
 
@PeeHaa thanks
 
np
 
@RonniSkansing isn't angular client-side?
 
Yes
...
 
so, then, how would it do csrf?
 
7:21 AM
I will try my luck in the JS room ;)
 
they will probably tell you that you need a server-side component :)
 
Write me back asap. Oh, lord, sorry for late reply. Forgive me, please. — Leri 12 secs ago
LOL ^
 
@Jack, in angular, there is a a buildin protection against csrf, basicly you send the client a special named cookie, the client then uses the value from the cookie as a header value (something like X-XSRF) in all subsequent calls.
 
ah
 
7:25 AM
eh
 
@RonniSkansing so... you need a server-side component
 
yes =]
 
what do you need to talk about then?
 
good mornings
 
I am confused about the setup. Normally when I do csrf protection I use a token that is regenerated after each request. Angular only accepts the token to be exchanged in the initial request and then uses the same token as a request header in the rest of the session.
 
7:30 AM
what's wrong with that?
 
Hi, is there anyone that can help me to resolve an error in codeigniter pagination?
 
And I am just not sure about that.. =] like generate token, persist token, send token as cookie. Check header on all future request matches the token
 
also... where does it store the token?
 
Angular or the backend?
 
angular
 
7:35 AM
I created the pagination in code igniter, but the page links are not working correctly in the view, for example, I have 5 records totally, I set two per page. so there are 3 pages. first two pages are working fine. when i click on the number 3 page link, it is redirecting to page 4 always. but it shows as page 3 in view but goes to page 4. I can't figure it out.. I am using codeigniter and its pagination class.
 
@RonniSkansing you still need to store the token in a session.
 
@vignesh_ms is this a new project or a legacy app?
 
@Patrick New project buddy
 
@vignesh_ms then PLEASE don't use codeigniter in 2014...
 
@Jack I am doing this atm. 1. create token. 2. save token in session. 3. save token in cookie. 4. On subsequent request, check if the X-XSRF-TOKEN HTTP header is set and matches the token in the session.
@FlorianMargaine I am not sure, I think it just keeps the cookie until it expires
 
7:37 AM
@Patrick Are you serious? Why? Is there any problem with it?
 
(:
 
@vignesh_ms yes. It is not maintained anymore. It is absolutely outdated. Doesn't use OOP. I could go on
 
@Thank you, I already decided to try another framework in upcoming projects. which framework do you recommend?
 
php?
 
yeah.
 
7:43 AM
all php frameworks suck
 
@HamZa I need help with L31, can't go any further.
 
^ I was in temptation to create a bot for it, but..
 
@AlmaDo every language and framework have bugs. we have choice to select one which have minimal amount of bugs. :p
 
not quite so. reason isn't in bugs (which persist in PHP itself as well)
 
7:45 AM
It's looking kinda impossible, been on it since yesterday... gotten close though, buuut.
 
hehe
 
Use php, use composer to pull in the components you need for your projects.
If you don't feel comfortable building things from scratch, I guess you could use Silex
 
I always like to reinvent the wheel even if it is difficult. but my management need an framework, mvc, I don't know why..
I will try silex, thank you
 
morning
 
Good monrings Room elevenses :)
 
7:51 AM
Morning salathe
 
user986408
@vignesh_ms Silex for quick stuff, Symfony for huge stuff.
 
@skripted php for huge stuff... :)
 
user986408
@Patrick I looked into Go a few days ago, I'm kind of leaving PHP anyway :)
 
@skripted How is it?
My transition is more towards NodeJS
 
user986408
Well, I did Node for a very long time, been into the communities, tried all new modules and frameworks (from Express, to Sails.js ...) but I just hate JavaScript on the backend.
 
7:57 AM
So, JavaScript is something that looks nice from the front, but not from the back ;-)
 
I think everything won't look good if talk about it from the back
 
@vascowhite morning. loooong time
 
@AlmaDo Yeah, I've been giving SO a rest for a while.
 
user986408
Node is really cool, you get started extremely quickly but at some point it's just weird, you might get into callback hells (unless you use some external library like async.js or use promises in general), error reporting is fucked up, it just disappointed me in the long run.
 
8:00 AM
@vascowhite it's such a very, very poor excuse (: Just admit - you were slacking :p
 
@AlmaDo lol, OK, you got me :)
 
hehe
 
@skripted the guy in my team who loves go is always introducing static stuff into the code. Not sure if there is a relation... :P
 
user986408
Idk :D
 
@SecondRikudo You fix the server?
 
8:09 AM
@Fabien Yeah, ended up reinstalling
Thankfully it wasn't anything critical, so I could take 3 hours of downtime
 
@SecondRikudo That's my goto fix for when I bugger up near the beginning.
 
My new resolution, never use anything -(r|R) on the same line with .
 
Rikudo you should've tried izanami on it. lol
 
Hmm, should current(), next(), etc. work on generators and iterators?
 
@Jack Isn't it kinda the point?
 
8:12 AM
well, it currently doesn't
 
.. What do you mean?
 
@Jack Nooooooooooooooooooooooooooooooooooooooooooooooooooooooooo.
 
@salathe no to what exactly? :)
 
Oh, the functions
Thought methods on the iterator
 
@Jack No, to your question...
 
8:13 AM
There's two bugs that are in favour of such a thing.
 
I think those functions should be wiped out from existence.
They're dirty, they leave implicit and invisible state, and are practically not very useful.
 
@Jack There's lots of bugs saying that all array_* functions should work for iterators... doesn't mean they're right.
 
Please stop animating mr tracy
@salathe I'm not talking about array_ functions here.
So, perhaps current() should really be array_current().
And of course I'm aware that sort() is one of those funky exceptions .. and perhaps I've missed one or two other obscure functions.
 
@Jack But you are talking about array functions.
 
@salathe Yes, I'm talking about functions that currently only operate on arrays ... but since they're not "namespaced" as array functions, it could be argued that they should be more permissive.
 
8:17 AM
@Jack I guess, it could be argued...
 
hmm actually ... they do work on objects, just not in the way you would expect haha
with current() and next() you can iterate over an object's properties .. including private ones.
i suppose it would break bc if i "fixed" that =D
 
Absolutely :)
 
@Danack Hm, for php 6 it might make sense to do the lsp checks
 
@NikiC PHP "7"
 
@iroegbu That sucks as well. :-)
 
8:23 AM
You can remove what you don't want...(twig and the likes)
 
@NikiC Yep. And just to check, the default values aren't part of the lsp check are they? Should they be allowed at all in interface definitions?
 
@Leri sigh, what's wrong with silex now?
 
@Danack hm, dunno. our lsp checks are very weird in general
It's "kinda sorta lsp maybe"
 
lsp = lumpy space princess?
 
@Jack Liskov Substitution Principle?
 
8:26 AM
teeheehee
 
@Jack Pimple and its api. :) I hated working with silex and will never touch that again
 
mornings
 
@Leri which one is the most off-putting?
@SecondRikudo Actually, this stuff comes up when you search for just LSP :)
 
@Jack $obj = $app['my.obj']; // nay I don't want that. :-)
 
@Leri yeah, well, it's great for prototyping though
 
8:30 AM
@Jack I'm... not sure how to respond to that...
 
inorite
 
@Leri You mustn't use pimple...
 
@ircmaxell hehe, nice ;) Looks like the "echo"s need to stay :)
 
Does prototyping actually happen in the real world? Where you start over all again if the project gets used?
 
8:32 AM
@Patrick Prototyping happens it's just that often the prototype ends up in production :P
 
@PeeHaa That I have seen more than once :D
 
@iroegbu Pimple is essential part of silex, without it it won't be silex it will be collection of symphony libs put together. :-)
 
Which is why I think a prototype should be started as if it was a real project, not with a prototyping framework (whatever that is)
 
'Morning you magnificent coders \o/
 
@PeeHaa how is your CMS going?
 
8:34 AM
Jimbo did something with Silex, Doctrine and Auryn...
 
@RonniSkansing Pretty nice. I am working on an indesign connection now which is kinda hard to do
 
indesign connection?
 
Morning dave
 
@RonniSkansing Render to paper catalog functionality
 
as a core thingy?
 
8:40 AM
Yes core module. It's what makes me get bigger clients
 
=] cool
 
Still busy @PeeHaa? :P
 
Yes. I will be available tonight I think
 
@PeeHaa I once tried to do a CMS; I don't think I made it properly, but it did work ;P
The other day I wanted to start a new project, but IDK if what I made is good enough so I'm pondering on using Symfony instead of that "cms" - how would I go about knowing if it's good?
 
@MoshMage Sharing the code here will probably result in "why the fuck did you do that there" and stuff like that. That's how I do sanity checks :P
 
8:43 AM
+  $reflection = new ReflectionClass('SelectQuery');
+  $group = $reflection->getProperty('group');
+  $group->setAccessible(TRUE);
+  $group->setValue($query, array('search_index.sid' => 'search_index.sid'));
+  $group->setAccessible(FALSE);
probably one of the worst snippet I've had to write
 
@PeeHaa Coolio. I won't be between 7-10pm my time :P
 
I want to become more active and create some OS projects, but I need some name where I can put them together. Any ideas?
 
@Leri I don't understand what you're missing
 
8:55 AM
@Leri github
 
@SecondRikudo Name? i.e. I want projects to have something in common.
@Jimbo :D not what I meant.
 
@Leri Oh
 
@Leri You mean you want to pull an rdlowrey and have a naming convention :P
 
Start all your libraries with Z
Or, name them backwards, like...
Xatar, Pma
Trela
 
8:57 AM
LOL
 
just passing by.. c'ya guys!
 
I think I'll follow @Fabien and start translating ass in different languages. :D
 
> Overall: 18 713 installs
30 days: 3 641 installs
Today: 67 installs
18k, not bad :D
 
I'm a bit concerned about the PHP standards list. People are being nice to each other, it's not very... PHP
 
wut
 
8:59 AM
@Jimbo ?
 
@DaveRandom Probably because they're excited there's some actual standards with php
@FlorianMargaine My very simple and poorly coded twitter api lib
 

« first day (1384 days earlier)      last day (3554 days later) »