« first day (3112 days earlier)      last day (2061 days later) » 
00:00 - 16:0016:00 - 22:00

00:08
Learning about Laravel, and I think the DELETE method is stupid. I guess I can understand why it exists, but it really complicates things. It should really just be a GET method.
 
1 hour later…
01:14
@user3655829 looking at how strlen is done and trying to add something simple like "ord" or "chr" might be an idea
01:51
@Alesana because it's a part of REST: spring.io/understanding/REST
Ah that makes sense then. Another thing I need to learn for this new job
Obviously, I could learn all this when I start.. but I really want to learn as much as I can before I do.
02:08
I will check them out thanks
 
3 hours later…
05:22
@Alesana thats the right thing to do.
05:51
There are two short-length words which will be used to describe "advantage of sth" and "disadvantages of sth". Any idea what are those two words? (they are simillar to "cron" I guess)
exactly 4 chars long?
I guess
gain and lose?
or loss
well, thx, but, emm, not sure if they are what I was looking for ..
I geuss one of them was "props" (although that's a Javascript thing)
06:24
Yo guys.
I have a strange behavior with a symfony form.
My field "Old Password" for a password change is already filled do you know where it could come from ?
shouldnt possible if youre hashing the passwords? Is it a autofill thing?
06:52
Wut ?
Ofc i'm hashing my password
But since its through symfony form it could be unashed I guess
{{ form_widget(account_password_form.oldPassword) }}
Just calling this
$builder
        ->add('oldPassword', PasswordType::class, array(
            'required' => true,
            'always_empty' => false,
            'attr'     => array(
                'placeholder' => 'customer.profile.form.oldPassword'
            )
        ))
And this
:/
is it only prefilled on the second request? always_empty should be true i guess?
07:09
@JoeWatkins pong
ohai
I was just wondering if you had any feedback on the new stuff in parallel, any suggestions and such ...
07:29
anyone having an experience with Microsoft AX to PHP Integration?
07:46
@JoeWatkins is Events essentially the switch over multiple channels?
yes, and futures ...
what is an input representing?
final class parallel\Events\Input {
    /**
    * Shall set input for the given target
    * @throws \parallel\Events\Input\Error\Existence        if input for target already exists
    */
    public function add(string $target, $value) : void;
$value will be written when $target becomes writable, generating an Event with $type == Event::Write and $source == $target ...
ah ok
this should be in docs I guess, the readme is really cluttered now, need to work on docs for a few days after the next release ...
07:51
i think a few examples of different patterns for real world use cases would be the most helpful thing. this is essentally what every goes to curl_multi_exec docs page to, to copy paste the basis of what they need to do :P
i really like the Events class, i am not sure what the Input class is for to be honest, its a bit abstract for me right now.
writing to channels
@JoeWatkins what confuses me that you never pass the channel class to the input
you use it's name
08:40
@Shafizadeh pro & con (singular) or pros & cons (plural)
Morning.
09:10
@Alesana that has nothing to do with laravel
also, DELETE is very useful verb for http requests
same as PUT and PATCH
ormin
gesundheit
paldies
09:32
@Alesana I'm really sorry that you took this path
git mernings
10:21
I am now employable in the US! :tada:
morns
10:46
@rtheunissen Considering how things are with H1Bs over there, is that a good thing? ;)
@Jimbo how do you mean exactly?
I don't need an H1B ;)
I presumed that someone going from not employable in the US to employable in the US would be via a Visa of some sorts
Hi guys
who of you uses php storm ?
all of us use butterflies
@Jimbo of course, unless you have a green card. ;) I don't think I would been able to get close going the visa route.
11:00
I have PHPStorm 2018.1 and want to update to 2019.1, is it possible without losing all of my custom settings and plugins ?
Yes I believe it is @smnstlzr
Could try and find out. ;)
Export your settings first maybe.
I updated it 2 weeks ago? Just download the new version and install it. It will find your stuff
you can install both versions and then delete the older one if its working fine.
Why doesn't it find the 2019.1 version automatically if i search for updates in php storm directly ?
no idea. Probably there are only minor upgrades possible?
i had to download it from the website
11:27
i having a laravel issue pastebin.com/iuQEjZPh can't understand why when i echo $type i get the actual type eg(string or boolean) but when i throw the same $type in to an array and print out later i get Doctrine\DBAL\Types\IntegerType Object ??
@Tpojka aha thx buddy
can anyone help me understand what i am missing?
     $table_doctrine = DB::connection()->getDoctrineSchemaManager()->listTableColumns('attributes');
        foreach ($table_doctrine as $key) {
            $name = $key->getName();
            $type = $key->getType();

            if ($type == 'Integer' || $type == 'Boolean') {
                echo $type.'<br>';
                $attr[$name] = $type;
            }
        }

        echo "<pre>";
        print_r($attr);
