« first day (2373 days earlier)      last day (2581 days later) » 
00:00 - 13:0013:00 - 22:00

Anonymous
12:00 AM
Are you using Windows?
 
yeah
create a project in phpstorm
 
Anonymous
Nope
 
how does the guest VM access the files?
 
Anonymous
Just create a folder somewhere in C:/ (or anywhere inside windows)
 
Anonymous
and mount that folder.
 
Anonymous
12:01 AM
the VM will access it, it's like accessing a file from your USB.
 
Anonymous
the USB is your VM in this case
 
Anonymous
You need to install GuestAdditions for this to work.
 
@NikiC Is that an acceptable solution to the hacks needed there? Or will that incur too much overhead in code size?
 
@samayo sorry, had to google how to mount a drive first :P
 
Anonymous
12:05 AM
it's ok.
 
Anonymous
After you are done with that, go to settings > shared folders and (+) to add a folder to share
 
> Click on Install Guest Additions… from the Devices menu, then run mount /media/cdrom.
Is there a way to do this from terminal?
 
Anonymous
You can do it directly from the VM
 
terminal in VM, I mean, sorry
 
Anonymous
Yes.
 
12:08 AM
I'm lost on what it means to "click on install guest additions"
 
Anonymous
You can skip that.
 
Anonymous
go to settings > shared folders and add your folder
 
done
 
Anonymous
Make sure to give it a folder name and select auto-mount
 
done
 
Anonymous
12:11 AM
Now, just go to your VM and type:
 
Anonymous
mount -t vboxsf foldername /var/www
 
unknown filesystem type "vboxsf"
 
Anonymous
Ah sorry, that's for I think it's mount /media/cdrom.
 
Anonymous
wait...
 
> sudo ln -s /media/sf_Code/ /var/www
ln -s foldername /var/www ?
 
12:14 AM
what does ln --help say? :)
 
Anonymous
It worked for me once with debian, can't recall the exact command
 
do I need to install something for vboxsf?
 
also, there are problems with mounted folders that are hard to debug, I especially encountered them on mac os... (basically some kind of file cache that corrupts the end blocks of a file)
 
Anonymous
@Tiffany can you go to devices and install guest additions?
 
Anonymous
If you were using CentOs this would've worked in 5 min. Sadly, I haven't tried debian but one which it worked ... but can't remember the commands
 
12:19 AM
where do I go to devices?
@Leigh eeep
 
Anonymous
Open your VM there should be devices tab there
 
Anonymous
@Leigh yeah, vboxsf has issues with symlinks and SELinux.
 
doh
I was looking in the wrong place, found the menu
it said it couldn't find the guest additions disk image
 
Anonymous
That probably mean GuestAdditions is not installed. I would retry this again. virtualboxes.org/doc/installing-guest-additions-on-debian
 
and when I try running it again, it says "unable to insert the virtual optical disk C:\filepath\VBoxGuestAdditions.iso into the machine"
 
Anonymous
12:24 AM
After that, it all takes one two commands to mount the folder.
 
do I need to download something to Windows?
 
Anonymous
Nope.
 
Anonymous
You don't need anything for windows, it's all done in the VM
 
Anonymous
Maybe mount /media/cdrom then sh /media/cdrom/VBoxLinuxAdditions.run
 
it's something wrong with the optical drive on the VM
 
12:29 AM
@bwoebi Not sure. I vaguely remember that dmitry tried to specialize smart branches, but it had a negative effect
 
but "Install Guest Additions" doesn't come up :|
I forced the unmount, and "Insert Guest Additions CD image..." but it doesn't let me install
 
Anonymous
Eh, if I wasn't using my phone's connection I would install and try it myself.
 
Anonymous
Anyway, the issue is small I will see if I can find anything.
 
Anonymous
@Tiffany what is your vbox version?
 
I might have a stupid question, so I|ll ask here first: anyone know why the precision of floats in php 7.1 seems to be about 48 no matter how much I increase the precision directive in the php.ini to?
 
12:43 AM
@NikiC Hmm, okay. Other question: what's the current state of jit? haven't looked for a while…
 
@bwoebi Haven't followed either
Only seen that dmitry has been working on register allocation
And I got the impression that it's not working very stably ^^
 
@samayo sorry, internet was out for a bit. I think I have it working.
 
Anonymous
ah, good
 
says to restart guest machine, which I'm doing
ran mount -t vboxsf foldername /var/www gave "protocol error"
 
Anonymous
Did you run sh /media/cdrom/VBoxLinuxAdditions.run?
 
