« first day (1813 days earlier)      last day (3121 days later) » 
01:00 - 17:0017:00 - 00:00

Abe
1:19 AM
morning (2)
 
There totally needs to be a help site for stupid programming errors, like finding missing semicolons or telling people they need to use isset() when they get an undefined warning...
Of course, I wouldn't bother getting any rep on that site, either... but at least I'd have a place to send people instead of just reporting duplicate questions.
 
 
2 hours later…
 
2 hours later…
5:47 AM
@ircmaxell Yes; I basically closed all tickets.
 
6:23 AM
please give your valuable comments.
 
That awkward moment when you forget your comb at a conference and have to brush your hair with a toothbrush.
 
Morning Jimbo have you finished with your talk at phpnw
 
@AnmolRaghuvanshi Morning man, talk's in about... 4.5 hours :)
 
Ahh all the best.... :)
 
Cheers
 
6:37 AM
Is video will be available to watch after somedays...
 
Yep, not sure when though. Could be a long while yet
 
Will be waiting for it... :)
 
6:53 AM
moin
conf going well @Jimbo ?
 
I could go and register.. or stay in bed...
 
who is keynote @Leigh ?
get a good seat for that, if you go this early ... and your pick of morning cakes, if there is morning cakes ...
 
@NikiC sorry I didn't get back to pong yesterday, I'll just ask the question this time :)
EX_VAR_TO_NUM relies on execute_data, should I initialize a dummy execute data to work with, and if so, how should I do that ?
 
Today is saturday ok
1
Q: A form builder component

Hassan AlthafI would love my component to be reviewed. I am looking forward to responses mainly answering the questions: Is my code violating the SOLID principals? If so, where and how? Does my component contain any flaws? Does my code contain any security issues? Does my code follow the OOP principals? Can...

 
7:12 AM
Not sure about morning cakes. I rolled out of bed and found a half finished beer.
I refuse to waste it
 
hehe
 
hello can someone please help me with this?
2
Q: Laravel URL for retrieving data json

