Community Discussions
Explore the latest discussions and community conversations related to this domain.
Where do you put global variables?
Main Post: I am coding a lot of forms for my site. Today I typoed an email and was wondering why I don’t just just reuse them. The To and BCC and always the same. Where is a good place to store application or global variables? I am guessing the place I will work from is option groups. Are there any other opt…
Top Comment: I am coding a lot of forms for my site. Today I typoed an email and was wondering why I don’t just just reuse them. The To and BCC and always the same. Where is a good place to store application or global variables? I am guessing the place I will work from is option groups.
How to put a global variable in a workflow
Main Post: Hello. I was wondering if I can put a global variable in a workflow. For example, If I call a workflow by using “Call Workflow Service node” and I want to put a global variable from “Call Workflow Service node” to the workflow that is executed by “Call Workflow Service node”. I’d would appreciate it if someone help me :slight_smile: Thanks, hhkim
Top Comment: Hello. I was wondering if I can put a global variable in a workflow. For example, If I call a workflow by using “Call Workflow Service node” and I want to put a global variable from “Call Workflow Service node” to the workflow that is executed by “Call Workflow Service node”. I’d ...
Is it possible to get global variable value and put it in requeste message?
Main Post: Hi In my proyect I have a test case for testing UI. Here I get a certain value using global variable. Then, this value I need to place it in the request message of a SOAP web service request body like this: TEST CASE 1: ... Globalvariable.variable1 = value; ... SOAP: ... < something > Globalvaria…
Top Comment: Then, this value I need to place it in the request message of a SOAP web service request body like this: TEST CASE 1: ... Globalvariable.variable1 = value; ... SOAP: ... Globalvariable.variable1 ... I know thar for each web service I have a place where I can put variables and then do something ...
I put a function pointer inside global struct ... and called it
Main Post:
Lord forgive me, but I might have sinned.
I don't like typing long c functions with complex prefixes.
So, I put them inside a struct, created a global object from the struct, and called the function pointer hiding inside it.
Now, we have namespaces in C99. (edit : bad English. I meant to say, namespace like characteristics)
But, this looks too good to be true. I had to have messed up somewhere.
Anyone care to comment?
typedef struct hello_t { void (*smol_hello)(); }hello_t; void overly_long_function_that_i_dont_wanna_type() {printf("hello world...\n");} hello_t h = {&overly_long_function_that_i_dont_wanna_type}; int main(int argc, char ** argv) { h.smol_hello(); return 0; }EDIT : I made the struct const and it removed the indirection, and directly called the function
LINK : https://godbolt.org/z/3j7corYfa
Top Comment: #define has entered the chat.
Is it okay to put YYGS (Yale Young Global Scholars) in the Honors section in Common App?
Main Post:
I do not have a lot of honors, so I wanted to put YYGS there because it also represented a really important achievement for me, because in my background and community getting accepted into those things is not common. Is it okay?
Also, I do not know what to write in in Honors, "Yale Young Global Scholars alumna"? "Yale Young Global Scholars accepted student"? Should I put the acceptance rate? Example: 2000/7000 approx? (I also had 97% of financial aid but I did not get the scholarship, idk if i should add it)
Thanks :(
Top Comment: I do not have a lot of honors, so I wanted to put YYGS there because it also represented a really important achievement for me, because in my background and community getting accepted into those things is not common. Is it okay? Also, I do not know what to write in in Honors, "Yale Young Global ...
Looking to put a few thousand in FTSE global all cap and leaving it for 10-15 years. Anything I should…
Main Post: Looking to put a few thousand in FTSE global all cap and leaving it for 10-15 years. Anything I should...
Top Comment:
Do you know why you are investing in that fund rather than a different one?
If you check your account in two months time and your investments are down 20%, what actions will you take?