« first day (1851 days earlier)      last day (3107 days later) » 

12:02 AM
btw does is anyone else seeing google ads be so shite for them? It usually shows completely irrelevant ads......but every now and again I visit a site that obviously has ad tracking on it, and then for the next few weeks I constantly get shown ads from those sites......that I've already visited.
 
Abe
always been like that :P
 
12:14 AM
@Andrea Isn't it just a missing !?
 
12:28 AM
@Andrea I like curry. Especially yellow curry with lots of potatoes.
 
12:45 AM
Anyone know if "Pragma: no-cache" is even theoretically worth setting these days?
 
Abe
@Danack kill it with fire. probably UAs still use it, but only in absence of cache control
 
@rdlowrey I think we should fix that for 1.0 too, I think we shouldn't follow non-redirects with location headers. github.com/amphp/artax/commit/… /cc @bwoebi
 
Abe
@Danack seems only msie prevented that to die earlier. but still msie5-6 era. i would kill it indeed :D
 
Yeah.....all the links that reference it are almost a decade old.
 
Abe
but to be honest i still send it, just because i'm used to do that
getting rid of it... :P
 
1:05 AM
@Sara massaman
mmmmmmm
 
I hate applications that create malformed Excel files!!!!!
(Sorry.... just ranting)
 
1:21 AM
Ahoy hoy
 
Abe
o/
 
1:43 AM
good morninggg
 
@bwoebi I think I should propose union and intersection types at the same time.
 
@LeviMorrison yeah, it's one feature.
 
Abe
2:05 AM
@LeviMorrison no hurry. let's get things done properly, not fast :D i've read "you should propose union types asap before a null rfc appears" but i strongly disagree with that
adding stuff just because we can
 
I'm a fan of writing stand-alone RFCs but I think type expressions that add union and intersection types as well as type aliases would be a good single RFC.
 
Abe
i would also add generics along with that :P
 
as well as type aliases? I'd recommend to do that in a separate RFC though. It's more controversial than the other two parts and probably needs individual discussion.
 
Abe
it's all part of the same big picture, we can't add things without thinking of future features. if union and intersections will be added we must be sure that will work well with stuff like generics, imho
 
@bwoebi From an implementation perspective it is required to not be wasteful.
 
2:11 AM
@LeviMorrison hmmm?
 
(in my opinion)
 
yeah, why?
 
Abe
(will try my best to help though, and already doing)
@LeviMorrison i'm working on generics and unions/intersec right now. it's just the logic implemented in plain php (with a reflection-ish interface). hopefully will help (at least myself) to understand the big picture better
 
@bwoebi If you have the same union defined in 5 places then it's in memory 5 times.
In this case that's guaranteed to be somewhat fragmented.
An alias avoids this.
 
@LeviMorrison It's not like each union type would need 10 KB of memory…
 
2:23 AM
@bwoebi No, but this affects CPU caching, branch prediction, etc.
I'm not saying it's required from a performance perspective, but doing something like this just drives me nuts.
A name for the same type expression should not be controversial.
 
yeah, maybe you're right.
 
Perhaps the only part that would be controversial is keyword to use.
 
use.
use foo | bar as baz;
 
I do not think it should be per file like use.
 
yeah, true, might be confusing in that context…
 
2:24 AM
It should have an entry like a class.
class Iterable = array | Traversable;
interface Iterable = array | Traversable;
Other words just seem completely wrong.
 
you can't implement or instantiate these… no.
 
But type is probably a really high collision word.
Maybe this won't matter with the context sensitive lexer stuff.
 
Yeah, for class names, maybe.
and namespace parts
 
Abe
(okay clearly you couldn't care less. hiding myself under a stone. i'm not going to compete with you though. as you know i don't have the knowledge to start a rfc)
:P
 
@Abe I still don't get why you think generics is so highly related to union types :D
 
Abe
2:31 AM
they are, think about variance..
it's a monumental mess :D
 
Generics are often invariant.
 
Abe
@LeviMorrison if you make unions & inters named, what will you do with "anonymous" ones, like function foo(A|B $x){} ? the name should be based on the types the union contains. an hash
 
@Abe I don't think it needs a name.
 
Abe
ie, how will you check that A|B === NamedOne
 
(defparameter *k* 8987551787)
(defun coulomb-repulsion
    (q1 q2 r)
    (/
        (* k
            (* q1 q2))
        (* r r)))
look good?
 
2:38 AM
maths with operator-prefix notation is weird to read :-D
 
:-)
 
