« first day (1311 days earlier)      last day (3862 days later) » 

09:00
Oooh github has changed last commit time in browsing files view from "...days ago" to "on <date>"? Or was that ages ago and I didn't notice?
@Vamsi Reason the more to validate / sanitize the data beforehand
POST request with Content-type: application/x-www-form-urlencoded sends the actual data in the request body, right?
@SecondRikudo It sends the $_POST variables in the body, nothing stopping you from sending some $_GET vars in the URI as well though.
@DaveRandom I'm sending out a POST request with PHP
so I need to put the form encoded string in the body of the request, right?
Not some Data header
Oh right, yeh just use http_build_query() and that's your request body
There are no extra headers required for a POST request, except you do need to send a Content-Length
(strlen($body))
09:11
what word would you use to describe "class" AND "trait" AND "interface"
@tereško "symbol", "thing"
hmm ...
@tereško TO whom am I describing it?
Anyone seen @webarto recently?
Since those floods.
@Fabien Yeah he did some reporting while his mansion was being washed away
09:17
heh
@tereško type definition?
As long as he's safe.
@Fabien Here in the Netherlands we have a saying "weed does not perish"
But I doubt that works in engrsih :P
Is that because you smoke it all?
And weed in this case is actual weed. The annoying stuff that just won't die and always keeps coming back between the tiles in your yard
09:20
heh :P I figured :P
Not the good stuff :)
@PeeHaa for the Dependency class
it contains the name of parameter and optional class/interface/trait name
Consumer?
Or doesn't it consume dependencies, but is an dependency itself?
@PeeHaa He's making a DiC
I read it :) Doesn't answer my question though :D
09:23
in list @webarto was here 1 day ago prohibiting fun, his normal self :D
Anyone do ZCE? Do I really need to know the ascii codes for characters like 'a' and 'A' and stuff like 0xF as an int etc? These test questions are just mental sometimes..
Why would Twig recreate the array_chunk function and call it batch() :(
Hey @webarto swimming yet? :P
Pro tip: Try to swim downstream :D
That Fred -ii- guy is a really decent community member
09:39
--$motivation
++$salary
@Jimbo That doesn't seem like it belongs on that exam. But if you need to remember that, I have found that it's quite easy to remember that A is 65 (you work out any uppercase char if you remember that), and that the lowercase chars are lowercase + 32 (chr(ord('A') + 32) == 'a'), and that the numbers are 0x30 + number
In other words, you don't need to remember the exact code point of everything, all you really need to know is where A, a and 0 are
And no-one is going to make you remember where the symbols are
Although it's worth remembering that the space is 0x20 because it can be useful for cheap case conversions
'A' | ' ' === 'a'
^ that's just bad.
Yeah I was about to say that :)
Innocent bystanders enters the room: hey cool imma use that from now on! :P
$el = preg_replace("/!(\w+)!/", $lead["$1"], $el);
09:45
hey cool imma use that from now on!
it will cause huge performance impact. So it's very slow (it's about that ASCII play)
Will this work the way I expect it to?
Depends. If you expect it to make your computer catch fire, maybe not.
@DaveRandom You know what I mean
09:46
/me smacks @DaveRandom around with a large trout
@SecondRikudo no, that will fail
use preg_replace_callback()
@AlmaDo How would you do it then?
My brain is melted
30 secs ago, by Alma Do
use preg_replace_callback()
@AlmaDo It's cheaper than strtolower(), in PHP at least. However, it not hugely useful most of the time, because it's only good for when you know the string is nothing but alpha and spaces.
@DaveRandom yeah, yeah.. we all know. But after 1 month of development it will cause really huge impact - because rest of team will try to get sense of those code for hours
09:48
@webarto You're not innocent. Like at all man :)
@AlmaDo Oh yeh totally, I've only used like once ever in the real world, and it's barely useful outside the world of hacking
@AlmaDo So more like this? (different names)
    $data[$row["name"]] = preg_replace_callback("/!(\w+)!/", function($matches) use ($lead) {
        return $lead[$matches[1]];
    }, $row["value"]);
