« first day (1885 days earlier)      last day (3062 days later) » 

12:00 AM
@FélixGagnon-Grenier It's running stuff in sequence, which is not the same as chaining. But chaining is such a cooler word.
 
@Ocramius well, "test" means "a complete code snippet" ?
 
btw if that code doesn't work, I'm almost set to publish the less hacky version which is in github.com/Danack/Tier/blob/master/src/Tier/TierApp.php
 
no, it means that you first write what you "want", and then you design the code over and over again until it does what you want :P
 
yeah, that's the one. I forgot the link at work. In any event, I rather tend to try writing the things
 
@Ocramius aha :-)
 
12:03 AM
plus you know it works :P
 
takes some time, but really, stop coding without an idea of what you are doing :P
 
I know what I want ...! Just sometimes I change my decision ;-)
 
@FélixGagnon-Grenier Cool. Feel free to hassle me to actually write documentation for this. btw looking at github.com/Danack/Blog might be a decent way of how I'm actually wiring this stuff up.
(Time spent writing code for Blog >>> time spent writing blog posts for blog, obviously)
 
12:06 AM
er.......mind you. There is a lot of 'legacy' crap in there as well. Just look at the good bits!
 
yeah, please write documentation, so next me won't have to roam through the code to get a picture of what's going on
hmmm... or don't. I'd get jealous :p
 
12:18 AM
<?php
	$action = (empty($_REQUEST['action'])) ? 'default' : $_REQUEST['action'];
?>
<!DOCTYPE html>
<html>
	<head>
			<meta charset="utf-8" />
	</head>
	<body>
		<div>
				<?php


					if(isset($_REQUEST)){
						echo '<strong>$_REQUEST: </strong>';
						var_dump($_REQUEST);
					}

					echo '<br/>';

					if(isset($_POST)){
						echo '<strong>$_POST: </strong>';
						var_dump($_POST);
					}

					unset($_POST, $_REQUEST);
				?>
		</div>

		<p>
				Why it keep $_POST and $_REQUEST?
		</p>
I don't understand why even if I refresh the page it keep the values
 
aargh {"property":"","message":"string value found, but an object is required"}
 
12:35 AM
finally got it working.
 
My website presents a API like this, it is a normal thing? it will be good?
 
12:50 AM
@Danack are you talking with me?
 
Ctx
Taxi Driver? ;)
 
@Shafizadeh if you don't want to spend the time making your own API spec, adopt one that is already made and community maintained. Like this.
 
I will take a look at it. tnx
 
1:53 AM
I ought to start using product in my hair:
 
heh. hopefully that comes with storm-controlling powers
 
@crypticツ Do you work with Wordpress at all?
I can't remember.
 
 
2 hours later…
4:16 AM
Ah… reddit.
Apparently since this is -1 (at the moment) that means people don't think I'm contributing to the discussion: reddit.com/r/PHP/comments/3wownq/how_do_you_see_the_phpfig/….
Downvoting on that subreddit means it doesn't contribute; it does not mean you disagree.
These things can vary by subreddit but I swear there aren't any subreddits that follow their subreddit rules on downvoting.
 
sup
yeah um
a lot of the things I post on reddit or HN get downvoted even when I'm being constructive
 
Yeah, way too many people use it for "I disagree" or "don't like this".
It's why some remove the downvote option altogether and only have upvotes
 
btw, submitted some php doc patches to persuade people not to use str_shuffle() as a CSPRNG (since it isn't crypto secure)
and updated uniquid() to point to random_bytes() not openssl
I dunno if anyone here can approve them but I figured I'd say it :)
 
I think I can do that but not 100% sure.
 
it's not pertinent, but hopefully it will reduce the incidence of the same mistakes I keep encountering
(I figured this was a more productive use of my time than trying to argue with a bunch of fools who decided to port GPG to PHP because they're allergic to "binary dependencies")
 
4:26 AM
Ah, I can't validate your patches, sorry.
 
it's cool
thanks for trying though :)
I'm sure eventually someone with access will be on as the same time as I am
anyway, I dunno when I'll next talk to anyone but I aim to have the RFCs I want written over the holidays and ready to be merged before the end of January
including pull requests, in most cases ;)
 
 
2 hours later…
6:37 AM
moin
 