@Abe ? Why would I ever need to do that?
Inheritance?
 
Why is that when I print a pdf in my print button in php html. The layout button for landspace and portrait hides in printing?
 
Probably trigger autoloading.
 
Like when I click Ctrl + P the layout button hides
 
2:42 AM
internally you need an identifier (canonical) to prove that, but you don't need to only bind by that identifier. The name is used externally
 
Abe
@LeviMorrison for several reasons, if anonymous unions/inters will exist, you will want to compare them to named ones, eventually
 
@Abe Only case I can think of is inheritance.
To be honest, how would you compare int|float and float|int for that same purpose?
 
Using $ behind a variable is not necessarily in php7?
9 hours ago, by PeeHaa
int age = 25;
cout << "age = " << age << '\n'; // more efficient
cout << "age = " << age << "\n";
 
Abe
int|(int|float) - float|(int|float)
remove nested | and &
int|int|float - float|int|float
remove duplicates
int|float float|int
sort by name
float|int float|int
this is what i'm doing, and i'm generating an hash out of that. works so far :P
 
There must be a Layout- portrait/landscape button here.. imgur.com/IjYQoLK
 
2:47 AM
@LeviMorrison I could consider them the same, since they are transposable
 
Abe
^
 
@Abe you need to do more than just remove nested, you need a cononical representation, normalizing & and | to a single rule-based representation
 
Abe
yes @ircmaxell do you have any suggestions?
 
deMorgan's laws
you need an internal notion of negation
 
Abe
checking but i doubt i will understand this :D
 
2:51 AM
A | B === ~(~A & ~B)
 
Abe
@ircmaxell will show you the code once i finished it, hopefully soon. currently i'm just doing some normalization, like sorting the hashes of the types contained in the union
for some reason i thought that would've been enough
 
@Abe Hashes won't be good enough.
 
A & B === ~(~A | ~B)
those two are DeMorgan's laws
 
Or rather, hashes alone wouldn't be good enough.
 
Abe
what i was trying to understand is... it is possible for a type to appear twice in a boolean expression?
 
2:54 AM
@Abe int|int?
You mean?
 
Abe
why would one have & A and | A in the same expression
 
@Levi hashes won't help at all, as we expect to normally always pass the check… hashes are just fine to recognize some failures, but can't determine success.
 
@Abe yes
 
Abe
@ircmaxell example?
 
(int | Foo) & (int | Bar)
 
Abe
2:56 AM
without considering the obvious duplicates like int|int
 
@Abe you'd have (A & (B | C)) in an expression
 
yes, that's reducable to int | (Foo & Bar)
though in general you can't
 
Abe
@ircmaxell that's what i meant, i would just check that "int" appears only once, otherwise it's "an error"
because clearly you can write it in a way that int appears only once
 
I'm a bit annoyed about inheritance in PHP, because we don't know ahead of time what classes exactly the union will have
 
@Abe yes, but I am not sure you can do that in general...
 
2:58 AM
hence we need to go over the inheritance chain of every class at runtime…
 
Honestly, I was planning on exact matches initially.
 
(A | (B & C)) & (B | (A & C))
 
@LeviMorrison well, you can't make union types less powerful than what we already have…
 
Not sure what you mean?
 
Abe
@ircmaxell yeah my normalization isn't going to work reasonably enough
will ping you once i finished the mess i'm writing :P
 
3:02 AM
1
A: normalize boolean expression for caching reasons. is there a more efficient way than truth tables?

mcdowellaA general and efficient algorithm to determine whether a query is equivalent to "False" could be used to solve NP-complete problems efficiently, so you are unlikely to find one. You could try transforming your queries into a canonical form. Because of the above, there will be always be queries t...

