« first day (1889 days earlier)      last day (3284 days later) » 

00:01
SCOPE_EXIT { yolo(); };
2
I guess in connection with that comment: any of you up for implementing covariant return types?
2
@LeviMorrison shouldn't A be after B?
I thought A, B, C worked?
(I may be wrong)
@Andrea No, A must come first since B extends A.
but isn't it them being out-of-order that causes the problem?
They aren't out of order.
00:03
Oh. Huh.
OH
I see it now, nevermind :)
I don't know why I wasn't looking at the return types
Yeah, it's why it went unnoticed for so long.
Partly also because: who on earth writes code like that?
there's probably some case that breaks which has one class per file, too
@Andrea I think I squashed all of those.
ah :)
covariance is probably doable with a work queue
Could be done that way, but I think it could be even simpler.
We just need to do our passes differently.
00:31
@LeviMorrison what passes? the time when we resolve binding?
00:41
> 5.3.1 rename() can now rename files across drives in Windows.
Er.... I can probably remove the custom function renameMultiplatform() from my code base now...
00:53
why did we ever allow empty() on arbitrary expressions, ugh
it's literally just ! on regular expressions
so doing this just confuses people as top what it actually is
@Danack nice
Abe
Abe
01:19
/me has never used empty() in his whole life
01:34
The only reason to ever use empty() is avoiding an explicit isset().
I'm in favor of deprecating empty().
6
@bwoebi Theoretically it's useful if you're not sure if a variable is an array or a string.
@bwoebi oh well, documentation is nearly more important than architecture quality when it comes to adoption :) specially for "frameworks".
Abe
Abe
@bwoebi i'm with you
01:51
@bwoebi I'd like to repurpose it.
@bwoebi I think that's the terminology, yeah.
@bwoebi sounds like a plan
@LeviMorrison are you going to break BC, then?
because 0, "0", FALSE and so on should not be "empty"
@Andrea If you deprecate it then after the deprecation period I can repurpose it :D
nooo
Basically empty doesn't make sense for scalar values, only "containers"
Which it seems you agree with based on the values you said shouldn't be "empty".
Repurposing things in programming languages is evil. I can't think of any exception to this rule.
01:57
@marcio What do you think about this scenario?
@LeviMorrison so you want to have a vessel interface similar to Countable but that responds to empty()?
@marcio Yes.
@Danack @marcio @Abe @LeviMorrison @Andrea I thought that'd be much more controversial…
(^ blocked, because massive ping)
lol
Abe
Abe
02:04
lol
That's a reply-all ping ^^
got 5 pings, pinging 5 people^^
yes, it is controversial... but more because it would make code using empty() behave differently in a subtle way :/
@marcio But NikiC and Andrea pointed out that empty($var) is basically isset($var) && $var == false. So really it would probably better to hook into the bool conversion.
Abe
Abe
@LeviMorrison would that be different from cast to bool in userland?
Actually, I thought, removing empty() somewhen would break many old apps, but most old apps anyway give a shit on notices, so BC break shouldn't be even that big :-D
Abe
Abe
02:06
ah right, forgot about not set variables
Conversion to bool is possible internally.
@LeviMorrison hm?
There's an object handler for conversions.
Or am I really mis-remembering that?
there is, I've missed context, sorry.
@LeviMorrison it makes a LOT of sense, but I'm not a fan of deprecation followed by repurpose (I said the obvious reason up there).
02:08
Also, this is totally up-to-date documentation on objects: github.com/php/php-src/blob/master/Zend/OBJECTS2_HOWTO.
is strlen optimized in some way when opcache is enabled?
Ah, it's the zend_object_compare_t handler (not really a conversion, per se).
@LeviMorrison yeah, objects haven't changed much since PHP 5.0
Abe
Abe
function truthy(&$var){ return isset($var) && $var->__toBool(); } @LeviMorrison
No, please not a magic method.
__toString set an unfortunate precedence on that one :(
Abe
Abe
02:14
i agree on that eh
anyway, was saying, that truthy() would be much more useful than empty() (which is falsy)
it's probably the main reason i don't use empty, because i have to negate it !empty()
makes the code odd to read
I always wondered why we got __toString() but we don't have __count()... or the opposite: why we don't have a String interface with a toString() method, like we do with Countable.
Abe
Abe
__toString php4 maybe?
I think __toString() predates interfaces. Can anyone confirm it?
Abe
Abe
i don't remember
But in any case, yeah, it should have been bound to an interface.
Abe
Abe
02:19
and don't have the __
@LeviMorrison yes, it does, we currently have a split between __magic methods and interfaces.
Abe
Abe
will add Stringable too in the c extension :B
you don't need an extension for that :)
Abe
Abe
to be called automatically, i mean
interface Stringable { function __toString() : string; }
class implements Stringable { function __toString() : string { return "watevs"; } }
Abe
Abe
02:22
oh but i want to get rid of __ too :B
there is a big difference between calling explicitly __clone() (will likely break everything) and __toString()
same goes for __get __set __isset, they should just be hasProperty setProperty getProperty etc and be in interfaces
That's certainly true, but since we can't get rid of __toString(), it would be weird to add other casting methods without __
while you're at it, please add toInt(), toFloat(), toArray(), etc.
No, only to scalars if you even attempt it.
Abe
Abe
toArray is no
(also toFloat and toInt actually)
toUndef() j/k
Abe
Abe
02:26
toBool() and toString() is all you need, imho
no no, toInt() is useful too
Abe
Abe
to be called implicitly you mean?
i don't know...
yes, on weak mode only ofc. With strict types it would be inconsistent.
Abe
Abe
toString is useful for echo, calling it explicitly every time would be madness in templates. toBool is useful for if()s. but i don't see use cases for toInt/toFloat that require the implicit conversion
maybe something like "3600 + (new DateTime)"
Why i am facing this weird problem ?
Abe
Abe
02:37
what is that
use ftp
How to use it
Abe
Abe
search on google
I am uploading in hostinger.in using file-manager..
To search in google, i need to be clear what i am searching. I don't know what you are saying..
02:59
@Ganesh That will certainly be an artifact of your editor. Some "helpful" auto-sanitization thing.
Hi sara... glad to meet you again..
Yep.. Maybe...
As to how you can upload files to your hosting provider, I couldn't guess. I don't know what they support. If they have ftp/sftp/ftps support, then some client-side IDE like PHPStorm might be a good idea.
I'd be remiss if I didn't recommend Nuclide, but that might be a bit too advanced for the moment.
FileZilla ?
That's what i am having... But i too don't know whether they are suporting ftp or not....
At the very least, check through the options in your current file editor. If you see anything about "auto-escaping" "sanitization" "entity encoding" etc... Turn that off.
This is the editor
Only two option.. NormalTextEditor and Ace(Code editor)
When i choose Ace(Code Editor) it's not even letting me to edit the text
Abe
Abe
03:21
btw, @LeviMorrison opinions about the naming? github.com/WesNetmo/php-popov/blob/master/Popov.php i'm unsure about bitwise op
So... concat modifies the lhs?
Same with all of these?
Or am I missing something?
Abe
Abe
yes, lhs
Concatenation::append doesn't match the others. Should be Concatenation::concatenate or Concatentation::concat or something.
Also, you may want to look at Rust's traits for names on these. Here is a link to std::ops: doc.rust-lang.org/std/ops/index.html#traits.
Abe
Abe
03:26
i like intersection / union / symdiff more
idk actually
i think i will start endorsing ucfirst scalar types in type declarations:
function baz(Int $foo, Float $baz) : String{}
i believe that will make someone upset :B
03:43
What kind of content do you normally use ftp for
um.... files...
I could see downloads being one but would you ever store js php html CSS for any reason
Sure
They're all files, and it's a FILE Transfer Protocol
@GettingNifty It's actually a semi-decent protocol still for transferring large files. At least compared to HTTP.
htmlentities - Convert all applicable characters to HTML entities Does anyone have a definition of what this function is used for that i) Isn't a circular definition ii) doesn't use made up words iii) Actually passes some information across ?
@Danack Wait, are you asking seriously?
Like, I know you know what an HTML entity is...
03:48
I know what it does.
I just can't put into words what it does, and apparently neither can the PHP manual.
<htmlentity> Hi </htmlentity>
It escapes arbitrary data to make it safe to include as plain text in an HTML document.
Which is meaningful if you already know what special characters are in HTML.
Abe
Abe
@Andrea how do i check if a float 0 is positive or negative?
(apart from var_dump'ing it)
Oh I'm sorry that's a tag
03:52
@Abe tbqh, I don't think PHP lets you inspect that bit...
> Some characters in HTML are reserved characters which have special meaning. htmlentities replaces these reserved characters with the equivalent HTML entity string. For example the 'less than' sign is replaced with '&lt;'.
^^ I can English?
@Abe Like, I might try 1/$zero to check for INF versus -INF, but PHP will divide by zero on your butt
@Danack Sounds clear enough to me...
@Danack But you need to try it on a noob.
wonders if I should pull @abe's leg....
Abe
Abe
why do i deserve that :B
Because you keep changing your name to confuse people? Actually isn't it time for a scheduled change?
Abe
Abe
03:59
Because you keep changing your name to confuse people? -> i thought you knew already who i am
all have been informed, even santa
also no i'm not changing it anymore. i'm wearing a tin hat instead now
Can you use the alt shortcuts instead of writing the htm entity
Abe
Abe
@Sara hack has no division by zero warning?
anyway it's just a warning, who cares
@Abe :p'course it does
04:23
I really wanna practice a lot of the server languages. What's a good way to practice it in a real environment without having to pay for it
Wes
Wes
define environment
Im working on hosting a website but maybe I just haven't played with it yet
Wes
Wes
for php you need a local server and the php interpreter, and possibly a dbms
like, nginx, php and postgresql
is there a name for the result of exponentiation? base ^ exponent = ________ ?
@Wes possibly the "raised value", as in your example is "base raised to the exponent -th power".....which probably doesn't help you.
Wes
Wes
i've used $exponentiation, i guess it's fine enough...
04:40
power may be the word
Wes
Wes
i've asked this before but i forgot, is there a formal name for this shortcut?
return min(max($lowestPossible, $value), $highestPossible);
minmaxing
yes, though all of the gaming world calls it minmaxing, without that extra i - leaguecraft.com/strategies/guide/…
Wes
Wes
great, thanks. -1 things to name :D
04:47
2
Q: PHP/SQL Insert values where user exists and not circumvent errors

Levi ZoeschWe'll get to the point... I have a simple form (2 of them) that relies off the previous filled out. The intention of these forms are to sign, post to db, validate email. Once they have validated their email address it will then change the users permission, send the user back to site to view the...

Any ideas?
Wes
Wes
keyswitches on my keyboard are dying... rshift gets stuck, and sometimes also the spacebar
05:03
U can take it apart and wipe the printed circuit board off gently
but if u have to hammer it I think it's bad
Wes
Wes
will try to get spare parts
Is there a way to upgrade buses
I computers are limited from upgrading parts because serial buses can only take so much traffic
I remember replacing my laptop screen in the snow
05:21
Hello,
[api_response] => {
    "cardDetails": {
        "abc":"VAL1",
        "result": {
            "SUB-KEY1":0, "SUB-KEY2":"OK", "SUB-KEY3":null
        }
    }
}
I always get result as a child element but the parent object "cardDetails" always different. How is it possible to reach to result with out knowing the name of object (cardDetails or anything). is that possible without looping ?
Wes
Wes
@NikiC would be impossible currently to have special do_operation handlers for unary - + and increment/decrement -- ++ right? rather than converting them to ZEND_ADD?
@TechCare99 you're also missing "0" in SUB-KEY1, where as others are "d
05:37
moin
moin @JoeWatkins
0
Q: Print preview margin of print-hidden part in chrome new version

Sagar NaliyaparaI have shown some screenshots which shows problem I'm trying to print this page with only table and as shown in image with open side pane i have put that sidepanel into print-hidden and it was working till the version of google chrome 46.0.2490.71 but after next update currently my google chrome...

if anyone can help...
Wes
Wes
hey joe \o
someone knows the difference between zend_object_handlers->compare and zend_object_handlers->compare_objects ?
@LeviZoesch ...yup brother. they are fake data. the main point is I want to access result element without knowing the name of its parent object
	"autoload": {
		"psr-4": {
			"Et\\Cloud\\Jquery\\": "/src/components/jquery/jquery.min.js",
			"Et\\Cloud\\Angular\\": "/src/components/angular.js/angular.min.js",
			"Et\\Cloud\\Angular\\Route\\": "/src/components/angular-route/angular-route.min.js"
		}
	}
is this make sense ?
what ?
06:02
hey
can anyone help me with this question?
2
Q: How to access a particular value from mysql database using php?

anup This is my php script that selects everything from invoiceNo where invoiceNo is distinct. <?php require "init.php"; $query ="SELECT * FROM `selected_items` WHERE invoiceNo IN ( SELECT DISTINCT ( invoiceNo) AS invoiceNo FROM selected_items ) GROUP BY invoiceNo;"; $res = mysqli_query($con,$q...

This is the query I am trying to use
$query ="SELECT * FROM selected_items WHERE invoiceNo IN ( SELECT DISTINCT ( invoiceNo) AS invoiceNo FROM selected_items ) GROUP BY invoiceNo;";
It gives me the first row I would like to get the last row
06:21
@Wes it won't be useful to tell you the answer
when you have a question about Zend, the best thing to do is search it using lxr ... look for occurences of compare_objects symbol, and comapre symbol, this shows you how they are used and should allow you to determine why most of the time ...
I think that more useful than just blurting out the answer, try it ...
Wes
Wes
currently i find very hard even trying stuff. need to understand how to debug, too
@JoeWatkins can you help with my question?
0
Q: js components autoload psr4

underscoreMy Composer.json's autoload section as follows "autoload": { "psr-4": { "Xx\\Cloud\\Jquery\\": "/src/components/jquery/jquery.min.js", "Xx\\Cloud\\Angular\\": "/src/components/angular.js/angular.min.js", "Xx\\Cloud\\Angular\\Route\\": "/src/components/angular-route/an...

don't do that please @anup
@Wes we're all still learning ... so you're not that far behind really :D
@JoeWatkins sorry i din get you?
Wes
Wes
06:34
anyway, what i was looking for is if it's possible to overload both == and ===
if i understood it correctly, compare_objects only uses ==
Wes
Wes
06:54
time for bed
gn @all
07:10
if this right way of doing pastebin.com/FkxkdcE8
nn
@AnmolRaghuvanshiVersion1.0 yuk
Joe i understood let me do some research in improving it...
0
Q: Print preview margin of print-hidden part in chrome new version

Sagar NaliyaparaI have shown some screenshots which shows problem... Problem: I'm trying to print this page with only table and as shown in image with open side pane i have put that sidepanel into print-hidden and it was working till the version of google chrome 46.0.2490.71 but after next update currently my ...

--static
--die
--catch
07:18
Good morning lovelies and happy Rebecca day!
you shouldn't use static, because equivalent to globals, difficult to test and global state is generally bad ...
you shouldn't use die, because SRP, it might seem odd, but responsibility isn't just determined by public interface, a class should not be responsible for determining how many instances of itself, or a dependency of itself, should be used, singletons are an anti-pattern ...
you shouldn't catch like that because you are assuming that the caller cannot manage the exception and take another path ... and the caller should be able to manage the exception and take another path, even if
moin
Joe thnks let me try to improve this :)
@underscore random ping is random?
can you just look into the question i gave you
is that make sense or not
?
@underscore sorry. not right now. busy at work.
@Gordon what is the meaning of random ping is random,Hard to understand
!!
Lunch Time for @Priyank57 @Gordon
Gotta be fresh, gotta go downstairs!
but the only downstairs I have is a cellar...
Oo-ooh-ooh, hoo yeah, yeah
Yeah, yeah
hello
can anyone help me with a mysql query
SELECT * FROM selected_items WHERE invoiceNo IN ( SELECT DISTINCT ( invoiceNo) AS invoiceNo FROM selected_items ) GROUP BY invoiceNo;
08:10
meurning!
This query selects everything from a table where invoiceNo is distinct
08:33
O-o.i'm back
@PeeHaa don't forget your cereals
08:52
'Night
how many people can I troll
@Gordon s/cereals/to get in the backseat
posted on December 18, 2015 by nlecointre

/* by Eric */

I seriously don't like random pings in the morning
@PeeHaa **random pings** woohoo! @PeeHaa
happy friday!
09:07
what is random ping...?? @PeeHaa @Gordon
@reikyoushin
@reikyoushin Happy friday \o/
@SagarNaliyapara the thing you are doing right now
tell to gordan as well @PeeHaa
Tell @Gordon WAT?
I'm pretty sure he also doesn't like random pings
happy friday @PeeHaa
09:09
Happy friday :-) @Gordon May the fork be with you
tell that to gordan
:)
@SagarNaliyapara ~this is a random ping~
brb /me is getting beer
@PeeHaa gotta go now. sad to be on the other end of the world. >.<
you guys are busy in personal chatting so i got this way to disturb you @PeeHaa @reikyoushin
09:12
eh? but wasn't this called a chat room? had everything been different since I'm gone? anyway. bye guys!
@PeeHaa sorry
morfriningday
@reikyoushin sorry...:(
Happy friday to all -:)
@SagarNaliyapara No worries
PeeHaa, did you get me a beer as well?
09:16
You are more than welcome to come over :-)
it's fucking early to get beer
Hello Felix!
even that girl in the bus told me so
@FélixGagnon-Grenier It's is, but I am fucking thirsty
you know about water right @PeeHaa?
hello @whatever :)
So much thirsty shit... :D
@FélixGagnon-Grenier Yeah. It's used to add yeast to
lol
in yo dreams bro
How to bid on fixed price php projects?? any ideas?
on freelancer.com
0
Q: js components autoload psr4

