« first day (910 days earlier)      last day (4054 days later) » 
00:00 - 17:0017:00 - 00:00

12:29 AM
@Ocramius hi!
 
@Eugene ello'
 
I thought you said, that doctrine2 keeps track of what is linked to what between objects, that are persisted.
 
@Eugene yep
 
gist: 5376254, 2013-04-13 00:32:13Z
PHP Warning:  Uncaught exception 'Doctrine\ORM\ORMException' with message 'Entity of type "A" has identity through a foreign entity "B", however this entity has no identity itself. You have to call EntityManager#persist() on the related entity and make sure that an identifier was generated before trying to persist "A". In case of Post Insert ID Generation (such as MySQL Auto-Increment or PostgreSQL SERIAL) this means you have to call EntityManager#flush() between both persist operations.' in /vendor/doctrine/orm/lib/Doctrine/ORM/ORMException.php:50
Or this is not the case? And in case if both have auto-increment and both where not yet flushed to DB, then it woun't work?
 
they must be both persisted
 
12:35 AM
sounds like a cascade save
 
@MikeB I wouldn't use cascade without strong reasoning behind it
 
is this case not strong reasoning?
 
@MikeB nope. Until it is possible to manually persist objects, it's fine to do so :)
 
I have a feeling @Ocramius is not going to get any sleep tonight
 
12:38 AM
@igorw you're stalking my pushes?
 
@Ocramius They were both persisted before flush and still such exception poped out
 
@Ocramius nah, debugging doctrine usually takes a few hours
 
@Ocramius who are you pushing?))
 
@Eugene are you sure of that? The exception explicitly states that you're not persisting everything
@igorw I'm used to this stuff :P
 
$user = new User; $type = new Type;
$type->name = 'foo';
$user->type = $type;
$user->save();
 
12:39 AM
@Ocramius Sure.
 
@Eugene code then
 
@Ocramius what should happen in that case ^
 
@MikeB in that case I'd explicitly save the $type before passing it to the user. Transitive save operations are expensive and often cause transitive mess :P
 
I think it's where unit of work comes in
That's what Doctrine 1 used - not sure about 2
 
@MikeB yeah, we don't have that anymore. It's better now, but transitive operations are still headaches
 
12:42 AM
<reads profile>
That's awesome!
I was a big fan of 1.2 - used it at my old job
 
woot, just finished the podcast where I blasted FIG
 
@ircmaxell blasted?
 
took shots at. Said that they are not living up to their responsibility to the community
 
@ircmaxell congrats. I think? :)
 
:-D
 
12:45 AM
@Ocramius updated previous gist
 
It was Phil Sturgeon, Paul M Jones and a few others vs Me. I did get some of them to agree with me towards the end...
 
I'd say in that formation it's balanced, will listen to it when published
 
lol... sure
 
now, anybody reading this on a friday night deserves to witness the pure awesomeness of Axe Cop
 
@Eugene that's an example with some undefined vars. Did you try that in insulation?
 
12:49 AM
Sorry. Haven't thought about vars, that aren't defined in this sample code. In real world example, they are, so they aren't an issue
 
@igorw reminds me of:
 
@Eugene still think there's something else affected. Do an $em->clear(); at the beginning of that method
 
@Ocramius Same.
@Ocramius Made an addition to gist
 
@Eugene oh, I see what is going on. Sorry, didn't notice before (sleepy). Did you consider using a simple auto_inc identifier for BtoC ?
 
12:54 AM
@Ocramius Flight of the Conchords was awesome
 
@Ocramius you think that complex identifier with not yet pushed/flushed part of key is messing things up?
 
@Eugene yeah, keep identifiers as simple as possible (typical auto_increment int). That makes also performance better
 
@Ocramius Okey. Just thought, that there is no point of adding separate field, since two of what I get combined together make perfect PK.
But I see your point.
Thank you.
 
yes, I agree, but composite ids here mean that the UoW has to:

* extract identifier fields from associated objects
* retrieve the field values via reflection
* hash the result to produce a value to use in the identity map (for quick in-memory lookups)

And that's just the beginning :P
 
1:01 AM
I believe you. From UoW point of view this is to much unnecessary movements, when it can be accomplished with one additional field in less operations.
Sometimes the ugliest way is cheapest and easiest :)
 
