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

00:04
"pen's Jack" or "Jack's pen" ?
I want to say: the pen which is belong to Jack
The latter ("Jack's pen")
01:01
Alas.
@Andrea I'd be happy even just being able to use : instead of =>.
@Trowski that had been suggested for 5.4, actually
Does anyone happen to know of a repo that contains some compiled versions of Twig templates? I want to check some stuff....
and am feeling lazy.
@Andrea Maybe we officially add vectors and maps using a similar syntax, where {'value1', 'value2', 'value3'} gives you a vector, and {'key1': 'value1', 'key2': 'value2'} gives you a map.
@Trowski nah, they should use the same syntax as arrays, for consistency's sake
01:13
How would it know you want a vector or map vs an array?
@PeeHaa please don't get rid of . it lets me focus my attention on people with interesting problems :)
it's one the two tags I frequently check
it's not uncommon for actual PHP 7 bugs to pop up there
> li₃ is the first and only major PHP framework built from the ground up for PHP 5.3+,
it's useful because there's a lot of stuff changed in PHP 7 that causes 7-specific issues
@Danack lol
@Danack surely they mean laravel :p
btw this smells like either user error or something bad.
@Danack my general assumption is segfault = bug in PHP itself
even if you do something really silly, PHP shouldn't throw a segfault at you
01:18
would be the counter-point.
They've got enough skill to try to compile from source, but not enough skill to notice that they're reporting bugs for dead versions of software...
oh, they passed CISA
@Danack ohhh
I thought you were complaining about the cross-compile. Ahahahaha
It will be one of the two things I said....but I wouldn't like to place a bet on it just yet.
I meant the other one on reddit, where the core dump is also 'truncated'.
whatever that means.
01:34
@LeviMorrison this bug may be of interest to you: bugs.php.net/bug.php?id=71082
Wes
Wes
hack's syntax is better (runs fast)
Wes
Wes
i actually think it. would never break the signature with php's "closure" syntax
02:18
user image
8
@Danack Sheephpdog
Oh, what a surprise. -0.0 didn't work properly... but neither did +(-0.0). Hah. Perfect mirror of eachother :D
02:34
@Andrea It was known at the time of RFC it was incompatible.
Guess I should document it.
Although honestly I wish I could change it.
I found out too late in the RC process about a little detail to change it :/
@LeviMorrison I think HHVM's syntax is ugly so I'm glad you didn't change it
If we have short-closures then the grammar is cleaner by putting it after.
That's all :D
heh
did you know? using types makes PHP sad: function typed( ): array{}
03:20
2 things. First, there's a missing quote here echo '<br><center><div class="success">...</div> if it's part of your code, modify your question as it's throwing off Stack's syntax highlighting. Second, you say "update the existing users fields", but I don't see an UPDATE table, I only see an INSERT INTO. @LeviZoesch — Fred -ii- 15 hours ago
woops
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. After the user validates their email their permission will change to be able to see the next form. These forms work great, a...

Havent had any movement on this. I believe this is a simple fix, just need some assistance / questions.
Wes
Wes
03:46
elm.style.backgroundImage = "url('" . img.src . "')";
spent 2 minutes to spot this
It didn't error?
Wes
Wes
it did, but i couldn't notice the error
Sep 18 '13 at 16:35, by Danack
function __constructor(FileFilter $previousFilter) {
    echo "Why isn't this being called?!";
    $this->previousFilter = $previousFilter;
    $this->srcFile = $previousFilter->getFile();
    $this->destFile = $this->modifyFilename($this->srcFile);
}
Wes
Wes
hahaha congrats :D
04:03
@ircmaxell How up-to-date is this bug report? bugs.php.net/bug.php?id=70743
It says on the site...
Modified: 2015-10-19 20:15 UTC
that is not the problem
Wes
Wes
04:30
try disable jit superglobals?
04:49
Hi guys! In the near future, I might have to help a friend make a simple online store. What would you say, what is the most painless and convinient way to get started? I'm not yet familiar with wordpress, but I'm thinking about using it. Or should I start from scratch? Are there any php libraries you'd recommend? Any information would be apprericated
Wes
Wes
@Eduárdó prestashop or something
@Eduárdó buy a template
lol
How do i pass codility PHP test?
phpfiddle ?
I have to pass it if i wanna get a job
Any tips to solve problems using PHP?
05:11
I dont understand wha tyou're trying to ask
2
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 side pane into print-hidden and it was working till the version of Google Chrome 46.0.2490.71 but after next update in @media pri...

