« first day (2499 days earlier)      last day (2675 days later) » 

00:00
it also gives me this error when trying to execute, so its not just my IDE: Parse error: syntax error, unexpected '$usernameUpdate' (T_VARIABLE) in......
user924016
are the || really ||'s
user924016
and also doing foo == true is the same as foo
i found a workaround...
and yes
user924016
a work around?
same char here
if(!($emailUpdate !== TRUE) || !($usernameUpdate !== TRUE) || !($bioUpdate!==TRUE)):
user924016
00:04
that's confusing
mhm...
wierd af imo
i also tried using OR
same result :s
always amuses me when people share code as pics
user924016
if( $emailUpdate || $usernameUpdate || $bioUpdate ) {
@KristianHareland Don't do that
then it evaluates to if true? if they are TRUE the block shall not be executed
00:05
Fix the problem instead of fucking around it
Also are you sure it's not just a crappy IDE and it's an actual error?
no spoilers until @‌bwoebi's seen it
4
yes, my intention is to fix the issue, but it was wierd that i get the error Parse error @PeeHaa
"
it also gives me this error when trying to execute, so its not just my IDE: Parse error: syntax error, unexpected '$usernameUpdate' (T_VARIABLE) in......"
Share your code
And I mean code. not a picture
hey pee
hey Wesley o/
00:08
i pasted the current code from edito, il update it to reflect what i get errors on, just a moment
code is fine, you are using a crap ide
That code doesn't have the probnlem part...
also please don't use endif endfor etc. use braces. i don't care what you think about it. consistency is more important
I am agree with the dog above
00:09
:)
that sounded meaner than i wanted it to be, my apologies
i run it, and i get this error:

