« first day (2776 days earlier)      last day (2179 days later) » 

11:01 AM
pagination is usually a filter to a resource collection. A 404 would say the resource does not exist, which is not true
if the collection exists but you filter it over the bounds it should either be just empty or - for usability purposes - show the last page
it also shouldnt return with temporary redirect, because the resource itself is still at the same location
as for what to return: a simple 200 OK… or, if you dont like that, maybe a 204 No Content
 
I see. And SEO won't get impacted thinking soft 404 technically, since there aren't any links going there.
 
@Darius or you could get rid of the "page" concept
 
as in SPA?
 
Wes
should be a 404 imo
 
@Darius no, as in this
 
11:07 AM
I usually use some JS library that can put all my pages on the same page. But in case of restful, I will send an empty object with 200 instead.
 
@JoeWatkins I'd have preferred doing this on the debugger side and just provide the minimal API from inspector
 
well what I actually did was prohibit the rebinding of classes, I done it this way because everything that has a pointer to a zend_op/zend_function will be invalidated if we allow the classes/functions to be rebound ... this means we don't actually have to resolve them ...
 
Wes
connection is so bad damn
 
I've provided the purge api in inspector anyway, for those times when you want to force the reloading of a class/function, in that case the debugger will need to export and recreate breaks ...
 
@tereško I like that idea, used it before too. Not needed for my current situation but I'll keep it as a reminder for the other stuff I do.
 
11:12 AM
@Wes No, why? Assume you have 100 contacts in example.com/contacts. Any filtering you apply over these 100 would return a 200 or 204. The requested subset might be empty, but the resource itself does exist.
 
Wes
on different urls?
 
hello, I would need advice, I would like to have in javascript stackable error popups with close button, can you advice library?
 
@FantomX1 This not the JS room
 
@FantomX1 Try the library RedirectToTheJavaScriptRoom
 
For sorting thinking 200 on desktop with no results found (307 if paginating to be friendly, no results = 307 + 200), 204 over api when sorting. 204 supposedly means no content to send at all in the call's reply. As in no message/data should be sent to browser besides the http status.
 
11:17 AM
Morngins
 
\o
 
haha :) thanks I will try that one
 
Wes
le pieter \o
 
o/
 
sorry I thought PHP is synonym to Javascript, hopefully there is no ban button in here
 
11:18 AM
@Wes how is example.com/contacts?page=1 a different url than example.com/contacts?page=2. Both go to contacts.
 
le pieter just had his first beer \o/
 
\o/
 
Wes
at 1pm?
 
@FantomX1 you're pushing it! :P
 
