« first day (1872 days earlier)      last day (3076 days later) » 

8:00 PM
"all over the place" means in "all of it is in here"?
 
@divHelper11 Remove everything and just look at the error you are getting
 
@Shafizadeh no the "scattered" is just left out from "scattered all over the place" ... as in question looks like aftermath of explosion in book factory
 
ahahaha
 
> Could not find package laravel/laravel with version 4.2.17
That is the only useful thing in your question imo
 
8:02 PM
@tereško ah I see!!
 
yea but i downloaded it
 
Are you downoading from github or packagist or somethign else?
 
packagist command
i took command from packagist website and typed it into my cmd
 
Looks like they never properly released that version
No idea what the release schema is for laravel, but it looks like magic eight ball generated
 
damn I have some project at work i tried to check its version by "php artisan --version" adn it shows me 4.2.17
wanted to make my own project on the same version ;/
 
8:07 PM
btw, @Shafizadeh , did you get the audiobook?
 
Well you could either get a proper releases version in the same patch version (assuming it uses semver and doesn't have security issues). Or download the exact version manually.
People were able to download and use software before composer you know
 
@tereško My friend downloaded it for me, Now it is on my friend laptop. I will go next to him and give him a external-hard for coping it.
 
you need to buy a USB flash
those are cheap as dirt (at least the sub-16GB ones)
 
@PeeHaa Well, I am new to composer and all this stuff. Trying to make this work I wanna to start coding finally :X
I am installing laravel and composer for 6 days now wahaha
 
@divHelper11 AFAIK you can checkout specific commits using composer
 
8:11 PM
 
My guess is that ^^ would be the last of the commit
 
@tereško Yes I have one of them (8GB - transcend). We call them "flash"
 
Note: laravel overrides the heck out of the composer installation process because ¯_(ツ)_/¯
 
eveyone calls them "flash"
 
may want to not blame composer ;-)
 
8:12 PM
but it is containing some virus and I can't use it.
@tereško oh really? ok
 
@Ocramius Why does that not surprise me
 
@PeeHaa ¯_(ツ)_/¯
magic
 
@Shafizadeh formatting the device usually helps with getting rid of viruses
 
Didn't he also abuse the vendor directory for self generated stuff or something stupid?
I think I remember something like that. Could be wrong though
 
I remember somebody calling him hitler in a response to a breaking change involving the vendor folder
 
8:15 PM
@tereško I formatted it several times. but it wasn't (or weren't) helpful. That virus is really shitty.
 
@divHelper11 is there any specific reason why you can't just use the latest 4.2.x verison?
@Shafizadeh you you have some linux live CD (even ubuntu would do)
 
@RonniSkansing That made searching easier
Mar 24 at 20:35, by Ronni Skansing
`Bilge commented on cfa7fcb 9 hours ago
@taylorotwell is adolf hitler and @GrahamCampbell is his sycophant!`
 
@tereško Well, I am using 4.2.17 at work so wanted to train my own projects on the same ones. But i guess they will be similar? Laravel5 was hard to config for me
 
19
Q: How do I clear everything (data, viruses) from a thumbdrive?

Martin UedingSay I used some thumbdrive on a public Windows computer and I copy some data to my Ubuntu computer with it. I cannot be completely sure that the Windows computer was clean, and it might have put something onto my thumbdrive. Is there a way to erase everything on a USB-Stick, even MBR viruses and ...

 
heh @PeeHaa
 
8:17 PM
@tereško alright. tnx :-)
 
@divHelper11 Combine stackoverflow.com/questions/14256563/… with the commit I linked
 
again, stackexchange is really extensive!! everything I want is there ...!
 
@divHelper11 you should train on the latest 4.2.x version AND the company you work for should also upgrade to the latest
it probably contains several security fixes
 
@tereško Laravel doesn't always follow semver...which makes upgrading be a bit exciting sometimes.
 
@Danack oh, my bad ... for once I just assume that something is not made by bunch of idiots and of course it backfires
 
