« first day (1769 days earlier)      last day (3194 days later) » 

5:00 PM
thus, stuck on windows with windows version of irssi
 
@rdlowrey Haven't played with it really but I thought that a generator that was aware of the exceptions and had access to a reoccurrance strategy might be a good way to implement reoccurring events. Thoughts?
I honestly haven't played with generators much except in the simplest case.
 
user895378
Generators are great for something like that. You need a bit of boilerplate code to make it easy though.
 
user895378
Not sure if you're looking to do this as a single long running process but if so it's exactly what my amp lib is intended for.
 
user895378
@Orangepill jump over here and we can continue the conversation
 
Hi Mr.orangepill i a piece of code in middle of the bulk code i have to run that script for every 60 sec using php
 
5:04 PM
@rdlowrey link doesn't appear to work
 
user895378
updated
 
any one know
how to run a script for every 40 sec
 
@rdlowrey y u want to segregate
 
user895378
haha I just didn't want to clutter the chat with lib-specific talk. I try not to use public platforms for shameless marketing :)
 
@madu you will have to make a background service for that. Crontab cannot do smaller steps than 60sec
 
5:09 PM
is there is any script ok for 60 sec how to do
 
google: crontab
 
doh
 
5:25 PM
@Sherif I already did that within the bigint branch, but didn't backport it to PHP mainline. I didn't use asm, though. I ripped it out entirely in favour of GCC and clang's checked arithmetic intrinsics.
@LeviMorrison Your memory's not wrong. I did do this, but only in the bigint branch.
 
@Andrea Ah, I see.
 
See, PHP used custom asm for integer addition which would do a float add on overflow. I couldn't be arsed figuring out how to do a (cross-platform!!!) function call to construct a bigint there, so ripped it out and replaced it with intrinsics.
@LeviMorrison void is just a unit type :3
@bwoebi single-page web apps will have more CSS than HTML
 
@tereško and @Orangepill when I Add/Subtract a number from reputation's user, I need to tell him the reason, So I need to a table named Events. for example: [+2 vote up for editing] . do you have idea for implementing that table ?
 
@Sherif wait, PHP already does use the overflow bit in its assembly (jo). Was this removed for PHP 7, then? Hmm
 
make your best guess, you will be able to fix it later .. it's not like this will be a first new thing you add
 
@tereško ok
 
Apparently, using assembly causes trouble. Better to use intrinsics, then? :3
 
@Andrea No, null is a unit type. (I think)
 
I think void is a bottom or zero type?
My memory is not so good anymore – I can't remember QQ
 
5:33 PM
@LeviMorrison null is a bottom type in PHP, C and so on, I think. No, wait...
 
Bottom types have no instances I believe.
From Wikipedia:
> In type theory, a theory within mathematical logic, the bottom type is the type that has no values.
 
The void type, in several programming languages derived from C and Algol68, is the type for the result of a function that returns normally, but does not provide a result value to its caller. Usually such functions are called for their side effects, such as performing some task or writing to their output parameters. The usage of the void type in such context is comparable to that of the syntactic constructs which define subroutines in Visual Basic and procedures in Pascal. It is also similar to the unit type used in functional programming languages and type theory; however, there are some differences...
@LeviMorrison yeah
> It is also similar to the unit type used in functional programming languages and type theory; however, there are some differences in allowable usage, in that the void type is taken to be an empty type with no values.
 
Ooh, lets alias void to null!
return void;
 
/me sighs
 
And unset!
void($var);
 
5:40 PM
@DanLugg NO
I still stand by my RFC
void is fitting as a return type for functions which don't return.
 
Arguably, so is null
 
It's what C, C++, C#, Hack, Java and others do
Sure, in PHP they technically produce null
But that's not really what you want
Maybe better would be function foo(): noreturn
Oh god. The suspense. What does this email contain? A rejection? An acceptance? :o
 
I've been missing function() : void {} lately
 
