« first day (648 days earlier)      last day (4300 days later) » 

10:00 AM
lmao. @ /** (╯°□°)╯︵ ┻━┻ */
 
@Leigh @Darius supported in Chrome and Safari
 
@watkib there's a plugin for the rest of the browsers called io websockets or something works all the way to IE 6
 
@deceze I tried, OMG I tried youtube.com/…
 
@Darius great. But when to use it?
 
Anyway, I dont' know if websockets is the way to go. It's just something someone mentioned or here for me to use.
This is my scenario, I wanted to show a flag or a message saying the member has a new comment/message.
the moment it happens.
 
10:04 AM
ajax is stressful to server... sockets are not... as much...
 
Since it keeps a constant connection between user and server, there's no need for ajax requests
So how is this chatroom made?
sockets?
how does it show us these live answers back and forth without reloading page and without ajax requests (atleast my console doesn't see requests)
 
@Darius Unicorns
 
T_T
 
Mob
Bump
 
10:07 AM
@Darius ajax
 
Ajax sends out requests, I don't see any requests as we speak
I have my console open
 
@Darius i see a ton of requests
 
Google chrome console?
 
@watkib And not in most mobile browsers or slightly older versions
 
@GeoPhoenix How do I see what you see Geo?
 
10:09 AM
@Darius You need to write a server, you can't just use Apache/nginx/whatever, you need to write a WebSocket server
 
Mob
@deceze Thanks, I'm talking comprehensive and generally, not just php.
 
@Leigh Sounds complicated... Can I use apache or nginx and just add the websocket thing? or must it be done from scratch
 
@Mob Maybe you can specify your question just a little more?
 
sorry asked too soon, googling now
 
@Darius I just said you can't use them to handle websockets, you need to write a standalone socket server that understands the websocket protocol, and have this running in the background all the time
 
10:12 AM
@Leign I see. apparently should use phpwebsockets : code.google.com/p/phpwebsocket
 
This is what facebook did?
 
Mob
@deceze I want a good resource on primitive data handling. . . covering topics on byte arrays, seek, encodings . . .
 
Thank you. So I'm guessing I'm shiz out of luck then since I'm using apache.. There's no way for me to show people on IE 7 and all normal browsers live data as it happens
Curious, anyone tested this chat room on IE 6 or 7?
 
posted on July 25, 2012 by Stefan Koopmanschap

A project that I'm working on right now required me to migrate data from the existing database to the new database and database structure. Since the application is built on top of Symfony2, I decided to write a Command that would take care of the migration. I ran into an issue though: Doctrine2 insisted on creating new IDs where I wanted to keep the old one. The solution turned out to be really

 
10:16 AM
What about this? socket.io
 
@Darius There are ways
@Darius the layout breaks in ie7. < ie8 is not supported by so
 
@PeeHaa "There are ways" this kills me as I'm looking haha. socket.io any opinion?
 
Hello firend i need help in zencart project
i have to set the image in the shopping cart
i have one product like t-shirt and one t-shirt have 13 color
 
@Darius meteor, angularjs, repeated ajax calls
 
so selected color image are display in the shopping cart
but i am confuse how can i do it
 
10:20 AM
@Darius socket.io seems like something like that too
 
any plugins is available??
 
@PeeHaa I'm using zend framework already.
 
@Darius What does zend fw have to do with it?
 
Doesn't it say it's a framework? I'm unaware of how to implement several frameworks haha
of w/e sorts, noob here in that aspect.
 
10:23 AM
i appreciate the help, going to be looking into it.
 
phpwebsocket is outdated ?
 
@Darius: Are you able to run daemons on your server?
 
its seems to be updated : last commit 24/11/2010
 
10:41 AM
back. Now someone please help me with:
0
Q: Set up foreign key using Doctrine Record

watkibThe scenario: A client can make many requests, In the Request model I have: public function setTableDefinition() { $this->hasColumn('ref_no', 'varchar', 20); $this->hasColumn('client_id', 'int', 11); } public function setUp() { $this -> setTableName(...

 
@GeoPhoenix Are you referring to us2.php.net/manual/en/book.sockets.php ?
 
@LeviMorrison I think he meant the WebSocket implementation by the "phpwebsocket" project was using the outdated standard
 
I mean, I'm all for writing nicer code, but converting a 20 liner in over a hundred lines of code just isn't correct in my books.
And a unit test for a single operation, really??
 
Anyone there with good MySQL knowledge? Please help: stackoverflow.com/questions/11639424/…
 
10:47 AM
@Christian Yes really
 
@Leigh Bullshit.
That's adding unnecessary complications and dependencies.
Your code is more prone to errors that way since the increase in code increases the possibility tenfold.
 
@Christian I'm talking about unit testing single operations, what are you talking about?
 
@Leigh I'm talking about the article i just linked to.
A unit test for a 30 liner PHP file...
 
@Christian You have something against proper testing?
 
Just because the author of the article thought it fitting to seriously screw up the original code doesn't mean he's right with the rest of it.
@Leigh Proper testing? Didn't you read what I wrote, in this case a unit test is the wrong solution.
 
10:51 AM
@Christian I didn't read the article, I read you saying it's bullshit to unit test single operations
 
And no, I've nothing against proper testing, oop, mvc, buzzword architectures and all.
@Leigh Well then, inform thyself before commenting :)
 
@Leigh It's my own dedicated server so i believe so? never tried
 
@Christian Or you should communicate better. "A single test for the whole operation" describes it somewhat more accurately
 
<?php

    get_header();
    echo 'My awesome website!'; // OH MY GOD! NO UNIT TEST!
    get_footer();

?>
 
ready to give 100 reps away for good answer stackoverflow.com/questions/11639424/…
 
10:54 AM
@Christian That doesn't even make your point
 
@Leigh Good point. That's unfortunately not something I can rectify. At least, my grammar/spelling is good enough for the average internet user.
 
@Christian Actually, the article just seems incomplete.
 
@epic_syntax You can't bounty for 2 days, and that's not a PHP related question.
 
@Leigh Of course not. While at it, I'm also a laughing jack in the box lurking in the edges of dream world.
 
@Christian Seems more accurate
 
10:57 AM
Well, with that, I think I'm off to finish some work.
Cheerio.
 
@Leigh I believe I can run Daemons on my server since I own the server. What did you have in mind?
 
@epic_syntax yesterday i answered ur question in this chat but you don't say anything
 
@jami where? I don't rememmber really
 
Normalize your db structure. Join them together and/or create views. Done. It is written in the answers already
 
@Darius phpwebsocket needs to be run as a daemon
 
11:08 AM
If some of this things sounds strange for you. Read about it. You will get your "aha" moment
 
@jami I didn't work with views
@jami which is best answer on you opinion?
 
normalizing
is the essential point
 
@jami I mean which users answer under my question]
@jami and what do you mean by normalizing?
 
11:22 AM
is it legal to put return data from function into session variable, for later use (echo/print)...
 
good morning
 
a bit early :) morning
 