8:19 PM
6 mins ago, by PeeHaa
@Ocramius Why does that not surprise me
 
18 hours ago, by Danack
Does anyone know a theme/plugin for bootstrap to make the forms not look like something designed for a three year old?
Or am I going to have to touch some CSS?
 
I always just pick a theme from bootswatch
Not sure if it helps you
 
@Danack never directly =)
 
Damn i made it start downloading finally by replacing 4.2.17 with 4.2.* in my command line
 
8:25 PM
What did you got? .11?
 
but what the hell is this crap XD
 
Dependencies
 
Seriously i am probably too stupid for this
 
@divHelper11 have you set your PC to work with github?
 
I dont know, it probably means no xD
 
8:27 PM
@divHelper11 you've made too many api requests to github anonymously. You either need to wait a bit, or allow composer to 'login' to github to get an oauth token.
 
When I open my notification (inbox) window in SO, It takes some times for downloading my new messages. but when I open it a few tome next, it doesn't send a new request and all my message shows to me quickly. Now I want to know, they (my message) stories where?
 
I'm actually not sure how you managed to get composer to not ask you to get that oauth token already.
 
/me completely missed that error
 
@Shafizadeh the message list is pulled from server using ajax (probably some JSON file) and if you request that same JSON file multiple times, browser just retrieves it from the cache
 
@tereško ah, but cache in where? my local system or SO's server?
localstorage or sessionstorage? or php session?
 
8:31 PM
@Shafizadeh neither. Your web browser just caches stuff on your computer.
same way as the avatar image in the chat is not repeatedly downloaded for every new message
 
@tereško ow, so it is. ok tnx :-)
 
@JoeWatkins yes you are
and lol
the super cheap way to thank the contributors :D
 
@JoeWatkins So much 11 :)
 
Hey PHP'ers,

Could someone have a look at this?

http://stackoverflow.com/questions/34029479/ssh-crontab-returning-fetch-object-on-a-non-object

I'm not sure how to fix this error. It's working fine but yet returns an error
 
Guyz I have installed successfully laravel 4.2.11 and "php artisan --version" shows me 4.2.17
this must be some kind of mistake then :D
 
lol
 
I wanted an elephpant :(
 
@JoeWatkins Nah, they thanked Super Joe and his mild mannered secret identity, krakjoe
 
8:39 PM
Damn i feel so pro now lets get to config haha
thank you all!
 
@PeeHaa you went to the deep end of the intarwebs to find that, didn't you
 
@Machavity it's Krak Joe
 
yes. yes I did
 
I have an IP, how can I understand it is from which country?
 
Damn, I'm so good
 
8:41 PM
google "ip location lookup"
 
I optimized this code to be four times as slow and produce a wrong result
6
 
@tereško tnx pal :-)
 
@NikiC So you reinvented Java?
3
 
@Sara ping?
 
@NikiC what did you try? :-D
 
8:44 PM
@NikiC congrats, enjoy your /Zend commit access!
 
@NikiC progress!
 
What qualifies you as pro php developer?
 
You get paid for the job
 
Boom! ^^^
 
8:48 PM
@bwoebi Converting CV to TMP
 
I mean I am kinda serious to know.. :)
 
Me too
> pro1
prəʊ/Submit
nouninformal
1.
a professional, especially in sport.
"a tennis pro"
2.
a prostitute.
adjective
1.
(of a person or an event) professional.
"a pro golfer"
So unless you are talking about a php whore it is in fact somebody who gets paid for developing in php
 
@NikiC why?
After all, it's an useful optimization as we don't need to check for UNDEF with TMPs for example?
 
So I should put it this way.. what are the qualities of advanced php developer? @PeeHaa
or what defines advaned php developer
 
@bwoebi We don't need to check for UNDEF and REF. However we have to check REFCOUNTED instead.
The main point however is that this allows us to drop the ASSIGNs
Furthermore CV cleanup has high mispred rates, might be good to reduce number of CVs, maybe
 
