« first day (1073 days earlier)      last day (3880 days later) » 

7:00 AM
yey got meaning less downvote stackoverflow.com/a/18953347/1723893 :)
 
@NullPoiиteя: so sad :(
 
Anonymous
It's probably for the edit
 
 $feed= $this->project_model->detail($id);
         $paid =$this->project_model->total($id);
       $sum= 0;
       foreach ($paid as  $val) {
            $sum += $val->amount;
       }
 
@Simon_eQ : this is my first time.i have one issue in drupal.Can we discuss about that here?
 
i need to generate csv file with $feed and $sum how can i make it right way??
 
Anonymous
7:02 AM
I think so.
 
Anonymous
Check if there is another chat room for drupal
 
where $feed is object stdclass and $sum is just int
 
@Simon_eQ : no there is not room specifically for drupal.
 
@ketanpatel yupp i dont care about rep but it feels bad when you got downvote without any reason
 
@NullPoiиteя : yes.I have experienced this also..
 
7:06 AM
Hi All
 
Anonymous
Well, I know nothing of Drupal.
 
can some one explain to me meaning of this: Thanks for your edit!
This edit will be visible only to you until it is peer reviewed.
 
Anonymous
If you hang out here for a while, you'll find someone who does @ketanpatel
 
who will review?and normally how long it take?
 
@Simon_eQ : ok.thanks for the advice.
 
Anonymous
7:08 AM
@zira You don't have much reputation, therefore someone who does will check it and will have to approve it
 
Anonymous
Post the Q/A you edited here
 
Anonymous
And, we'll review it for you
 
@Simon_eQ thanks for your prompt simon
78
Q: In HTML5, with respect to tables, what replaces cellpadding, cellspacing, valign, and align?

ScottIn Visual Studio, I'm seeing these warnings: Validation (HTML 5): Attribute 'cellpadding' is not a valid attribute of element 'table'. Validation (HTML 5): Attribute 'cellspacing' is not a valid attribute of element 'table'. Validation (HTML 5): Attribute 'valign' is not a valid attribute of el...

 
Anonymous
I don't see your edit
 
my edited is : My issue is, i have 3 table in one page and only 1 table need to have cell padding? Can i use cell padding for certain table inCSS,how?i Have try using table id, but does not work.my code are:

#tableCustom .pad table,tr,td{ padding:10px; }
 
Anonymous
7:11 AM
Which one did you edit? the question or the answer?
 
@Simon_eQ yes, because no one review my edit yet right?
question
 
omrornirngin
 
i cant see the any edit ?
 
Anonymous
Edit it again, because it seems to me like it may have been rejected.
 
Anonymous
@PeeHaa Hello trait hater
 
Anonymous
7:12 AM
or __construct lover
 
@PeeHaa morning
 
@Simon_eQ i have edited again
Thanks for your edit!
This edit will be visible only to you until it is peer reviewed.
 
Anonymous
@zira that is called radical change, NOT edit
 
Anonymous
I could approve it, but it wouldn't be right
 
@Simon_eQ but i click on edit button under question
 
Anonymous
7:15 AM
That does not mean, you can put whatever you want in it.
 
Anonymous
Edit should be made generally if the OP committed spelling/grammar mistakes
 
Anonymous
You have changed almost the nature of the question
 
Anonymous
Therefore, people will become confused in the future, when reading the answer and the different question
 
Anonymous
It seems your edit has been rejected for the second time (not by me, but the community)
 
@PeeHaa hows you ?
 
7:17 AM
@Simon_eQ i see, i thought i can edit the question as long in same topic because before this i hv create new question, then some one charge my question is duplicate
 
Anonymous
@zira Well, if your question is not exactly as the one that is already asked, then you must let everyone know, that you checked the other similar questions/answers but yours is different. That way, your question won't be closed for duplicate
 
Good morning.
 
Anonymous
You can share your question here, if it is NOT the same then we'll re-open it for you @zira
 
Anonymous
@Duikboot morning
 
Horrible, mondays.
 
7:20 AM
@Duikboot : Good Morning..
 
My brain is not yet awake I think.
 
@Simon_eQ ok,thanks for clarify me.
My issue is, i have 3 table in one page and only 1 table need to have cell padding? Can i use cell padding for certain table inCSS,how?i Have try using table id, but does not work.my code are:

#tableCustom .pad table,tr,td{ padding:10px; }
 
I want to say 'goodbye im going home again, im not yet awake enough to do this. '
 
Anonymous
@zira If you give that particular cell, and class name, then yes. You can make a different styles to it. Which including cellpadding
 
but, its applied on all 3 table not for table id=tableCustom only
 
Anonymous
7:25 AM
@zira paste the minimal code here, so we can see it pastebin.com
 
And bam.. we hit the 80k close votes
 
Anonymous
They should change the daily quota, to 80 close votes. :)
 
