« first day (862 days earlier)      last day (4086 days later) » 

10:00 PM
undefined index errors, are really errors in the php.ini file where the line error_reporting is missing a semicolon
 
Hi all
 
@crypticツ No no no, it's the php.ini page
 
do you have any idea on how to transform a date like '2013-02-24' to 'February 24, 2013' ?
 
Important distinction
 
@Malloc DateTime ALL THE THINGS!
 
10:02 PM
I know: date("F j, Y") will give me 'February 24, 2013' but how to transform between formats
 
@PeeHaa DateTimeImmutable ALL THE THINGS!
 
@Malloc Don't use date. It's like the retarded brother of the DateTime class
2
 
How would I change this code stackoverflow.com/questions/2097816/… to allow for me to also POST a variable's value?
 
@Lusitanian Thank you :)
 
@AlexCastro just add another property to the object that's sent
 
Could you check this, it's not working for me: $updated_date = date_create_from_format('F j, Y', $year);
echo 'updated date is:'.$updated_date.'<br/>';
$year value is this: 2013-02-24
 
@crypticツ It would be nice if you didn't help to CV something that has a closed dupe =p
Oh wait
Is that a multiple post from the same fella
 
10:20 PM
@Jack yeah multiple post
 
$dateTime = new DateTime('2013-02-24');
echo $dateTime->format('F j, Y');
@Malloc ^
 
http://pastebin.com/Cyg8Ane6

Hi there! I'd really like help in figuring out why this validation code, instead of displaying all error messages for all fields whose formats aren't okay, only displays the first error message, and will only display the next one after the first one is corrected.

It's as though my ifs decided to act like "else if" 's for some reason.
 
Or if you PHP is up to date and you are sure you dont have to support older versions:
echo (new DateTime('2013-02-24'))->format('F j, Y');
 
if I put non-valid stuff in every field, I only get the first one's error message ("Prenom", or first name), and only once I correct the first name to be okay am I told the second field has an error as well.
 
@PeeHaa Thanks a lot :)
 
10:23 PM
np
 
@PeeHaa it's an interesting one, I'll give you that. It seems that messages get stuck on the client side, investigating now
 
I thought about empty() thinking false is not an empty value, but it can't be, because the first error message, inside a !empty() condition as well, is read.
 
@DaveRandom So you can reproduce?
woot woot
 
Say, uhm, if anyone intends to help and is currently looking into my problem, could you say it? I'm sort of used to being completely ignored in this chatroom at times, and at other times, after a while, someone suddenly speaks to me. I'd like to know it in advance if no one is going to help, so I can give up and stop waiting.
 
@Lusitanian can I do something like url = <?php echo $login_id; ?>;
 
10:31 PM
Understood. I'll try to find help elsewhere.
 
2
A: How to solve Notice: Undefined variable error in this php code?

picaronThis is not a bug in XAMP as another answer mentioned, this is just a misconfiguration. In pnp.ini file, locate this: ; Common Values: ; E_ALL (Show all errors, warnings and notices including coding standards.) ; E_ALL & ~E_NOTICE (Show all errors, except for notices) ; E_ALL & ~...

WAT
 
hi guys , why png picture under gif picture it gives wrong colors ??
 
because they don't like each other?
 
i putted png picture as background to gif picture but it gives wrong color
 
@Jack It's complicated actually haha
 
10:34 PM
@AlexCastro I'm sure it is :)
 
this is really question which no one have meet it before :)
 
What makes the question so unique is that nobody has an idea exactly what the actual question is :)
 
@Jack when i look , i look wrong color it gives . very dark blue , since the background png is transparent with light blue , and gif is white
so why it gives dark blue !!
 
@echo_me Throw it up on jsfiddle
 
ok
how can i upload pictures there in jsfiddle?
add resource but this as a link
 
10:43 PM
You point to an absolute destination?
 
@echo_me Image links are broken?
 
no
www.followchilds.com/newborn6.png
 
Okay you need to show more code than just two images
 
www.followchilds.com/newborn2.gif
 
10:49 PM
We can't help you solve an error we can't see.
 
i said its one background of other , the png background of gif
 
I still need to see the code..
 
one more
2
A: PDO prepare stopped the function from working

JackThe answer moved here. Waiting for the question to get deleted off.

 
@AlexCastro i cant , they are generated from two php files :( . cant you just make one background of ther?
 
Grrr, pple keep upvoting the wrong answer now ;(
 
10:55 PM
39
Q: How do I position one image on top of another in HTML?

rrichterI'm a beginning rails programmer, attempting to show many images on a page. Some images are to lay on top of others. To make it simple, say I want a blue square, with a red square in the upper right corner of the blue square (but not tight in the corner). I am trying to avoid compositing (with...

 
they dont work as this post jsfiddle.net/hvHfv/1
 
@AlexCastro Hola, que mas? de donde sos vos?
 
lol
@AlexCastro It's clear who was first to update it heh
 
@Jack yup :D. I'm not sure now if he wants the images on top (stacked) or =
 
11:01 PM
 
@WesleyMurch Takes the cake.
 
position: relative; top: 0; left: 0; pretty much means nothing
 
@WesleyMurch i dont know whats wrong :) , your fiddle works good :)
 