8:53 PM
@NikiC I guess the mispredictions are in the type switches?
 
@bwoebi in the refcounted check
At least I remember it being so
 
Also, how does this allow us to drop the assigns… references…?
 
@whatever That is harder to answer, because the "title" will be relative to whoever you ask
 
@NikiC we theoretically could figure out at compile time whether a variable will be a reference… except in case when extract(EXTR_REFS) is used
 
So what is your experience?
@PeeHaa
 
8:59 PM
Hi, everyone! I'm having an interesting issue with a web form with a single text input field and the capability to upload multiple attachments. Here is a link to my question: stackoverflow.com/questions/34025211/…. I am yet to receive any answers so any help would be much appreciated! Thanks!
 
@NikiC Also, not sure how this allows us to drop the assigns?
though, would be nice ;-)
 
@whatever you should strive more to be agnostic than being an "advanced Php developer"
 
@RecursionIsSexy That is not a good question for StackOverflow. You need to debug your code to isolate the problem. If after isolating the problem, there is still a question to ask, then that single point might make a question fit for SO, but no-one wants to do debug your code for you.
 
@Danack Understood. I explained what the issue was to describe the behavior and the result like many SO questions. But I suppose I'll just have to continue to try to figure it out
 
@iroegbu .. this rather abstract answer but I will take it.. and this is my current trategy too..
 
9:04 PM
@whatever haha. Recursion is always sexy. Except in rare cases....when it's not
 
@whatever Tbh I don't listen to people saying I am x experienced developer. I just ask for a github link instead so I can find out myself
 
Yes that is right @PeeHaa.. i am new to php and just wanted to know what approches should I take to be the one to have github link.. :)
 
~0 = ADD x, y
ASSIGN $a, ~0
RETURN $a
// to
~0 = ADD x, y
RETURN ~0
@bwoebi ^
 
@RecursionIsSexy .. I think everything is sexy.. nothing is useless..
 
Expected response code 250 but got code "", with message "" ... THANKS SWIFTMAILER
 
9:07 PM
@whatever Just build stuff. And keep building stuff is what I would do
@Charles That is odd
 