Im thinking of learning c# but id miss this room
 
@dirt why would you miss it?
 
Hilariousness
 
I think the word you're looking for is "hilarity"
 
Hilaritynessnuss
 
1:16 AM
No humans more dangerous than the ones who hold real power while believing themselves victims. Been thinking about this a lot.
 
@dirt __call us sometimes
 
@igorw insanity maybe?
 
aaaah, hydrator proxy done too =) nn
 
@Ocramius I feel like you're inventing random words, then adding Proxy to them. then implementing them.
 
@igorw yes indeed
well, ok, will call this one just hydrator :)
 
1:31 AM
I love Vi... She's nuts, but awesome
 
the fact is that there's no decent paper online as far as my search could find
 
HydrationProxyFactoryManagerInterfaceResolverImpl
 
@igorw lol :D
 
ARG
 
@ircmaxell agreed
 
1:34 AM
 
user1642018
hi all
 
user1642018
i have a query,
 
2:38 AM
hello guys
/girl
how are you
??
anyone on??
 
 
4 hours later…
6:11 AM
a real bleeding edge job: freelancermap.de/nproj/520908.html
 
lol
 
@NullPonyPointer hi
 
have you tried facebook home ?
 
6:59 AM
no
 
and ubuntu in tablet ?
 
no, have you?
 
@uınbɐɥs just thinking to install in my tab ....
but worried since its yet developer version
ubuntu.com/devices/tablet its looks awesome
@uınbɐɥs check video ...
 
@NullPonyPointer looks cool
 
omg i can believe i am watching 720p video on my crappy slow internet and its not stuck for a single time
 
7:56 AM
hello, Is any Magento expert here ?
1005 Can't create table : This happens when a foreign key is to a table that is not innodb engine type.This I have experienced once.So check Db engine with each table. — Satish Mantri 14 hours ago
 
@Tsimtsum Try the magento chat room (I think there's a site on it too Magento)
 
Thanks Madara, I am using chat first time on Stackoverflow.
 
8:26 AM
@NullPonyPointer Holy crap, that does look awesome
 
8:45 AM
damn .. i need a weekend
 
@MadaraUchiha that mouse and keyboard thing makes it more awesome ..
 
@NullPonyPointer Yeah
 
Hello..
 
@Servant hiya
 
Can I post a link here? So, you could help?
 
8:53 AM
@Servant if anyone know/wants they will
 
1
Q: Sum multiple rows

Johan LarssonThe title doesn't say much, so I'll try to explain here. I have a table, +------------+---------+------+-----+---------+----------------+ | Field | Type | Null | Key | Default | Extra | +------------+---------+------+-----+---------+----------------+ | id | int(11) | NO...

 
@Servant whats not good its answered
 
@NullPonyPointer Not really, I can't fully understand his question..
 
9:15 AM
hi any server expert here ? can take a look at this?
http://stackoverflow.com/questions/15985625/ssl-error-rsa-premaster-secret-error
 
@xDragonZ ServerFault?
-_-
 
@MadaraUchiha okay :)
 
9:50 AM
morning all
 
i accedentally removed a php file, and it took me 6 hour to write the code, (you can imagine my mood right know), but the php script i wrote i being run in a process, how can i find the file, it would take about 5min to finish the process
 
@shampoo Don't you have version control in place?
 
version control aah ... damn git deleted the file for a damn -f
i wanted to squash commits
 
@PeeHaa埽 morning
 
i really have no clear idea how git did it to me ... but as far as i could discover, i was trying to remove the cached files because i had forgotten to make .gitignore, and i removed the start.php (the missing file) then i commit, probably at this commit start.php was lost, the i squashed the lasr 3 commits, and start.php disappeared silently, now my repositry has two commits and start.php is not included at all.
 
9:55 AM
@shampoo That.... sucks
 
@peeha: how can i access the file in proccess, the proccess is going to be finished soon ... there is time to discover what i did wrong
...what i did wrong at git commands
 
@Bart: thanks for that suggestion. I've upvoted all of Avital's answers, for a sudden boost of 100 rep. Looks like going through the hoops is the only way. Well done SE! — Dan Dascalescu 5 mins ago
lol
 
i am on ubunutu ...
 
@vascowhite morning
 
Ohaio, Mina-san.
 
@nikic ping
 