it says "plz move 0 px to the left"
one of your images was position relative
mind if i steal that image for my home page @echo_me?
 
@echo_me Did you want this? jsbin.com/uvuhaq/1
 
11:03 PM
not about positioning its about the wrong color they gives
wait i will make snapshot
 
@WesleyMurch You want hearts pattern on your homepage?
 
@Jack Yes please, can you email it to me?
 
@Jack Snail mail is fine.
If it's a big deal.
 
it looks like that www.followchilds.com/untitled.bmp
look how it looks
 
11:09 PM
@PeeHaa I have news that will please you. Doubly so, in fact, because it is my fault. github.com/PeeHaa/WebSocketDemo/pull/4
 
@DaveRandom That's always good to hear :)
 
:-P
I purposefully wrote the decoder so you could do that, and then failed to actually do it
Basically when you type fast enough you end up with more than one frame being sent in a single TCP packet, which result in an ever growing queue of messages in the buffer, which means that it's not about waiting for n-period of time, it's about waiting until your keystrokes cause the buffer processing to catch up with itself
 
Aaaaah. I was blaming the JS
Can you guys please come join me in the Sandbox once moar?
 
Eliminated that pretty quickly with a console.log in webSocketServer.send()
 
user652649
11:33 PM
why is so slow? is my connection the problem?
 
@DaveRandom Looks like it broke again. :P Ah well worries for a later time
@wes Nopez. I blame a bug in the system
Somewhere
 
@PeeHaa did the server blow up or is it running very slow again?
Seems like the whole thing just died
 
@DaveRandom This time it looks like the server end hung up
There was nothing coming in any more
 
@PeeHaa But it wasn't an uncaught exception/complete throw up?
 
@DaveRandom No it just did nothing anymore until I restarted the server
 
11:38 PM
interesting
Needz moar logging
 
omg thank you for #30 in changlog
 
Not wishing to blow my own trumpet but I don't know how I've got by without cv-pls click tracking for so long
 
I was soooo going to make a funny about wishing being able to blow my own trumpet, but the weekend is over
 
@DaveRandom I think I will investigate how Racket does their custom events handling
 
I'm really struggling to come up with intelligent comments on the matter this evening
I'm going to go get an early night I think and try and get stuck into it tomorrow
 
Who would favorite that last cv question?
 
@crypticツ I see that a lot, I think it's the OP doing it
 
@DaveRandom I checked the OP's profile he has no faved questions
 
11:49 PM
It's not urgent. I'm glad I have a an implementation of a real'ish application for websockets. That always helps me see possible issues @DaveRandom
 
maybe it's cached fav list
 
@crypticツ Maybe the site is just full of f*cking idiots. I know what my money is on...
 
lol
 
posted on February 24, 2013

International PHP Conference – June 2-5, 2013, Maritim proArte The International PHP Conference is a globally recognized event for PHP developers, webworkers, IT managers and everyone interested in web-technology. Again, the conference will focus on main topics for developers and core-technologies for decision makers. We will show how to scale your applications,

 
@PeeHaa Indeed, I'm going to overhaul the buffering mechanism to mitigate the possible overflow/DoS discussed the other day, and I'll take a look at the timed events stuff as well. I'd actually like to take the event loop away from the websockets stuff, try and genericise it (as if it needs doing again) into an interface so you could intermingle another async socket-driven element into the same process
For ex database access should probably be async in that scenario (not that I'm really talking about a socket-level DB client from scratch), food for thought
 
11:55 PM
@DaveRandom I was thinking about that too. I.e. the transition at some point from all in memory to actual disk access at some point. But I quickly stopped thinking about it, because I couldn't come up with something quick :P\
1 message moved to bin
 
@PeeHaa it was normal picture whats wrong ?? since they marry normal
 
I don't like flowers
 
you dont like flowers ??
 
No. They only die;
 
@PeeHaa I'm thinking php://temp might be the answer. Not sure how to handle it from an API point of view though, being that the events would now be passed a resource, which you probably don't want to do for every event
 
11:58 PM
the most beautiful thing in the world
 
You've obviously never seen a vagina.
I know mine's quite attractive.
 
lol
 
@DaveRandom who me ?
im married
 

« first day (862 days earlier)      last day (4086 days later) »