« first day (647 days earlier)      last day (4292 days later) » 

7:00 PM
@rlemon I think it will get stuck at 42
 
@Whisperity well this function also seems to consume lot's of memory is there any thing else i can you use. can you suggest something
 
@PeeHaa seriously... chrome averages what? 5 versions a year (almost)? If the browser wars are still going on in the year 2022 we'll be on chrome 100 or something stupid.
 
@Neal I don't know the exact terms to use in this situation, but in the past when I've been hit with that problem I need to inner join my update or delete query instead of having a sub-query in the where clause
 
@rlemon I don't mind the release cycle that much. When using Chrome you don't even know what version you are on. However when developing for Chrome it's a whole other story]
 
7:03 PM
Maybe someone else can jump in :)
 
@rlemon I don't know about Chrome, but Firefox developers agreed that the new release cycle is pretty bad.
 
well chrome is most supportive browser for HTML 5 than OPERA ok safari is also good in css
 
0
A: Why do I get to view the review link if I can't review anything?

Event_HorizonActually... ... you CAN review the old stuff, just not the Review TASKS as they are in beta. (not sure if you will still need 2k rep after beta is over) Edit: Added freehand circle for clarification.

 
for($i = 0; $i < 10; $i++)
{
    echo $i, '<br>';
    @ob_flush();
    sleep(1);
}
if I echo data like this...
is there a way to handle every $i separately
websockets?
something like.. onData, or something like that :)
not so good with JS
 
@webarto Why are you suppressing errors?
 
7:13 PM
it says in manual to supress :P
no need for that, removed
 
It does? Where does it say that?
 
while (@ob_end_flush());
even if I ob_end_flush()
I still need to use ob_flush()
and it results in an error
but does the job
 
@webarto I'm not sure why I'm not surprised by that :(
 
@MikeB ehhh I am going to do the select 1st then do the update.
 
@Truth you should be :P
 
7:16 PM
hey guys quick SQL question; if I want to select all users from a flat database who have something in common (ie same program code), how would I word it? Is this good? "SELECT * FROM tableName WHERE PROGRAM_CODE IS 'whatever'" ?
 
so basically there is no way to handle data "on the fly"
not IS, but = 'whatever'
 
Oh, ok :) Thanks!
'whatever' is actually a var, do I have it in the query statement like this: ($queryString) ?
 
@webarto hmmmm. Why would it spit out a notice when we have the return values?
@NikiC See above ^
:-)
 
@Whisperity Well, I'm going to bed now. Dev on, people. Good night :)
 
@Whisperity later
 
7:20 PM
error_reporting(E_ALL);
ini_set('display_errors', TRUE);

ob_end_flush();
ob_implicit_flush(1);

echo str_repeat(' ', 1024);

for($i = 0; $i < 10; $i++)
{
    echo $i;
    sleep(1);
}
@PeeHaa produces no errors, and works as expected...
doesn't work w/o str_repeat, because of browser I guess...
 
It spits out an notice when trying to delete a non existent buffer. lxr.php.net/xref/PHP_5_4/main/output.c#1379
 
yes, but on some systems, you have to line them up all to make output disable output buffering :)
 
Which is what will happen when putting it in a while() loop
 
so better to @ :)
 
@webarto Why would that be better. It returns false either way
 
7:23 PM
@PeeHaa hm?
 
@NikiC You're fast
@NikiC Why does ob_end_flush spit out a notice when it is already returning false when there is no active buffer?
 
:)
 
php.net/manual/en/function.ob-flush.php spits out notice, but says no return value or notice?
 
@PeeHaa PHP needs an improved error handling system
In particular, there should be errors and debug helping errors
 
@NikiC Oh good god yes
 
7:25 PM
Which should be easily suppressable and without any overhead
I already faced that problem multiple times
This is one example
 
Notice: ob_flush(): failed to flush buffer.
From the bible:
Return Values
No value is returned.
 
The notice is probably helpful in a lot of situations where you just closed a buffer too many
 
@NikiC Yes there should. But in this specific case it just isn't needed AFAIK and can easiliy be fixed (unless I'm saying something really stupid here)
@NikiC And it returns false for the same reason
 
@PeeHaa Which requires you to always check for false ;)
It's similar to the json error
 
SO, back to my problem :P
 
7:27 PM
where errors are part of the normal functionality
but it would be really ugly to force people to always check json_last_error for debugging
 
