« first day (1440 days earlier)      last day (3505 days later) » 

12:35 AM
@Danack heh. i guess "don't do everything in the constructor" didn't occur to them
 
Hi, somebody there with ubuntu exprience?
 
@cHao the whole things a nightmare - instantiating 370 objects for one event? They've lost the plot.
 
@Marby for some value of "experience", sure :)
@Marby sup?
 
Im a absolute beginner with ubuntu, I just tried to install and use it today, I read some tutorials and I had sucess installing, but now im Im a strange issue that I dont know why is happening
 
@Danack what the hell. i've made whole apps that don't do that much busywork
@Marby well, if you have a question, get to it. i get bored easily.
...or...you could just sit there. that works too. :)
 
12:49 AM
background: -webkit-linear-gradient didn't seem to work without prefix
 
@KevinDuke or, you could just not use a prefix at all (in most cases) :P
 
oops edited my chat instead of posting another >.<
 
heh
thought for sure i'd used it before...
apparently it's been supported since chrome 10 (which was released forever ago in internet years). probably won't work if you use the old crappy webkit-specific syntax though
 
ah and the -moz-linear gradient is totally different too :/
 
i have the apparently-unique luxury of being able to say "fuck mozilla" if they can't be bothered to conform to standards. :)
 
12:55 AM
haha
 
looks like mozilla halfway supports the standard syntax too
they just don't let you use it everywhere. should work on backgrounds though, i'd think
 
decided to just scrap my design and redo it on colorzilla's gradient editor so I don't have to be bothered with it
it outputs all the formats
 
1:13 AM
@Marby **poke**
eh. whatever. his silence simplifies my life.
 
1:36 AM
I got an OOP question. I've read it somewhere but forgot the word and it has been bugging me for a while. If methodA assumes that a methodB is called before it then those two methods are in some dependence. What is the word for this kind of dependence?
 
@nikola "temporal"?
 
@cHao wasnt that. I dunno, it's not a big deal... just that little formal word I can;t remember.
I've been searching for it for a few days, beginning to doubt I've ever read it ... hope I didn't dream it.
 
2:08 AM
if there's some other official name for it, i can't think of it
 
 
3 hours later…
4:55 AM
moin
 
Oi
 
Ahoy.
I have arrived to say I am leaving.
Goodnight Mr. Watkins.
 
night dan
 
anyway to get system arch. 32/64 bit in php?
 
5:10 AM
morning everyones
 
monring
wow, just found an old 2GB sd card with... 68GB of pictures on it
 
@CSᵠ php_uname('m')
 
@PaulCrovella thankx
 
Good morning!
 
@CSᵠ the uname thing is pretty good ... there are tests that assume that if PHP_INT_SIZE != 4 we are on a 64bit platform ... I like the uname thing though, seems nicer ...
 
5:19 AM
@JoeWatkins i was thinking to use the same approach, but don't understand why i get 8
and i'd like a comp vs an fcall
 
you're on 32bit and get 8 ?
 
64bit and get 8
 
makes sense
 
what is that 8 supposed to mean?
2^8=256 so...
 
sizeof(long)
 
5:22 AM
@JoeWatkins why !=4 and not >4 ?
 
well so far we've been able to rely on sizeof(long) == 4 on 32bit platforms, and sizeof(long) == 8 on 64bit, there aren't any platforms I know of where sizeof(long) == 6 for example ...
 
got it, makes perfect sense
 
user895378
Okay folks, I'm out for the next week. My sister is getting married in California this weekend ... to her girlfriend :)
 
user895378
Conservative family fireworks are sure to ensue.
 
user895378
Have a nice few days!
 
5:30 AM
@rdlowrey enjoy :)
I got a lesbian sister, and a gay brother ... days when the whole family are together usually end pretty badly ... good luck
he has been known to wear sparkly shoes to weddings, and she has a better power tool collection than I do ... so it all evens out ...
 
@JoeWatkins they answer different questions. you can be on a 64bit platform and have PHP_INT_SIZE == 4
 
@PaulCrovella don't think so
 
windows.
 
oh yeah int64_t or whatever they call it ...
I don't do windows ...
I liked the uname thing anyway, does that work on windows ?
 
5:41 AM
yeah with slightly different results, but I'd call that and cache the result ...
ARCHITECTURE_INTEL as in i3/i5/i7 ?
no it must be something else ...
msdn docs are crap ...
2
/me goes back to not doing windows ...
 
yeah, no clue what that's about
 
6:10 AM
mornigni
 
6:31 AM
Morning everyone.
@JoeWatkins indeed you need to click 1000 times on a reference until you get to the "correct" reference and even that it's most likely: here's the code and we don't explain it straight to the point but use alot of crap around it.
@PeeHaa Hey, how are you?
 
