« first day (2190 days earlier)      last day (2774 days later) » 

11:00 AM
who do we hassle to get the hook done @NikiC ?
I'm probably gonna do it again, I don't even know how it happened :(
the patch I was merging was a single character on a single line ...
 
@JoeWatkins someone with SVNROOT karma
And who can condescend to write some shell code
 
it doesn't have to be shell though, right ?
 
yeah, doesn't have to be
 
maybe if one of us gives someone with svnroot the script, it will actually get done ...
asking someone to write and upload a script seems like too much ...
don't suppose anyone has a git server installed locally do they ?
 
Good morning
 
11:13 AM
@JoeWatkins @NikiC we already have a Git pre-receive hook, to do the karma checking, and preventing pushing to "restricted" and "closed" branches. You could modify that to do the "this merge looks freaky, I'm not going to let you do that" check as well. See github.com/php/karma
 
@salathe oooh nice, it's php
Something I can actually understand
 
I have karma karma (karma chameleon), so can merge any PRs you guys make. :)
 
even when they are in go, when they are in goooooooooooohohooh?
 
I failed my language exam for which I was preparing for 4 months and even using Sundays in the library :\ I need motivation to go on..
 
@AlmaDo Donaudampfschiffahrtselektrizitätenhauptbetriebswerkbauunterbeamtengesellschaft
 