12:56 AM
yes
it had me reboot the guest OS
 
@madshvero what problem are you actually seeing?
 
Anonymous
Make sure the folder names are correct and www exists. @Tiffany
 
/var/www exists
just checked
 
Anonymous
also use sudo
 
doh
I didn't mount it in Windows right
 
Anonymous
1:01 AM
basically you create the folder in windows and then share it in your vm.
 
Rebuild php to work properly – #74446
9
 
ahh, thought I needed to create a mapped drive, which I'm used to doing for phpstorm
I just have a folder named project, but it's still throwing a protocol error
I think I might fuck with it tomorrow
I already made more progress on this than I thought I would
 
Anonymous
It should be something like this i.stack.imgur.com/LlYpC.png
 
Anonymous
but yeah, give it a time.
 
Anonymous
I may try it, but you'll figure it out.
 
1:07 AM
maybe make permanent?
 
Anonymous
You should make it permanent, but it won't affect the errors you have
 
made permanent, no error now
 
Anonymous
really?
 
time to test :D
yeah
 
Anonymous
touch /var/www/index.php
 
1:09 AM
created an index.php file in phpstorm
and it shows up in VM
:D
YAY
 
Anonymous
can't believe that was the issue
 
yeah, crazy
thanks so much for your help
I need a break now :P
 
Anonymous
yeah me too
 
2:11 AM
Man, that nonsense that yasuo is posting. That doc patch is insane.
 
 
2 hours later…
Wes
4:31 AM
@JayIsTooCommon i wish i wasnt. bah
trump is begging for an excuse
@ircmaxell why you do that to yourself, don't read it...
 
reminds me why I don't participate anymore
;)
 
Wes
no @ircmaxell you are doing it on purpose :D remember that the majority avoids yasuo by default :P and all of them vote no. what i'm saying is, there is hope. please come back :D
 
nah ;)
 