@DamienOvereem we hit it a few days ago, it keeps fluctuating above and below 80K
 
Anonymous
@zira Ok, I can see the 4 rows, and what style are you trying to apply and to which row?
 
7:32 AM
@Simon_eQ 17313 users have 3k rep so they need to do something else instead increasing close vote limit stackexchange.com/leagues/1/alltime/stackoverflow/…
 
@NullPoiиteя we should make it so that everyone who has 3K+ rep is required to process at least 5 questions a day from the close vote backlog or they lose points =oP
 
@Simon_eQ i want to apply cell padding for table id=tableCustom only
 
Anonymous
@crypticツ sounds like a dictatorship to me :)
 
@crypticツ how much passive rep do I need do keep even?
I've downvoted an answer that I feel is clearly wrong yet it managed to get a +1/-1 score and the guy who I suspect of upvoting has refused to talk. Would someone please review?
 
Anonymous
@zira you ARE applying cell padding for table id=tableCustom only.
 
7:36 AM
as is said before, i have another table in same page.with css code that i sent to you, it will applied on table id=tableCustom and other table also
 
Anonymous
Do the same tables have same id ? @zira
 
@Simon_eQ no
other table i'm not write the table id
 
Anonymous
ok, just a minute
 
@crypticツ :oD
 
Anonymous
7:39 AM
 
Anonymous
Not sure, if I undestood the problem, cause its seems either too simple, or to hard :/
 
@JanDvorak strings can be accessed as arrays
$str = 'abcd'; echo $str[2]; will output c
 
@crypticツ I never said otherwise. Look what the question is asking
The question is "I have a string of bytes. How do I get a string out of that?"
 
Anonymous
@zira did that solve your question?
 
@Simon_eQ yes,it's work.thanks
so the sequence of id and attribute must correct.will remember it.
 
7:43 AM
The answer (as I read it) is "there's no distinction between the two. Just iterate the string like you normally would".
 
@JanDvorak So is OP wanting the ASCII output of those bytes? because they won't get anything printable.
 
@JanDvorak Aaaaaand gone :)
 
@crypticツ I noted that the array of bytes does not represent a printable string
@NullPoiиteя wow, thanks.
 
anytime :)
 
good morning
 
7:45 AM
I thought pendlimarri's's answer was somewhat useful, so I didn't ask for deletion
 
@Gordon very good morning
 
morning
 
good morning
 
What is wrong with the following cmd? "ssh username@test.domain.com" ?
Do I have to use "ssh -uusername@test.domain.com"?
 
on converting a string (eg a blog title) to a format used in user friendly URLs: what's it called? and also is there a reason to avoid using "+" (spaces) in such URLs? As i see most use "-" instead of spaces.
 
7:47 AM
@Duikboot ssh -l username test.domain.com
see ssh --help
although it should work with username@foo as well
 
@Qtax the URL parts are sometimes called "slugs" if that's what you mean
 
I always receive a permission denied. Weird.
 
@Duikboot might be a config issue on the remote end
 
@Duikboot password needed?
 
@Jan, yeah, that seems to be it. Any idea why "+"'s seem to be avoided/replaced with "-"?
 
7:50 AM
@NullPoiиteя sleppy
 