Why do people still insist on using BBCode?
It's more ancient than IE6
ffs
 
[B]BCode rules![/B]
 
@igorw With the capital letters too, nice touch :D
 
@MadaraUchiha What is the alternative (besides MD)?
 
10:44 AM
@PeeHaa埽 MD
Definitely MD
Even basic HTML, or wiki-markup is better.
But the whole point of MD is that even without a special parser, the text still looks awesome.
 
Yeah for technical people. But most people don't get MD, but they have seen bbcode a couple of times in their life
Also basic html is much harder to clean up than bbcode
 
@PeeHaa埽 yep, that's the main reason why bbcode exists
for security it's quite good actually. I don't even want to think about all those fancy websites using MD without disabling HTML.
 
11:00 AM
hi everyone!
 
hola
@indago That's a JS question. This is the PHP room
3 messages moved to bin
 
11:47 AM
@PeeHaa埽 pong
 
hi friends
can someone help me in extracting digits from a integer
the number is 13041, the next number should be 13042 i need to get digit after 1304 is there any way
 
@NikiC Do you know whether it would be useless or not the submit a patch to php for a new pdo::execute which does params based on type instead of PARAM_STR?
 
@PeeHaa埽 what use is it?
 
@NikiC I really just like to use pdo::execute instead of bind* when querying databases. But trying to insert a boolean value in for example postgres will fail because of the cast to string
 
Anyone know about Symfony2? I want to show a specific page/route instead of returning a 404 error page
test
Can someone just confirm if they can see this message? You don't have to help, but I've not seen anybody talking to anybody for some time
 
12:27 PM
mon-ring
 
12:44 PM
disableable < lol, my new word of the day
 
@MadaraUchiha soft-enableable
 
@PeeHaa埽 then blame PDO's bad design for that
 
Uby
1:14 PM
hello
 
hello
 
Uby
Is there a page/wiki with all keyboard shortcuts for SO?
 
Uby
I should have googled this before asking... :P
 
1:21 PM
indeed =oP
 
@crypticツ that is wearied plugin :P
 
Uby
@crypticツ not the shortcuts I was looking for, tho
right now i would like to know if there's a way to select the user then I type @ on a comment
Autosuggest appears, but I can't select anything without mouse click
 
@Uby
 
@Uby tab
 
you can use tab for user selection
 
1:29 PM
put @ then start to type name autosuggest will show up tab to name then press Enter to choose it
 
Uby
thanks
that works
I tapped almost avery other key on my keyboard :D
except for tab :P
I also tried alt+enter, ctrl+enter, etc
 
1
Q: Does space in square brakets have a different meaning than just space?

Emanuil RusevTo give an example, does /[ ]{0,3}/ have a different meaning than / {0,3}/?

@Jack ^^ here you go regx question
 
@NullPonyPointer lol of course Kolink answers it!
 
@crypticツ yours post ?
 
1:35 PM
yeah
 
@crypticツ he always does :D
@crypticツ 1 more vote to go
 
yay!
 
Trying to develop in IE8 === not fun at all.
console.log(dataObject)
> LOG: object [Object]
 
1:51 PM
its 444
 
@MadaraUchiha console.dir() .. noobs
 
@tereško fuck IE, OK?
7
Also
 
@NullPonyPointer 444? mornings
 
@kaᵠ that was upvote on post
morning you may answer ... y i no answer that question ?
 
gave it my upv too, nice one
because it has a really good answer
and posted a comment that should add more info into it
 
2:03 PM
@kaᵠ ahh i know it have Kolink's answer :D
 
@NullPonyPointer neah, that doesn't cut it, too shallow, Sepster's is the good one
 
@kaᵠ Are you kidding me? Kolink's answers are always of the highest quality!
 
@kaᵠ nahh i only love Kolink's answer ..!
@kaᵠ see @crypticツ like his answer too :D lol
 
@NullPonyPointer still didn't understand what 444 means (if it means anything)
i really don't see HOW he could get 4upv for that shit
 
morning @kaᵠ
 
2:07 PM
looks like he answered 1 min later..
morning @NikiC
 
@kaᵠ yupp Kolink is fast
 
-7
Q: regex validation PRICE

