« first day (2081 days earlier)      last day (2849 days later) » 

12:03 AM
@tereško ok why not just one common cookie for all devices?
 
why don't you try to figure outy it yourself?
 
I don't see any problem with having one common cookie for an specific user on multiple devices ..
 
@Shafizadeh and... how do you manage to tell which device it is, from that one cookie?
 
@FélixGagnon-Grenier I don't need to know which device it is .. I just need to identify user should be log-in or log-out
 
31 mins ago, by Shafizadeh
@tereško no no there isn't any restrict, I want user can log in into multiple devices
 
12:08 AM
so?
 
what you actually meant was you want user being able to log from a computer, or a phone, or a laptop?
that sure is a new idea right there ;)
 
I mean user should be able to log in into his phone, laptop, and any other devices at the same time.
 
in any event, nvm, I think I missed the point
 
Actually I want something like your Gmail account
 
it's mine.
trolling aside; which part more precisely? my gmail account have quite a lot of features these days
 
12:13 AM
@FélixGagnon-Grenier you was trolling so far ?? :-) !!
 
me? nah, i'd never do that. especially since I'm pretty bad at it.
 
ok look, you can log in into your gmail account by both your laptop and your cell phone, right?
 
ok, does google store two different cookie for your phone and laptop? Or the cookie for your phone and laptop is identical?
 
I have no clue, I never looked.
 
12:16 AM
do you think is there any problem if google just store one identical cookie for all devices?
 
we don't know that yet. from what I can quickly tell on my machine, they have a lot of cookies stored, and a feew of them seem to be session / authentification related
 
". . . a lot of cookies stored . . ." for one user?
 
yeah, for one user. for myself, on my machine, right now
 
So nevermind, I think I cannot follow what google does.
 
that is a sane idea. Trying to imitate google's authentification process with a guesswork from the existence of one or more cookies seems a bad idea
 
12:21 AM
agreed
 
 
3 hours later…
3:03 AM
Hello.
I have doctrine entities. One of them has unique field that based on previous records. Where to put this field value generation (retrieving previous records, calculating new one, set value into entity)? Inside entity? Into controller? Into repository?
 
 
2 hours later…
4:56 AM
starting GoT. must buff the whole thing if I want to be able to listen to more than two minutes of it at a time JUST LOAD ALREADY!
 
5:16 AM
Hi..Is anyone here? i need to remove all input form fields. for ex: $s = "<textarea name=addr></textarea>'; but my expected result is <name=addr></textarea> how to achieve this using php regular expressions.bacause need to remove input,textarea,select,option
 
@soundari you might be better off using strip_tags() php.net/manual/en/function.strip-tags.php
 
I been approached by what looks like a legitimate publisher, to write a book for php 7 ...
 
also, morningz
 
5:26 AM
nin
 
anyone heard of it ?
 
@Félix Gagnon​‑Grenier , actually this one is security purpose
 
they got a php 7 book, but it's a basics book ...
 
@soundari yeah, kindof. it also happens to strip tags, which I thought was your goal. It might remove more than you need though. That being said, I wonder what your underlying goal is. Why would you remove the input tags from a string. can't you just produce another string withotu the tags?
 
@FélixGagnon-Grenier, this is scenerio.. dont do disable strip tags..
 
5:33 AM
you mean it's an exercise? you are tasked with removing tags without using strip tags?
 
@JoeWatkins they asked me to write a book for them.
 
@JoeWatkins actually, they asked me to write that book for them
or rather, they asked to write an update to their php cookbook. not sure if that's the same one
i decided against it after reading some reviews about how they work with authors
also, their books are soso in general.
 
@FélixGagnon-Grenier, yes correct
 
5:38 AM
@soundari oh. well, generally you won't be able to match html with regexes, but you might start from regex101 and succeed in matching a few selected tags
 
@FélixGagnon-Grenier, can u explain me briefly?
 
@Gordon where can they be found ?
 
@soundari .... yeah.. enter your test string in the field, then try writing regexes to match what you want from your test string
 