In Boolean logic, a formula is in conjunctive normal form (CNF) or clausal normal form if it is a conjunction of clauses, where a clause is a disjunction of literals; otherwise put, it is an AND of ORs. As a normal form, it is useful in automated theorem proving. It is similar to the product of sums form used in circuit theory. All conjunctions of literals and all disjunctions of literals are in CNF, as they can be seen as conjunctions of one-literal clauses and conjunctions of a single clause, respectively. As in the disjunctive normal form (DNF), the only propositional connectives a formula in...
 
@NikiC I … realized :-(
 
@LeviMorrison please, no. I'm okay with typedef, chances for collision is very low.
 
typedef is stupid.
I'm not going to propose that.
 
@LeviMorrison that does feel wrong though. Especially since it's not creating a "class or interface"
 
Indeed.
 
3:05 AM
type numeric = int | float;
 
(also, no offense meant to you personally when I said typedef is stupid)
 
Abe
type Foo{ A | B };
type Bar{ Foo | (A & B) };
 
@LeviMorrison excuse-me, stupid is a very strong word
 
@Abe it will just use =
@marcio Indeed, and I already clarified it.
 
Abe
imho it's better if it's consistent with classes and interfaces, with {}. but okay
 
3:08 AM
Well, type expressions are expressions.
 
@LeviMorrison yea, missed it... often I just read pings and alt+tab ^^ but certainly "type" is too common and "class" or "interface" is not clear enough.
 
= means they are more consistent with rexpressions.
 
use int | float as numeric
 
@ircmaxell Except use is per file. I would want an entry in a table.
 
Is it just me, or are the suggestions on internals that the release of PHP7 should be delayed, because some people will be too busy to use it immediately just incredibly self-centered?
 
3:10 AM
@Danack huh?
 
And the email that is replying to.
 
@Danack My thinking is more that they shouldn't be upgrading the moment it is available anyway.
That or should already be using it.
 
I'm in the middle. I see both sides of it
Heroku wants to be the first on 7
@LeviMorrison use int | float as global numeric
 
@Danack I'm okay with a January date not because calendar, but because there are many bugs with very non deterministic way of reproduction appearing + a few days ago I found a way to read private properties from an upper class and that's the sort of thing that can't be released.
 
3:12 AM
:-P
 
Constants can have the same names as types in general, yeah?
 
yes
use false | Bar as falseableBar
 
@Danack oh god… it's just the US who is doing thanksgiving… the rest of the world doesn't care and is available just as always…
 
I've got a dentists appointment that day....maybe I should ask for it to be delayed...
The release ofc, not the dentist.
 
Abe
haha
 
3:17 AM
I have to sleep that day. I vote for delaying as well.
I might also take a dump. So my day is pretty full.
 
@ircmaxell I see no reason to delay for it to be convenient for a single business.
 
@LeviMorrison I'm not arguing
if the RMs are OK with shipping on Thanksgiving, they should
IMHO at least\
 
is define already reserved? #lazyweb
 
no
 
dammit... well, we could use "define type" the same way we did with "yield from"
 
3:24 AM
declare is a keyword
good morning
 
Abe
morning
 
declare int | float as numeric
 
i could go for that
declare (ArrayAccess & Iterator) | array as ArrayLike
 
"as" gives the idea of type aliasing, is that what we really want?
 
Anonymous
cast int | float to numeric
 
3:30 AM
it is an alias isn't it
 
@bwoebi that might be an email for you on internals.
Sent "privately"...
 
yeah, I've already replied?
 
Abe
@samayo it's not a cast :B
 
Anonymous
my bad :)
 
@Orangepill in a certain way, yes. But it's also more than that as we are creating a new type.
 
3:36 AM
a new type or a matching criteria for a type hint?
 
abstract Iterable = array | Traversable;
This is actually not so bad.
You can't actually create an instanceof Iterable - so in that sense it is abstract.
 
@Orangepill well, it's an union type :), aliasing would be more like "declare int as integer;"
 
would declare int as wholeNumber be valid syntax ... ie would aliasing be a subset of the functionality?
 
^ good question, btw we already have aliasing at a certain level with use __ as ___;
 
