« first day (1921 days earlier)      last day (3252 days later) » 

14:00
var_dump() all the things
!!docs var_dump
[ var_dump ] Dumps information about a variable
@bwoebi Aside from the violation of the principle of least astonishment.
user3119231
Funny part: Works fine on my computer.
@PeeHaa He's a witch - BURN 'IM!
user3119231
14:00
Anyway thanks.
!!magic
I really need to implement that
@Jeeves look at you
@Jeeves you fight like a dairy farmer
? @Jeeves
@MadaraUchiha The only ones possibly antonished are these with experience with the other implementation of Promises.
14:01
@Maurice Why don't you use implode() instead ?
@bwoebi lol
Obviously, who else would be surprised?
testing...
!!version
@PeeHaa his levensthein seems broken
@bwoebi It does no harm, but it's not right. I'm in favor of splitting them in Amp v2.
v0.0.3
14:02
@Gordon Yeah seems like it. I tried to tweak it, but it seems it's still too tight
@jeeves You fight like a Dairy farmer!
Shouldn't matter
I normalize strings
@jeeves swordfight
It's like saying "Well, PHP can use class differently from all other languages, because it would only ever confuse those who come from a class-based OO language"
@kelunik I hope we won't ever have an Amp v2…
All these dependencies…
14:02
@jeeves you fight like a dairy farmer!
@Gordon How appropriate! You fight like a cow!first
@bwoebi Here's my take, i.e. how I'd implement things
@PeeHaa do I have to tell him I want to swordfight first?
Nope
An event loop, with as little dependencies as possible. No promises, no observables, no coroutines.
14:03
It should just respond to insults
Asynchronous actions as callbacks.
On top of that, add the Promise type and the Observable type, and implement coroutines
@Jeeves This is the end for you
@PeeHaa And I've got a little TIP for you, get the POINT?first
"POINT?first"
Yeah still debugging :P
14:06
Does anyone know's how can I fetch values using $_GET from the following URL ?
http://localhost/wordpress/images/technology/
"http://localhost/wordpress/images/technology/"
Hi Guys, i am facing problem with "504 Gateway Time-out" in centos server
I tried using $_GET['images'] but not working :/
@ZahidSaeed There is no querystring...
Pinged here by @MadaraUchiha
Your implementation of promises is wrong.
@MadaraUchiha If you look at the code, you notice that the code is already pretty much separated, the individual things are just coexisting in a same repo…
14:07
I have no context.
oh ffs
@PeeHaa How do I pass it then in wordpress ?
So it might be great.
@BenjaminGruenbaum looooool
14:07
@ZahidSaeed Pass what?
lol
@PeeHaa A Query string. I know how to pass it in PHP but what about wordpress ?
@BenjaminGruenbaum I recall that we already discussed it, but I totally don't remember what exactly was said…
@MadaraUchiha Stop giving people advice without being asked and then being annoying when they don't want to take your advice.
Since it is using a rewrite rule
14:08
@ZahidSaeed wordpress is php...
you do this every now and again and it's not pleasant to talk to you when you do it.
@PeeHaa I know. But the posts and the links being applied are via Wp_Query()
the_permalink() just prints the link that I sent earlier
@Danack I'm not annoyed
@bwoebi yeah, with Levi and Daniel, many times. What's up?
in the next page I just want to show all the images which are under the technology category. @PeeHaa
14:10
Why does your fulfillment handler have a (err, data) signature :(? @bwoebi
As for giving people advice, I do that, I'm often thanked, and even when I don't, I end up smarter afterwards (and I'd like to think the other side is too)
If someone asks me to help him saw his leg off, should I help him or convince him that it's a bad idea? - How I feel about wordpress questions
Also, I might come out as annoyed because I don't see the compelling argument that beats mine, that's it.
@MadaraUchiha There's no argument which is strictly superior and you can discuss that the long way until ad absurdum in green, red and blue.
annoying != annoyed.
Oct 9 '15 at 14:57, by rdlowrey
Yeah the single method function with error-first parameters is just a performance thing
You're coming in and asking questions about design where choices have already been made that are technically good enough, they are just not perhaps the choice you would make.
14:15
@BenjaminGruenbaum Also, you clearly never have written actual code with Amp, because then you'd just (nearly) never have to actually use when() and have no real reason to complain ^^
@Danack That's a good argument, but it's also an argument that was not raised when I asked.
vOv
@bwoebi I told that to madara in the other room.
:-D
Having people come in and say "why don't you do this" when a project hasn't asked for that advice, and then demanding why it's not being done is a form of sabotage.
@Danack I never told anyone to change anything.
14:16
in JavaScript, 7 mins ago, by Benjamin Gruenbaum
@MadaraUchiha it doesn't matter since they have coroutines.
I see :-)
The opposite, I always say how awesome I think the project is
I want to understand the design decisions, because it's of interest to me, that's all.
@Danack that's what supervillains do ;)
I'm not going to use this framework, I'm not going to make pull requests, just making for an interesting discussion.
Sorry if I hurt anyone's feelings by doing so.
anyone idea about "504 Gateway timeout" in centos server. I added max_execution_time and memory_limit
But it will not work
@user3454479 Your PHP process responds to nginx/apache too slowly.
Speed it up.
14:20
15 hours ago, by Danack
PHP CEO like typing detected.
@user3454479 something in your code is being very slow. There's no way for anyone else to figure it out. You need to sit down and debug what is causing the slowness.
And do that from the start. e.g. does a echo "hello world"; file work?
Does the homepage work? Is it only certain pages that don't work.
you need to isolate the problem to identify it, and then other people might be able to help you.
@Danack yes it will work for other pages. I am running yahoo online rates for countries
i had checked Yahoo online rates in other server.It will be working. when i run this script in centos server it will executes upto some extent and got this error
504 gateway timeout
Well - that's a clue! why not measure how long that is taking? And the end of this story will be you need to move all remote api calls to a background task manager like supervisord.org
@Danack PHP CEO typing would be all-uppercase too :-P
@BenjaminGruenbaum also… stop arguing … there over in the JS room…
i find this link for that problem . I need to change like this ? @Danack
31
Q: Prevent nginx 504 Gateway timeout using PHP set_time_limit()

NyxynyxI am getting 504 timeouts message from nginx when my PHP script is running longer than usual. set_time_limit(0) does not seem to prevent that! Does it not work when running php5-fpm on nginx? If so, whats the proper way of setting the time limit? Error: 504 Gateway Time-out nginx/1.2.7

Do you aware of this?
> the end of this story will be you need to move all remote api calls to a background task manager like supervisord.org
14:27
@bwoebi lol, let us sort our own drama
@BenjaminGruenbaum well, you're worse than internals! (well, not quite, that's not comparable^^)
I WANT TO HAVE A 10X ENGINEER DECIDE AMONGST YOURSELVES WHO IT IS THE REST OF YOU DROP YOUR OUTPUT BY 10
@Patrick I'm willing to help with quick questions, but they tend to end up in long discussions diverting from the original question which is crap (as crap as wp)
@BenjaminGruenbaum But looks to me like the JS room became the room recursively having meta-discussions over its own meta-discussions.
14:31
@PeeHaa In other words, you'll help people saw their leg off as long as it doesn't take too long :P
@PeeHaa Any hint ?
@bwoebi that's a problem we're dealing with.
@BenjaminGruenbaum and then you're going to discuss how to stop the discussions about stopping these discussions…
14:33
nah seriously, that's the feeling I have when looking at the chat.
If your response to a proposal to solve a problem is "why not just do ...", it's almost always not that simple
^ basically every RFC ever
it's something I do too much and redditors do too much
@Andrea except the date timezone warning removal RFC… :-D
I find that half the time, "why not just do" misses a subtlety that's actually evident in the question if you know to look for it.
That's why I have a rubber ducky on my desk
@PeeHaa you've got to report to someone I guess. Is he a kind boss?
14:37
Depends. He's kinda mentally unstable
> Why not just do @PeeHaa's mother?
^ solves a lot of problems
No your mother
@jbafford yep
GOd that was a bad one...
@PeeHaa don't say doing your wife, don't say doing your wife, don't say doing your wife
14:39
I often find that it's something I figure out rather quickly if I think about it for a moment. Sometimes it's not an immediately obvious problem, though.
@Andrea that remind me, what will happen with list('foo' => $bar) = [];
@Danack same as a normal assignment of the same kind
(possible another sentence in the RFC I missed...)
like the number formatting rfc. I knew the proposal bugged me, but I couldn't quite figure out why, until someone pointed out that it introduces (even more) multiple ways to encode a number that break grepability.
@Danack I don't provide an example for it, but it's tucked away at the end I think
14:41
Do 'Undefined index' error - cool.
> Handling of implicit conversions of keys, and of accessing undefined keys, follows the same rules as for regular array indexing.
There's the relevant portion of the RFC
@Danack yeah. interestingly integer keys are "offsets" and string keys are "indices", which I hadn't noticed before
also, if PHP converts a key for you and then doesn't find a corresponding value, it will show the converted value in the error message (though this makes sense when you consider how the implementation works, and it's arguably more helpful than showing the original value)
15:02
so I put my dotfiles on GitHub: github.com/TazeTSchnitzel/dotfiles
you may find /bin interesting
@bwoebi any idea how to get an option to set the Parser::OP_MAX_BODY_BYTES through to where it needs to be in Artax? Unless i'm missing something, it doesn't seem to be exposed.
@Andrea you realize you just uploaded your ssh private key?!
:-/
@NikiC LOL
wait, what?
posted on January 19, 2016 by nlecointre