11:20 AM
yes :(
 
that should be motivation enough. that … and anything about wurst.
 
I got 73/75 for the speaking exam.. and failed the "writing" part. Of course I would.. if someone asks me about tourism or economy - hell, I don't know the stuff even in my own language..
 
if that doesn't help to motivate you… consider reading Rainer Maria Rilke
 
nah. I'll be fine. Just needed to say something
 
if that also doesn't help, imagine being able to insult me in my native language
 
11:23 AM
@Gordon early 20th century literature? why are you recommending that?
 
@bwoebi because its beautiful
 
@Gordon you know.. I can somehow speak it. I mean - as long as it's ordinary life stuff without involving politics or philosophy things
 
@AlmaDo yeah, but you also need to read and write it. practice makes perfect
 
@Gordon I'm now in a process of arguing with the exam center. Because I failed in the writing part.. which I learned by heart word-to-word from a text provided by German teacher
I can't get what do they want then Oo
I should write like Goethe ?
 
@AlmaDo Do they think you cheated?
 
11:27 AM
@AlmaDo whats the point of argueing with them? I mean, sure, it helps to know why you failed that part but argueing over it?
 
@bwoebi doubt. In this case they would just discard whole exam and the note would be corresponding
 
@AlmaDo I have no idea what your note on writing was
 
@Gordon the point is: as I'm convinced I did near perfect text writing, I see no sense in repeating unless I know what went wrong. So at the very least I want to see what was the reason for the poor score
@bwoebi "note" .. I meant there would be "0" if you cheated :p
 
@AlmaDo yes, but you can get that without arguing.
 
11:29 AM
@Gordon well, arguing is when you disagree with the result and ask for stuff, right?
 
@AlmaDo arguing is when you disagree and try to change the outcome
 
@Gordon because if you agree/don't care, you wont write anything :)
@Gordon well, I partly disagree with the thing, but my request is about justification. If they won't be able to provide one .. then.. it looks like I'm arguing :p
getting 30% for the thing I expected to be the best thing in the whole exam is.. hm. Worth asking :p
 
the thing about arguing is that it builds fronts easily
whereas just requesting feedback doesn't
 
I don't expect much from this. The outcome will just define whether I repeat the exam or not
if they won't cooperate and just reply "it's our business how we assess, shut up" - I wont repeat that
I even have a feeling my text was confused with someone else's text btw.
ah, never mind (: I'll get with it somehow
 
try the link I gave above :)
 
11:35 AM
that's what I see there
 
you using lynx or something?
on a completely different subject: why is this not fixed yet? it annoys me right now
 
Is "because Oracle" not a good enough explanation?
 
@DaveRandom I guess it is
 
You seem to forget that Oracle's modus operandii is to acquire any company that dares to release some moderately complex/somewhat legacy open source software, solely so that they can watch the support requests pile up and laugh at them.
 
Anonymous
@Gordon unreal
 
11:41 AM
Oracle: powered by Schadenfreude since 1977
 
♩♪♫♬ we had joy, we had fun, and then Oracle bought Sun ♩♪♫♬
10
 
that updating DNS record solves redirect ....
 
so what is the question?
 
^ that
 
I would like to know ....why the direct is happening and is the redirect is from server or DNS....if it is from server .... why it is redirected to the same location location, same host name and same ip....what makes the server not to redirect after few attempts ....
*redirect
sorry guys if i am not making myself clear...
is it making sense to you guys...what i am asking...?
 
11:58 AM
Probably because the A record points at an IP address that github are no longer using in their own pool of addresses.
A CNAME record is an alias, so changes to the base record propagate outwards. An A record is a direct mapping that doesn't change until you go and change it.
btw people create far too many A records in general, A records should name a specific machine/IP endpoint, public facing names should almost always be a CNAME to one or more of those
(imho, ymmv)
if/when ANAME become a real standard thing, that could be extended even further to domain root records
 
@DaveRandom I had that happening… couldn't use github until I flushed my local dns cache…
@DaveRandom What exactly is an ANAME?
 
A record? nope
 
@bwoebi It's a thing which behaves as an A record from the client's PoV, but let's you alias it to another name from the server (NS) PoV. Basically it's a server side relay. There are a couple of hosts that support it and that's what they are calling it, but afaik it's not in any way a standard thing (so that's only an informal name)
The main advantage is that you can use it for the @ record
 
@DaveRandom don't we have DNAMEs for the @ record?
 
@bwoebi afaik you can't use that at the root level, it's only for delegating subdomains (but that could be wrong)
 
Anonymous
12:08 PM
!!version
 
^ @PeeHaa I think it's time for a new release, isn't it?
 
Anonymous
:s
 
Regardless, it's still slightly different because the idea is that it's completely opaque to the client, anyone issuing a query just sees a regular A record
@kelunik heh :-P
 
Notice: A non well formed numeric value encountered in D:\wamp\www\xxxxxxx\system\library\image.php on line 86 in my opencart site this error occurs ..please help me how to solve this
 
12:10 PM
what is on that line?
 
0
Q: Notice: A non well formed numeric value encountered in my page

abdulNotice: A non well formed numeric value encountered in D:\wamp\www\chottakart\system\library\image.php on line 86Notice: A non well formed numeric value encountered in D:\wamp\www\chottakart\system\library\image.php on line 97 Please help me to solve this... <?php class Image { private...

 
@abdul does "delete opencart" count?
 
There's some more information
 
@DaveRandom would be news for me… but if you can find it in tools.ietf.org/html/rfc6672, you're welcome.
 
error occurs in this line @DaveRandom $this->image = imagecreatetruecolor($width, $height);
 
Anonymous
12:12 PM
 
Wow I'm dumb
 
@abdul OK then you need to var_dump($width, $height); before that line and see what those values are
 
P sure I added that at midnight or something when I was out of my mind
 
Anonymous
:P
 
oh @DaveRandom ...i will try that ...
 
12:13 PM
PR added
>_> Github's online editor added a newline at the end of the file. Tried to edit it out and it added it back in. What
 
@DaveRandom ...error occur again like this string '500px' (length=5)

string '250px' (length=5)

Notice: A non well formed numeric value encountered in D:\wamp\www\chottakart\system\library\image.php on line 87Notice: A non well formed numeric value encountered in D:\wamp\www\chottakart\system\library\image.php on line 87

string '500px' (length=5)

string '250px' (length=5)

Notice: A non well formed numeric value encountered in D:\wamp\www\xxxx\system\library\image.php on line 98Notice: A non well formed numeric value encountered in D:\wamp\www\xxxx\system\library\image.php on…
@DaveRandom ...error occur again like this string '500px' (length=5)

string '250px' (length=5)

Notice: A non well formed numeric value encountered in D:\wamp\www\chottakart\system\library\image.php on line 87Notice: A non well formed numeric value encountered in D:\wamp\www\xxxx\system\library\image.php on line 87

string '500px' (length=5)

string '250px' (length=5)

Notice: A non well formed numeric value encountered in D:\wamp\www\xxxx\system\library\image.php on line 98Notice: A non well formed numeric value encountered in D:\wamp\www\xxxx\system\library\image.php on…
 
> Unlike a CNAME RR, a DNAME RR redirects DNS names subordinate to its owner name; the owner name of a DNAME is not redirected itself. The domain name that owns a DNAME record is allowed to have other resource record types at that domain name tools.ietf.org/html/rfc6672#section-2.3
 
Unlike? O_O
 
@abdul my naive guess would be that the px in 250px is not a well formed numeric value
 
i.e. I can create foo DNAME bar.wherever.com and foo A 11.22.33.44
 
12:19 PM
!!docs imagecreatetruecolor
 
[ imagecreatetruecolor() ] Create a new true color image
 
The DNAME only affect whatever.foo
 
^ Expects integers, not pixel strings
 
resource imagecreatetruecolor ( int $width , int $height )
 
at least that's how I read it @bwoebi
 
12:19 PM
dont collapse me please give me a idea guys
 
I must admit I'm confused though, there are not enough examples in that RFC
 
@DaveRandom Agree
 
@abdul Well, we've just told you. You're passing through '250px' and '500px' when it should be 250 and 500
 
shall i put entire code
 
no
 
12:21 PM
ya ,offcourse @Sean thank you i will try that
ok @tereško
 
the "entire code" will not affect your ability to debug (or lack there of)
 
its ok @tereško
i really thank to you @Sean....now error cleared..
thank you all guys..... @DaveRandom @Gordon @Sean
 
evening room
 
Evenin'!
 
evenin' mornin'
 
12:28 PM
E_MORNING
 
lol wait
 
Anonymous
@DaveRandom This is still something that needs to be done right? github.com/Room-11/Jeeves/wiki/OpenID-Request-Flow
 
We need to make it work with sites that are not SO, yes
Existing code, such as it is, is in there ^
 
> Remove extra newline at the end.
 
Bah, on PHP 5 I get a wrong object back, on PHP 7 it hangs …
Why can my bugs not be consistent through versions at least?!
 
Anonymous
12:32 PM
@DaveRandom feel like I'm missing a step somewhere..
 
@JayIsTooCommon ?
 
@DaveRandom is there a certain rule for newline at the end?
or was it just PeeHaa making me add one
 
end of what? of a file?
 
yes, sorry
 
moment, let me try and find the link that I saw literally the other day
 
Anonymous
12:36 PM
@DaveRandom I'm using my own OpenID - authenticated, running without errors but I think I'm missing a step somewhere before I can actually start parsing or posting anything?
 
to paraphrase: a "line" is "zero or more characters terminated with an LF". If there isn't one there, it isn't a complete line. There are a number of ways in which this definition makes sense
 
Hello gods of php, can you help out ? jsfiddle.net/ng060tyL i want this to be Mac style when i hover it, i don't want the width to change, i want it to expand without modifying the parent's width
 
687
Q: Why should text files end with a newline?

Will RobertsonI assume everyone here is familiar with the adage that all text files should end with a newline. I've known of this "rule" for years but I've always wondered — why?

so it's by convention, but there are also real reasons for that convention @Ekin ^
 
I see and makes sense so far, thank you
 
@JayIsTooCommon do you have dev-mode/enable = true in your config.yml?
 
Anonymous
12:39 PM
Yeah
 
by default the bot won't respond to itself, and it's definition of "itself" is the same user ID
@JayIsTooCommon where is your bot? (which room)?
 
Anonymous
playground :)
 
has anyone ever used php.net/manual/en/book.fann.php?
 
@DaveRandom sorry for late reply.....i understand ....what is A (address) Record and CNAME.....but ...this thing is .....who does the redirect...and why it stopped after following redirect for 2 or 3 times...
 
Do I have to sanitize my db outbut even if I do it when I put values into it?
 
12:46 PM
@DaveRandom this is the problem i am facing...
redirect headers
HTTP/1.1 302 Found
Connection: close
Pragma: no-cache
cache-control: no-cache
Location: /
if server(web servers like apache, etc.,) does the redirect, why it's not adding server header...
 
@yessure you dont have to sanitize values ever. Same way as you dont have to lock your apartment doors or look before crossing the road
 
@kelunik tbf I'm not sure anymore. When we should release a 2
We should probably set up some goals or something
 
Just don't release 2.
 
@DaveRandom I don't have my own mailserver anymore
@kelunik I have to
 
Release year.month.
 
12:51 PM
Hmm so screw semver?
 
Semantic versioning does only really make sense for libraries.
 
Trueish
 
Otherwise we'd be at 10 or so already.
We don't follow semver in Jeeves anyway.
 
We do
That's the reason there hasn't been a release since 1.3
 
No we don't. We broke APIs several times.
 
12:52 PM
@Vijay The Server: header is optional and not required for anything useful?
 
@kelunik Exactly
 
What are you wanting to do with that header?
 
And we didn't release anything @kelunik
Everything works on master now
45 secs ago, by PeeHaa
That's the reason there hasn't been a release since 1.3
 
@PeeHaa There's no need to though
 
6 mins ago, by PeeHaa
Trueish
Keep reading people :P
 
12:57 PM
@DaveRandom i am not using the server header but....it helps me find where server is servering the site...here.....i would like to in what bases they are doing the redirect and why it is succeeded after some retries.....what makes it to redirect .......
 
I have a crazy idea... you want to know how github's internal system works, why don't you ask them?
I can guess why it's like that with a fair amount of confidence, but I don't know...
 
@DaveRandom ......let's the same example i shared with you....the githup...one...
;michael.penkov.id.au. IN A
michael.penkov.id.au. 86400 IN A 204.232.175.78
penkov.id.au. 14399 IN NS ns1.linode.com.
 
Yes I understand what you are asking, and I'm telling you that I don't know the answer because I don't work for github.
I know how DNS works and I know why it's a bad idea to create A records when you were specifically instructed to create a CNAME and I know that the result when you do that is probably "undefined behaviour".
 
ya...i got..it....but this redirect is not make any sense to me....i will talk to him....if got something...will let you know...
@DaveRandom Thanks...for your help...man...
 
Anonymous
so many ellipses
 
1:07 PM
flagged for excessive use of ellipses
 
@PeeHaa did @JoeWatkins do something again?
 
Anonymous
:P
 
@Vijay Are you JoeWatkins's alt?
 
@littlepootis what you mean....who is JoeWatkins
 
hmpf, I broke my terminal:
`✘ 15:19 ·/C⎺␍␊/°␋├14-␍␊┴␉⎺│ [ └▒⎽├␊⎼ ≠ ✔ ] $ `
 
Anonymous
1:20 PM
What's the problem?
 
hi...has anyone here ever worked with push notifications with phonegap?..i´m asking this because i have an issue regarding my script and i was wondering if anyone could check it out
 
@JayIsTooCommon IDK. I did a cat /proc/114/exe and hit Ctrl-C because thats not what I wanted and then it was all broken. I just exited it and opened a new one.
 
Anonymous
@Gordon Also your time is wrong. Typical foreigner
 
@Gordon next time, just type reset
 
Is a php array ever an array? Or is it always a dictionary?
 
1:33 PM
@TomasZubiri It's an ordered hashmap.
 
> An array in PHP is actually an ordered map. A map is a type that associates values to keys. This type is optimized for several different uses; it can be treated as an array, list (vector), hash table (an implementation of a map), dictionary, collection, stack, queue, and probably more.
 
So yes, to both questions.
 
!!docs array
 
An array in PHP is actually an ordered map. A map is a type that associates values to keys. This type is optimized for several different uses; it can be treated as an array, list (vector), hash table (an implementation of a map), dictionary, collection, stack, queue, and probably more. As array values can be other arrays, trees and multidimensional arrays are also possible.
 
Oh, thanks for one upping me Jeeves.
 
1:43 PM
hmm, under what circumstance would $ php-fpm -t -y fpm.conf not give any output?
 
1:58 PM
ok, seriously?? this is utterly and completely stupid.
 
> PHP
 
php-fpm -t as well as -t -t respects the log_level setting in the php-fpm.conf
 
@Sean that guy again
 
I don't even know what -t should do
 
which means, if this is anything higher than "notice", nothing will be printed
 
2:00 PM
@PeeHaa It should make me a cup of tea. Clearly.
 
@PeeHaa -t tests the config, -t -t dumps it
 
/me goes home, bbiab
 
You're british everything should do that
yay edits \o/
@DaveRandom later
@Gordon kk
 
jeez, this is to stupid
 
2:11 PM
Would appreciate feedback on my question: stackoverflow.com/questions/39985360/…
 
Looks like an odd requirement.
 
@TomasZubiri your question is hard to answer because it doesn't make much sense - I have a strong suspicion it is going to come down to: php-fig.org/psr/psr-1/#2-3-side-effects
> A file SHOULD declare new symbols (classes, functions, constants, etc.) and cause no other side effects, or it SHOULD execute logic with side effects, but SHOULD NOT do both.

The phrase "side effects" means execution of logic not directly related to declaring classes, functions, constants, etc., merely from including the file.

"Side effects" include but are not limited to: generating output, explicit use of require or include, connecting to external services, modifying ini settings, emitting errors or exceptions, modifying global or static variables, reading from or writing to a file, a
 
I can provide a PR with the license, need Hacktoberfest PRs anyway. :P
 
Not sure about the connection Danak
 
2:17 PM
@kelunik :D
 
The file I want to modify has no side effects.
 
> I want to modify File B without affecting File A.
Why not just duplicate the function you want to modify and give them a different name?
Or why not just duplicate the file and rename it?
 
lol now they even want us to write their questions for them stackoverflow.com/q/40045022/508666
How low can you go
 
Those are valid solutions to my problem. But the first would become messy after a couple of commits.
Duplicating the file is pretty much what I want, but it wouldn't be versioned as the same file.
 
> the first would become messy after a couple of commits.
Why would it become messy?
 
2:22 PM
Because you are adding different versions of the same function for every small change.
 
No you are not
They are different functions
 
How big are these functions?
 
It's as clear cut as it gets
 
And can you give an example of a "small change" that you would want between the two versions?
 
inb4 refactor the functions
 
2:24 PM
@PeeHaa probably just - "pass in parameters, rather than hardcoding everything".
 
One example would be, throw an exception when a parameter has bad formatting.
 
@PeeHaa Done.
git clone room-11/domutils room-11/domutils
cd room-11/domutils/
cp ../../amphp/amp/LICENSE LICENSE
nano LICENSE
git fork
git checkout -b license
git add LICENSE
git commit -m "Add LICENSE file"
git push kelunik license
git pull-request
 
@TomasZubiri can you give a code example of the two different versions?
 
@kelunik \o/
@TomasZubiri You keep writing down English sentences (both here as well as in your question). Nobody will be able to gave a sane answer without the code.
 
Can I make another question regarding whether this is a valid solution to my problem?
And focus this question on whether it is even possible?
 
2:27 PM
2 mins ago, by Danack
@TomasZubiri can you give a code example of the two different versions?
@Danack thinks (and I am agrees) that you are just doing it wrong
But without code it's impossible to tell you
 
@PeeHaa Will do the same for @Jeeves. Whom should I name @ Copyright?
 
@kelunik Can you just say contributors?
 
Just Copyright (c) 2016 Room 11?
 
Not sure how that flies with possible external people
 
Put the names of the main devs plus "and conributors". Good enough
 
2:31 PM
@TomasZubiri For now while people are actively trying to help you just post the code example.
 
Fine by me
Although I would like it to say that all bad parts are (c) @DaveRandom :P
 
totally fine
 
j/k @DaveRandom I still love you bro
 
Had I look at github.com/Room-11/Jeeves/graphs/contributors, I'm the third, but don't need my name there. I don't count me as main dev.
@PeeHaa You love him because of all those bad parts. :P
 
2:36 PM
:D
 
Are there two instances of upload_tmp_dir in the php.ini file in PHP 7?
 
is there any way to overwrite php-fpm config settings via env vars or via some undocumented command line flag?
 
Anonymous
@PeeHaa why don't you just marry him then!? God.
 
I found out why uploaded files weren't inheriting permissions correctly ... because my definition was getting overwritten further down in the php.ini file -_-
 
@Tiffany No that would be strange
 
2:41 PM
wuzzup
 
Sounds like somebody cocked up a migration?
 
@PeeHaa there are actually three instances of it in this .ini file. WHY. ;_;
 
@JayIsTooCommon Is bestiality allowed over there?
@Tiffany :)
 
Anonymous
lol
 
@Tiffany just check the original file github.com/php/php-src/blob/… | github.com/php/php-src/blob/…
 
2:42 PM
@Gordon I don't believe so.....btw you probably know more about php-fpm than most people.....you could become a maintainer of it?
 
I can't. And I doubt anyone ever can. I mean, it has code like this:
88void unsetenv(const char *name) /* {{{ */
89{
90	if(getenv(name) != NULL) {
91		int ct = 0;
92		int del = 0;
93
94		while(environ[ct] != NULL) {
95			if (nvmatch(name, environ[ct]) != 0) del=ct; /* <--- WTF?! */
96			{ ct++; } /* <--- WTF?! */
97		}
98		/* isn't needed free here?? */
99		environ[del] = environ[ct-1];
100		environ[ct-1] = NULL;
101	}
102}
103/* }}} */
no one understands fpm
 
@Gordon lol
 
@PeeHaa Yeah, I have the temporary directory -- which is where I changed it. Then I found it again at line 920, under "Default timeout for socket based streams" and again at line 1889 under WebPIChanges. WTF.
I commented the two others out, and left the "temporary directory" -- which is where I defined it -- uncommented.
 
Once you have confirmed that it works please delete the other two to prevent more wtfs later
 
Hopefully this will be the end of uploaded files returning a server 500 error.
 
2:47 PM
http://stackoverflow.com/questions/39985360/php-svn-apache-updating-a-file-while-not-affecting-files-that-depend-on-it
I made the question about the underlying problem. Added code. And added lots of more detail of my situation.
Thanks for the feedback. Open for more.
 
Hm, technically this breaks BC: github.com/Room-11/DOMUtils/pull/3/files
 
Agreed
 
I still think it can be useful.
 
@TomasZubiri Even restricting the answer to the requirements you've set, trying to solve that problem is stupid. It would be much 'better' solved by having multiple implementations of the same class.
// File Cash.php
interface Cash {
    function setCash($stringValue);
}

// File ExactCash.php
class ExactCash implements Cash {
    function setCash($stringValue) {
        $this->_Cash = $stringValue;
    }
}

// File DoubleCash.php
class DoubleCash implements Cash {
    function setCash($stringValue) {
        $this->_Cash = convertToDouble($stringValue);
    }
}

// In application.php
$cashClassName = $appConfig->getCashClassname(); // e.g. returns 'DoubleCash'
$cash = new $cashClassName();
However.......having different implementations behave in subtly different ways is a fundamentally bad thing to do.
Why on earth do you want functions with the same name to behave differently?
Do you really have different concepts of 'Cash' in one application to another?
If so, then fine - but just create two different classes - don't try and force two different things into a single object.
 
@Danack it lacks a JohnnyCash
 
2:58 PM
@PeeHaa Shouldn't //Item match all <Item> XML nodes in a document, no matter where they are?
 
@kelunik unless you specified a context node
 
@kelunik that's *// iirc
 
@Gordon I found nvmatch btw - fossies.org/linux/nmh/sbr/putenv.c ...... I like it's extensive documentation.
 
Ah... finally, have to use //:Item, because of namespaces.
 
Listen to @Gordon
 

« first day (2190 days earlier)      last day (2774 days later) »