« first day (1277 days earlier)      last day (3683 days later) » 

9:00 AM
And then you can pull it
with git pull
 
@DaveRandom Haha, that one is classic
 
On branch master > nothing to commit, working directory clean
 
@SecondRikudo Stupid rtl making it impossible to copypasta :-(
 
@Duikboot you won't see any change until he has edited committed and pushed
then you can pull and see the changes he has made, with the message he added
 
I just made a commit with a message.
 
9:05 AM
@DaveRandom :D
 
When @AlulaErrorpone runs now git status he can see my commit?
 
@Duikboot No, because you dont have push rights to master
@Duikboot I'd only see your changes if they were on master / remote
 
no, you have to push
ok... one moment... I'll setup up a repo.
@Duikboot let's play with github.com/iroegbu/File_Reports
 
views_include('view');
$views = view::load_views();
 
9:08 AM
@AmalMurali I rolled back because of too few changes (and grammar.. well, it's vague).
 
I pulled it.
 
@AlmaDo: Too few changes?
 
I know the basic git commands but I never used it with more then 1 person( myself )
 
yeah. in my opinion. of course
 
::load_views(); isn't even a static function. Good job Drupal.
 
9:08 AM
@AlmaDo: You call this too minor?
Then I have no idea what "too minor" means ;)
 
@Fabien You mean... "trying to access in a static way" notice?
 
@AmalMurali yes. No sense in this. Because: 1. You've broken my traditional question style. 2. You've put your code style while I prefer to leave mine. Correcting format may be "many letters", but "little sense"
 
[master bd668e3] Read Me Duikboot
1 file changed, 3 insertions(+)
 
@DaveRandom it seems the issue is in this:
reset();
while (get_current_data(&data) == SUCCESS) {
    move_forward();
    code();
}
 
@Duikboot you need to push it
 
9:11 AM
OK
 
@AlmaDo: 1) There is no "my" question. Once you post it, it belongs to the community. That's the whole point of Stack Overflow. Collaboratively edit and improve posts as much as possible. 2) Valid point.
 
@AlmaDo try it with list($v, $k) = each($array) and compare?
 
remote: Permission to iroegbu/File_Reports.git denied to
 
@bwoebi The issue is strange foreach behaviour
 