11:45
@BobbyAxe its always a object. See the toString() method here: github.com/doctrine/dbal/blob/master/lib/Doctrine/DBAL/Types/…. Echo calls the toString, print_r not.
the method is actually very pretty :3
and also deprecated. Dont echo it. You want to call ->getName
11:58
Good Morning!
@user3655829 thank you, i was really confused.
Read the question, not just the title. — DaveRandom 47 secs ago
do with that as you will
full disclosure, I am pissed off and lashing out at passing twats. otoh they are still twats so I don't feel all that bad about it.
12:14
@DaveRandom why are you pissed off?
@DaveRandom Oh! Do me next!
!!rfcs
12:30
I guess the output from Jeeves is too large and the message is lost
hey @JoeWatkins you around?
@Gordon oh, reasons. Tired and hot and grumpy and surrounded by idiots (or "people" as they are often euphemistically known)
@StatikStasis gee, thanks :-P
@StatikStasis Now, I wonder if he really moved to Turkey or if he was just making that up as well :P //cc @Ekin
12:38
there's almost always a laptop on somewhere in the house and usually has r11 tab open
peehaa is just being lazy using this one :-P
on that note, me goes back to fixing twilio setups so people stahp calling mobile phones of people...
someone deleted all code, which turned out the best thing so it can be written using their new API and not mysqli_free'ing every 2 lines..
It's ironic that one of the arguments presented in the short tags RFC:
> source code may leak if PHP relying on the short open tags is executed on a configuration where this isn't enabled
is pretty much guaranteed to happen now
@pmmaga there should be a fatal exception phase for using the wrong tag. So the people can fix the code before its leaking all over the place. (Wordpress will be first)
@mega6382 little bit, what's up ?
12:53
@user3655829 There will be a deprecated phase. It'll probably help, but I think this will still happen
Whos activating the deprecated log if he knows this change? It will affect the users who wont be aware of that and are just upgrading php like yolo
@pmmaga yeah, because the default changes in 7.4...
if you relied on the default, then all your code are belong to us
I sense a little shit show :|
i wanna run docker run --name=php-fpm php:latest !!!111
completely in production
13:11
@bwoebi I probably should have put more effort into explaining why the current behavior is useless and there's about a one in a million chance of someone using it intentionally. It's obvious to me, but I can see how the abstract examples don't make that clear...
Did you find any code that breaks?
13:25
@smnstlzr you can explicitly export your settings if you want to back them up somewhere. And then you could also re-import that file.
13:42
@JoeWatkins I wanted to ask if you have any good resource that explains Big O notation quite well.
anyone help me with mysql ?
this is my query
SELECT `pf`.`id`, `me`.`id` as `user_id`, `me`.`email`, `me`.`username`, `me`.`name`, `me`.`mobile` as `phone`,
SUM(pf.amount) as p_amount,
@b := if(@rty != pf.extra_field1, @b + ts.amount, @b) as t_amount,
@rty := pf.extra_field1
FROM (SELECT @b :=0 , @rty := 0 )as dummy
CROSS JOIN`transaction_summary` `pf`
LEFT JOIN `users` `me` ON `me`.`id` = `pf`.`user_id`
LEFT JOIN `transaction_summary` `ts` ON `ts`.`id` = `pf`.`extra_field1`
WHERE `pf`.`transaction_type` = 1 GROUP BY `pf`.`user_id`
whats wrong?
ts.amount is my package amount i want to add it single time
but nothing added up
sorry, my chat wasn't refreshed
13:48
=)
the last thing I saw was you saying good morning
@Naruto doesn't it refresh for you automatically?
it should, it didn't, I failed :(
:)
@StatikStasis why do you use "=" instead of a ":", are your eyes really that long? :P
@mega6382 I started using the equals sign for smiley faces back when I played Neverwinter Nights. It just kind of stuck. i.ebayimg.com/images/g/a~AAAOSwWxNY2DdC/s-l300.jpg
13:51
or are yours just that small?
they probably are :D
@StatikStasis makes sense, I guess :P
@irc
@ircmaxell what's the difference between compile {} and unsigned compile {} supposed to be?
@driusan how integer operations are treated
LLVM doesn't have signed types. All types are unsigned. The operation is what is signed or unsigned. So that was the way I figured would be easiest to differentiate between the operations
in that case why is the macro for unsigned compile so much more complicated than the one for compile?
I'm trying to figure out why the compile blocks are going haywire in that MemoryManager/PHP.pre PR that I had closed
oh, nevermind, I just realized it's because the first macro in there references the second one
I thought one was for signed and one for unsigned
user9727963
14:05
Hi all,

