« first day (2721 days earlier)      last day (2452 days later) » 

01:44
plop
02:07
ploop
I took today off to await my bed delivery, expecting to go to work when I got it. Instead I got it this morning, and it took me the whole damn day to put it together... so it was a good thing I took the day off.
Every excuses are good enough for a day off ;)
I emptied my browser cache to test a website , it took me 15 min to log back in stack-overflow .....
I am moving one of my website from a dedicated host to a raspberry PI... I am really close to have it working but as usual apache is stronger than me
have you looked at nginx?
Im considering it
Im scared of unknown territory ^^
02:58
input[type=password]
  font-family: $fonts_pt_sans
... integrators ...
morning room.
o/
!!should I buy grim dawn or continue playing one of the dozens of games I should finish?
You should buy grim dawn.
03:11
god, damnit
 
1 hour later…
04:38
posted on March 28, 2018

New Cyanide and Happiness Comic

 
1 hour later…
05:38
hey fam quick question tho. I'm trying to run this line within php tags and I'm getting an error
echo ' <td><center><input type="checkbox" name="check_list[]" value="shop_drawings_approved" <?php echo ( isset($_POST['check_list']) AND in_array( "PHP", $_POST['check_list'] ) ) ? "checked" : ""; ?><label></label> <br/> </td>';
when I double quote "check_list" there's no errors but the intended purpose is not functioning then
@FélixGagnon-Grenier Any clue mate?
@Tiffany?
stop that immediately
stop what?
don't, ping people at random only because you see their name.
oh sorry about that
new to the group didn't know the policies
is anyone know a solution for the question tho?
anyone will answer if they know
no mystery, the code is wrong ...
> anyone kenobi
wha's wrong @jo
@JoeWatkins
05:45
echo ... <?php
no it's working fine
okay, good luck ...
@RyanOscar ... so yeah so you know how quotes work in php?
certainly I do mate
check this out
05:54
is there a way to change my php wiki password to something other than what it sends via email? going to wiki.php.net/rfc?do=profile only gives the message "Command disabled: profile"
@FélixGagnon-Grenier If you test that run code you will understand
https://pastebin.com/K9msP2KS
when i use docker my image size is 988MB and without it when i host application it only projects file around 150MB so is docker taking more resource? or am i misunderstood?
@Linus yes, docker takes a lot of space. it's built of "layers", that depending on the nature of your dockerfile can be very memory-consuming. 1GB however is just over a single hello world with node, so don't worry too much.
@FélixGagnon-Grenier yeah it include node,thanks :)
@RyanOscar then... why don't you notice that the second 'echo` in your string is not executed?
06:06
@PaulCrovella Not sure...
@FélixGagnon-Grenier have some more doubts so can i ping you any other time ? if you don't mind?
I'll answer if I can
thanks :)
@PaulCrovella The start page says people with php.net account can't, but I thought it was somehow possible for other people.
> PHP.net VCS accounts cannot use the wiki to change their password, use master.php.net
I'm not finding anything. Resetting the password emails a link, which when clicked then emails a new password.
06:12
master.php.net/login.php
I don't have a php.net account
pleb here
urm urm
I can change your password, but that's not very helpful I guess
yeah not so much
@PaulCrovella Please open a feature request @ bugs.php.net, I'll try to look into that, but won't have time until in a few weeks.
06:17
you could just request an account ...
I haven't earned one
you have code in core ...
I've one pr that broke head
possibly need to change it, need to document it ... that's a good reason for an account ...
well it didn't, travis passed, could be something about build dep on gcov machine ...
ekin was kind enough to pick up documenting it. I was getting nowhere
06:32
not surprising, docbook is the worst thing to worth with ... it would be more comfortable to work with lions, that are on fire ...
I didn't even get that far. Never got word on wtf I needed to do.
nobody really knows how it works
I don't remember, I read sammy's tutorial whenever I gotta add stuff to the manual, but it doesn't include new functions I don't think ... guess someone has to add a file to svn before it can be edited ...
the whole karma thing is 20 years out of date now, I really hate it ... I wish we could use github properly ...
supposed to do things before you get karma, but there's so much in the way of doing stuff ...
nobody even knows how svn works anymore, this generation have likely never used it ...
you know how many commits I had to php-src when I was granted karma for /Zend ?
none, it was none, I introduced myself and someone granted me god like karma ...
@JoeWatkins what's stopping us from using github?
it's extremely worthless ...
I don't know, but you know that I can't assign bugs to dmitry on github ?
I mean what the fuck ...
the thing that is held up as a reason is that docs still use svn ... and the karma system ...
but it's not right, git uses karma too ... the real reason is probably closer to "too hard" ...
docs use svn for translations, but submodules could be used for that ... and nobody cares about translations anyway
and more people would care, if they were on github
indeed
gh is just way more accessible than the current approach
06:44
@Wes
anyway, mornin everyones
morning
morning all above o/
\o/
it's not morning here it's 4.56pm
@RyanOscar UGT, dearie
@JoeWatkins people only care about translations insofar that they're an excuse to not move off of svn
07:21
morning
morning
salty
07:30
balls
07:46
@tereško nope .. also sorry for the delay in reply. I'm in travel these few recent days and involve with travel-affairs
ah, so the site is actually dead
@tereško and this seems good:-) ..! But it is just the box with along some fans, right?
@Shafizadeh are there options to order in from Pakistan some of the parts? I am really disappointed at the set of available PC chassis in shops
and no, it actually matters
@tereško it is possible
@tereško and this is really interesting for me that you care about chassis this much :-)
first of all, the case/chassis should be providing some dust protection, next - it need to provide a good airflow (fans do not "make" air, it has to be pulled in though somewhere)
07:49
I thought it is a really arbitrary and effectless thing
and it determines what hardware you can put inside
and since you live in a somewhat .. emm ... scorching country, the airflow would be really beneficial
that's right
cmark is on pecl ...
07:53
well .. I'll be trying to dig through more of the options in the evening, @Shafizadeh
ok thank you @tereško
@Shafizadeh if you can find this case locally, that would be perfect ... or anything from that company, really
btw, there are lots of dust in the air sometimes in my family city theiranproject.com/blog/2018/02/14/…
til, wtf-8 is a thing
Morngns
07:55
mrnngs
mornin
... anyway, I will see what I can find
@tereško thank you
btw, what about shipping from India, @Shafizadeh?
or does that fall under embargo ?
08:00
gadzookery British. the use or overuse of period-specific or archaic expressions, as in a historical novel.
!!dad
Did you hear about the restaurant on the moon? Great food, no atmosphere
in general it is possible, but sadly it has a cost more. I bought a speaker last year from India, the price was 120$ and I (totally) paid about 160$ to receive it @tereško
ouch
also, not "totally" but "in total"
yes I meant that
08:04
grammar nazi
also one unrelated-question, do you remember about that "methinks-security-problem" about "redirect to url in the payment system"? @tereško
yeees
what about it ?
@Shafizadeh You don't have air-conditioning? Helps with dust and heat.
^ not with the dust
@tereško My question is, why did you understand it is not a security problem in the first time? And I couldn't got it after lots of arguments?! I'm weak in which part? Should I earn what kind of skills to have that vision?!
08:06
depends in which way you place them
haha
@IROEGBU the whole city's air contains dust .. So an air-conditioning just moves dusts
@Shafizadeh it's what we old people call "experience" :P
@tereško It's3 years I'm codding ... professionally .. but still I don't have that perfect vision about some algorithms
yeah , well, I have been paid for writing code for .. emm .. 12 years now
also, I'm a really clever person and that problem was unrelated to my server security ..! Why I didn't get that?!
@tereško 12? Ah :D
08:08
@Shafizadeh What? Your air conditioner shouldn't let dust into your house/office
@IROEGBU look, there is dust both inside and outside of the house .. what can a air conditioner does?
@IROEGBU is it bad, that I see air conditioning as a luxury item still
@tereško it isnot luxury at all .. our WC has one
well .. mine has a heated floor
it might be a "local climate thing"
@tereško Nah... It's not luxury, it necessity. Temperature outside can get up to 30°C
08:12
@tereško ah good
@Luca goodmorning o/
@Shafizadeh You live in a sand storm?
@IROEGBU somewhat :P
are "somewhat" and "kinda" the same?
@J.Ende goodmorning
!!define somewhat
08:14
@tereško you live in Disney's Frozen anyway. Why would you need anything but a good heating?
!!urban somewhat
@Gordon you should say "... except a good ..."
@Shafizadeh no, I shouldn't.
[ somewhat ] not entirely, but getting there
@Gordon ah ok, I'm not good in English
well, it's above 0 today at least
08:18
what? kelvin?
@tereško you probably need to change your living-country
but there is a snowstorm being promised on weekend
how people do sex in that temperature? ;-)
indoors
So, one person lives in a sandstorm and the other a snowstorm
08:20
@tereško I know .. I'm trying to say, a really cold temperature makes people reluctant to sex
not really :p
@Shafizadeh aint that a somewhat inappropriate topic for someone living in iran?
@Gordon it is, but I'm in travel now, also in a Europe room now
08:23
@Shafizadeh hmm, so, the topic is ok, as long as you are not in Iran?
But isn't this only for muslims?
@mega6382 Legally yes, religiously no. I said "legally yes" since our previous president touched a woman hand when he was in travel out of Iran
!!urban xD
[ XD ] A laughing face. Hey, it's better than lol.
08:52
@Shafizadeh Hahahahahahaha!
Better get that orgy you've been missing!
09:04
@IROEGBU :-) ... I don't need to that kind of orgy
@Shafizadeh it keeps you warm
o/
my history teacher used to tell us to just have some warm thoughts when we complained about her opening the windows in winter
she always wore a skirt, so I guess it worked for her
!!urban warm thougths
whatchoo talkin bout willis
09:12
@Shafizadeh don't put "warm thoughts" in any official document
2
warm thoughts… you know… thinking of something that keeps you warm.
10:02
o/
Hey guys, I am very new to PHP. Thinking about learning it. Just wanted to how if people use any frontend framework in a PHP web app ?
So that PHP handles the backend and frontend is handled by its own framework
Is that how PHP projects are made?
@FlyingGambit Yes. I do php on the backend and react on the frontend
And it's horrible
ah .. nevermind, he meant "frontend frameworks"
we have a project which uses Angular framework ... that is done by "frontend developers" and I stay out of it
but, that's only one of 7 active projects
and only 2 use a frontend framework
may i know the domain of those projects ?
like banking or monitoring
3 of the systems are "entertainment" or "employment " domains
3 are CRMs, and 1 could generously described as "marketing support platform"
Can
Can
10:40
Hello
How can i read data in this page with php? COuld you help me? https://www.doviz.com/api/v1/currencies/USD/latest
I tried these but not work
<?php
$open = simplexml_load_file('https://www.doviz.com/api/v1/currencies/USD/latest');
$usd_alis = $open->selling;
$usd_satis = $open->buying;
echo $usd_alis;
?>
@Can I think you need to decode it to json and use it as an array
@Can It is not XML, it is JSON, Stop parsing it like XML.
@Can Try this code, instead. 3v4l.org/P5Q8Y
don't mind the outputs provided there. Run on your own server it will work.
Can
Can
@mega6382 Thank you it works :)
@mega6382 stop feeding vamps
@Can do you understand WHY?
@Can no problem, but remove the star. It is unnecessary.
10:46
@tereško you yourself always help people ... I seen it over and over.
@Shafizadeh I do not give drop-in code
Ah.. I see your point
@tereško Sorry, a bad habit, you know, from commenting on SO questions.
@Shafizadeh largest piece of code, that I have given was this (for @Allenph) and it was actually an extended example and not something he could use "as it is". And the point of it was to demonstrate application architecture.
because "directory tree" tend to get confusing, if given without context
I see
@tereško I really need such a thing (directory tree) for reactjs structure.
sadly there isn't any existing thing in the internet for that
10:51
sorry, not doing frontend ... and I have some extensive dislike towards ReactJS based on what I have seen, when I was researching it
@Shafizadeh How are you using ReactJS btw? I mean, with PHP, Node, or as frontend to API?
@tereško in the close (near) future, all websites will be implemented using either reactjs or angular or vue.js ...! So try to like it :P
@mega6382 usually I write a web service for them using PHP
Angular would be the lesser evil in that case
but you would need to get an actual frontend developer for that
With the amount of frameworks are being published in JS, I don't think any single framework will have too big a hold.
IIRC, you JS skills are quite ... emm ... abysmal
10:55
@tereško I hate it (though I've investigated only the first version) because of being shit in cross-browsering
@tereško I'm trying to improve my JS skills .. also, I will not the front-end developer of a project
@Shafizadeh it has no code for cross-browser compatibility. That a separate concern
@Shafizadeh Do you do that via APIs?
@PeeHaa so start using node on the backend then?
Can
Can
Update date: 1522321262 I don't understand this date?:) What type it is?
Unix time (also known as POSIX time or UNIX Epoch time) is a system for describing a point in time, defined as the number of seconds that have elapsed since 00:00:00 Coordinated Universal Time (UTC), Thursday, 1 January 1970, minus the number of leap seconds that have taken place since then. It is used widely in Unix-like and many other operating systems and file formats. Because the same timestamp can refer to two distinct instants of time around a leap second, it is neither a linear measure of time nor a true representation of UTC. Unix time may be checked on most Unix systems by typing date...
also known as "timestamp"
Can
Can
11:07
@tereško <3
@mega6382 yes ... rest-api
@Shafizadeh you will have to do some reading about what REST APIs actually are. Just because you have a remote backend application, that returns JSON over HTTP, does not make it "REST"
and "pretty URLs" are not "REST"
@tereško I guess I know what REST means ... It is about methods (GET, POST, PUT etc)
emm .. not really
11:16
you should probably watch this lecture and read this article
@mega6382 that thing is basically impenetrable wall of text
@tereško really?! the fun part: "what's rest api" is one of the question I usually ask from a developer our company wants to hire in the interview. I guess I've rejected some programmers because of wrong answer (wrong to me) to that question by mistake"
@tereško thank you
@mega6382 thank you
@Shafizadeh what is a rest API?
@Danack After redux and react the last thing I want is more JS :P
@Shafizadeh yeah, what is a REST API?
@DaveRandom the right answer to me by now: "when a URL gets some arguments in the POST method and the same URL gives that parameters in the GET method would be called as REST (however now I think it is a wrong definition)"
11:20
@PeeHaa "re..." seems to be a good regex for matching popular JS frameworks. Want to help me create "retrd"?
@Gordon ok guys .. I don't know what's REST API
@Shafizadeh That is not just wrong that is super wrong.
@Shafizadeh if you have a seen a developer, who knows what REST is in person, you should start buying lottery tickets ... a lot of them
@mega6382 that's why I'm watching that lecture
@tereško what are lottery tickets?
11:22
A lottery is a form of gambling that involves the drawing of numbers for a prize. Lotteries are outlawed by some governments, while others endorse it to the extent of organizing a national or state lottery. It is common to find some degree of regulation of lottery by governments; the most common regulation is prohibition of sale to minors, and vendors must be licensed to sell lottery tickets. Though lotteries were common in the United States and some other countries during the 19th century, by the beginning of the 20th century, most forms of gambling, including lotteries and sweepstakes, were illegal...
@tereško probably illegal in his country
@Shafizadeh They are pieces of paper you pay money for, then later you can get slightly annoyed and then throw them away.
tbh you can probably just skip a step and put the money directly in the bin
oh .. I never heard about that thing already
!!urban tbh
[ tbh ] to be honest
@DaveRandom I see :D
11:24
@samayo I thought you were good at the game :(
and @tereško, why if I find a programmer who knows what's REST api, then I should pay-useless money ?
@Shafizadeh Cause you'll be lucky if you ever met a developer who know REST, and if you are lucky you might have a chance at winning lottery.
@Shafizadeh no, it would mean, that you are a lucky bastard
@mega6382 ah .. I see :)
seems knowing REST api is really hard and rare
@DaveRandom retrd would have been a much better name too imo
11:28
not hard, just rare ... it requires some experience
like good steaks
well what is it ?
@Gordon there is a restaurant in our country which makes good steaks ..
I mean really good
I can eat one even when I'm full
is there any English word which describes "when you cannot eat food more" ?
@Shafizadeh I think full is a pretty standard word for that.
ping @JoeWatkins
11:33
@JoeWatkins
yw
@Shafizadeh "in our country"?
@Gordon our my
IDK any restaurants in Iran so I cannot answer that question. Check Tripadvisor or something.
also in Persian, "our" would be used sometimes as "I".
11:37
@Shafizadeh Yes, as Royal I :P
@PeeHaa ftr I like react by itself. But yeah, redux can go away.
Anonymous
@Naruto lol .. am sorry, i'm not that good but I was lagging yesterday
Anonymous
Are you down for tonight?
@DaveRandom are you popping by this way soon?
11:41
@Danack yes, life has prevented me the last couple of weeks (and will again this w/e) but I will let you know
Anonymous
I promise I will play better cc @Ikari @MadaraUchiha
cool.
@DaveRandom pong
@JoeWatkins good timing, do you have any objection to this targeting 7.1?
11:51
ty, I will leave it for a few days in case anyone objects and then just merge it
/cc @kelunik ^
12:17
Hello, has anybody experience here with google cloud?I'm trying to connect to my database via unix_socket.When I connect over the terminal it works but when I'm connecting with PHP(using PDO) It refuses to connect.It gives me the following error 'SQLSTATE[HY000] [2002] Connection refused'.I tried every possible answer on the internet and red the documentation.
@DaAmidza what is the DSN you are supplying? (if there's a password in it, don't forget to remove it before putting it on the internet!)
oh wait
I tried all variations with a password and without since they some say that it's not required.Whats DSN?
where is your code running? i.e. does it make sense for you to use a unix socket? unix sockets only make sense if your code is running on the same machine as the database
Dave Stupid Notifier
@DaAmidza Make sure remote connection is allowed.
12:29
@DaAmidza the string you pass to the first argument of the PDO constructor
"Connection refused" suggests a problem with connectivity rather than an auth problem
@DaveRandom I have to use unix sockets since I'm using twitter realtime api and it works only with the unix socket.The DSN looks like this:
db_socket: 'mysql:unix_socket=/cloudsql/-----:us-central1:----database-main'
db_host: '----'
db_name: '---'
db_user: '----'
db_password: '---'

$connection = new PDO($config['db_socket'].';dbname='.$config['db_name'].';',$config['db_user'],$config['db_password']);
> I have to use unix sockets since I'm using twitter realtime api and it works only with the unix socket
You have access to twitter's database?
It's a kind of logic.
@mega6382 I said that I was able to connect via terminal so it's done.
@PeeHaa what did I wrote bad?Yea I connect to their realtime API
I use the twitter real time api so that i get tweets in realtime.When i connect over the host i get some errors only way i got it working was though unix socket.
define "some errors"
12:38
Hello
Guys, i have a problem with mysql,it keeps disconnecting me.I have a foreach and inside a pdo insert statement,after each insert there is also a sleep(60) , but after the first loop i get the PDO::query(): MySQL server has gone away in
i tried setting this: SET SESSION wait_timeout = 60 but its not working
max_allowed_packet has a value of 16777216
which looks good to me...
i found some answers about this problem saying i should do a ping to reconnect to db, but pdo doesnt have some build in like mysqli_ping
and i cant wrap the pdo instance because it would take me a while to replace every $pdo with the new object
any ideas?
@PetruLebada Don't do queries in a loop. Either use batchInsert or concatenate multiple queries inside a loop and run them after the loop at once.
@DaAmidza what is the point of splitting the DSN?
@DaveRandom you told that 'unix sockets only make sense if your code is running on the same machine as the database' In this scenario, I'm not since I'm on Google Cloud so might be it can work without it in that case.I'll try it out..

@tereško Thank you sensei for answering me.I have no idea I just taught that my config file looks nicer.I'll change that, thanks for the suggestion.Also if you can unblock me on skype :D
@DaAmidza I would expect it to make more sense to connect directly via TCP. In order for a unix socket to work, there would have to be some sort of proxy service running on the machine
@samayo prob same time as yesterday, hitting the gym first
12:49
if there is some kind of proxy service, you need to check the permissions on the unix socket that it creates. It needs to be readable and writable by the user that PHP is running under, so the user that the web server is running under for mod_php, or the user that the fpm pool is running as, or the user that the CLI script was invoked by
@PetruLebada if you have wait_timeout = 60 and you wait for 60 seconds between operations, there's a high chance that the server will drop the connection before the next operation. You should set wait_time to at least 120. But also you should probably not be running database inserts in a sleep loop.
@Gordon borderline interesting
@Gordon @DaveRandom I red all this stuff and I managed to get it working.But unable to connect it from my PHP script.
would be interesting if you removed the huge drag factor of mysql
How do you mean?
12:53
I hate mysql, don't worry about it
@DaAmidza How are you running your PHP script, through a web server?
@DaveRandom yes I use Symfony console and call twitter real-time over it then it gets the tweets.I haven't noticed that the Symfony console is not working so need to fix that first that to see if it will work without the unix socket on the server.They are on different instances so I think it should work.
@DaAmidza What web server and PHP SAPI are you using? (apache/mod_php, apache/fpm, nginx/fpm etc)
and do you have shell access to the server?
I assume you must if you have set up that proxy thingy
@DaveRandom sorry haven't red it well..... I have shell access to the server, I had to configure it.It's a Linux machine running PHP 7.0 and appache.
@DaAmidza OK, what OS user does apache run as?

« first day (2721 days earlier)      last day (2452 days later) »