« first day (2225 days earlier)      last day (2949 days later) » 

00:08
@Asfo ain't that a lovely husky?
@Ekin btw, that song always reminds me of a deep winter
yeah, it's already gotten cold so, fitting
@Ekin Yep, with my gf :P ...I love them so much :3
heh, it has amazing eyes :-) less than 1yr old? I'm away from mine for a while.
7 months. And me too, I'm in another city right now ...
00:12
also @tereško, black moon of Lacrimas Profundere
@Asfo it sucks :(
you are on another continent
Yep...but I need to work. But, no big deal because is temporary, so I can wait
@Ekin I think my favorite of theirs is "And God's Ocean"
@SimonLeCat yes, $(function() { ... }) means $(document).ready(function() { ... }). it is redundant
the outer one actually waits if needed, the inner one would just run its callback immediately
I need to do my shadow class hierarchy thingie someday
which is a bad name for my idea
00:22
@Andrea have you finally decide to become an assassin?
@tereško heh
@tereško I'm a witch, I curse people, not kill them
well ... multi-classing is always an option
then again, in popular culture, witch's grimoire is often called "book of shadows"
For some weird reason the php binaries spawned by make test appear in Dock… the this is some weird flickering going on there
00:47
@JoeWatkins haha … that took me 20 mins to realize … the fourth argument to array_splice is not by ref, but is using z/ intentionally to get a rc=1 array which it can pass to convert_to_array_ex() [reverted in patch]
01:01
@JoeWatkins @NikiC current state: github.com/php/php-src/compare/… — All Zend tests are passing locally now, I'll check anything else tomorrow. To look at just the typed ref diff, see github.com/bwoebi/php-src/compare/…
@NikiC ^ I'd appreciate a review of the current patch
A diff of a bit more than 700 in Zend/ for the typed refs… turns out to be not that small … but there are quite a bunch of locations where assignments to values which are possible references happen...
Wes
Wes
01:13
4 episodes into 12 monkeys now. it's good so far. maybe i've found something i like :B
gn
@tereško good one
... I better sleep
nn
howdy yall
i cant find a room to ask a question about caching
do u guys mind if i ask here?
01:30
anyone with experience in wordpress using ACF plugin?
only Peehaa does wordpress here
is he here?
kk
anyone else?
!!reminder goo.gl/sWPzwR in 10 hours
01:35
Reminder set.
02:02
morning
!!friday
@Jeeves thanks sir
@Linus You're welcome!
 
2 hours later…
03:44
Good morning
04:19
morning
04:39
\o
hey @Saitama happy to see that percona being back :)
and now, on a totally different topic, I got headphones at work today. I think my productivity just got up 50%
am I in.... the... php chat?!
hello earthlings
usually I never see anyone in here. Interesting.
your entrance makes me think of Cyrano de Bergerac. when slowing down the duke before Christian and Roxanne get married
That is an entrance I'm unaware of.
you can definitely look that up. Cyrano de Bergerac.
some kind of big hit
that being said... you are either completely wrong, or in a very fucked up timezone
East Coast America. We are the country that just elected Trump. Indeed we are fucked up.
04:49
all my condolences
This scene is in french. Given that Trump is my president I refuse to watch this foreign stuff!
jk. seems interesting
lol
I'm pretty sure there are english translations, though the lack of poetry must suck
oh sorry, I meant the hardness of translating poetry, of course
I have to make a PHP backend using SQL for this thing which is why I dropped by here. This will be an interesting Juorney.
Journey*
very broad, as of now, to be honest
what is broad, my requirments?
04:50
php backend + mysql sums up to roughly half of this planet's sites
haha
well... you're right.
Actually my "partner" has to build the front end in reactjs
I must code the backend for this.
this is getting interesting
It seems like a weird frankenstein project.
it is really normal, sorry
I am just very new to web-dev.
04:51
well, most learned people would use Scala instead of php for an api
but fuck that
php is really good enough
so what is the actual problem?
yeah hope so. I just gotta know what the requirements are then get started.
problem is starting this and like you said it is very broad.
1. use php7
2. use proper libraries for the basic architecture
I will take your advice.
but like I have never independently made a back end you know
my totally opinionated view is nikic/fast-route, rdlowrey/auryn, amphp/aerys and amphp/amp
hmm gonna mark those
04:55
so basically, your question is: I don't exactly know what is expected of me, but I need to do a backend for a reactjs app
right? (I am totally not trying to humiliate you btw. just stating stuff as clearly as possible)
Kind of. I was told today "hey work on the backend for a basic login and registration system. We have to do it in php and mysql. I will work on the front end using reactjs next week"
I have never used php but I believe I can pick it up
and gotta get a bit more familiar with databases
haha it is for a project and my partner is a bit... well. I'd rather not use the words.
did your "partner" ever worked with react before?
No but he has been reading react docs like crazy for a week
he wants to use this project to learn react basically.
04:59
ok. that project sounds doomed, but a few piece of advice: use json. use json. and use json
:(
Sounds... encouraging.
sorry...
I don't really mean to break your hopes
how do i pass a variable in javascript to php variable without calling another page?
If I was to convince him to use something other than react, what would I say?
react is actually one of the best choices out there
it's greatest advantage is it's insulating the app
it's doing only (and only) the view layer. which is perfect
05:01
I couldnt wrap my head around reactjs
Good.... then why are we doomed?
it can be used with whatever backend api you wish for. but use json
@qaispak because during the next week your partner will basically set up webpack
and that is, if he's good
oh so its his part that is of concern?
well... I warned him.
front end is his job
setting the dev environment in modern javascript framework is a time consuming job, at first
and webpack is one of the worst. you can totally spend a week, or more, when doing it by trial and error
Hi can someone help me?Im really doomed
05:03
He's going to a hackathon this weekend though. Says he's gonna stitch up something over the weekend so we should have a better idea.
@phoenix sorry, I'm not good at this :(
stitch was the right word
@qaispak its ok. Just someone who can
this project will be very rickity and I might be ashamed to put it on my github... but it has to be done.
all of that being said, you guys are probably way smarter than me, so don't take my fears with too much weight
I'm just always... on the side that stuff takes up more time, if it's actually doable
@FélixGagnon-Grenier can you help me?
05:04
@phoenix I have no idea.
That day I made a function to check for even/odd lines and I had the condition as (num/2)==0 to check for evenness.
so no, I am likely extremely dumb.
not sure how I have made it to senior year.
I actually did not read any of your messages, wait a bit @phoenix
isn't x%2 === 0 the actual good way to verify evenness?
@FélixGagnon-Grenier how do i pass a variable in javascript to php variable without calling another page? , my question
@phoenix you would make an ajax call
05:06
@FélixGagnon-Grenier yeah that's my point. I was THAT stupid.
if i do ajax isn't it calling another page?
but I am pretty sure your problem is you are trying to use both php side and javascript side on a single script
so let me put this straight: stop it. now. this is not how it works
@FélixGagnon-Grenier yeah thats what im talking bout
@qaispak haha. lol you actually wrote / like dividing. I totally interpreted that as modulo :)
05:07
yes :(
we all make very dumb mistakes
@FélixGagnon-Grenier I Know javascript and php has different world, im just hoping there's a way to meet them. I'm having a problem with my modal if i am calling an ajax
there is @phoenix. it's called ajax. problem is that notion of yours. what do you mean by "calling another page". refreshing the browser?
to be fair I was coding at 4 am.
okay I'm gonna stop procrastinating and start setting up my environment for this fabulous journy
journey*
:)
of the four I mentionned, really the most important are routing and dependency injection
if in the next week, the only thing you learn is how to route requests (including undefined calls) to a single index.php and use a dependency injector to build your objects, you can really call this overly productive
05:10
will keep those goals in mind!
have a great time!
@FélixGagnon-Grenier if i call ajax, im calling another page (without refreshing the page-coz thats how ajax works) but problem is when i call the other page where i put my modal i cannot get the value i input in the selection inside my modal.Im alerting it but its empty.
woo hoo! will stay on stackoverflow chat and website of course. Without that it is impossible for me
morning
i want to laravel phpstorm live template base on this github.com/koomai/phpstorm-laravel-live-templates
for the windows it's says this path
Windows: <your home directory>\.<product name><version number>\config\templates
where is it exactly
i browse whole my c drive for config\templates but i couldn't find it
and even whole JetBrains folders
@Sandro I don't understand your question. where is what. the files you cloned?
waiting for my LAMP stack to get setup
til lamp is what I (and.. pretty much everybody) have been using all these years. thanks @qaispak
3 months ago I tried getting to web dev.
so I tried ruby on rails
on my windows machine
05:21
I never have, is it great?
well ruby on rails on windows is TERRIBLE
setting it up was a total nightmare
and now I set up apache/php in like 5 seconds. So much easier.
by setting up, do you mean installing ampps?
and idk, it felt like there was too much magic going on for me. As a beginner I'd prefer something more basic.
well first getting Ruby.
Then getting Rails
then putting the ruby on the rails
Then making sure your gems are all updated (package manager I believe?)
yeah! haha
05:23
it's... very poetic presented that way
06:18
Sorry out of the topic........ "This would be the safest place you ever found" Is this fine(Grammatically)?
0
A: Can PHP7 opcached files be distributed without source code?

