« first day (1219 days earlier)      last day (3745 days later) » 

4:00 PM
@bwoebi lol
 
@rdlowrey too bad if your testing environment requires 5.4+ and the project should support 5.3+, this way, mistakes like this one happen: github.com/rdlowrey/Arya/blob/master/lib/Arya/…
 
Ubuntu 14.04 LTS will come with 5.5.8 it seems launchpad.net/ubuntu/trusty/+source/php5
 
@HenrikBjørnskov on 13.04?
 
user895378
@kelunik Well, like I said, I'm not supporting < 5.4 in new projects so I honestly am not bothered by that :)
 
@PeeHaa in conf.php. The ideal location for functions.
 
4:01 PM
hehe
 
@RonniSkansing we are on 12.04
 
user895378
@HenrikBjørnskov Nice! Generators are teh win
 
@rdlowrey you should probably change your readme then ;)
 
we do map reduce like stuff a lot so yeah they are "teh win" :D
 
@HenrikBjørnskov any idea when it is able to upgrade again? Or is it frozen on the version?
 
user895378
4:02 PM
@kelunik oops :)
 
@RonniSkansing dunno
 
1 message moved to /bin/gif
Aaaand the backlog is down again :(
 
how do one highlight people in this chat?
 
@username
 
anyways. @rdlowrey any reason why you write FALSE and TRUE in all uppercase?
 
4:04 PM
you highlighted me =]
 
i clicked the reply thingy :P
 
hehe
ok
 
@PeeHaa huh?
 
user895378
@HenrikBjørnskov it's just habit TBH. It's probably a stupid thing to do. I've considered stopping that practice recently.
 
@crypticツ Not yours. @Gordon's which is the feed for the in room backlog
 
4:05 PM
reminds me of drupal :)
 
I have actully considered lately using uppercase true false, atm using lowercase
 
@rdlowrey Please do :)
 
@rdlowrey +1 from me for 'true' - as a rationalisation it makes code easier to read for people who are coming from Javascript.
 
user895378
Yeah I think I will switch to lowercase. It doesn't seem to be a popular practice among other quality php devs (as seen above).
 
user895378
4:08 PM
@webmaster777 Not sure what you're asking?
 
Quelity dev php code: must be all lowercase
 
Any arguments on the lowercase please =]
 
@RonniSkansing you have to use shift less :)
 
I've seen people strtolower the number argument.
 
"high quality php devs" who decide when someone is that?
 
4:10 PM
after casting it to a float
 
@kelunik yea, but I kinda see true false as constants
 
maybe there is a lowercase variant of the decimal separator I never heard of.
 
I will not stop using uppercase in constants because of lesser shifts =]
 
@RonniSkansing Do you see DIR as constant too?
 
@webmaster777 github repo or didn't happen
 
4:11 PM
@webmaster777 DIR ? yes
 
no __DIR__
 
hehe yea
 
user895378
@webmaster777 No, I just meant that @PeeHaa and @HenrikBjørnskov and @Danack all prefer lowercase true/false to TRUE/FALSE ... and they're not the first people who've asked me why I uppercase those two keywords. As a result I'm going to switch to true and false going forward.
 
@PeeHaa Sorry was at my job. can't share the whole code.
@RonniSkansing So magic constants are constants as well.
 
4:12 PM
@webmaster777 you think it is not a constant?
 
I'm pretty sure it isn't
It's a runtime/compile time magic variable.
 
@webmaster777 so you want to call it macros?
 
which happens to look like a constant
at least for what PHP is concerned
 
@webmaster777 you are saying it is a inmutable $variable?
 
it is not inmutable
depending on your interpretation of inmutable
 
4:14 PM
my interpretation of inmutable?
means you can not mutate it
 
I would only have to move the file to change it :P
 
@webmaster777 that is not mutating it
 
where as other "constants" do not change when I move them to an other dir
 
@webmaster777 that is correct, this is why they are called magic constants in php
I can not agree it is a varialbe
 
@RonniSkansing And why they are not constants.
 
4:17 PM
A variable does not mutate across line / files
they are more like macros
 
Morning
 
Morning =]
@webmaster777 and how does this even fit with the talk about true/false being constants?
 
define('TRUE', false);
echo TRUE? 'ye':'no';
Try it.
 
sure
ye
 
I was astonished by the way.
 
4:21 PM
I do not get it, what is the point? =]
 
@webmaster777 3v4l.org/OlTXJ That was an issue 4 major version levels ago
What's your point?
 
php > define('TRUE', false);
php > echo TRUE? 'ye':'no';
nophp >
 
lol
try php -v
 
5.4
.17
 
I mean, seriously. If you're using PHP 5.1 there are much bigger issues
 
4:23 PM
not kidding.
 
