« first day (2142 days earlier)      last day (2806 days later) » 
00:00 - 14:0014:00 - 00:00

2:00 PM
bye bye all
 
@Saitama happy birthday
 
@littlepootis happy birthday :p
 
@littlepootis umm... I think you are mistaken... :P chat.stackoverflow.com/transcript/11?m=31847745#31847745
 
@Saitama -1 not precise enough
 
!!dad
Jeeves is on holidays?
 
2:12 PM
@Jeeves u alive?
 
Everything is normal again
 
Do you still feel like trying a human?
 
Hi guys. I came up with this book: martinfowler.com/books/eaa.html
Is that good?
/nay
 
@HassanAlthaf time to sue him
 
Jul 16 at 6:15, by Gon
setInterval(function() {
    var avatars = $(".sidebar-widget .user-gravatar32");
    var usernames = "";
    for(var i = 0; i < avatars.length; i++) {
        usernames += "@" + (avatars[i].getAttribute("alt").replace(" ", "")) + " ";
    }
    usernames += Math.random();
    $("#input").val(usernames);
    $("#sayit-button").click();
}, 2000);
 
2:20 PM
@littlepootis Sue him for what? And who?
 
for stealing your idea?
 
What idea? o_O
 
@Saitama didn't that get you banned? :P
 
it did
:B
 
@HassanAlthaf um.. the book idea you came up with?
 
2:21 PM
@littlepootis When? o_O I hate writing, my english is horrible lol
Btw is that book good, though? Written in 2003.
 
May 4 at 5:39, by Gordon
Sep 29 '12 at 13:58, by Gordon
@hekko if you want to become an expert programmer, google SOLID, buy GOF, buy POEAA, buy Clean Code, learn Refactoring, lookup GRASP, DDD, CQRS, DCI … but dont ask for PHP books. That's the most reasonable suggestion I can give you when you ask for Expert PHP books really.
 
Thanks @Linus
GOF?
 
@littlepootis If it was legal maybe.
 
Gang of four
 
@Linus Is it on Amazon?
 
2:25 PM
May be or may be not
 
Probably
 
Of the ones that Gordon recced, I'd second Clean Code.
It's an amazing book.
 
2:27 PM
I
I have PEAA.
 
I haven't read the others.
@HassanAlthaf Oh
 
I'll get the GOF and Clean Code as well.
Is that the right book?
I am too shit at writing neat code, I want to learn!!!
 
@HassanAlthaf yes
 
Thank you very much!
Anything else you'd like to recommend?
 
Hello Guys
Is it possible to use a client ip address as a proxy server ?
 
2:29 PM
@HassanAlthaf TAOCP. Everything in that book goes over my head, unnoticed.
I heard it makes you a better programmer.
 
@AnisSouames it depends
 
On what ?
 
for you - unlikely
 
Is that the right one?
 
yeal lol
 
2:31 PM
@AnisSouames what is the problem, that you are trying to solve?
 
@littlepootis RIP Bank Balance. But no problem.
 
Don't buy that.
 
;o
Why?
 
...yet
 
Oh yeah, I am not buying them right away, lol.
One by one.
 
2:32 PM
Code examples are in assembly iirc.
 
Oh.. I dunno Assembly.
I prefer Java, C#, PHP
 
@Saitama that thing is awesome. Tried it.
 
@tereško I have an api that I call a lot, they have a limit of 30 calls/10 sec/ IP, and since my server is doing all the requests, this mean that it's only one IP sending around hundreds of calls . I'd love If I could find a way to change the IP and user other . I thaught that I could use my client IP and paas it as a proxy server
 
@AnisSouames then you should run API call from your user's browser using javascript
 
2:35 PM
I thaught so, but I'd like to know if there is a possible way to do this on the backend, because it'll probably make me rewrite my whole backend .
 
no
 
even if I use a proxy server ?
 
short answer: no
 
@AnisSouames Make your move to AngularJS. 'nuf said.
 
longer answer: it's would be extremely complicated and probably not actually work
 
2:39 PM
@AnisSouames How about you ask the owner of the API to increase your limit> :D
 
@HassanAlthaf Can I use angular with jquery, since I have a lot of jquery code already written, I don't want to do it back in angular .
 
... or you could use (gasp) native javascript
 
@AnisSouames You can use jQuery instead as well, but I seem to like Angular more. Angular2 specifically is bae
You can do what @tereško Suggested as well.
 
3:30 PM
PHP/Sql_Srv Q, this currently deletes all existing records rather than just one instance. Any idea why?
$query = "DELETE TOP(1) FROM TransactionItems WHERE TransactionID = (?) AND ItemID = (?)";
$queryValues = array($transactionID, $item);
$request = sqlsrv_query($conn, $query, $queryValues);
 
TOP is supported in delete?
I'd always use order by and limit 1.
 