Joe WatkinsPHP needs to be able to open the file for opcache to be invoked; If it doesn't exist, it can't be loaded ... Let's look in detail, to see what tricks we might play: 1670 if (!file_handle->filename || !ZCG(enabled) || !accel_startup_ok) { 1671 /* The Accelerator is disabled, a...

user7029249
Good morning friends,,,, i need you help, i dont know how to save "selected options in database inside form , i am trying below code but giving error : Notice: Undefined index: designerorder_id
user7029249
<div id="ordernumbers">
<select name ="designerorder_id">
<option>Select Order</option>
</select>
</div>

<?php
if (isset($_POST['register1'])) {

$designerorder_id = trim($_POST['designerorder_id']);
?>
morning
06:35
\o
o/
@FélixGagnon-Grenier :D
o/
o/
chaining windows commands to get the bash command line opened in the right directory.....
i hate windows
07:22
having nosebleeeed
08:05
@bwoebi will check later
big patch
any ideas on how to verify (instrument)?
@bwoebi awesomes
maybe get hold of Sjon ?
(I wasn't reply to you nikita, no idea about that)
@NikiC it's not too big, right ?
it's about 1/4 tests (measured using scroll bar), lots of it is generated (vm_execute.h) ...
08:24
morning
Hi, Can anybody help me with my question stackoverflow.com/questions/40672198/…
good evening gentlemen
Anonymous
google captcha down ?
Anonymous
08:35
No, it's me
Anonymous
MOrning o/
halp!
zval myVal;
ZVAL_STRING(&myVal, "foo");
HashTable *server = Z_ARRVAL_P(PG(http_globals)[TRACK_VARS_SERVER]);
if (zend_hash_update(server, "myKey", strlen(myKey)+1, &myVal, sizeof(zval*), NULL)) {
    Z_ADDREF(myVal);
}
this doesnt work in PHP5? why?
when I try to access $_SERVER['myKey'] later in userland, it is empty.
I wish I could help
but half of this code is chinese for me ^^
is this phptherightway.com a reliable website ?
08:51
@Valentincognito it was mostly correct last time I checked (which is some time ago)
because in php5, myVal needs to be on the heap
Anonymous
^ just common sense really @Gordon
@Valentincognito it feels somewhat cargo cultish in some aspects, but you won't shoot yourself in the foot with it.
@JoeWatkins I tried with zval *myVal but it wouldnt work either :(
on a side note: would it make more sense to use php_register_variable for adding a value to the server array?
I am trying to become a better person so I am searching how can I be a better PHP dev :p
I must say I am lost
I want to read a good doc or book
zval *myVal;
HashTable *server = Z_ARRVAL_P(PG(http_globals)[TRACK_VARS_SERVER]);

MAKE_STD_ZVAL(myVal);
ZVAL_STRING(myVal, "foo");

if (zend_hash_update(server, "myKey", sizeof("myKey"), (void**) &myVal, sizeof(zval*), NULL)) {
    Z_ADDREF_P(myVal);
}
that's correct for 5
@Gordon probably
08:56
oh. let me try that
Anonymous
@Valentincognito being better at PHP does not make you a better person, honest. Take @PeeHaa for example.
also, don't need addref
wait
@JayIsTooCommon I don't know PeeHaa enough to judge ^^
Anonymous
@Valentincognito he's an animal
zval *myVal;
HashTable *server = Z_ARRVAL_P(PG(http_globals)[TRACK_VARS_SERVER]);

MAKE_STD_ZVAL(myVal);
ZVAL_STRING(myVal, "foo");

if (zend_hash_update(server, "myKey", sizeof("myKey"), (void**) &myVal, sizeof(zval*), NULL) != SUCCESS) {
    /* do something */

	/* should do */
	zval_ptr_dtor(myVal);
	FREE_ZVAL(myVal);
}
@Gordon that
08:59
more seriously any good PHP bedside book recommendation ?
Happy furday :)
yay, it's friday
that happened without me noticing
Anonymous
@Valentincognito eh reading books to improve your PHP skills isn't the best strategy imo. General programming knowledge, maybe. But specific to PHP, I would personally want a machine in front of me to mess about with stuff while I learn.
I heard PHP is really bad, and gives you cooties, use node, obviously ...
eehh no
I want to stick with PHP for now
but I am not sure where to go
I am a total speed junkie
@JoeWatkins this is so horrible
would php_register_variable make more sense?
@Gordon in this case, yeah it looks like it would
so I'll try with php_register_variable("foo", "bar", PG(http_globals)[TRACK_VARS_SERVER] TSRMLS_CC);
09:17
happy rebecca day all
that looks right
its probably coincidental that only SAPI's seem to use it in specific handlers ...
OMG IT WORKS!!!
sanity!!
at last
thanks @JoeWatkins
yw
I didn't really do anything ...
you've been a most helpful rubber duck :)
I'm an excellent one of those :)
php7.1 (possibly .0) just got 2x speed increase on redhat+derivatives (packaged version) ...
09:36
@JoeWatkins Compared to 5.6?
no compared to 7.1 before the change
Which change?
ThW
ThW
@Gordon could you make that into an example for my repo? :-)
@NikiC what do you mean with "(instrument)" ?
@kelunik disabling dtrace by default
09:38
@ThW what exactly?
ThW
ThW
Adding a new value to the $_SERVER array (that is what your doing isn't it?)
just 7.1
@ThW yes. it's really just that one line in php5
ThW
ThW
@Gordon Yes, but how did it take you to find that out?
09:42
he'd have got there ages ago, if it weren't for me and MAKE_STD_ZVAL and ZVAL_ALL_THE_THINGS confusing him ...
@ThW hours of pain and banging my head into segfaults
@JoeWatkins no, you've been most helpful
it's really that php is a PITA under the hood. I mean, something as simple as adding a scalar to a hashmap shouldnt take more than one line
but it does. even in php7
@JoeWatkins 700 line diff is not small ^^
Morning 11
!!friday
@Gordon register_variable is a thing in 7 too
09:46
@JoeWatkins yes, I know. I meant all the code I tried before I found out about it
there's just more to do in php than you expect ... there is always at least two things to do, whatever you want to do, and take care of the effects of refcounting in whatever you want to do ...
sometimes three, alloc/free ...
@bwoebi true, but I was just saying I don't think it's size really matters ...
yeah right
why is that not hidden behind some nice API? I find that one of the hardest thing to get to grips to
some of it, even though more complicated, looks clearer to me
@Gordon it wouldn't really help, sometimes taking care of the effects means doing nothing, because the thing you called done it for you ... but if everything tried to do it ... just think about what kind of code that would create ...
the problem is that I cannot think about that because I dont understand it yet
for me it just feels natural not having to bother about these things.
but it will come hopefully
10:00
mernins
holaring
@Gordon it definitely will ...
@Jimbo o/
Did you start looking into Amp / Aerys yet?
If you want to use Iterator by hand, do you need to call both next() and current() to get the next val?
10:15
@kelunik No but I'm planning on this weekend, work is crazy atm
Literally no spare time, I'm actually working
actually, or "actually" or actually or actually ?
Hey guys how would a write $row['ComplexName'] in the value spot of this echo:
echo "<option value= >" . $row['ComplexName'] . "</option>";
I'm "actually" working, it's friday
Anyone know why my session variables disappear after I go back to a previous page? I'm using the code session_start(); $_SESSION['name']= $_POST['name']; which I believe may not be the correct syntax if the page doesn't have any forms.
10:17
@Sean yes
 Iterator extends Traversable {
/* Methoden */
abstract public mixed current ( void )
abstract public scalar key ( void )
abstract public void next ( void )
abstract public void rewind ( void )
abstract public boolean valid ( void )
}
Anonymous
yo dave
@Sean why would you want to do that?
Anonymous
> the database is the only source of truth in the type of applications that are done with cake. it should be the other way around, the data in the database is the only thing that you know for sure is clean. anything else you need to check
10:19
@Sean for ($it->rewind(); $it->valid(); $it->next()) { echo $it->current(), PHP_EOL; }
Anonymous
Cake devs are entertaining
That's why bake off is so popular
Anonymous
;P
Anonymous
This was the genuine response from one of their core devs
Anonymous
> not trusting the database?! that sounds like crazy thing to say
10:20
@DaveRandom it's friday, you can do anything on a friday ...
Anonymous
!!wotd
if I tell you I'm going to punch this fox in the mouth, you have to just agree ... no questions asked ...
@JoeWatkins is this a fox or a dog?
juvenilia: works, especially writings, produced in one's youth.
@Jeeves oh, I have some of these
Anonymous
10:21
@JoeWatkins Sawing children in half and now punching foxes in the face. You need help
@Gordon fox, according to interweb ...
@JayIsTooCommon no foxes were harmed ... yet ...
I kid of course, I would never hurt anything ... in case not clear ...
@JoeWatkins hey, foxy lady
yeah I'm not sure if real either ... it's looks a bit too ... disney ...
morning!
the thing that was supposed to make 2x improvement actually makes 5-10% improvement ...
Anonymous
10:30
@JoeWatkins <3
the only advantage of visiting a client, is that you get out once in a while, but that's about all there is to it.. ><
I've never done that ... sounds awful ...
Anonymous
@Naruto what's it like out there?
When accessing session variables from a form do you put $_SESSION = $_POST on the page with the form or the page it takes you when you press submit?
@JayIsTooCommon I heard there be dragons outside
Anonymous
10:33
:D
posted on November 18, 2016

New Cyanide and Happiness Comic

@ChaCol wut ?
Ok I have 3 pages. Page 1 has a quantity form, page 2 has registration form, page 3 displays total costs and information from customer. I'm basically trying to figure out how to keep my session variables on all of the pages
you mean form variables, I think
I'm not sure what pages I need $_SESSION['name'] = $_POST['name'] and what pages need $name = $_SESSION['name']
10:36
oh I see what you're thinking ...
It just keeps getting reset
Because I have an if statement saying if the user isn't registered after selecting a quantity.. go to page 2 (registration) and say the user doesn't select a quantity but goes to page2 (registration) it will send them to page 1 (quantity) and when he hits submit it will take him to page 3 with the results.
Also if he does have quantity from page 1 and registers on page 2 it should go to page 3 as well instead of back to page 1
Hopefully that makes sense
having to make some changes to wordpress frontend
please kill me
/me kills @Sergey
Anonymous
@SergeyTelshevsky get well soon
10:39
euphoria comes
Quick question. Does this matter at all? $_SESSION['name']= $name; vs $name = $_SESSION['name]; does the order matter?
yes, it matters ...
I think that may be my issue.. let me check
that's an extremely strange question ...
anyway, I wouldn't be storing any of that in the session directly, you must have a users table if regsitration is a thing ... so I would have an orders table, create entry on submission of first form, redirecting them to next place as appropriate, you don't even store the identity of the order in the session ...
sessions are not smart, or fast, use them to identify the user, and that is all ... use a more suitable data source for everything else ...
I don't think that is necessary for my assignment. I'm just learning php and he wanted us to use session variables to keep the information between pages.
10:45
it's a crap assignment, get a new teacher ...
It definitely seems more appropriate to store the variables into a database and pull the information from there, but that's on the next assignment.
we don't write code wrong over and over until we hit on the correct solution ... we aim for the correct solution first ...
@JayIsTooCommon mm.. Winter is comming...
Can you do an if statement for session variables such as if the user selects a quantity on page 1 and registers on page 2 then redirects to page 3 (it doesnt show user info) so I need to change it to $_POST, but if the user registers first then goes to page 1 then page 3 it shows.
But then the quantity doesn't show
I don't understand session variables
you should probably try to make your question into an SO question
10:50
Can I do something like if redirected here from Page 1 perform $_SESSION = $_POST, if redirected here from Page 2 perform $variable = $_SESSION
How does that work?
"Dependency injection is a back-end thing" - Front-end muggle
7

« first day (2225 days earlier)      last day (2949 days later) »