@SecondRikudo like this. So try it. I bless you
@PeeHaa :P
09:50
I'll only be able to test it later today when I get to my local dev with actual database table on it :D
@SecondRikudo I bless you, but if you'll break something with it, then it's not my fault :D Blame Devil
@SecondRikudo Really? $data[$row["name"]] = $lead[trim($row["value"], '!')]; maybe?
@DaveRandom Not all values will have !NAME!
Some of them have actual values, which need to be inserted directly
That's a very nasty data format, in case you hadn't noticed
09:52
@DaveRandom I know
good mornings :D
morning @hakre
It's a very very rapid and q&d prototype for an application
Mornirnign @hakra
It won't be maintained so I'm rushing through it
09:52
@SecondRikudo Just as long as you know. Give the person who created it a slap from me. You can re-use the trout if you want.
@SecondRikudo 2 months later...
@DaveRandom That would be me.
@PeeHaa 2 months later we'll have a proper application.
This is a proof of concept.
@DaveRandom re-usable slap? Pray the God! :-D
09:53
That's not how dveelopment works most times :P
@PeeHaa It will when this proof of concept is estimated to earn $1k per use
If it does for you guys lucky you if it doesn't please tell me in a couple of months when it will not be a prototypy anymore so I can tell you "told you so" :D
So you get one out as fast as possible, while working on a proper extensible application in parallel.
@PeeHaa Sure things
If I have to read one more meaningless management jargon word I may shoot myself and everyone around me, although probably not in that order.
09:56
LOL! I was just reading back my flags. I'm sure I fill the mods hearths with sheer joy when handling my flags :)
Ow wait. Mods don't have a hearth. They are stonecold killers
@DaveRandom shuffle($shootTargets); // Let's add some Russian Roulette. :Ь
@DaveRandom That's a hearth??? TIL
In historic and modern usage, a hearth is a brick- or stone-lined fireplace, with or without an oven, used for heating and originally also used for cooking food. For centuries, the hearth was such an integral part of a home, usually its central and most important feature, that the concept has been generalized to refer to a homeplace or household, as in the terms "hearth and home" and "keep the home fires burning". In a medieval hall, the hearth commonly stood in the middle of the hall, with the smoke rising through the room to a smoke hole in the roof. Later, such hearths were moved...
The japanese thing looks cozy :)
I can see myself making a proper fire in the middle of the room
10:02
My friend's parents have this little cabin in the middle of the woods where most of the inside of the cabin is taken up by a fire pit, I am very surprised we have not burned it down yet
@DaveRandom I think I just jizzed myself
@PeeHaa it is described for class which will build an instance
Tissue aisle PeeHaa
@PeeHaa Awesome. I hope you have a laminated desk.
Back in the day when I was young and very much not innocent I always went on into the woods and make fire while doing certain substances
10:04
Man you guys are such druggies :P
@PeeHaa Should we alert the authorities?
@SecondRikudo It has happened that we were totally off the planet and suddenly had to get the hell our of there :P
@PeeHaa Yup. It's not like we were just sitting in a hut building a fire ;-)
I would have been dissapointed it that were the case :)
@PeeHaa "We"? There were accomplices too?
-writing writing-
10:05
:)
Twig is at least pretty easy to use.
user924016
lol
user924016
=]
@Fabien DON'T TRY IT!
too late :P
10:13
@Fabien Unless twig is drug, you're going off-topic here. :P
@Leri Technically back on topic :P
Well, now we have phpng, if I want to create RFC should I also make my patch working on phpng branch?
@Leri You shouldn't, just prepare yourself for your rfc to result in crying and calling people at home to not vote yes on it
@PeeHaa Well, I'll do my best to explain purpose of my effort and keep my patch as good as I can do. If it won't pass, it will be neither unexpected nor disappointing. It will just mean that I am not up-to there... yet. :)
10:22
Composer is just awesome. Guys at work like "we don't need that" - brand new build, their stuff isn't working with some dependencies, mine just requires "php composer.phar install" and bam. Done :-)
Did you rub it in their faces?
user924016
@Jimbo yea, but the search functionality sucks
> He elected to come back later.
so... he was stoned then
@Fabien Nah, this has happened before. When I wrote unit tests and they mocked it and their code failed. Just hoping they'll learn eventually
@Jimbo They'll learn harder if you rub it in their faces.
10:24
lol
@DaveRandom I guess so
@AlmaDo Get a job.
@DaveRandom working on that :p
10:26
This is going to be uber secure... :|
@PeeHaa This is just a test. Later on when this works i will put Security on it so its protected against mysql.. — user3625270 5 mins ago
Yeh, it takes a lot of effort to protect against MySQL
MySQL is baaad
wow, that Q sounds bad on so many levels!
This question appears to be off-topic because it uses deprecated code which receives no further support. — CSᵠ 22 secs ago
^maybe wording is a bit harsh, but ouch...\
What php version is this allowed?
$data = [];
$data += [
    'foo' => 'hello',
    'bar' => 'world'
];
5.4+
Short array syntax FYI
10:34
It's erroring for me. I'm doing something dumb. I guarantee it.
no errors...
Oh I missed an $ in my print :D
Blame Twig
but learnt somethging interesting...
so you can += [] and push in the array
I do not rely on += with arrays...
yeah..
doesn't seem appropriate
10:36
Cartesian product is so rarely useful. I really wish + did the same thing as array_merge()
@DaveRandom + has nothing to do with cartesian product now
It's useful when it's useful.
@webarto I'm moving away from ubuntu now btw. For your considerations.
@AlmaDo orly?
10:40
@DaveRandom yes
cartesian product: [foo, bar] x [a, b] is [[foo, a], [foo, b], [bar, a], [bar,b]]
@AlmaDo I could swear that was what it did, which I always thought was weird. Still, array_merge() behaviour would be way more useful
@AlmaDo Yeh I know what it is, for some reason that's what I though + did
@DaveRandom well.. ? + for arrays in PHP has nothing common with cartesian product
^ yeah, yeah, we all know that :p
10:44
Took that picture in Salar De Uyuni :P
@DaveRandom what + is doing is called hash tables merging
@AlmaDo Yes I realise that now, although I still maintain that it's not hugely useful compared to what array_merge does...
@DaveRandom it has sense (if keep in mind what it does exactly) - but I think that + should not be used as much as possible (good example is you above - you thought that it's cartesian product - so what if you'll find that + in huge codebase? .. meh.. )
Ah "delv-pls" ...
Funny how as I'm working on a project, I encounter posts on SO which I can improve/flag/close
11:20
Watcha' workin' on?
I have a question, some people tell me about their mail config from cpanel ( wich they use in Mac mail) that they have a lot of outgoing mail that is pointing to the spamfolder in other peoples email. Is it possible to prevent that in some way? So: Is there a way that other people won't receive the mails from that e-mail account ( in the screenshot ) in the spam folder? thanks! :)
@HamZa Welcome in another club. :D
@Leri lol seriously, this prestashop is driving me crazy. I finally got it working on our school server. There were so many problems: error reporting was off both in php as in prestashop, some modules weren't installed, some rows in the database needed to be changed and....
Apr 9 at 15:19, by DaveRandom
don't say doing your wife, don't say doing your wife, don't say doing your wife
You really couldn't be bothered to type that out again aye :P
Doing your... son.
11:25
@HamZa It was fucked up, in short. :D The problem is that I did not find good e-commerce...
@Fabien idk, probably took me longer to look it up in the history :-P
Yup
@Leri Yeh that's because there aren't any at all anywhere on earth.
> how can I use inherited Report from Base Report that I pass BindingSource from my solution in FastReport
@Leri Let's make one!
11:28
@SecondRikudo With blackjack! And hookers!
Seriously though, who makes an API XML response only.
-2
Q: yahoo messenger for linux