/* by Arekibian */

@ircmaxell she didn't really...
15:06
yeah, see that now :-P
I was hoping for some reaction, but there was none forthcoming ^^
you got one out of me :)
Can someone help develop my project
@NikiC hehe
@NikiC sorry, I didn't check StackOverflow until now :p
it's surprising how often people upload their .ssh keys though :D
hey guys, I fight with problem with file upload.
$fileName = $_FILES['file']['name']; // here i have name of my file however if I :
fopen($fileName,"r"); it just throw error fopen($fileName, "r");
Is here someone who can help with this? :)
15:12
Look it up on w3schools
@Andurit if I remember right, 'name' is just what it was called on the person who uploaded it's computer
You need to buy more RAM. What computer do you have? — Zacharee1 30 secs ago
@Andurit I think it's another thing if you want the location where it's stored on the server
Check it out
@Andrea There are bots that people built that scan GitHub continually, and when someone accidentally commits a private AWS key, they automatically create as many instances as possible on their account and mine bitcoins
15:12
@Andurit sscce.org
Think about how common a case that is, for people to make a profit off of developing bots like that
@MadaraUchiha yeeep, and I think GitHub now do this themselves and revoke the key
@Andrea They only check github keys sadly
@Andurit you want $_FILES['file']['tmp_name'], see this page in the manual: php.net/manual/en/features.file-upload.post-method.php
@PeeHaa I think there's also an AWS bot now? I'm not sure
@Andrea there is......the email I got from it went to my spam folder.....
15:14
:P
luckily they also suspend the key.
@PeeHaa And they can't revoke it everywhere else. :P
@Danack oh god, you uploaded your AWS details to GitHub?
@kelunik Nope but they can handle it
@Andrea hmm looks you are right. Give me sec to make a short test
15:15
@Andrea I didn't. The computer did. Stupid computer, doing what I tell it to do.
@Andurit if you want to store the file somewhere rather than just read it in once, look into move_uploaded_file
Actually, Github should reject those pushes, not revoke the keys.
@Danack you need to add it to Client and here: github.com/amphp/artax/blob/… … so, no, currently not exposed. (I like PRs)
@Danack also, can you please think a bit about the issue from last night in aerys? … anyway, I'm off to bed now.
@bwoebi off to bed ...
It's 4 pm ^^
@NikiC yeah, I'm having 27 hour days currently… (18-19 hours awake, 8-9 hours sleep) ^^
15:28
good night then :)
So.....the 'fragment' class in reveal.js works nicely in SVG diagrams.....this pleases me greatly http://docs.basereality.com/ValueCaseForUnitTests/#/7
tbh I think I like making slides way more than I like giving talks....
{
    "message": "Name is missing. ",
    "code": "MISSING_REQUIRED_PARAM"
}
API pls. I'm sending a request with a butt load of fields and that's the best you can tell me?
it tells you which field is missing, duh
anyone else get suspicious email from [email protected] today ?
contains doc with virus in it ...
Nope. I got someone offering to help me get php.net higher on google rankings.
15:40
I've had exactly zero emails from [email protected], ever
hey need some help for my magento issue anyone there?
ok
@JoeWatkins hmmm
> This fake scanned document appears to come from admin@ the victim's own domain.
ahh
15:44
Yea, not a targeted phish
we have no admin user!
it probably redirects to rasmus in practice tho
@Leigh ah, cool
@Andrea Sends the wrong status code btw.
@kelunik heh
Does anyone here know what the correct usage of the imap_ping function in PHP is?
That's probably why people.php.net/user.php?username=kelunik appears in search results.
15:48
well, 200 isn't entirely wrong
/user.php exists
@kelunik hah
It seems that the function is built for a language that is not multi-threaded...
@HelpingHand good thing PHP isn't multi-threaded
@HelpingHand it looks like the correct usage is what it says in the description, or am I missing something?
@Andrea Crap, I misstated...
@Andrea I don't know... It seems like sleeping in the code is incorrect usage...
@HelpingHand for a web page yeah, but consider a long-running process
you might have some worker written in PHP, which fetches stuff from a queue and processes it, then sleeps for a while
@Andrea Yeah... My goal is to reply to an email using the imap extension... I was going to run it in the php cli...
@Andrea I would have liked to have made it real-time, but I'm not sure that's possible... Email push technology isn't very popular yet...
15:54
@HelpingHand could you qualify why you mean by real-time here? as opposed to what?
ZEND_FUNC_INDIRECT_VAR_ASS
@Andrea by return mail?
@Andrea Real-time as in reply in the moment when the email is received. As opposed to polling every 5 minutes to check for new emails...
@marcio see, I always knew that PHP was full of asses. You found the proof. ;)
2
15:56
@HelpingHand ah, right. I'm not sure if there's a select() equivalent for imap, hmm
maybe there's a userland library that can do it. maybe you'd have to implement IMAP yourself (probably not a good idea)
@Andrea There's not much documented about using PHP to receive mail...
github.com/nodejs/node/issues/4660 <-- yet another reason to avoid Node.JS at all costs
user924016
@ZahidSaeed I am home now
@HelpingHand I'd hazard a guess that it's something PHP isn't usually used to do
@ircmaxell I don't know... Trying to do anything in real-time on PHP is a buttload of hassle more than nodejs.
16:00
Hey guys
@Leigh Yeah, I'd venture to say that you're right...
@ircmaxell That's an awful design flaw that a memory allocator doesn't return zeroed memory by default
@jbafford most don't in non-debug mode
@jbafford Eh
The problem is the overloaded constructor, not that it doesn't zero memory
Anonymous
Does case 'listen' for boolean response? So if I have this case;
case preg_match_all("/level|1/", $row['qualification']):
and the response of preg_match_all is true, will the code underneath be executed?
16:03
@HelpingHand I'd suggest taking an existing PHP project (like SquirrelMail) and reverse engineering it for what you need then
> The more bubble-wrap we put in core, the more users are likely to make the false assumption that programming in Node.js is like programming in the browser,.......I keep on suggesting that those who are advocating switching the default to a clean allocation should do some benchmarking to demonstrate what kind of impact it might have.
@Machavity Ehh. Sounds like a terrifically insane idea! I'm just an amateur when it comes to this stuff. Much rather'd be working in javascript.
@NikiC fair enough, but even if it weren't overloaded, you still have a potential information disclosure lurking if you (intentionally) take a number input from someone and try to allocate that much memory without realizing your allocator isn't returning zeroed memory.
@ircmaxell Node.JS - Making PHP look more and more sane since 2009
16:07
heh
@ircmaxell Uhhhhhhh
Should I point out all the obvious security holes in PHP that weren't fixed for over 10 years?
NodeJS has reached its stable point less than a year ago..
It has ways to go, but I consider it superior to PHP for a large variety of cases.
OH: "Node.JS - Making PHP look more and more sane since 2009" re: https://github.com/nodejs/node/issues/4660
5
(I know this is a somewhat religious argument, but every language and platform has its problems, PHP is definitely not exempt)
@MadaraUchiha lol
you said that like there is someone who thinks php doesn't have problems :D
@NikiC I don't like the notion of "Here's another reason why you shouldn't use <tool> ever"
16:10
Anyone who thinks PHP doesn't have problems hasn't used it long enough.
Sounds very narrow minded to me.
I'd use Common Lisp in a web application if it proved beneficial.
user924016
hah
@MadaraUchiha Ah, just usual programmer hyperbole ;)
well, this is splitting hairs, but, node isn't a language. It's an application runtime environment.
@jbafford That's why I said every language and platform
16:11
@MadaraUchiha totally :-P
user924016
@tereško happy bday!
You didn't in the message I replied to (but did in the prior message, so fair enough)
@jbafford Better? :P
@HelpingHand why don't you try this - https://github.com/tedious/fetch
sweet and simple
@MadaraUchiha @ircmaxell is a golanger now
16:12
@MadaraUchiha :P
@FlorianMargaine Ooohhhh, that explains a lot.
It does?
@NikiC Not really.
Never had the chance to try golang
@MadaraUchiha it's very much on the pragmatic side of things
16:19
@ircmaxell wiring C code into a dynamic language, what could go wrong?!
looks at PHP
@Andrea C++
@FlorianMargaine in this case yes, but C++ is just as bad :)
@Andrea noting. nothing at all
@user5419232 Looks like it does the same thing as the well-established php imap extension...
ha, you're still having issues @HelpingHand? If you look at some of the comments on the PHP manual in regards to that fetchbody(or whatever) imap function, some of them looked pretty promising to me, in that they searched all parts of an email for HTML and then worked their way down to text, etc.
16:32
I'm having a markdown meltdown
[![img-link]]([www-link])