I looked at the preview of the php 7 one, seems basic ...
they're asking me to write one called "Mastering PHP 7"
 
5:40 AM
I meant the reviews
 
ah, sorry. one sec. have to find them again
 
thanks, decision made ...
 
morning
 
moin bob
 
@JoeWatkins another reason I declined was the stiff deadline. they aimed for earlier this year and asked six months prior. that would have meant two pages per day, which was too tough to do given my current time budget.
 
5:50 AM
One question @JoeWatkins … where do we make the cutoff for 7.1 RFCs? I see Richards var_* RFCs more controversial, but Dmitrys async signal handling may be really useful and probably should definitely in 7.1 IMO.
 
well
dmitry's was created first ... also, I'm not sure there is a consensus regarding the var_type/var_info RFC's
there should be a consensus that this is a useful thing before it goes to voting ...
July 29th is the last day you can open a 1 week vote for ...
 
@JoeWatkins Well, I personally don't particularly like the var_* RFCs
 
I would say that dmitry's can go ahead
 
@JoeWatkins well, IMO we should have at least one week of discussion though
and that week will end later than June 29th
 
not really required ... if I were the maintainer of pcntl, I could commit such changes without discussion ...
also, this doesn't require a 2/3 majority either, I don't think ...
self contained change in ext/pcntl, not language change ...
 
5:58 AM
Good morning
 
@JoeWatkins The point of discussion here is more the trigger (enabled by default? INI? function? extra option on signal handler?)
 
meh, like it says in the rfc, it doesn't really matter ... have that as a voting option, but we don't need to discuss the advantages and disadvantages of ini entries, and compare those to functions ... for the millionth time ...
 
Gon
Moin
 
@JoeWatkins The problem is that Dmitry favors an INI entry :-/
 
we try not to introduce new ini entries, people will probably vote to reflect that, right ?
anyway, discussing it on internals for another week isn't going to resolve the question ... the vote will ...
 
6:03 AM
Mornings
 
@JoeWatkins might be worth adding this to the coding standard then
 
not July 29th, June 29th @bwoebi ... I'm sure you figured that out anyway ...
@Gordon well that would promote it from just a convention ...
 
@soundari so... matched anything yet? :-)
 
it's arguably a silly convention for some extensions, and we're discussing an extension right now, and most of php is extensions ... tricky to apply as a standard, I think ... but in general we don't like new ini stuff
I like the third option, get dmitry to do that @bwoebi
 
@JoeWatkins perhaps comment on the ml? :-)
 
6:12 AM
can i ask an sql query question here
 
@Crysis you will never know unless you do
@JoeWatkins if it helps to reduce reiterating its pros and cons each time someone adds an ini setting, it might be a good thing to do.
 
INSERT INTO normal_days (user_id, department_id,designation_id,date_cur,clock_in,clock_out)

SELECT DISTINCT clo.user_id, design.department_id , uses.designation_id, clo.date,clo.clock_in, clo.clock_out

FROM clock clo

INNER JOIN holidays AS hol ON hol.date != clo.date

INNER JOIN users AS uses ON clo.user_id = uses.id

INNER JOIN designations AS design ON design.id = uses.designation_id

WHERE date(clo.created_at) = "2016-06-23"

AND TIMESTAMPDIFF(second,clo.clock_in, clo.clock_out) = 28800

AND !(DAYOFWEEK(clo.date)=7)
this s my query but it displays syntax error on distinct
if i remove the insert line at first it works
if i include insert it show eror
 
@JoeWatkins I agree, we should just prohibit INIs which alter inherent workings of a program
 
o/
 
I did talking on the ml
 
6:31 AM
hi
 
Wes
6:44 AM
morning
 
morning
 
Gon
6:59 AM
morning
 
To terminate the script after the info is dumped, prepend the bitwise NOT operator:

~r($var);   // html
~rt($var);  // text
 
@Danack hm, rather interesting
 
7:15 AM
hi all
 
from client side - very nice, opening the code file made me bleed from all possible outputs
 
morning
 