function () : null { }
 
what happened to this RFC?
 
5:43 PM
> PHPNW15 were delighted to hear from you and would love to extend an invitation for you to give your talk ‘Better late than never: Scalar Type Hints in PHP 7’ at our conference.
8
@ircmaxell !!!!!!
 
@Andrea Congrats!!!!
 
var_dump((function () : void { })()) // NULL?
 
@marcio I quit PHP
 
@Andrea !!
 
"In order for us to publicise your talk, could you please reply to this email and let us know whether you will be attending - prompt responses are much appreciated. We politely request that you give your talk acceptance directly to us before you tweet about it, many thanks."
 
5:44 PM
@Andrea lol, you quit PHP like I quit smoking
6
 
@Andrea oh, I thought it was voted. Bad memory.
 
Oh, right.
Uh, I officially haven't accepted, right guise?
Good thing my Twitter isn't public...
shhh
Also, argh
This is an HTML email with no word wrapping. You have to scroll to read it.
 
@Andrea That would be like, literally does not return (throws exception, loops forever, etc).
 
@LeviMorrison Oh, right, yeah.
 
fwiw void feels right to me
 
5:48 PM
were void and enum reserved?
 
> The special NULL value represents a variable with no value. NULL is the only possible value of type null.
 
@marcio Hmm. Wasn't there an RFC for that?
 
A variable is considered to be null if:
  - it has been assigned the constant NULL.
  - it has not been set to any value yet.
  - it has been unset().
 
Yep
 
Seems to me that null is the best fit for PHP.
 
5:49 PM
null is what functions implicitly return
 
Maybe not if I were making a new language.
 
I just don't think it what we should use for the type signature itself
If you say a "void function", people know what you mean. A function that returns no value.
 
@Orangepill Oh well
 
should really reserve import as well
 
5:50 PM
I was going to write an RFC on it, but, well, I quit.
 
@Orangepill is this up to date?
 
@Orangepill For modules?
 
@Andrea yeah
@marcio it reflects 7 ... but i don't know to what degree
 
This makes me wonder what TypeScript uses. Hmm...
Yep, TypeScript uses void here, even though JavaScript returns undefined implicitly. @LeviMorrison
 
I don't think JavaScript is a good example of type soundness.
lol
 
5:55 PM
@Andrea AWESOME!!! CONGRATS!!!!
 
It has more wtfs than PHP I think.
 
I look forward to hearing the recording!
 
@LeviMorrison This is TypeScript
 
@LeviMorrison ain't that the truth
 
@LeviMorrison I wish
 
5:56 PM
@Andrea If it's compiled ahead of time then theoretically a void function cannot be used in an expression.
 
@LeviMorrison Probably
 
So it doesn't matter what JavaScript returns. The compiler would prevent whatever behavior that is.
 
I'd be hesitant to prevent use in expressions because it would break things
 
@Andrea I wouldn't hesitate to do that for a second in a new language.
But this is PHP.
 
that's broke anyway ...
 
6:03 PM
I hate inflection/pluralization, so I suffix native array properties/parameters with *array when they're ordered-indexed, and *map when they're associative. Objections?
 
And this is exactly why I think we should use null and not void.
 
$nodeArray, $nodeMap
 
(Or at least one compelling reason)
 
@DanLugg seems clear to me. nodes would be arbirary
 
Problems! Now I must actually write a talk
 
6:05 PM
how to get only seconds
@Orangepill
in php
 
@mado seconds since what?
@mado time() will give you the number of seconds since January 1, 1970 UTC
@madu date("s") will give you the number of seconds since the beginning of the last minute
 
how to get current time sec and the after 30 sec it should say hi it should run for 40 sec
i want to run a script for every 40 sec
usingm php
Mr.Orgapill
 
@madu look at cron
 
cron will run whole file
but i want to run
 
In that case I suggest going outside
 
6:11 PM
@tereško in the mysql there is something named EVENT, should I use it ?
 