@Wes aye. Doing the airport dance :(
I needed it
 
11:20 AM
@PeeHaa ever?
 
@pmmaga :D
 
Wes
@Gordon do you consider different querystrings equal urls?
 
@mega6382 lol nope
 
:P
 
Wes
i have no idea about that, but my guess is from a seo point of view, 404 is better (only if your site is not linking that page)
 
11:21 AM
Nice try though :P
 
@Wes would you show a 404 if it was /contacts?search=xyz and no results are found?
 
Wes
nope
 
Real men always return a 200 with an error in the body
 
Wes
^
 
:P
 
Wes
11:23 AM
and "did you mean..."
 
Man, I hate working on the frontend.
 
with a "noindex" :D
 
@PeeHaa I'll just return a 101 and wait for your browser to be irritated
 
lol
typical bob :D
 
lol
 
Wes
11:24 AM
is it even possible to use http error codes correctly?
 
@Wes the query string is no different. it only has a different value for the same key, so yes. these urls are equal.
 
@Wes imo many status codes are a bit like spl exceptions
 
Wes
lol. exactly what i think
 
Open to interpretation and basically a wild west
 
> When determining if two URIs are equivalent, each URI SHOULD be normalized by using the rules specified in [RFC3987] and [RFC3986] and then compared for equality by using the equivalence rules specified in [RFC2616] section 3.2.3.
anyone willing to read this and enlighten us?
 
11:29 AM
:D
It's one of those perfect bugs which is about code touched by Y and code used by tony
 
\o
 
o/
 
> therefore I consider it to be an unauthorised change
 
:D
 
uh oh.. do we have to arrest someone?
 
11:31 AM
:P
YES
also REVERT the change
NOW
 
That convo is quite heated hehe
 
That's what happens when the world is all about you
 
@Wes Surely it's 6pm somewhere
 
yuck, the RFCs are not exactly clarifying this
> Because URIs exist to identify resources, presumably they should be
considered equivalent when they identify the same resource. However,
this definition of equivalence is not of much practical use, as there
is no way for an implementation to compare two resources unless it
has full knowledge or control of them. For this reason,
determination of equivalence or difference of URIs is based on string
comparison, perhaps augmented by reference to additional rules
provided by URI scheme definitions.
 
Are you touching http / uri stuff?
May I suggest to go fuck yourself find a library that just works?
 
11:36 AM
@PeeHaa No, I am double checking that I am correct in saying that example.com/contacts?page=1 and page=2 identify the same resource ("contacts") and asking for a page outside the number of existing contacts should not return a 404 because the resource exists.
 
huh
I might very well be talking out of my ass here
Buuuuut
Obviously those are different resources
 
see discussion further up. @Wes says 404. I say 200 or 204.
 
?
 
I say 200 as well based on everything we read. (WHEN FILTERING)
 
The querystring is part of the uri / request to get to a resource
 
11:38 AM
totally not different resources. example.com/contacts returns contacts. regardless of any additional filtering.
 
In that specific case sure
But
 
!!lxr session_name
 
/articles?id=10
 
@pmmaga Nothing went wrong but I couldn't find a suitable definition
 
And that is why you should not worry about the technical stuff like that
It's a minefield
 
11:40 AM
Well, that's requesting a specific item rather than a collection of items
 
In my example it requests a specific resource
 
@PeeHaa that's different. that doesnt say filter over all articles but give me a specific article. one identifies the collection resource, the other the item in the collection
 
@Darius yes
@Gordon Yes
But if you are looking into the rfcs for that distinction you will not find it
Again minefield
Stay away from all of it :P
 
@PeeHaa that's fine, but from that I take you agree that filtering over a collection should not return a 404 just because you went out of bounds in pagination?
 
hmmmmm
thinking
I think no?
But
Why not?
 
11:44 AM
Empty search result isn't 404, why should empty result list be 404? After all page 10 isn't a "specific resource"
 
But the actual "page"does not exist
Devil's advocate here
 
It does exist... It's empty
 
yo
 
@IROEGBU Its empty cause it doesn't exist.
 
11:47 AM
@mega6382 it does exist
!!urban finter
 
[ finter ] a more appropriate word for a dick or condom
 
lol
...
 
are you using tinder again?
 
I was trying to ctrl+f + inter
 
I wish trolling wasn't so satisfying
 
11:48 AM
riiiiiiiiight
 
23 mins ago, by PeeHaa
Open to interpretation and basically a wild west
There we go
:P
Really
 
@Gordon There are only 5 pages, any page beyond that doesn't exist.
 
@PeeHaa Is it a wiki-wiki-wild-wild west? youtube.com/watch?v=_zXKtfKnfT8
2
 
i hate you.
 
Not sure I want to click it now :P
Considering there are a lot of people around me
 
Wes
11:50 AM
will listen to that for days now
 
@Wes someone said we should setup a wiki for our project yesterday, so been in my head for 24 hours.
 
Wes
ahahah
 
k
Not gonna click it
 
@mega6382 if a "page" was an actual resource I would agree
 
:)
 
11:52 AM
@PeeHaa the fact that you are not subjected to an instant earworm from the mere mention of the words in surprising
it is a special kind of terrible and I can't believe you haven't come into contact with it before
 
I really don't get it
Which I assume is a good thing :p
 
Wes
@PeeHaa wiki wiki wa wa west
 
Still don't get it :P
 
it's Will Smith at peak "you really will do anything for money, won't you?"
 
oooooooooooooh
Fuck you
 
11:53 AM
lol
 
Fuck you all
Seriously
 
It's so tempting to flag that
 
:P
Wait 30 minutes til I boarded please
 
boarded? water boarded?
 
We can only hope
 
11:55 AM
who would let you on a plane? and where to?
 
@Leigh thanks...
@Gordon people. and to tr
 
Hi guys
I am having 1 form where user is applying for vat registration
in that vat registration form i am asking user to upload files
So what should be my api :

/api/vat/document

or just

/api/document

?
 
@PeeHaa tr?
 
tr
 
!!urban tr
 
