« first day (3489 days earlier)      last day (1456 days later) » 
00:00 - 15:0015:00 - 00:00

user11867329
12:00 AM
AW COME ON
 
user11867329
THAT'S HARDLY ACCURATE
 
right, so we don't MIME any more then? or SMTP?
 
user11867329
using relays and proxies from third party services
 
user11867329
at the scale it's happening now (mailgun/sengrid/...)
 
user11867329
Look
 
12:01 AM
those are band-aids, just like everything else
 
user11867329
I need a simple MTA, that will ONLY connect to SendGrid
 
user11867329
Bro, there's music if I want to feel stuff
 
user11867329
Now I need a MTA that wont charge me 50$ per year per user
 
there is still, today, in 2020, absolutely nothing to prevent me from connecting to port 25 of an arbitrary mail server, guessing the address of a mailbox it manages, and injecting mail into it
it'll probably get eaten by a spam filter, but that's another band-aid
 
user11867329
Port 25 is blocked across the whole GCPlatform
 
user11867329
12:03 AM
Why
 
user11867329
am I getting this error
 
user11867329
Or even
 
@DaveRandom @OakDev TCP/25 is blocked basically because of this
 
user11867329
Why isn't free mailservers a thing
 
user11867329
@DaveRandom That's a pretty strong band-aid
 
user11867329
12:04 AM
One could dare say stitches
 
@OakDev you'll find out when you try and run one. I would want paying, quite a lot.
 
user11867329
I felt you for a second
 
user11867329
lemme take a benzo
 
seriously, I am constantly amazed by the fact that email is still a thing, it hasn't been fit for purpose since the mid 90s, maybe earlier
 
user11867329
Man... I can't believe what you're saying
 
12:06 AM
and we're still running internals as a mailing list
 
user11867329
What's your opinion on Zoho Mail?
 
user11867329
being the cheapest (1$ a month per user)
 
I mean he's right, it has no security built into it
 
user11867329
@Girgias So as so many other things
 
(and PGP keys don't solve anything for the most part)
 
12:07 AM
@OakDev show me another form of communication where you need a special section for filing stuff that looks like garbage
 
user11867329
@DaveRandom Social interactions
 
@DaveRandom german
 
user11867329
^
 
show me another form of communication where people regularly do things roughly analagous to attempting to put an elephant in an envelope and mail it to their next door neighbour
 
> roughly analagous
 
user11867329
12:08 AM
Sports
 
giggity
 
@PeeHaa what's the special section called, Nederland?
 
user11867329
God I feel like I'm talking to Tails-OS Devs
 
Calling Dr @PeeHaa, Dr @PeeHaa to the burn unit
 
user11867329
HALP, I NEED MAILSRV
 
12:09 AM
@DaveRandom "subsidiary of german"
 
you even call yourselves the same thing ffs
 
user11867329
@DaveRandom You still havent backed up why/how would I be exposed/vulnerable
 
user11867329
if I block all connections other than SendGrid's IP tables
 
user11867329
and my app (websrv) IP
 
although obv as an english speaker I have no room to cast stones around that particular glass house, my native language is basically what latin would look like if you let the breton beat the shit out of it for a few centuries and then some germans came in its hair
@OakDev the main two issues you will have are 1) so much drive by bullshit traffic that it will impact the function of the server and 2) any one of 79 trillion 0-day exploits causing your server to be hijacked
1 being more likely than 2, but not by as much as you think
 
12:13 AM
@Girgias I run my own. Works a treat
 
user11867329
postfix/smtpd[8386]: NOQUEUE: reject: RCPT from localhost[127.0.0.1]: 550 5.1.1 <garyXXXXXXX1@gmail.com>: Recipient address rejected: [smtp.sendgrid.net]:2525; from=<matie@prXXXXXXXe.com> to=<garXXXXXXXXX11@gmail.com> proto=SMTP
 
user11867329
@DaveRandom What part of all connections blocked
 
user11867329
dont you consider
 
user11867329
you little, you
 
@Derick yes but you are a) a masochist b) kinda old school and c) actually know what you are doing (largely because of b)
I'm not saying it can't be done, just that it's not a thing you should do on the public internet the first time you ever touch it
 
12:15 AM
it saved me so much trouble as I can just debug stuff
 
user11867329
My answer to that is, my firewall, Mm-Morty, it's blocking
 
@OakDev if all connections are blocked, how is it going to do anything at all?
 