@PaulCrovella nice, so you're saying effectively that uname is not safe, as the php installed may be 32bit on a 64b platform
so PHP_INT_SIZE would be also safest
 
@CSᵠ I'm saying they answer different questions. Whether or not one or the other is "safe" depends on what information you actually need.
 
@PaulCrovella indeed
 
guys if I run an insert,update, delete, drop, truncate.... it will not return content but either returns a true/false or count of effected row(s) right?
 
moinz new chaps ...
 
6:43 AM
@JoeWatkins ???
 
(I already said morning a couple of hours ago)
 
Good Moring
 
Good morning @Mubeen1992. @JoeWatkins I entered 15 minutes ago xD
 
Guys can anybody tell me how can we find difference between two dates
 
@Mubeen1992 , How you mean that? like days until date2???
 
6:48 AM
@mikem. I mean difference in form of months or dates
 
@Mubeen1992 DateTime Interval diff()
 
for example if difference 14 months or 35 day
 
`nuff said
 
317
Q: How to calculate the difference between two dates using PHP?

gnaneshI have two dates of the form: Start Date: 2007-03-24 End Date: 2009-06-26 Now I need to find the difference between these two in the following form: 2 years, 3 months and 2 days How can I do this in PHP?

I think you need that isn't it?
 
yap i used that it uses difference in shape of date but means max 12 months then next year or max 30 days then next month
 
6:50 AM
shape ... lol
 
@JoeWatkins , ssssshtt xD
 
@mikem. did you get my mean?
 
@Mubeen1992 have you also looked to the second code which states: "Edit: Obviously the preferred way of doing this is like described by jurka below. My code is generally only recommended if you don't have PHP 5.3 or better."
if you know the value in years just multiply that by 365 to get the value in days....
it's not really accurate tho' because of these leap years shizzle.
 
@MikeM. 365.25 avg
but you can even do better :)
check for lap years
 
@CSᵠ indeed you can.
 
6:55 AM
@joewatkins sorry for my bad english
 
no need to apologize ... reads funny is all ;)
 
no prob @Mubeen1992 we know that by shape you meant format
English as a 2nd language is the Main language here
 
@mikem. means there is not any method that calculate this directly?
 
or is it? hmm...
 
6:57 AM
@Mubeen1992 I don't think there is, but you can better ask @JoeWatkins or @CSᵠ. I am also just a beginner in PHP XD
 
@CSᵠ okay
 
@MikeM. yeah, I read Zig-Zag style
@Mubeen1992 what do you have so far?
code, i mean
 
@CSᵠ Lol, that's awkward if you read like that.
 
basically i am have to show a post count by day or by month
 
6:59 AM
seems really distubing to me xD
why do you want to do that @Mubeen1992
 
I have to show summery at admin side about posts where admin can check posts for specific period
@CSᵠ do you think there is any direct method or not to calculate diff?
 
posted on September 25, 2014 by kbironneau

/* by noristori */

 
@CSᵠ Oh I thought like really zig zag xD
 
7:10 AM
pretty much @MikeM. count mostly, not sure about alter, drop
 
I think drop will return the same but as true/false (1/0)
basicly even the "affected" rows is also a true/false xD (>0/0)
 
@CSᵠ okay
 
good mornings
 
good morning xD
 
7:23 AM
meurning:)
 
no just no.... ^^ (xD)
too happy...
it's morning... no thinking
 
@JoeWatkins isn't it weird to have this outside of the class declaration? github.com/krakjoe/ustring/pull/14/…
 
meowrning ?
 
morning
 
7:45 AM
@MikeM. Mornings are the best time of the day!! Be a little more happy about it :)
 
No no it's not.
most people are annoying in the morning.
so no it's not the best time of the day.
 
@ my job most people sleep in the morning, so it's peaceful and quite out here, so it's best time for me too
 
at my college people are annoying, in the morning.
 
wiki.php.net/rfc/fix_list_behavior_inconsistency - actually really on the fence about this one.
 
@MikeM. Students aren't the best example of sunshines in the morning :) They are all so cold, clouded and unhappy.. :D
 
7:55 AM
@Leigh That is the most stupid thing I have seen this month
The option to enable that is
 
I get how "enable" breaks less, but my instinct is that we have better functions for handling strings, and not all array functions work on strings, so why should this
definitely swinging towards disable
 
yeah
 
Hey can someone help me close my question? (I asked a question; which now I think is kind of dumb, but someone has answered it; and now I can't delete it).
 
@Killrawr Link?
 
0
Q: Given two seperate servers; can PHP decide on the server to recieve e-mails?

KillrawrI've been thinking, and I have question regarding multiple e-mail addresses and the mail function. Is it possible to have PHP send an email to a particular smtp server; for instance if I have two addresses. Configuration smtp.fakecompany1.co.nz Intended Recipient killrawr@fakecompany1.co.nz...

I wanted to be able to send e-mails to a gmail server, without them going to the company smtp :/ ... but now I've figured only way to do it; is to make a Gmail account, and have e-mails (which i want to go to gmail, sent from that account).
seems kind of dumb... but I guess thats the only way to do it.
 
7:59 AM
Is the answer wrong?
 
I dunno, what do you think?... I just think the question seems dumb; if there is no known way of actually doing it.
Well the answer, references to something; that I could of figured out on my own.
 
@Naruto Behave me :D
 
You marked it as answer
Did it answer it?
 
it's just the cruelness they drag me in ;( help me
 
Morning
 
8:01 AM
@FlorianMargaine yes
 
Not really, my question was about being logged onto a smtp smtp.prodev.co.nz; and having a alias account on gmail michael@prodev.co.nz and then the same account within prodev.co.nz.
and having the email go to the alias account; not the account that is on the smtp which the server has configuration for.
 
If it doesn't answer your question why did you mark it as answer?
 
but the answer, just says.. make an account on gmail; and then use that account to send an email the alias account (which doesn't really answer, but if thats the only way to do it.. then technically it does answer it)
does that make sense
 
@MikeM. I'm sorry, you're behind enemy lines, can't help you.. Your in your own soldier! Make us proud! :D
 
@PeeHaa I only marked it as the answer, because even though it doesn't particullarly answer the question; it is still technically correct. :/
 
8:03 AM
@Naruto You never can trust your fellow soldiers ;( Farewell soldiers! got killed by this boredom
 
@Killrawr Nowhere in the answer do I see the statement you have to create a gmail account?
 
@PeeHaa It's kind of implied, I wrote it; in that fashion, so the question would relate to any smtp server... because #atthendoftheday gmail is just a pop3 smtp server
 
Morning, good room.
 
Morning Levi
 
morning good @LeviMorrison
 
8:09 AM
moin
 
To goto or not to goto?
 
goto bad, goto bad ... cracker ?
 
Or how to get merried: github.com/igorw/retry/issues/3
 
@JoeWatkins Cracker may not be null, Null Exception Thrown in your face!.
 
Where can I find a list of regex delimiters?
 
Mornings
 
I see that but not a list of chars.
 
@RonniSkansing Good Morning.
 
> non-alphanumeric, non-backslash, non-whitespace character.
I guess that'll have to suffice.
 
yup. as it states: 'A delimiter can be any non-alphanumeric, non-backslash, non-whitespace character.'
 
8:23 AM
... the Igorw goto issue is getting out of control.
That project is not very large; I bet there are more comments in that issue than in the project, or at least there are more lines of comments in the issue than lines of code in the project.
 
8:34 AM
This issue spent more time than goto approach will save.
 
posted on September 25, 2014 by kbironneau

/* by beastmodebranch */

 
Also, people bickering about hashes and __toString() on Internals mostly don't know what they are talking about.
I think most of them haven't ever even attempted to build a serious container library that would use such things.
 
the goto approach might not save you anything, probably doesn't ...
it is clear, it is concise, it is readable to everyone, it does not suffer side effects or cause anything strange to happen ... why not use goto ...
 
Damn straight!
morning room :)
 
moin
 
8:42 AM
@JoeWatkins , because of velociraptor
 
s/t-rex/velociraptor/
 
@Ja͢ck Morning, sir.
 
Man, that __toString() thread got out of control quickly ... why not just accept that objects can't be used as array keys without explicit cast?
 
@Ja͢ck Definitely don't add __hash either.
Have we learned nothing from Java?
 
Eh yeah, that's the most bizarre magic method.
 
8:50 AM
@Ja͢ck , how does hash could be takken from object?
 
@sectus sorry?
 
code code code code!
 
To store object as key you need to compute hash of object. How it could be computed?
 
@sectus Who says you need to compute hash?
Also, if you want to store objects as key, use SplObjectStorage.
 
SplObjectStorage is using spl_object_hash tho, right ?
 
8:59 AM
@sectus $hash = md5(serialize($myObject));, you can create a hash of an object, with serialize.
 
wont work, what if properties change
 
@Killrawr , ... sigh
it's hash of object data.
 
@sectus I'm not really sure, what you're after; but.. if you want a hash of data within an object, you could get the details of the an object with array get_object_vars ( object $object ), then serialize and md5 the results (thus providing a hash).
 
@Killrawr , object could be changed hence your hash of one object would be changed either.
 
@JoeWatkins Yeah, most likely.
 
9:07 AM
@sectus that is the same in other languages too; such as Java, I'm pretty sure hashes are not going to be persistent as the object is modified. You could try doing a Passing by Reference, and a have a function call; update the HASH (and its corresponding KVP), whenever you request a particular object. (that's just one idea).
 
@JoeWatkins I'll let you comment on it then :P
 
wazup fellasz!
 
I dont see the change in master @FlorianMargaine ?
 
An interesting aspect of spl_object_hash() is that hashes may be reused when you destroy an object.
 
@JoeWatkins it's a PR Andrea did
 
9:09 AM
@sectus You might want to think of a better way of mapping data, than using non-persistent hashes; if you are expecting the object to change, a lot. (but that's just my opinion).
 
@JoeWatkins w00t!
spl_object_hash() uses mt_rand() as part of its operation ... wat
 
strange function
overly complicated
 
@Ja͢ck , only once per one script running?
 
yeah... I don't see why it's not as simple as your ohash
 
9:11 AM
return the address of the variable as a string or cast (unsigned long [long])
 
@sectus still, it's weird.
 
@sectus why not just get its memory address
you can be certain that it's unique
 
@Ja͢ck , also some of object id( that could retrieved with var_dump)?
 
it's unique at that point, yes.
 
@FlorianMargaine , how?
 
9:12 AM
well ... memory can be reused too, but for as long as the object exists the hash is correct ...
 
unless every object has an assigned id, reuse is a potential issue.
it's just a matter of how much of an issue it is.
 
well it does, but ids can be reused too ... and they are reused in most normal code, most normal code does not reuse physical addresses ...
 
@Ja͢ck , why php reuses object ids?
 
@sectus because it says so in the manual? :)
 
but why? It takes time to find out first free id.
 
9:14 AM
a fcall is slow though, I'd like an addressof operator ...
 
@sectus the id is based on the memory address and those can be reused.
as long as you keep objects in an array with their id as the key you have nothing to worry about.
Apparently people think Igor is an internals developer :)
 
@Ja͢ck the property isn't hidden though
 
@FlorianMargaine Well, it's not in the class declaration.
 
I mean, you can (and should) use the property to get the length of the string
so it's not a hidden property
unless I misunderstand what "hidden property" means
 
Right, so then public $length; should be added inside the class declaration.
And apply docblock above that
not sure why andrea chose to document it in that way.
 
9:21 AM
what I thought
 
Considering that it's purely used as documentation, it would be better to explicitly add the property.
 
@Leigh
> This is a fairly unrealistic scenario, however Joe Watkins has
developed a better hash method that doesn't have this flaw, I don't
know if he ever intended to have it applied to core or not.
 
I am
 
it has the same kind of flaw then
 
meh, well, shrug
 
9:31 AM
I let you correct your statement? :P
 
I thought it didn't when we were talking about it before
nah, just ignore it
:p
 
@Leigh b-b-but...
 
nice, doing an RFC for it?
 
nah, I had my fun ...
2 minutes and it was all over for me :)
 
9:43 AM
showoff
:P
 
Damn, the Portuguese SO part sucks so much it hurts. Besides the quality of the questions being low as phuck (mainly "how do I do X" without any code) uppon linking a awesome reply (from the original SO) to a "session hacking" question I got downvoted. So, while trying to be polite and not stealing a answer so I wouldn't be dubbed a ripper (whilist still trying to help) they reward me by shunning me x)
 
@Jimbo hai
 
Jimbo! Morning :)
 
morning @Jimbo
 
(everytime I read "Jimbo" I immedeatly get reminded of Jims' father (in american pie) yelling "Jimboo!" xD
 
^ true
 
@Leigh run with it if you want too ...
 
I don't think addressof should be in php, and I think it will meet a lot of resistance :p
Php is fundamentally away from any memory management... It makes sense to include this operator only if you include a whole lot of unsafe shenanigans
 
also, it has the same flaw here:
<?php
var_dump(addressof(new stdClass()));
gc_collect_cycles();
var_dump(addressof(new stdClass()));
?>
you can't really help that ...
 
9:49 AM
@JoeWatkins challenge... accepted!
 
Before you propose... What do you need it for?
 
@PeeHaa is that #hashtags ? XD
 
@MoshMage Nope it's indian
 
Good noon.
Are there people here who worked with Laravel?
 
9:54 AM
and don't regret it? :D
 
I like Laravel...
 
@Duikboot they all died, or are dying
 
@Jimbo lol. The little I messed with it felt great :) [though I only did the hello world yet]
 
:D Why?
 
@FlorianMargaine I actually don't think it's unreasonable ...
not being able to use a resource or object as a key is daft, I've never come up against the object key one but have against resources ...
wanting to keep an array of sockets or whatever like that is pretty common
 
9:57 AM
morning
 
moin
 
morning
 
yo
 
@JoeWatkins I can see the use case
 
Eternal september much:
 
9:57 AM
so you'd rather have a new operator than a __hashOf method or something?
 
yeah, type shouldn't matter because dynamic, how do you provide a hash for a float ?
 
yep, makes sense
 

« first day (1440 days earlier)      last day (3505 days later) »