if someone can help me
Wes
Wes
05:34
can you please not spam everywhere
Wes
Wes
i'm in two rooms and your question is in both
Sorry for that but my intense was not that
Wes
Wes
06:48
07:04
Use CSS for it margin problem
I'll look it up
@GettingNifty the problem is after chrome update version 47 onward margin doesn't effect in print media css
It's a no function you can use
Noupdate or something
07:26
@GettingNifty in old chrome @media print margin allowed but in latest update after 47 it does not allowed margin media css
that is the issue
 
1 hour later…
08:27
I know this is not at all related, but has anyone here used Kodi before? I have a question about naming convension
Kodi as in the media center used on the Rasberry Pi devise
 
1 hour later…
09:28
Oh I was thinking of the <noscript>"Your browser does not support this code.</noscript>
@SagarNaliyapara
@Priyank57
 
1 hour later…
10:33
happy saturday @kodeart
:-)
user924016
mornings11
very good morning...
@tereško one question: When I asked such a question (preventing of vote to him own post), that idea (sending a vote form him with 0-value-0-timestamp) came in your head or you knew it before I ask that question?
10:55
Something that just increased my faith in Stack Overflow question askers but reduced my faith in close vote reviewers: finding this absolute gem of a question in the CV review queue, almost too late to save it: stackoverflow.com/questions/34367115/…
I can reproduce the behaviour the asker describes, and it's completely insane. What the flying fuck, PHP?
hi
for this error, what we can do?
Unable to find 'backend\models\UserSearch' in file: C:\wamp\www\yii/backend/models/UserSearch.php. Namespace missing?
i'm using Yii2 with yii2 for beginners book
other sections like statuses or Usertypes are working, but other sections not!:-?
11:14
@Shafizadeh it's the former
I made it up on the spot
These ^ two sentence are inconsistent ..! you knew it former or you made it up when you saw my question?
when some talks about "A or B", then "former" refers to A and "latter" refers to B
ow ! I see then !
basically, in multiple-choice sentences, former is the fisrt option and latter is the last option
ah, is there any specific word for middle choices ?
11:23
nope
ok, never mind
look
there is another solution using a TRIGGER
what is your opinion about it?
any ideas guys? still stuck on a mistake i guess :/
user924016
@MarkAmery did you bench the php script itself?
yes, there is, but I really dislike TRIGGERS, because they are kinda hidden
being hidden is a bad thing?
user924016
11:25
@TheGuy well I have never seen a path like C:\wamp\www\yii/backend/models/UserSearch.php which switches between / and \
you cannot tell whether table has complex triggers just by looking at it
btw, (as you know) I have multiple Posts table, so using a TRIGGER is not proper for me, right?
@RonniSkansing - the most interesting thing is, statuses and Usertypes are working
please tell me that you are not making a separate table for each post
user924016
@TheGuy what is interesting about that?
11:26
:-)
user924016
THe most interesting thing is your path is obviously not a valid one
user924016
Not that something else works
so, what can i do ?:-?
user924016
Stop using windows or try to fix your path
@tereško well, I have multiple Post tables. Because my website is containing several separated parts (theirs table-structure are really different) and I can't create just one table for both of them.. However I know, my structure is kinda crazy
11:28
:D tnx for the solution :)
i've made a mistake on profile i guess, is there any example for this book ?
i mean, if the path is invalid, why these two are working?
user924016
vnm.. I dunno why the others are working
user924016
I havent even seen any of the stuff you have done. So it is impossible to know if you made a error while typing
user924016
or the book is outdated or etc
yii2 for beginner
user924016
isnt their docs enough?
user924016
11:32
the Yii2 doc. Is that not enough? What are you hoping to learn from the book?
honestly, I'm not really sure :/
because this is the one book which covered backend
user924016
Okay
user924016
In Yii1 theres a crazy config file where you have to setup modules.. is there something like that in what you are doing?
a lot of codes, did you read this book already?
user924016
Nope. I am not going to read it =)
user924016
11:37
But could you pastie some of the code that is not working, and something that is.
sure
:)
user924016
Like.. a case where you have hard time making sense that the file could not be found while the other one could
f.x, see this: use yii\helpers\Security;
Undefined class
says
user924016
I am not sure how that relates to your problem, before I see and understand some specific code which is failing for you
user924016
The original error you had was
*Unable to find 'backend\models\UserSearch' in file: C:\wamp\www\yii/backend/models/UserSearch.php.* right?
11:42
yep
and of course for other sections:
user924016
could you paste in that file in a pastie
that - backend/models/UserSearch.php ?
Morninhg
user924016
o/
user924016
@TheGuy sure and whatever else code you added that triggers the error
11:44
good evening :o
@RonniSkansing - UserSearch - backend/models/UserSearch.php = paste.ubuntu.com/14096531
exactly like the book
second one: Unable to find 'backend\controllers\ProfileController' in file: C:\wamp\www\yii/backend/controllers/ProfileController.php. Namespace missing?
user924016
Okay.. and one that works like expected
codes: paste.ubuntu.com/14096540 - says, this line, not defined: use backend\models\ProfileSearch;
and this is the ProfileSearch.php - from backend\models\ProfileSearch - paste.ubuntu.com/14096550
something is wrong i guess
:-?
user924016
Which one was the one that worked as expected
no
this is working: statuses and Roles
user924016
example please
11:50
user924016
okay. So would you say the namespace follows the way the folders are named?
yeah
user924016
So lets take one of those who are not working
but, there is a difference when i was creating this profile, this is the picture:
user924016
UserSearch - backend/models/UserSearch.php = paste.ubuntu.com/14096531
user924016
11:53
is the file placed in that folder?
user924016
Because the namespace is namespace common\models but the file is placed in backend\models
yeah, everything is good
let me check it completly
user924016
should the namespace of UserSearch.php be backend\models ?
says: Cannot redeclare class common\models\User
user924016
Is this after you renamed the namespace?
user924016
11:55
Cause that would make senase
yeah, after edited to : namespace backend\models;
interesting :-/
check this:
namespace backend\models;
user924016
well your docs say
user924016
/**
 * UserSearch represents the model behind the
 *search form about `common\models\user`.
 */