user11867329
blocking averywthuin]\
 
user11867329
ASIDE
 
user11867329
from my websrv IP and SendGrid's IPTable
 
user11867329
12:16 AM
which will be triggered "in-harmony" with my websrv
 
that's not how it works though, if you are running a mail server it's to receive and you aren't going to be able to know where it'll be coming from
 
@DaveRandom And I can form coherent sentences when I need help.
 
unless you are only receiving from a small set of people
 
user11867329
Yes, from sendgrid
 
in which case why not use something that can be properly authenticated with TLS
 
user11867329
12:17 AM
YES
 
user11867329
SENDGRID
 
No need to shout
 
so your MX record is pointed where? sendgrid?
 
user11867329
Yes.
 
user11867329
SPF & DKIM
 
12:18 AM
then wtf is the mail server doing?
 
user11867329
app on it (contact forms)
 
user11867329
but that's NOT an issue
 
but it's not receiving mail though, sendgrid is
 
user11867329
since there's wordpress plugins to interact with SendGrid API
 
/me repeats the line about being to make coherent sentences.
 
user11867329
12:19 AM
Well I guess both SendGrid and on my end, the rules would need to pass a check
 
@Derick how about sentences containing all the requisite words? :-D
 
user11867329
Oh, ay, my DNS records say I point to my webserver
 
user11867329
I'm incertain if that's correct.
 
I'm all down with the requisite words. But right now, I'm off to Bedfordshire.
 
user11867329
I believe I simply need to authenticate the domain to sendgrid
 
12:20 AM
nn, sleep well :-)
 
oidhche mhath
 
user11867329
@DaveRandom Should my MX point to sendgrid?
 
user11867329
Do I not understand sendgrid enough>
 
user11867329
Hey
 
user11867329
12:27 AM
That's my config
 
12:37 AM
@OakDev your MX should point to whichever server is responsible for incoming mail. i.e. if I send an email to an address on your domain, which ever server I should connect to is where the MX points
to be clear, it has no effect on outgoing mail, i.e. if you send an email to me then your MX record does not have a function (but my MX record does)
 
user11867329
Didnt knew that.
 
user11867329
I mean, it doesn't make sense. What are the possible reason I get this message FROM gmail/icloud/hotmail...
 
user11867329
through sendgrid
 
you aren't getting it from them directly, the clue there is in the very fact that you always get the same message
you're getting that from something in the middle
(i.e. presumably sendgrid)
 
user11867329
Yeah but they sleeping
 
user11867329
12:51 AM
opened another ticket
 
I'm sure that will wake them up
 
user11867329
Ye tell em
 
have you tried using swiftmail (or whatever) instead of postfix?
 
user11867329
Is it swifter?
 
i.e. send directly from PHP rather than through pf
at least to debug
 
user11867329
12:55 AM
Oh wait
 
user11867329
sorry
 
user11867329
Send me a php command to send?
 
how are you calling postfix from PHP?
vial mail()?
 
user11867329
You tell me
 
well what does the PHP code look like for sending the message?
 
user11867329
 
that's a shell command, write me a command line that you expect to work
(please)
show me the command you would write if you wanted to send me test.200505@daverandom.com a message with subject Hello World and message body Foo Bar Baz
 
user11867329
1:11 AM
I'd netcat localhost 2525
 
user11867329
and interact with post fix
 
user11867329
"mail from: blebehkzshdlsk
 
user11867329
but wait sorry multitasking
 
user11867329
1:25 AM
I should try this:
 
user11867329
# echo "mail body"| mail -s "test mail" root
# mailq
# mail
# ls Maildir/
# ls Maildir/new/
# cat Maildir/new/[TAB]
 
user11867329
more precisely I should check the logs from # echo "mail body"| mail -s "test mail" root
# mailq
# mail
# ls Maildir/
# ls Maildir/new/
# cat Maildir/new/[TAB]
 
Sweet jesus
 
user11867329
1:45 AM
halp
 
user11867329
2:48 AM
hilp
 
4:55 AM
@Girgias I was actually a little surprised when I found out PHP used mailing lists. I worked with a lady who had barely adapted to technology past 1990, and she raved and raved about "listservs"
@Derick self-conscious moment, in your opinion, do I form coherent sentences and/or questions when I've requested help? (I guess that question kind of answers itself...)
 
 
1 hour later…
5:56 AM
Git mergin.
 
 
2 hours later…
7:38 AM
Hey guys. I'm looking into ways to incorporate Nikitas scalar objects into core. My current prototype allows for one handler per scalar type per file. Do you think that's enough? Optimally we could import individual functions but that would require tracking them in a hash map for every function, seems wasteful.
Let me know if that question doesn't make sense to you and I'll rephrase.
use extension array ArrayHandler;

