« first day (1485 days earlier)      last day (3467 days later) » 

12:01 AM
@FlorianMargaine Fair enough :)
 
@SeanAllred I'd use an emacs SO chat client though
but websockets were a pain last time I tried in emacs...
and auth is even more of a pain
how do you handle auth btw?
yay! make finished!
 
12:18 AM
@FlorianMargaine Why don't you try it out? ;)
I'll dig up a test link…
 
it looks like it's using a third-party?
 
Oh, wait – actually, at the stackapps page (stackapps.com/q/3950/11299) there's a screenshot
Eh, sort of. The site is hosted using GitHub pages
So it's all local to the repo, as it were. All the site does is parse something out of the hash that SE sticks on the redirect
 
anyway if you feel like it's too early for MELPA, wait a little bit... put it on it when you reach 1.0 :)
 
I considered a future chat client, but that's way too complicated for my skills at the moment :) I haven't the foggiest how it would work. Given SE's concerns for a quality experience, I don't think they'll ever open it up via the API
(I don't think that'd be feasible, anyway.)
 
it's very easy
there's a websocket to receive chat messages
and you send messages using POST http requests
... that's it
 
12:21 AM
Oh it's definitely too early for MELPA :) We'll probably make a debut at v0.1 (read-only stuff)
That… that doesn't sound complicated at all…
I imagine the 'proper' thing to do would be to integrate with Jabber though, but I still haven't been able to get that thing to work.
 
to get the websocket url, you need to make an http request that will give you the generated url of the websocket... but that's it
 
Haven't put too much effort in it, if I'm perfectly honest with myself
 
uh, I don't think so
jabber has nothing to do with this chat
 
I might be using the wrong term… there is a chat client built-in to emacs
 
also, the websocket is used for all the chatrooms you're in
ah
there's multiple afaik
oooh wait
 
12:23 AM
@FlorianMargaine What, why?
 
you mean erc?
 
WebSockets are bidirectional
 
If anyone is building an alternate client for this chat, as much as it pains me to say this, by far and away the most useful thing you could do would be to build a Java lib for it
 
@AndreaFaulds I know. But it's how SO chat works.
@DaveRandom why?
@AndreaFaulds don't ask me why, ask @balpha :P
 
@FlorianMargaine Weird. Maybe because it uses some other approaches for receiving messages when WebSockets aren't available?
 
12:25 AM
@AndreaFaulds It does make sense when you consider how DB stuff works, it means you can have a very high perf event loop that just deals with read notifications, and leave the writes to regular HTTP requests
It is a good scalability/complexity tradeoff
 
@DaveRandom Good point
 
@FlorianMargaine Yeah! That's it :)
Sorry, I'm going back and forth now between this and #emacs on freenode
 
@AndreaFaulds oh it does have a fallback when websockets aren't available, but even with available websocket, it sends POST requests to send messages
@SeanAllred it's an irc client
 
@FlorianMargaine Android, (reasonably) easily portable to obj-C and SO/DLL
 
Yeah. I'm going to perfectly honest – web stuff isn't my thing. It was a task to get the website up for authorization.
I didn't even do the styling – some awesome kid did it for me
 
12:26 AM
@DaveRandom WRITE IT IN PHP. PHP ALL THE THINGS!
 
@DaveRandom so you just want an android client.
if you're talking about "portable"... you mean rewritable, right?
let's just do it in C :P
 
Why do we need a client for mobile?
 
Y'know PHP honestly scares me XD But again, this is probably because the internet in general scares me. I'm sorry to say that I'm not even a superuser XD
C!
 
The mobile web one works great
 
There's a language I can get behind :)
 
12:27 AM
@AndreaFaulds "great"
can you reply to a message on mobile?
that's the feature I miss the most...
 
Nope
Ditto
 
the other feature I wanted was nick completion, and it was recently added :)
 
@FlorianMargaine I do, but I've considered this a few times and (very annoyingly) Java is actually quite flexible in this regard. I could far more easily hook into a Java lib across a variety of archs than just about anything else.
It really pisses me off, tbh
 
