« first day (2425 days earlier)      last day (2748 days later) » 

00:00
@Wes mood, genre?
Wes
Wes
anything. also comedy
ahoy hoy
@Wes Dirk Gentlys Holistic Detective Agency
Wes
Wes
tv series?
00:15
yes, a collegue also mentioned it favorably, for humor.
<- doesn't really watch comedies
Wes
Wes
damn phpstorm is so broken
php7 made a mess of it
not sure about that. i dislike frodo :B
no wait. i dislike the other one
harry potter
 
1 hour later…
01:44
Is there an easy way to allow whitespace in regex in php (to make it more human readable)?
@Julix Yes; look in docs for modifiers.
Wes
Wes
02:01
/x
Thanks! :)
mornin'
coffee
 
2 hours later…
03:52
morning!
05:05
good morning Gordon
mornin
afternoon
05:31
@Trowski Any reason for that? The class is tested and it's just that one class. If we go with 0.1 we'll probably stick with that forever, as nobody wants to move to 1.0 just to break all dependencies.
We can just release a 2.0 if we need to.
@kelunik I see your point. I just pushed an isValid() method in another branch. Might be useful for externally determining if the generator completed.
Dunno whether we need that, but it doesn't bloat an interface, so I'm fine with potentially unused methods.
@kelunik If that's fine then, merge that and tag v1.0. I can't see changing anything else at this point.
@Trowski Even if, the methods are final, so changing thing is mostly fine.
05:48
Learning AI when you suck at math is an enjoyable series
@Trowski Done.
posted on June 06, 2017 by kelunik

Initial release.