@webmaster777 try not doing that in cli
 
3v4l.org/JUTTm < Hm, why has that been changed inside php 5.1 and not in php 5.2?
 
why not. php-cli is so awesome.
 
@webmaster777 your argument please. I was asking about uppercase boolean values
 
Hey guys quick question Is there a reson why my file_get_contents() is not working?
 
4:25 PM
You started talking about weird magic constants which i said yes, i treat them like constants
 
This is the error
 
now you are showing a a example of cli not threating constants in a proper way
 
@jack chdir
 
but none of it is a argument near what is asked
 
@webmaster777 Sorry I don't understand?
 
4:25 PM
No I know
 
@jack try file_get_contents(__DIR__.'/backup.json');
 
@jack __DIR__!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
 
But using uppercase as the idea of them being a constant, is just weird for php.
 
@webmaster777 please a argument, what is weird about it
So far i heard
 
Um Okay I think that's worked, Nothing is echo'ing out so I guess there is a problem with my JSON
Thank you
 
4:27 PM
@webmaster777 how about using FaLsE ;-)
 
Well, if there is a possibility to overload the TRUE constant, but not the true boolean value, I would rather stick with that.
 
Use lowercase because uppercase is weird (when talking constants?)
Use lowercase cause it would be easier for js writters to adapts (what?)
Use lowercase because quality php programmers do so (what?)
So any real php/coding style domain specific arguments?
btw I use lowercase, but have considered switching to upper, and so far from this convo I think that might not be such a bad choice in php...
 
So you don't intend to use php-cli then.
 
user895378
TRUE and FALSE aren't technically constants (they're magical voodoo keywords). BUT they act like constants to userland code so the distinction is really unimportant. This is why I've uppercased TRUE/FALSE in the past (because they behave like constants in userland).
 
4:30 PM
@rdlowrey yes exactly
and that is just how the magic constants work in php
so I do not get the argument for lowercase
@webmaster777 are you pinning your argument to specific behavior in phpcli?
 
user895378
Well the argument is that lots of other people seem to prefer lowercase ... and I don't really care that much one way or the other.
 
well i say, go with uppercase
lol
 
@DaveRandom where did you get the whole list? Or did you brute force it?
 
I am going to do that from today
 
no not really. My argument so far is just about consistent coding style, and using magic voodoo is nice for __METHOD__, __FILE__ and such, but I would rather not use them for basic boolean values.
 
4:32 PM
@webmaster777 basic boolean values?
tell me about the advanced onces
 
null
 
@webmaster777 that is not a bool
 
I know.
 
user895378
4:33 PM
I don't think anyone is advocating in favor of magic voodoo ... but that's what we've got in PHP for TRUE/FALSE/NULL so the point is kind of moot.
 
Oh i know.
wait
 
@webmaster777 it seems you bring no arguments other then a cli specific issue
 
$advanced_boolean = function() {return rand(0,1) > 0 ? false:true; };
 
and it annoys me because I would love to know some arguments the other way around. It is not that it matters =]
@webmaster777 that is not a bool
 
it is a magic constant
 
4:35 PM
no
 
or macro how some would like it
 
no...
try and var_dump it..
:)
 
But is one i use for advanced boolean values.
sorry my cli doesn't support \0
 
Advanced boolean values: for when normal booleans aren't enough
4
 
For all your is so, is not arguments.
 
4:37 PM
A.k.a. quantum booleans :)
 
Well I got trolled enough =]
 
now already?
 
hehe
Yea unless you have more truely pointless arguments
 
Let me see.
No that's next door.
Why isset on a variable that has been set to null should actually return true?
 
okay I got a argument then. Hey it behaves like constants (unless you a cli tard), lets use them as constants
 
user895378
4:40 PM
@ircmaxell I pinged you in #php.security regarding PR 592 to try to liven up the room a bit. Lemme know if you have any input. I'm going to let the PR marinate for a couple of days then go ahead and merge it unless anyone raises an issue.
 
@webmaster777 should it?
think not
 
No, but I think it should
convince me.
 
@webmaster777 "isset — Determine if a variable is set and is not NULL"
Not that hard is it?
So tell me now, why you think it should actully return true...
lol
 
I think the function should be isset_and_not_null()
or return true
 
@bwoebi you here?
 
4:51 PM
on a related note: is_null is a pretty useless function imo
 
I don't always change dependencies, but when I do it is in the vendor dir...
 
@webmaster777 try and remove not null functionality from isset(). As you describe it, it would check if a specific variable is set (set? Iknow of initialization/declaration).
that would make no sense
 
@webmaster777 you can use array_key_exists('var', $GLOBALS) 3v4l.org/ZnIA0
 
