« first day (933 days earlier)      last day (4241 days later) » 

Anonymous
or ^
01:11
@Eugene oh. maybe maybe I check about it within the next 14 days. but only maybe.
user652649
do you guys usually use to write abstract protected methods? pastebin.com/ALLTv9cN i'm asking about protected ones only
+1 is totally correct (if not even making this more little as it needs to). I'm not 100% okay with this code per sé but I very much like this style. First of all any kind of FilterIterator is okay, so is RecursiveFilterIterator. Also using functions from PHP's standard lib inside the object abstraction (here: is_dir) is totally valid. Especially as SplFileInfo is part of the Spl which is the re-incarnation of Standard Php Library (SPL). Yay! So what else can I say good about this? Variable usage! Well done, PHP has COW so just use variable like here with $file. This is all well +1! — hakre 1 min ago
2
01:28
@Wes abstract protected function getSomething();
that is the so called template (method) pattern
so yes, this is very common. use it wisely, do not over-use it.
user652649
ok
i'm asking about protected ones only
this is a very good point.
you should use protected methods wisely , too
extremely wisely.
@wes
another way to do this is just use private methods and change it to protected when needed (if at all)
user652649
yes because internally you could avoid lot of methods, referring directly to fields, but only because if you are going to extend a class you have to know how the class works. publicly instead i use to not have any public field at all, but it's just because php doesn't support getters/setters yet
user652649
are you sure that i can make a private method protected :|
user652649
i think only protected ones can be made public, but privates are private, they cannot be extended, only overwritten
01:42
private is only on the same class in PHP
so if you extend, private is not reachable any longer.
in case you extend and you need private reachable you need to turn it into protected.
user652649
yup but you said
user652649
> another way to do this is just use private methods and change it to protected when needed (if at all)
this is backwards compatible.
Day 97 of the Stack Overflow Marathon. Losing faith in the tag. Starting to lose sanity staring at the sea of horrible questions in the cv-pls backlog.
@Hiroto you just realized that PHP tag is a mess. sad news: we know it already - since long-time :)
@Hiroto: Welcome to the PHP channel. We live with this despite the fact. And we still try to make the best out of it.
user652649
01:44
@hakre ahh i got what you said. you meant change them in the actual class, not while extending a class
The deadly mysql_* appears to be turning its prey into vampires. Nobody has yet caught it on video.
@Wes yes, keep everything as private as possible.
@hakre read what I just said in a David Attenborough voice
user652649
@hakre yes yes, i know :P i'm not that noob!
@Hiroto does that guy have a nice voice? (think so because of your comment)
01:46
@Wes no no no, not noob. this was a lesson learned the hard way for the community
yes, lol
user652649
@hakre when i write my methods they are always private, even the class is always final
@Hiroto fck'ing great voice my dear
@Wes now that's what I call "protected" :)
so @wes, what you pointed with your question on?
user652649
only when i defined everything i make methods public :P
user652649
01:51
i don't know if i should refer to fields that should be defined (not declared) in descending classes, if it's better to force their resolution using the abstract method, or just leave as is, always referring to the actual field (which may be both declared in the abstract class or in the concrete one)
user652649
it's just a cosmetic issue, since visibility is the same
Well I'm not 100% sure if the last chat-line is not a short-cut you try here that leads to merriam-webster.com/dictionary/opportunity (only)
user652649
wut O_O
you raise quite a few good points if I wouldn't be that drunken and in the need of sleep I think I would be able at least to give better feedback to.
user652649
:P:P lol
01:56
you laugh
user652649
ok don't worry, as i said it's just a cosmetic issue :P
lol, I mean stuff like "defined (not declared)" requires pretty decent understanding.
user652649
8D
user652649
i also said, " i'm not that noob "
can you teach me the difference? Just in a couple of words?
@3:58? (with a good amount of red wine in the venes)
user652649
02:01
declared: protected $test;
defined: $this->test = "bla";
user652649
what prize i won?
user652649
define is also: protected $test = "blah";
okay you keep definition as assignment but declaration as the code.
I thinik I can remember that.
user652649
lol
user652649
declaration also defines the scope of the variable, and depending by language, its visibility
02:06
(in case you're puzzled, read the readme ;)) - [lohl]
user652649
lisp? :P
user652649
LOL
user652649
in about 4 hours i'll be at work. idk if i should sleep or not
no idea how young/old you are. sleeping is good btw.
user652649
i'm really messing up my internal clock
user652649
02:08
26
hmm. take a day off today
we call that blue-monday.
works pretty well
user652649
did you just tell me that i'm an old fart?
user652649
:P
no, I told you summer is starting and instead of work do something better
user652649
lol
02:10
and 26 is not old fart
what is old fart anyway?
user652649
an old dude? are you trolling me? :P
rutroll'in me=
hehe
I sure meant in years
26 is not an old fart
user652649
i can still stay on continuously about two days btw, but it's not like being 15 of course :P
even if you double it you don't come close
@Wes lucky bastard you are
:P
user652649
you slept 3 hours yesterday! i wish i could do the same
user652649
02:13
:P
anyway, you should better exhaust more youself like with having sex continuously about two days
^^
user652649
that would be hard to do LOL
before getting up + in the shower + before breakfast + while having breakfast + after having rbeakfast + while having second shower + after breakfast + .. you get the idea
user652649
... especially because i don't have a woman. HA. lol
I mean two days is a long time. I don't say it's wrong if you can, I only say enjoy.
@Wes well you can find one if you want to. and if you don't want to you can find somebody else ;)
user652649
02:18
so aren't programmers married to their IDE? that's an astonishing bomb shell :|
well it sure is that many computer users dream of cyber sex, however like with graphics, real world works a bit better than computers.
Only a slight bit, but still better.
For example smelling and touching. Screw computers for that.
user652649
lol
user652649
why are we talking about this?
user652649
HA. lol
You laught but they are particularly bad with that.
user652649
02:22
i think "cyber sex" is insane... i mean every possible relationship, attempt of human contact (?) is fake if it's "digital"
@ircmaxell - Tuesday!
well, first of all, digital is a very simple computed abstraction.
user652649
tsk, nerds
therefore it is always faked (in the good sense)
user652649
nerdier even analogic is not real enough
02:24
user652649
ying yang
user652649
better doing some protected things. and i'm not talking about sex
user652649
laterz
no, do it private
user652649
:P
02:27
and it's not so much about sex anyway.
I mean sex is fine
but it's just not so much about it :)
probably those little points in ying and yang
are about sex
user652649
are nipples?
user652649
LOL
but the other part is not :)
nipples? why not?
I mean obviously two different kind of nipples... .
user652649
you worked hard on that wine bottle!
user652649
:P
02:31
No, not that hard.
:)
And actually it was not one wine bottle.
user652649
:P i'm lolling a lot
user652649
two wine bottles?
user652649
:P
You know, the pitty is, one of my GFs actually has left the country. So she is really far away.
That can suck a big time.
user652649
"one of my GFs"
02:33
Are you christian and having only one?
user652649
i'm not christian but i'm monogamous
user652649
i guess..
user652649
and you are from?
yes, we all guess until we find out otherwise ;)
I'm so fucking raised roman catholic that I couldn't resist to try elsewhere.
and yes, there is nothing wrong in monotheism unless you're open for the next things "to come"
user652649
where in the world are you? i mean i don't think exists a nation more conservatory than italy about Catholicism
02:41
@Wes are u kidding ? what about vatican? that highly anti-democractic state which has criminal vital statistics beyond good and bad?
user652649
lol, $vatican == $italy
sorry, no. Merkel will buy italy and vatican still has not (yet) started sell-out.
user652649
only our politicians use to sell their bottoms out, not italians
Sure, Vatican will pay the price for accepting Hitler first, but before that Germany will have it's fun play with Italy - just because it can.
I mean, Politics. You have to love it.
Irony of fate: Nationalism does not help (here).
user652649
i like nations that try to keep their cultural identity
02:47
well, don't get irritated by that too much. A Nation must not have anything in common with identity.
On the other hand, a cultural identity can screw a Nation.
user652649
yes, indeed, i meant that i like cultural identities, not "closed" nations
I must admit I don't like nations. t's so constructed. Cultural identity has a lot of value.
It is the collective conciseness, it can not be robbed easily.
However, take care of someone being Insanse and then others adopting that :)
In Germany there is a long tradition of that.
Like hailing of what is insane.
user652649
:( yes, we have the same tradition
Compared with Italy plus the Vatican, it is close to equal but putting on weight, even close to equal, the rule is that Merkel wins.
Which is kinda sad.
But Italy is so much militarily controlled by the US, that they don't have any choice.
user652649
i lost you here, but nvm, i have to sleep :P
02:56
The Italians probably think they will be killed more quickly by US military personnel (officially or secretly) than they could make a decision their own.
E.g. as of today they have more censored places in google maps because of the US than because of their own.
user652649
not all italians, only our politicians, as i said, use to sell their buttocks... we don't like what world thinks about italy, but we are trying to change things
Not that it is actually anybodies else fault.
Yeah, I don't want to stress you in any direction.
Imperialistic states like the US really suck.
There is no resolution like Revolution.
user652649
we're doing it
Let's fight NATO together.
NO NATO
user652649
did you ever hear about "5 stelle", it's a party born on web 30% on last politics elections
03:01
no, but actually I only know one red star and it works pretty well
user652649
lol
has to do with scientific and it's not easy but a lot of hard work :)
user652649
it is going to destroy the old politics lobby that destroyed italy, hopefully
nah, it sounds like it is part of the existing system and eager to jump in for protecting it.
just to show it is worth for getting paid
user652649
no, really no
03:03
but maybe yes?
user652649
no, really no :P
user652649
it's composed by very academic people... mean people that work in cern, mit, nasa
@igorw today posted a vid of donald knuth. he really is an old man, the tattoo of a "mad professior", and he really has a message and another to share. But you should not neglect your own intellect (that is also what he is saying),
user652649
so it can't be they are "infiltrated"
NASA is paid. CERN as well (even if underdogs) MIT is really problematic out of it's own. In german we call the MIT guys "Schleicher"
user652649
03:07
you know that berlusconi was a very friend of geddafi, and italy was the best friend country of lybia, but nato overriden us in a war that we can't even imagine
Actually Libia was invaded because the contracts with TOTAL did end. So say thanks to France.
user652649
yes, nato, france, same thing
Actually NATO is controlled by the US.
That has historical reasons.
user652649
anyway italy's thought never matter
i won't say so.
it would be a little short to put it that way at least.
Same for Germany (or even right now a little bit more)
But from the profits I'd say Itality benefits more from winning the war over Libya than Germany.
user652649
03:13
that's not a good reason to start a war that france wanted
Sure not if you ask me!
And I would have no problem at all if Italy would kick ass of Merkel.
user652649
:P
I mean really.
The Germans are traditionally Dump as Straw.
user652649
will not happen, it's about international finance, going out of europe can only make things worse
High intellect, but when it counts to take action, just waiting.
International finance is the Puppet-Theatre of getting things done.
user652649
03:18
yeah i think a lot of "first world people" are like this. they convince themselves to think what they have is enough
user652649
and a "revolution" is not needed
Sure, first world fears to become obsolete
They work hard to control the rest of the world.
What else should they aim for?
Inventing a new shade of blue?
If we don't stop this, nobody else will stop it.
Not because somebody is evil, just because somebody is evil well doing their job.
user652649
i was saying ordinary people, like us in italy, we should do a proper revolution :P but we afraid of conseguences, so we are convincing ourselves that we already have enough in our life
Well from the german perspective I can only tell you that we excuses ourselves with such reasons to allow Auschwitz.
And that is no other word to describe a killing machine, an apartus of death.
user652649
a revolution that should be pacific of course
03:25
Millions in a short span of some years.
user652649
within ours actual laws
user652649
yeah really sad
More than sad.
It changes your life if you go there.
user652649
i've been there. and it changed me
that's good to know. I don't trust anybody after being there. Especially no German.
user652649
03:28
hitler was a mental, but i should admit that i agree to some of his theories about international finance, that germany tried to defeat in both wwars without success
German never did not denied anything. Especially not in international finance at that time, they played very well that game.
user652649
and now germany is part of that world-polluting system that it was trying to defeat
Defeat? Are you kidding?
user652649
no
user652649
i mean the international finance mechanisms that at any time could kill any country
03:31
oh man, I canÄt hear that any longer.
First of all, well all have a history where we come from.
So on the cultural level, the "finance system" is just a way to calculate pracitcally.
Go to sienna.
Breathe he city.
Visiti the Cathedrals.
Go into the Museums there.
Take a look (or two) at the statues that are collected there.
This is the childhood of capitalism.
You find so much culture at one place you need to look for otherswise.
I mean really, you can take so much for a lifetime just to go to sienna.
And if it's only to drink a cup of coffee at the plaza.
You can literally breeze history there in a short moment of time.
user652649
i don't think so, i think the real capitalism is still there and it has nothing to do with this, with hitler or germany, it's in US and it's is controlled by the same people since 100 years ago
user652649
CEE, europe, euro€, nato, united nations are all their creations
There is no impersonation of evil out there. We control this, and unless we accept, it does not happen. We can even invent machines that do the dirty job for us, but that won't change a thing of who is responsible.
And also it must not mean that he past was all only wrong.
Like I said there is a lot you can learn from and there are a lot of shades between black an white.
Those who try to teach you it's all simple will likely fool you. Even if it is simple, it is hard to achieve. There are no short-cuts.
user652649
no man, what about the huge conflicts of interests like those well known guys that are involved in both bank of europe (actual € printing) and at same time part of some bank in US
user652649
03:47
who can limit them? there is no authority superior of them, they control everything
user652649
the only thing you can do is to start a war, and you will lose it, because they own nearly all the world
user652649
we don't control nothing, they do
user652649
LOHLz
You control them, Actually you can just pull the trigger-
Money is highly effective but also very easy to control.
which proabably is why it is highly effecitve.
And as it does not come out of nozhing., it's easy to control it.
Aaaand that's it.
user652649
LOL you live in a magic magic world!
user652649
03:52
:P
Not at all. You should respect what is made by human instead.
Nothing of this falls out of the sky nor is there "by magic"
user652649
LOL better if we stop this now
user652649
ok? :P
Scientific socialism is the term used by Friedrich Engels to describe the social-political-economic theory first pioneered by Karl Marx. The purported reason why this socialism is "scientific socialism" (as opposed to "utopian socialism") is because its theories are held to an empirical standard, observations are essential to its development, and these can result in changes and/or falsification of elements of the theory. Although Marx denounced "utopian socialism", he never referred to his own ideas as "scientific socialism". Similar methods for analyzing social and economic trends and...
user652649
04:07
> Marge, I agree with you - in theory. In theory, communism works. In theory.
@Wes well, if you admit theroy, you at leas admit lack of that you tried. ;)
And also theory of marxism implies socialism first.
user652649
:P
And I don't say that as an excuse.
The simple things are most often the most complicated to achieve.
04:41
dumbness is every where
@Gordon would you remove edit history of above question it have server database credential
@PeeHaa埽 meeeow?
aargh do people even bother to look over an edit before they approve it?? stackoverflow.com/review/suggested-edits/2056431 why would all 3 people approve that? Yeah, let's turn a bulleted list into a code block and bold some text.
user895378
@Feeds That sounds god-awful.
@crypticツ try rollback :P
user895378
04:58
There's a high likelihood that anyone claiming their PHP app correctly implements representational state transfer doesn't know what he or she is talking about.
user895378
Try responding to an Expect: 100-continue header in your PHP app and let me know how it goes ...
@NullPointer I edited it since there was a lot of grammar mistakes to fix.
any one know how i suppose to answer this ?
@NullPointer there was a meta post on that recently
apparanlty the mods say it's a waste of their time to go through flags of posts already closed so they are marking it as invalid.
-25
Q: Is this a pattern of "Lazy Moderation"?