piece of code for every 40 sec
not full code on that
@Orangepill
 
@madu what do you hope to accomplish with this.
tell me what you want to accomplish... not how you think it should be accomplished
 
@Orangepill @Andrea this is the RFC wiki.php.net/rfc/additional_soft_reservations_for_php7
 
@marcio Did that never go to a vote? @NikiC
 
We are creating a taxi app so when the user book a ride so the drivers which is that region he will accept so i a script to get the accept driver
 
6:14 PM
@marcio hadn't seen that one... not official yet
 
so i want that script top run
for every 30 sec
or 40 sec
driver takes place to accept ride after 40 sec
@Orangepill
both in one file
 
@Andrea nope, and the discussion phase started almost 2 months ago
@Orangepill ^ it was discussed
 
i will say it detail
first the user will ride a book
so
after booking
all driver get the use r details
 
@madu so you just want to be able to notify the user when the ride is accepted by a driver
 
yes
but it takes 40 sec
to accept a driver
my colleague asks to run that script for every 40 sec
 
6:18 PM
@DanLugg 'tis a tiny bit addictive
 
You should set up long polling on the page and have javascript do a request every n seconds to determine if a driver has accepted
@Andrea and bad for you health
2
 
^^ At least I don't argue semantics with cigarettes.
TIL: internals is probably carcinogenic
 
if nothing else a mental health concern.
 
internals|cancer is not that bad / flees
 
on one hand, I agree with the RMs pushing things forward. We need that to prevent us from falling into a bikeshed trap. On the other hand, there are some serious unresolved questions that RC closes the door on
 
6:27 PM
forgive my ignorance but RM? RC?
 
yes
 
my acronym foo is a little rusty? what do RMs and RC stand for
 
@ircmaxell i) can you think of a convincing example for news.php.net/php.internals/87748 ? I can think of some not particularly convincing ones, but it would be good to have a concrete definite example. ii) I can't believe he's actually asking for proof of concepts for this stuff.
 
@Orangepill release manager/coordinator
 
gotcha
 
6:32 PM
Staph reusing characters! RC == Release candidate
:-)
 
@Andrea I got the same :P Although wasn't supposed to say yet
Congrats! Also,
 
This video series is hilarious
 
user895378
@ircmaxell "fixed spelling error in readme"
 
@Orangepill it's painful to watch the host ... she's trying so hard, she might burst something
 
6:44 PM
@rdlowrey precisely
 
@rdlowrey "added 7.0 instead of 7 in .travis.yml".
 
user895378
yeah, that's another good one
 
@tereško I think it's just British humor (humour?). She doesn't do straight-man funny (with a twist of ignorance) very well
 
I'm probably just not in the correct mood
 
The sad thing is, where she's questioning the science, all I could think was "This question needs to be closed"
 
6:56 PM
@Orangepill that 360p hurts my eyes though
 
@Jimbo ditto, I should've kept quiet
Oh well
 
@Andrea congrats :-)
 
thanks
 
user895378
@Andrea nice!
 
^^
 
7:15 PM
I'm going to try this one more time: My computer and my Nexus 6(Android) are on the same wifi network. I know there is a way for me to use my Nexus 6, use Chrome and go to localhost:somenumber and see my local files...but its not working.
 
you need to go to the server's ip address ...
localhost resolves to the client's ip address... you can only use it when the client and the server are the same machine
 
/me pokes head in
 
@Andrea nah
 
@NikiC Would it still be possible to get it in?
 