@NikiC So you will rather see an notice than a check for retirn values?
@NikiC true true
@webarto sorry :)
 
so this guy is f* kidding me...
how the f* can you open 100 connections serverside and update them async on frontend with 1 call...
 
@webarto hmmm?
 
"The URL’s are loaded from a text area. After pressing the Submit button, front-end will send the list of URLs to the back-end ( in one request ) and the back-end should open asynchronous connections* to these pages and attempt to GET them."
site1.com http response: 200 OK  length: 12345 bytes
site2.com http response: still working
site3.com http response: 301 Redirect  length: 214 bytes redirected to www.site3.com http response: still working

Progress
[===---------] 1 / 3
 
@webarto where do u see this silliness?
 
7:35 PM
I don't want the job, this is a person I know, and I was going to do a task...
and I did... f4c3b00k.com
but after discussion, he wanted it in "one request"
 
which I think is not possible, it would be possible with websockets
@GordonM what is that picture symbol of :)
getting an eyebrow from father of the internet?
that is apt response
 
@PeeHaa go for it
 
@webarto How did you make the async connections?
 
@ircmaxell Would be nice if the alpha banner is removed at some point :)
 
7:42 PM
I didn't in the current example, by async, he meant parallel (curl_multi) @Truth
 
Oh, you did several requests to the server
I see
 
yes, I did, I have to do it in one
 
What can I do to solve this problem? Use AJAX? — Kalon Cheong 36 mins ago
 
@Event_Horizon What problem?
 
no, I still have to wait until complete data is loaded
 
7:43 PM
@webarto ha awesome URL
 
with "ajax"
 
I copy+pasted the code in your example as-is and it works perfectly fine. I received an alert with lol in it in both FireFox and IE. — newfurniturey 37 mins ago
 
@Neal I'm waiting an offer or lawsuit :P pokit.org/get/img/57cc2cbc09a384f8d78cef2a31f3c180.png
lol
 
@webarto can't belive noone had that one yet lol
 
someone had it in 2008
 
but it's mine now, precious O.O
 
Hi there, I have some various questions about PHP OAuth is anyone willing to help me?
 
Rrrg. I just need 3 more: stackoverflow.com/q/5874652/561731 ^_^
 
@Frank Discussion for all things PHP - Don't ask whether someone is here or can help. Just tell us your problem. If anybody can and wants to help, they will.
 
@Frank I don't know.
 
7:47 PM
@Neal Sorry mate, you already have mine :D
 
don't ask to ask
 
@Truth lol Australian all of a sudden? :-P
I need 2 more faves ^_^
 
Where are PHP OAuth consumer details stored? Do I have to store them myself in an SQL database when somebody creates an APP on my site?
 
@webarto Care to share your challenge's code?
the backend that is
 
@Truth :-P
 
7:50 PM
@PeeHaa Yeah, I have one thing to do, and then I'll promote it to beta
 
@Truth pastebin.com/Y35KhG44 the reason output is passed by reference is that I need to follow redirect and append result to that... it is all working as expected now... but only problem is that frontend is firing HTTP request for each domain... I can't figure how it can all be done in one call (update async)...
 
@ircmaxell nice
@MikeB Wow I only got 144
 
@MikeB Marshal Mike
I got 4 :D
 
:P
I trust people here in chat more than the mods to handle bad questions
 
7:54 PM
I'll say that flag badges are impossible without the mod-tools
 
ONE MOORRRRE!
 
@Neal you got mine
 
@webarto Your main function should run in a loop (while redirect)
 
@MikeB u favorited?
 
You save yourself the return by reference
 
7:57 PM
yes, that is correct
 
Aye - was #99
 
@PeeHaa helpful flags 31
 
@ircmaxell You don't flag much do you? :P
 
No, I vote a lot (close votes, delete votes, etc). I only flag when it's really bad
 
200 helpful for me
 
7:58 PM
117 =)
@webarto As for the async part
It's doable, though I don't know how you would update each of the requests' statuses in real time
 
me has 658 helpful flags :)
 
I'm not sure it's even possible...
 
curl_multi_* solves that
 
Can JavaScript reliably read and handle an AJAX response while it's still loading?
 
no, it can't
only on when request is done
 
8:00 PM
So it's impossible to do under one connection
 