[img-link]: example.com/image.png
[www-link]: example.com
^^ Desired result is image as a link.
Y I NO UNDERSTAND
![img-text](img-link)
![Placeholder text](img-link) to get the image, correct?
But how do I get the image to anchor link hyperlink to www-link?
[![placeholder text](img-link)](www-link)
No, that doesn't work @FlorianMargaine
16:45
greetings!
Context is GitHub
Hi is it possible to connect PDO to oracle database ?
This is my first time to use oracle
I am downloading this Oracle Database Express Edition 11g Release 2
what PHP framework do you guys use? Want to build a site that isn's a blog so I dont want to use WordPress but when I refernce CI they say not to use it.
@jemz did you bother to read the manual at all? php.net/manual/en/ref.pdo-oci.php
Yes I am reading it now..thank you for the link
16:50
@NorthbornDesign try to look at the raw readme of something with travis test passing or something
can I still use the execut() and bindParam in oracle ?
@FlorianMargaine I have... they don't use ref links though :-/
I guess I have to... not use ref links :-(
can I still use the execute() and bindParam in oracle ? like the way I use in mysql
FINALLY
[![img-link]][www-link]
Random permutations for the win.
No placeholder though, but eff it
[![Placeholder Text][img-link]][www-link]

[![Placeholder Text][img-fail]][www-link]

[img-link]: lorempixel.com/100/30/abstract/2/?.jpg
[img-fail]: thereisnoimageonlyzuul.com/nope.jpg
[www-link]: example.com
Yay, done.
user924016
I am such a noob, argh =)
17:02
posted on January 19, 2016 by nlecointre