@kelunik Woot! Most of the other libs will probably require alphas and/or betas before tagging a 1.0.
@Trowski Are we going with 0.x or 1.0 releases?
@kelunik Guess it depends on the lib. Many of them I'd be comfortable just going with 1.0.
05:54
@Trowski Same here. Not sure on amphp/dns, we're currently at v0.8.14 which indicates it's rather stable, but as the new one will be a total rewrite...
@kelunik Hmm… there I'd probably go with 0.9 since that lib is so important.
@Trowski Same here. dns + aerys + parallel probably 0.x
06:51
"tag" will be "tagged"
"category" will be what?
categorize?? confirm it it's just my thought
ok thx
> so basically some motherfucker exploded a firecracker where thousands of people were watching the champions league match, the crowd in panic started running and walking on each other, hundreds injured and 1 or 2 deads
@Wes That's what was flagged ^
Sorry you got suspended for that, I missed it.
you are to late :(
does google cache payment also?
07:18
I can't believe people took this question seriously
3
Q: How can I send YAML over AJAX?

Jimbo Please focus on the technical aspect of this question, and not on the why. The why is obvious: YAML is the most human-readable data serialization format available to man. And therefore, the best. How can I send YAML via an XMLHttpRequest from the client to the server, without first convertin...

07:30
when i echo $roww['pid']; it prints all values from db but when i print_r($roww['pid']);outside while it prints nothing
$sql = "SELECT pid FROM printtable WHERE post_id =".$post_id;
$query = $db->sql_query($sql);
while($roww = mysqli_fetch_assoc($query)){

echo $roww['pid'];
}
how to print all values from db outside the while
morning
i have doing something google cache this content and what users credit card number pin number all are in plaint text .....
Ouch :o
07:46
does this mean ccavenue save user information in plain text or above screen shot shows data at time of transimission?
@Linus where did you get that from? I cannot fetch this from google cache
@Jimbo this code (from your question)

xhr.send(string_of_yaml_formatted_data);

is that sent in the body of the HTTP request (like form field values)?
@Gordon that's a year old
i am just backing up my data came and across this
issue was probably discovered and fixed
but maybe stay away from them
07:59
ok,does it create problem for me?
Anonymous
@Linus the main concern here should be XAMPP and notepad++ :B
Anonymous
moins.
Morngin
@JayIsTooCommon and notepad..
mornin PeeHaa
08:14
@JayIsTooCommon lol
08:24
Mornin!
Anonymous
seano
Anonymous
!!wotd
brinkmanship: the technique or practice of maneuvering a dangerous situation to the limits of tolerance or safety in order to secure the greatest advantage, especially by creating diplomatic crises.
mornis o/
Anonymous
pedrotholian
08:28
!!dad
Did you hear about the restaurant on the moon? Great food, no atmosphere
weehooo weeehoooouu
Good morning.
08:45
@the_velour_fog Just send it in the body yep
@Jimbo thanks, yea it took some digging but I found the mdn documentation: https://developer.mozilla.org/en-US/docs/Web/API/XMLHttpRequest/send , e.g.
xhr.send("name=foo&id=1234");
Don't forget to set the Content-Type header
moin
@DaveRandom, done...
xhr.setRequestHeader("Content-type", "application/x-www-form-urlencoded");
Anonymous
moin davidblossom
09:02
posted on June 06, 2017

New Cyanide and Happiness Comic

DaveBrazzer
I'm sure I'm going to regret this but...
!!urban brazzer
[ Brazzer ] A brazzer is an Irish slang word or a vulgar word for a female prostitute.
Anonymous
fitting
That's not nearly as bad as I was expecting
09:07
@DaveRandom It's always a gamble with the urban dict
!!urban PeeHaa
[ PeeHaa ] A cowboy shouting peeee haaa! while peeing and swinging a lasso.
"jimbo" is bad enough that I'm not even going to demonstrate
!!urban madara
[ Madara ] A fictional character in the anime series [Naruto]. He's the first Uchiha to awaken the Mangekyou Sharingan and one of the founders of the Hidden Leaf Village. When he discovered he was going blind, he stole his slightly less important little brother's eyes and got a new totally awesome eye ability. He also heleped Itachi kill the Uchiha clan, despite popular belief that Itachi did it himself. He is apparently also Itachi's teacher, leading to the…
@DaveRandom Ewwwwwwwwwwwwwwwwww
awww, serious ones are boring
@MadaraUchiha yuhuh
09:32
o/
!!urban Patrick
[ Patrick ] All around perfect man and a sexy beast. Known to cause even the most loyal of girls to turn on their boyfriends. Talented with music, words, and kills in any sport he plays. Strong like bull. Always competitive, and ALWAYS wins what he competes in. Some consider to be on the status of not only a god, but THE God.
Anonymous
> All around perfect man
Anonymous
> a sexy beast
Anonymous
09:38
mixed messages.
Anonymous
@PeeHaa @bwoebi conference.phpnw.org.uk/phpnw17 we're famous.
@JayIsTooCommon Where?
nvm got it :)
Anonymous
I think we were both hanging at that point
Was looking for a pretty face, but instead found you
:P
@Danack github.com/rdlowrey/auryn/pull/158 … is this a BC break or an acceptable fix?
Anonymous
09:48
.. rude.
@JayIsTooCommon Why is it rude to state the obvious here?
Anonymous
don't pretend you don't think I'm pretty
I don't pretend, I do know.
Faulty returned values openssl_pkey_get_details – #74700
> If the last byte is zero byte (0x00), the returned value in the $ret['dh']['pub_key'] is shorter than expected (obviously with one byte in this case).
...
@Ekin any chance you can confirm this bugs.php.net/bug.php?id=74694?
10:01
hi friends if any one know how to debug php and javascript code using sublime please tell me..
any efficient way to convert the array into the string without using a print_r function?
use implode()
Idk but I don't like implode, I'll use json_encode with JSON_UNESCAPED_SLASHES
morning
Anonymous
o/ nik
10:08
@PeeHaa wat
@PeeHaa whut?
fucking hell it actually is
surely there's no string stuff in there
please
I am too scared to even look
10:10
moin
ohai
10:21
@PeeHaa well, I have no idea. This looks OK to me /cc @bwoebi
how can i print particular data outside while loop this my code: $sql = "SELECT pid FROM `printtable` WHERE post_id=".$post_id."";