[As it's anyway better to not have void ^^]
 
7:23 PM
@Orangepill so the server's ip address would be from?...
 
@Andrea I assume so… we always did it that way…
 
my wifi or my computer?
 
@Andrea I don'T see why not. Do you want to take it over? :)
Honestly not sure it's necessary at all
 
@NikiC it would be for enum, but not for void
 
People may not care about new reserved words during minor releases.
 
7:33 PM
@benlevywebdesign The server's ip address is the server's ip address... I don't know how to make that any simpler.
 
Certainly haven't in the past.
 
i vote for "import" to be added to reserved words
 
why?
 
for future package management development.
 
Anonymous
 
7:41 PM
well I guess it would be doable in userland so it probably would not have to be language construct
 
8:21 PM
Can anyone confirm whether the following stack trace is correct for ReflectionGenerator::getTrace()?

https://3v4l.org/T4RcU

There's no mention of bar() in it.
 
@tpunt Looks wrong to me. /cc @bwoebi
 
@NikiC Cheers. Thought it wasn't correct.
 
@NikiC Will have a look at it, thanks. \cc @tpunt
 
Anonymous
Is there any way to share database schema between two databases mysql entities ? emphasis on user privileges.
 
@Orangepill Apparently Google does understand Javascript by reading the DOM so there's no need to do anything server sided. Have a read: searchengineland.com/…
 
8:33 PM
The year is 2015, and I have just been unable to speak to my Dad in France by telephone, because there was too much static on the line.
How the cocking hell is that possible?
 
@Orangepill Feels more like cringe
 
@deadsource I'm sure other search engines are following suit as well.
@NikiC you didn't like?
 
Abe
user image
13
 
@Orangepill Nope, definitely not my sort of humor
 
@NikiC well I have never been accused of having good taste :)
 
8:36 PM
@Abe Awesome :D
 
I love that they didn't even acknowledge any mistake or oversight.
They must be relying on the fact that nobody reads EULA's
 
Think I have messed up generator and root_generator ^^
 
9:09 PM
hmmm ... I hope this will also translate to DX12 games //cc @Fabor
 
Anonymous
@tereško you'r making me jealous with this awesome gaming stuff :)
 
when I start working again, I probably will add another video card to my rig, because 3440x1440 make my current card to stutter at "ultra" preset
probably FuryX ... it would make the most sense in my current layout and it would let the old card to have all the cool air it needs
 
Anonymous
@tereško have you played just cause 2
 
resi besi
 
@samaYo not yet. But I have it in my steam lib
I am currently stuck on XCom: Long War
 
9:21 PM
I'm currently stuck in X-Com the original game on DOSBox and nowaday games are watchable at youtube but nothing more ^^
 
Anonymous
Doesn't look too good (based on google images)
 
@tereško glorified tablet? it has 8GB of RAM and a 256GB SSD
 
@Andrea look a the teardowns of 2015th Macbook
 
@tpunt thanks a lot, fixed in master
 
@tereško Yes, it has a small mainboard. So?
 
9:25 PM
@Andrea there are tablets with at least half these numbers
 
@bwoebi np
 
@bwoebi Probably, yes. Though there aren't many ARM64 devices out there for now, and it's not going to have the same perf
Also, 256GB flash is not the same as 256GB SSD
 
@Andrea gpu capacity is laughable, cpu has a passive cooling (which means it cannot sustain the speed).
 
@Andrea yeah, major speed difference between flash and PCIe SSD ^^
 
@bwoebi also reliability, I think
 
9:27 PM
also, I wouldn't expect that SSD to have symmetric 500MB/s read and write
 
@Andrea don't know
@tereško oh, I'm sure it has.
 
@tereško Apple's laptops typically have faster SSDs than the competition, most (all?) of whom are still using SATA.
 
@Andrea who's using SATA? the competition?
 
@Andrea actually, most of the new ultrabooks are using M.2
 
@tereško interesting
 
9:29 PM
macbooks are in the "ultrabook" price bracket
 
The MacBook Air might be considered the first Ultrabook, it's one in all but name
 
@tereško yeah, but not since long?
 
If you test automation scripts that revert the current source repo from within the source repo itself, you're gonna have a bad time.
 
well, we are talking about this years macbook , so it is only fair to compare it to other ultrabooks this year
 