I wondered how he implemented that prepending modification, but... github.com/digitalnature/php-ref/blob/master/ref.php#L841
 
Is there some pattern as webdeveloper you can stick to, when working as 'lonely' developer ( scrum / agile ) = for teams?
 
morning
@Duikboot can't you apply scrum to yourself? :)
 
7:21 AM
Im totally new to it :) I was just looking for some info but it seems both are mostly used in teams?
 
@JoeWatkins thanks :-)
 
Make it sense to set an mysqli_connect or die () ? or can i just leave the or die () ?
 
Have a "doctrine/symfony" question about relations, I have some kind of "person - person_town - town" relation. So in my doctrine, I have "person", "person_town", and "town" classes. In person_town, I have 2 "manyToOne" properties supposed to link to the good objects, and attributes (date, comment, ...)
Now, I try to build a "person" form, in which I should be able to insert towns with date and comment (if needed)
How can I do that? Do I need to add a "towns" array in the person class and a "persons" array in the town class, with inversed/mapped by on jointable?
Anyone has a good example to show on how to do that? (tut somewhere?) can't find a clear example to fix that...
 
though kanban focuses more on the process side, then on the coop side
 
Checking! thx
 
7:30 AM
@Duikboot it doesnt make any sense to use scrum as a single person. its far too heavy.
also, its rituals are aimed at teams.
on a sidenote: you dont need any methodology to be come agile. agile is much more a mindset than a specific methodology
you can easily adopt the agile manifesto's preamble and it's values and principes without doing any sort of scrum or xp or whatnot
 
Wes
@Julo0sS why did you mention the form? how is that relevant to your question?
 
@Wes well because it's when I tried to create the form with "personType" and formbuilder that I noticed I was wrong with the relation. At that point, I had no "inversed/mapped" attribute in my person class, so I couldn't create a town form field in the personType form
@Wes sorry for my english
 
Can u Tell me what is the easiest way to call a php function on html button click ?
 
@Gordon Ok thanks ! I think I might check out some techniques and read some articles about that :)
 
@Traxstar by making the form action of the form the button is part of point to a php script executing that function
 
7:39 AM
so somethink like this ?
<form method='get' >

<input type="button" id="btn" value="click">

</form>

<?php
if(isset($_GET['call'])){

function anyfunction(){
echo "added";

// your funtion code

}
}
?>
 
ThW
Morning
 
Wes
i have no idea about doctrine and symfony, though @Julo0sS i wanted to answer but i don't have knowledge of these things
 
Skip that function inside your if statement.
 
Wes
it looks like you are creating too big aggregates, though
 
@Traxstar almost. there is no input named "call" in your form, so the anyfunction will never be called. also, you dont need to specify get as an action because that is the default anyway. also, you need to make it a submit button.
 
Wes
7:41 AM
ie, the person class should relate to town only by id
 
so i will do post cuz all forms in the project are in post - and how do i define the get parameter that should be submittet @Gordon
 
whether you use post or get depends on what the request is supposed to do. if you intend to add something to a database, then post is better. get requests should be idempotent and save. likewise, if you are using post, all form inputs will be submitted as post data in the post body. if you need to also add a get param for some reason, you need to specify it in the form action attribute
if you want to submit the form from an input type button instead of submit, you need to use javascript to listen for the click event and submit via ajax
 
ThW
@Traxstar forms that change data should be post, forms that fetch data (search) get.
 
@Gordon Thats rly helpful, thanks a lot
@ThW
Thanks ! will recognize this
 
Gon
hoi!
 
7:48 AM
Morning
 
Morning
 
I have a csv file that has 2 columns and 50 rows
I want to make an array that looks similar to [[0]=>['column1']=>['column2'],[1]=>['column1'=>'column2']]
sorry i meant , [[0]=>['column1'=>'column2'],[1]=>['column1'=>'column2']]
 
Moin
 
Gon
o/
 
Anyone familiar with Homestead/Laravel?
 
Anonymous
8:06 AM
It's known as Laraturd in here.
 