7:16 AM
@ScottArciszewski for docs, ping @salathe
 
Good morning
 
onmi
 
morning
 
Good morning... ALL
 
7:31 AM
@MadaraUchiha Yes, I know. Besides WordPress, I make Android & iOS apps and sometimes on the server-side of things I encounter PHP and then I wish that I had learnt PHP before. But I think, in the start, even making templates and plugins for me would seem to me like a gallant task but as I gain ground on that, I'd also crave for a problem that gets me thinking, you know.
 
Hello everyone , Any one can help me with Intagram APIS ?
 
@MadaraUchiha Sorry for the late reply, my internet was down
 
Already Having just one issue and Want to ask if anyone can help
 
yes please..
what's the issue..??
 
7:35 AM
see I am creating app and Want to Like a media using api , I have done it and Using APIS it is giving me Success. But When I see that media , Like or comments are not updated, I am using Sandbox mode now.
 
you have used api.instagram.com/v1/media{media-id}/likes ???
@KrunalPanchal
0
Q: Instagram POST "like" in PHP isn't working any more?

user2488971Today I tried to post a like via PHP (Curl) without luck. The output is that a token is required but I used a working token. I tried the same token with JS and it works. Did Instagram changed some things bout PHP? Here is my code: <?php $media_id = '615839918291043487_528338984'; $u...

 
@SagarNaliyapara
Thanks for help. But I am getting below Response:
({"meta":{"code":200},"data":[]})
 
code 200 means success
check again like is updated or not
 
o/
 
bhai @KrunalPanchal thay javu jaoiye kem nathi chaltu ae to have vicharvu pade
:D
ane data ma to null j aave ne bhai
{
"meta": {
"code": 200
},
"data": null
}
aa response barabar j chhe
@KrunalPanchal
aevu hoy to media_id check kari le
aema kaik bhul nathi thati ne...??
 
7:45 AM
Please try to use English so that everybody here can understand
 
@KrunalPanchal
ok @4127157
i will keep in mind now
Sorry
 
No problem :)
 
@SagarNaliyapara Bro, I am thinking may be issue is My app is in Sandbox mode :/
 
man I could use a nap
 
7:48 AM
@Epodax ?
 
nap = sleeping for a short period of time
 
eih, having to actually closevote again instead of just closing crap is annoying
 
@KrunalPanchal you right that's the problem
If you set test mode in your api request it will work just like authenticateTestRequest but it won't attempt a transaction. @KrunalPanchal
 
Hey can anyone here answer this question of mine related to WordPress ? stackoverflow.com/questions/34249806/… been asking for a long time now, haha
 
Never use test mode in the sandbox, instead use the developer.authorize.net/hello_world/testing_guide
 
7:53 AM
Thanks guys Specially @SagarNaliyapara I am leaving for lunch now
 
Welcome bro Nadiyad aavu..?? :D @KrunalPanchal
6 minutes to go for lunch... :P
 
@SagarNaliyapara BRO BTW WHR are you from ? and What do you do ? JOB / Freelancer ?
 
ha ha ha
@KrunalPanchal
 
Ok cool add me to Skype , I am owner of IT firm in Nadiad :) @SagarNaliyapara
 
@SagarNaliyapara you are aware that there is a history function and we can still see what you wrote, right? If you don't want your info on the internet, don't post it on the internet.
 
8:08 AM
@Gordon Hey, tell me how? :P
 
morning!
 
8:36 AM
Post-apocalyptic futuristic robots run #javascript: now I see the problem. #Fallout4 https://t.co/WbNwJAqyjO
I LOL'd so hard
That game is absolutely amazing
 
@HamZa :P
 
@PeeHaa heya
 
@Abe I don\t even know what it is
@HamZa o/
 
morning all
 
8:52 AM
Also it is a utter piece of shit @Abe
Morning @Oldskool
 
@PeeHaa I do have my moments :P
 
:-D
 
moinz new peeepz
 
@Epodax those are pretty rare right? ^^
 
Moin Joe
 
8:58 AM
Indeed, so you have to enjoy them when they happen :P
 