11:56 AM
[ TR ] Acronym of Tuesday and Thursday. Antonym of [MWF] (Monday, Wednesday and Friday) Usually used in post secondary education scheduling.
 
turkey...
 
sheesh, just write @Ekin
 
@Gordon turkey, I think
 
@Gordon Same thing
 
I think about turkeys
 
11:57 AM
oh, he already said it
 
brb
Gonna finish beer and go for a last smoke
See all you bitches in 30 degrees
 
temperature or angle?
if temperature I demand nudes
 
and if temperature; celsius? fahrenheit? kelvin?
I am not sure anyone will go nude at 30 kelvin
 
I don't think state of dress matters much at 30 kelvin
 
Do you wear a dress at 30 kelvin Dave?
 
12:01 PM
@PeeHaa It'll be 29 here on Saturday
 
Wonder how much longer till scientists accidentally set off/create a black hole that they can't stop.
 
Not soon enough
 
they use python at cern. no way they'll start a black hole with that
and if they do, it will only suck in cabbage
 
Also pretty sure we don't have enough matter in our immediate vicinity to do that
 
@J.Ende No I don't think it's a formal occasion
maybe I'm wrong, will double check the invitation
 
12:03 PM
haha
So you only were dresses at formal occasions
 
I can't be bothered with the zips
 
Pretty cool, didn't know decibels were logarithmic.
 
@StatikStasis they clearly haven't heard @PeeHaa belch or fart
 
Pretty much impossible but still neat 1,100 decibels would create a black hole.
@Gordon =D
 
12:12 PM
@Darius you apparently do not understand hawking radiation
 
@PeeHaa Don't pee on the seat in front of you. I hear they will arrest you for that.
 
I definitely don't.
 
Me either. I've read about it though. =)
That and the dark death at the end and the amount of time it will take for all of them to evaporate.
Beyond my comprehension still.
 
> it would take a nuclear reactor consuming all of the matter of the universe several times over to produce the sound in the first place
 
@Darius It's this radiation, right, and it Hawks. Hence the name.
 
12:14 PM
I'll tell all my friends! .. friend.. dog..
 
@Darius let's put it this way, the result of creating a black hole with a mass of a car would be similar to setting off an anti-matter bomb
 
:P
 
sorry, my mistake
 
Sounds like a lot of energy, I guess that's why they're not scared of messing with the boson particle stuff.
 
12:18 PM
According to general relativity white holes are supposed to exist.
 
They do.
Plenty
Come to LA
 
hahahhaa
 
Fixed- ha
 
@tereško I guess it'll depend on the size of the bomb. If there is 1 kg of antimatter, then it will only react with 1 kg of similar matter. But I guess, the energy released would be quite high. So, that will be doing most of the damage. Huh, nvm.
 
12:19 PM
Don't think weights apply to anti-matter.
only dimensions?
 
@Darius Of course they do, ever heard of "photon torpedo"?
:P
 
Sigh.. I'm too uninformed to even start here..
 
A 2012 paper argues that the Big Bang itself is a white hole.[14] It further suggests that the emergence of a white hole, which was named a 'Small Bang', is spontaneous—all the matter is ejected at a single pulse.
Thus, unlike black holes, white holes cannot be continuously observed—rather their effect can only be detected around the event itself. The paper even proposed identifying a new group of gamma-ray bursts with white holes. The idea of the Big Bang being produced by a white hole explosion was recently explored in the framework of a five dimensional vacuum by Madriz Aguilar, Moreno and Bellini in the paper
 
It's like walking into a room of scientists after spending a night talking to your neighbor about this stuff (neither knows anything) over a few beers.
 
Will be interesting to see what happens with this theory.
 
12:24 PM
@mega6382 a black hole of 1'000'000 tons will "evaporate" in about a year, a black hole with mass of 400'000 tons will "evaporate" in a month. With 100'000 tons it will take about 10 hours.
for a car-mass black hole, the "evaporation" would be basically instant
 
@StatikStasis ask @tereško about MVC. that will also spontaneously eject all the subject matter in a single pulse
9
 
XD
 
@Gordon That or talk about how awesome Laravel is.
We have some of the most interesting conversations in here.
 
12:49 PM
@Gordon :P
 
nice. Apparently this will autoupdate now. that was the most annoying thing about PHPStorm. having to download new versions and then symlinking stuff
 