@webarto The only problem that curl_multi_* solves is giving developers more bugs to worry about...
 
@ircmaxell managewp.com/jobs/senior-web-developer will quote him that
 
You'll need to poll the server endlessly, which breaks the one connection limit
And the realtime one too
 
1 "ajax" request per domain
 
I know
 
8:02 PM
yes, thank you
 
But the point is to do it in a single connection, right?
 
yes, which I find impossible
 
I second that
Too many limitations
 
$.ajax({
    url: '/xhr.php',
    success: function(data) {
        alert(data);
    }
});
 
May be possible with something that isn't PHP
 
8:02 PM
it gives data after request has completed entirely
 
I know how I would solve that challenge
 
it says JS/jQuery + PHP
I can do this with websockets
 
@ircmaxell (ノ゜-゜)ノ ︵ ┬──┬
 
yes :)
 
Then again, it's not fair that you're using this room to help on an interview/job application
 
8:03 PM
if (empty($response))
    {
        /** (╯°□°)╯︵ ┻━┻ */
epic :D
 
@ircmaxell I have a fulltime job already... 2 of them :D
I "solved" it, I just can't solve what is not possible, and I came here to ask, I'm a wrong or not
 
@ircmaxell Part of being a resourceful programmer is to be able to recruit the community at your aid.
 
@Truth Are you from India? ;-)
 
I would appreciate someone that knows when to request for help and bring better results, than someone who attempts to solve everything by itself
@PeeHaa Israel
 
468 Answers 12 Questions, so I ask something that I don't know and I'm begging for solution?
I just thought I'm out of date regarding JS, and everything...
 
8:07 PM
JS? is that new?
 
yes, it is old version of jQuery
 
ain't that the truth
 
@ircmaxell I don't have any personal benefit out of my question except satisfaction if I solve it, opposite to half of people that ask questions because they don't know how to do it and need it for their job.
 
@webarto Anything is possible...
@Truth In general, sure. In this case, heck no...
 
impossible as not possible at the moment under given circumstances
@Truth :D
 
8:18 PM
i swear, buttheads who dont accept answers irk me to no end.
makes me want to go and downvote them all.
 
@gorelative New user?
 
what?
no i have like 15 questions waiting to be accepted.
and i wanted to hit 1k rep today >_>
 
I mean, usually OP's who post a question then never accept an answer are one-and-done new users
 
@MikeB yeah pretty much
 
8:22 PM
unless I think my answer will get a couple upvotes, I don't answer questions from new users
 
@MikeB That is selfish
 
Being here is an argument against that
 
yeah im about to start doing that
i love the community, but the ratio of accepted/unaccepted is horrid
 
@gorelative Indeed, but you can't, sadly, force anyone to accept an answer.
 
Yep, and the SO Gods are standing firm on the fact that only OP can accept answers.. they don't want the community at-large to be able to accept answers
 
8:24 PM
i have 10 answers that were all valid and answered the question fully. 3 of them are answered
 
How do you see how many answers are waiting for acceptance?
 
your profile
under the answers tab
 
Where?
 
And two hours later I remember I'm even watching this room.
Serves me right for not drinkingenough coffee
 
8:33 PM
Anyone? :D
 
Click the "Answers" tab?
 
I just went to make coffee, and now I'm reading unrelated messages.
 
@InfiniteSquirrel And?
 
(Question mark because I don't really now, doesn't have enough answers to check)
Can't seem to find it either
 
 
8:37 PM
Do infinite squirrels with typewriters eventually write the script for Sam and Max?
 
@GordonM No, but they produce endless shorts for Ice Age
 
heh
 
14% of your answers are not marked accepted answer
 
How do i sort an array with usort by filemtime if the times are the same?
 
8:40 PM
@Truth green is accepted, white is not.
 
you people need to get with the power of the data.stackexchange.com
 
@Src1988 return 0; if they're equal
 
@Truth Hm, damn it. Seems to be only for your questions.
 
7% :)
 
damn and that query is going for unscored answers not unaccepted :) but a few minor tweaks here and there and you should get the data you are after
 
the answers tab has unanswered in it..
you just cant filter them
 
@InfiniteSquirrel holy query lag
> Hold tight while we fetch your results
 