@DaveRandom uh?
but... C is even easier. Most languages have FFI to C
 
Yeh but it would be an epic pita to write and maintain
 
12:29 AM
a lib? not necessarily
I'm not talking about the client, just a lib where you can hook into and get messages out/in of it
 
The thing is, it's a bit of a moving target as well (it doesn't change a lot, but SE won't commit to not changing it beyond recognition tomorrow)
I really, really fucking hate that this is the case, but Java is the best choice for something, ever.
(IMO)
I have thought about this quite a lot
 
@AndreaFaulds this kind of warning?
025+ Warning: xml_parser_set_option() expects parameter 2 to be long, double given in /vagrant/ext/xml/tests/xml_parser_set_option_variation2.php on line 76
026+ NULL
@DaveRandom I don't see why. How do you use java lib in php/c#/anything?
 
@FlorianMargaine Yep
 
you rewrite it every time?
@AndreaFaulds does this mean that the value was too high?
 
@FlorianMargaine Too large, too small, or NAN, yes.
 
12:34 AM
the thing is... it changes behavior
================================================================================
041+
042+ Warning: gzfile() expects parameter 2 to be long, double given in /vagrant/ext/zlib/tests/gzfile_variation11.php on line 17
043+ NULL
044+
045+ Warning: gzfile() expects parameter 2 to be long, double given in /vagrant/ext/zlib/tests/gzfile_variation11.php on line 17
046+ NULL
061- array(6) {
067+ ===DONE===
062-   [0]=>
063-   string(36) "When you're taught through feelings
064- "
065-   [1]=>
066-   string(26) "Destiny flying high above
 
Yes, PHP does dumb things when params are invalid
However, it's unlikely to break anything serious
 
Tests failed    :  132 (  1.0%) (  1.5%)
5 less than expected!
 
Thanks for the tips, guys! And I'll look into the possibility of integrating chat into the client. It'd be very interesting.
cheers
 
@AndreaFaulds is this expected to fail?
      'float 12.3456789000e10' => 12.3456789000e10,
      'float -12.3456789000e10' => -12.3456789000e10,
(the values)
 
@FlorianMargaine There are transparent bridges and/or compilers for just about everything you can think of
 
12:37 AM
@FlorianMargaine Hmm... I don't think so
 
must be another value in this file then...
 
Look at the diff?
 
@FlorianMargaine A lot of PHP integration tests basically just test that things are consistently broken
 
@DaveRandom Yes. Way too many tests check zpp is working properly
 
12:38 AM
@AndreaFaulds apparently, 2 values here break tests: pastie.margaine.com/c1cf4a0d-105c-4d3d-a833-3e9c9f9d9876
 
Which is a pain if you ever change what zpp does
Wait
@FlorianMargaine it's e10
so 123456789000
Which is too big, so yes, that would fail.
So yeah, just add the warning to the expected out
 
ah
missed it
ty
 
Me too, I didn't notice that until now
 
@AndreaFaulds They do, but on the flip side they are also testing that the function they are "testing" uses a zpp format string that gives the expected behaviour
 
@DaveRandom Yeah :/
 
12:40 AM
alright
I'll try to work on that tomorrow
 
unit test vs. integration test is hard
 
honestly... fixing tests like that isn't very long
 
Yeah
It's a pain to do in a VM though...
 
@FlorianMargaine #FamousLastWords
 
you know... ./...sh >> ...phpt
:P
@AndreaFaulds I mainly work in terminal, doesn't change much for me
that said... why are we exposing this kind of warning to userland?
 
12:44 AM
@FlorianMargaine It's really slow on my machine...
 
long/double... shouldn't that remain internal only?
@AndreaFaulds ah :<
get a new one :P
 
@FlorianMargaine We should say int/float but nobody will fix the message, too much work
 
As for having an error itself, it's safer than doing nothing and silently wrapping/truncating
 
yeah I'm not talking about that
I read the RFC, don't worry :P
 
12:45 AM
@FlorianMargaine I'd like to make the names consistent... I should make an RFC for it
Obviously can't fix zpp, but other places maybe
 
it's just exposing long/double to userland... weird
@AndreaFaulds sed to the rescue
I used it quite a bit to rename php5 to php7 :P
 
@FlorianMargaine Yeah, it could probably be done with a clever sed script, actually :)
 