@webarto Not in Wisconsin.
Morning
 
hello Wisconsin :)
 
0
Q: How can i optimize this query which is taking much time?

user1551419I have this query which is taking around 40-50 seconds to load SELECT members.latitude, members.longitude, members.mem_id FROM members WHERE profile_type != "C" AND (gender = 'm' OR gender = 'f') AND members.mem_id IN(SELECT DISTINCT n2.mem_id ...

 
11:25 AM
AND (gender = 'm'
          OR gender = 'f')
lol
 
@deceze The link you have posted is not exists :(
 
@Udhay Not anymore, and it's better this way.
 
11:28 AM
@deceze he is Senior PHP web developer :'(
it is not base64 btw
 
@webarto pardon
 
@webarto Why not?
 
@BasicBridge did his daughter get kidnapped again?
damn..
 
@ShyamK No, Wife this time.
 
11:34 AM
@BasicBridge the lady from Matrix right? can't she just blast them away?
while uploading a file its permission is set to be 'write-protected'.. how to upload with write permission?
 
@ircmaxell NICE! I can access all that from everywhere! tnx for sharing the link!
 
@deceze why not what :)
 
@webbearrto Y U NO THINK BASE64?
 
It even has a function to pad things. wow sooo useful
 
@deceze The input is not a valid Base-64 string as it contains a non-base 64 character, more than two padding characters, or a non-white space character among the padding characters. U CALL ME LIAR!?
 
11:38 AM
> `str_to_utf8 util::str_to_utf8(string $string)`
>
> Converts a string to UTF-8 without the need to specify the source encoding. Invalid characters that cannot be mapped to UTF-8 will be removed.
 
Hello Every one
 
^ I died a little. :,-(
 
So nice
 
i have try to copy image one folder to another folder in php
<?php echo copy('.../newuploads/29011-0.jpg', '.../newupload123/29011-0.jpg'); ?>
but error genrate

Warning: copy(.../newuploads/29011-0.jpg) [function.copy]: failed to open stream: No such file or directory in /home/martyn/public_html/index.php on line 32
 
> const SECONDS_IN_A_MINUTE = 60;
o.m.g.
 
> const SECONDS_IN_A_MONTH = 2592000;
@ircmaxell Thanks. Cannot be unseen
 
This summarizes my feelings aptly: EfSZszYcYuAAAAAACEEEEIIIINOOOOOOUUUUYaaaaaaceeeeiiiinoooooouuuuyy
2
        public static function absint( $maybeint )
        {
            return abs( intval( $maybeint ) );
        }
        $yes_words = 'affirmative|all right|aye|indubitably|most assuredly|of course|okay|sure thing|y|yes|yea|yep|sure|yeah|true|t';
 
Wow, this is gold!
 
Anyone feel like opening tickets for all of Mr. Wamboldt's issues...? ;-(
Oh:
> Company: Research In Motion
 
< proud former user of Blackberry
 
> This might sound a bit tough, but it is required for me to maintain quality of the code-base.
I lol' ed
 
12:02 PM
is there any other way to escape error
`$post = !isset($_POST['some'])`
other than using @ tag at E_ALL
 
@ircmaxell why so harsh?
 
because it's +50 on reddit
sorry, +60
 
yeah, well, a) it's reddit and b) being harsh wont help your cause IMHO
 
@ircmaxell All idiots banned from SO are sent to reddit I think
 
Is there anyway to get unblocked from asking questions on Stack Overflow if I get big reputation?
 
12:43 PM
Morning chaps
 
morning ?
@ircmaxell , .. seems like this will be entertaining
 
112
Q: What can I do when getting "Sorry, we are no longer accepting questions/answers from this account"? (the answer is here, in this post)

ArjanIMPORTANT: CLICK HERE AND READ CAREFULLY! While trying to ask a question, one could get: Oops! Your question couldn't be submitted because: Sorry, we are no longer accepting questions from this account. See http://goo.gl/C1Kwu to learn more. Likewise, for answers: Oops! Yo...

 
@DanielsPitkevičs if you have been blocked from asking questions this was due to poor quality questions: the best (and only afaik) way to get that privilege back is to provide some high quality answers. ninja'd
 
also , i think @ircmaxell is just jealous : reddit.com/r/PHP/comments/x3rbr/…
 
12:52 PM
@ircmaxell haha
 
user895378
@deceze lol closed ... maybe he meant to mark it as "Won't fix"
 
dang, came down pretty hard on the guy
 
yeah its his personal pillory
but thats the web
accept it or gtfo
 
@MikeB morning
 
12:57 PM
:D
 
PHP Troll Room :D
 
user895378
 
seriously what is up with re-wrapping functions with a new name and calling it a util library
is_isset???
 
return 'http://www.gravatar.com/avatar/' . md5( $email ) . '?s=' . absint( $size );
absint should be self::absint, right?
 
Well isset and empty are a little different since they can only take vars
 
1:01 PM
he should rename it to absinth
 
0
Q: Equivalent of mongoDB shell's db.stats() in php and python

loveshI can see the statistics from Mongo shell as db.stats() or db.collection_name.stats() How do i view statistics of a database or a collection from PHP and python.

 
I can see the motivations behind having a convenience wrapper so you could do something like is_empty(str_length('foo'))
 
public static function is_isset( $var )
{
    return isset( $var );
}
public static function is_empty( $var )
{
    return empty( $var );
}
 
@rlemon of course the most beautyful part is the is_isset :D
 
how are these here?
 
1:02 PM
basically, but you avoid PHP Fatal error: Can't use function return value in write context
 
@MikeB Then why are you using empty/isset on a function return value to begin with instead of !foo()?
 
ouch wont fix
 
haha ddnt know u mentioned earlier. but I just saw ur comment haha
Those fns make no sense! haha
 
@deceze Good point
 
lol
 
user895378
@PeeHaa the super-sized ALIAS is a nice touch :)
 