1:34 PM
it's quiet in here today ...
it must be because you're all figuring out what you're going to write for idbg ...
 
or people actually working for once ^^
 
that's never happened
 
there has to be a first for everything, right?
 
no, that's a thing stupid people say, like "everything happens for a reason" ... there's never going to be a first time that I wake up and am the queen of england ...
 
why do you say that? you can be everything you want!
 
1:37 PM
@JoeWatkins mm, as long as I can call you joanna, it's fine by me ;)
 
in fact it's almost certain that there will not be a first time for everything, given the number of things there are, and the number of ways there are for that not to happen ...
 
Queen Joanna Watkins of England, worlds first tranny queen, would love to see that... ^^
 
I only like breasts when on other people ...
 
Hello someone can help me a bit please? :)
 
you are not passing the map id in the Location header
and even if you would, you'd still need to make sure it's read from $_GET
 
1:49 PM
@Joanmi Just ask your question
 
@Ende I already answered it :P
he wants to know how to do a post redirect get
 
Ohh oke haha than its fine ;)
 
afk for gym now. l8rs
 
cya
 
I want know how to identify a html value with click on an imput and after it, delete this key on json, I started with php today and I'm pretty lost
 
1:52 PM
What
 
I have some buttons and texts, the button say ("Delete") and the texts show a value from a json file, I want delete one text clicking the near button
do you want a picture better?
 
Wes
internet is not working well i.imgur.com/vXgasof.png
it's the 20th century again
TIS TIME I WILL NOT SELL APPLE SHARES
 
Maybe they went incognito. Hello. :)
 
Hey!
 
2:28 PM
@Duikboot hey
 
Do you guys remember a little over two decades ago when you were excited when you received an email? Those were the days.
 
Now you have multiple e-mails haha
 
Hundreds a day! Majority not spam. I hate emails. I have the most untidy email box.
 
Does anyone here know what the release schedule is for PHPUnit? aka when's the next release.
 
@Danack You mean the one where he argues yet again that because he doesn't want the ability to "test that no exceptions are thrown", it doesn't go in? :D /semi/s
 
2:41 PM
@Wes I had bought some Sears shares since they looked like they were going up and had a deal with pepboys or something, but they dying :'( hurt pocket.
 
@Jimbo E_WAT? And no - just a small change that's coming github.com/sebastianbergmann/phpunit/pull/3115
 
2:54 PM
@Danack When is your post coming? clearlaunch.com/programming-nouns-verbs/?x
Had run across that and reminded me you said you were working on one.
 
mañana, mañana. Hopefully this weekend if I don't just sleep.
 
3:10 PM
I think it's off in general
 
I knew it was here but it is usually on in the playground... or it was the last couple of weeks.
 
3:26 PM
o/
 
3:48 PM
/me waves
 
So I was looking at this code and noticed something that I have seen before but I am not familiar with it. Is this some type of overloading? I'm not sure what this is when the same noun is mentioned twice like this, one capitalized and one not capitalized. i.imgur.com/Tqc0bep.png
 
Wes
4:05 PM
\o
 
@StatikStasis Engine is the type. engine is the name of the variable.
 
Oh- it's just a typehint
 
Yep. Presumably Java or C#.
 
@Wes So that question got answered.
Seems like the guy wants me to do that query in a service that returns a value object. That sounds better, but I'm wary of putting queries in there.
 
@StatikStasis s/typehint/type/
 
4:07 PM
@jjok That makes sense now.
Thanks
 
4:25 PM
@jjok java
 
It threw me not seeing $engine
 
Worst doc ever -_-
vent
 
Wes
wiki wiki wa wiki wa
 
Hello,
How can I change the default port for kubernetes on mac?When I want to do stuff i get that my 8080 port is in use.
 
4:41 PM
@DaAmidza -p
 
@Leigh ?
 
As in, kubectl proxy -p 8123
 
@Leigh Have you tried docker swarm instead of kube?
For me, Kube was insanely complex unless you have a large dedicated ops team
Who live that shit
 
Which we do
:)
 
Tried the other though?
 
4:43 PM
Not swarm, but we were using vanilla docker before
 
Docker compose for local dev, kuberbullshit for production.
 
Yep, that's what I'm using here
 