class ArrayHandler { ... }

var_dump(
[1, 2, 3, 4]
->filter(fn($x) => $x % 2)
->map(fn($x) => $x * 2)
);
Damn stackoverflow's formatting... Anyway it looks something like that. The syntax definitely isn't fully thought-through.
 
8:00 AM
@IluTov I think would make most sense to allow for multiple handlers and then use order of inclusion for conflict resolution. Anyway need to conflict resolve if we (we = PHP core) provide our own basic extension functions
And btw. I like "use extension theType theClass;" syntax.
 
@Tiffany Yes :-)
 
"Anyway need to conflict resolve if we (we = PHP core) provide our own basic extension functions"

IMO we shouldn't. Getting an API right is very hard. If we let userland solve it it can evolve much more quickly and freely.
 
@IluTov tbf, I'm mostly thinking about a few basic operations like filter/map/sum. Which are pretty hard to get wrong.
But I have no problem with not doing it.
 
@bwoebi So, how about we make map() return an ArrayObject? That's what everyone wants, rite?
 
@NikiC haha
 
8:10 AM
@bwoebi Array order and preserving keys are some things that would require some thought. It's also hard to get right for all circumstances (sometimes you want to preserve the keys, sometimes you don't).
 
yes, there's actually quite a bit of variation there
Not just whether you want to preserve keys, but also whether you want to pass them to the callback
And then the ability to only map the keys. Or map both keys and values
Though the real bummer is the string API, of course...
 
@NikiC whether to map keys and values should be two different functions
 
Unfortunately, if that is left to userland, they are pretty much guaranteed to do it wrong :)
(And if it's left to internals, it's hard to convince people to do it right...)
@bwoebi Not disagreeing :)
 
I rarely feel the need to chain multiple string API (read: more than 2) calls
@NikiC and this question is easy to solve: just pass the keys as second param, caller is free to not accept a second param in his callback
 
@bwoebi You know that doesn't work
->map('strlen')
 
8:18 AM
@NikiC engine can do whatever it wants and pass 1 or 2 params depending on what callback accepts :-)
 
@bwoebi pff
engine magic...
 
@NikiC Yeah functional-php does that and it's pretty annoying.
 
@NikiC engine functions warning about too many args is also some special magic :-P
countering magic with magic
 
@bwoebi History hasn't determined the victor yet
 
@NikiC to be honest, I cannot remember a single time where this warning helped me at all. types, yes (e.g. bad arg order) or too few values. But too many? nah, why should I even attempt to do that
 
8:23 AM
@bwoebi I've been bitten multiple times by the absence of the warning for userland. Most often with constructors, for some reason.
 
from a purist perspective sure, but from an utilitarian perspective it's just an annoyance
@NikiC because ctors tend to accept too many args?
 
@bwoebi I do think the sweet spot there is to make it an error for direct calls and silently accepted for indirect calls. But that's, uhm, "magic" as well :P
 
(aka: ctors often have a bad API)
@NikiC agree.
 
Where the exact line of "indirect call" is a bit fuzzy, but I'd say just $foo() / call_user_func, not any of the $foo->$bar() stuff
 
@NikiC how often do you use $foo->$bar() for real? :-D It's such an edge case it shouldn't make harm to consider that indirect too
or do you mean $foo->bar()?
(standard polymorphism)
 
8:26 AM
@bwoebi More a question of complicating the spec in terms of what indirect means
 
@NikiC indirect means, for me, the method/function name is a variable.
 
@bwoebi Well, what about $class::method()?
 
PHP people, if you haven't seen this yet: lwn.net/SubscriberLink/818973/507f4b5e09ab9870
 
@NikiC not indirect. (these can be specified by an interface)
assuming you check the class-interface relationship first.
 
@AlexD seen this morning. Not completly accurate and sadly putting FFI on a pedestale, but good marketing :)
 
8:32 AM
@NikiC at least uh… interfaces can specify static methods in PHP or am I mistaken?
not sure … in java they cannot and now I'm confused
 
@bwoebi eh, not sure actually ^^
 
