I wonder parameter's meaning that 'full=True' in function get_result in virustotal.py in peframe.
what difference full=True and full=False?
I guess full is variable.
But I think full is not variable..
Help me pleaze..
Related
As the HELP document says:
The FIND function and the INDEX function both search for substrings of characters in a character string. However, the INDEX function does not have the modifier nor the start-position arguments.
so why we have the both functions? Can't we just replace index() with find()?
Thanks in advance.
Welcome to SAS. This is an old language and there are many not so obvious solutions. Despair not, for more often there is an answer than not!
As for your question: They allow a bit different things, but function in similar fashion when doing a simple thing.
Index returns the position of the specified string. Documentation
Find allows you to narrow down the range where you look for. Documentation
As indicated by #Richard, the find() function was added to SAS after the index() function. This can be seen in the "What's New" details SAS provide here.
If, as indicated elsewhere, you have trouble getting to the link, then perform a web search for "What's new in SAS 9", the first result (for me) was from SAS, then within that result look for details on "SAS Language Features". This shows that find() was newly introduced then, with some new abilities compared to index().
A URL in which you add the parameters in the end of it, and it gives to back results for the specific parameters given, for example:
api.website.com/something.json?foo=2&bar=1
The common way looks like the way you mentioned as
domain/cgi_path?param_0=val_0&...¶m_n=val_n
but it could be in any other scheme too like
domain/cgi_path/sub_path_as_param <<-- note the subpath as param instead of param
domain/images/2 <<-- instead of domain/images?page=2
or
domain?pg=cgi_path?args=blah_blah <<-- note the path as arg for one global path
About the .json part, it's not very common, but it's a human goody thing informs the dev about the possible response type(if it's a troll)
but the type could be set as a arg too like
domain/cgi_path?arg0=val0&response_type=xml
domain/cgi_path/xml?arg0=val0
Finally go with any way you like and looks easy for you. But remember to make a great documentation for it.
We're using the ifnull function in one of our Splunk queries (yes, ifnull not isnull), and I wanted to look up the logic just to be sure, but I can't find it documented anywhere.
It is referenced in a few spots:
SPL data types and clauses
Eval
Where
But I can't find a definition/explanation anywhere on what it actually does. Google seems to be of no help either (constantly wants to redirect me to isnull).
In particular it's also not listed in "common evaluation functions".
Can anyone point me to some documentation about ifnull?
TL;DR; it's an alias for coalesce
Wow, it really is hidden! I managed to find it on my local instance here: ./etc/system/default/searchbnf.conf
example4 = coalesce(null(), "Returned value", null())
comment4 = Takes any number of arguments and returns the first value that is not null. The ifnull function does the exact same thing, so both names are acceptable.
IC=IC
ACC=ACC
v_statement='ACC = '1052502',0.035,IC = 'IC130',0.0675'
v_decode_out=DECODE(TRUE,v_statement,0)
i am getting error
is the above expression correct.Is there anyway we can achieve this
There are two problems in your query
First, the v_statement variable you have written won't be validated. If you
really want to write a string in this format, then use pipes to append as
'ACC='||1052502||','||0.035||'IC='||'IC130'||','||'0.0675'
Note that you cannot loop quotes.
Second, the reason your decode statement wont work is because of the data type mismatch. True is a boolean value and v_statement is a string. Any variable expansion would happen during run time but not before that. So, informatica does not allow you this kind of decode statement, unless you are comparing some kind of string input/variable with another string or any other data type for that matter
Also, decide on your case
When it is If ACC else IC to be evaluated (this seems to be your case)
v_decode_out=DECODE(ACC,'1052502',0.035,DECODE(IC,'IC130',0.0675))
When it is both ACC and IC together
v_decode_out=DECODE(TRUE,ACC='1052502' and/or IC='IC130',0.035,0.0675)
These are fundamental concepts. It's advisable that you try out everything available on internet before you post a question here, because someone could easily down rate you if they feel that you have not put any effort at all to find an answer yourself.
Cheers!
the v_statement variable you have written won't be validated. If you really want to write a string in this format, then use pipes to append.
I am trying to place a variable in the parameter of a #uses path, like so...
{#uses parameter="/p/a/t/h/{variable}/e/t/c"}
...
{/uses}
Here is a more pragmatic example...
{#uses parameter="/api/{user}/profile"}
...
{/uses}
Needless to say, its not working. So, what is the correct way to approach this?
Thanks in advance for the help!