which is funny btw... I am one of the most active contributors according to line count changes thanks to this PR :P
 
Heh
Yeah, the bigint patch and this patch, if merged, should do something similar for me ;)
 
I'm still rocking +1024 line count, yet more things contributing to my fear of merging anything else :-P
 
12:51 AM
@AndreaFaulds I'm surely going to fix some tests tomorrow... which ones are you working on?
@DaveRandom man I wish the PR had 14 less lines...
> Showing 154 changed files with 1,038 additions and 1,052 deletions.
 
@FlorianMargaine There's nothing for it. You'll have to add 1010 more lines.
 
@FlorianMargaine I fixed one test so far today... or maybe two, uhhh
 
@DaveRandom 10 lines only?
 
modified: tests/output/ob_implicit_flush_variation_001.phpt
 
@AndreaFaulds lol
@AndreaFaulds hey! that's the one I showed you.
(with the hidden e10)
 
12:53 AM
Oh well.
 
@FlorianMargaine Actually, the net change is -14, so there are 1024... err... neutral? lines...
 
hey, you raised an interesting point
I actually deleted code from php-src
y'all should thank me, that's less code to maintain!
 
Replace master with the Python src
5
 
I also deleted code
But beloved code
Sacred code
 
... ?
anyway, good night people
 
12:56 AM
Logo GUIDs
Night ^^
 
1:23 AM
Oh dear
I accidentally sudo shutdown -h now my laptop, not my VM
That'll teach me... I shouldn't have used now
OH YES! Compiling with CFLAGS=-m32 LDFLAGS=-m32 means I can do 32-bit testing without a VM! Yesssssssss
 
@AndreaFaulds You're using vagrant?
 
@Danack No, VirtualBox...
Should probably consider using vagrant.
 
You should, but you can also just suspend VMs from virtualbox, or kill them from the GUI....makes it a bit less likely to shut down the wrong one, or shutting down something that isn't a VM.
 
True.
But it's more convenient to shutdown from the terminal
@Danack One problem is my VM's root pwd is the same as my Laptop's
Which I now see was a stupid idea
 
