« first day (2065 days earlier)      last day (2889 days later) » 
00:00 - 15:0015:00 - 00:00

3:01 PM
RIP typed properties
 
@Andrea at least you're not one of these people who write "RIP in peace" …
 
@bwoebi RIP in peace in peace
 
has anyone worked with a virtual dev envormnet and might be able to tell me how I can access files on the VHD drive?
i know its slightly outside php but its for php dev envoment since I crashed xampp yesterday
 
@Andrea Don't ask me why… but how do you translate property into latin in the sense of object properties?
 
Anonymous
3:23 PM
@JustinKaz define virtual dec
 
Anonymous
*dev
 
Apparently lxr.php.net is down?
 
@samayo virtual box ubuntu instalation
 
@Trowski yes (grr)
> danbrown
Tyrael: I'm on the phone with Spry right now.
danbrown
They have no idea who it belongs to either, nor can they access it.
 
Anonymous
@JustinKaz I don't know about Ubuntu but on cent os if you want to share files between Linux vbox and Windows all you have to do is install guess additions and mount your c:/web folder or whatever
 
3:29 PM
ok cool
ubuntu install wizard "Running Popcorn" ?!?
 
Jun 3 at 9:40, by PeeHaa
@kelunik jesus ...amateurs
 
Anonymous
@JustinKaz it should be the same for ububtu guest addition is a vbox thing
 
@bwoebi Seriously?
 
ok cool
 
@Sherif yes, quote from IRC^^
 
3:40 PM
heh
 
4:05 PM
'nin
 
Hello lads!
On a simple input="submit" success - how do you prefer to print to the user that it succeeded?
I simply want to print to the user that the submission succeeded, without redirecting. Just a small text by the the button or something
 
Ajax?
 
HTML form
 
I mean, you can use ajax...
 
ohh yeah.. I get what you mean now.. I just googled the use of ajax and all I got was "Ajax-forms" so thought you meant that I should use a javascript form :)
 
4:12 PM
JavaScript form?
 
!!mdn XmlHttpRequest
 
[ XMLHttpRequest ] XMLHttpRequest is an API that provides client functionality for transferring data between a client and a server. It provides an easy way to retrieve data from a URL without having to do a full page refresh. This enables a Web page to update just a part of the page without disrupting what the user is doing.
 
@Saitama that's so 2014
!!mdn fetch
 
[ GlobalFetch.fetch() ] The fetch() method of the GlobalFetch interface starts the process of fetching a resource. This returns a promise that resolves to the Response object representing the response to your request.
 
oldskool
 
4:13 PM
"jQuery Form" was the first top results from Google. So I just assumed..
 
@JakobMillah All you need to do is listen to the submit event, preventDefault, serialise form data, send the serialised thing to server via fetch or $.ajax or whatever, validate it on the server-side, .then() and show the output.
 
Sweet, thanks @littlepootis :)
 
@littlepootis unfortunately fetch is not all that widely supported yet on the "default OS browsers"
it also sucks on phones
 
@tereško There's a polyfill github.com/github/fetch
 
4:42 PM
Quick question, I have an array with keys. How do I return the count of those whose value is false?
 
what good way of reset the password?
 
it involves tattoo removal, or the cooking and eating of hamsters @Anmol
Nov 6 '14 at 20:43, by Joe Watkins
@PeeHaa I use a hamster ... every project I start, I buy a hamster (they are cheap, a few bucks only), I shave it, and I tattoo the configuration on it's belly ... the password is only 5 minutes away with a decent shaver ... I find it to be secure, but you have to weigh carefully the cost of hamsters against your security needs ...
 
The word of "make" is a correct word in this context? "Would that query make any benefit of that index?"
 
they tend not to survive tattoo removal, must be something wrong with my potato peeler ... by that time they are already half peeled, might as well stick them in a sandwich ...
hehe
 
4:53 PM
E_TOO_BRUTAL
 
@Saitama no hamsters were harmed in the making of this joke ...
 
hehe
 
> [Breaking on watchpoint $a[]]
46539487 elements were added to the array
UMMMM
 