@tereško yeah okay… just saying that the MBPs from two years ago already used PCIe SSDs (with these 400+ MB/s)
 
9:32 PM
@Andrea Lenovo uses M.2 and PCIe.
 
both?
 
@kelunik M.2 is including PCIe?
 
M.2 is PCIe
No, wait, it isn't
Huh
 
@Andrea it's SATA and PCIe unified in one standard
 
.. it's confusing
in general M.2 is considered to be an intermediate tech between SATA and PCIe
 
9:34 PM
M.2, formerly known as the Next Generation Form Factor (NGFF), is a specification for internally mounted computer expansion cards and associated connectors. It replaces the mSATA standard, which uses the PCI Express Mini Card physical card layout and connectors. M.2's more flexible physical specification allows different module widths and lengths, and, paired with the availability of more advanced interfacing features, makes the M.2 more suitable than mSATA for solid-state storage applications in general and particularly for the use in small devices such as ultrabooks or tablets. Computer b...
anyway, away, games
 
^^
 
@hakre you should try Xenonauts then
 
...back, surprisingly quickly
@tereško Intel's GPUs aren't so bad. The CPU is passively cooled, true, but so was the N64 :p
 
that's not a a top-of-the-line Intel chip
 
ThW
@hakre You missed DOMNamespaceNode (nodes with names) eval.in/private/a3a718bd143a4c ;-)
 
9:40 PM
@tereško as long as you're not playing high-end games or compiling code… it's fine.
 
@bwoebi thus, the glorified tablet
 
@tereško uh, well, there are quite high-end games for tablets…
 
:)
 
ThW
@Andrea Nope this award would go to Sony
 
@ThW for... what?
 
ThW
9:44 PM
First ultra books, Sony had ultra portables for a long time
 
^ that sounds like "definition" thing .. not gonna touch it
 
Can you in PDO run two select queries back to back and get the row count for them? If so how come when I try this:

$selectTableOne = $db->query("SELECT * FROM table1 WHERE status = 1");
$rowCountOne = $selectTableOne->rowCount();

$selectTableTwo = $db->query("SELECT * FROM table2");
$rowCountTwo = $selectTableTwo->rowCount();

if ($rowCountOne > $rowCountTwo) { /** Do something. **/ }

It gives me this error:

SQLSTATE[42S22]: Column not found: 1054 Unknown column 'status' in 'where clause'.
 
does it work if you run only the first query? basically .. learn to debug
 
ThW
9:50 PM
@Script47 table1 has no column status. And why don't you use SELECT COUNT(*) FROM table1 ...?
 
@PeeHaa I was using back ticks and it returns the query row count separately, however this error only occurs when I run the queries back to back and use the row count in if statement. @ThW I tried both methods (this and COUNT(*)), I was originally using COUNT(*) then I thought that might be the issue, so I tried this.
 
My first guess: impossible
You are most likely doing something wrong
 
ThW
^ I support that - the error message is really self explaining
 
@ThW I'm not sure about that because if I remove the second query (select and the rowCount part) and the if statement and echo out the row count from the first query it works find which goes to show that the column exists.
 
How sure are you about that?
 
9:59 PM
Could anyone recommend a pre-built platform that has a wallet/deposit/withdraw feature. Im looking for a script/add-on that can be custom coded into an existing website without the need to use anything like wordpress, As a beginner its somewhat tricky when trying to define the correct search query for googles help! Im looking to use this fetautre on my website so users can add funds to there wallet / account balance and upon buying something the amount will be deducted from the balance. Thanks
 
@PeeHaa I just tried it again, so 100% sure. It doesn't work if both the queries are there for some reason and throws that error message.
 
And you still escape the column name?
 
Yep.
 
13 mins ago, by tereško
does it work if you run only the first query? basically .. learn to debug
 
@tereško yes, if I run the first query and the row count it works, it fails when I add the second query.
 
10:05 PM
is that the exact code, which you posted there?
 