@rlemon Sorry ;)
@rdlowrey :-)
@rlemon auto uppercase function?
 
1:20 PM
ok .. the utilphp joke has been beaten into the ground
 
nowwww it has
 
Anyone is thinking that Eclipse Junos is unbeliavable slow?
 
> Increasingly, I am coming to the conclusion that the only good comment is no comment at all. Vote to close, vote to delete, downvote, but say nothing at all in comments;
By: @Robert Harvey
 
@FabioCosta What's slow about it?
 
...
 
1:34 PM
anonyvote
 
@PeeHaa Yes, that's what this is all leading to
 
user895378
@FabioCosta I've never experienced anything about Eclipse that wasn't unbelievably slow.
 
He advocates for so much anonymity.. and no accountability. You'd be stupid NOT to use your downvotes strategically
 
@MikeB The thing is he always contradicts himself when he says stuff like that. I don't care, but it is telling though
 
1:35 PM
@PeeHaa Maybe he's about to crack :p
 
@MikeB Changing files etc, it's been really slow in comparison to indigo
 
I suggest a better thing to do: or ! <-- read that mods?
;)
 
@FabioCosta The reason I ask is because EclipsePDT was very slow for me when typing.. it would take several seconds between typing characters.. it was unbearable. I finally found someone suggesting to turn of white-space chars and it worked
 
