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

00:17
A computer is like an onion: cutting through it makes you cry, but it's somewhat tasty afterwards. — Alek yesterday
00:37
@bwoebi first reddit post ^.^
01:03
@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
01:16
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.
01:24
@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.
01:38
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!
01:55
nvm i did what i wanted.
See, that's why I don't use any anti-virus software, can't trust 'em :)
02:37
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!
02:52
@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? :)
02:58
Pretty much
I can't look at anymore...it is too brutal
user895378
03:26
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
03:29
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
03:34
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
03:35
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
03:46
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! :)
04:01
I am back.
04:21
From outer space?
04:45
mornin'
@tereško morning
05:01
first phpdoc commit .. w00t ^^
morning
morning friends. :)
morning yogesh bhai.
@YogeshSuthar Oh, welcome back
05:19
@Nileshpatel @Leri morning.
 
2 hours later…
06:57
@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
07:04
@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
07:06
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
(:
07:08
@AlmaDo Level?
@PeeHaa Wasted again last night? :P
@SecondRikudo : dont-4!?????
@Jack 0
nice
@SecondRikudo Yeah kinda
:P
07:09
@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?
07:14
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
:'(
:-)
user924016
Morning
@RonniSkansing moningi
user924016
Almost friday
07:17
oh, yeah. btw, I've forgotten to say "morning" sigh no sleep..
user924016
Morning @AlmaDo
user924016
Time for coffee and a magic bean
@RonniSkansing \o/
hi what you mean? [cv-pls]
user924016
07:19
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
@PeeHaa thanks
@RonniSkansing isn't angular client-side?
user924016
Yes
user924016
07:21
...
so, then, how would it do csrf?
user924016
I will try my luck in the JS room ;)
they will probably tell you that you need a server-side component :)
user924016
hehe
Write me back asap. Oh, lord, sorry for late reply. Forgive me, please. — Leri 12 secs ago
LOL ^
user924016
07:23
@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
@RonniSkansing so... you need a server-side component
user924016
yes =]
what do you need to talk about then?
07:28
good mornings
user924016
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.
what's wrong with that?
Hi, is there anyone that can help me to resolve an error in codeigniter pagination?
user924016
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?
user924016
07:31
Angular or the backend?
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
07:36
@vignesh_ms then PLEASE don't use codeigniter in 2014...
user924016
@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.
user924016
@FlorianMargaine I am not sure, I think it just keeps the cookie until it expires
@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
07:41
@Thank you, I already decided to try another framework in upcoming projects. which framework do you recommend?
php?
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..
07:44
@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)
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
07:47
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 :)
Morning salathe
user986408
@vignesh_ms Silex for quick stuff, Symfony for huge stuff.
@skripted php for huge stuff... :)
user986408
07:55
@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.
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
07:59
@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.
@vascowhite it's such a very, very poor excuse (: Just admit - you were slacking :p
@AlmaDo lol, OK, you got me :)
hehe
08:00
@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?
@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 .
08:11
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?
well, it currently doesn't
.. What do you mean?
@Jack Nooooooooooooooooooooooooooooooooooooooooooooooooooooooooo.
08:12
@salathe no to what exactly? :)
Oh, the functions
Thought methods on the iterator
@Jack No, to your question...
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.
08:13
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.
@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 :)
08:20
@Danack Hm, for php 6 it might make sense to do the lsp checks
@NikiC PHP "7"
@iroegbu That sucks as well. :-)
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?
08:25
@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?
teeheehee
@Jack Pimple and its api. :) I hated working with silex and will never touch that again
mornings
08:27
@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
@Jack I'm... not sure how to respond to that...
inorite
08:31
@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?
@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. :-)
08:33
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/
user924016
@PeeHaa how is your CMS going?
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
user924016
indesign connection?
08:39
Morning dave
@RonniSkansing Render to paper catalog functionality
user924016
as a core thingy?
Yes core module. It's what makes me get bigger clients
user924016
=] cool
Still busy @PeeHaa? :P
08:42
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
+  $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
@Leri github
@SecondRikudo Name? i.e. I want projects to have something in common.
@Jimbo :D not what I meant.
08:56
@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
LOL
just passing by.. c'ya guys!
I think I'll follow @Fabien and start translating ass in different languages. :D
08:58
> 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
@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 (3789 days later) »