ok sooooooo I have my 'news' section right... the only real function this has is the pagination and the ability to view a single article and not the entire news list. /news will bring you to the main listing with paging.... /news/1/ this is how I control paging atm. no GET vars just a uri. So to me this is a bit confusing because someone may assume that is the first news article when in fact I have my routing setup so /article/1 does this. SOOOOoooo am I insane?
should it be /news/articleID and /news?page=1
 
8:50 PM
/news/1 seems like first page to me
 
news/article/1 seems like article with id of 1
 
yup
 
ohh how I miss the corporate enterprise world where I had to make none of these decisions.
 
@ircmaxell wheres your latest blog post at.
 
8:51 PM
@gorelative Huh?
 
@rlemon "insert really long sharepoint URL"
 
I'm with @gorelative here
 
@ircmaxell nevermind
 
@gorelative what are you referring to?
 
@gorelative ohh sharepoint... my love... my one and only... my kidney stones at 24
 
8:52 PM
@ircmaxell i thought you had said you were pushing a new article today :), that was yeseterday.
 
No, tomorrow
 
ok so you would go with /news/PAGENUM and /news/article/ARTICLEID
 
@rlemon yes
 
Monday Wednesday and Friday
 
I was thinking... open source and all, yet there is still a lot of destructive competition.
 
8:52 PM
@rlemon yep
 
@Christian there is?
 
or news/page/1, but that seems a bit more complex in regards to CI routes.
 
@ircmaxell Hey! the same schedule I change my underwear on!
 
Having, for example, a choice between two browsers implies a lot of wasted effort on two.
 
@rlemon yes
 
8:53 PM
@rlemon Same here! Except I also do it on Sunday, Tuesday, Thursday and Saturday as well...
 
ok off to code!
 
@gorelative Might make it more semantic, but perhaps not necessary
 
Whereas, someone could have built the browser, while the other offered to fix issues.
 
@InfiniteSquirrel indeed, definitely not necessary.. but sexierererer
 
@ircmaxell nope! weekends I go commando! Free from all constraints
 
8:53 PM
@gorelative rawr
 
@Christian Right and bring the "evolution" to a hold again
 
@rlemon throw new ConstraintViolationException("Invalid violation of the constraint");
 
@PeeHaa What evolution? As of late I had a hell of a job trying to get a valid range of features available in all mobile browsers.
 
i was looking on amazon for a armband for my phone for when i workout
 
8:56 PM
Warning!!! CodeIgniter code about to follow!!!!
$route['news'] = "public/news/index";
$route['news/(:num)'] = "public/news/index/$1"; // paging
$route['news/article/(:num)'] = "public/news/article/$1"
 
and irc's blog's ads are recommending them to me ... creepy.
 
@gorelative so like this? :P
 
@gorelative thank Amazon for that...
 
@rlemon yes like that.
 
@Christian And what would you have when there would be only 1 browser you think?
 
8:56 PM
ok sweet - 5pm - i'm checking out
 
@ircmaxell its definitely creeper status.
 
@PeeHaa A website that actually works everywhere?
 
@Christian Without any features everywhere
The same features now work on all browsers?
 
ok guys , what have i missed
 
Anyone here got experience with both CakePHP and CodeIgniter and got a preference?
 
8:57 PM
@PeeHaa I kind of prefer a feature constraint rather than totally unreliable features.
 
cakephp
 
@InfiniteSquirrel hehe duck for cover
 
@PeeHaa and what he said.
 
@PeeHaa What was that again?
 
@InfiniteSquirrel CI, Cake, Fuel, Kohana are all not necessarily appreciated around here by the reg's. lol.
 
8:58 PM
@InfiniteSquirrel , it is like choosing best way for suicide , they both are the two worst frameworks in php
 
@gorelative reg?
 
I find it completely absurd the fact that RIM and MSIE mobile (the lowest denominator) have a feature which has been missing in the Android browser for ages.
Not only that, but everyone seems to be fine with it.
 
Okay, rephrasing then; what's the preferred php framework following MVC?
 
ogod
 
@Christian What feature are we talking about?
 
8:59 PM
there are a lot of bad frameworks in php , but cake and ci emerge from the riffraff as the worst
 
i used to think CI was the beez neez.. and then i started learning about all of the reasons why it sucks.
I prefer kohana now. Next one for me to play with is Zend.
 
@PeeHaa In my case it was websockets. But that's just one of. And quite not the point.
 

« first day (647 days earlier)      last day (4292 days later) »