@MikeB i am finding the switching files slow, if i click on a opened file tab it takes a few seconds to change, the editor is fine though
 
1:41 PM
@FabioCosta hmm not sure - I've been using netbeans lately. Might be worth a question on SO/SuperUser
 
user895378
I might be the only one but I'm not crazy about composer ... I find that git submodules fill the same need and you don't need to install a third-party package manager and hope everyone agrees to use it. git's ubiquity makes it by far the best available solution for dependency management, IMHO.
 
Hello, this is a rather vague question but does anyone know of any common methods for doing this?
There are forums which can be run on a low-end server, which can handle thousands of threads. Every time someone views a board it somehow gets a list of all of the threads created in a quick manner, not putting much load on the MySQL. I'm aware there's probably some weird form of optimization behind this. Does anyone know how it's done?
 
Greetings
 
@Alec hi
 
@MikeB Thanks i will fiddle a little more in the configurations before posting a question.
 
1:43 PM
@Neal Hello
 
@Alec caching
 
@rdlowrey Don't really like it also
 
@webarto Do you know if caching is difficult to do from a beginner's perspective? Quite honestly I've been coding most of my PHP off of my Java knowledge since the syntax is quite similar.
 
Is it possible to create binary search where search array consists of strings?
 
@Alec Are you using some framework or just php?
 
1:44 PM
Just php.
@FabioCosta
 
@Alec Take a look at APC php.net/manual/pt_BR/book.apc.php i think it is a little complicated for beginners but nothing impossible, also maybe you can make some otimization on the DB layer for cache
 
Hmm, seems like noone tries to optimize their searching :(
 
@Alec Caching is super easy, cache-invalidation is one of the hardest things on the planet to get right
 
@FabioCosta french?
 
@FabioCosta Maybe my internet is just having one of those moments, but the php.net site isn't loading for me.
 
1:49 PM
@Neal Brazilian
 
Why do programmers always mix up Halloween and Christmas?
Because Oct 31 equals Dec 25.
 
@Alec probably your net which db are you using?
 
@DanielsPitkevičs really :P
 
“Knock, knock.”
“Who’s there?”
very long pause….
“Java.”

Haha, great thing :D
Can I post some jokes here? Is it allowed?
 
.. and you wonder why you cannot post questions anymore
 
1:51 PM
@tereško yup
 
@FabioCosta db as in Database? I'm planning on using MySQL. If you're talking about my ISP, I use Midco Communications.
@FabioCosta Sorry just confused with the context of what you're talking about.
 
@Alec then try a different mirror .. something closer to your locations
 
@Alec Database
@Alec Mysql has a simple querying cache that maybe can help a little
 
@Alec , you can use APC to cache data and prevent each request form hitting DB for same information again and again
 
1:55 PM
that's of course , if your hosting provides you with such functionality
 
@tereško How does it know if there's new information in the DB if it's only returning the cached information? Is it a time refresh like every 60 seconds or does it somehow know?
 
A programmer’s wife sends him to the grocery store with the instructions, “get a loaf of bread, and if they have eggs, get a dozen.” He comes home with a dozen loaf of bread and tells her, “they had eggs.”
Ok Guys, C ya tomorrow
Going home from work
 
that one can't possibly have wife
 

« first day (648 days earlier)      last day (4300 days later) »