Yes.
It seems that both the queries can't execute while the other is there for some strange reason, is this something regarding PDO or my code?
 
On what line do you get the error?
 
why would you call your tables "table1" and "table2"
that's somewhat retarded
 
@tereško this is a demo, obviously in my actual code I wouldn't call them that.
 
2 mins ago, by tereško
is that the exact code, which you posted there?
 
10:08 PM
Kids these days...
 
this is a demo refers not to the code posted here but to the table names, those table names were used because I was testing something, the code I posted here is the code I'm using. You misunderstood me.
 
Well I don't have retardsql installed on this machine, but it works fine for me on postgres
My money is still either on the fact that indeed the column does not exist (the error message is rather clear for once) or that the column is not properly escaped
 
@PeeHaa neither do I. I'm using MySQL.
 
:-)
 
@PeeHaa good that you haven't installed mssql ^^
 
10:12 PM
@bwoebi :P
 
@PeeHaa .. or that this is not the real code
 
Or that
 
wah, I always forget that git pull --rebase removes any merge commits -.-
 
10:28 PM
Can someone tell me what is wrong with the following PDO query? I am getting a 'Invalid parameter number: parameter was not defined' error?
$statement = $pdo->prepare("INSERT INTO accounts(owner, name, description, banner, username, url, category)
                                VALUES(:owner, :name, :desc, :banner, :username, :url, :category)");
                                $statement->execute(array(
                                "owner" => $_SESSION['retro_bounty']['username'],
                                "name" => $_POST['title'],
                                "description" => $_POST['description'],
                                "banner" => $_POST['banner'],
 
@LiamHardy desc vs. description
 
@Andrea Yea, I guess I only discovered your code shortly after, but there's definitely places in various extensions and other areas where overflow checks are not done through the API. Or was this a part of your BigInt branch?
 
@bwoebi I have solved that, now its not inserting, any idea why?
 
":owner" => $_SESSION['retro_bounty']['username'],
 
@tereško mhm?
 
10:34 PM
well .. I actually have no idea
I use bindValue()
 
@tereško you bind each parameter individually?!
 
yes, because I dont want the all to be bound as PDO::PARAM_STR
 
@tereško it only rarely makes any difference…
 
it's mostly habit
 
wtf google has cool widgets for everything now google.com/search?safe=off&q=etymology+histogram
 
10:38 PM
@tereško mhm
 
@marcio I can't see anything new except their new blue color in the menu bar.
 
Can anyone help me solve the query?
 
@kelunik can you see this? ^
 
@marcio Doesn't show up for me, but Google constantly tests new things.
 
@marcio If that trend continues you only ever have to visit google results page without going to actual websites! What could possibly go wrong?
 
10:42 PM
@PeeHaa I've heard they want to add a "buy" button for products search results.
 
@PeeHaa wrong… for you? nothing.
for website owners… no ads income^^
 
@bwoebi That's why you just have to build apps people use instead of content pages. :P
 
@bwoebi Quite the opposite. The info boxes have a huge clickthru rate. The SEO game right now is about writing content that Google semantically understands in an attempt to win the box.
Souce: Three days at MozCon recently.
 
and ironically the presentation is better than from www.etymonline.com/index.php?term=histogram
 
@Charles well… exactly that. The boxes. But every non-sponsored other link on that page has no chance.
 
10:45 PM
@bwoebi Yeeeup.
 
@kelunik is the src of your chat private? it's really nice!
 
11:10 PM
@marcio currently is on a private github repo
 
Anonymous
11:28 PM
@bwoebi Is it going to be open sourced?
 
@samaYo I'd like so… but that's @kelunik decision
 
using imagemagicic to "convert" file type and size. changing file to .png. recieving error when using resource location. "unexpected tvariable error"
all examples i see use file name "file1.jpg". but I need to also include file path. "folder1/file1.jpg"
 

« first day (1769 days earlier)      last day (3194 days later) »