1:43 AM
Interesting note on Virtualbox: >14.3.12 has some issues on x64 Win7/8 boxes apparently.
And I'm having to downgrade to recover my machines.
I am in the midst of doing this now :-(
 
1:54 AM
@FlorianMargaine I've fixed some more tests myself and I've gotten 32-bit compilation without a VM working, so the next few I do (tomorrow or later, imma sleep now) will be much easier
 
@DanLugg Define "issues"?
Also I assume you typo'd and meant 4.3.12?
I'm running a bunch of VirtualBox VMs on x64 Win7 and Win8 and not had any real issues, or at least not issues that haven't existed for a long time before that
It does periodically BSOD but that's just because vbox sucks in general, it's the same STOP codes that I've had forever
I'm still trying to find a way to export my vbox machines to ovirt
 
Is there a way in PhpStorm to easily add/remove environment variables like what would show up in $_SERVER or $_ENV?
 
I don't use PhpStorm, but if it has an option to edit the command-line, you could add them that way
 
@crypticツ What do you mean by add/remove them? You mean change the pre-defined vars?
If you are trying to satisfy inspections in templates etc, generally you either /** @var type $varName */ or you just live with the error (or turn the inspection off)
 
2:11 AM
@DaveRandom I think they mean add environment variables
 
That do what and are handled how by the IDE, though?
(note that it doesn't inspect array keys)
 
@crypticツ There's an environment variables setting in the 'php script' run type.
 
Unless there's some craxy inspection that I don't have turned on
 
@DaveRandom Whoops, yea, 4.3.12; and by issues I mean failure to load an image altogether. Tries to hit 0x0000000000000
 
Hmm, not had any problems like that
 
2:20 AM
basically what I am trying to do is have the server pass environment variables to PHP to populate in $_ENV, they are API keys.
 
@DaveRandom Yea, just downgraded, all appears to be fine now
I read that the issue was >4.3.12, so I just rolled back to that. Didn't try any minors in between.
 
Could be DEP, I tend to disable that on a lot of machines, I have found it causes more problems than it solves
 
Win7 x64 host, Win7 x64 guest.
 
@crypticツ When trying to run the script in PHP Storm or just in general?
 
@DaveRandom Not sure
So, I've been coerced into playing league. I might be gone now.
 
2:25 AM
@DaveRandom trying to run it. What I do is run php in Phpstorm terminal tab.
so since php server is running under that terminal session, can I have PhpStorm add my variables to that environment and thus PHP should be able to access it.
 
@crypticツ If you run php with the 'PHP builtin webserver' type, it has an entry box for env variables. If you click 'edit configurations' at the top you should see it.
And that's also easier to use that running it yourself through the command line in the terminal window.
 
@Danack and that is stored per project?
 
@crypticツ Yes...the things you run through the run and debug buttons are per-project.
It's only things you run by binding a key press that are stored globally - which is quite annoying as I'd love to be able to bind a key press to a specific build e.g. the unit test for each project.
In a Javascript library, is throwing an error the accepted way of notifying developers that something went wrong, without affecting end-users? e.g:
if (typeof(require) != 'undefined' && typeof(XRegExp) == 'undefined') {
	XRegExp = require('xregexp').XRegExp;
}

if (typeof(XRegExp) == 'undefined') {
	throw new Error("XRegExp is not defined.");
}
Or is there a better way?
 
2:44 AM
emm ... why abuse the typecasting instead of writing typeof(require) !== undefined ?
 
@tereško Not my code - basically I think the guy who has maintained SyntaxHighlighter for ages is a terrible developer.
So I'm forking it.
Currently the library just dies in the middle of processing when XRegExp isn't loaded.
 
 
3 hours later…
6:02 AM
 
6:20 AM
application tryed to obtain some file, but failed. How to find out on OS level where application looked for file?
 
6:34 AM
@sectus watch for handles opening and rerun the application?
 
6:49 AM
hello
i using $_SERVER['REMOTE_ADDR'] to get user ip when they uploaded image to my server, but all result is 127.0.0.1, i think the problem is my server is using apache +nginx, anyone know how can get the actual ip of user who uploaded image in my server?
 
7:03 AM
What do you do when your soul-mate waltzes into your life, but you've long hitched your wagon to a dying star?
 
@DanLugg soul mate doesn't imply compatible long term partner ... soul mates are sometimes better as mates ...
 
@JoeWatkins s/soulmate/high-probability compatible long term partner/
I was being a bit poetic with my word choice.
 
any kids ?
 
No, just a house that we took ownership of 9 days ago.
That sounds messed up probably, and that's because it is.
 
oh yeah, I totally remembered that ...
 
7:11 AM
?
 
(I forgot about your new house)
 
Oh, I forgot I even mentioned it :-P
 
well ... I certainly wouldn't do what my primitive emotions lead me to believe is right ...
I think my soul mate would annoy me after ten years ... someone just like me would get on my nerves, a lot ...
 
</sarcasm>? Nevermind.
 
nope, I hardly ever do what emotions tell me to do ...
I can't really be considered an expert, I don't remember the girlfriend I had before my current partner, it was >10 years ago ...
 
7:14 AM
Curiously, I'm in a similar situation...
I'm kind of an idiot, as I've stuck with my current partner despite my brain nagging me endlessly not to.
~10 years. With the occasional break, in the first half.
 
literally waltzed in the last day or something ?? or you know them well ??
 
Literally waltzed in, a week ago. And we sort of met under an odd pretense.
 
you don't think your current partner feels the same as you, is she on the lookout for a soul mate ?
 
No, I don't think so. She's rather welded.
But considerably unhappy. Really, at this point it's probably the thing we have most in common.
 
what's rough for you is rough for her ...
a house is a big expensive commitment, and 10 years is a considerable percentage of the time you will get to spend on earth ... I wouldn't be too hasty about anything ...
 
7:19 AM
The issue is, that this other person hasn't been necessary for me to see the forest for the trees; it's just making it painfully obvious that someone would be (her, specifically) much better for me.
So far as I can tell.
@JoeWatkins As is my dilemma.
I've kind of resolved that, if I can determine that the only true barriers at this point are financial, then it's worth it to leave because money is just money. You can always make more.
But despite that resolution, I'm still a bit lost.
I've got this "life as cinema" thing going on, because nothing could have come with worse timing.
 
well ... emotions are probably informing your thoughts, I'd eliminate those first ...
we can't tell who would be good for us, as a matter of absolute fact, we cannot see the future ...
 
Certainly, I agree.
How do you suppose I should approach this? I don't know if pure objectivity is possible.
 
it is, emotions are not a useful tool for making life altering decisions, you have to make decisions objectively, there isn't another correct way to do it ...
 
Well, there's two ways to look at the situation; as far as my personal resources, such as finance and such go, staying would be a responsible decision.
On the other hand, I've been perpetually unhappy.
 
why unhappy ?
 
7:25 AM
I honestly think we loathe eachother's involvement in our lives.
I know I feel that way, and her actions demonstrate reciprocation.
 
actions such as ?
(that's terrible)
 
Perpetual disagreement for the sake of, physical and emotional detachment (though, I think she may be a bit emotionally bipolar because she'll swing into over-attachment occasionally, which itself is really unhealthy)
Arguments that spiral out of control into petty and often hurtful language.
^^ For example
 
you engage in the same behaviour ?
 
Yes, I do. The disagreements, yes. The physical and emotional detachment yes. The arguments, I prefer to try and let things go, or at least not let them get worse, but she can't let anything go for a second, and she blows up and I blow up.
I'm not proud of any of it.
 
you are one half of the relationship, it takes two people to disagree, to be physically or emotionally detached, you have to be allowing that to go on ... what if it's something about you, what if you get into a relationship with someone who appears to be your soul mate today and in a few years you are back where you started ?
 
7:31 AM
Grass is greener, but what if I'm not?
 
there was never a time you considered your current partner to be your soul mate ?
 
~9 years ago.
 
so soul mate means precisely nothing, you had one of those before ...
 
Heh, i c wut u did thur.
Jokes aside though, that's a very good point.
 
you can repair relationships, that's certain, we can't tell what will happen in the future, my probably poor advice has to be, honesty ... I would be honest with your partner and tell her you are not happy, speak as frankly and as politely to her as you did to me to explain the problem ...
 
7:34 AM
Regrettably, I have done that.
 
and what came of it and how long ago was that ?
 
Several times in the last ... I can't even remember how long. And she's done the same.
Typically, I just don't care. And she just blows up, and then I either blow up or leave for awhile.
I don't think I'm merely convincing myself that the relationship is an empty shell. It's running on fumes, but I don't know if it's really dead.
It might be repairable, but I also don't know if I even want to try anymore.
The house was purchased specifically for financial reasons.
 
I think you do, I think primitive emotion has aroused your interest in having a more fulfilling relationship, with anyone, you cannot really be making assumptions about anyone you have known for a week. I'd work at it, if it's your last attempt at working at it then make it count. I'll bet if you sat down with a professional you could find other reasons for her behaviour other than being bi-polar, and probably find reasons other than "I don't care anymore" for yours ...
or even without a professional, but a mediator is good ... maybe another friend, a mutual one ...
 
3 mins ago, by Dan Lugg
It might be repairable, but I also don't know if I even want to try anymore.
^^ This is a really big factor.
 
this conversation constitutes trying, the fact that you didn't leave already does also
 
7:42 AM
I may have walked in here with a loaded opinion perspective at the moment though.
I don't want to hurt anyone (badly), and people are going to get hurt.
 
it will be less hurtful if it's a mutual decision, having tried everything else ...
 
Hmm.
 
if you are both consciously trying to fix it, and can both observe that there is no fixing it then there is nothing else to do but part ways, nobody necessarily hurts, it might even be a relief ...
 
Understandable. That won't happen though. She's too prideful to let it go.
As though acknowledging the relationship has failed is a failing on both of us, but importantly her.
Well, I might be more confused, but I'm certainly more wise. Thank you @JoeWatkins.
 
no problem, I'm not expert, can easily be wrong and probably am ... it's good to talk though :)
 
7:48 AM
@JoeWatkins Without a doubt. You can't be any more wrong than me :-)
 
what does your current partner do for a job ?
 
Credit/collections manager.
Has an MA in business economics.
 
so has a reasonable grip on maths ... good ... the chances of any one individual finding another that they can spend the duration of the lives with are infinitesimally minute, if a relationship fails after both parties have really tried to fix it, it's nothing more than mathematics making it fail, it's not either individual, it's odds ... that has to be true ...
 
@JoeWatkins I know. But she's emotionally irrational. She's remarkably brilliant when it comes to academia, specifically math and statistics. She also believes in Russian curses. Literally.
I mean to a degree where it has a considerable impact on her and surrounding lives.
 
try to encourage her to leave emotions out of it, because not good tools ...
 
7:55 AM
I have... Maybe not every possible way, but I gave it the college try.
 
I have an engineer friend who believes in curses, by the by ... he does a lot of cocaine too ...
we are remarkably good at holding contradicting opinions about the world in our heads ... remarkably ...
 
Curses as an example.
A damn fine example, but an example nonetheless.
But it doesn't matter what she believes or doesn't, in that respect.
 
she has a rational side, we all do ... I don't know how to get there, but you need to be in a place where your rational sides are the ones doing the communicating and making decisions
 
good morning
 
I think I've just become exhausted, which cycles back into not caring.
Anyway, on the mention of exhaustion, I believe I'll go collapse.
It's 3AM here.
Thanks so much again @JoeWatkins. You've certainly helped me open my thinking.
 
8:00 AM
you sleep now @DanLugg nn :)
np
 
Night :-)
-- Programmers Helping Programmers
 
hehe
morning @DanielRibeiro
 
how are you @JoeWatkins
 
tired, kids woke me up at half five because apparently they just don't get that it's Sunday ... they are so unreasonable ...
 
haha, interesting. well, it's sunday for me, but here in the middle-east we're working :)
 