Anonymous
The hard-core fans, as "laratards"
 
@samayo we might not like Laraval in here, but that's somewhat offensive
 
Wes
yeah but let's not be too harsh with newcomers...
 
lol, anyhow, I get this error; Only variables should be passed by reference
Anyone got ideas of why?
 
!!? Only variables should be passed by reference
 
8:07 AM
Search for "Only variables should be passed by reference" (https://www.google.com/search?q=Only+variables+should+be+passed+by+reference&lr=lang_en)
• Strict Standards: Only variables should be passed… - $instance->find() returns reference to variable. You get the report when you are trying to use thi… (http://stackoverflow.com/questions/2354609/strict-standards-only-variables-should-be-passed-by-reference)
• php - Only variables should be passed by referenc… - // Other variables $MAX_FILENAME_LENGTH = 260; $file_name … Assign the result of explode to a vari… (http://stackoverflow.com/ques
 
I've setup a vagrant/homestead server that is up and running
however, one page isn't working.
 
Anonymous
Eh, I forgot the sarcasm tag
 
I only get the code that was used to build the page and the error
Ideas of why this error is coming up and solutions?
 
@JamesSnowy please refer to the google search above
@virepo umm, $array = array_pad([], 50, ['column1' => 'column2'])
 
Sure, but could someone describe what the error is?
Define the error.
 
8:11 AM
@JamesSnowy You are passing a constant value to a function that takes an argument by reference
function byref(&$var) {}
byref('xyz');
 
Oh, so wait.
Do you mean like, the function takes a reference as an argument, however, I have assigned it another argument?
@Leigh
 
Wes
did jon snow die again? :|
 
I mean you have a function that takes an argument by reference, only variables can be passed by reference (hence the error), and you are passing something that isn't a variable
 
Oh, now I see.
Thank you so much, this will certainly help me!
 
Wes
english peeps. what's the difference between aggregate and aggregation?
 
8:17 AM
Now, a follow-up, am I able to somehow search for integers that are passed as arguments?
 
I'm sure you are
 
@Wes verb and noun.
 
aggregate can be a noun
 
Morning room
 
morning!
 
8:24 AM
> aggregate is a mass, assemblage, or sum of particulars; something consisting of elements but considered as a whole while aggregation is the act of collecting together (aggregating).
thanks for making me look this up. TIL.
 
@Gordon so aggregation is the act of creating an aggregate...
 
Okay, so I've got an undefined variable error, however, I can't seem to find why?
 
@FlorianMargaine pretty much
 
Here's what I've declared; $terms = $termsOfUse;

// Declares Terms as a variable

$termsOfUse = TermsOfUse::getTermsData();
 
not really surprising
 
8:27 AM
It is saying that the variable termsOfUse isn't defined
however, I believe that I've defined it?
 
@JamesSnowy $terms = $termsOfUse is after $termsOfUse = ..., right?
 
@FlorianMargaine yes
 
let me see
oh, one moment, LOL
 
@DaveRandom So that I can set up an account for you on my machine
@JoeWatkins don't forget to close typed props :)
 
Is there any way I can enter an empty parameter?
I am using explode and it requires 2 parameters, i tried making one called empty and assign it to an empty string
it gave me this; Empty delimiter
 
8:32 AM
why does my vampire sense tingle?
 
Why would you need explode in that case?
@Gordon hehe
 
I got the code from another developer, by the way, what does explode do?
 
!!docs explode
 
[ explode() ] Split a string by string
 
Split a string by string?
 
8:33 AM
yes, it splits a string by string
 
I removed the explode,
 
@AnmolRaghuvanshiVersion2.0 I love you too :-)
 
I removed the explode, however, I got another error..
Uncaught TypeError: Argument 1 passed to App\Exceptions\Handler::report() must be an instance of Exception, instance of ParseError given
 
Hi
 
8:36 AM
Could anyone define this error?
 
@Abhishrek Who let you out of 17? :P
Hi
 
@PeeHaa Work =(
and also curiosity
 
@Abhishrek I hate work :)
 
wow all these errors
once you've done an error, another one comes up...
guess that's programming, lmao
 
8:38 AM
@PeeHaa I have a client who cannot use composer and our libs force composer :-|
 
@JamesSnowy no, it's inexperience/lack of knowledge with/about the tools you are using
 
I thought the only sensible help I could find on that topic is in 11
 
well, true, first time is a pain
 
@Abhishrek Package it up with pre-installed composer packages is the only thing you can do
 
ugh
 
8:40 AM
Why can't the client use composer btw?
 
Uses something called futurequest as a host
 
@Abhishrek look up what a .phar is
 
@Abhishrek So shared hosting?
 
yep
 
8:43 AM
sucks
:(
 
the .phar is the standard way of distributing "everything bundled" packages
 
@FlorianMargaine Yeah, but shared hosting
 
let the client deal with extracting the .phar
 
If the client needs to extract it might as well just make it a normal zip
 
yeah, I guess
 
8:47 AM
It's not like it sounds like they know what they are doing :P
 
I was thinking about suggesting them
to use the only option they have, install the thing on your system. And upload the thing via ftp
 
posted on June 27, 2016

New Cyanide and Happiness Comic

 
but that would break more things than fix :-/
 
@Abhishrek I strongly recommend packaging everything up and then deploying it all in one go to servers if you can't 'just' user composer - but hypothetically:
15
A: Run composer with a PHP script in browser

DanackYes you can run Composer with a little PHP wrapper. All of the Composer source code is available in the Phar file, so it can be extracted and then you can run it after setting up an InputInterface to replace Composer expecting the commands to be passed in via the command line. If you setup your ...

 
@Danack God that is horrible.
+1
@Feeds I lolled
 
8:51 AM
Does anyone use JSON Pointers - and know what they should be called e.g.
"formErrors": [
    {
      "name": "/email",
      "reason": "Email too long, maximum length is 256"
    },
]
'name' seems like the wrong thing......though 'pointer' seems even wronger.
 
@Danack Hmm why did you get 2 downvotes on that?
 
I've always used 'route', @Danack, though I'm not sure it's any more right.
 
@Danack I don't even understand what you are trying to do :P
ugggh rfc aint nobody got time fo dat
 
@PeeHaa Problem Details for HTTP APIs + JSON Pointer aka not just making shit up as we go along.
but having some kind of schem(e|a).
@MattPrelude that would confuse my front end devs....
 
I see tnx
 
8:54 AM
@PeeHaa people have taste?
 
Anonymous
Mornin
 
@Danack :P
 
Wes
@Gordon yw. TIL too, but i will forget it in few minutes :P
 
@Danack path?
 
@Danack Yikes!
 
9:08 AM
@Danack I am not using them, but I wonder why you need them here given the last example in section3 of your first link
 
hey how can I extract the text inside <a>text</a> using preg_match_all
 
Damnit. I delete half my comment and sneezed which made me hit enter :P
 
I can extract the data of href but not the content of <a>text</a>
 
<a>(.*?)<\/a>
 
@PeeHaa is it "sneezed" or "snoze"?
 
9:11 AM
Any MYSQL here?
 
I wonder
@JamesSnowy nope, I'm Florian, hi
 
@FlorianMargaine sneezed
 
@FlorianMargaine lol
 
Hey, too bad, lol.
 
:)
 
9:12 AM
154
A: Grabbing the href attribute of an A element

GordonReliable Regex for HTML are difficult. Here is how to do it with DOM: $dom = new DOMDocument; $dom->loadHTML($html); foreach ($dom->getElementsByTagName('a') as $node) { echo $dom->saveHtml($node), PHP_EOL; } The above would find and output the "outerHTML" of all A elements in the $html st...

 
@PeeHaa english is hard
 
s/hard/stupid
 
@FlorianMargaine that's because it's a non-european language
 
lol
 
@Gordon badum tsh
 
9:13 AM
Enjoying trading GBPUSD today :)
 