If they cannot right now, I think this is more a missing functionality
 
@bwoebi Thanks for the inputs. Multiple handlers will also require storing a growable list of handlers. Also each function call will have to go through the chain of handlers which is probably not great. Only allowing one handler has it's obvious downsides. Requiring use per function might be annoying. They all have their downsides. I'll think about it.
 
@IluTov I wouldn't do single functions (that use list would then grow pretty quickly). And uh, I don't expect people to use extension many (more than 2-3) times for the same type and think it will be mostly 1. Don't think the impact is too great to just iterate there.
@IluTov you anyway need a map for type -> handler, you can really just do some sort of multimap there
 
8:48 AM
@bwoebi Yeah I guess that's true.
@bwoebi It's just an array with a static size right now (to fit all primitive types)
@NikiC BTW did you get my e-mail? Just making sure it didn't go to spam.
 
@IluTov I think use extension should have a future scope to make it applicable for any object, not just scalars.
 
@bwoebi Yeah I've thought about that. You'd have to check for extensions for each interface/superclass. Not sure if that's feasible.
 
9:08 AM
@IluTov you'll have to check that once (per file per encountered type), afterwards you can put matches into cache (also not-matches)
Would be sort of feasible if we wanted to, but the initial RFC shouldn't I think
 
@IluTov Erf, getting an API right is hard indeed, but I think some should be provided, maybe less for Arrays but for strings surely we can add some which are hard to fuck up
 
9:24 AM
@Girgias String functions are trivial either. Can you give an example?
 
->length
As a string is just a byte array it should give the number of bytes
For arrays ->join(string $glue) is also IMHO straight forward
 
@Girgias That is very much up for debate.
 
Nah
 
I'd think most people would expect the number of characters, not byte size.
 