user66530I want to install yahoo messenger latest version in RHEL5 & FEDORA. is that possible? where to get and how to install? Please do the needful. thanks in advance

Bastards.
@SecondRikudo The problem with e-commerce is that there's a lot of customization needed that at some point creates clutter.
@Leri The idea with something that need great customization is to abstract all the core parts away, and allow customization to take place on a solid API.
11:29
> "Bender Honey, we love you"
"Shutup Baby, I know it."
@Fabien Or people who don't know that json exists. :D
@SecondRikudo lol, not an easy task bro
@Fabien People who started the project 7 years ago and are now tightly coupled to XML
@SecondRikudo I had an idea to make unified, modular e-commerce that would handle all payment, tax and related things. However, my calculations shown that effort does not worth income.
@HamZa Never said it was easy.
11:31
lol
@Leri Making such a system is either in a commercial company with budget and financial plan, or as FOSS.
Hmm no one an idea for that mailling issue? :)
It's not something one person can make and make money off of.
@SecondRikudo Holy sh*t, Yahoo messenger still exists?
@Fabien Maybe because they saw this stackoverflow.com/a/19391553 lol?
11:32
@DaveRandom Apparently, and it does the needful.
@SecondRikudo Agreed. However, making it as FOSS also does not worth in my case, because if I use that time properly, I can do much useful things, imho.
@Leri True. It depends on your needs and ideas.
Not everything is implementable and not everything is practically implementable.
@HamZa lol
@SecondRikudo I think we've long ago decided that isn't acceptable within the bounds of the very thin line of the
@DaveRandom I SAID DV IT!
Too late to edit it anyway :(
11:38
hehe
> A call for help (urgent)
@DaveRandom Game, Set and Match.
My job here is done.
That moment when you get uncaught exception which basically is produced by: new RuntimeException(new RuntimeException(new RuntimeException(new RuntimeException(new RuntimeException(new RuntimeException(new RuntimeException(new RuntimeException(new RuntimeException(new RuntimeException(new ActualException())))))))))); Well, f*ck you Java.
5
@Leri lol
^ real code?
11:43
@AlmaDo Yes and no. In catch blocks exceptions are wrapped in RuntimeException and rethrown which ended up in that structure.
Well .. f*ck you, Java
@Leri How do you even handle that?
Usual thing when I get exception is: copy paste stacktrace in notepad, open find dialog, search for: caused by:.
11:45
@SecondRikudo It was null pointer exception in fact. However, android application framework glorified it for me.
Evening!
@AmalMurali Yo
@Danack cannot - tagging is not up to me, but I will ask
@Ocramius cool.
@SecondRikudo Isn't it possible to use dupehammer from within /review?
11:48
@AmalMurali It is
But the question must be tagged with originally (i.e. it wasn't added to the question after it was asked)
Which is the case for most but not all questions.
@JoeWatkins nice :-)
Yeah, that's the case here, but I don't think mine works.
Bug in the matrix, possibly?
@Leri what's wrong with that btw?
@NikiC Then I'll work on finishing the patch to be inline completely with actual zpp.
@Ocramius Awesome stacktrace full of unrelated crap. ;)
11:50
I stopped reading at "but I don't have the time to go through all the tutorials and documentation". :/ — Amal Murali 17 secs ago
@Leri not my fault if (most) people don't know how to deal with previous exceptions ;-)
This question appears to be off-topic because OP has no time to go through all the tutorials and documentation. — Second Rikudo 8 secs ago
@Ocramius How about rethrowing without wrapping?
and it's not really unrelated crap either
@Leri your code should actually only catch if the exception type has to be dealt with
@SecondRikudo lol
11:52
He deleted it :D
@SecondRikudo Question ban incoming!
Well, after a few more similar questions, I mean...
@Ocramius So catchAllTheExceptions is not valid keyword? :'( You've just ruined my whole life. /me is bad at drama
lol
no, but seriously, if you re-throw, then you re-throw with an exception from your domain
@Ocramius Let's take real world example:
try {
    $db->commitTransaction();
   // some code that must be here for a reason I couldn't think of, which causes exception
} catch (Exception $ex) {
    $db->rollback();
    throw $ex;
}
Why should one wrap $ex in something here?
@Leri because you'd throw a TransactionRolledBackException to allow caller code to catch it
11:59
@Ocramius Okay, fine but.. what about very very generic RuntimeException?
the caller code wouldn't catch the db exception directly either, unless it did assumptions about the persistence layer
That clearly is not domain specific.
@Leri a generic exception is not informative enough, and it would likely be catched by every second layer
while a specific exception would be catched specifically only by code that can deal with it
which leads to those horrible chains of re-throws :)
that's really because of too generic catch blocks
also, I'd like to clarify that exceptions are not a debugging tool. You don't throw early and catch late because you want to see cleaner traces, but because you want to have specific handlers for exceptions deal with specific exception cases
the trace stuff for debugging is barely a nice side-effect that exceptions carry
@Ocramius Agreed with this point. However, I have a great idea. I'll reverse stacktrace for RuntimeException. Yay!
12:03
You just need a better global exception handler while debugging :P
@Ocramius does it make sense having a new repo for ZF3 discussion and strawmanning? All these [ZF3] PRs seem to be getting lost in the noise of other issues
@hohner no, I wouldn't move them to a separate repo. They are easy to cut out tbh, and the threads are all prefixed [ZF3] anyway
user924016
@Ocramius in Doctrine DBAL, the QueryBuilder is the connection?
@RonniSkansing nope
user924016
12:06
I pretty much have X which depeands on a dbal and a querybuilder. Using Auryn I did something like
157
Q: OK we're all adults here, so really, how on earth should I use a squat toilet?