$query = $db->sql_query($sql);
$print_data = array();
while($roww = mysqli_fetch_array($query)){

$print_data[] = array(
'pid' => $roww['pid']
);
}
print_r($roww['pid']);exit;
Your question is quite unclear..
@DaveRandom It's C it all looks crap to me
when i print it displays nothing outside while loop
Anonymous
@DaveRandom what's the purpose of the while?
10:26
how can i get my pid value from above code??
Could you explain the purpose of the while further?
woops, didnt see ur response Jay
Anonymous
@KevinBosman it was to something else, no worries :)
how can i print outside while...?print_r($roww['pid']);
@JayIsTooCommon it's to turn it into a statement because it's a preprocessor macro. It's invoked from here (through an intermediate macro), it's basically a hack in order to keep the code C89 compliant
Anonymous
10:30
@hameed assign it to a variable? or print your array $print_data.
Instead of an array, use a string container perhaps.. @ham
@hameed
C89 doesn't allow "empty statements", i.e. a ; on it's own is not technically allowed
The while makes the terminating ; at invocation valid
Although tbh, no sane compiler would actually fail on that
Also I'm still not clear on why the PHP source code needs to be C89 compliant in 2017...
@DaveRandom looks fine, yea
@JayIsTooCommon i assigned it to variable like this but it getting only one value(last value)from the table
while($roww = mysqli_fetch_array($query)){
$pid= $roww['pid'];
}
print_r($pid);exit;
Anonymous
@hameed That's because you're overwriting it on every iteration.
Anonymous
10:38
@DaveRandom cheers
but i need all values how will i get?
Anonymous
@hameed Change the code you pasted here chat.stackoverflow.com/transcript/message/37483209#37483209 to print $print_data instead of $roww['pid'].
user924016
mrgs
any last words before i move this to voting?
@RonniSkansing o/
user924016
10:50
\o
\o
that's a bot ^
lol
\o
@Psudohuman sorry i thought you are bot ..
Anonymous
@JennaSloan please remove your bot.
10:54
@pmmaga It's still a subtle BC break.
@kelunik would you rather wait for 8.0?
@pmmaga I think yes, but I'm not sure.
Maybe I should try to get some feedback from 7.2 RMs then.. that's the common issue with the RFC, and I wouldn't mind waiting for 8.0. Even though I think that there will be very little real use cases that are affected
11:25
When I run a composer script, what's the working directory?
OT Feeeeels
@Jimbo This question..
...?
user924016
@Jimbo i thought it would be the current directory
user924016
guess it's not from you question (=
11:38
Hello
try dumping getcwd i guess
Damn typed a 6line long message chat wont let me post it
break it into smaller chunks
Clipbiard got messed up on my android lost it. It was a dumb question, unrelated to php or anything else on SO. Didnt know where else to ask. Basically
Can a company that does web and app development be called a startup?
There re 4 programmers and an infra engineer and a paperwork lady
Founded in 2016
A startup company (startup or start-up) is an entrepreneurial venture which is typically a newly emerged, fast-growing business that aims to meet a marketplace need by developing or offering an innovative product, process or service. A startup is usually a company such as a small business, a partnership or an organization designed to rapidly develop a scalable business model. == Evolution == Startup companies can come in all forms and sizes. Some of the critical tasks are to build a co-founder team to secure key skills, know-how, financial resources, and other elements to conduct research on the...
11:44
startup is mostly a bullshit term
Yes! Innovative is the keyword. I used to think we werent a startup until my boss said we were todau
I thought a startup was a small business designed to generate a ton of hype, get a load of seed money, then sell as quickly as possible
with little to no real products or benefits to show
owners of startups brag alot yet they fail 9/10 times..
@pmmaga please move it to voting for 7.2.
@Leigh that's certainly one of the business models but not the only option.
11:46
@PeeHaa It reminds me of student in a bad connotation :-)
date("o", strtotime("2017-01-01")) returns "2016" – #74701
@Fabor how's the tropical disease collection coming on?
Applied for jetbrains startup discount and were approved today. Should i just refer to the company as small business then?
@Leigh Funny you say that as I am ill currently.
@Leigh is there a reason this isn't committed yet? edit.php.net/?project=PHP&perm=en/json.constants.php
11:48
Things are good though. Still not working :P. How are you?
@Fabor explosive gonorrhea?
@Leigh That's so common here I don't consider it illness anymore.
@PeeHaa It's just the JSON constants page?
@Fabor yellow fever? breakbone?
Nah, just a cold. Despite it being nearly 40c :P
11:51
boooooooooooring
Mosquitoes aren't a huge problem here.
heh. Yeah. I'll try to get something more exotic next time.
@PeeHaa meh just delete it, fuck mcrypt
@RonniSkansing Yeah the question is from me, but it was poorly worded. I meant, when composer runs post install command scripts, what's the current directory that the script thinks it's being run from
I guess you were referring to the mcrypt constants one rather than json constants
user924016
@Jimbo I think it's the directory you run it from... but dont take my word, I am really in doubt. Share when you find out (=
user924016
11:53
If I remember right it' cwd as I was doing some tests with sudo evilness when changing a package to a plugin type
user924016
but that's like +1 year ago
@Leigh kk \o/
Yes, it is the current directory
@Leigh err yeah
tnx
Can't delete it :P
12:10
@bwoebi I would like a bit more feedback.. Wouldn't want it to fail just because of the timing.. :/
morning
o/
12:21
o/
user924016
\o
o/
12:22
\o
o/
this php function . date("h:i:sa"); prints the time now what I should do if I want to prints the time now + one hour
Anonymous
~$listcommands
12:25
Available commands:
Builtin: asm, help, learn, list, listcommands, unlearn
Learned: fib
how do I delete all docker images in a certain repo? docker rmi repo:* doesnt work
dont tell me this again requires awk
user924016
probably something ala
user924016
docker rmi $(docker images -f someFilter -a -q)
@Fabor could this achieved by simple code?
<?php echo date("F j ", strtotime($row->msg_sent_time));?> i need a format like gmail inbox current message for current time will display,next day the same message it will display like example jun 05 pls help me any one
12:28
@RonniSkansing this is ridiculous. but thx.
user924016
Yea, I am not sure the filter can say, eh this repo
user924016
I only do something like that to clean out
user924016
docker rmi $(docker images -a -q) or etc with containers
@JavaFan Simple sure. Almost as simple as googling it tbh :P
@siddum first off, paste your code in gist.github.com or pastebin.com, and make it readable. Second, reword your question because it doesn't make a lot of sense.
user924016
12:32
@Gordon perhaps docker rmi $(docker images repoName -a -q)
I did docker rmi $(docker images -q) now. that deleted all the images but I only had those I wanted to delete anyway
user924016
great
awful
I am considering removing the docker sticker from my notebook
$date = new DateTime();
$date->add(new DateInterval('PT1H'));
echo $date->format("Y-m-d H:i:s");
@Gordon so I shouldn't jump on the docker bandwagon
12:35
@Tiffany you should to try it out
Aye. Helps to have a reason to though.
user924016
I think docker has worked fine for me, once I got the hang of it
is it like in between xampp and running a VM?
qualified ranting is always a good reason
@Tiffany not really. its a container.
@Tiffany It's like an onion made of VMs
12:36
thats not a xampp because xamp is several apps in one package to install locally.
docker scares me because of the horror story I read about some developers running it in production
but for dev, it has me curious
and that's not a vm either because vms are a complete system
how can i send array over php sockets ?
a container is a supposedly lightweight throwaway service linked to many other containers
in terms of learning curve, is it in between xampp and running a VM? where xampp is the easiest, and running a VM is harder
12:38
Every app has its issues and growing pains.
@Tiffany no, much higher
@jagdish Serialize it in some fashion.
@Tiffany If you want to upgrade from XAMPP I would suggest learning about Vagrant/Virtualbox/phphet
Anonymous
@Tiffany i'd say running a VM is easier than hacking around with XAMPP
@Fabor Your code prints the same my code
12:39
@JayIsTooCommon Nah
XAMPP is generally install and forget.
Anonymous
I've always found it to be a complete PITA. Linux box much easier imo.
I've messed with vagrant, had trouble with it connecting to my host machine though with the port forwarding. But looking back I think it might have been a problem with how I had Virtualbox configured and not vagrant. I'm looking into it again because of @Jimbo's "rapid dev box" vagrantfile
Anonymous
also hai madara, fapor, tiff o/
XAMPP is generally a no-go
Hey James
12:40
@JayIsTooCommon \o
@Fabor docker \o/
You're touching towards sysadmin stuff though @Tiffany. If that's a route you want to know more about.
I use xampp for quick stuff, but I do want to migrate to using vagrant.
Very rewarding
and annoying/stressful
@Fabor nah, it's devops. you do it all through code
12:41
@jagdish json_encode it
Yeah, the stuff I've been working on at home, it's similar to the stuff that the sysadmin does at work here XD I can actually start to understand what he's saying now and it's a bit scary.
@Gordon If it works :D
I question if devops is the route I wanna go career-wise
@Fabor it never does
heh
12:42
but I curse more at setting up a linux box than my programming, so probably not
DevOps sounds cooler anyway.
Anonymous
@Tiffany setting up a linux box should be easy. What is it that you struggle with?
@JayIsTooCommon unless its a centos 5.11 i386 :P
which is what I am currently doing. to turn it into a docker container.
dont ask
Anonymous
that sounds fun :B
@Gordon isn't there some ready image you can pull and launch?
12:47
@JayIsTooCommon understanding permissions and what needs to be the owner of what
like what should be the owner of php, mariadb, nginx
Anonymous
pffft that's what 777 is for
or apache if I switch to that (and the only reason I'd switch to it is because nginx is still terribly new to me, and I feel like I'm trying too many new things at once, plus most tutorials go from apache to nginx. I'm not sure if there's an IIS to nginx tutorial)
isn't 777 bad?
Anonymous
yes :P
@HamZa yno. centos never released i386 images and 5.11 is EoL and needs all yum repo urls changed to vault.centos.org
there is images by 3rd parties for that but who can you trust?
@Gordon but you can lookup their docker file on github right :_)
12:52
@HamZa but I'd need to check the archives with the rootfs to make sure
@nikic Did you run the parser bench through perf?
@kelunik You mean @NikiC … nikita_ppv is his twitter handle
Anonymous
@kelunik wrong ping

« first day (2425 days earlier)      last day (2748 days later) »