I don't think so, we don't recognize UTF-8 (also for that length doesn't make a lot of sense) for most purposes you need the byte length
You could say the same thing about strlen
And people have been working fine
 
9:27 AM
@Girgias Absolutely, I'd argue the same here.
 
Also "number characters" =/= Graphemes =/= codepoints =/= bytes
 
cmb
^ that
 
Also you should barely ever need the actual number of character length
utf8everywhere.org Is has some nice explanations too
IMHO for all intent and purposes we should only care about UTF-8, and in that case I would prefer some dedicated Extension/functions which handle only UTF-8, in some sense a trimmed down MBString extension
like toUpperCase, toUpperCaseSimple, toTitleCase, etc
(oh and a way to normalize when it's comparing them)
 
user1804599
Just don’t add a property called “length” and there will be no confusion about what the length property means. Just give it a different name, such as byte_count.
 
user1804599
This is the General Problem Solving Algorithm (GPSA). Diagnose the thing causing the problem, then get rid of that thing. Then fill in the gap with something else.
 
9:31 AM
But let's say we drop length, ->contains, ->beginsWith, ->endsWith are relatively straight forward
@rightfold I mean the only thing I've really ever cared about is the byte length
 
user1804599
Yes. But newbies don’t know your history.
 
We don't even have a practical way to check if a UTF-8 string is "valid" (other than doing an mb_scrub() and then comparing it's result to the input string)
 
user1804599
And exposing them to the concept of bytes in the context of byte strings is very much a Good Idea™.
 
That's a fair point
 
@Girgias As I mentioned before, it's also a problem of perception. While working with byte lengths and byte offsets is the only sound technical choice, people will perceive APIs that work with byte quantities as "not Unicode".
 
9:34 AM
Yeah, I've realized that :|
 
@Girgias I guess. There are still some things like casing to think about.
 
So just make it byteLength() (or some other variation)
@IluTov Oh for sure, but IMHO it's better that we have a good thought about it then leaving it to userland where these issues are going to also arise and who knows how they are going to solve it
 
user1804599
Though to be quite pedantic, there are some cases where the language assigns a character meaning to the bytes, e.g. (int)$s.
 
Hello everyone, I am having this weird character issue and failing to convert them into utf8 character format. Example: ƒÿàƒÿăÿäƒÿǃÿüƒÿçƒÿåÔÿ║ƒÿèƒÿëƒÿâƒÿé
 
Knowing how many characters (I use that in the form of: base character, and combining diacriticals) is useful for trying to find out if you need to replace some of it by ellipsis to save space. i.e., the "This is very much too long" to "This is …" case.
@SpritsDracula What is the original encoding?
 
9:40 AM
They are originally comign form Latin1
 
You can't just "convert to utf-8" without knowing that.
 
coming*
 
It looks like you have doubly-encoded it.
 
ÔÇ£ should be "
 
I bet it's a curly quote instead.
 
9:41 AM
yeah
not sure what to do :(
Please help
 
user1804599
@Derick For that purpose you probably want to use the segmentation algorithm to find graphemes and words.
 
@rightfold Yes, exactly. But it's still useful to know
 
@Derick I'm not saying there aren't use cases, but how I always implemented (in my good old don't care about Asian languages) is find the byte length, look for a the last space, then cut off. Can that make some extracts shorter than other sure, but it's not that big of a deal IMHO. But it's a valid case indeed
 
spaces? which space is that? There are many variants of a space. And you don't always want to cut off on a space boundary
 
@Derick do you think you can help me? please.
 
9:43 AM
@SpritsDracula You can't fix broken encoded data. You need to make sure it never ends up broken
 
what if I revert it to Latin1 and then convert?
will that work?
 
It depends on your original data, and whether it was really latin1
I haven't seen any code, so can't say what you did wrong.
 
I see, thank you. Let me find out the original data.
 
user7575848
10:33 AM
hello , please how can help me with this : stackoverflow.com/questions/61610414/…
 
@beberlei I've pushed out a big update to wiki.php.net/rfc/named_params.
I think at this point the main open question is the choice of syntax
 
@Tiffany yes. And you also ask interesting questions, rather than things that are a case of "well go read the manual".
 
glad to hear people talking about graphemes; I get really frustrated at people saying things "do Unicode properly" because they can manipulate code points rather than bytes, as though moving diacritics between letters is a common use case
the two most common cases are "I'm storing/transmitting this string as binary somewhere" and "I'm displaying this string to a human"; in both cases, code points are neither here nor there
 
@AlexD I realise that paying money for services is a sensible thing to ask for....but kind of annoying I can't comment to correct the "PHP is likely to continue with releases in the 7.x branch" bit. Although there is an argument for doing that, a 7.5 is not planned.
 
10:52 AM
@NikiC syntax wise I prefer 3 > 1 >> others, and in regards to the fact that we should phase out (and I agree) func_* and call_user_func_array, isn't there a super weird edge case where a variadic function can't replace call_user_func_array? I remember someone complaining about that when I did my super mega first email to internals last year
 
@Girgias There are some minor discrepancies in callbacks accepted by $foo() and call_user_func($foo)
But it's those callable syntaxes you should absolutely not be using. Things like ['Foo', 'parent::bar'] or so
 
@Danack Just email John?
 
I think apart from that, using $name(...$args) is strictly more powerful than call_user_func_array($name, $args)
@Girgias And yes, I'm starting to prefer option 3 as well. Any thoughts on the ramblings in wiki.php.net/rfc/… ?
 
@Derick email appears hidden, pinged their twitter account.
 
the added symmetry of making the syntax work in arrays is appealing
 
10:56 AM
last tweet was a year ago...
 
even though I'm not personally a fan of unquoted array keys in general, because it opens up cans of worms with reserved words
 
@Girgias "syntax wise I prefer 3 > 1 >> others" Same here
 
(I hate that the "JSON5" spec praises Crockford's minimal spec for JSON and then canonically references whole chunks of the ECMAScript spec just so you can save a few " characters)
 
@IMSoP I believe that reserved keywords can be supported there without issue (similar to reserved keywords in methods / class constants)
 
11:01 AM
👍
 
@NikiC you mention call_user_func_array. will we be able to invoke a function generically with named params through reflection? what about ReflectionClass::newInstanceArgs() or ReflectionFunction::invokeArgs?
maybe a newInstanceNamedArgs/invokeNamedArgs?
 
11:22 AM
@NikiC i like the RFC very much, and especially the confident statement of making docs and internal argument names consistent :) with stubs its going to be much easier
also the attribute example is clear
 
@NikiC Agreed, It is also "nicer" IMHO. The rambling is okay I find, and I don't know how you can reduce it, maybe by dropping the syntax choices and directly propose using : you may be able to reformulate it better?
 
11:58 AM
@NikiC which is a little stupid as utf-8 is designed to be easily byte handled (prefix-free)
but yeah, it's just perception
 
user7575848
please who can help me ...i can't understand where is my problem in this loop : $keywords = "";
// Iterate over the results and print its detail.
foreach ($response->getResults() as $result) {

if ($result->getKeywordIdeaMetrics()->getAvgMonthlySearches()->getValue() > 10) {



$keywords .= $result->getText()->getValue() . ",";


}
}

return $keywords
 
user7575848
generate one result and then stop
 
@bwoebi If we were to offer some set of extension functions would you import them by default? If we do so it will be impossible to override them.
 
@Alia I recommend learning to use a debugger to step through your code. There is a nice tutorial here: youtube.com/watch?v=LUTolQw8K9A The type of questions you've been asking seem quite often to be ones that would be answered by stepping through the code. That's a skill a developer needs to learn to do to be able to answer questions like that themselves.
 
@beberlei Good question. I think the way this would work is that you can use $rf->invoke(...$args) and it will support named args.
 
12:10 PM
@NikiC yeah of course, i didn't think of that
 
@beberlei Any preference on the syntax front?
 
I like >= most because we already use that in places, but Golang does : and I really could do without another syntax difference :D
 
12:37 PM
@Derick >=? you mean =>?
 
yes
ugh, I've been forgetting to add ; to the end of statements so often today (doing C for a change)
 
12:48 PM
I like : because it is not an array access :') and that would probably conflict with making it usable for arrays too if using => (at least it seems like)
 
For named params on its own the => syntax is fine, but I think the : syntax plays a lot nicer with the shorthand option discussed in future scope.
 
Yeah, I don't mind either way, so the most practical one for the future makes most sense to me
 
@Derick I accidentally a novel: gist.github.com/Danack/d86e908d70c3db6aa70c2ab6a3eabed7 any chance of a proofread please?
 
1:05 PM
@Danack PHPStan now has a pretty nice website with documentation too phpstan.org
(So maybe link that one instead)
 
thanks.
 
I've updated wiki.php.net/rfc/named_params to use the : syntax now, as that seems to be the favorite
@Danack A bit passive aggressive eh?
 
1:22 PM
@NikiC (param => $foo) is my pref
 
@beberlei meh, too late :P
 
user1804599
$a = 'needle'; $b = ',';
$c = 'haystack'; $d =  '1,2,3,4';
return explode($a: $b, $c: $d);
 
user1804599
Allow arbitrary expressions for good measure, resolve constants, and treat unresolvable constants as barewords.
 
@NikiC More than a bit. I think some gentle leg pulling is in order, though maybe it's a little close to removing the limb. My prediction is that the end of 7.4 support is going to have more drama than people would like. Spreading the conversation out over 18 months should reduce that, if anyone is willing to step up to do the work. And at worst, will at least enable us to say "well no-one stepped up to even begin the conversation, even given plenty of notice".
 
@rightfold Explicitly forbidden, but return explode(...[$a => $b, $c => $d]) would work :)
 
1:29 PM
@NikiC in the end i dont care either way so whatever ;)
 
@Danack lemme c
 
Heh, wiki.php.net/todo/php80#round_two is really close and only three hours left
 
and I didn't vote yet :-)
 
Heh, @Derick saving his vote to make sure it's a draw
 
then sara gets to pick
@Danack it's a bit babbly in places :-)
 
1:38 PM
ta.
 
1:51 PM
Good morning everyone.
How do I get Dompdf to load the css link?
I am trying to load `<link type="text/css" rel="stylesheet" href="https://www.aaaa.dev/assets/css/imprimir-mod-1.css">` but it is not loaded when the PDF is generated.

If I open the page without generating the PDF it loads the CSS correctly.
I ask for your help. I already wasted 1/2 day looking for a solution.
 
user7575848
i'm begginer for that i ask help ... foreach ($response->getResults() as $result) {

printf(
"Keyword idea text '%s' has %d average monthly searches and competition as %d.%s",
$result->getText()->getValue(),
is_null($result->getKeywordIdeaMetrics()) ?
0 : $result->getKeywordIdeaMetrics()->getAvgMonthlySearches()->getValue(),
is_null($result->getKeywordIdeaMetrics()) ?
0 : $result->getKeywordIdeaMetrics()->getCompetition(),
PHP_EOL
);

$keywords .= $result->getText()->getValue() . ",";
//Here i can print all the keyword but i want to print only those keyword with getKeywordIdeaMetrics()->get
 
I ask for your help.
 
@Alia Did you watch that video about how to use a debugger?
 
user7575848
yes
 
2:06 PM
@Alia so you know what the code does, and you know what you want it to do....other than just writing some code for you, what type of help are you looking for? i.e. do you have a more specific question?
Apr 28 at 18:19, by Danack
If you put a Short, Self Contained, Correct (Compilable), Example on https://3v4l.org/ it would be easier to give help.
also that....
Apr 28 at 18:20, by Danack
Though by the time you've made an example, you'll probably have figured it out.
 
user7575848
@Danack is is possible to print i think is possible to get as result too . I need from you an idea why is not working when after foreach i put a if condition ...
 
user7575848
0
Q: Get result with high competition and Average monthly searches more than 10 and getCompetition() return 4 from google ads api

AliaI'm using Google Ads api to generate keywords based on url. It was working good , so i can generate keywords , but in the list there are some kewword out of context . I have create a black list to prevent some words but this is not all ...i fave to take the results with competition high and Avera...

 
user7575848
@Danack give one result and then i gor this error : stackoverflow.com/questions/61610414/…
 
@Alia yes. But you haven't done the work to reduce what you're asking to a "Short, Self Contained, Correct (Compilable), Example" which means that people need to spend time understanding more of your code than is required.
You doing the work to make your questions easy to answer, makes it more likely that people will help you, or that you'll be able to work it out yourself.
 
user7575848
 
2:17 PM
"Short, Self Contained, Correct (Compilable), Example" - just a dump of code is not short.
I'm not trying to annoy you btw. Learning how to reduce problems to shorter versions is how programmers learn to get better programmers.
 
this is very true; programming is something like 80% debugging, and debugging takes practice
 
user7575848
@Danack i reformulare my question stackoverflow.com/questions/61610414/… and i put how is my result now . If you can give an idea , i will be very thankful
 
@IMSoP btw I am open to suggestions of better ways of doing things. In scenarios where someone either doesn't or can't accept advice like that, and continues to ask questions in a way that takes up space, without any benefit for the rest of the community, it's not clear what should be done. i don't have infinite time, so the options seem to be somewhere between 'kick the person', 'berate them for not putting enough effort in', or just grow increasingly annoyed over time.
@Alia It appears you know what if statements are. It also seems you know what arrays are. Other than just straight up writing your code for you, and this is not a code writing support place, I don't know how to answer it.
I really suggest thinking about how to make a fresh example that almost does what you want, and then ask the question about that code rather than just dumping your currenty code.
 
@Danack yeah, I guess the only other option is sometimes just to walk away, which may just be making it someone else's problem
 
@IMSoP yes. And the result is a degraded communication channel, which can hurt a project. waves hands in general at internals.
@salathe only two? MOAR.
 
meh, I think you and I disagree about how "degraded" internals is
 
@Danack Yeah, I was surprised how few are in voting... slackers. :P
 
the list has its problems, certainly, but I don't really see volume as one of them
 
2:37 PM
@IMSoP Probably because you're like the single person who somewhat consistently participates there :)
 
@IMSoP i will reply to your email on internals about comms....when I've finished putting thoughts together. But the problem isn't volume, it's people choosing not to use it......
 
a key mistake I see people making is trying to read all of it, rather than treating it like a forum and picking and choosing threads
 
yeah.....but learning to avoid it is easier than learning how to use it effectively imo.
 
the "unread" indicator on my mail folder for it currently stands at 3737, and is consistently rising
wouldn't that be true of anything we used, though?
look forward to seeing your thoughts, though
 
@Danack that works for me (avoiding it); though I'm sure not having me participate on internals is not a net loss :P
 
2:43 PM
@salathe it is a loss.....you know where stuff is, and why stuff is like it is......and there are people who would like to help the project, who could benefit from asking specific questions that you could answer. But trying to do that via a newsgroup/listserv is pain.
talking of pain, wow my neck hurts. bbl.
 
have a good stretch :)
 
@beberlei I couldn't find what PHP versions Tideways supports. Do you mind sharing?
 
@salathe Ugh, don't remind me :/
 
@IluTov Don't forget Match expression! :-)
*sets automated reminder for every hour*
 
@salathe 😂
(Also 😭)
 
2:54 PM
@IluTov well, I feel like we should really make them overridable. I feel a bit uncomfortable with it being impossible …
 
Somebody experienced in Guzzle?
 
00:00 - 15:0015:00 - 00:00

« first day (3489 days earlier)      last day (1456 days later) »