« first day (2303 days earlier)      last day (2871 days later) » 

00:08
@LeviMorrison tl;dr Hey, why don't we just use ($x) => $x? I don't see any ambiguity!!!
Speaking of ambiguity, this is ugly, but not ambiguous, correct? |int | float $x| => $x ** 2
@Trowski I think so. I don't see an ambiguity
00:23
It's extra ugly, but shouldn't be ambiguous
Note that even with current syntax the arrow is required: |$x = 1 | 2 | 3 is ambiguous (and |$x = 1 | 2 | => 3 obviously isn't)
@bwoebi So |param| expr isn't even possible?
@Trowski right
I prefer the arrow anyway, but that's interesting to know. That never occurred to me since no one would write code like that.
Anonymous
@Wes yeah that was pretty good :) they wait until the last episode to get it right. Dartmoor is just down the road from me so I'm kinda famous now
@bwoebi good point
00:42
@NikiC not sure if intentional, but you only voted for part 2 :P
what if we want to chain arrow functions that use the binary | operator?
@ScottArciszewski hm?
@FélixGagnon-Grenier thanks
01:01
@ScottArciszewski not in a place I can log in to vote, but prelim yes to sodium, no on syntax
I know we have to start somewhere on the namespacing, but this doesn't feel like the right place :x
@JoeWatkins aww, I wouldn't go that far :)
<a href="QuestionBank.php">Second Level Link</a>
@FélixGagnon-Grenier I hope you have a better comms channel than this :P
@ranger neither of those was meaningful, let alone a question, fix your shit.
How do I include that design inside pastebin link in QuestionBank.php? Whenever I try this method it looks really messed up. This is questionbank.php code pastebin.com/LpW0QyJ4
@Trowski did you ever try and tackle "dangling else", I'd assume this would create a "dangling or" in a similar fashion
pastebin.com/2Ny2P5rz
<a href="QuestionBank.php">Second Level Link</a>
How do I include that design inside pastebin link in QuestionBank.php? Whenever I try this method it looks really messed up. This is questionbank.php code pastebin.com/LpW0QyJ4
sorry
01:08
zzz, bed
Ohh I have a design template php file that has a dropdown that targets to another page. now on that targeted page how do i clude the design template php file so it doesn't mess up the data table that i have in the targeted page
:(
(you have to engage people, make your problem interesting to them :))
really, zzz, night
@Leigh indeed :)
Nn
@FélixGagnon-Grenier sir can you help me out? :(
Mayyyyyybe
Except you'll have to be much clearer on your issue
01:16
Basically I copied a data table template in one php file.
Then I downloaded an admin template
What data table? Ag-grid?
Yes
In like a blank php page
And you want to include that same data table in a non blank PHP template
The"target" of the dropdown
In that admin template it's like a navbar side so there's space on the right with info. there's a dropdown tht will redirect me to that data table page but how will the data table appear on the right without messing the design.
I tried including the admin template on the targeted page with the data table
You'll have to put the data table there with HTML?
I'm not quite sure I get you, what prevents you from not messing the design?
01:20
In the data table page, I tried to include the AdminTemplate. That's what messes it up. The admin template has adropdown that redirects me to my data table page.
Hence recursive inclusion. That can mess design alright
You could make a third template that includes both them at the right place
So basically I want my data table to appear here whenever I clicked on that dropdown prntscr.com/e48w92
I'm so noob with design since they only teach functions in my school then suddenly they want us to use this on a short deadline :(
making the system function wasn't a problem for me but now putting design is killing me
People love design
Can I pastebin two of my php file? the admin and datatable? It's not that long I promise
Can I decide whether or not I look at them ;)
01:27
T_T
I'd say around fifty other people are reading that as of now, if you paste it maybe one will answer :p
I see
but yeah it's just a datatable bootstrap template that i pasted in blank php file
just want that to be included in the dropdown in admintemplate.php and appear on the right side whenever its clicked
:(
Don't be so sad. I'm pretty sure you can figure out HTML enough to place the inclusions at the right place in the markup
I mean, what have you actually done for it to appear on the right side?
@ScottArciszewski Intentional... voting on the important things first!
01:42
@FélixGagnon-Grenier I included admintemplate.php on the very top of datatable.php
@NikiC You forgot $x ==> $x + $y as the followup.
02:08
@NikiC As I expected this is exhausting.
I wish I could just ignore it but I can't in good conscious :/ There might be actually good feedback in there.
 
2 hours later…
 
1 hour later…
05:06
How do I get access to the class map that Composer generates from within my application? I'm trying to find all classes that are under a namespace, and using get_declared_classes() only shows parent classes and not subclasses. However, the subclasses are in Composer class map array.
@crypticツ $classMap = include '/path/to/vendor/composer/autoload_classmap.php';
Phpstorm complains about that being considered bad practice.
tell phpstorm to piss off
"Using value returned by include/include_once and require/require once can be considered as a bad practice. Considered acceptable for template engines, but not as alternative to methods/functions (which can be UTed)." So would I need to unit test it?
So if I do include it like that I get the error: "PHP Fatal error: Class 'Symfony\Component\BrowserKit\Client' not found in ./vendor/symfony/http-kernel/Client.php on line 29" Commenting out that include line the error goes away.
It's accessing the file fine, as I can echo out the namespaces.
05:34
hmmm, so if I put that code before "require __DIR__ . '/../vendor/autoload.php';" it does not cause an error, but if I do it after it does. I don't see how it could be conflicting as it's just a file with an array.
Wow...
> I've always enjoyed the discussions surrounding RFCs written by Nikita, Sara, or Andrea because they're very good about quarantining their own preferences and not being exclusionary towards reasonable alternatives.
Except, you know, the whole reason the thread on Reddit exists is because I took feedback from round 1 and proposed an alternative and solicited feedback on it. It's literally the behavior he's saying I should aspire to.
I'm going to consider just ignoring the rest of the discussion and just vote on it when I'm allowed. I'm not sure it will pass if I do that.
Considering there were some proposals about union types, syntax fn() sounds like a best option IMO
mornin
@brzuchal If anything that's just even more motivation for type aliases or typedefs or something.
05:52
@LeviMorrison To me it seems function (params) => expr or |params| => expr are your best options. fn seems to have a lot of resistance.
@Trowski Everything has a lot of resistance.
I knew this from the beginning.
should've used defun
@LeviMorrison function possibly least of all…
We've not really learned anything in this discussion. It's just re-iterated things we already knew.
Specifically, people don't bother to really read what is proposed, or followups from the authors. I'm really tired of explaining why JS and Hack syntax don't work.
or maybe use # as the delimiting character, really get out there and fucking destroy bc
05:54
@LeviMorrison That's usually how that goes (especially on reddit). Go with what you like best at this point.
@Trowski Happened on the mailing list too, not just Reddit.
This is what I said to @Andrea:
> To actually address what's wrong with your suggestion [of `function`]: there's nothing wrong with the existing closure syntax and semantics right? Right..? So why are we proposing shorter closures at all? It's because they are so verbose.
Characters do matter. Concision is a concern. Adding an extra 6-8 characters that don't need to be there for a feature created because the existing syntax is too verbose is just... ironic.
@LeviMorrison Yeah, I read that. Makes sense.
Like you said, I don't think you're going to get any more valuable feedback at this point… just go with |params| => expr if that's what you'd prefer.
@Trowski I was mostly hoping some rational and sane people would pipe in. There has been a tad bit of that, but it's mostly business as usual :/
06:10
@PeeHaa well fuck, I'll see about finding some time to look into it. Who is managing the current server? It should be logging it's actions.
@LeviMorrison If there's anything to take away from reddit, the posts saying they like the pipes have the most upvotes. :-)
Fatal error: Uncaught TypeError: Exception thrown by test() expected to be an instance of FancyFuckingException, instance of Error thrown in /usr/src/php-src/throws.php:5
Stack trace:
#0 /usr/src/php-src/throws.php(10): test()
#1 {main}
  thrown in /usr/src/php-src/throws.php on line 5
07:01
posted on February 04, 2017

New Cyanide and Happiness Comic

 
1 hour later…
08:27
moin
(also: fuck mail servers)
Mornes, 11!
If anyone came to FOSDEM and wants to meet up let me know
2
08:57
hi people :)
09:13
> You are free to prepare a patch, but your patch will not get merged.
^ Thank you, @NikiC
hahaha
> > Would it not be possible for _both_ to be supported? It would be just an alias
> I would vote for this!!
he'll probably stop reading at "you are free to prepare a patch" ...
guy is broken or something
09:36
moin
@DaveRandom o/
!!lxr rand
[ -MASTER/ext/standard/rand.c#50 ] PHP_FUNCTION(rand)
If you programming on the local xampp with local database, how to switch between working website db? Do you use 2 db-s or maybe are you using external db in xampp? I just ant imagine what if I am working on a new branch on my xampp and how to reconcile db-s
@kelunik now I really want to make that return a random symbol instead of the actual rand() definition
@DaveRandom Please not.
09:46
@kelunik maybe only on Fridays
(joking, obv)
@DaveRandom I'd be fine with that. :P
@Edenwave In what way do you mean? The address/username/password should be a simple config file change
Or are you talking about schema changes?
@JoeWatkins @NikiC Should I duplicate the mt_rand functions in internals for rand to have a separate seed? Changing the signatures isn't possible, because PHP_API, no?
@DaveRandom I mean what if I am making new branch, i want to introduce some new things in a project and I want to add some columns in database for that. Should I upload db from living project, change columns on my local db, and then make same changes on db that works on a server? Can I work only on 1 db and then you know make some "merge"?
@Edenwave MySQL, as ever, does not make life super easy here. Any changes that you make to the schema while developing, you need to keep the DDL statement for in an SQL script (so let's say you add a column, you need to keep the relevant ALTER TABLE in changes.sql), then as part of the deployment process you execute changes.sql on the live database
!!? mysql change management
09:52
Search for "mysql change management" (https://www.google.com/search?q=mysql+change+management&lr=lang_en)
• mysql - Database change management - Stack Overfl… - 23 jun. 2011 - I was wondering if there is any tool which would help me transfer … See also stackov… (http://stackoverflow.com/questions/6458702/database-change-management)
• Sqitch by theory - Sqitch is a database change management application. What makes … Write SQL scripts for mysql . … Ch… (http://sqitch.org/)
• MySQL :: MySQL Workbench: Visual Database Design - To help DBAs and developers with change management, MySQL Workbench
It's also probably worth exploring some of the tools in those hits ^
SQL Server has a thing called "DB Ghost" (and several other similar products) that integrate with Visual Studio and manage a lot of that stuff for you
Jetbrains should really put out a product for that, I would totally use it ^
Thank you guys I will get shower and make some tea and i will research your info :)
Anonymous
@JoeWatkins :D
> No worries Chris

I would write out what I was going to say, but you will lose interest before you've read it and I will lose interest before I've finished writing it so let's just have a 5 minute conversation instead of wasting half an hour writing and not reading.

J.
9
I do like my boss, that is a verbatim email from him
10:08
great, now you're down a desk and five minutes
Wes
Wes
11:00
mornin
morning
11:16
@kelunik I would introduce additional functions (e.g. _ex) that accept an explicit state and forward the existing ones to that
@kelunik Your larger problem will be where to store the additional state
It's currently in BG and that's exported as well. I'm not 100% sure if it's okay to add to the end of that struct
But i think it is
As we control initialization of it
11:34
> Nikita mostly just ignores everything because he understands his preference is better, so it's a bit ironic you mention him specifically as someone who quarantines their own preference.
Ha! True of course :P
hello
can you tell me
is the Zend 3 dependency injection a rocket science?
I am not able to inject
so long time already
and not able to find any good tutorial
is zend 3 peace of big crap?
In laravel 4 it worked very nice
even in symfony 3 I could do it
I am spending nice sunny saturday morning to try to learn and no results :(
and previous few saturday mornings
I became angry because of this
then step away from the computer.
Wes
Wes
@LeviMorrison moar bikeshedding: won't |Int|BigInt $a|=> ruin any chance to get union types in?
@Danack yea, I am stepping away, cuase I want to break the mouse or keyboard
but had those step aways like 3 times already
also it would be ok to do it on zend 2
but when I try to install zend 2
it installs zend 3
when I edited composer.json
to be zend 2 , then I get errors, did not look carefully ,but I was afraid it will take lot of time to fix
I thoguyth DI on zend 3 should not be hard
so continued on zend 3
but maybe I should try to downgrade to zend 2 instead and try to fix those errorrs
or maybe you know a way how to install zend 2
?
hi, i just downloaded xampp and tried to run apache and it said it shutdown unexpectedly, do i need to do anything after the first time i downloaded it or anything?
11:47
@Rachel try maybe native php server
php -S 0.0.0.0:8000
what does that mean
and go to localhost:8000 in browser
so it might be quicker way than to have hard time with hose xamps
this will start a server
i cant have a php server because xampp wont run
it is enought that php would run
@NikiC @bwoebi maybe usefull for one of you guys: rr-project.org
11:49
i just want apache to be running before i try make anything php
oh wait it says its because skype is using the port
ok nevermind i can fix that
hi guys
is that possible to connect xampp with database on www.domain.com?
and work on db from external server, db that is used in living project?
@RachelDockter :) yea, it could show some big message when program has taken a port, cause many people including me have problems with this :)
@staabm seen it, but never tried
12:06
^ same here
Wes
Wes
there are so many rfcs stalling... wiki.php.net/rfc/lexical-anon
12:37
SDFJSDJFPSODJFP'OSDJFP'OJSDP'FOJSHP'SISHDIH
this is NOT a support room for XAMPP
please don't make user names case sensitive.....
@RachelDockter Do what sensible people do. Ditch Skype
skype is good to chat to my friends tho
i just changed the port it uses its fine
it's also one of the least secure messaging platforms
12:42
@NikiC Could you merge github.com/php/php-src/pull/2265/files now?
nobody is gonna try see the messages i post to my friends lol
im not hiding anything
@kelunik is the implementation in good shape ?
oh niki self assigned it for some reason, I guess he's planning on giving it the once over before merging
@JoeWatkins Up to you to decide. IMO yes, but I don't have that much internals knowledge. @NikiC just mentioned spaces being mixed with tabs, I fixed that yesterday evening.
I guess he'll do it this evening, don't want to merge what is assigned to him ...
@JoeWatkins That's why I pinged him ;-)
12:47
"I have nothing to hide" - terrible argument
@kelunik you said:
> kelunik 19 days ago Contributor
I'll add test cases to check that it doesn't allow contravariant return types and modify as needed.
I do not see such tests in that commit? Or are there already tests for that?
Wes
Wes
13:09
@Danack you ok? :B
@Wes registering at docker.com - they changed the username I selected from a capital D to lowercase, and then required the correct case to login.....
Wes
Wes
lol
Anonymous
> you're 20, you don't know what you're doing. You can't make decisions like this
Anonymous
A founders attempt to convince me when I said I didn't want the job.
hehe
13:20
guys im trying to learn php but i dont understand, is it a replacement for html, or javascript
it looks like i can do both in php
Wes
Wes
@JayIsTooCommon at your age any experience is good experience, tbh
it is not a replacement
Wes
Wes
you can always quit if you don't like it
i mean, better than doing nothing
can u make web sites just from php just like u can with html?
like theres no head and body tags and stuff
@RachelDockter is c# a replacement of html?
is asp.net?
13:24
no because they are completly different
Anonymous
@Wes I have a job though, i'm a lead sys admin. This was just another job offering 7k more
then how did you get the impression, that php s a replacement of html?
Anonymous
And I dodged a bullet by the sounds of it
Anonymous
> Fine you carry on being depressed while I sit here on top of tens of millions of pounds
because i have an assignment for school that says i need to make a webpage using php
Anonymous
13:25
Is how he ended the conversation.
Morngins 11
you probably should try finding some tutorial ... or torrent a book and give it a quick read
Anonymous
Moin pie, cryiptogram
im watching a series on php for beggingers and hes coding in php just like javascript
13:26
@RachelDockter php is a server-side language
one of the things it can do is generate HTML, that is sent a response from the webserver
this is so confusing
so can the google homepage be made from php
or would that have to be html
Wes
Wes
@JayIsTooCommon lol
@RachelDockter just to be sure: you are not trolling, right?
no im not i have no idea about php
im alright at html and javascript tho
nodejs/iojs OR just frontend js ?
13:31
i did node js, i just finished making a multiplayer snake game using that and socket io
for my school assignment
but part 2 is to make a website using php where people can sign up to make accounts
do you understand (at a high level) how webservers work?
well for my snake game i ran a server and went on local host with the port number to run it
php seems like that, i have xamp
so if thats a webserver, then kinda yeh
you use your browser to send a request to a server, which tell the server what you want to receive and it sends you back a response with information
usually that information is a document (a css file or html file or maybe some exe file)
13:39
hold on
so i make my website with html, and it gets info from a php file
Wes
Wes
@RachelDockter node js is a platform consisting in server, interpreter and bundle. php is just an interpreter
you make a php file, which generates a html document
Wes
Wes
php could be a server too but it's usually used through other server software, like apache or nginx
i think i kinda understand
13:40
HTML files are just static text, that your browser uses to render the page
@Wes I think you are making it worse
Wes
Wes
lol sorry
so if i was to make facebook, id design it using html and then php gets the users profile and displays it
kind of
<p><?php echp $time; ?></p> is executed using php prepocessor (by webserver) and transformed into <p>2017-02-02 14:43</p>
@RachelDockter the most simplistic way of using PHP is to write code directly in a template and then have that template "compiled" on each request
I'm having trouble updating the address in my DB at always updates to one no matter what
```
<?php
//Connect
require("connect.php");

if (!$con){
die("Connection Failed: " . mysqli_connect_error());
}
$jobID = $_GET["job-id"];
$address = $_GET["address"];
$name = $_GET["name"];
$city = $_GET["city"];
$state = $_GET["state"];
$zipcode = $_GET["zipcode"];
$service = $_GET["service"];
$price = round($_GET["price"] * 100);
$servDate = $_GET["servdate"];
$callDate = $_GET["calldate"];
$phone = $_GET["phone"];
oh that makes more sense
Wes
Wes
13:45
!!uptime
╔═══════════════════════════════════════════════════════════╗
║ [19 hours, 38 minutes and 37 seconds] without an accident ║
║                since [2017-02-03 18:06:25]                ║
╚═══════════════════════════════════════════════════════════╝
@TravisHallet do read about SQL injection
no need for it its offline
Is anyone familiar with making EPP connections in PHP?
o_o
Wes
Wes
13:46
@tereško ehehehe
I gotta provide a cert as part of connection parameters and I'm either giving the wrong cert or I'm completely missing the point
@RachelDockter how much time do you have for creating that homework (for lack of better name)?
Wes
Wes
@TravisHallet it's not about security, but also about data consistency. you don't want your db to be corrupted, right?
about 3 months
i think i get it now, im watching this guide on youtube
so i made a html page asking the users name, it then refers to the php document which outputs a dynamic webpage using the users name that it got from html
im a genius
you should start by making a pure-HTML pages for that project
simply static login page, registration page and some examples with error messages
that probably will takes a day or two
13:51
yeh i can do that easy, i also have to include mysql to store peoples details
is the university providing a mysql server?
no but it doesnt have to be online
just so i can run it from local host
if thats what u mean
I was thinking more about issues that come from having to set up a RDBMS server on your own
i have xampp to run it
if that works
... it might. XAMPP is notoriously flaky. It works for some people and other others it is a nightmare to set up
most of people here prefer using virtual machines instead (but that might be a bit beyond your "pay grade" ATM)
13:54
its what we use in class so id imagine thats what the teacher wants
i never really go to class so thats why i have no idea about php lol
in that case, I'm serious - torrent a book
try finding this one: wrox.com/WileyCDA/WroxTitle/…
a book
i havnt read a book in like 10 years
840 pages!!!
it's a programming book
Guise, halp. PHP, publicly verifiable certs....anyone?
1/3 of it is code, which is usually widely spaced
13:57
._.
also you dont even need to read all of it
ah thats not so bad then
the book is a but older, which means that it will not have the newest features, but this one has the benefit of "not containing bad practices"
ok ill have a look thankyou
torrent it or take it out in university's library

« first day (2303 days earlier)      last day (2871 days later) »