We use docker-compose for local dev, but for production (we're only talking 2 or 3 micro services) was considering swarm
Simply because... well, it's simple. For devops
 
not really about number of microservices
 
@Leigh I'm using it on my mac to test everything before moving to gcp.Anyway I can not run any command on my mac for example i type kubectl version it says that my 8080 port is in use.
 
4:45 PM
> before moving to gcp
 
We have zero microservices, plenty of full blown services
 
AAAAAAAAAAAAAAAAAHHHHHHHHHHHHHHH
@DaAmidza have you seen AWS has a kubernetes product?
 
@Danack haven't used it I'm only on gcp
@Jimbo did you managed to handle kubernetes at the end?
 
So are we.....we currently strong regret trying to use Google cloud.
 
Wes
a prompt window opened from nothing with this in it
C:\Windows\system32>ipconfig /renew

Windows IP Configuration
 
4:47 PM
@Danack why?
 
@Danack We'll probably look at AWS EKS when it grows up
 
@Wes You are being hacked.
 
Wes
lol
wonder what initiated that
 
@DaAmidza Lots of little things that end up being big things, but most of all the paid support service is kind of shite.
 
Wes
i don't have many shit programs....
 
4:49 PM
Including somewhat ironically, getting google support setup on our existing account took two weeks.
 
The hackers are probably watching your naked body through your webcam.
 
@Danack on my end I had a great experience with them, even they offered me monthly calls if I need help with development and production.
 
@DaAmidza when was that?
 
@Danack Three months ago and since that i have a talk every month with them
 
Wes
@2dsharp naked me is not something you want to watch on purpose
 
4:52 PM
@DaAmidza On your next call maybe you can tell them all about your mac problems
 
@Wes The hackers... they like weird stuff. I'm sure you have your panda underwear on.
 
@Leigh my mac problem is something different :D
I was playing around with docker on my mac and got this issue so that's why i guessed that somebody would be kind enough to help me on the chat
 
@DaAmidza The api server has a --port option
 
Will do, I have a call tomorrow so I'll forward your email.
 
Actually you might want to use --insecure-port
 
4:57 PM
I'm using M. jS, Y to format and display a date. Its all good because most moths have 4 or more letters. The only one that doesn't is May and I don't know what to do with the output as "May." Suggestions?
 
I'll try it out
 
ta
1 message moved to Trash can
 
@Danack you own me after I send this :P I want a sample project so I can see your architecture that I learn something new.
 
something something, but it's wrong to own people.
 
5:02 PM
@Danack I think that the word is owe sorry for my english
 
lol, it okei.
 
Wes
5:17 PM
imo was dropbox
so strange
 
Red
just practising php/javascript, basically I'm just doing a simple login, it works fine if the username/password is correct however when it's wrong the error alert comes up fine but the page goes white and I think it tries to redirect to the page, probably a simple fix but I'm learning D:

https://pastebin.com/z6RtiST9
is there a function/keyword to make it stay on the page?
 
@Red You have a SQL injection vulnerability. Use PDO and prepared statements.
Also why are you using JS for the alert? If you want to use a scheme where the page is refreshed every time the action is complete, you don't need it there. You're going to just want to use JS to dynamically change something on the page.
 
Red
I don't want the page refreshed, I just want it to give an alert
 
If you don't want to refresh the page every time, you're going to want to Google AJAX. Your backend should be set up to receive and respond in JSON, then the JS interprets that and dynamically changes the page.
Either way here you're refreshing the page.
 
Red
Ah.
 
5:27 PM
Research AJAX requests.
 
Red
I will do, thanks :>
 
Separate your front and back end.
@Red If you have questions about that, ping me on the JavaScript chat. If you have questions about PHP, check the main site first, then think about whether you should ask an actual main site question, and if it doesn't fit main THEN ask here.
 
Red
yeah, I really try to avoid posting questions on SO unless they're detailed
first time messing around with php really
 
Also, seriously fix your SQL. That's a huge no-no.
 
Red
ahaha I know man, I'm really just messing around testing stuff trying to learn
it's not a serious project or anything
 
5:31 PM
Practice the right way. :D
 
Red
fair point :D
 
5:44 PM
Configure option --with-curl=PATH, the PATH will be ignored – #76369
 
My formatting of dates as M. jS, Y is fine until there is a May date as it would output like May. 7th, 2018. Any suggestions on what to do with the "."?
 
Evening
 
o/
 

« first day (2776 days earlier)      last day (2179 days later) »