hippietrailOK so for anyone that's travelled beyond North America and Western Europe you know what I'm talking about. Left: Romania, last year. Right: Turkey, last night. They start popping up in the Balkans and of course they're everywhere by the time you get to Turkey and become totally unavoidable no ...

user924016
$injector->share('Doctrine\DBAL\Connection');
        $injector->delegate(
            'Doctrine\DBAL\Connection',
            function() use($injector) {
                $dbConfig = require 'mysqlConfig.php';
                $config = [
                    'dbname' => $dbConfig['database'],
                    'user' => $dbConfig['username'],
                    'password' => $dbConfig['password'],
                    'host' => $dbConfig['host'],
                    'driver' => $dbConfig['driver'],
rofl. this post is damn funny
user924016
Well now the connection was ready, then I was about to setup the query builder, but got hit by this
$conn = DriverManager::getConnection(array(/*..*/));
$queryBuilder = $conn->createQueryBuilder();
user924016
12:07
or the connections is just the factory for the builder?
@RonniSkansing it is just a factory for the builder
user924016
thanks
@AmalMurali Nice question
user924016
You saved me a ton of time
What kind of date format is "2014-04-25T14:48:38Z" ?
12:13
@Fabien Isn't that just ISOx
ISO 8601
Apparently so.
lol: 64 bit: 20 vs 20 ^.^
user924016
@Ocramius, looking at the source for the builder it seems it does hold the connection? To create a QueryBuilder I have to pass a Connection or use a connection as factory which passes itself into the QueryBuilder..
@RonniSkansing yes, the QB has a reference to the connection
and yes, you can also create a QB without using the connection as a factory
@AmalMurali :D
user924016
=[
Oh wow...
1500+ reputation reversed due to serial upvoting...
@AmalMurali On Shankar?
@SecondRikudo Yeah
12:29
Yeah, saw it the other day
How come?
@AmalMurali After the great raid on Kolink and Shankar, I looked at their profiles, and saw it
user924016
I hoped it would only build queries not delegate or be a wrapper for the connection.. well the package search goes on..
@AmalMurali lol that's gotta be some record
@AmalMurali oh my lol
12:31
@PeeHaa indians top the list lol :P
I wonder why this question isn't deleted yet.
because of most common reason
@SecondRikudo STOP REP-RAEPIGN!!1!!ONE!
@AlmaDo What is it?
12:39
@AmalMurali how to steal Kolink and Shankar rep: upvote them into oblivion, they'll then loose their rep the next day
^ does that work?
@bwoebi Is it 2/3?
No, only the serial votes will be reversed. Rest of the votes will remain as it is.
23
A: Am I a victim of an automated serial upvoter script?

Martijn PietersWhen the serial upvote is reversed, your reputation is recalculated as if the serial votes were never applied. This means that a reputation cap will be recalculated too, you will still get your legitimately earned reputation from normal upvotes. So, if you received 15 serial votes, and 10 regul...

@webarto no idea
@AmalMurali :-(
12:42
hehehehehehe
trolololo
3
Q: Invalid username?

Abhi BeckertI just came across this highly active user: http://stackoverflow.com/users/495470/495470 Who's username is the unicode character U+0618 ARABIC SMALL FATHA. At least on my mac, that character has 0px width and therefore cannot be selected or clicked on, and it's generally a pain in the ass to re...

Kids these days :-P
@PeeHaa I came across one of the comments by this user and had to use Inspect Element to find his damn profile page lol
@PeeHaa looks like ´ to me…
@AmalMurali :D
Look at the comments under his answers. Nobody ever highlights him. Neat!
Since when does a tag directly have a link to the cv queue?^^
12:47
Ooh, that's new.
I don't see the link?
Ooooooooooooooooooooooooooooooooh
The number
@PeeHaa: Click here:
:-P
UX #fail imo
@PeeHaa One could think you had forgotten why you had eyes^^
shhhhh :)
user924016
12:49
Yea okay, Ocramius, I completely missed the ExpressionBuilder, that was what I was actully looking for. Thanks for the feedback though.
@AmalMurali it's "Who cares?"
In this case, the question itself is an exact duplicate, so why not delete it?
Hi
-2
Q: PHP : How to know if my query is success or not?

wawanopoulosI make this request : $query_search = "insert into tbl_user (prenom, nom, ville, username, password) values ('".$prenom."', '".$nom."', '".$ville."', '".$username."', '".$password."') "; $query_exec = mysql_query($query_search) or die(mysql_error()); I would like to know if the result is succ...

Wow 7 answers to that question already...
@AmalMurali okay, let's punish repwhores..

« first day (1311 days earlier)      last day (3862 days later) »