I'm trying to figure out how to add a glob or other filtering extension to pull in only .dns files - I'm currently pulling in all the files in a directory.

Here is the directory:

<?php
$dir = "/Users/*/Sites/domain-dns-script/sources/zones/$zone_date/";
$files = array_slice(scandir($dir), 2);
?>
@driusan no, in theory they should be separate
probably you want glob instead of scandir?
user9727963
Hmm, good point - Time to figure out how to incorporate $dir and glob("*.dns") together.
$dir = "/Users/*/Sites/domain-dns-script/sources/zones/$zone_date/{*.dns}";
but im no pro at the glob syntax. $dir = "/Users/*/Sites/domain-dns-script/sources/zones/$zone_date/*.dns"; will probably do as well?
user9727963
14:13
Appreciate the help, didn't seem to work for some reason - Looking into why it's throwing a no such file or directory error.
oh its the / at the beginning
expect youre running that on a very cool setup :D
is Users really located in the root?
user9727963
So with it all living locally, I was able to target that directory and pull in all files within that directory, just having some issues with filtering because I want to be able to pull only the .dns filenames.
14:31
Does anyone know OpenCart, XT-Commerce, Hippo, SiteCore, Lightspeed or CCV Shop?
Wanna add shopware to the list?
Does anyone know if phpunit can expect exception messages with an sprintf based pattern string e.g. 'Unknown text label [%s]'
Remove tabs completely please. That would be a fun discussion.
@Danack I too have wanted this feature.
Regex only as far as I'm aware.
14:43
@NikiC it's hard to write examples for something which makes no sense to write. I mean... What would a concrete example showing how bad it is even look like?
@bwoebi pretty much find any example in the wild.....
@Danack I haven't ever seen an actual example of the left-associativity of ?: ever being used
Except, obviously by mistake, but I don't recall where
Maybe I should check that...
@Trowski Actually you have to start it with <? ... then just follow-up with php and it will work. =)
It would be awesome to have a took that downloads the source for the top composer packages, so it can be easily analyzed
14:48
@StatikStasis the php must be in italics, right?
@NikiC Did you saw the tesla day 2 days ago? They can pull data from their "fleet" to check for upgrades. Nice concept for pulling test data.
@driusan and @user3655829 (and @bwoebi and others) gist.github.com/ircmaxell/5315a31bc12d3ba865142a7f552aae35 is a draft post detailing the high level architecture of the compiler. Going to go into way more detail in another post on the compiler itself, but this focuses on the rest of the architecture
eventually a feature "send analytics data" wouldnt be soooo wrong?
would love feedback before posting on Monday
thanks
14:52
posted on April 24, 2019 by CommitStrip