user1022521I am trying to validate price field - that should not allow white spaces, alphabets & negative values - and should allow numbers,commas and decimals - please suggest some regex

 
@kaᵠ Your answer is the only thing preventing me from deleting that question, please don't answer obvious delete candidates questions (because it's likely that you answer for nothing, no one will see it and you gain no rep)
 
@kaᵠ like this (stackoverflow.com/questions/14790550/… ) you wont gain any rep
 
@MadaraUchiha i never came across price validation on SO (may it's there somewhere) but felt there's use for it
yea.. the question is bad, just tried to 'salvage it', edited a bit
 
2:13 PM
@kaᵠ Well, at least 8 people disagree with you :P
 
@MadaraUchiha if you see the flames at the answer with 1 vote you'll understand why....
sup' @NikiC, did you see my reply in regex? is that cool with you?
 
which reply?
 
hey there i need some help is GD PHP i am trying to print multiple images to an other other picture, and they pictures i wana print on that image is all my facebook profile images
so the problem i am able to get all my friend pictures using graph api but when i want to print that to GD
its showing just one image
 
@kaᵠ ah, yeah sure ^^
@kaᵠ did you already start solving that codejam thingy?
 
foreach($profile_pics as $pic) {
$friendpic = $pic['pic_square'];

$srcImagePaths = Array($friendpic);
 
2:17 PM
k, i fell the same as "php is a scripting language/ not a programming language" ..
@NikiC not yet :) didn't wake up properly yet :P
 
anybody help me
 
@NikiC if you know by any chance... at what version did php become a programming language (not necesarely OO)?
 
@kaᵠ it ever was not a programmign language?
 
@NikiC I guess it was just a templating for web (scripting lang) at version ~1 ?
 
2:22 PM
@kaᵠ Why are you posting all those posts in the room?
 
@MadaraUchiha it was directed to Malik, answers his problem
 
Mmmhm, I see
 
@kaᵠ but i need for graph api
facebook graph api
 
@MalikUsman that was a hint on how to do it
 
yeah i did the same i know
 
2:24 PM
@MadaraUchiha true... i'll edit it, wrote it quite a while ago...
 
actually i need to get all friends picture in array
 
@NikiC how's your codejammin?
 
@kaᵠ I solved only the first one :(
right now trying to do the third one
 
@NikiC there are 25 hours anyway
 
@kaᵠ yeah, but I kind of was not planning on spending much of them on this :D
 
2:28 PM
@kaᵠ Don't overwrite the existing code though, it's the original code that answers the original question.
 
@NikiC well... we're talking about big G here :P
@MadaraUchiha ok then, thanx for the hint
 
blah
 
@ircmaxell blah.
 
@ircmaxell you google code jam ?
 
2:32 PM
Can anyone answer an ecommerce question for me
 
@user2080194 Discussion for all things PHP - You don't have to ask whether someone is here or can help. Just tell us your problem. If anybody can and wants to help, they will.
 
@kaᵠ nah
 
2:45 PM
lol
 
@MadaraUchiha mmmmmmonster fail
 
Hellow guys .
I have wrriten the following code in connection.php
<?php
$conn = mysql_connection("localhost","root","") or die("a connection to the server could not be established");
echo 'root user login successful';
?>
But when I want to run this code I have found the following error :

Fatal error: Call to undefined function mysql_connection() in C:\xampp\htdocs\online_book_store\connnection.php on line 2

.Why ??
Can u help me in this regard ??
 
it's mysql_connect. Also, please avoid using mysql_* functions, they're deprecated
 
then what function can I use ??
 
Please, don't use mysql_* functions in new code. They are no longer maintained and are officially deprecated. See the red box? Learn about prepared statements instead, and use PDO or MySQLi - this article will help you decide which. If you choose PDO, here is a good tutorial.
3
 
2:56 PM
Thanks
 
Uby
Congratulations!

This was only a test, designed to make sure you were paying attention. You passed. This post has already been removed, but if it hadn't, your flag would have helped to ensure that it was. Thanks!
O_____o
There are tests when reviewing??
 
@Uby SO is just one big social experiment
 
Uby
@igorw means what, exactly?
Big brother is watching me? :P
 
@Uby we don't talk about that.
 
Uby
@Ocramius sorry, I'm new here, I'll keep in mind
 
3:05 PM
:D
 
3:43 PM
@Uby Yeah, they're called review audits.
@Uby He's joking
 
Uby
@MadaraUchiha Yeah, I was joking too :D
Anyone interested in dynamic sprite creation?
 
user895378
That Saturday morning moment after a night of drinking when the reality of being 30 and not 20 is especially acute.
 
Anonymous
4:01 PM
geeks like to talk always on the subject of getting drunk.
 
Anonymous
:)
 
Uby
lol
 
@Uby you mean to generate on-the-fly gifs or such?
 
user895378
phpNoob is like my gmail spam folder. Every now and then I "un-ignore" him and then realize there's no point.
 
Uby
@Ocramius yeah, generate a single image that can be used as a sprite
 
4:06 PM
@Uby found this on the topic last week
 
@NikiC solved A, too easy, what did you write it in?
 
@kaᵠ PHP ^^
 
:D
 
What are you using?
 
Uby
@Ocramius I mean css sprite
 
4:09 PM
same
 
Uby
for optimization purposes
 
@Uby ah, those... No experience with them, sorry :\
 
Uby
1 image instead of 100 in a page
 
@Uby lately, the trend is to use fonts
 
@NikiC looked over last years languages: C C++ D Python (no php, let's bump it up :D)
 
Uby
4:10 PM
@Ocramius for icons, sure
 
@kaᵠ A was quite easy, but I haven't yet figured C out
 
@rdlowrey good morning to you, sir
 
user895378
'morning
 
evenin'
 
@rdlowrey I've tried to make a minimal PHP webserver that doesn't fail with weighttp, I could do with some help.
 
user895378
4:18 PM
@igorw Funny you mention it, I'm having the same problems at the moment :)
 
user895378
What specifically is breaking?
 
@rdlowrey same as when I run it against react. "Connection reset by peer"
 
user895378
Also, it looks like there's some work happening on a new OO libevent extension
 
yes, "pecl-event" for libevent and "pecl-ev" for libev
haven't had time to play with them yet
here's my naive minimal example: gist.github.com/igorw/5368309
 
@NikiC going to eat then start on B
 
user895378
4:28 PM
@igorw From looking at that I would expect your $conn is getting garbage collected and closed before the buffered write is fully drained. You have to keep the connection around somewhere until you're sure it's finished.
 
for the record, it responds to curl just fine
 
user895378
Actually I don't know if what I said is true.
 
only when the volume of requests increases it starts erroring on the client side
it is working for single requests
but weighttp is throwing me connection resets and broken pipes
no errors on the PHP side though
 
user895378
Okay, here's another guess.
 
user895378
Your write callback is always closing the connection when invoked, but you don't have any way to know whether the full contents of the buffered write have been sent when that happens. I think that's where the problem is.
 
user895378
4:36 PM
The write callback is invoked whenever the socket is writable, but that doesn't necessarily mean all your data was written because it's a non-blocking socket.
 
yeah, you're right. :-/ it also happens when I don't fclose though.
so unless weighttp expects the server to close the connection, I don't think that is the cause
 
user895378
Well ... hmm ... usually the connection has to be forcibly closed by the server to get a connection reset error, which makes me think it might be the garbage collection issue after all.
 
user895378
I have avoided using the buffered events in part because I couldn't figure out a way to determine when all the data has actually been written.
 
@rdlowrey hm, I wonder if there even is a way to know when the data was written. the pecl-libevent buffer API doesn't seem to expose that information at all.
exactly
I guess I'll try with plain ol' events
 
user895378
I'm not sure if this is the correct way to do it, but it's worked for me ... basically the socket is "always writable." So I just manually fwrite() on it and track how many bytes have been written using the return value.
 
user895378
4:48 PM
And that way if it returns FALSE I check with an is_resource($sock) to determine if it's still alive.
 
Anonymous
@rdlowrey don't hate
 
@rdlowrey updated the gist, the problem persists
can you reproduce?
 
No, I'm too young
 
user895378
@igorw what's the exact weighttp command you're using?
 
user895378
Because using your updated gist and the following command I get no errors:
 
user895378
4:57 PM
weighttp -n 10000 -c 1000 127.0.0.1:1337
 
user895378
Is it possible that you're running into your system's file descriptor limit?
 
weighttp -n 100000 -c 100 -k 127.0.0.1:1337
 
00:00 - 17:0017:00 - 00:00

« first day (910 days earlier)      last day (4054 days later) »