hakreIf even there is anything like "Lazy Moderation" this sure is not rightly worded by myself. But why are so many of these flags I do on obvious VLQ QA accepted as helpful? I also need to ask the other way round: Why are so few declined? I run over this: I get for many of the flags I raise on VLQ ...

05:12
@NullPointer dafuk?
> Links cannot contain 'localhost' (try a full domain or wrap it in a code block).
pardon ?
Why does it blacklist usage of localhost? I understand markdown will try to make it a link to click, which no one will be able to access, but why can't it ignore making it a link?
user895378
Wait, who hates localhost?
silly markdown ...
@rdlowrey markdown won't let you put http://localhost/
user895378
05:17
whaaaa ... SRSLY OMG?
Again with stupid question...this man I told you stackoverflow.com/questions/16392341/…
also it prevent link only answer but not image only answer
you have to put it in a codeblock so it won't try to linkify it
user895378
You have to do that for all links in chat, right?
user895378
I don't think that's a markdown thing, I think it's how the SO chat gnomes process any http URL.
user895378
05:19
But regardless, OMG MARKDOWN Y U HATE MY LOCALHOST!?!?!!11
0
A: Evidence that codes have racism implemented in them.

NullPointerAn term used for unimportant variables in programming when the programmer is too lazy to think of an actual name. The origin of such word is described in detail in RFC 3092. According to RFC 3092 the terms foo',bar', or `foobar' used as a metasyntactic variable without any proper e...

yey at-least i provided an answer which is not irony
05:35
Is it possible to get the Polymorphism in PHP ?
But in PHP it is not possible because you can have a method that accepts two parameters and call it by passing three parameters (allows variable arguments). This is because PHP is not strict and contains methods like func_num_args() and func_get_arg() to find the number of arguments passed and get a particular parameter.
I read this ...
thats why asked this question
bullshit
it has nothing to do with polymorphism
@rahularyansharma the author also wrote this crap: scriptarticle.com/2012/07/03/…
i do not know how you manage to stumble upon that blog, but stay away from it. It's filled with crap.
05:43
@rahularyansharma check this net.tutsplus.com/tutorials/php/…
@NullPointer i would say that this link too does not incite confidence in me
@rahularyansharma try this amazon.com/PHP-Object-Oriented-Solutions-David-Powers/dp/… instead those crappy blog
@rahularyansharma try this one to grasp the concept: sourcemaking.com/refactoring/…
@tereško Thanks !
user652649
morning
05:55
@Wes morning
user652649
lol the polymorphism article
user652649
isn't the polymorphism the way to access a method using the same signature but with different arguments?
@Wes irony : its only and only method overloading :P (yes)
> One of the grandest sounding words in object jargon is polymorphism. The essence of polymorphsim is that it allows you to avoid writing an explicit conditional when you have objects whose behavior varies depending on their types.
@Wes ^
user652649
yes like function ride(Bike $a){} function ride(Motorbike $a){} in the same class
06:01
@Wes no. more like person.ride(Ridable ride) where ridable can be either a motorbike or a bike
user652649
so polymorphism isn't actually method overloading?
@Wes yes its not
> Polymorphism (which is strictly referring to subtype polymorphism in the context of this article) is not the same as method overloading or method overriding,[
> Polymorphism (which is strictly referring to subtype polymorphism in the context of this article) is not the same as method overloading or method overriding,[1] (which is known instead as ad-hoc polymorphism [2]). Polymorphism is only concerned with the application of specific implementations to an interface or a more generic base class. Method overloading refers to methods that have the same name but different signatures inside the same class.
> Method overriding is where a subclass replaces the implementation of one or more of its parent's methods. Neither method overloading nor method overriding is by itself an implementation of polymorphism.[3]
user652649
crap i have to study more
exec($command, $output, $return_var); is returning 1
@DextOr more likely true
06:05
But it should return 0
exec function here is converting PDF to SWF
but in actuall its not workin
I am working on "flexpaper" php project
version 1.4 is working fine but 2.1 is not converting pdf's
user652649
pdf to swf? why would someone do that? why don't you convert to html instead?
1 hour ago, by NullPointer
user image
would you mind tell me what i am suppose to do ?
@Wes "flexpaper" is PDF file viewer for webpages
it is in flash
06:20
@NullPointer nothing
Good morning
very Good Morning
VSK
VSK
06:40
Good morning
anyone plse answer below question
0
Q: How to parse a table from a html page in php

Rama raju dantuluriI am trying to parse a tabular structured data from a html page.. It has the following structure <table> <tr> <td><a href="url">name</a></td> <td>Lakeside</td> <td>California</td> <td>92040</td> <td>United States</td> <td>Off Road</td> </tr> </table> I am trying this, $...

Don't like mondays -_-'
user652649
user652649
tell me wah
06:58
@VSK why would I answer something with error suppression enabled?

« first day (933 days earlier)      last day (4241 days later) »