@Qtax marginally more readable, I guess
or appeal to tradition
 
ok. so no real reason?
or techical that is
 
Allright @Gordon and @JanDvorak Lets say it monday I wrote my username wrong '-_-'
o instead of 0
 
@Duikboot 0h
 
7:53 AM
@CvetomirLazarov No thanks. I just had breakfast
 
@PeeHaa Ha-ha :D
 
@JanDvorak BTW Im a big fan of your Dribbble shots!
 
@Duikboot I don't have any Dribble shots that I know of. Did you mean another Jan Dvorak?
 
@Duikboot those are not mine, I'm afraid
 
7:58 AM
Oh :D
 
Dvořák is the second most common surname in Czech republic and I was the seventh Jan being born in that hospital on that day (from what I've heard)
 
Anonymous
Is there a way to specifically get a reason, why a test is skipped in PHPUnit?
 
Monrings
 
Seems that php-src is being snowed under by PR's lol
 
Anonymous
@DaveRandom Jellow
 
8:05 AM
@Simon_eQ An escaped test? Did it run away?
 
Anonymous
skipped
 
moar dashes, you need three
 
Morning
 
@Jack I think kaplan opened the flood gates by getting people to actually deal with them, now people have the impression that people are going to care that they wrote something useful
 
Anonymous
@Jack
 
8:06 AM
yay empty pings
 
the best, they are.
 
@JoeWatkins I don't see a discussion on internals/rfc about your anon classes, seems like one will be required to get that accepted oww wait a load of emails just came through :-P
 
Anonymous
empty ping, is a reminder on whereabouts (progress-wise) of last ping
 
I think the void storage engine should be used for all important things.
Empty pings are annoying.
 
@Dave
posted to internals this morning
 
Anonymous
8:09 AM
4 mins ago, by Simon _eQ
Is there a way to specifically get a reason, why a test is skipped in PHPUnit?
 
<?php
class My {
    class Other {
        class Nested {

        }
        private $test;
    }

    public function pri() {
        return new \My\Other();
    }
}

class Other {
    public $test;
}

var_dump(new \Other());

$my = new My();
var_dump($my->pri());
?>
I have this working ...
another rfc or on top you think ?
 
It's only been one hour ago, give them time :)
 
Merde!
 
Holy nested class.
 
indeed
 
8:10 AM
Morning.
 
@Simon_eQ If it is skipped inline a reason can be added
 
Why the hell has the webhost no PHP running
 
Because it's not web scale?
 
@JoeWatkins I stayed up till 3:30am and I didn't figure the Netbeans<->Nginx problem
 
$this->markTestSkipped('Mah awesome reason');
@Simon_eQ ^
 
8:11 AM
This is horrible,
 
@Duikboot are you still whining about it being monday ?
 
@JoeWatkins That a) needs another RFC and b) will never get accepted. People will just tell you to use namespaces and bikeshed over it. tbh personally I'd probably rather just see visibility modifiers on classes.
 
No im at work for 1,30 hours now so it's over
but Im whining about a host that does not support PHP....
 
visibility modifiers go on top of nested classes to make private classes ...
 
Also, for the record, I'd prefer the anon class constructor args to go after the class rather than the closing bracw
 
8:12 AM
NOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOO It's Monday!
 
Anonymous
@PeeHaa but reason should be given when a test should fail, like assertEquals($oo, true, 'reason here') My questions, is how can you know as to why it is getting skipped?
 
Anonymous
If it sounds like a dumb, question... its only because I am dumb.
 
Skipped tests can also have comments
 
@Dave this is kind of highjacking of namespaces so that you do not have to declare it and so a class can be a namespace of its own ...
 
@Simon_eQ phpunit tells you the reason for skipped tests when in verbose mode
 
8:14 AM
@JoeWatkins Yeh I know, which is fine I just can't see it getting through (I'm not personally averse to it, I just can't see it happening). You might have more chance with namespace-private classes though. I'm supportive of whatever you want to do though, but whatever you do it would need another RFC (for one thing, if you put too much in one RFC, people may reject the whole thing on one tiny point)
 