user924016
but I do not see a use \common\models\user;
@tereško I think you are disappointed of my website completely ;-) ! Well, there is a new approach for my problem. But I can't understand it.. Can you?
user924016
11:59
@TheGuy do you understand what I mean?
yeah, let me check it
@Shafizadeh that syntax is not available in MySQL, but his idea is to have a UNIQUE KEY set for multiple columns
user924016
@TheGuy I am guessing that errors come from
- Wrong namespace
- Wrong or missing use statements
then again , I thought you already were using multi-column keys
@RonniSkansing - it seems yeah, but i've did this : paste.ubuntu.com/14096640
user924016
12:02
@TheGuy but isnt that the userSearch.php file which is placed in backend/models ?
that is placed in backend/models
user924016
yes
user924016
so shouldnt the namespace be backend\models ?
i think, that problem is solved :-?
with : namespace backend\models;
user924016
? The file you just pasted had common\models
12:04
no
i don't think so
`PHP Fatal Error – yii\base\ErrorException
Call to undefined method common\models\User::getroleList()`
new error :D
user924016
which file?
in this file from common/models/user.php
user924016
Yea, it does not have function called getRoleList
ohh, i didn't see that :\
:\
user924016
But I think you found out what the previous error was called by.. Did you mistype or is the book wrong?
i just copy pasted the codes from book, i think that was the book problem, because i saw many problems too
user924016
I think you should drop the book
for example, the writer didn't say it which file we should do, i've already have two User model
user924016
Sorry
:D
and i added that method,again says: Class 'common\models\Role' not found which is i don't have any Role file on that directory, i don't know.my skills sucks or this book...:/
@RonniSkansing - Usertypes is working too now
12:24
@bwoebi I've worked out why crypto-enabled websockets are failing
Basically where you're peeking at the stream contents for a precise fread, you're peeking at the encrypted data, and never finding your token.
@RonniSkansing - i've fixed the users too ;)
just two left
@kelunik acme client questions incoming
12:54
@PeeHaa Happy Saturday... :-)
@kelunik Now everybody is using apache ya know... ;-)
> [2015-12-19 12:58:40] ACME.ERROR: Kelunik\Acme\AcmeException: Unknown user: www-data in /srv/acme-client/src/Commands/Issue.php:88
Oh wait. I'm not on the wrong branch am I?
@tereško (sorry I disconnected) are you sure? so shit, is there any similar syntax for that?
13:15
@PeeHaa there's a --user switch ;-)
Damn you. I was 1 second away from pressing the submit button on github
Let me rewrite it to --help bug... :)
Why --help bug?
How am I else suppose to know there is a --user switch?
bin/acme issue --help
But I am running setup ;-)
13:19
451
Q: How do I specify unique constraint for multiple columns in MySQL?