We don't have a seamless way to check if variable $foo is of any type, including scalars, correct?
1 instaceof int doesn't work, I know.
(Well, it is bool(false) I mean)
 
3:43 AM
no, it's all split between instanceof and is_* functions
 
Time for the is operator, right guys?
 
Abe
do it!
 
isa ... but that would be confused with is_a
@LeviMorrison I wouldn't be opposed to that.
 
we should just reserve all 2-4 letter (ad)verbs …
 
lol
I'm okay with is despite the BCB. We could also deprecate is_* functions and instanceof after PHP8
 
3:49 AM
I like the abstract thing... because the union type doesn't really behave like a type in a traditional sense
 
Abe
@marcio you look like me sometimes :D
 
@Abe no, I'm not that optmistic
 
Abe
hahah
 
who would prefer instanceof + a bunch of is_* functions if we get is
anyway, good night all
 
Abe
yes but there's always the legacy code
gn!
 
3:54 AM
good night
 
4:16 AM
morning
 
4:51 AM
moin
 
morning
 
when i am loading my registration form an unknown post call is triggered "http://api.adsrun.net/post" don't from what is triggerring this call ?
 
network inspector
oh is that where you see it ?
 
in json "Object { url= tradeadexcha...ad/display.php?r= 350796} <--may be some malware type
firebug
 
Abe
5:00 AM
could be
morning peeps
 
looks suspect
moin abe
 
i search for tradeexchange its some type adware malware seriously harming..
 
are you using windows ?
 
there's your problem ...
 
5:04 AM
:) yeah and non of anti virus could detect it
 
Abe
@JoeWatkins i didn't know icu had a ustring. i would keep it identical in php though
or the idea was to have an ustring that is more php and less icu?
 
@Abe well ... have a look at the C++ API ... it's extremely huge and complicated ... unnecessarily so ... it relies on things we can't do in zend
 
Abe
things we can't do in zend - such as?
 
overloading and such
 
Abe
oh
 
5:08 AM
moar php is good, the api is based on work niki done ...
when he wanted scalar methods
 
Abe
i think we should have both at this point, since other things of icu weren't "phpized" but just exposed 1:1
and start with icu's 1:1 copy
what do you think? i'm reading ustring right now though
the codepage things are meh
yeah actually it's not that there is much more to what you have already
::concat(UString $other) : UString
::indexOf(UString $other) : int|null
::lastIndexOf(UString $other) : int|null
::toUppercase() : UString
::toLowercase() : UString
::toTitlecase() : UString
::toFoldcase() : UString
::codePointAt(int $offset) : int
concat would be handy
 
5:23 AM
well that's what intl does
but, I don't like that ...
 
Abe
you mean the codepages?
 
no, exposure ~1:1
that exposes changes in the API 1:1, however subtle, that doesn't really make sense ...
that's a huge pain in the ass for a dynamic language, how the API works underneath is our problem, not the programmers ...
there's a subtle difference between supporting icu and unicode strings, and I prefer the latter ...
I'm waiting for someone else to finish it off to be honest, I have a million billion things on my plate right now ...
 
Abe
my point is that it won't be good enough anyway. i imagine it to be done properly with a finely designed api in a later moment
i wish i knew c, i would like work on it :(
 
it's C++ and C
 
Abe
i don't know either of them :D
anyway what you have currently is very close to what it should be imho
 
5:27 AM
sounds like an opportunity to learn some stuff ...
yeah but if I tag/release it, I have to maintain it, forever, I need other people to be involved ... they are, Andrea is/was working on it recently ... hopefully she can push it forward ...
 
Abe
if i had the time i would start working on it for sure, but i have lots of things going on too... will happen that i learn c and c++, the question is, in which century? :D no worries though
would add normalize method too (same stuff from Normalizer)
and would keep pad() only as long it takes care of combining glyphs
shall i write those things in github's issues?
 
do it, yeah, be involved any way you can ;)
I'm hoping andrea is going to finish it ... language is her mojo ...
 
5:49 AM
'morning
 
morning
how is every1 ?
 
Abe
@JoeWatkins spammed few issues :D
also @JoeWatkins would remove $offset from
indexOf(UString $needle, int $offset = 0);
they are redundant with substring()
@JoeWatkins 4 issues submitted. sorry for that xD
 