Anonymous
So, skipped testes are essentially like failed test?
 
@Simon_eQ no
@Simon_eQ a test may just not work in some environments
 
Anonymous
I just don't get it why it should skipped. Instead of showing the good-old Ok/Fail
 
@JoeWatkins ...which is precisely the argument you will see against it, namely "we already have namespaces for that"
 
@Simon_eQ for example a test that requires PHP 5.4, but that won't ever work on 5.3
you just skip, so that you can still ensure all other stuff works on 5.3
or a test that is designed to work on Windows and verify a Windows-specific bug
and then has to be skipped on linux
etc etc
 
8:18 AM
when I have www.green.com with hosting
Can I use then green.com as website but the hosting for that URL from an other package? Maybe my question is a bit weird asked but there are multiple sites running under for example my green.com domain. But only the main one has to support PHP so can I link it too another host wich supports that with a CNAME or something?
 
Anonymous
@Ocramius Oh, so this comparability issue, well its a bit complex in the sense that I don't see any directive, in the code that I am working on that tells PHPUnit to skip a test, should item xx be missing from yy
 
Anonymous
Anyway, I've got a slight of idea now :)
 
@Simon_eQ it's really when the test cannot be run for a particular reason
not "the test will fail"
it just can't work in this particular situation
so you skip to ensure all the rest works
 
@Dave I'm sure people will click on the patch and see that I'm not doing anything new, just providing more options for the old really ... pastebin.com/9Q6iSr3u it's barely even a change on top of anon_classes ...
could also be done in roughly the same way without anon classes ...
I 'unno, saw a way to do something ...
 
Anonymous
@Ocramius Ok, now it is very clear. But, you can only put a custom message saying, that test xx was skipped because of reason "something" Now that "something is just a message you put to tell you, which test has been skipped." But, how do you know, if the test was skipped because of incompatibility issues?
 
8:25 AM
morning
 
I have to fetch a Twitter feed on a non-php host, I wrote kind of 'service' Where I load the latest tweet. The problem is its like blablaal.com/lastTweet.PHP
Then the Twitter Tweet got loaded as a JSON object.
Problem to solve: Skip the php part and receive only the json,.. Is that possible?
 
@JoeWatkins I'm not personally arguing against it. I'd be happy with any mechanism for module private classes (my personal preference would be for namespace-level visibility, it would be tidier from a sauce PoV when you factor in autoloading and consider that at the class level privates could only be instantiated by the class that contains them, but internal classes can work)
 
I am not allowed to change to a PHP host they told me a few minuts ago.
 
Anonymous
@Duikboot I have the same problem
 
Anonymous
I am on a shared hosting
 
8:29 AM
@Simon_eQ I usually put in something like "Windows sucks, and cannot run this crap"
that's explicit enough
 
Anonymous
@Ocramius Hmm, and that is supposed to tell you, if the problem is from Windows/PHP version/ whatever....
 
as for the detailed report, the user is free to remove the skip call and see the failure for himself
@Simon_eQ yep
lemme grab an example
@Simon_eQ github.com/Ocramius/ProxyManager/blob/master/tests/… - this is VERY readable and clear IMO
 
hello
i need a help
in mongodb
 
Fresh out of helps I'm afraid
 
8:32 AM
what is there to afraid ?
is there any mongo special room ?
i searched but cant found
 
Anonymous
@Ocramius Nice. Now, I know why people get lazy for PHPUnit :)
 
My script also made a json object form the tweet as a .txt file
Why is it not possible to load that in JS?
 
Anonymous
Problem now, is the person who wrote the tests did not even include costume messages, let alone precisely check why a test is getting skipped. So, its too much work ahead
 
Tests should generally be pretty readable in and of themselves, can't you just add some messages?
@Duikboot E_VAGUE
 
@Simon_eQ hm?
 
Anonymous
8:37 AM
@DaveRandom They are readable, but I forgot to mention that I hate reading :p
 
@DaveRandom any news on the elephphants ?
 