i will read it today
thanks :)
user9727963
Could anyone assist me on some filetype filtering? jsfiddle.net/nqgo2mwx - Looking to pull in only .dns files instead of all files in the directory as I'm doing now.
@ircmaxell just read the description of the stages, but why use clang instead of directly using llc?
@driusan all clang does is convert an ELF .so into an executable. it's not compiling from LLVMIR
LLVM internally generates the shared object file
I really wish the LLVM api had the ability to do that natively. Feels weird to need to call out to a separate program to do
14:57
then there's a typo (I think?) where you say it converts from LLVM Bytecode into an executable because it sounds like you're just using it as a linker
and my understanding of llc is that it can only create shared object files, you still need clang or gcc to create the executable
@driusan that's good feedback, will update that
@CSSUM glob just works with *.dns
see this paste pastebin.com/ib3uNVFH
I think there is a linker that comes as part of the LLVM suite without clang, but I can't remember what it's called
updated
lld is the linker: lld.llvm.org
dunno if you can call it from the API or not though
I'd be a little surprised if you couldn't
15:01
honestly, after playing with the LLVM-c API for a while, I'm not suprised by missing functionality anymore
@salathe Exactly!
also, I wrote this as a blog post, and almost want to publish as one for visibility. But does this belong committed to the repo so it can change over time?
probably the parts of it that aren't about compiler theory
Paste it as a blog entry and then convert it to md?
the blog entry is important i already got a google card for the last one.
I need something interesting new to listen to while I work. YouTube preferably.
15:06
yeah, I'll split out the parts that are specific to php-compiler as a project and add them to the repo. And point to them from the blog post
Am i missing some piece of the picture where people think that fixing short open tags in their own projects is going to be some herculean task?
@StatikStasis True :-D It's been years since I've seen any PHP code that used <? only.
I'd like to drop <?php from the start of code-only files. Maybe add a .phpc extension? Just thinking out-loud.
@ircmaxell might be worth linking to the list of opcodes in the official documentation when you talk about opcodes
and pointing out that the blocks are (I assume?) flattened at that stage
currently, blocks are never flattened. the reason is I initially wanted the compiler to be a region compiler, where it could JIT a single block if it was hot enough
Hey, i'm trying to use ArrayAccess and getOffset to count how many times i'm accessing an array. So far so good. But if a key in also implements ArrayAccess how can getOffset know about the parent array?
15:14
they must be flattened at some point, at the very least when converting to LLVM IR.
i.e. $variable['hash1']['hash2'] = 1 when doing getOffset how can i get Hash2 to know that hash1 is it's parent
@Trowski =D
@driusan LLVM operates on blocks. So the blocks are only "flattened" when rendering to llvmir. otherwise they are just graph edges
user9727963
@user3655829 Thanks! Looking into this now.
but, I mean, the blocks in their IR don't have hierarchical squigglies, so it's worth pointing out where that conversion happens in the blog post.
"and shutdown will always be called outside of a segfault." .. it took me a couple tries to parse that.
15:20
Hi there!
Does anyone have experience with file uploading via PHP's move_uploaded_file function?
I'm currently a bit stuck on how I should refer to my target folder, should I go from the current location I'm in the project folder right now, or just from the main project folder itself?
might be worth describing how php-compiler uses modules.. is it a direct mapping from php namespaces? Does everything get thrown into one module? does each file go into a different module? etc.
@StatikStasis youtube.com/watch?v=0vPt7GI-2kc and the songs after that.
So essentially I'm only going to be uploading images, so I'm using $target_dir = "../uploads/"; to specify the location of the directory I want all uploaded images to be stored in.
15:24
@NikiC Status on finding a new fastroute maintainer?
I'm just wondering if that's the right reference to location, because the file I'm writing in is located in /Users/myuser/Desktop/ProjectFile/assets/uploads, should I refer to all of that, or just use a relative path?
Never worked with file uploading before so a bit confused. :/
@user3655829 ty- will check out.
@Californium dont use absolute pathes. If you arent sure "where you are" you can always use dirname(FILE) wich gets you to the current file. But getcwd() will return the current working dir.
I think you should lookup "current working dir". That is what youre looking for.
@user3655829 So the path referencing is still the same for file uploads?
That's what I'm the most unsure about right now, whether relative paths work or if I need to specify something else.
yes is only a path
it has nothing todo with uploads
15:28
@user3655829 don't use dirname(__FILE__), use __DIR__... and always use absolute paths, just don't use hard-coded paths.
I'm looking to buy a couple of 4K (or better) monitors. Any recommendations? Not sure if I should go with ultrawide or if that would be too much with a dual monitor setup.
@Trowski make a ring of monitors
@user3655829 I know where I am in my project file, but relative pathing doesn't seem to work. Getting the error that it couldn't find the location.
@Trowski It's never too big in my opinion. Bigger the better. But I also like sitting near the front at the movie theater too.
15:29
or no actually get all ultra wide monitors, but have them portrait
@DaveRandom Sounds dizzying.
@Californium var_dump DIR.'/uploads/' and look where it points now
@DaveRandom My OCD wouldn't allow that. The logo would be sideways.
@LeviMorrison uh ... kind of forgot about it?
@Trowski omg when dell started making the rack mount front plates where the logo pops out so you can turn it round it was one of the best days of my life
15:32
@NikiC Ha, not surprising.
@DaveRandom oh DIR cames with 5.3 ... i work on legacy (where some areas are never ever refactored because of "experts") so i had this in mind.
good god I hope there aren't any <5.3 installations left
@user3655829 string(11) "DIR/uploads is what I got, I hope I understood you correctly.
you may as well just post the root password for the server on twitter
$target = DIR."/uploads";
oh
_ _ DIR _ _
15:33
backtick for code
there are two underscores left and right.... dont code in bold
__DIR__
string(56) "/Users/myuser/Desktop/project/assets/php/uploads"
@DaveRandom Not at our company.... but in the wild. Probably a lot.
15:34
Is what I got now
@user3655829 chat.stackoverflow.com/faq#formatting <-- info about chat's retarded markdown
What does this mean though? Sorry, never worked with var_dump() before
thats the content of the variable
its like echo but can print everything
in a debug manner
Okay wait so what does __ DIR __ stand for?
15:35
current dir of file
@DaveRandom Reminds me of being so happy that the PS3 had a rotating logo.
it's the full path of the directory where the currently executing file is
!!? magic constants
stupid bot
without the bot answer it looks aggressiv
:D
Okay so that's where I'm right now, and I assume I should just go down a step (../) if my file is in /Users/myuser/Desktop/project/assets/uploads/
15:37
yes
Yeah I've tried saying that the $target_dir = "../uploads/";
$path = __DIR__ . '/../uploads';
and with realpath() you can "correct" it.
but works without as well
sometimes
not always though
don't rely on the current working directory
can you create .. files?
15:38
it is often not what you expect
no they are magic virtual directories for tree traversal
you can't create an object named . or .. anywhere on the file system
Now I'm getting ailed to open stream: No such file or directory
Failed to open stream: No such file or directory *
on a sane OS, anyway
you can't open a wildcard
vardump the path again. Is it now pointing to the upload dir?
if you want to open all files in the directory you need to enumerate it
Its a file upload. Where does the * now come from?
15:41
Okay no I see the issue, it's essentially just directly pasting the "../uploads/" section into the __ DIR __
Oh sorry * was just for fixing the typo
oh lol
majorly confusing in this context :-P
Yeah sorry about that xd
could be move_uploaded_file('*',$target) :D
this shoud be a feature
15:42
Okay so it's pointing to string(59) "/Users/user/Desktop/project/assets/php../uploads/"
@user3655829 no, because you shouldn't trust the file name supplied by the client ;-)
one . missing
So it looks like it's just combining the string with __ DIR __ and not actually going down a level
$target_dir = DIR . "../uploads/";
you missed a /
15:43
5 mins ago, by DaveRandom
$path = __DIR__ . '/../uploads';
before ...
I think someone may have relocated this building to the surface of the sun while I wasn't looking
I swear it is at least a billion degrees in this room
/ indicates that you are entering a directory. . is a magic object that refers to the current directory, .. refers to the directory above
Yeah now it points to the right directory, but I'm still getting an error

failed to open stream: Permission denied in /Users/user/Desktop/project/assets/php/upload.php
/foo/./bar == /foo/bar
/foo/../bar == /bar
15:46
Ah gotcha, not used to see /../ typed out along with the rest of the path
no, you don't do it like that generally, you only use it when dynamically building paths
(like now)
Also I'm really confused on why it says that it doesn't have permission to open stream: because the Apache user has gotten both write, execute and read permissions
I see, thanks for clarifying!
@Californium yes that is a little odd
I have to got do school run shizzle
Thanks for all the help though, time to submit a question >.>
Enjoy school!
Pretty sure he's playing the role of "bus driver" and not "student."
15:59
oh..
00:00 - 16:0016:00 - 22:00

« first day (3112 days earlier)      last day (2061 days later) »