I tried limit 1 but got an error that I haven't dumped to my console yet
I stuck it after the FROM TransactionItems
 
 
1 hour later…
4:43 PM
o/
> <div class="container"
If you´ve further questions concerning appserver.io and/or the hackathon just use our gitter chat!

</div>
 
5:15 PM
halp
I am conflicted about the stupidest things
should views have direct access to user input?
I am starting to think that answer is "yes"
 
Wes
direct access, how?
 
as in: Request instance
 
Wes
why do you need it?
conversating about mvc with teresko causes me anxiety
i'm not trying to suggest you anything, for the record :B just curious on why you came on that conclusion
 
I'll be back from beer run in two min and show you the code that I am looking at
 
Evening ...
Hello folks, sorry for this it is probably laughably simple; I am going crazy trying to get info out of an object in a foreach loop, is there a specific syntax to call an object inside of an array inside of a session array?
 
5:35 PM
@Wes just thinking of that causes me anxiety ...
 
so .. what I am looking at is this view: gist.github.com/teresko/d54f07ef2bd56b1d2c0f4b366d963140
as you will notice, the only difference between the view sets of methods is that they have "client" and "lead" strings there
those could be available though $request->get('type'), if I passed Request instance in the method calls
I really want to refactor that class there, because right now it contains two duplicates
 
Wes
i could take a risk and suggest something :B but i will need beer
 
@PeeHaa you around? I seem to recall that you have banged your head against this dilemma too
 
Wes
are you sure this will not change in the future? that's the only difference, for now or forever?
 
yes
but that's not the point actually
even if those two sections became differently handled some time in future, I still would need to get some parameters from request to be directly passed in response ... I think
(this is not the only controller I am looking at, just the most straightforward one and containing no company secrets)
 
5:48 PM
does the view need the entire request, or is that info your controller could pass along specifically?
 
extracting specific values from the request would make it all more convoluted
also, where would that "extraction" take place?
both controller and view is executed directly in the bootstrap file
 
evenin
 
evenin
 
Wes
@tereško what does "section" represent exactly?
 
classified
 
Wes
6:02 PM
 
hahha
 
:P
dem dank memes
 
Ekn
6:28 PM
 
I just want to confirm this, because I'm not sure. The implementation of strpos uses zend_memnstr, which while it's doing direct memory comparison (so as not to have n*m complexity) is still advancing the pointer by 1, i.e. it's not Boyer-Moore string search (O(n+m) best theoretical search complexity), right?
Where are the math geniuses at?
@NikiC @bwoebi I'm sure one of you know the answer to this ^
 
7:10 PM
evening
 
7:21 PM
@Oldskool evenin
 
7:58 PM
Does anyone have any additional answers which may help? stackoverflow.com/questions/39184451/… I might start a bounty
 
@TheCodesee How many more answers do you need for such a simple question?
 
@Sherif None of them work
 
@TheCodesee Think about it like this. Your question is basically "how do I unconditionally execute the statement echo $i;", right? So, in other words, the only code you actually wish to execute conditionally is break;. And your code basically says either echo $i or break based on this condition that $i !== 1000
 
@TheCodesee you should read php.net/flush
 
@TheCodesee So simply put, you only want the code break to be executed conditionally just invert the condition and remove the else. i.e. if ($i === 1000) { break; } echo $i;
 
8:07 PM
@Sherif I've tried that as it was suggested in an answer but $i still isn't displayed until $i is equal to 1000
 
hello all.
 
@TheCodesee That probably has nothing to do with the code. Check phpinfo() for output_buffering
 
how do i do that?
 
Create a file, put <?php phpinfo(); in there, run it.
@TheCodesee after you discover that your problem is about output_buffering I suggest you close the question. You confused everybody by throwing around those arbitrary conditions that had nothing to do with the issue.
 
 
1 hour later…
10:02 PM
@Sherif That's why there's a branch if (EXPECTED(off_s < 1024 || needle_len < 3)) {
where the effective run-time is lower than zend_memnstr_ex()
 
@bwoebi Yea, I realized that after I asked. Sucks to be me be when not reading carefully :/
I wonder what that heuristic is based on though? Is there some math that indicates a threshhold I'm not aware of? I mean it seems reasonable, but curious.
 
@Sherif probably direct comparison of the real world perf diff
 
hmm
That actually explains a lot
My benchmark showed up to 4 times slower when the needle/haystack were small using smaller alphabets.
Which is weird, because I was thinking... how much slower can it really be even with smaller needles! But yea.
Granted we are talking about a difference of 18usec
 
10:39 PM
nite all
 
11:07 PM
I don't know whether to hate Scala right now or to just hate functional programming in general...
 
00:00 - 14:0014:00 - 00:00

« first day (2142 days earlier)      last day (2806 days later) »