@AnmolRaghuvanshiVersion2.0 What password?
 
4:59 PM
@littlepootis user password ..
 
unix..?
 
@littlepootis on websites if user forgots his password..
 
@bwoebi looks suspect
 
@JoeWatkins yes… because it segfaults right after that
 
@Shafizadeh it's not incorrect, but better English would be "Would that query take advantage of that index?"
or "Would that query benefit from that index?"
 
5:26 PM
@JoeWatkins I see, thx
 
Watching episode 19 of CG R2 again Wow, much emotions, such sad feeling... :'''
 
ok ... so ... I am thinking of buying Mionix 8200 as my gaming mouse: mionix.net/product/naos-8200
has anyone had any experience with Mionix gear?
 
Anonymous
6:02 PM
Award winning mouse? Smh didn't know there was an award for that
 
6:16 PM
heh
nobody really cares about award claims
 
Night!
 
Ekn
o/
the expanse started really good
 
book or tv?
 
Ekn
tv
I still didn't get the book
 
there are currently 5 books in the series (IIRC)
 
Ekn
6:26 PM
s/book/books yeah I saw it
 
on an unrelated subject: OMG, someone has let @ircmaxell use the internet again, quick, hide the familiy silver
 
uhhh
 
@ircmaxell enjoying phpsc? :-)
 
I left this room (and the majority of the community) by choice, not because I was blocked from the interent
 
@ircmaxell I still don't really understand why … Is it related to the CoC drama? At least the time you began to be more rare here was around after that
 
Anonymous
6:37 PM
@ircmaxell your talk was great :)
 
6:58 PM
guys, I think I asked this in the past here, but I still don't have any answer: how should I store the credentials for the mysql server both on my development computer and on the production server?
 
Anonymous
@Victor in a config file outside of source.
 
ok, but then how do I link it from php? The filesystem configuration is different between the dev machines
 
you still don't have any answer because your question is not clear.
 
@AdilIlhan then please tell me what you need to know exactly
 
i didn't understand your question. so that's why i don't know what is missing in your question sir
 
7:11 PM
ok, so, look. I will try to be clear, it can be a problem for me sometimes
so I have a repository dbal. the repo is used a submodule in the repository site
I use jenkins to deploy my website to production
that runs tests, bundles scrips, generates documentation, filters files, clears the production environment directory and finally copies the generated files in the production directory
the problem is that I don't know how/where to store a configuration file so as to be system-independent (i.e. so each developer can have their own database credentials etc) and to be still accessible via some reasonable path, for example, I shouldn't store it in /var/site/production on my local machine, but it should be there on the production server
 
hmm why you don't add your config file to gitignore? thus, everyone can use their config files in their local machines
for instance; currently, a zf2 project open in my phpstorm
this is content of .gitignore
local.php
*.local.php
so, i can create local config files and nobody see them on git repositor
 
but then what do I do? store a local.php on the production server and copy it in place with jenkins?
 
do you override the files on every jenkins build?
if you don't have any security problems then you can store your production db's credentials in your code base
but if you have worry for credentials
then create a config file under somewhere and copy it every build
 
@AdilIlhan yes
@AdilIlhan ok then, I guess that's what I am going to do
 
7:31 PM
Is it possible in array to get first element when the code executes first time
and get second element when the code executes second time
and so on
?
 
how?
 
@AbrarAhmed like this:
$i = 0;
function getElement() {
    return $array[$i++];
}
 
@vi
@Victor Thank you very much
 
8:09 PM
@AbrarAhmed I hope that's what you were looking for
 
Ekn
8:36 PM
It seems I will be moving to Turkey soon
 
8:48 PM
Don't forget to bring a towel
!!should I continue drinking or work on the gitclient?
 
You should work on the gitclient.
 
Goddamnit
!!should I ignore you or ignore you
 
You should ignore you.
 
idonteven
 
@Jeeves Ha!
Jeeves knows best
 
8:50 PM
Such a prick
 
guys, what recommendations do you have for me to understand websockets?
 
@JoeWatkins it's probably a wasted effort, but the typed properties rfc is missing the 2/3 paragraph. And you have a typo real0life
Unless that is street talk
 
I want to implement a php websocket server
 
Do it! :)
 
@PeeHaa but I know nothing about sockets...
nothing apart from the fact that they're live
 
8:58 PM
Neither did I when I did my crap implementation
 
but you certainly read some things before writing that crap implementation
 
Just the RFC
 
for example, how do I keep the php process running for an indefinite period of time?
I would say while (true) {}
 
Sounds good to me
 
what is the rfc
 
9:00 PM
@Victor Just use Aerys: github.com/amphp/aerys
 
Unless you really want to implement it yourself as a exercise.
 
I think I targeted 6455
 
@Trowski I want to implement it myself
@Trowski also what do you thing about Ratchet (socketo.me)
 
Ratchet is fine if you want to use the ReactPHP environment, but I think Amp is better.
 
9:02 PM
/me agrees with the guy above with that hat
If only because of the personal amp support :P
 
amphp/amp is a non-blocking concurrency framework for PHP applications. this means nothing :|
 
10/10 would submit bugs again
@Victor Do you do javascript?
 
yeah
is it about async operations?
 
Yeas
 
=> this requires a beefy server
 
9:09 PM
Why? / What are you doing with the messages?
 
commenting/voting system
at first
 
At least it's not a game/chat
 
a thing I don't understand is: does the server have only one connection for all the clients and handles them by an id? or a new socket is opened for every client? does it essentially work like a normal http server?
 
Anonymous
Evenin
 
I saw a decent page about it a while back. Let me try to find it
@JayIsTooCommon Yo common one
 
9:14 PM
@JayIsTooCommon hi
 
Anonymous
:P
 
@JayIsTooCommon Everybody drunk yet?
 
@PeeHaa waitin'
 
Anonymous
@PeeHaa I couldn't stay for social, but presumably yes :p it was much better than I thought it was gonna be tbh
 
9:16 PM
You met the room I assume?
 
@Victor it essentially works like a normal http server, except the connection for each client is never closed
 
oh hi @FlorianMargaine, you're everywhere
 
just in 2 rooms :)
 
Anonymous
@PeeHaa umm fabor, danack and leigh. That's about it I think. I'm thinking of going to NW too, as apparently that's one of the best?
 
@FlorianMargaine me too
@PeeHaa thanks. I will read the standard first
 
9:19 PM
@JayIsTooCommon I'm also thinking about going to NW
 
maybe I'll implement something by the end of next week
 
Also, sorry you had to meet them :P
@JayIsTooCommon Surely @ircmaxell was also here at least briefly?
 
the internet is not failing me
I'm writing a dhcp server, and the resources are really good.
even the wikipedia page is amazing
 
Sorry I puked before I could scroll to the content
> A TCP/IP Reference You Can Understand
Clearly they don't know me very well
 
Anonymous
@PeeHaa R11 meet up? :p haha he was but I didn't have the chance to meet him, he always seemed crowded by people :p His talk was pretty cool though
 
9:24 PM
@FlorianMargaine I wonder where you should learn this things. I mean, if you look at every wireless router, it has a dhcp server which was written by some specialist in this field
 
@Victor specialist? Have you even ever had a consumer router? :P
Also those things are filled with OSS implementations
 
@PeeHaa :)) what does a non-consumer router look like?
 
Big, bulky and pricey :P
 
give me something on amazon
pls
I am curious
 
!!google enterprise wireless routes cisco
 
9:27 PM
Search for "enterprise wireless routes cisco" (https://www.google.com/search?q=enterprise+wireless+routes+cisco&lr=lang_en)
• All Wireless Products - Cisco - Wireless and mobility solutions provide highly secure access to network resources … Switches and R… (http://www.cisco.com/c/en/us/products/wireless/product-listing.html)
• Cisco Enterprise Networks - Products - Cisco - Cisco offers a wide range of Enterprise Networks products and solutions designed for … The compreh… (http://www.cisco.com/c/en/us/solutions/enterprise-networks/product-listing.html)
 
Wireless should die
In a fire
With napalm
brb /me needs a refill
 
@PeeHaa heh
 
I have to go now
good night
 
@PeeHaa … of napalm?
 
@Victor I wouldn't be surprised if most routers had dnsmasq or something
 
9:33 PM
@bwoebi Only if it is at least 12 years old :P
@Victor night
 
10:08 PM
@bwoebi Are you planning on bringing union types to a vote soon?
 
@Trowski I have no idea … ARGH :-(
I want to, but I'm not sure whether my weak scalar handling is good enough
And I don't really want to have it fail because of that.
 
@bwoebi What you have in the RFC right now seems intuitive.
string -> int/float only if is_numeric doesn't quite align with weak types.
 
Hello guys :)

I have date in this format : "20160607T135505.000Z"

I want to convert it to 'Y-m-d H:i:s'

I tried searching on stackoverflow and tried a few methods but none of them worked. Please help ?
 
Perhaps that should always be attempted.
 
@Trowski well, that's what actually happens with weak types?
 
10:16 PM
@AkshayLAradhya use DateTime::createFromFormat
 
it actually will be attempted, just with notice then if no bool is there,
 
@bwoebi It throws if is_numeric is false... but that would happen here too if bool wasn't there, so n/m, it is the same as weak types then.
So yeah, that seems intuitive then.
 
yeah
 
@FlorianMargaine Ahh thanks so much. I tried that but I forgot the microseconds part :)
 
I just need to update the branch with a few fixes and put it to vote…
I just shall do it…
I always can retry a better version for 7.2 (if there turns out to be a better one)
 
10:24 PM
@bwoebi “proprietas”? going by Google Translate's listed meanings
 
@Andrea should've tried that… thanks … Proprietatis modi in pace relinquandi sunt...
 
@bwoebi what does that mean?
 
@bwoebi I'd like to see how voting goes before doing anything with iterable.
I haven't gotten any feedback on iterable yet. Any thoughts @everyone?
 
@Andrea well… "RIP property types" :-D
 
@bwoebi aha
 
10:31 PM
It's somehow funny to see my sister make the same mistakes learning Latin than I did (just more of them as I studied a bit more back then…)
 
I should learn Latin someday
 
@Andrea I'd estimate you need alone a good 500-700 hours to master the grammar and a basic vocabulary of a 1500-2000 words…
 
@bwoebi D:
 
(well, obviously, depends on how fast you learn your vocabulary… but for a lot of words you need to learn whether they're m/f/n, their genitive, the primitive verb forms (infinitive (+type of 3rd decl), perfect, supin)…)
so, yea… it's fun. Todays languages are a bit easier to learn
@Andrea But I've never regretted to have learned it actually… but there's really no language I know with a harder vocabulary …
 
Wes
no typed props. i knew it
 
10:42 PM
:>
 
Wes
:(
 
Wow guys
*
dont u ever sleep
 
sure, we do. Good night.
 
Wes
it's quite hard to sleep when you are trying to watch euro 2016, copa america and f1 at the same time :B
 
f1 yes
rest are £hit
well maybe when france is playing
 
10:57 PM
watch summaries and select the good ones?
 
And Ferrari's still can't get their qualy sorted
pisses me off
8 years now
...
ah the good old days
 
Wes
not just the qualy...
still, today third place, 0.17s difference from ham
 
yes ...
 
Wes
they just need to sort out the chassis now, because engine is possibly even better than merc's
 
They 've put everything in it ...
only ' tokens left
and they are behind still
4
 
Wes
11:01 PM
yeah this year is basically finished already, that's the problem with tokens
2017 no tokens and actual chance to win the championship
 
canopy !!!!!
please make the cars uglier then they already are
TODT and Bernie must leave for the sake of it
sad days
 
Wes
they are going to use the thong / halo -__-
 
although i must admit every race this year so far has been kinda exciting
hell monaco was a thriller
 
Wes
eh... not really :P thriller for F1 standards, you mean? :D
 
^
 
Wes
11:04 PM
you from?
 
For monaco standards
Across the chanel
we are hosting ur arses for the coming month
^^
 
Wes
eheheh
i'm not on the other side of the channel though, i'm on the other side of the alps :D
 
swiss
which side §
 
Wes
spaghettiland
 
italian
?
 
Wes
11:06 PM
yep
 
a ferrarista then
Oh
 
Wes
obviously :P
 
Well we will never know
...
had vettel not missed the chicane
i really thought he was going for it :s
 
Wes
which chicane?
 
last one
he missed the apex
 
Wes
11:08 PM
wall of champions? yeah ferrari's traction is not perfect, sometimes it understers
 
No
the one that leads to the back straight
well i am betting on a vettel win tomorrow
 
Wes
turn 13 you mean?
 
no kvyat this time around
:D
 
Wes
eh, i don't know. he's not going to win, imho. there is too little margin for extreme strategies
tyres are basically the same tyre this year. with different paint -__-
absurd that ultrasoft lasted half of monaco race...
 
he will win
oh never mind he won't
it will rain tomorrow
most likely
 
Wes
11:13 PM
can only happen if mercs crash :P
 
no, ferrari's are always good come race day
they should be ok
and now with the new turbo they seem to be even better
better deployment
electrical harvesting and deployment ...
 
Wes
i was wondering if ferrari kept the higher top speed in qualy like they did in fp
 
what do u mean by kept ?
 
Wes
for the whole fp ferrari had the highest top speed. it's a good indicator of the engine development... was wondering if top speed was the highest also in qualy
 
yea it was
 
11:23 PM
Hey, can I ask a question regarding putting an array in a class in a php extension?
 
i guess
just ask
 
In alpm_init_handle, I need an array (that will contain strings) as part of that, but when I try this code I get the error "PHP Fatal error: Internal zval's can't be arrays, objects or resources in Unknown on line 0".
I'm using Linux and I'm using PHP 7.0.7.
 
this was after qualy
 
Wes
interesting that mercs are not on the top of that list :P
 
they run more wing
 
11:31 PM
@MarkWeiman it's too late to get any answer, but I like that this extension will exist :)
 
@FlorianMargaine Meaning time, like I needed to be here hours ago?
 
@MarkWeiman yeah, it's 1:30am in europe, where most of the regulars live
 
@FlorianMargaine Damn time zones....
 
va te coucher Florian
 
@MarkWeiman your issue is that you're using char*... in php7, you have to use zend_string
take a look at how other stuff is doing it
 
11:35 PM
@FlorianMargaine That's not what's going wrong, and the parts that are just about strings work 100%.
@FlorianMargaine, also, the functions seem to be expecting char* still.
@FlorianMargaine: ZEND_API int zend_declare_property_string(zend_class_entry *ce, const char *name, size_t name_length, const char *value, int access_type);
 
@MarkWeiman I mean for zpp
 
@FlorianMargaine zpp?
 
@kelunik ^
 
zend_parse_parameters
 
11:38 PM
@FlorianMargaine: ZEND_API int zend_parse_parameters(int num_args, const char *type_spec, ...);
 
yes, you should use zend_string there, take a look at other stuff
 
@FlorianMargaine, should maybe, required no. It works with char* and that's not the issue I'm having (trust me).
 
(not for type_spec, for the out parameters)
 
@FlorianMargaine Look at lines 41, 42, and 45; that's what's giving me issues.
 
11:40 PM
Why are you dereferencing there?
 
@Sherif, Becuase I seg fault if I don't.
 
o.0
 
@Sherif, Trust me, I've tried too many things...
 
@Sherif the function is accepting a zval*
 
Oh right you declared zval cachedirs
meh
 
11:46 PM
@FlorianMargaine: Also, just making a zval* and not dereferencing seems to also cause seg faults...
 
I don't understand the reasoning behind this, but it seems you can't do what you want, at least not in the declaration
 
Maybe just use add_property instead?
Also, should that be sizeof("cachedirs")-1?
 
@Sherif, Yes, thanks for that. Also, would I use add_property_resource?
 
No, I mean zend_add_property
 
@Sherif: Doesn't seem to exist in PHP 7.
 
11:58 PM
hmm
 
00:00 - 15:0015:00 - 00:00

« first day (2065 days earlier)      last day (2889 days later) »