Whitespace is an esoteric programming language developed by Edwin Brady and Chris Morris at the University of Durham (also developers of the Kaya and Idris programming languages). It was released on 1 April 2003 (April Fool's Day). Its name is a reference to whitespace characters. Unlike most programming languages, which ignore or assign little meaning to most whitespace characters, the Whitespace interpreter ignores any non-whitespace characters. Only spaces, tabs and linefeeds have meaning. An interesting consequence of this property is that a Whitespace program can easily be contained within...
enjoy.
 
You sure that it is swift's fault here?
 
Okay... I am working on my website.. so that would do I think..
@PeeHaa
 
@PeeHaa Well what I expect is happening is that the call to /usr/sbin/sendmail -bs is failing, but it's just reporting it poorly.
 
@NikiC jup, but then you have to know that $a is not a reference to anything.
 
9:08 PM
That would be a good start yeah. if you can finish it
@Charles You did set the bullshit flag though :P
 
@PeeHaa Yeah, but it's a better option than -t! To hell with sendmail -t, it's almost as useless as php mail() itself.
 
@tereško well, my browser do that automatically? or should I write some code (in .htaccess) for that purpose?
 
yes and no
it has to do with Expires headers
google
 
@NikiC also, functions like get_defined_vars() or compact() then stop working…?
 
@PeeHaa yes.. its live..
 
9:14 PM
@NikiC it's fine for functions without dynamic fcalls where you can be sure what funcs are called, but for the general case, that won't work?
but considering that most functions don't have dynamic fcalls, it should be an optimization for most code…
also, functions only, because $GLOBALS
 
@PeeHaa Fair.
 
$objects = [];
foreach (range(1, 10) as $i) {
    if (0 === $i % 3) {
        $objects[] = [
            new \StdClass(),
            new \StdClass(),
            new \StdClass(),
        ];

        continue;
    }

    $objects[] = new \StdClass();
}

var_dump($objects, array_merge(...$objects));
ok, so how can i make that work? right now it complains unless i also wrap the singular object in an array
i'm probably trying to be too fancy :<
 
@bwoebi Yes. And also that it's not refcounted, if you wish to reuse
 
basically trying to flatten the array
 
@NikiC So, you're going to do some real compile time analysis there?
or is this a patch for optimizer?
 
9:31 PM
@alcohol What version of PHP are you using?
 
5.6.15 or so
it works if i change $objects[] = new \StdClass(); to $objects[] = [new \StdClass()];
cause then everything in the array is an array
and then array_merge wont complain about non array arguments
 
Correct.
 
but it seems a bit dirty
 
But do you always want to recursively flatten arrays?
 
splat the heck out of it?
 
9:33 PM
i always want to flatten this specific array, yes
 
function flatten(...$inputs) {
    foreach ($inputs as $xss) {
        foreach ($xss as $xs) {
            foreach ($xs as $k => $x) {
                yield $k => $x;
            }
        }
    }
}
 
its not that deep though
 
^ I think this breaks down because you don't want to iterate over objects.
Just arrays, right?
 
each element in my array is obj || obj[]
 
@DaveyShafik pong?
 
9:35 PM
@LeviMorrison use $csrf next time!
 
@FlorianMargaine Hmm?
 
@LeviMorrison a bad joke related to $xss.
 
Oh, gotcha.
@alcohol Well…
<?php

class RecursiveArrayOnlyIterator extends RecursiveArrayIterator {
    public function hasChildren() {
        return is_array($this->current());
    }
}

$objects = [];
foreach (range(1, 10) as $i) {
    if (0 === $i % 3) {
        $objects[] = [
            new \StdClass(),
            new \StdClass(),
            new \StdClass(),
        ];

        continue;
    }

    $objects[] = new \StdClass();
}


var_dump(iterator_to_array(new RecursiveIteratorIterator(new RecursiveArrayOnlyIterator($objects))));
:shrug: whether that is cleaner is up to you.
 
@bwoebi we already have a lot of analysis from the jit project. I'm using that
 
@NikiC great… just wondering… is this going to be optimizer-only?
 
9:48 PM
^ However I use Nginx and I doesn't have .htaccess file.
 
@bwoebi for now I'm working in optimizer
 
does anyone have a picture of a elephpant taken from the front?
 
@NikiC no rush, but what can I do to get github.com/php/php-src/pull/1494 into 7.1 ?
I think I addressed everyones comments etc... RFC passed and all the tests pass
 
10:04 PM
@SeanDuBois Dmitry has to review it
He's @dstogov on github
 
@NikiC thanks for the quick reply! So just mention him on GH (email/irc as well?)
 
@Shafizadeh you need to understand the point of those headers
I never said that you need to actually use them to get that effect, because to some extent the browser already utilizes that functionality
 
@SeanDuBois anyway, before committing, would be nice if you could fix 4 spaces -> tab?
 
is there any chance Php will get a readonly modifier?
 
but, when you start messing with more advanced AJAX functionality later, you will need to know about those headers and know what they can do
 
10:10 PM
@iroegbu Why not just const
 
@bwoebi ACK! Will fix that and squash, my vim setup is supposed to match sibling code
 
because const has to be declared completely during definition
 
@LeviMorrison because const means immutable … not writable by protected/private only.
 
readonly shouldn't be writeable by anything. Otherwise that is a huge misnomer…
 
10:12 PM
@iroegbu maybe… or accessors…
 
@iroegbu never seen that before, who has readonly?
Nothing beats CLOS though with properties, miss that everyday I write PHP
 
@iroegbu Specifically why is that a problem?
 
@LeviMorrison bah, I'm going to use rwrwr_ ... #troll
 
That is nifty!
 
10:14 PM
I want a constant and I don't know the value during definition.
 
@iroegbu When do you know the value?
 
class Foo {
    public readonly $bar;

    function __construct($val) {
        $this->bar = $val * 2;
    }
}
for example
 
i saw that.
 
will be read in other places...
 
10:30 PM
Eh, I would rather expand const.
Think C++ const.
 
void foo(const std::string bar);

std::string baz;
foo((const std::string) baz);
?
:D
 
@LeviMorrison isn't const only usable in C++ for 'constant properties' as it allows multiple constructors. With only a single constructor, you'd have to make it be settable in static factory methods.......
@iroegbu You could just encapsulate the value, 3v4l.org/XY9Sc
 
@Danack proteced
(woohoo, I noticed the typo)
 
@Danack Not sure what you mean.
 
10:36 PM
I ended up doing something along that line... a readonly would have saved you all that though :|
 
@iroegbu and added one more thing to the language, and duplicates what is already possible.
 
@Danack everything duplicates what is already possible with jmp
this argument is a fallacy
syntax sugar is real
 
^^ this
 
I'm not saying we should add readonly, really, and yes, "added one more thing to the language" is bad, so the arguments to add it have to be very good. But saying "duplicates what is already possible" is not a good counter-argument, imho
 
10:39 PM
class Pet {
        public:
                Pet::Pet(char *breed);
                Pet::Pet(char *breed, Pet *ancestor);
        private:
                const char *something_that_must_be_set_in_constructor;
};

Pet::Pet(char *breed) {
    something_that_must_be_set_in_constructor = "from_just_breed";
}

Pet::Pet(char *breed, Pet *ancestor){
    something_that_must_be_set_in_constructor = "from_breed_and_ancestor";
}
@LeviMorrison screw markdown.
 
I still don't get your point about it though.
 
Because C++ allows multiple constructors, you can have a const property that is set only during a constructor, reasonably easily. In PHP, because we don't allow multiple constructors, and instead have static creation methods, the 'const' property would need to be settable inside static methods....but there is no way for PHP to determine whether a particular static method is a creation method, or whether it's just a static method that is operating on arbitrary instances of a class.
 
Bah, I'm going to kill EG(vm_stack_top)…
 
I don't understand why you can't set it in the constructor.
Static methods still have to call constructors.
(Well, ignoring Reflection)
 
@LeviMorrison That's what I mean. You would have to force the setting of that const property to only be done during the constructor (as otherwise it could be set at inappropriate times), and forcing all the creation methods to use a single constructor sounds like a bad idea.
 
10:45 PM
I don't see the problem.
The static method can pass a different value to the constructor than some other static method.
 
@Sara I'd love to get your opinion on how I exposed the server push stuff in ext/curl, to make sure you're happy with it for HHVM :)
@Sara the patch is "done" at this point
 
@DaveyShafik heya! I will get a minimal test case for the cURL leak tonight hopefully
I think the DENY case is leaking (since the trace from valgrind gives me no php-src frames) but we will see
 
@NikiC am I missing anything or is there a * sizeof(zval *) missing after additional_args?
 
@bwoebi where?
 
woops, forgot to paste the link…
 
11:02 PM
@bwoebi vm_stack_top/end are zval*
 
@NikiC ah right… stupid semantics…
well, not stupid, but irritating
I have no problem with zval* + num … but zval*-zval* is confusing the hell out of me <.<
 
very reasonable semantics...
 
yeah, they make some sort of sense, … just always irritating me at first look…
 
11:25 PM
@DaveyShafik Linked from the RFC? I'll take a gander in a bit.
 
6 levels of if nesting… uhm… maybe I should restructure something there…
 
@bwoebi Probably. If not you should maybe break it up into a function or two.
 
That's what I did.
 
11:42 PM
 
11:57 PM
Hello Hellooo :D
 

« first day (1872 days earlier)      last day (3076 days later) »