@AlmaDo Plus, I copy edited the whole question to improve grammar (I'm not a native speaker, so my edit may not have fixed everything).
 
9:13 AM
(specifically it's "wtf is going on here" not "how do I do this")
 
@Duikboot gimme a moment
 
@AmalMurali yet in the same time there are some personal styles. I don't believe that intention on SO is to change question structure only because editor prefer another style and it differs from OP's style
 
Maybe I am doing something wrong setting up the origin url?
 
@bwoebi @DaveRandom is this valid? (I see the point in it, but it's without any proof, just because "I think it may be so").
 
what's your username?
 
9:15 AM
@bwoebi it's 3v4l.org/iBoF2 vs 3v4l.org/3dS9i, why does the example with 2 elements appear to not trigger COW (all 3 elements are iterated) whereas the 1 element example does (only the original element is hit)?
 
also comment with 7 votes about - non-proofed point.. meh..
 
@AlmaDo It's an interesting working hypothesis but I can't comment on whether it's correct
 
duikb00t @iroegbu
 
@DaveRandom yes. That's why my point is: it's not a wrong answer. It is an answer without any peoof
and the question was about to find that proofs (i.e. reasons)
 
@TOOTSKI yeah.
 
9:20 AM
@Fabien What did I do? :P Ah, yeah!!! CRAP MATE
 
@Duikboot ok, done
try pushing again
 
@AlmaDo Based on the order of the operations here I doubt that's the case, although there may be some special handling for arrays
 
@AlmaDo Look at lxr.php.net/xref/PHP_TRUNK/Zend/zend_vm_def.h#4509 It's always set to the next pointer when it iterates. So, when it reaches the last iteration, it'll be marked as finished (via NULL pointer). When you then add a key, foreach won't notice it. — bwoebi 30 secs ago
 
How should a 'url' look like?
 
same url you used to pull
 
9:22 AM
git push origin master
 
@bwoebi Yes but shouldn't that also happen with 3v4l.org/iBoF2?
 
@AlmaDo: Heh. That's not a valid reason to rollback ;)
 
( Make sure duikb00t ) my username.
 
@DaveRandom well, your point then is that it's not because of posted answer reasons?
@AmalMurali For me, it is. Both your and my styles are equal rights to exist. Why then you prefer yours and edit the question with it? No offense, but I'll prefer mine (at least because it was posted earlier)
 
@DaveRandom well, there it's already before the end is in sight.
 
9:24 AM
The question for me is more "why does the two element version hit the additional element" rather than the other way around. I would have thought that they should both trigger a COW
 
@DaveRandom hm. So the point isn't about what was described in the answer?
 
@DaveRandom the only exception is when the array is going to be changed: 3v4l.org/JV2NA
 
@Duikboot that should do it
 
@AlmaDo The How foreach works answer from Nikita explains your question, you just don't find your answer in it.
 
Every time I think about the guts of foreach I get melty-brain syndrome, I don't know why I let myself get dragged in every time...
 
9:26 AM
> foreach iteration looks a tiny bit different:

reset();
while (get_current_data(&data) == SUCCESS) {
move_forward();
code();
}
 
@bwoebi I think you may be right. But then, please, point me to it (and what is the particular reason)
@bwoebi yes
15 mins ago, by Alma Do
reset();
while (get_current_data(&data) == SUCCESS) {
    move_forward();
    code();
}
 
Just use your logic with that…
 
but? how does this explain?
 
@Duikboot ok, I've seen you job... and I have it on my local machine
 
9:27 AM
this logic will persist for both cases. Then may be it won't count last element?
 
I have a question @iroegbu
Can you change now duikboot in the readme file to your name?
and push it again
After that I have another Question :)
 
ok
 
@AlmaDo sigh. It does improve the post. The code formatting is arguable since I just added some more spaces to make it more readable. It's perfectly fine to reject the edit if that was the only change made. But in this case, it is different. Also, there's no need for a "traditional style". A question is just a question - it doesn't have styles.
 
pointer = reset(array); // set pointer to first element
while (pointer != NULL) {
    get_current_data(pointer, &data)
    move_forward(&pointer); // pointer is set to the next one, if there's none, it's set to NULL
    code();
}
 
@AmalMurali you still didn't understand my point.
 
9:31 AM
and if you add an element to the array if the pointer is already NULL (== reached the at that time last array entry), the VM has already decided to finish the loop and won't include any further additions... @AlmaDo
 
@AlmaDo: Why? I think I did. You're saying "my question should have a unique style and your edit changes it, so I rolled it back".
 
@AmalMurali not quite so.
 
@Duikboot seen my changes?
 
@bwoebi hm.. so move_forward() is the thing?
 
When I do git status
 
9:33 AM
@AlmaDo yes
 
I should see you chnaged something? Or is that for my local changes?
 
@AlmaDo: Then please explain. I know this is pointless but I'm just curious to know your reasoning.
 
@Duikboot when I commit and push... you need to pull
 
See that's a bit unclear
 
// See it as:

while (get_the_data_which_was_the_next_entry_when_this_function_was_last_called(&data) == SUCCESS) {
    code();
}
 
9:34 AM
When I work on a project. And duikboot makes a change... but then irgoebu does also a change on the code somewhere...
 
if you try to commit and push when you project is not up to date it gives you a message
 
And a feeling of dread
 
How can duikboot ever find out that iroegbu changed something in the repo?
Oh, that makes sense, but it's not possible to see 'changes'?
 
it's all there... you'll see my message and everything I changed with that commit
 
@AmalMurali I did. My point is: there was no reason to edit. Because adding some spaces or changing words order won't make the code more readable (honestly? add space for $k=>&$v ? in this simple case?). It just will make code written with different style. Then - why? Why to edit if the only reason is style? And - yes, it's only your opinion that such edit will make code more readable. IMO - it won't (I respect your point and I also expect you to do it in return)
 
9:36 AM
I will see it when I do a new commit you mean?
 
nope
 
@bwoebi hm. then we'll always loose last element, no?
 
ok, gimme a moment to show the process
 
oh, nice. I got first dv on it (:
 
@AlmaDo: Did you read the edit description? "adding some spaces" was not the only change that was made.
 
9:38 AM
@AlmaDo only if we were at that element in the loop which was the last one before the new last one was added.
 
@AmalMurali yes. and it's not good for me "Copy edited: improved grammar, formatting; edited title to remove "finally"". Why? As for finally: it's because of.. question is a continue for another question. I wanted to state that
jesus.. if not +8 answer I'd delete it right now
 
@AlmaDo and now go to accept that answer. It is correct.
 
Duikboot: edits a file and commit and pushes
iroegbu: pulls and sees all Duikboot's changes

iroegbu: adds file and edits old one and commits, but doesn't push
Duikboot: adds file, commits and pushes.
iroegbu: attempts to push, git will tell iroegbu his repo is not up to date he needs to pull Duikboot's commit before pushing
 
@AlmaDo why? because you now understood?
 
Maybe he wanted to have a more solid proof.
 
9:41 AM
19 mins ago, by bwoebi
@AlmaDo Look at lxr.php.net/xref/PHP_TRUNK/Zend/zend_vm_def.h#4509 It's always set to the next pointer when it iterates. So, when it reaches the last iteration, it'll be marked as finished (via NULL pointer). When you then add a key, foreach won't notice it. — bwoebi 30 secs ago
 
@bwoebi because of senseless discussion about edit
 
Just wait for @NikiC. :P
 
@AmalMurali ^ more solid than that?
 
@bwoebi: I have no idea what that means. But I think it's solid, so +1 :P
 
@bwoebi and no. Please, don't do that. I understand the logic. Please, it's not a good idea to decide what I did and what I didn't..
I read that material from Nikita's answer. It wasn't entirely clear for me. It doesn't mean that I'm helpless with the logic
 
9:42 AM
@AlmaDo I'm not getting your problem when you understand everything? :-P
 
nevermind. foget it then. Thanks all who spent the time.
 
You think it's a bug but it's a feature :P gotcha
 
@AlmaDo: I didn't mean to offend you or anything. I just didn't understand your reasoning (and still don't). Just leave it as it is.
 
Why? It's not a duplicate.
 
9:44 AM
@iroegbu What command do you use for pushing? git push --all? paste.jesse-obrien.ca/Al
 
@AlmaDo leave it open.
 
@AmalMurali it is. there's a point in the answer about the reasons. It's my fault that I didn't understand it
 
Also, I'm not the one who downvoted the question. In fact, I have upvoted (screenshot). :)
 
@Duikboot I did "git push origin master"
 
@bwoebi it's a dupe. I've realized it after reading lxr & part of execution order
 
9:45 AM
It still is not a duplicate as it shows a specific point more in detail.
 
@AmalMurali I know it's not you
But I don't care. I've broken first rule - always try lxr before asking
 
What do we now? @iroegbu paste.jesse-obrien.ca/Am
 
@AlmaDo actually it's valid to ask. You don't always find the answer in lxr. I mean the answer is there, but you don't find it because you don't know what to search for.
(would you actually have searched for ZEND_FE_FETCH?)
 
@Duikboot your repo is not up to date
 
@bwoebi well, I'm trying. May be one time I'll decide to contribute. That's why I use lxr quite often. But for now - yes, I'm too newbie for that
 
9:49 AM
Then I should normally do a git pull origin.
Pull is not possible because you have unmerged files.
Please, fix them up in the work tree, and then use 'git add/rm <file>'
as appropriate to mark resolution, or use 'git commit -a'.
 
@AlmaDo that's what I mean. That's why I still have to ask @NikiC some questions about Zend too. I'm already contributing for some time, but I still don't know it all.
 
@bwoebi I'm just reading lxr. I have no idea from what to start (last time I've asked that - I was told to read internals book but that helped only a little)
 
@Duikboot commit changes you've made to you local files :P
 
ok solved
 
check status
 
9:54 AM
I think it worked out now.
 
@AlmaDo The only interesting thing is the chapter about zvals. Everything else is not so important. Except that you should know that HashTables are arrays. And yes, there's no real starting point. Mostly my starting point is the parser from where I can get via a few links mostly directly to compiler and then to the VM. But first you just need to understand how the compiler is linked to the VM.
Everything else in that book is important when you want to write your own extension code, but not when you want to understand Zend.
 
@bwoebi for now I want to implement $array1 - $array2 (resulting in array_diff()). Just for myself to see how it works
 
@iroegbu {ok, what if don't like this but I want to return to your version. } is that hard to do that rollback procedure but I want to say
I want to have the version of irgoegbu .
 
@AlmaDo look for where the minus operator is handled and read the implementation of array_diff function.
 
@bwoebi yep. the only thing is that we have keys and array_diff_key() too
it's inconsistent operation
 
10:00 AM
for that you shouldn't need to care much about the array (API). Just pass the zval to some diff function (you maybe need to separate some logic in array diff function and put it in a separate function)…
 
also.. $array1 - $array2 + $array3 .. ???
 
@AlmaDo just like we have also a different behaviour between array_merge and $array + $array
 
Oh, I need a read it later button.
 
there's a lot of help to be gotten from typing git help :p
 
10:01 AM
@AlmaDo well, yes, usual left to right implementation … the parser will do that for you. The '-' operation already exists in parser, so no problem. You won't need to change anything in parser for this.
 
Yeah true
working alone on a git project is ok to me but with more people is not yet that clear.
 
@bwoebi I can't access wiki :\
 
but your example made sense!
 
@AlmaDo ping
 
@Leri pong
Peer's Certificate has been revoked. (Error code: sec_error_revoked_certificate)
on PHP's wiki
 
10:03 AM
@Duikboot it makes working in a group a breeze.
 
@AlmaDo I've updated my top answers list according your suggestion. Have you got time for review?
 
@Duikboot once you get the hang of it you'll never want to go back
 
@Leri yes, of course. Remind me?
 
@AlmaDo me neither. It's known… we need to wait for Hannes.
 
:D
Thanks for the information.
Something else...* -- PHPStorm worth buying@? ( Sublime user )
https://www.jetbrains.com/eshop/shopping/displayCartDetails.do
 
10:04 AM
@AlmaDo We were discussing CV so that we can get relocation offer.
 
@Leri that I remember. I want to review so I need your link
 
@Duikboot yes.
 
@Duikboot YES!
 
@Duikboot I love PHPStorm, it's my favorite IDE, I have used a lot of different IDE's but PHPStorm is the best.
 
@Duikboot Yes. wait, no if you just write html/css/javascript.
 
10:05 AM
@Duikboot Haha, I guess you got your answer.
 
@Duikboot I would prefer sublime text always and forever..
 
@AlmaDo Oh, here you go.
 
@Leri I like your second, C# answer (because - I know nothing of C#, but yet I can understand it)
 
@AlmaDo Honestly, I like the third one more and it's better than that one. It really deserved more uv's but I was kinda late at the party.
 
It looks better now. Certainly - while score of answer isn't so high, they are better than upvoted near-RTFM posts
Still, quite short :p
 
10:09 AM
@AlmaDo /me needs to get more active(?)
 
Allright that is a clear answer.
 
no, no. I mean short answers. It doesn't means they are "not good" - but long answers with snippets/research/schemas e t.c. - may be like a good article
@Leri for example, I like this answer - it contains complexity research together with working code & explanations of used algorithms with test-cases too
also, theoretical part of why are we doing it such way
 
@AlmaDo I see your point but, imho, SO is not for writing articles. Its idea is to give solution to exact problem. For sure, there're question that need quite big explanation but for my answers only eval thing was in that category.
 
@Leri yeah. But in the same time there are canonical answers here which are like articles
it's just my point
 
@AlmaDo: I've posted a meta question on the subject as I wanted to know if I'm doing the right thing.
6
Q: Is this rollback justified?

Amal MuraliI recently made an edit to this question. But it was rolled back a few seconds later. I tried to improve the grammar, rephrased some of the sentences and updated the formatting to make the code more readable. But when I asked in the comments about the rollback, this was the reply made by the OP: ...

 
10:16 AM
@AmalMurali omfg, is that really worth a discussion?!
 
@AmalMurali so.. you've even posted that on meta.. good lord. figures.. Hell on that moment when I decided to post my question.
 
heh, why? It was meant in a constructive sense.
 
I hoped that would be between me and you - but you've put it to community. I don't want to be a sample for such kind of discussion. Jesus, today is definitely wrong day..
 
Sigh. I only wanted to ask for clarification. :/ I'll delete it
Done.
 
you may leave it. I don't care about that question anymore
 
10:21 AM
( no one a coupon here for phpstorm? :D )
 
@AlmaDo It is not an argument, for god's sake :P
 
I'll think twice before asking questions again - if such things as simple styling isn't allowed for me here (well, look to all my questions - it's always so)
 
Also, nobody said anything about the stylings. You are free to discard them if you want.
 
@Duikboot sorry pal, but you can try the 30 day trial.
 
@AlmaDo: I felt it was a bit pointless to continue the discussion in here. That's why I posted it on Meta. I didn't mean to offend you or anything - I've now deleted it :)
 
10:23 AM
@Duikboot the 30 day trial is a bit unfair though, it's probably comparable to giving someone free cocaine everyday and then after 30 days let them pay for it - you're most likely hooked
 
@AmalMurali again - I'm done with it. I've explained my point twice. If you disagree, then ok, it's your point. Case closed.
 
Yes. -peace-
 
guys, what would you prefer for high availability of 2 haproxy servers: a floating IP so only one server serves requests or resolve the hostname into 2 IPs and expect clients to pick the one that works at this moment?
 
10:39 AM
I have configured my XAMPP site on a remote windows system (Dedicated), and when i try to access it via IP address on my local system, it could not connect to it...
I have configured the VirtualHost definitions and NameVirtualHost to map to the IP address, in httpd.conf file
Still, i could not access the site via IP address from my local system
Don't know what could be the reason... can anyone help me?
 
@zerkms Clients will, unfortunately, generally not "just pick the one that works at the moment". Many clients will resolve names from the OS using methods that only return a single address from the system name resolver. Use both servers, but have a name with multiple A records and very low ttl (note that Google have ttls of 9 seconds) so that you can just remove the bad IP from the pool when necessary.
@shasi Can you access it by name?
 
@DaveRandom actually that's what I also thought
 
@DaveRandom I could ping the IP address in my local system... but i could not access it via browser
 
but the fact that all modern browsers and even curl/wget pick one IP after another
in case if the first isn't available
 
@shasi Is the service definitely running on the remote system?
 
10:43 AM
"from the OS using methods that only return a single address" --- nope, it also returns multiple addresses
 
@DaveRandom Yes.. for sure. I could access the site on Remote Windows system via IP address in its browser
 
does anyone know how to integrate actionscript3 with php ?
 
@shasi Then it's a firewall issue
@zerkms What does sorry? I'm aware OSes do expose calls that return more complex structs, but there are some pieces of software that don't use these (old IE, for one thing)
 
i have script that record sounds from mic using actionscript 3 and i want to save that sound to database using php any help ??
 
@DaveRandom Oh... you are right. I see a firewall running on Windows server 2012. But is there any option to allow the IP address from remote systems ?
 
10:45 AM
@DaveRandom even IE8 would pick the IP that is UP at this moment in case if DNS resolved multiple addresses
 
@shasi You just need to add an inbound rule for it, but I can't tell you how to do it step by step because I've not configured a Windows server firewall for a while and I can't remember what it looks like. It should be easy enough to Google though
@zerkms Have you tested that
(because I have, and it's not reliable)
 
I will tomorrow
but I've googled a lot of people who state that
 
tbh @zerkms this is all academic if you just use a very low ttl on the records
 
it's irrelevant to ttl actually
 
Yes I realise that how the client behaves is irrelevent :-P
 
10:47 AM
client doesn't care of TTL
I'm not asking about changing IP addresses
I'm asking about having two A records in a dns response
 
I just mean that if you use a very low TTL, it doesn't matter whether the client does that or not because the maximum outage will be TTL seconds, because any client that only picks a single IP from the returned list will requery after TTL seconds, and if you remove the address of the bad node from the pool then they won't use that address any more
 
yep, that too. but if clients are smart enough - one shouldn't bother of that :-)
 
@zerkms Precisely, so what you need to do is game the resolver, not the client software
@zerkms Indeed, but as the server admin, "if clients are smart enough" is a pretty big IF
 
yep. It's just to estimate the traffic loss in case if I choose 2 HAProxy servers with own ip addresses and TTL hasn't expired yet
the alternative is to use floating IP and that's what I don't like
+
 
@zerkms This is the thing that I've never been able to reconcile. People always harp on about "no SPOF" but I've yet to see a solution where they haven't just moved the SPOF to the DNS layer. Yes, you can have multiple entry points via multiple A records, but a) it requires you keep your records 100% up to date 100% of the time (not necessarily a problem I guess) but also b) the DNS traversal of the internet if likely to be cached somewhere and break your careful planning
 
10:55 AM
21
Q: Using multiple A-records for my domain - do web browsers ever try more than one?

JonasIf I add multiple A-records for my domain, they are returned in a round robin order by DNS servers. Example: 1.1.1.1 A example.com 1.1.1.2 A example.com 1.1.1.3 A example.com But how does web browsers react if the first host (1.1.1.1) is down (unreachable)? do they try the second host (1.1.1....

@DaveRandom if clients are smart - it's not a SPOF
you have multiple entries and if some of them are available - client will discover them
 
Indeed. But that's one fairly sizable "if"
Over which you can have no control
 
it will be an interesting day tomorrow I suppose )
 
and it's no good saying "but I only cater for smart clients" because so many people still run on IE.
Even if it DTRT in this respect, it's still the browser equivalent of a child dropped on its head at birth in many others.
 
as a last resort you could setup something like keepalived to maintain IPs of servers that are down and assign them to alive servers
in that case if some server is lost - another will just have 2 IPs assigned
 
@zerkms Implying that all your servers are behind a single network entry point == SPOF
 

« first day (1277 days earlier)      last day (3683 days later) »