Morning @JoeWatkins
 
posted on December 14, 2015 by nlecointre

/* by webbeur */

 
I've worked on mongo for a few days now ... I think I can feel myself becoming more web scale ...
 
9:17 AM
@Gordon please tell me how..
 
Abe
@PeeHaa it is?
 
@JoeWatkins :D
 
@SagarNaliyapara what how?
 
@Abe Yes it is
 
Abe
they told me it's the best piece of shit :B
 
9:18 AM
@JoeWatkins are you being eventually consistent?
@JoeWatkins and now again?
 
@Gordon you said
 
Abe
like, better than webmin and similar
 
@SagarNaliyapara @KrunalPanchal chat rooms are public by default.
Also, it's impolite to have "private" chats in a public room
 
but how i can see removed chat...?? @MadaraUchiha
 
Please take it to a different room (and remember, that would still be public), or to a different chat system.
 
9:22 AM
hover over a deleted message. click the triangle on the right side. click history
 
okay
\got it
thanks @Gordon
 
@Gordon only if you're a room owner (and maybe the owner of the message)
 
That's key thing you have tell @HamZa
 
@SagarNaliyapara still, what they said are true :-)
 
9:41 AM
so everyone can see removed message @HamZa
15
A: Can a User/Non-Moderator see deleted chat messages on StackOverflow?

balphaYes: In addition to moderators and the originally posting user, the room owners (of the particular room) also have access to the history of deleted messages. However, unless the message's (removed) stub is right there visible in the chat room (in which case you can click "history"), you'll have ...

 
I can
 
@SagarNaliyapara no, room owners and moderators
 
Got @FlorianMargaine Thanks..
 
Oh god. The hat whoring has arived again
 
@SagarNaliyapara does it matter whether it's all people or just some people? you deleted it because you didnt' want people to see it. but some people can. which brings us back to my initial statement: dont post stuff to the internet, you dont want to be on the internet.
 
9:54 AM
That header is so cute
 
oh... winterbash
it worked for me, the first year
 
Moin?
 
mon-ring to rule them all
 
and in the darkness yaml them
 
9:58 AM
Yeah @Gordon you right...
 
XD morning @gord @jimbo
 
next time i will keep in mind... :P
@Gordon
 
@Jimbo <mordor ftw="ftw"/>
 
@bwoebi Thanks!
 
i was not trying to prove your statement wrong...
@Gordon
 
10:00 AM
a wild Sebastian appears
 
> Question          Comment
  Item              Run
PHP Developer asks a Question!
The wild Sebastian flees!
 
sup bwoys!
 
hello i'm using socket_stream_client() to connect to a server for a very long time how do i check if the application is still connected to the server ? i turned the internet connection off but did not get any error
i want to check if any error happens close the connection an reconnect
 
stackoverflow.com/questions/34264009/… how is this getting up voted.
 
@epoda
@Epodax lol!
 
10:08 AM
"Your vote has been recorded" -.-
I want my instaclose powahz back
 
Abe
morning phpeeps \o
 
+3/-3 Jeez
 
@Gordon oh, you're not a mod anymore
 
@Sean Yep
+4 now
 
@FlorianMargaine that is correct. I had to step down due to time constraints
 
10:09 AM
In an email about projected work:
> "Meanwhile you should know that if you collaborate with me on this project it will be like no other work you have undertaken and might seal your position as one of the top webmasters in the World"
Um.
 
@Gordon well, you still have the golden hammer
 
@FlorianMargaine which apparently doesnt work if there is more than one tag on the question
 
> one of the top webmasters in the World
 
@Sean is webmaster still a thing?
 
@Gordon Apparently so! News to me :p
 
10:16 AM
... so 90s :-)
 
Its still a thing in the third world countries, such as mine :p
 
@Duikboot sql injectorz
 