6:37 AM
morning
 
morning kelunik
 
7:06 AM
posted on November 10, 2015 by Joe Watkins

Fig 1. A priceless artefact from antiquity. Humans are a terrible bunch; Give them ancient, priceless artefacts to care for, and they'll snap the beards off them and stick them back together with pound shop (99c store) epoxy. In August 2014, that literally happened. Apparently, the museum has a world class conservation equipment, and experts. So repair was carried out internally, at the muse

 
Abe
> Directly interacting with the authors of some code, so quickly, and with such little effort, feels pretty new to me; a product of our collaborative ecosystem.
@JoeWatkins i feel you are referring to me :D
at least partially. i think fast i talk fast #mrwolfe those reports are intended just like random ideas
 
feature request != bug||question
 
Morning
 
moin
 
Hi all
 
7:15 AM
good mornen
 
I am getting the following error in Magenoto
PayPal NVP gateway errors: Currency is not supported (#10605: Transaction refused because of an invalid argument. See additional error messages for details)
Any ideas about this
I know what is this mean
PayPal Payment Gateway will not support INR currency type
so i am getting this error
If i change my base currency other than INR like AUD, USD,....etc
it is working fine
But i can't change my base currency because i am uploading all the products with INR price and changing Base currency will includes lot of changes in my ERP software
Is there any trick to work PayPal Payment Gateway in Magento without changing the base currency ?
Any Ideas ?
 
user3119231
Good Morning, Mr. Magenoto.
 
Abe
lol
 
Very Good Morning Maurize
 
Hi
Does anybody uses Webscale SQL they said its great to use?
 
user3119231
7:30 AM
What is Webscale SQL?
 
Abe
@Maurize you meant, domo arigato mr magenoto, right? :D
 
user3119231
@MaryDaisySanchez Just use normal SQL -> Mysql is good to use with php.net/manual/de/book.mysqli.php or with php.net/manual/de/book.pdo.php
 
user3119231
!!urban dictionary domo arigato, mr. roboto
 
user3119231
damn caprica.
 
user3119231
7:35 AM
Man I'm just like sitting here in school and you are pinging the shit out of me :D
 
Abe
lol
you shouldn't be in a chat room then. could've been worse though, imagine if you started mr.robot song
 
user3119231
Yeah, just the php lesson
 
user3119231
So enough time for browsing through so
 
user3119231
Read the room rules: Ask JavaScript questions here. That's what the JavaScript Room is for.
 
user3119231
So I may ask some javascript here. huh?
 
Abe
7:43 AM
you are in the php room
 
@FélixGagnon-Grenier Lets go whale hunting!
 
user3119231
-4
Q: Show me only Null

Jörn MatthesI have this code block you can see. On my page it shows me the number of jobs that are in a category. The output of it is Jobs3 , Jobs2 for example. If the result is 0 it don´t show me the 0. It is just empty. I want it to show me Null and the second part is that i want in to show me only the 0 a...

 
user3119231
cv please :D
 
8:00 AM
@Maurize thanks for taking some time to reply . But sql is an old school sorry
 
Abe
sql is the only school
 
I want to own a school
 
I'd hate to own a school, I don't like kids in that age range :(
 
How to hydrate collection in zend framework 2 form?
 
8:10 AM
have you tried beer?
(sorry)
 
Beer does the opposite of hydrating you.
Alcohol in general.
 
beer is an animal
 
If so, I'm the most hardcore animal tamer in the world :D
 
8:15 AM
mornig
 
Morning PeeHaa
 
morning
 
just a simple question; how can i escape $abos?
$q = "SELECT nr FROM project WHERE name = ".implode(' AND ', $abos)."; ";
 
@TechTreeDev Just use bound params
 
8:18 AM
Hey guys,
I've got this setup as Patricks no-framework-tutorial,
 
Man I need my morning coffee
 
And I'm making my application.
On my Bootstrap.php file, I have this session_start() just after the namespace declaration.
And, in other methods, $_SESSION['loggedInUser'] is correctly accessible,
however, in my logout method, it is not, any idea why? It says it is undefined. This is my code:
 
@Epodax Got my 3rd mug (650 ml each) and I'm far away from beeing awake :D
 
    public function logout()
    {
        $user = $this->userRepository->getUserByUsername($_SESSION['loggedInUser']);
        $this->sessionRepository->delete($user->getId());

        session_destroy();
        session_start();
    }
 
@PeeHaa Hm? Could you explain this a little bit?
 
8:20 AM
On the first line of the function, I get the error that the index 'loggedInUser' is not defined.
Any help?
 
aww crap. you guys speaking of morning coffee. out to sleep, 'night
 
@TechTreeDev Are you using pdo or mysqli?
 
ANDing won't work, it'll just create a SQL query that returns nothing, because name can never be both "A" AND "B" at the same time
 
@MarkBaker Unless it uses wildcard matching
Oh wait. No that doesn't make sense
What should the query look like @TechTreeDev? Without the vars?
 
@PeeHaa - Wildcarding won't work with =, only with LIKE
 
8:25 AM
54 secs ago, by PeeHaa
Oh wait. No that doesn't make sense
 
Guys, both my SESSION variables store in the same PHPSESS cookie.
 
At first, i forgot to copy the correct version; $q = "SELECT nr FROM project WHERE name = ".implode(' AND name =', $abos)."; ";.

Secondly, i use the pg commands for PostgreSQL.

The query should look like this: SELECT nr FROM holder_project WHERE name= 'testname and' name = 'asdf' and name = 'foo' ;
 
But, still, the other URI doesn't detect the SESSION variable.
Is it because I am in two different URIs?
 
@TechTreeDev Using AND makes no sense, do you mean OR?
A project can't be called both "A" AND "B" at the same time
 
@MarkBaker oh yea... sorry
@MarkBaker damn, It's too early :D
 
8:28 AM
@HassanAlthaf That would depend on the URIs and your session cookie settings. If the URIs are on different domains, then they won't share the same cookies
 
You're better using IN for multiple OR conditions against the same column
 
@MarkBaker Okay
 
Using = you'd need WHERE name = "A" or name = "B" or name = "C"
 
(If they're on different subdomains of the same domain, or one is on a subdomain of the other, you can manipulate the session cookie domain so that they can share sessions)
 
With IN, you can do WHERE name IN ("A", "B", "C")
Need to go to work now though
 
user3119231
8:32 AM
@MaryDaisySanchez Yeah, SQL might be old school. But your grandma is, too. And she isn't bad or?
 
But grandma is not a school
 
user3119231
And you are not a real girl.
 
And you are a real girl
 
user3119231
Well played, Mister.
 
Good Hjob Sister
 
8:37 AM
hi
someone here
 
No, everyone is gone :D
 
:D no I am still here:P
 
user3119231
I'm just some decoration.
 
ok i have a problemo
uno problemo
 
user3119231
any shortcut for this?
 
user3119231
8:45 AM
$current_width = $current_width * 2;
 
i need to connect to a SFTP, someone gave me the hostname port username password and a Server RSA public key fingerprint like 25:23:24 etc. but how can i connect to this, where do i need to enter this key, doesnt this key need to be a file?
i cant figure it out i googled for hours
 
@Maurize It's all ready short, why'd you want it shorter? - and more likely unreadable
 
*= 2
 
user3119231
thank you! :)
 
anyone
:(
 
8:54 AM
heyy everyone, I'm facing an issue in integrating paypal on my website
if anyone can help me with this
I'm buliding a website where user needs to login/register and then paypal page appears.
And in the paypal website I login using different credentials which are different from website credentials
But the issue is I need to update payment status as Completed if the user has done the payment, but on the user id with which I'm logged in my website
on the success page either session works or either Post. Both values doesn't work simultaneously
 
o/ mornin Jimbo
 
@AlienJB They are on the same domain, with different URIs, and I checked and found out they use the same session cookies (both have the same name). What I simply did now is that I created a singleton class for the Session and created a simple wrapper for this.
And I simply use that wrapper to alter to the $_SESSION global var.
 

« first day (1851 days earlier)      last day (3107 days later) »