Wes
wondering what GoT will be about now that all characters are dead? melisandre couldn't save jon snow this time
and sorry for the spoilers... you watched got already, right?
 
@Wes Shut up
 
Wes
ha. they were fake spoilers.
 
lol don't flag :P
 
9:17 AM
a fake spoiler is still a spoiler.
 
Wes
did i get flagged? lolll
 
yeah :)
 
ah, so jon snow is someone from got. I was already wondering who you are talking about
haven't watched a single episode of that yet. will binge watch later when its all over
 
@Gordon I started binge watching it once, I got halfway through season 2 and lost interest
 
binge watching GoT?
you got some hell of free time
 
9:23 AM
@Gordon I'd prefer to have standards that apply to all of the APIs that we write.....rather than having custom stuff per end-point/api.
 
hahaha thank you cheers
 
@FlorianMargaine I dont.
@AnmolRaghuvanshiVersion2.0 game of thrones
@Danack that's why I am asking. pointer seems non-standard whereas the last example seems standard
 
oh,does every one like got here?
 
9:25 AM
"name": "/email",
vs
"name": "email",
It's a really simple object that is passed in for the first end-point where we showing per variable errors.
 
Hey again, is there a way to iterate through a jQuery datatable and call a function on the content i get ?

For example i got a table with row url , i call getLinks($url) on every row i get ?
 