Parse error: syntax error, unexpected '$usernameUpdate' (T_VARIABLE) in /Applications/XAMPP/htdocs/project/application/controllers/request/UserController.class.php on line 134
what's line 134?
i only copied the update function, the block if($usernameUpdate etc
in the gist it is line 69
00:14
Either you copied it wrong into the gist or you're looking at the wrong piece of code
Because the gist works
(without non printable characters)
"||" is the same as "OR" right ?
No
Different precedence
!!docs precedence
The precedence of an operator specifies how "tightly" it binds two expressions together.
So i can't just swap the two ?
!$usernameUpdate OR !emailUpdate
it doesn't matter, that's not the problem
00:16
You can in your case, but again that is fucking around it
upload the actual file on dropbox or something
Also try removing that entire if and writing it again by hand
or that
ill do that..
thanks for the help anyways
ill let you know how it goes lol
lol
would be great if var_dump($closure) didn't print out all the static stuff it has in
var_dump($object) doesn't print methods with their static stuff
right?
00:31
Meh
Not disagreeing, but meh
 
4 hours later…
04:22
le morning
 
1 hour later…
05:33
Mornings
@NikiC speaking of syntaxes that we don't need... do i have to blame you for this? :B 3v4l.org/H042L
Hi good morning guys
Today i am having a different question
Can anybody recommend me any task to give to the candidate who is having 8+ years of experience to check thought process and how good he
is with thinking for any task??
candidate for what
Basically that guys is having experience in .net but still i want to give some task which is bit logical to check thought process
so there is nothing specific related to .net.Any logical task
whaaat
i have no idea what you are saying
but this is not the .net chat room
05:50
No but i dont want any question related to .net
some logical task which can check his ability to think
Like we use to do in college fibonnacci program,factorial program etc
Those kind of logical task
Ofcourse i cant give factorial program to candidate having 8+ years of experience
So can anybody recommend me any such logical task?
06:26
hi
what software can you recommend? what a php programmer could use?
I came across something like this yesterday, I was not thinking about something like this before
RegexBuddy 4 - I am not sure if I will get that, but I am talking about software overall
phpStorm, I know that, but anything else?
I also have NetBeans and Eclipse (I want to get familiar with all the 3 IDEs, there is more, but the main ones lets say)
it probably depends on what I would be doing, I guess, but general tools
what is needed and good?
 
1 hour later…
07:28
Having an issue with .htaccess, I have a folder at the location root/folder1 that I want to redirect as a 404. It works but it also affects root/newproject/folder1 aswell which is not what I want.
I can't seem to direct the RedirectMatch 404 correctly, e.g 'RedirectMatch 404 /folder1'
nobody here now
moronins
07:56
Finally fixed it, lovely.
08:34
youtube.com/watch?v=NbLYmu2USIk how to write long essay
08:57
posted on August 19, 2017

New Cyanide and Happiness Comic

2
@NikiC As you said, the problem lies elsewhere. I found that I was reusing the zval variable again in the next call_user_function after zval_ptr_dtor. In-spite of the dtor, the crash was happening. So after dtor, I used ZVAL_NULL(&retval); and then it works. So whether is it correct to reuse the zval variables after destorying them and setting them to ZVAL_NULL? like pastebin.com/raw/EpqJhsMX. Or will that cause an issue for the returned value, if that is being referenced elsewhere
if anyone have good knowledge of CURL, please take a look at my Q: stackoverflow.com/questions/45769720/…
Morngin
09:44
https://stackoverflow.com/questions/45770006/how-can-i-make-a-databa‌​se-search-form-with-php-code-what-is-the-best-way
https://stackoverflow.com/questions/45770042/cheap-flexible-dedicate‌​d-virtual-server
user924016
10:07
mornings!
user924016
\o
user924016
10:22
whats ya weekend plans.. mine are codes, hacking and relaxings
Yeah. Same :D
Thinking about picking up an old project (text based game)
user924016
sounds fun
I hope so :P Or I will just abandon it again
user924016
(= any worthy job offerings yet?
user924016
I just send a job application yesterday
10:27
yeah I got two/three ok ones
@RonniSkansing Ooh nice
user924016
going to persue them?
yeah
user924016
nice!
At least two look cool
Fingers crossed for both of us :-)
user924016
(= I have no expectation I get the job, it was the guy I worked with on the last job, that got a new job and tipped they need another dev.. so lets see..
10:30
Why wouldn't you get it. You are capable
user924016
thanks, well it's c# in the backend
user924016
on the rest of the stuff I qualify, but that's my weak point (=
Meh I'm sure you will be fine given some time to adjust to c#
It's not even bad
Hi guys
hello
user924016
10:34
Hi @Learning
@JAamish reusing the variable is fine
@bwoebi @kelunik @Trowski Can I perhaps have a tagged aerys release?
@JAamish What I'm suprised about is that you have to NULL the retval. That should not be necessary
Because call_user_function_ex should be UNDEFing it by itself
@NikiC yes, very strange. The previous return was already of type 1 (ie. IS_NULL). But unless I set it to NULL again, this happens
@JAamish can you share your full code?
10:41
@NikiC yes, I will send it
o/
hoi
hoi
Blizzard. Triggering people since forever.
nvm, really angry at the stupid matchmaking of Overwatch... I was matched with masters and diamonds for two consecutive games, and lost both of 'em
10:46
I have no idea what that means, but sucks to be you I guess :)
@NikiC pastebin.com/eE8N3sQS is the code where the issue happens
@PeeHaa you musn't have listened to this then youtube.com/watch?v=BJ0xBCwkg3E
10:55
@JAamish do the failure cases occur?
If the branch on L89 is taken then it would double-dtor without the nulling
But otherwise I would expect it to work without it as well
the failure cases occur, the getName returns NULL and then the getAction returns an array and then the crash occurs.
I'm using PHP 7.1.5
I did not understand about the the double-dtor..
That doesn't make sense to me
I'd suggest checking with valgrind whether you see any memory errors (even with the nulling)
I get the feeling that the problem is still somewhere else
The ZVAL_NULL is definitely good to have there, I just don't see how it can have an effect in this particular case
Ok. I will try with valgrind as well
Thanks for taking a look into this @NikiC
@JAamish As an unrelated note, instead of doing something like zend_string_init(Z_STRVAL(name), Z_STRLEN(name), 0), it's better to zend_string_copy(Z_STR(name))
@NikiC why?
11:09
zend_string_copy will only increment the refcount
or return it as it is
so I will be carrying the original name's reference. Is that not correct?
Yeah
Since the name is coming from the higher layers, I thought making a copy myself would be cleaner and if someone corrupts or changes the name at the higher layers, it would not affect me
If you use the name it's not possible for it to be changed at higher layers
Well, it's possible, it just would be a bug
@PeeHaa Glad to hear you're getting some offers!
I was wanting to start some text/graphic based game too, well mostly for experience and my portfolio
@NikiC Ok. I see your point of avoiding mem allocs. Will use it
11:15
Thanks!
@Alesana Cool
One question about INTERNED strings. What exactly are they?
@Alesana Multiplayer or single player?
Multiplayer! I was thinking of something like Neopets, but all of the pets are grown up/have tattoos and do not quite legal things. All while being adorable at the same time :P
:D
Is neopats a browser click game or a text text game?
Not sure about the correct terms :P
multiplayer rouge-like
11:21
Ah it is a browser clicking game, maybe not the same as what you are thinking
Nope. Mine is old school text based
Also cool though
You are thinking a game where you just type in, for example "open the door" and then get some response?
The amount of time I did spent on stuff like leetwars back in the day is just crazy
@Alesana Yep
Ahh. Oold school :P
Oh oh oh and omerta
Those click links browser games were so fucking stupid and addictive
11:23
Making one like that wouldn't be hard but it would be tedious
turns out The Boy had salmonella, for those of you who wanted an update on the digestive health of my relatives
wait wat
Which one?
Also tell your woman to learn to cook :P
probably picked it up from somewhere out and about, takeaway food/icecream/etc
according to the hospital
Damn
anyway I do most of the cooking in this house
11:26
Aha
:D
he is all well again now though isn't he?
Oh I was wondering what it was that got him like that. I'm glad he's still getting better and even more glad we're in the 21st century where you can count on him recovering :P
!!dad
?
!uptime
!!utpime
lol double fail
11:31
!!uptime
ffs
It's like the sound the dishwasher makes when it is finished
We both hear it but neither of us can be bothered to get up and turn it off
a.k.a. log in and fix the bot :P
your server seems to be not having a good time
webserver is up
my first ssh attempt took ages and then died after a few secs
Something being busy?
Webserver is just fast
!!uptime
Server is doing nothing
Probably your UK wiring
11:34
looks like the #11 websocket has fallen over maybe
service still running fine, several sockets connected, just not #11
Weird
Just blame balpha
well the reconnect logic is known to be... not brilliant
it's hard to test every possible sequence of things going wrong though
!!uptime
╔══════════════════════════════════╗
║ [48 seconds] without an accident ║
║   since [2017-08-19 11:35:02]    ║
╚══════════════════════════════════╝
11:36
tnx <3
Why did the scarecrow win an award? Because he was outstanding in his field
@DaveRandom what is the status of your windows binary for amp?
@PeeHaa working, just lacking tests
k
So if I pull master I get and use it automagically?
11:44
no it's not merged yet but you can pull from my PR branch
12:23
I'm filling a form an I stuck on "Date of birth" field. I enter "05/30/1992", it throws "Age minimum requis : 18 ans"
Does anybody what's wrong?!
it's probably not recognizing the date format
but it is written a pattern like this: mm/dd/yyyy (as placeholder)
then it's probably best to contact the webmaster
:-(
Actually I'm trying register an account in ovh website to buy a VPS
call them?
12:28
sounds like a sign, that you should pick a different service
I cannot call them, I cannot speak in English
... probably neither can they :D
you will end up connected to some call-center in India or Romania
People who use any date format other than Y-m-d are worse than Trump.
more seriously though, ovh are a French company (iirc) they probably would use d/m/y over m/d/y
they are an international hoster. they likely have some english speaking support
We have a sanish date format
12:31
@DaveRandom I would suggest s/Hitler/Stalin, based on how many people are being compared to Hitler ... the value has dropped
(think of it in terms of bitcoin)
I will get ahead of the curve
an alternative would be to just… you know… lie about your age
put 01/01/1970
^ actually a really good option
I always do that and secretly hope some random dev somewhere at some point scratches his head
Not going to happen.. but still :P
12:37
it also fucks with the companies, that gather information about you
@PeeHaa you would also need to put in your surname as "undefined"
lol
@tereško or NULL
Totally going to do that from now on
NULL NaN
!!? guy called null
Search for "guy called null" (https://www.google.com/search?q=guy+called+null&lr=lang_en)
• An actual guy named “Null” messes up people's dat… - 16 apr. 2015 - Also reminds me of the guy named nullptr who wasn't able to identify the criminal fr… (https://www.reddit.com/r/programming/comments/32uh79/an_actual_guy_named_null_messes_up_peoples/)
• There is an actual guy named "Null" who is having… - Quite a few people called Null. … His Name Is Null And Database Administrators Hate Him! …. Worked… (https://www.reddit.com/r/technology/comments/32xd1d/there_is_an_actual_guy_named_null_who_is_hav
12:40
:)
@Gordon Done ...! thx
Interface inheritance not allowed properly – #75095
13:09
@Jeeves is this guy posting these daily now?
@WesStark What? No.
@WesStark yeah that's so not going to happen
i couldn't even understand what he meant, but seems too related to generic types
13:23
i'm cooking corn #secretlyamerican
13:50
FILTER_NULL_ON_FAILURE null for not only boolean – #75096
14:16
@Shafizadeh if you have a french error, the date format is most probably dd/mm/yyyy
14:37
What upstream source is ?
14:49
is this common in php?
$numbers = shuffle(range(11, 20));
Notice: Only variables should be passed by reference
so this will not work
it needs to be $numbers = range(11,20); schuffle($numbers);
@AaronSmith $numbers = rand(11, 20); shuffle($numbers);
yes
all built-in php functions will work like that, for the most part?
I am learning, this is somehow a new thing to me
no, the fewest
I've seen some working, this one does not
ok, so most of them will be ok?
somebody told me this already "the function modifies the argument, so you have to give them a variable that can be modified. A function return can not be modified (where would the modified value go)?"
I am not looking for proper code, as I know it, but for an explanation, lets say, some general rule
there is two groups of built in php functions as far as this, one of them will work together with others, the other will not
and why?
why this does not work and the other do?
could this be improved?
php-wise, the next version - make it better?
so this is a shortcoming, in a way?
the modified value could go to some place, I guess this is how this is written
so, just one aspect of this, that I've come across
and some work, some don't, so I am wondering
> Plus, he's a question talker
14:57
so some work, some don't?
any reasoning, or just random?
most of them do as you said, and this would be rare, what I have here?
I am kind of going deeper on "things", but I have time.
The reasoning is that the Fisher-Yates sorting algorithm operates in-place, so accepting by-reference is more efficient, as it avoids a copy of the array.
This is also the same reason why sort() functions take by reference: Quicksort also operates in-place
@AaronSmith it's not about time. ffs do something practical. Seriously.
thanks @NikiC

« first day (2499 days earlier)      last day (2675 days later) »