@Simon_eQ Well, to be brutally honest, you aren't going to get very far if you can't get over that. We can't help you with things where the solution is to read things unless you have read them yourself
 
Anonymous
@Ocramius when I'm testing a pre-made testsuit says, everything is getting skipped, but not why! So, there aren't any reasons specified, which means, I have to re-write the testsuit
 
@DamienOvereem Yeh, ain't gonna happen any time soon. I sent out an email a couple of weeks ago... didn't you get it?
 
Dont believe I did no
bummer though, what happened?
 
8:39 AM
posted on September 23, 2013 by Lorna Mitchell

It's that time of year again, the PHP North West conference is almost upon us, and this year they are once again running a hackathon. These events are a great way either to carve out some time to get your head down and hack on an idea that's been in the back of your mind for a while, but they're also a fabulous way to get involved in collaborating on projects. At PHPNW, you'll find there are

 
@Simon_eQ why? Just re-enable the tests and see the failures
also, those should be markTestIncomplete and not markTestSkipped
 
@DamienOvereem I have some personal issues which mean it's not practical for me to front up the money for it and deal with the distribution. Hopefully I will be able to do it eventually though, or I'm quite happy if someone else wants to take over the management of it (and no, I'm not currently at liberty to expand on "personal issues" although I will explain properly eventually)
 
Sigh, somehow all my chrome passwords have been lost. It still remembers the username but no passwords. Worst of all it isn't asking me to save when I enter them.
 
Morning everypone
 
Anonymous
re-enabling does not ring any bells in this scenario
 
8:44 AM
Morning @Starsong
 
New avatar again
 
The discussion on anon classes has started :D grab your popcorn now!
 
Wow, I already have mine :p
 
Anonymous
I may have mistaken github for hotscripts, because everyone seems to put a plugin, addon or something that advances the usage of PHP. But, rarely a standalone complete php script like, login/registration/fileupload...
 
Anonymous
So, that drives me to a new rant for this month
 
Anonymous
8:54 AM
Guthub Sucks!!
 
@Jack ... bit confused by all this ...
I hate internals ... I don't really think there is actually a need to justify this kind of thing, it's an established part of the kit in other languages, there for good reasons, that stand for PHP ... but if I bring up other languages I'll just kick up a shit storm ... I just wanted to write the code, I don't much care what it is used for ...
 
You just have to break management ;-)
 
niki managed to bring up other languages in his last rfc, he got away with it ... don't think I will, it doesn't normally go down well ... I have a pretty narrow band of expertise when it comes to php as a language, I use it for a limited amount of stuff, because of it's limits ... obvious limits, obvious to everyone ... so why whenever you try to work around any kind of limitation do you have to try and justify it ... I don't use it for any of the stuff other people use it for ...
others are far better qualified to provide a use case, if they are even required ...
 
So far the reactions haven't been that bad; derick typed his email while riding his bicycle it seems.
 
9:05 AM
Hey @Jimbo
 
I still think the question "why do we need this?" is a silly question, that doesn't deserve an answer ... yet I am obliged to answer, and just repeat, and go round in circles ... oh god, I have engaged in internals ... what a stupid thing to do ... I was happy on the fence ...
 
If you know what it is, you would know the why as well :)
 
huh ?
oh you mean it's a misunderstanding of what it does ??
 
No, it's in response to Derick mostly :) if you need to explain the why, then maybe the concept itself is not clear? dunno.
It's clear to me.
 
I think RFCs are the coolest nerd thing I want to do. I feel like it's some sort of dark-deep-dirty fetish I shouldn't tell my wife about.
2
 
9:07 AM
lol
0
Q: pages with .php extension redirect to .html

PrinceI m trying to redirect all pages with extension .php to .html with the following code: Options +FollowSymLinks RewriteEngine On RewriteRule ^(.*)\.php$ /rules/$1.html [R=301,L] RewriteRule ^([^\.]+)\.html$ /rules/$1.php [NC,L] but got an error "This webpage has a redirect loop" need help o...