underscoreMy Composer.json's autoload section as follows "autoload": { "psr-4": { "Xx\\Cloud\\Jquery\\": "/src/components/jquery/jquery.min.js", "Xx\\Cloud\\Angular\\": "/src/components/angular.js/angular.min.js", "Xx\\Cloud\\Angular\\Route\\": "/src/components/angular-route/an...

we. are. all. drunk.
@underscore PSR4 is a way to autoload php files
@FélixGagnon-Grenier Would it be okay if I turned my coffee into irish coffee then?
Use a JS toolset. AFAIK you can tell composer to run your JS tool chain
09:22
@Epodax right on!
let me have one of those!
@FélixGagnon-Grenier All we need is a Irish person.
oh.. according to the last phproundtable we have a lot of strong uk accent speaking people here
@underscore tbh I am not sure. How to combine the tools
Well, I've never had British coffee before, I figured they were more of a tea people
09:25
they are
can i use files property in autoload object in composer ? @PeeHaa
or well
I think they are. but tea fucking rocks.
/me is trolling people at work with Rebecca on the Sonos at full volume. I'm not currently in the office.
09:27
@underscore I think you can, but somebody else in here might be better able to help you
Not sure who though
@DaveRandom @Jimbo mrnign
@DaveRandom lol. last I did that at work people freaked out with the sound
@SagarNaliyapara dont ping me with random stuff pls. thanks.
seriously. I can't type. time to go to bed. cya.
09:31
ya busy man @Gordon
sorry.. -:)
@whatever
for getting PHP (or any projects) on Freelancer or upwork
1). SignUp
2). Search on projects. (that can be fixed or hourly based, you can sort them by many filters )
3). Open a related projects of your search,
add your proposal template on Text area provided
Template follows as :
a). About your self or company.
b). Basic requirements for project, (assumed or copied from project layout)
c). Essentials (System requirements, ETC)
d). Milestones (if project is big divide it in to milestone [that is budget and time]).
@SagarNaliyapara doesnt matter whether I am busy or not. I dont wanna get pinged with random stuff. I have no idea why you are sending me that link. its completely out of context.
ok @Gordon
i got it...
Hi everyone
how to play .mov file in browser using html?
By converting it to a supported format and using an HTML5 <video> tag, for which there is plenty of documentation on MDN
You can convert it with ffmpeg or one of the many forks/alternatives, or vlc
09:35
@BoopathiRajan I found this for you. Look at the first Stackoverflow link.
In general I've found vlc better on win, ffmpeg better on *nix
@DaveRandom i'm trying to play in my website @Jimbo
	"autoload": {
		"psr-4": {
			"Et\\Cloud\\": "../src/"
		},
		"files": ["../src/components/jquery/jquery.min.js", "../src/components/angular.js/angular.min.js", "../src/components/angular-route/angular-route.min.js"]
	}
@DaveRandom vlc uses ffmpeg
09:37
is it wrong ?
it;s only include first file of the files array
@FlorianMargaine Yeh but they have their own build which is waaaaaaaaaaaay better than any other win build I've found (never tried to build it myself because better things to do with my life)
i didn't see any helpful code
some code supports only in chrome
because .mov files created from iphone application
You can use ../
i want use that files in web application
it does not support in firebox
09:41
w3schools are w3tools
.webm :-)
@underscore what kind of code is tgat
@FélixGagnon-Grenier I love wild berry tea.
Seriously what is it from
09:43
@GettingNifty i'm gonna include js files automatically via composer
still i couldn’t
@underscore getcomposer.org/doc/04-schema.md#files this is for PHP-files which you want to always include
What's composer
I hate hats
I hate hatwgores
09:50
I think you may have had enough beers already
Could be :P
@Priyank57 hi its shows .mp4 file
i don't want that
want to play .mov format file
...and it's gone!
Good idea. grunt minify avatar

« first day (1889 days earlier)      last day (3284 days later) »