@PeeHaa works for me
btw, why are you people still using mine? I thought you had moved the whole thing to @crypticツ's code including the scraping.
 
@Gordon ow it works just fine up until the point you go AFK and do a composer update when you come back
;)
@Gordon That would mean diving into the plugin code again and that thing scares me :P
 
4:57 PM
@kelunik lol
:) Nice
 
@PeeHaa why? all you have to do is change the url from which it fetches the data
 
@kelunik wow. just...
 
@Gordon Also some xpath / dom magic IIRC
 
@Gordon um I never got around to it =oP The new version has a replacement github.com/Room-11/CVBacklogUI/blob/master/src/CvRing/Backlog/… but I still need to piece together all the things. It's about 70% done?
 
Will have to do it either way once SO enables https
 
4:58 PM
@AlmaDo why? well… write what you want to ask, will answer later
 
But that will be at the same time debian upgrades to php 5.6 I think
 
@crypticツ In any case, I am not maintaining it anymore. The simple reason why its still online is because I didnt find the time to disable it. /cc @PeeHaa
 
:P
Does it get in the way?
 
same reason why I transfered ownership of the repo to you guys
 
I.e. will it get pulled soon?
 
5:01 PM
@Gordon I guess I can point it to @hakre's mirror if it is still up.
 
@PeeHaa no, but it should be running from cv-pls or whatever the domain is nowadays
 
/me looks at a certain pony
 
it will, just as soon as I am done with the new release =oP
 
:D
 
@bwoebi no. not to ask. just notice. Remember you and I thinking on this question? (Caused dmitry to fix bug that I've found with undeclare_tick_function()). So.. I've got an issue - people want that with composer.. lol :p
 
Hey guys so I'm trying to grab & store JSON from a url, except when I use file_put_contents() it just places the url and not the JSON, Which step am I missing?
 
@jack you are missing a file_get_contents($url) to actually get it
 
@bwoebi oops, unregister_ .. always confusing that..
 
@jack -1 that's not even trying
 
5:06 PM
we've got @Jack's twin!
 
Ahhhh /facepalm
 
perhaps it's him - sitting from second account and trolling us :p
 
Sorry guys :( I've been running around (metaphorically) like crazy must have slipped my mind
 
^ don't take it too hard. it's not the worst case :p
 
5:10 PM
I take it your talking to another Jack?
 
Hi all.
What's new?
 
what's the avantages of Symfony2 for php :!
 
@Ziprox09 It prevents you from reinventing wheels
Note that I made no assumptions about the shape of the wheel(s)
3
 
@PeeHaa thanx
 
@Ziprox09 you can easily use a lot of plugins - symfohub.com/bundles
 
5:20 PM
@Ziprox09 there is none :P
at least not if you know what you are doing
 
Well, for that one developer I can clearly say that Symfony2 made him wrote far more lines of code that were actually necessary.
Just discovered a set of classes with around 800 lines of code just to built an SQL query.
Not only was the generated SQL query hard to debug, but also with that amount of code this is a maintenance madness.
The concept known as the law of the instrument, Maslow's hammer, Gavel or a golden hammer is an over-reliance on a familiar tool; as Abraham Maslow said in 1966, "I suppose it is tempting, if the only tool you have is a hammer, to treat everything as if it were a nail." History The first recorded statement of the concept was Abraham Kaplan's, in 1964: "I call it the law of the instrument, and it may be formulated as follows: Give a small boy a hammer, and he will find that everything he encounters needs pounding." Maslow's hammer, popularly phrased as "" and variants thereof, is from Abr...
 
5:35 PM
@Ziprox09 Is there a Symfony2 not for php?
 
@PeeHaa and that is too optimictic. In our cruel world nothing can be trusted. Even shape of wheel..
 
Hi all!
Say something to me!
 
.
 
well, I've tried
 
5:40 PM
anyone familiar with z index?
 
z-index u mean?
 
it's some sort of necromancy?
 
yes
 
got it
 
5:40 PM
I am having trouble adding it to:
<div id="mainImage"><img src="imgs/SPIimg.png" width="1100"></div>
could you please help me?
 
add the z-index property
...
 
or with position
 
The problem I am having is that the image is appearing in front of my other div's will this solve the problem?
 
@user3199791 what value are you setting for the z-index?
 
5:42 PM
I tried to set it as 50 but I dont think i had done it right because nothing happened
 
user895378
lulz @ NSA getting itself pwned nsa.gov.iq
 
@user3199791 why would you set it to 50 if you want it to not be in front of everything else?
 
should it be a -?
 
@rdlowrey I don't even know what's .iq ..
 
@rdlowrey haha.
 
5:44 PM
It should be negative or less than the index of the layers you want it to be behind @user3199791
 
@rdlowrey It seems like the DNS got spoofed or maybe not ...
 
@rdlowrey .iq is your own domain?
 
So I have to apply an index to all layers?
 
not neccesarily
 
5:45 PM
@user3199791 no, just that layer, set it's z-index value so it is lower than the values of the other layers
 
user895378
@MaciejA.Czyzewski No, .iq is the TLD extension for "Iraq"
 
<div id="mainImage"><img src="imgs/SPIimg.png" width="1100" style=z-index:-1;></div> Tried that and also tried to put the z-index directly in the div, nothing happened
 
@user3199791 dude have you ever properly learned a bit of html/css ?
 
I started yesterday
 
@user3199791 then go read some books please.
 
5:47 PM
^ that
 
okay, but could you please help me with this 1 problem?
 
We already told you what to do, you need to learn more about CSS and HTML to be able to use that advice correctly.
 
No, no and NOOOOOOOOOOOOOOO
I know this pattern "ok, but can you help me with this problem ?"
You'll never learn like that
 
The one problem syndrome.
 
@HamZa that's an anti-pattern
 
5:48 PM
okay, will read up on it. Thanks for your help
 
hahaha
 
@user3199791 you should also have a look at CSS's background-image.
 
okay, thanks
 
1 min ago, by Alma Do
@HamZa that's an anti-pattern
 
@AlmaDo That was the point ;)
 
user895378
5:49 PM
Announcement: I will henceforth state my age when asked not as thirty-one. I am now instead twenty-eleven years old.
 
@webmaster777 no, not to design, but to layout :)
 