@sem you still alive?
Does anybody know whether you get tag rep retroactively when retagging a question?
 
@PeeHaa This meta question talks about it. This might be outdated thought, I couldn't find anything more recent
 
@Touki did you see any more of our friend?
 
@Gordon No! Not within these last 5 days at least
 
@Touki good. thanks :)
 
Did you ?
 
9:20 AM
@Touki ah great tnx
 
@Touki nope.
 
@Gordon Well, it was not hopeless afterall. Looks like he finally gave up.
 
yeah
 
Damn I think I am going to badge whore soon. I want to generalist badge
 
i neee a PHP freelancer
is there any ?
 
9:27 AM
@makashtekar For what kind of job?
 
@makashtekar None.
 
Yes :P Many
 
@makashtekar you are from India, so you're likely looking for an Indian PHP Freelancer because a westerner will charge according to their cost of living which likely makes them uninteresting to you
 
oh @salathe is back. how was the digging?
 
9:29 AM
@Gordon amazing, as always :D
 
€25/hr+ will interest me @Gordon, I'm not picky. :P
 
@Gordon yes obvsly i will find indian developer
 
@Starsong then you're either rich or a student or cant calculate ;)
 
@Gordon Go with the third, as the first & second aren't true. :P
 
@mek try odesk.com
 
9:32 AM
@Gordon okay
 
@Starsong :o
 
@Gordon To be fair, PHP is far from my best language and I'd consider myself to still be a 'student' to some degree.
 
Why are there all those stupid tags in the top 40 :(
 
@DaveRandom I would not dare to continue on about personal matters. This is the internet for christ sakes.. Personal matters don't belong here..
@DaveRandom will wait patiently
 
9:36 AM
@DamienOvereem Patience doesn't belong here either :-P
 
true that :)
 
@DaveRandom Do you use 123-reg then?
 
@Fabien I do, why?
 
You pay for a mailbox or free with domain?
 
help me out ... good reasons to use an anonymous class over a named one that apply generally ...
?
wish I'd got someone else to do the human interaction part ...
 
9:42 AM
@Fabien I don't use their mailbox, I use a wildcard forward to gmail (which is free with the domain)
 
I got when a class does not require documentation, and when a class is used once during execution ... any other ideas ?
 
@DaveRandom How did you set that up?
 
@JoeWatkins wait, you've invented something and don't know for what?
 
@Fabien Control panel home -> manage email -> create -> forward -> put * in the email box, your gmail address in the forward to box -> save and exit
 
They say * is invalid now.
 
9:48 AM
@AlmaDoMundo apparently it's not obvious, and so I've invented something with an obvious purpose and yet am being forced to explain it ... I don't know what it is that these people want to hear ...
 
You did click "forward" and not "mailbox", right?
 
Negative sir :(
 
@MadaraUchiha set it up last night, I can't believe they've randomly disallowed it since then...
 
@JoeWatkins well, it seems interesting. I will gladly hear your goals - so why this feature is needed. And, may be, will be able to suggest my ideas
 
@Fabien Works for me
 
9:52 AM
@MadaraUchiha I wasn't using 'forward' :(
 
well look, nothing is needed, that's a silly question ... once php worked, nothing else was needed, it's just a question of which direction do we want to take php in, if any at all ... the answer is unclear ... personally, I'd just like it to progress in a familiar way, with nested and anonymous classes and eventually access modifiers on nested classes
 
@JoeWatkins now I see why closures as there are now (functions) are useful. Why anonymous classes are useful? What is main difference from anonymous functions? (i.e. how they could do something that existing closures can not? Or may be simplify that issues?)
 
@Fabien I hope you entered @DaveRandom's referral code so that he gets a virtual pound!
 
hello
 
@MadaraUchiha heh I have had the domains a long while :)
 
9:57 AM
Ah
 
an anonymous function in php isn't actually an anonymous function, for some reason its an object, only one that cannot actually use any part of OO
 
how many sha256 hashs are possible? is it (10+26)^256 ?
 

« first day (1073 days earlier)      last day (3880 days later) »