indeedzz
Im checking a project I need to fix maybe.. it's full with this kind of things -_-'
Makes me cry
lol: sha1(md5( ... Not even tried to add a salt..
 
@Duikboot lol. Your life sucks right now :P
 
10:23 AM
Im not yet working on it I have to report it if we take this or not
What a hell :D Lets checkout the db connection now.
 
hello everyone need some help in php
 
Just ask.
 
already.
 
helo guys how to export a particular <div> tag to pdf, in that div it contains two html tables of dynamic content.
 
@Crysis that's pretty vague / broad isn't it?
 
10:33 AM
I have large database and i have fetch it using php and displayed in masonry layout and there is a div next to masonry div the data coming from database is set to random using Rand() function....now the problem is every time the page refresh the data reloads randomly and the size of masonry layout changes along with that the div next to masdonry also moves up and down...I want it to be steady
 
@Naruto ya i have tried many options like jspdf, pdfmake,phptopdf etc nothing helped.
 
@Crysis Well the main question here is, where does the data come from, do you make it, do you strip it somewhere, ... ?
 
@Naruto i fetch it from the database according to a certain category.
 
well if the output is made by you, then it shouldn't be hard putting that content into a pdf...
check out mpdf
 
ya its dynamic content so only iam facing the issue :(
 
10:37 AM
it doesn't matter if it's dynamic or not..
@MudassarSaiyed seems more like a html / css problem to me
 
@Naruto is there any solution for it?
 
for what?
 
Q: function always returns null even when there's no return? /cc @JoeWatkins :-)
 
Abe
yes @DejanMarjanovic
 
Yeah, I know, just wanted proof :-P
 
10:43 AM
@Naruto i will try mpdf and say thk u.
 
10:55 AM
mor to the mummy loving ning
 
@Naruto What Shall I do?
 
@DaveRandom Too bad I never get to hear the 'smooth jazz or sanitized pop songs' while waiting :( more like a repeat forever crap song :P
 
I know that when you need to access a class variable without instantiating the class you need to declare it as static. but now I heard in php that you can access a variable without instantiating the class via the scope resolution operator.. why is that? and what is the benefits..
 
@MudassarSaiyed ask the html / css guys? I have no clue?
 
@whatever where did you hear that?
 
10:59 AM
@Naruto We have Toto - Hold The Line on a loop at work because I like to really annoy people while they're on the phone
 
That page is terrible
 
0
Q: Why do most frameworks use package managers and command line nowadays?

DylanI've been programming in PHP on Windows (using XAMPP) for about 13 years now, and trying out new frameworks was always a matter of copying some directory to my project and start working with it. Nowadays every framework seems to require the use of the command line and using package managers like...

 
@DaveRandom I guess that's just a tactic though.. Annoy the living shit out of people so they would just hang up the phone, and never call back :P
 
11:05 AM
@whatever Anything in a class that you access without an instance is static. For legacy reasons, it's possible to treat any class member in PHP as static without declaring it explicitly to be static, but it's still static. Foo::$bar accesses the static property $bar in the class Foo regardless of whether or not it was declared static. I can understand why that manual page is confusing, it's not very well written and it's missing a lot of information.
 
so on that page if you check then class A's example() method is static?
@DaveRandom
 
And then 50% of monday has passed away without writing a lot of code but doing administation work BAH
About that salary: careers.stackoverflow.com/jobs/104273/… how does that work? I mean how is that calculated? Is the net-income?
 
@whatever Here's where it gets super-confusing. When you are in an object context - i.e. the original method call is on an instance ($obj->method()) rather than static (ClassName::method()) then calling an inherited method using :: is also an instance call. There are good reasons for this but it is really hard to wrap your head around at first, I remember being really really confused by this.
An easier way to think about it: if a method does not use the $this variable anywhere in its code or in any method it calls, it can be called either statically or on an instance. If $this is used anywhere at all, then it must be called on an instance.
 
Hello guys, my client is having a meeting and wants to show off the new website i built. However the laptop she has cannot connect to the internet. Is there anyway i can get here an easy way to view the website locally without installing a webserver on her laptop and all the rest that comes with that?
 
11:17 AM
An even easier way to think about it: don't use static calls for anything at all ever
 
@DaveRandom :( I am further confused...
 
@MatthewSmart Simple answer: no
 
@whatever I know, it's really really confusing and PHP is quite inconsistent and, it seems in this case, not very well documented. If you just go by the rule of thumb that you should never use static members and the only time you need :: is for accessing class constants and parent:: then you can't go far wront
@MatthewSmart Why can't she access the 'net?
 
Okay.. @DaveRandom
 
11:21 AM
It's a simple as this: the website lives on the server. If your computer can't talk to the server, you can't access the web site. In the same way as you can't talk to people who aren't standing next to you unless you have a phone.
@FlorianMargaine No, I have far too many other things to procrastinate with to use that particular excuse for not doing any work at the moment.
 
\o/ My soap misery is almost over!111111eleven
 
Plus that is one page that I can see sucks but I'm not sure how it should be improved, which may be why it's still that crappy
@Danack might enjoy fixing that one, he loves being anal about OOP
 
@Danack think of the chldren
 
@PeeHaa #FamousLastWords
 
@DaveRandom Yeah I told the client I have implemented all API calls. Now we wait to find out what actually came through on the other side
 
11:27 AM
@PeeHaa I'll give you a clue: it's in my daiper, and it's not a toaster
 
lolwatf
 
2
Q: Run function in PHP CLI script after period of inactivity

XatooI used Symfony2 with the RabbitMqBundle to create a worker that sends documents to ElasticSearch. Indexing documents at a one-by-one rate is much slower than using the ElasticSearch bulk API. Therefore I created a buffer that flushes the documents to ES in groups of thousand. The code looks (a bi...

Anybody any experience with events in php / reactphp or anything like that, who could shine a little light on this?
 
can we uv stackoverflow.com/questions/34265471/… pls? I feel it got some unjust dvs. apparently people are dv'ing because the op does it "in a weird way", but that doesnt make the question not useful, unclear or lacking research.
 
so down :(
can't work :)
 
11:39 AM
@SergeyTelshevsky so isn't down
 
maybe cloudflare
Error 524 Ray ID: 25499cdbb41605af • 2015-12-14 11:39:00 UTC
A timeout occurred
up again :)
 
someone with strong git foo around ?
need to squash a few commits, I did not winning ...
 
@JoeWatkins I can push random buttons until it works
 
Abe
@PeeHaa was installing nginx on debian. why the hell does it also install stuff like perl, python, libxml, geoip-database etc
 
11:45 AM
need to squash my commits into one ...
 
But the others should be there?
Or should it just be one commit, just your work, on the PR?
 
the others should be there, I think
 
If you want to get rid of the others then the simplest way is just to git reset --soft HEAD~<n> where <n> is the number of commits, diff it into a patch and then nuke the branch to a fresh sync with the target and apply the patch, commit and create a new PR
 
I must have read the git doc on rebasing a million times, I almost never get it right ...
 
If you want to just rebase and squash the last block of commits then just git rebase -i HEAD~<n> and change every commit after the first to an s
 
11:50 AM
I tried that ...
 
moment
 
HEAD~15 brings up all the other commits
 
@Abe You expect it to have no dependencies? :)
 
lol what the shit have you done to that
 
Abe
fewer dependencies...
 
11:55 AM
I krakjoe'd it, of course ...
I'm so bad at git ...
like it hurts a little ...
 
dont worry, no one is good at git. its by design
 
Why do you even care about dependencies? @Abe :P You have apt-get fo dat
 
I can force push, nobody is watching ... can that fix it ?
 
Abe
minimal install = less things that can go wrong @PeeHaa :B
 
if I git diff HEAD~15 and then force a push to reset the head, then apply the patch, it should fix the PR, right ?
 
Abe
11:57 AM
was wondering if compiling it myself would reduce dependencies
 
i have a TCP connection and i want to check regularly if it's dropped (e.g network wire unplugged) i can accomplish this by sending data regularly on both sides. and i have read that i can send 0 bytes without affecting the data stream is that possible with php how do i send 0 bytes ACK ?
 
@Abe who cares … just docker it :D
 
@Abe Might be the case, but you would have to take care of deps yourself. WHich is fucking horrible
 
I think you've done a merge at some point when you pulled because you couldn't fast-forward for whatever reason, so all the commit hashes since late aug in your fork are different from the base @JoeWatkins
@JoeWatkins I suggest you create the patch file, then reset ~150 or so (can't work out exactly how many) then add the remote of jmikola's and pull from that, then it should ff and you can apply the patch and your PR will just be one commit. I think
you should be able to do it in the same PR as long as you use the same branch
 
jmikola's branch is out of date
with the master of mongodb
that's what all those other commits are ... rebasing on master ... which was required before I could do anything
 
12:01 PM
Wait, do you want to merge into jmikola's fork or into the mongodb root?
 
into jmikola
 
Because the PR is against jmikola's fork...
 
yeah, intentional
that's where the work was being done
 
@JoeWatkins You need to get him to update his before you merge or this problem is only going to get worse when he tries to merge it back upstream
Either that or just send him the patch
 
guys i have a q, i need to start using a php framework coz i suck at security, requirements

1- slim framework or microframwork no bloat
2- secure
3- doesnt require composer, because im using xampp and installing composer is giving me headache and phar and all
4- doesnt look too object oriented, not used to that or pdo, i want something that look familiar to me
5- doesnt require to read too many docs
 
12:09 PM
@Lynob Should it be able to run on PHP4 or higher?
 
i have 5
5.6 i guess
 
@Xatoo - Did you really mean PHP4?
 
It was a joke. (haha)
Not using composer, oop or requiring documentation ... That is not something you would find in modern PHP would you?
 
"doesnt require to read too many docs" Well screw you too
 
<quickly hides PHP4 code on his screen> yeh a joke that's funny hahahahahahaha
 
12:12 PM
You are going to have to do research either way. Might as well learn something me thinks
 
@PeeHaa i did, all require composer which means i have to remove xampp
 
> i need to start using a php framework coz i suck at security
false assumption that frameworks give instant security is false
 
@DaveRandom didnt say that
 
Yaay, the mobile version loads... morning
 
all im saying is that it reduces them
 
12:13 PM
I'm basically a god of version control right now ...
11
 
instastar
 
@Lynob using a framework won't make you better at security
 
but it still isn't going to play nice like that, I guess he must have rebased at d90f10b or those commits wouldn't be in the PR
maybe he can sort it out when he merges it though
 
@Gordon again didnt say that, but something like django new forms would be nice
 
@kelunik mornign
 
12:17 PM
yeah, I don't think there's much I can do about it ...
 
@JoeWatkins That's how I always feel after doing a successful three-way rebase...
 
hehe
 
@NikiC haha :-) Agree :-)
But the worst is when the rebase was successful, but everything else broke :s
 
@PeeHaa Have you tried the client now? :P
 
I am very very sorry :(
The good news though is that my main domain wildcard is going to expire soon
 
12:30 PM
hello everyone
how can i upload multiple image in postman
??
 
@JoeWatkins you could try pastebin.com/ZJsEz2mS
 
Morning guys
How can I process image without using header("Content-Type: image/jpeg") ?
If I use that header then I can't write any html code
Is it possible ?
 
no way, I'm not touching it again ... the feeling of being a god lasted about 5 seconds ... until I realised I broke everything and had to start again
 
I need to add a watermark on the picture and then show it on the browser with some content and description
 
version control didn't used to be so clever, but I didn't spend a big chunk of every day worrying about breaking shit ... clever isn't desirable at the cost of so much complexity...
it's fucking text files ...
 
12:38 PM
@JoeWatkins Moment, let me try and fix it locally then if you give me temp write access to your fork I can fix the PR
 
Derick is gonna do it on merge, thankfully
 
Fuck of with the flags please
 
serious, I'm not touching it again ...
 
Does anyone know ?
 
Seriously?
 
12:39 PM
lulz
 
don't flag silly stuff please, it annoys everyone ... see sidebar ...
 
There are only a couple new people in here. If you are hurt get lost instead of bugging every single chatroom on SO
 
if you'd rather we didn't use colourful language, you are in the wrong profession ;)
 
What got flagged? :o
 
@PeeHaa that one was a tiny bit funny though :-P
 
12:43 PM
Imo it's sad
 
sososos
 
@PeeHaa both.
 
On which base are those salaries calculated? careers.stackoverflow.com/jobs/101675/… Just curious. Is this net-income?
 
hi all did any one worked with coachbase db ?
 

« first day (1885 days earlier)      last day (3062 days later) »