8:13 AM
sounds warm ...
 
morning people!
 
yo! :)
 
wassup
 
moin
 
8:44 AM
Anyone handy with scala - help with [my first CR.SE question]*codereview.stackexchange.com/questions/69291/…) would be very appreciated.
 
 
1 hour later…
9:51 AM
morning
 
Good sunday morning everyone.
 
holy crap its sunday :(
 
10:30 AM
Morning
 
@Basj I proxy to other implementations to generate random numbers. So the math I've implemented is more about mixing random numbers together safely than generating new ones. So I rely on system implementations of algorithms.
 
10:58 AM
 
11:21 AM
@JoeWatkins wat
 
moin
 
kins
 
12:16 PM
Morning
 
Morning Folks
 
Please tell me where you are buying fuel for 96.9p/l — DaveRandom 24 secs ago
 
i have to redirect a page to another page but I should not lose the url parameter
For example
redirect it to example.com
In example.com (index.php file) I have to get that parameter, whether it's "success" or "failure" whatever it may be
 
Why do you want to drop the /success part in the first place?
 
huh?
 
12:52 PM
because, it denotes a transaction which is linked to google analytics goal
if some one looks at it, they have chance to hit it again
 
Ow there is someone tiny in between. nvm
 
which goes for false transaction count
in success/index.php i have used header('Location: example.com');
but it isn't redirecting
i also used .htaccess for redirection
it's working but I couldn't know the parameter that followed example.com
whether it's success or failure
based on this parameter, i have to show a pop up in the index.php (example.com)
 
Simple answer would be to redirect to http://example.com/?result=success or something instead
You could also use a session
But you shouldn't have a GET-able resource which is not idempotent
 
yes, but how to track this url for google analytics goal?
 
I have no idea, I don't do analytics or any of that crap
 
12:59 PM
alrite, i need onething
when i hit example.com/success
 

« first day (1485 days earlier)      last day (3467 days later) »