Airam AshiyaGood Day, I am a beginner in android development and laravel. I am creating a mobile-web application. I am using laravel in my Web app and I have this problem on generating the url that I should use when I retrieve json data for my android app. When I run it on localhost (http://localhost:8000/my...

 
7:43 AM
@JoeWatkins How should I register a trait internally? The only way I can determine is to |= the class entry's ce_flags with ZEND_ACC_TRAIT. zend_register_internal_interface just calls do_register_internal_class with ZEND_ACC_INTERFACE, which is not external.
 
register as class and ce_flags |= ZEND_ACC_TRAIT after
(it's a class)
 
Awesome, thanks. Doing good.
 
cool
I'm off out to walk dogs, lata all ...
 
@JoeWatkins It does?!
@rtheunissen I doubt that counts as impersonation ...
 
@NikiC It doesn't count as impersonation, it's just the closest thing there is to taking ownership of the account due to inactivity / squatting (next to asking nicely).
It's a dick move, no doubt. :p
 
8:16 AM
If I wanted to assign a dollar figure for every "product" that is in a column within mysql, then calculate a dollar total based off of if statements is pending, paid, canceled, or rejected how would I go about doing so?
@JoeWatkins
@rtheunissen
 
How to delete all cookes on localhost with PHP?
 
Abe
8:32 AM
user image
8
 
Hahaa xD
 
@levizoesch Could you do something like SUM with a WHERE something something = pending?
Set up something for us to play with in sqlfiddle.com
 
@rtheunissen okay, so I have products. TV, Internet, Phone. These products pay a particular commission. What I am trying to do is sum total the value of each product pay and do if pending then count, if rejected or canceled do not calculate that particular row product value & product count
does that make sense?
table.all_records / col.product, col.description, col.paystatus, col.orderstatus
i want to define a value based off of constant values from the json request, so may have to do it in java ??
 
8:50 AM
No need for Java, it's not a language issue.
Create a schema and attempt to figure it out using sqlfiddle.com - it's more an SQL question than PHP, right?
 
Happy Caturday! \o/
 
9:03 AM
wait, I may have forgotten something
ah @NikiC the problem is that they result in different values for some reason
 
9:41 AM
if you have a little bit of time today, could you reivew a couple of files for me, pretty please @NikiC ... getting bored of getting it wrong ...
or whenever ...
 
9:53 AM
wow
hhvm ini settings can go fuck themselves
Seriously, if the source code binds a setting to Eval.EnableShortTags how the F are you supposed to know that the actual ini setting will be called hhvm.enable_short_tags
Not to mention that they should have just reused the existing short_open_tag flag
Bah
 
10:37 AM
How to do I query the table to select a column then to scrub the values to make validate they're not expired or what ever
lets say I have apple orange grape plum, and i only want to display grape, plum, and apple
how would I do that in a query
with some way of validation?
 
Do you mean something like WHERE name NOT IN ["orange"]?
SQL syntax is probably wrong.
 
would prefer to the other way than NOT IN
and do IF
then predertimed values
 
Why is that?
 
predetermined
I will have dozens of products
 
That makes using IN a good idea.
 
10:41 AM
yea
So how would I do that lol
SELECT products FROM table IN product1, product2, product3 ?
I would only want to display product1,2,3 or what ever I placed within that section of the query
 
I think it's something like SELECT products FROM table WHERE name IN [list, of, things]
 
Take a look at the SQLite docs: sqlite.org/lang_select.html
Expand "expr"
 
so I would do something like IS
IS expr
?
 
Use IN.
 
10:49 AM
$query = "SELECT products
FROM all_records
WHERE products IN [TV 1,
TV 2,
TV 3,
Product 1,
Product 2,
Net 1,
Net 2,
Phone 1,
Phone 2,
MiscProduct1,
MiscProduct2,
MiscProduct3]"
like that right?
 
@rtheunissen
 
rtheunissen can you be kind enough to write that out for me how I need? I am a visual person
 
@levizoesch notice the syntax is (, not [
That diagram is very visual. :p
 
10:51 AM
but I dont understand
select-stmt
,
expr
etc I dont get it. im trying to learn.
 
It's nested, so select-stmt is an entire select statement. Could also be an expression. Separated by a comma.
 
if its put in a example I can understand it better and I can work with it to do it myself
 
In your case, your product names are expr's.
You're very close, change the square brackets to parentheses, ie. [] to () and maybe quote your product names.
 
ok
thx
 
And I think it should be WHERE product.name, not WHERE products
Use those diagrams and figure things out, it's the best way to learn.
@Abe nice, well deserved.
 
10:54 AM
whats the .name ?
does sql know what the .name is ?
 
It should be a column on your product table
 
or do I have to tell it that the name is the value within the products column ?
 
Use .value or .title or whatever your column is called.
 
column is called products
table is called all_records
 
Oh right, then that should work.
Feels like Product should be a table maybe.
 
10:56 AM
$query = "SELECT products
FROM all_records
WHERE products IN ("TV 1",
"TV 2",
"TV 3",
"Product 1",
"Product 2",
"Net 1",
"Net 2",
"Phone 1",
"Phone 2",
"MiscProduct1",
"MiscProduct2",
"MiscProduct3")
I get a syntax on WHERE products IN ("TV 1",
 
Maybe without the quotes. My SQL syntax knowledge is pretty weak.
 
Sat in my chair here at PHPNW about to watch @Andrea's talk
 
Wish I could be there.
 
okay next question
How do I assign a value to each product then calculate that based off of a FIXED percentage PER individual product ?
@rtheunissen
 
Not sure, my SQL isn't very strong. You might want to look at ORM's, or use a framework that might be able to make these kind of things easier for you.
 
11:08 AM
i prefer the hard way :) i learn that way
 
@rtheunissen how would "use ORM" help? Could you please elaborate?
@levizoesch what exactly do you want to calculate?
 
hai guys, $this->db->select("CONCAT_WS(',',".$address." ) AS address"); here iam trying to concatenate three values from DB using comma separator, if i use any other values like / or @ etc its working but comma s not working ? where iam I wrong?
 
@tereško I never said "use ORM". I said "you might want to look at", or use a framework. I was only suggesting tools that tend to make these queries easier to build and use.
 
@rtheunissen how would using a framework help?
 
@tereško An SQL framework? That's like asking how would using a web framework help you build websites.
 
11:21 AM
well .. that IS what I am asking you actually
 
It allows you to build queries and calculations using an abstract API, so that you don't have to fiddle with raw SQL. If you want to learn how to do that, then dont use tools. But if you want to be productive and effective, at least take a look at what might be available that could make your task easier to manage. People have spent many hours crafting nice API's so that you don't have to.
 
@Crysis because that's not how CONCAT_WS works
@rtheunissen you really should stick to java
 
@tereško I'm nowhere near Java.
 
@tereško but this one works? $this->db->select("CONCAT_WS( ' / ', ".$address." ) AS address");
 
can you please define "works"?
 
11:27 AM
that query executes perfectly by concatenating three fields with '/' separator only comma separator not executing.
 
Morninig friends of room 11
 
ThW
Morning
 
evening
 
So instead of working on my project I am setting up my new environment and recovering from my crash :(
 
11:32 AM
@PeeHaa morning (but I think none of us are not friend, because I asked the email name of somebody in here and he told this question is a bad question because we are not friend)
 
noes =[ what happend?
 
@tereško hi
 
@RonniSkansing My dev machine with everything on it crashed beyond repair
 
I am trying to do two things...
 
horrible.. sorry to hear that
 
11:34 AM
I am trying to query my table for products, then assign a $ amount to each item. This value is NOT in my table.
 
Yeah sucks really bad. Have to clone a lot from github, gitlab, old backups. It's a real pita
 
then in another query, I am trying to calculate the first query and multiply it by a 0.00%
two seperate queries
 
multiple by 0?
 
no
5.25%
or 10%
 
How much is lost?
 
11:35 AM
what ever the % im trying to calculate
I have products, and I get paid for each products
I then want to calculate that total pay based off of a percentage and display that as a "pay-out" kind of senario
First query assigns the value of each product, second query gives me a percentage based off of the first query
assigns the $$ value of each product*
 
@levizoesch Are you asking to do basic math?
 
hai guys, $this->db->select("CONCAT_WS(',',".$address." ) AS address"); here iam trying to concatenate three values from DB using comma separator, if i use any other values like / or @ etc its working but comma s not working ? where iam I wrong?
 
not asking how to do math, i am asking how do i do the query
 
@RonniSkansing Not sure exactly yet. Not scary much, but I know I lost some
 
11:38 AM
$ValidPaidCommissionStructure =
'TV 1' => 110, // These are in $ amounts. $00.00
'TV 2' => 110, // each product would be $multipled per unique count. 2 would = $220
'TV 3' => 110,
'Product 1' => 115,
'Product 2' => 125,
'Net 1' => 125,
'Net 2' => 125,
'Phone 1' => 125,
'Phone 2' => 125,
'MiscProduct1' => 125,
'MiscProduct2' => 125,
'MiscProduct3' => 125,
// ... so on and so forth
// Then need to assign a Fixed $ amount to each individualized product.
 
I actually have still no idea what you are talking about, but I probably would have a separate table for those groups
 
@PeeHaa make sense?
ok
 
Tbh no not really :P
 
// I will do my best to try to explain myself.

// I would like to Select ALL rows values in 'products' column, and verify that they correspond with the VALID products below.
// This I know I can acheive by doing...

$query = "SELECT products
FROM all_records
GROUP BY products
ORDER BY ASC";
// The products that may be in the rows (the values) may NOT be valid and or "not qualfied", so we will want to cross check. AKA Sanitize the VALID Prodcuts below :)
// Which I believe can be achieved by doing a similar query to below...

// ##### STEP 1 ######

$ValidateSalesProducts = $query = "SELECT products
FROM all_records
WHERE products
IN (
TV 1,
TV 2,
TV 3,
Product 1,
Product 2,
Net 1,
Net 2,
Phone 1,
Phone 2,
MiscProduct1,
MiscProduct2,
MiscProduct3,
)"
// Need to Query the database on products based off of ValidateSalesProducts Query
// Then need to assign a Fixed $ amount to each individualized product.
// ###### STEP 2 #######
$ValidPaidCommissionStructure =
'TV 1' => 110, // These are in $ amounts. $00.00
'TV 2' => 110, // each product would be $multipled per unique count. 2 would = $220
'TV 3' => 110,
'Product 1' => 115,
'Product 2' => 125,
'Net 1' => 125,
'Net 2' => 125,
'Phone 1' => 125,
'Phone 2' => 125,
'MiscProduct1' => 125,
 
@RonniSkansing Worst part is that I am now on win 10
 
11:41 AM
@PeeHaa So am my on this Surface thing and been for a while
 
@PeeHaa welcoom to surveillance. Did you at least make an offline installation?
 
Vagrant helps alot
 
@tereško
 
@levizoesch what is not working?
 
Step 2
 
11:43 AM
How is it not working?
 
not sure how to setup the query
 
@tereško No I did not. I did find something which helps though
 
the $validpaidcommissionstructure is just a way for me to structure everything in dreamweaver without kicking snytax
 
What query?
rm -rf dreamweaver
 
there isnt one there
 
11:44 AM
@PeeHaa then you have full Cortana integration, even if you disable it
 
@Andrea is a natural. Her talk has been awesome. Pic
 
@levizoesch I get this strong feeling that you are asking us to make a patch for the bad solution of the wrong problem
 
@Fabor cool
I assume you are drunk yet @Fabor
My opcache issues are gone though @RonniSkansing so at least that is a pro of my machine crash
 
Trying to do something like $JSON_output[] = array('product' => $row['product'],
'Price_Per_Product' => $row['$AMOUNTHERE'],
 
11:48 AM
I will salute to a whisky tonight @PeeHaa
In bout 6½ish hours
 
I'm still very much recovering from that :P
 
$query = "SELECT product
FROM main_pins
GROUP BY product
ORDER BY price
DESC";
 
@levizoesch what is your DB structure?
 
order by Price_per_product*
 
ThW
11:49 AM
@Fabor yeah
 
the only tables are products
table all_records
with one column of 'products'
*
 
then there is nothing that I can do
 
in the products colum shows
TV 1,
TV 2,
TV 3,
Product 1,
Product 2,
Net 1,
Net 2,
Phone 1,
Phone 2,
MiscProduct1,
MiscProduct2,
MiscProduct3,
 
that means completely nothing
 
?/
Table = all_records
column = products
within products are those above
 
11:55 AM
you have a badly names table with a single column .. which makes no fucking sense
 
I want to QUERY the products COLUMN, then ASSIGN a $ VALUE to each UNQIUE product. The $ Value would need to have a COLUMN created and assign its name to "PRICE"
that UNQUIE product would need to have the IN statement with it. like this query.
$query = "SELECT products
FROM all_records
WHERE products
IN (
TV 1,
TV 2,
TV 3,
Product 1,
Product 2,
Net 1,
Net 2,
Phone 1,
Phone 2,
MiscProduct1,
MiscProduct2,
MiscProduct3,
)"
Do you understand now @tereško
@RonniSkansing
 
Do you people prefix your CHECK constraints and if yes how do you prefix them?
 
@PeeHaa can you take one last run through what I just posted to see if it makes sense now ?
 
@PeeHaa with is... or check..., depending on the naming style in the rest of DB
 
Looked at it. Still don't get it. Part of that probably comes from the fact you are hitting an XY problem
@tereško Do you camel case them?
 
12:07 PM
I use PascalCase for table/view/procedure names and camelCase for the rest
 
kk
 
I also use unique names for primary keys: the PK in Users table is called userID .. and the FK in Groups table is also called userID ... make it a lot easier to follow from which table the ID comes from
 
@PeeHaa I am def in a XY problem, I am trying to get my examples together so I can post my final question to tie it all together
I only know how to do so by doing in queries to possibly properly explain my END result
of what I am trying to go after
 
@levizoesch could it be that what you want to do is actually get all the entries from a pre-defined groups, with prices adjusted from a different pre-defined list?
 
If I sell 3 products, Apples, Oranges, and Grapes. I ONLY have my products in my table structure. I want to assign a COST to each product that I sell, I want to output that by showing the Product(s) that I sell, plus the PRICE of the product.
I want to assign the Products PRICE within the sql querie
becasue thats the only way I know how to do that
the PRICE & COST are the same thing, sorry
 
12:11 PM
wat ?!
 
I want to assign a PRICE to each product that I sell, i want to output that by showing the product(s) that I sell, plus the PRICE of each product
 
so, you should have to tables: on containing all the products and one containing a registry of all the sales
is that what you are looking for?
 
yes
not tables, columns
 
no, tables
have you actually learned SQL?
 
would I have to do a ON join kind of thing to match them together
er a inner join
 
12:19 PM
@levizoesch yoiu must have a primary key for the table , if yes , then run the query like , "update your_table_name set price='value' where id_product='number'";
 
12:37 PM
Morning's
 
@AnmolRaghuvanshi o/
 
@tereško the name of that input (hidden) must be email?! or it can be anything?
 
@Sajad it should be some common field name
something that a bot would be told to populate
 
I got it, for example "password" is good ?
or "username"
 
1:09 PM
heh
yes
 
I can not use of "email", because I have a input named "email" for getting the real email of user
 
i am working with emoji on php, mysql and ios.
i wan to convert "U+1F601" emoji to like "\u346d\u45d34".
my purpose to set some predefine emoji from admin panel (PHP) and only those display in app.
 
 
1 hour later…
2:34 PM
Anyone able to translate Pavel's reply for me?
 
\(int $x) => $x * $y;
\() => foo()
\($x) => \($y) => \($z)

Yeah, this looks pretty nice.
 
No, not that part.
But I disagree that it's nice.
Yuck.
I think the ^ is better:
 
agree
(on the ^)
 
^(int $x) => $x * $y;
^() => foo()
^($x) => ^($y) => ^($z)
I don't understand this "collides" stuff he's talking about.
 
at least we have precedent for it in obj-c too.
@LeviMorrison Well… in case where we replace {return $expr;} by => $expr in general, we'll have function() => $foo mean implicit use … or don't we?
because, does it only replace the return or also the use() here?
That'd be weird when we have implicit return via =>, but don't want to use the use() import here…
 
2:41 PM
I disabled the old CVBacklog on my server. In case anyone is still using it to fetch data, find a new way plz. Thanks! /cc @crypticツ @hakre
 
Hi, Can someone reply to this query, really stuck on this stackoverflow.com/questions/32922625/…
 
Anonymous
3:04 PM
which one is better for CI? travis or scrutinizer?
 
Anonymous
@Mark less words would be nice
 
@samayo jenkins or GoCD :P
 
@samayo I use both
 
Anonymous
@Gordon It has to be free
 
Anonymous
@tereško why?
 
3:09 PM
@samayo jenkins is free, but you have to host it yourself
 
@samayo both are free
 
@samayo I use travis for running the tests and scrutinizer for analysis of the results
 
GoCD vs Jenkins: highops.com/insights/…
 
Anonymous
I can't host it on my server unfortunately. I am having problems just hosting gitlab itself. Too little resource
 
@samayo scrutinizer is only free for open source projects
 
3:12 PM
@samayo You could always try gogs instead
 
@PeeHaa has gogs become less terrible?
 
@rdlowrey some reminder: you wanted to rewrite the reverse proxy for current Aerys…
 
This Pareidolia_8P guy on reddit…
Just wow.
 
@tereško I don't know. I'm building my own git hosting platform atm :P
 
Anonymous
@PeeHaa Last time I read Gogs was missing some features gitlab/github did have
 
3:13 PM
@samayo Yeah it was certainly lacking the last time I tried it
 
so uh
the talk
it happened.
 
hey @Andrea
 
how did it go?
 
4 hours ago, by Fabor
@Andrea is a natural. Her talk has been awesome. Pic
 
3:15 PM
@NikiC hey!
@Fabor ^^
oh oh oh
I can amuse you with some quotes
.@AndreaFaulds "so there's *another* problem with PHP ... Sigh" #phpnw15
.@AndreaFaulds "does anyone use Emacs?" *silence*
.@AndreaFaulds "that's supposed to be an emoji, but Windows NT 4 doesn't render them...." #phpnw15
.@AndreaFaulds "if you want to be famous in the php community - quit"
"This [php internals] is almost as much fun as you think it is... except its even worse" @sapphicorb #phpnw15
@NikiC but yeah it went great
and I somehow did it within time
 
Congrats :D
 
Looks like some serious success @Andrea =)
 
apparently ^^
 
@Andrea no slides uploaded?
 
@bwoebi working on it
 
3:25 PM
@Andrea And PowerPoint 97 worked great? :-D
 
@bwoebi ofc ;)
 
Congrats Andrea :)
 
@Andrea you got some serious laughter for that? :-D
 
@bwoebi I think maybe one or two people were amused that NT4 lacked emoji support
 
@Andrea you could have installed some font supporting these?
 
3:27 PM
@bwoebi I don't know if NT4 even supports astral planes
 
@Andrea great :)
how was attendance?
 
@Andrea mhm… probably doesn't…
 
ThW
@NikiC the room was full
 
@Andrea (Also… I only knew the name supplementary planes for that...)
 
@bwoebi ah, yes
@NikiC I walked in and it was quite sparse, which worried me. But lots of people appeared last-minute :)
 
Anonymous
3:38 PM
@tereško doesn't scrutinizer also generate test results?
 
@samayo I think it can, but I haven't been exploring it for months
 
@samayo only the paid version I think
 
Anonymous
that makes sense ^
 
Anonymous
I guess the free version, also much use travis to generate those tests results, because I have never paid anything.
 
3:53 PM
tools.ietf.org/html/rfc7540#section-6.5.2 … is HEADER_TABLE_SIZE now actually bounded by any means? What is the appropriate error code when it isn't in the bounds?
 
mus
4:13 PM
hello everyone
 
Sigh… people like this are just saddening: reddit.com/r/PHP/comments/3nahg9/rfc_arrow_functions/cvmse9z
He's essentially saying I reach for attacking his character because I don't have any technical arguments. That's actually all he has done if you read his messages…
 
just quit that discussion.
 
4:29 PM
I have.
 
> Maybe it won't pass because the efforts are just lazy
I don't think he read the mailing list.
It won't pass because Internals is a diverse group of people who all want different things and convincing them to do something is non-trivial…
"We need type declarations" "We should not use auto-use variables" "I don't like the symbol" "I don't like omitting the parenthesi"
Definitely didn't pass because Bob was lazy. Definitely.
 
But I definitely think reusing T_FUNCTION is the wrong choice here.
 
@LeviMorrison Didn't pass because @bwoebi was too attached to the sperm operator :P
 
4:34 PM
@NikiC I strongly doubt using ==> would have brought enough votes to make it pass ^^ … It was maybe one factor, but definitely not the only one.
 
I think it's best for short closures is to not support type info, honestly.
 
@bwoebi Maybe not enough, but at least more. People are shallow like that. Well, at least I am :P
 
Anyway… I'm wondering whether we could compile static self:: calls to a single DO_UCALL (without the FETCH_CLASS + INIT_STATIC_METHOD_CALL) if the method is found at compile time.
@NikiC any thoughts on this? or reasons why it wouldn't be possible?
Also, we maybe should prohibit rebinding of method Closures (which you can get via reflection...) … we already prohibit it for internal class methods, is there any reason why we shouldn't for userland class methods… At least I don't see any actual benefit here...?
 
4:51 PM
@bwoebi yeah, we should do that
 
Allows also optimizing $this-> method calls
 
I'm pretty sure we already assume that self scope cannot be rebound in methods in various places
 
@NikiC with class constants for example, I guess
 
yah
 
okay, then I'll change it to not accept changing scope here
And then there won't be any issue to just assume in methods that scope is compile-time defined.
that may then result in some serious optimization…
 
01:00 - 17:0017:00 - 00:00

« first day (1813 days earlier)      last day (3121 days later) »