@rdlowrey hahahahah
 
@MadaraUchiha loooooool
 
5:51 PM
Darn. Then how am I ever going to defend this?
 
@rdlowrey you're taking it too hard. in fact, 32 years old is just 0x20 ..
 
<div style="display:table"><div style="display:table-row"><span style="display:table-cell">tadaah!</span></div></div>
 
user895378
@AlmaDo Can't argue with hexadecimal :)
 
yeah, so you're year before twenty!
 
5:54 PM
or 040 in octal.
 
you may become 40 if you wish. I prefer to stay 20 (:
 
40 is just twice as much 20.
 
Proof it!
 
Consider it proofed.
 
@Fabien in terms of life retrospective I think 40 = 20^2
 
5:56 PM
@webmaster777 or 0b100000
 
It's an easy thing to put on birthday cards for the old... "Congratulations on turn 20 for the second time." Or w/e age they are /2
 
But that's just not correct
You can only reach a certain age once.
 
@Fabien at least you will remember your age by reminding earliest PHP version that you've worked with..
 
@AlmaDo well… the lib is anyway nice :-)
 
5:59 PM
those young newcomers will never feel that beautiful though about PHP 4 :p
 
or 3.
 
@bwoebi btw: with "benchmark" as a search string I've got many packages for composer. Most extended and advanced is this - it has many features for making it comfortable, but.. it can not measure memory :D
 
@AlmaDo tzzzk^^
 
anyway, horrible idea to do that in PHP :p
 
back from 'shopping'
 
6:16 PM
@internals, Is it okay to use static const *MY_CONSTANT = "my_value"; to avoid using strings directly in functions?
 
what's that a question?!
 
How did your gut respond?
 
@bwoebi I just want to know I am not violating any guideline for contributing to php-src. Basically, constants are keys of array passed from userland.
For example, static const char *SCHEME = "scheme";
 
@Leri use #define? at least for static const strings…
 
6:21 PM
@bwoebi Thanks. I have not written C for a while. I've always used static const .... Why is #define preferred?
 
like copy paste =]
 
Did not get you. :)
 
It is a macro, abit like copy and paste. It does not fill memory unless used
 
@Leri compiler can anyway optimize multiple equal strings to only one in the data segment of the file. And it's just the style we're using all over the place in php-src…
 
Thanks for information.
 
6:29 PM
> HTTP/1.1 429 Client Error
The only status you will ever have to send back to the client
 
@PeeHaa What if you have a Server error?
 
2 mins ago, by PeeHaa
> HTTP/1.1 429 Client Error
 
Server: There's something wrong, and it is definitely not me.
 
hola @MaciejA.Czyzewski
 
6:40 PM
hi =]
 
Feb 7 at 13:36, by Jack
TRUE, for when true is not true enough.
 
:)
 
How does this happen?
55
Q: CodeIgniter activerecord, retrieve last insert id?

Dennis DecoeneAre there any options to get the last insert id of a new record in CodeIgniter? $last_id = $this->db->insert('tablename', array('firstcolumn' => 'value', 'secondcolumn' => 'value') ); Considering ...

the upvotes
 

« first day (1219 days earlier)      last day (3745 days later) »