/* by James Basoo */

hi everyone...i know this is a php room...but maybe there is someone that could tell me whats worng with my mysql syntax:
INSERT INTO Documento (idPai,tipo,nome,dataCriacao,dataModificacao)
VALUES ((SELECT idDocumento WHERE nome='Clientes'),'pasta','Cliente1','hoje','hoje');
when i make that select...is from the same table Documento
i need the 'idPai' to have the idDocumento where nome is equal to clientes and this is all in the same table
anyone?
please?
it seems your syntax is incorrect in your sub select
You're missing a FROM clause in your subquery. Also note that some databases don't let you insert into the same table you're reading from.
that´s the thing!!!. i have puted From before and the error continues
@FélixGagnon-Grenier Well, the error message that'd give probably wouldn't be helpful, so I'd may as well, eh?
@Japa Then it'll be time to tell us what the error is so we can tell you where to look.
17:16
absolutely @Charles. I sometimes try to be witty then remember I suck at it
@Charles you´re right...
What's the difference between TMP and TMPVAR?
and right now i have made this
INSERT INTO Documento (idPai,tipo,nome,dataCriacao,dataModificacao)
VALUES ((SELECT idDocumento from Documento WHERE nome='Clientes'),'pasta','Cliente1','hoje','hoje');
and the error is:
@Andrea I believe TMPVAR = TMP|VAR
1093 you can´t specify target table documento for update in FROM clause
17:17
@tpunt you might be right
does that mean it'd accept both TMPs and VARs?
so now i have the from...but i don´t understand the error
@Andrea Yep
@Japa So, as I noted above, you're trying to insert a new row into a table that you're reading from. Some databases, including MySQL, do not allow you to do this. You'll need to do this in two queries instead.
oh man!
Bad Future Dancing (I think they're doing The Diarrhea)
17:32
there are solid 8's in the lot
@Machavity who knows, a minuet derived from twerking and jazzercise could be a thing down the road
Sitting through SugarCRM developer training...
Someone just asked what the difference was between 1:1 and 1:n relationships.
TIL that SugarCRM is powered by automatic code generation.
I'm terrified.
17:50
@rtheunissen good news, I've made the arrayaccess thing with int/string not apply to keyed list(), so at least it will work properly: github.com/TazeTSchnitzel/php-src/commit/…

« first day (1921 days earlier)      last day (3252 days later) »