@AnmolRaghuvanshiVersion2.0 the books are shit.
I gave up when there were 200 pages setup for a battle, and then someone uses magic to kill the enemy king and stop the battle....
 
@Danack wouldnt you also need to include a type then? there is a type in the examples. you could make that something that indicates a json pointer.
just throwing in random suggestions.
 
tnx guys
 
9:31 AM
Good day room
 
Good day pain
@pinepain :(
 
yeah, i never thought i will be suffering without it
 
At least git grep is still up :)
 
i use google search on github.com/php/php-src =)
but easier way will be just pull changes from master locally
 
so...
are we looking for a new host for lxr?
(if yes, I can see if I can get it hosted on platform.sh)
 
9:40 AM
mooooooooooooooorning#
 
Anonymous
\o
 
moin
 
@pinepain I think that about sums up the entire internet tbh
 
hm, not sure we have ctags :/
 
@PeeHaa sure, suggestions for how I can sanely give it to you? You have an https form I could submit?
oh wait, public key is public
 
9:43 AM
:P
 
:-P
 
Just mail the thang
 
@DaveRandom can't say it about entire internet, i will be absolutely fine without fb, twitter and tons of other websites, including but not limited to wikipedia
 
will do shortly, ty
 
oh, it's a perl CGI thing
could be fun to get working
 
9:43 AM
"fun" :)
 
@pinepain I was referring to the "what? we were hosting something for you? oh, no, that's not our data center"
 
ah =), that's strange situation
 
But yeh I could also live without 99.99999% of social media
 
@DaveRandom duh, you could've just said "without any social media"
 
not sure I could live without wikipedia though, it's given me so many hours of work-avoidance that looks semi-legit
 
9:47 AM
can github considered as social media?
 
^
also SO?
 
@pinepain They try to be ^^
@DaveRandom I was just saying that 1-0.9999999 is a ridiculously small number
 
@NikiC Yeh but the number of social media upstarts per day makes it still a meaningful number in that context, I suspect
 
@Gordon we're actually also including api error codes, which I didn't include in the example....although I can see the value in having standardised types which include a URL that describes the problem, I don't think the organisation I work for is ready for that. aka I don't want to try to standardise on that stuff as it would be too much effort - each API having it's own set of error codes is far more manageable.
for now.
@pinepain don't be silly - Github is a mmorpg
9
 
what internals then is?
 
9:53 AM
A fantasy role-playing game - where people pretend they are knowledgeable about programming.....
 
rapid rise in laser eye surgery as glasses wearers fear a purge of anyone who "looks like they might have been reading about stuff".
2
 
@DaveRandom ha
 
@Danack what a charming idea. let's make this into a card game and fund it on kickstarter
 

« first day (2081 days earlier)      last day (2849 days later) »