Wes
:(
 
5:01 AM
morning
who is yasuo ?
> Roles: Assassin, Fighter
this is what i get from google
 
Wes
samurai
 
5:17 AM
Morning
o/
 
mornin
 
Wes
5:34 AM
@NikiC can you give me some hints on how should i get the ast of a method in a class? first thing i need to do is locating the class's tree (searching by name), then the method i'm looking for. i'm currently doing it by just manually traversing the ast, but code starts to look like a mess, is there a better way perhaps?
mornings all
 
:D
ugh, I got 60+ spams to the email I used to comment on the bug, seems just overnight
 
Wes
bugs.php.net?
 
yeah
 
Wes
that's why i always add bugs with fake emails
there are bots grabbing emails from it and they send spam
i'm sure of that :B
 
6:00 AM
TAKE IT! TAKE ANOTHER LITTLE PIECE OF MY HEART NOW, BABY!
 
:D Janis...
/me opens the song
 
Wes
lol
 
hey guys
need help in codeIgniter
 
morning r11
 
<div class="tab-pane fade in active" id="tab1default">Klinik Nu. <h2 contenteditable="false" class="ca-no">C/A No. <?php echo $row->s_no; ?></h2>
<i class="edit fa fa-pencil-square-o"></i>
<i style="margin-left:10px;" class="save fa fa-floppy-o" ></i>
</div>
this is my view code
I want to apply login condition for this code
if user logged in, then icons should appear else not be
 
 
Wes
that's a red panda. firefox made me hate them. i hope they get extinct
:B
 
:P
 
8:00 AM
@AnkitGupta step 1. delete code igniter. step 2. live a happy and fruitful life.
 
8:20 AM
@AnkitGupta Create a session variable on successful login and then check before icon if session variable exist then show else nothing. Or you can follow @Stephen's steps.
 
mornin
 
morning tereško
 
o/
 
\O
 
o/
 
ThW
8:34 AM
morning
 
mornin ThW
 
9:00 AM
Hello
 
9:44 AM
mornings o/
 
Anonymous
morings
 
@Wes which ast?
 
Wes
php-parser
 
@Wes you can switch to the master branch and use NodeFinder
 
Wes
oh
let me try :P
 
@Wes apart from that, the usual method is to implement a visitor
 
Wes
i am doing it really bad though with several visitors running one after another
i also thought to use nested visitors, that would be bad, right?
public function leaveNode(Node $node){
 if(.....)
      $this->traverse->traverse(...)
but let me check node finder now
 
@Wes The node finder is basically multiple visitors after each other, just abstracted
You can use the findFirst method so it doesn't scan the whole ast after finding a match
 
bob
Hey guys, i'm having an issue with having two google maps on the same page. I'm echoing out a bunch of locations in a while loop which is working, but i also have a form where a user can select a location with a marker, however this isn't working. it's not showing the map. i'm using the second map on another page and it's working fine.
 
Wes
10:03 AM
master seems much better already with completion and stuff :P
it worked! :D
thanks <3
ha, awesome :D
 
Morgen 11
 
Wes
\o
 
Could you give me the quick gist how language selection currently works @Wes on php.net? So I can decide whether I want to look into making it at least more sane?
 
Wes
i have no idea. i think there are languages but some are just not listed in the <select>
however results appear on google
@PeeHaa this is how they disabled the italian translation, if that helps bugs.php.net/bug.php?id=69285
i've checked the documentation really even if someone decided to update it, there is very little to save from that. it would be much easier translating from english again than updating the italian version so that matches the english one
 
10:22 AM
Yes, but it's not just it that's the problem imo
 
Wes
some pages are not even italian, i think they started translating them but left most of the text in english
 
I don't think we even do analytics on the pages
That would have been nice to be able to make a decision
 
Hello guys, i want to do that: array(1,2,3,4,5,6,7,8,9,10) and i have that variable j=value; When j is equal to 2 the result will be 1,3,5,7,9 and 2,4,6,8,10 if j=3 will be 1,4,8 and 2,5,9 and 3,6,10. The idea is getting the position of the array according with the value of j. Some array function where we can do that?
 
afternoons o/
 
string(31) "reldnah_epyt_evitimirp_retsiger"
 
10:24 AM
@NikiC How's the booze? :P
Anyway @Wes I might first try to get webnews in a better state this weekend
 
Wes
webnews?
 
php webnews interface
 
@PeeHaa it's called opcache...
 
Ah so you need booze
 
Wes
you mean news.php.net ?
 
10:28 AM
yes
 
Wes
why? externals.io is nice enough :B
 
It's only for internals
And because everybody thinks it's so nice I copied it of course :P
 
@NikiC lol wat
register_primitive_type_handler
wtf :D
 
And nice! Yasuo responded to my mail about not confusing people by making it worse \o/
 
Wes
@Ekin ah now i get why it reminded me of something :B
 
Am I weird when I say I read it like that knowing it was opcache related? :P
 
Wes
have you ever tried to run a site with opcache enabled? :B
 
The output ended up that way because I was testing something like "foo"->strrrev() with scalar objects, but thanks to opcache it ended up strrev'ing a random other string...
I swear, PHP also has bugs that are not opcache related!
 
@Wes More than is healthy for me :P
 
oh lol
 
10:38 AM
@NikiC Suuuuuure
Just keep telling yourself that buddy
Anybody has proper understanding of elasticsearch perhaps?
cc @Gordon
 
Wes
kelunik maybe
 
@kelunik maybe ^ ?
 
Wes
what's wrong with using actual databases
 
I think a document database is better suited for proper news search
I want to poll opinions about this
 
Wes
fulltext works on mysql
i bet it works on postgres too :B
 
10:44 AM
yes full text does
By that it also do search in code blocks?
Search in quotes?
Full text indexing
 
Wes
search in quotes?
 
> poop
 
Wes
mysql iirc just indexes words using the collation's word separators
like \b
 
yes
I think so too
Or actually
I don't know if / how mysql works
I assume it does return recordset(rand(0, MAX_INT));
 
Wes
10:47 AM
lol
 
:P
 
Wes
you need to tune it a bit
 
@PeeHaa poorly
 
Wes
the most complex thing i did was a combination of boolean full text and natural language. it worked okay
 
something something right tool for the job
 
10:52 AM
any idea people about my request on the top?
array slice?
 
@ChristopheCosta Google "modulo operator"
BTW how did max do @Wes?
Poorly again?
/me opens news
 
Wes
max's not the problem
redbulls are crap this year
 
s/redbulls/renaults/ ?
 
Wes
both
car's not good, engine is not good too
 
@ChristopheCosta I'd suggest implementing it by hand
 
10:57 AM
@Wes either*
Also :(
 
Wes
did you hear about the active suspension controversy?
 
Nope
 
Alternatively something like array_map(null, ...array_chunk($array, $n)) might work, though probably not if your arrays aren't exact multiplies
 
Wes
basically mercedes and redbull were using kind of active suspensions, which are disallowed
 
@PeeHaa that's because it was suspended
 
Wes
10:58 AM
ferrari complained and that ruined both mercedes and redbull's plans
 
@Gordon :P
 
@ChristopheCosta 3v4l.org/lWf5R
 
@Wes Filthy italians :P
 
Wes
:B well, they asked "can we do that? we want to do this too, but we thought it was illegal"
and fia replied "yes actually they are illegal"
 
Yes. Nazis
 
Wes
11:00 AM
and merc and redbull were forced to remove them :B
 
:P
School playground tactics :D
 
Wes
both of them though kept the thing super secret (they knew they were cheating...), only when some photos leaked ferrari noticed they were using that slightly illegal solution
 
Hello @NikiC, let me check. Thanks for the example.
 
@Gordon One of these days I'm going to get myself kids just so I can dad joke you back
 
@PeeHaa looking forward to it
 
11:04 AM
:P
 
Wes
@PeeHaa basically they were using a complicated system that under the pressure of air in long straights and fast corners would lower down the car. and that is considered "active suspensions"
 
I see how that is borderline
 
Wes
so basically redbull had to remove it and they got their car completely ruined because everything was designed around that trick
mercedes instead saw that coming earlier and they were already working on an alternative solution so no big drama for them
 
And merc came to the exact same thing independently at the same time?
 
Wes
remember when red bull last year started to do great races? :B
 
11:09 AM
yes max joined
/me ducks for cover
 
Wes
around that time they copied mercedes' solution
 
:P
 
Wes
:B
til formula 2 race comment is done by super mario... errr an italian, on sky UK
 
:D they are trying to take over the world again
When is the indy500 race btw also Sundays?
Such a huge middle finger to the f1
 
Wes
en.wikipedia.org/wiki/Davide_Valsecchi <- him, do you remember him? been in f1 too for a while
if you are used to f1 indy 500 is going to look terrible
 
11:14 AM
Nope don't remember him
 
Wes
have you ever seen a nascar race?
 
yeah I know
 
Wes
it's exciting for like 30 minutes
but race lasts something like 5 hours :B
 
After 300 meters turn left
Ugh I forgot chat eats same messages :P
 
Wes
@PeeHaa raikkonen was asked "why does the Bahrain circuit suit you?"
he answered "i don't know, why don't you ask the circuit?"
 
11:18 AM
hehehehe
 
Wes
i'll miss him
this is his last year probably
 
11:39 AM
moin
 
Anonymous
Yo 11
 
'nin
 
o\
 
11:56 AM
yo all
 
I'm finding this really addictive youtube.com/watch?v=l_EIE5f2t6M
 
again the same one :P
proves the point...
 
@DaveRandom Shouldn't you stay away from addictive things?
 
I guess so :-P
@PeeHaa if I did that then I wouldn't be here...
 
lol
 
11:59 AM
Hello. Could someone take a look at my question please? It hasn't had any responses yet. stackoverflow.com/questions/43412781/…
 
Don't you have to tell jquery to do preflight?
 
@VoiDHD So just to be clear: the Access-Control-* headers you are setting on the api.domain.uk rather than the domain where the page is hosted?
Also, have you verified that the headers you are attempting to set are actually being set?
It's possible that your IIS is not correctly configured in some way, PHP/IIS is not a particularly common setup
also IIS is a stupid web server in every way
 
Oh iis
Imma run now
 
:-P
 
You can't spell isis without iis.#justsayin
 
12:04 PM
It probably does something ridiculous like a whitelist of allowed headers from CGI apps or something
 
12:14 PM
can I use these instructions to install php 7, if I change places where it says 5 to 7? php.net/manual/en/install.unix.debian.php
@PeeHaa ISIS the band?
@VoiDHD what version IIS?
though I have no experience with laravel, so probably moot
 
@PeeHaa yeah they sound similar to me and work similar too :P
 
@Trowski why do we have Amp\ByteStream namespace instead of Amp\Stream?
 
Is it possible to install php7 through apt?
 
@Tiffany you should be able to on 16.x
but if you wanted the latest software, you should have gone with Arch
 
meh
one distro at a time
at this point, I'm most familiar with debian
 
12:36 PM
@Tiffany I am using IIS 8.
 
my condolences
 
hello
 
!!galstaff
@jeeves You okay bro?
 
I got php 7.1 installed. I think. Need to test it...
 
12:55 PM
DFASDFJASDKFDSAJFKSDIFDSa
my comment system is finally done
 
00:00 - 13:0013:00 - 22:00

« first day (2373 days earlier)      last day (2581 days later) »