NiyazI have a table: table votes ( id, user, email, address, primary key(id), ); Now I want to make the columns user, email, address unique (together). How do I do this in MySql? Of course the example is just... an example. So please don't worry about the semantics.

[root@ossbinaries acme-client]# bin/acme setup --help
Usage: bin/acme setup [--email email] [-s server, --server server]

Required Arguments:
        -s server, --server server
                ACME server to use for registration and issuance of certificates.
        --email email
                Email for important issues, will be sent to the ACME server.
Or don't you want issues opened against that branch yet?
Setup shouldn't need a user, will check when I'm at home
Renew might not have a user option yet
I'll complain when I get hit by it :P
@tereško good, but how a UNIQUE KEY set for multiple columns can prevent of voting OP to himself ?
You need me to still submit the issue or not @kelunik?
13:22
aaaaaarrrh
do you really not get it?
you need to make sure that one user can only vote once per post
if a user can only vote once per post, and writing a post automatically creates a 0-vote in the table, then said user cannot vote again
:-)
what you said is your approach ..! I got it yesterday. I thought there is a alternative solution
the alternative solution is to use TRIGGER
and the post you linked to was not about that
btw, having a unique on post_id, user_id is completely obvious
@tereško ok, but what is your opinion, trigger or 0-vote-value?
I dont like to use triggers where there is another option
also .. .seriously, you linked me to this: stackoverflow.com/questions/34363469/…
do you really see something that I dont in that post?
.. anyway, I am AFK ... I need to go to market to buy stuff, because today I'm cooking venison chili
:-)
ok tnx .. have fun
user924016
13:29
@TheGuy cool.. sounds like you are on track again =)
hello how can i check if a element is in list using php ?
List being an array?
Probably @PeeHaa
What have you tried?
13:43
ok i used <?php
$os = array("Mac", "NT", "Irix", "Linux");
if (in_array("Irix", $os)) {
echo "Got Irix";
}
?>
it worked :D
thanks
14:17
with dual core intel and 3giga ram i need 32/64 bit ubuntu?
@RonniSkansing - yep :p
14:46
i did it dude ;)
eveything is working perfectly
@RonniSkansing - ;)
@Leigh Yeah, sigh… I've already intentionally used peeking to read the raw, encrypted data… I know it but forgot :x Thanks for figuring out!
@bwoebi :) Not really an optimal solution, but it gets it working for now
@Leigh That's actually the same solution I thought of, after just reading the issue, just before looking at the changed files ;-)
(on my iphone, I didn't even immediately realize it was a PR and not a simple issue :-D)
Might need to handle stream_get_line() returning false
if the EOL marker is not present
uh, yeah, this will loop infinitely in case connection aborted
14:57
I'm using this locally: https://github.com/lt/websocket/commit/364c34a5828e4fdf3b5cf7f1de0947b05b2ebe19

But that will fail if the header comes over in two packets
yep…
let me see…
@Leigh we maybe should use fgets()
because fgets() actually returns the delimiter
Still left with the issue, if no delimiter exists it will get stuck
-11
Q: AUTOCOMLETE TEXT BOX THST IS REFLECTED BY DRODOWN VALUE SELECTED MYSQL

K SuryaPrakashPlease refer me a website or a link to get an autocomplete textbox based on dropdown value selected. I am looking for code that uses PHP and MySQL.

@Leigh sure, then we can put an upper bound there.
And when data length < upper bound, and no delimiter?
15:02
then it's the users reponsibility to appropriately timeout().
it's a promise…
I'd prefer to fread into a buffer, and have a way of passing the remainder of the buffer to the frame parser after the handshake is finished
then you're not stuck in a loop where read events constantly fire
uhm, how does that provide any advantage?
as long as you have no delimiter, handshake won't finish…
It will prevent the script eating 100% CPU for the duration of the timeout
ehm, read events only fire in case there's new data
after all fgets() also returns partial lines
in non-blocking mode
it just guarantees to stop at a \n
does it? ok that's a benefit then
15:07
yes.
and I thought select would return a resource on any unread data, not just new unread data
I expected the other too, until I found out the hard way ;-D
@Leigh it does.
just we're consuming all the data with fgets()
because partial lines
yes yes, I didn't realise that was it's behaviour :)
@Leigh pushed :-)
@Leigh but yeah, that's the annoying part of stream_get_line() that it does not return the delimiter…
AFAIK, stream_get_line() also returns on partial lines in nb mode and then you get a mess ;-)
because you have no idea about delimiter location…
@Leigh typical nasty things which usually work, as long as you don't have edge cases where data doesn't fit in a single MTU etc… and then good luck debugging :-D
15:24
0
Q: How a VIEW works?

