« first day (1273 days earlier)      last day (3690 days later) » 

9:00 AM
COCAINUM
 
lol
@DaveRandom It's not overly important either, so unless there's some intrinsic need to proceed with the problem I wouldn't fuss much over it. That being said, thank you :)
 
@Fabien Meh, it's interesting
 
Cheers Sherlock.
 
what is Sherlock?
and who is @TOOTSKI ?
 
Sherlock Holmes.
Only interested in things that are mysterious/interesting.
 
9:04 AM
How do you use PHP files outside of the public folder?
 
@Qwertieϟ include __DIR__ . '/../foo.php';
 
@DaveRandom Thanks
 
@DaveRandom require
 
I'll require your face
while ($webarto->getName() != 'webarto') {
    exclude $webarto->getName();
}
That told you :-P
btw @TOOTSKI is there any danger of you actually making to this part of the world any time soon, like, y'know, how you've been saying for, like, 2 years
 
Is he even allowed?
 
9:14 AM
haha, so it's webarto?
new nickname is odd
 
Hi
While coping a file. Im getting this error. failed to open stream: No such file or directory
Any one can tell what copy excatly does?
 
@DaveRandom I want to write the beginning of an RPC request to transmission - any idea where to start? (ie where I'm sending the request to) - I want to do this just to learn really
 
@Jimbo Well first things first you need to understand the XML format. What's the transport, HTTP? (I looked at it a while ago but I forget)
 
@DaveRandom HTTP, can't remember GET / POST
will try and find it
 
@user2901981 It literally just copies the file. That error means that either the file you referenced doesn't exist, or the directory you tried to copy it into doesn't esixt
@Jimbo Should be POST, GET would be insane for XML-based RPC
 
9:26 AM
> HTTP POSTing a JSON-encoded request is the preferred way of communicating
50 with a Transmission RPC server.
Oh, well that makes sense now
 
Oh JSON
 
Once I found the spec, it makes sense
 
Right well either way, you just need to understand the schema and then crack out the Artax
 
@DaveRandom I am having the file in source folder but not in destination.
 
@DaveRandom Thanks for pointing me in the right direction, I'll get on it (Y)
 
9:28 AM
@user2901981 Look at file_exists() and mkdir() to ensure the target directory exists before you try to copy()
 
hay
Need urgent help
anyone
 
@UmarFarooq Don't ask to ask, just ask.
 
@DaveRandom Thanks
 
ok.
i am facing issue in sql ..
 
morning
 
9:34 AM
i am making a cricket website
 
Morning @HamZa
 
@UmarFarooq what is it?
 
where i need to show highest score . and i have a table where the field is sore and want to get the player name who have highest score (Overall)
sore=score
 
ORDER BY
 
@UmarFarooq sqlfiddle.com
 
9:36 AM
SELECT `name`, `score` FROM `players` ORDER BY `score` DESC LIMIT 1; ?
 
Each answer got a little more helpful.
 
this query returen the high score in one match i need "over all"
 
SUM
 
so hard to post new topic T_T — Mr Phi 5 mins ago
^ hehehe
 
@UmarFarooq You have to use SUM to add up the scores for each player, then return the highest
 
9:37 AM
ok.
thanks @AlulaErrorpone
 
SELECT name, SUM(score) as total_score
FROM players
GROUP BY name
ORDER BY total_score DESC
LIMIT 1;
Something like that
 
okzz . thats more helpful thanks. :P
 
May not be correct though, I havent used mysql for a while :P
 
ok. i will try .
 
Do not star messages that are only interesting to you
 
9:48 AM
Yes that workin fine
thanks again.
 
That'll be £5
 
next
 
Maybe we should start a counter-ticket system.
#27...
 
and certainly make big $$$
 
@Fabien did this happen in the `90s ?
 
10:03 AM
@CSᵠ @rdlowrey is old and he's still useful.
 
rofl (:
he's just umm.. twenty-ten ?
 
Ni-ju
 
san-ju
if it's about him (;
 
@Fabien did you do it ?
 
@JoeWatkins the Subdomain thingymabob?
 
10:16 AM
yeah
 
If so, nope.
For my purposes I can just define() the domain name and use it to get the subdomain from http_host
The question was posed because it's not the first time I've bumped in to subdomain retrieval issues. And all the solutions out there aren't great.
 
oh I c ... I thought we were dealing with data, sounds like redirects or something now ?
 
For me it's to push a person to the right directory based on subdomain.
admin.example.com
www.example.com
example.com
 
programming never feels more like a science than in oss, success never likely, best case; your theory proved wrong, by that we move forward
because true
 
10:37 AM
^ this guy thinks he can validate a date with regex
 
@HamZa You can validate format of date with regex and seems pretty sane for me. /me misses context
 
@Leri just the format
not if the date is actually valid
ps: there's always some edge cases ...
 
@TOOTSKI NOOO go back to @webarto
 
mornign
 
monrigns
 
10:50 AM
Mornign you two
 
Anyone know if you can update a VPN connection password, via command line linux?
I have a sneaky plan
Bah it's okay, I found it
 
@HamZa Depends what you mean by actually valid.
morning, btw
 
sneaky sneaky
 
@Leri Validating the hours/minutes is easy. Validating the days for each months is a bit harder. Validating the days for february is much harder. I thought there is also some edge cases but I can't find it right now. Basically you will end up with a mega regex at best
 
good moarnings
 
11:00 AM
moaning
 
hi, @iroegbu @Leri
 
Guys, maybe a noob question but... if I want to submit an upload form using PHP, curl, artax etc... can I get the next page's body as the response? So there's a page with a file upload, I can programatically trigger a file upload, and then use DOMDocument on the page after upload?
 
in RegEx, 1 min ago, by CSᵠ
@HamZa http://regex101.com/r/tH1cV7
 
I think I'm having an E_FRIDAY moment
 
@Jimbo huh?
 
11:14 AM
mornign
 
@Jimbo An upload is just a POST request, so you just process the response like you would any other request
If the site is sane it will use PRG anyway, so you'll actually just be processing the body of the response to a redirected GET
 
Cool
 
@HamZa is this a way to negate a group: regex101.com/r/dP7dQ1 this is regex for ignore-paths so I need opposite. Thanks. (I mean, it's working OK)
 
@DaveRandom Well, user can still navigate back and mess up things, can't s/he?
 
guys, assuming you have a RESTful service
and one endpoint returns binary data
like GET /resource/<id> returns some, say, picture
How would you return errors from that endpoint if the request cannot be fulfilled?
In what format?
 
11:29 AM
Good question.
 
assuming I will return 4xx
but want to add something helpful for the client
usually, I prefer to specify the response type as an extension like:
 
1px image and 4xx and maybe error header...
 
/service/<id>.json
but in this case - it wouldn't make any sense
But what about details so that the client could log something useful
if it is something more complicated like /document?search=foo and it returns a PDF file
 
Jay
hey guys
 
X-REST-Error: (useful details)
IDK really, I would do it like so, but I don't know a thing about it.
 
11:31 AM
and if search argument is required, then HTTP 400 + response with a error code and explanation would be handy for a client
 
Jay
I finished my software
 
X-REST-Error is a solution indeed
@Jay have a beer then
 
Jay
not all features are in it
www.wizardapp.com
 
@zerkms LOL
 
Note on a quote
 
Jay
note? @zerkms
 
@TOOTSKI btw, using another header could lead to inconsistency
 
Jay
@zerkms u mean spelling?
 
for text endpoints I would use the response body
 
Jay
I have
oh u mean the ' ?
 
11:35 AM
thoughts?
 
21 hours ago, by tereško
fucking facebook
 
yep
 
Jay
ah
 
Whatever you do, I think you'll make it better than they have.
I'm just acting as a programming duck to you.
 
Jay
k 1 sec mate thanks
 
11:35 AM
@TOOTSKI actually it's a HOD (high order duck)
because I'm already being a duck for someone else
it's not me who designing that API
but a friend of mine
 
is @TOOTSKI === @webarto
 
Yep.
@zerkms I think @rdlowrey and @tereško and @DaveRandom are competent to discuss about it. It's been discussed before but I haven't seen your problem.
 
Jay
Its using rlemons notify plugin
 
Okay, will ask again later. It's curious for me
 
They'll see the ping and reply.
 
11:39 AM
@zerkms a sensible Content-Type: in the response is all you need
 
@PeeHaa @PeeHaa @PeeHaa
 
@DaveRandom but how would I request what I want?
 
@zerkms Accept:
 
say, I want json everywhere, including error messages
makes sense
 
Jay
@zerkms I changed it
 
11:41 AM
and multiple types
 
Oi @DanLugg Where's the updated pic?
 
You say Accept: image/jpeg; q=1.0, application/json; q=0.9, application/xml; q=0.8
"Give me an image/jpeg if you have one, then I'll take JSON or XML but I prefer JSON"
 
I'm not that dummy even though I'm a cat
:-)
 
:-P
 
Jay
11:43 AM
@zerkms can u do me a favour and see if u get a register email?
 
@Jay use mailinator.com for such kind of tasks
 
@TOOTSKI So is private/scripts/stuff valid ?
 
text/html;level=2
ohhhhhhhhh....... HTTP is hard
 
@HamZa Yeah, I need private/scripts/* but don't need anything else from private .. just wanted to see if this is a good way to inverse match/group.
 
11:46 AM
@zerkms Yeh, forget about type parameters, nobody really uses them for anything apart from encoding and if you use JSON it's UTF-8 All The Things anyway
 
Jay
@zerkms never seen that site. its quite kool
@DaveRandom finished my software dave
 
@Jay me neither. Just googled it in a second
 
@TOOTSKI I would use something like this regex101.com/r/pD8qQ0
Note the added \/ in (?!scripts\/)
 
Thought so, much better, thanks.
 
I also removed the redundant non-capturing group
welcome
 
11:48 AM
@zerkms What I would suggest is that you basically say to your users "if you want error messages, you must specify application/json plus whatever content type you are expecting for the resource in your acceptable types" and then if you hit an error status and they haven't specified it then just return a 406
 
Hnnnnnnng! There's 3 of them now.
 
@DaveRandom yep, it's pretty logical
 
@Fabien dafuq
@Jay ?
 
good happy friday morning :D
 
Jay
@DaveRandom www.wizardapp.com CMS I was building
 
11:51 AM
@DaveRandom Racing sim
 
@Jay please stop being annoying
 
@Fabien Where?
 
On that link no?
 
Jay
@z I'm talking to dave?
 
3 mins ago, by Fabien
Hnnnnnnng! There's 3 of them now.
 
11:53 AM
@Jay you're talking in a public room
 
@TOOTSKI You rang sir?
 
Nah, just messing with you, Sir.
 
@Fabien ...yes... I mean where IRL :-P
 
I see doubled.
 
@DaveRandom Oh no idea. Not in my house unfortunately
 
11:53 AM
@TOOTSKI ok sir
 
I see dead people
 
@PeeHaa Very well, Sir, have a nice day, Sir.
 
I see the sun shining outside.
 
Jay
@zerkms strange but ok man
 
11:54 AM
same to you sir
 
I boobies when I close my eyes
 
Dead boobies?
 
Unfortunately they're not there when I open them again
 
lol
 
11:55 AM
php is falling down @ tiobe
 
^ php is doing that for the last 10 years
 
> Whatever.
 
VB.net crossed php in it :P
 
Nice :P
 
@DaveRandom I see 0xDEADC0DE
 
11:58 AM
in top 10, 4 r microsoft's languages
 
The tiobe index is not useful for anything apart from historical interest
 
@NiekBergman 0xDEADBEEF
 
@TheLuckyGoof and 3 of those are owned by Microsoft proper
 

« first day (1273 days earlier)      last day (3690 days later) »