ShafizadehHere is the scenario: I have several Posts tables and one Votes table. How can I prevent inserting non-existing post_id (in Posts tables) in the Votes table? // Posts_1 // Posts_2 // Posts_3 +----+---------+ +----+---------+ +----+--------...

15:43
0
Q: Getting the route detail by name

Kamran AhmedIs it possible to get the details of a route by it's name like the controller and action name that it uses? I went through the documentation and it only has such functionality listed for the current route i.e. current(), currentRouteAction() etc. Is it possible to get the detail of a route, act...

sorry, but we dont do laravels here
IIRC, there is a single user who's using laravel in the entire chat room, and I seriously doubt that you are lucky enough for him to be online
Last time I checked it was written in PHP.
@KamranAhmed you are asking about specific aspects of it's routing mechanism
Understood.
besides, by the same logic one could spam C question here, since PHP is written in C
15:48
:D
@Shafizadeh you problem comes from the fact that you put posts in three different tables
is there any actual reason, why you have that type of structure?
@bwoebi I find onData to be a little cumbersome... is it really necessary to do:
function onData(Amp\Websocket\Message $msg)
{
    $msg->watch(function($actualData) {
        $this->actualOnData($actualData);
    });
}
@KamranAhmed The correct thing to do here (imo) is store the data in your own format, and then generate the PHP code that sets up the routes+controllers from that data, as well as generating the documentation from the original data. This is a lot easier that trying to force a framework to do something difficult.
@Leigh for most uses you anyway want to yield the $msg
actualOnData is just fine when you are expecting large frames and want to incrementally work on it.
I want complete messages
I don't want to care about frames

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