qid
int64
1
74.7M
question
stringlengths
0
58.3k
date
stringlengths
10
10
metadata
list
response_j
stringlengths
2
48.3k
response_k
stringlengths
2
40.5k
70,988,929
I am working on an Azure AD B2C application and the B2C policy stores the MFA secret-key in the `extension_mfaTotpSecretKey` property of the user. This works and when I run `Get-AzureADUser -ObjectId '<object-id>' | ConvertTo-Json`, then it shows: ```json { "ExtensionProperty": { "odata.metadata": "https://grap...
2022/02/04
[ "https://Stackoverflow.com/questions/70988929", "https://Stackoverflow.com", "https://Stackoverflow.com/users/956435/" ]
It seems that there three possible ways to extend properties in Azure AD for an object: 1. [AzureAD Graph extension attributes](https://learn.microsoft.com/en-us/powershell/azure/active-directory/using-extension-attributes-sample?view=azureadps-2.0) 2. [Azure AD Open extensions](https://learn.microsoft.com/en-us/graph...
<https://learn.microsoft.com/en-us/graph/api/application-list-extensionproperty?view=graph-rest-1.0&tabs=csharp> ```cs GraphServiceClient graphClient = new GraphServiceClient( authProvider ); var extensionProperties = await graphClient.Applications["{application-id}"].ExtensionProperties .Request() .GetAsync(...
70,988,929
I am working on an Azure AD B2C application and the B2C policy stores the MFA secret-key in the `extension_mfaTotpSecretKey` property of the user. This works and when I run `Get-AzureADUser -ObjectId '<object-id>' | ConvertTo-Json`, then it shows: ```json { "ExtensionProperty": { "odata.metadata": "https://grap...
2022/02/04
[ "https://Stackoverflow.com/questions/70988929", "https://Stackoverflow.com", "https://Stackoverflow.com/users/956435/" ]
**Extension attributes are not included by default if you use the v1 endpoint of the Microsoft Graph**. You must explicitly ask for them via a `$select`, as per @Ramon answer. When you use a `$select` statement, you'll get back only the specified attributes plus the id, so pay attention and specify all the fields you n...
<https://learn.microsoft.com/en-us/graph/api/application-list-extensionproperty?view=graph-rest-1.0&tabs=csharp> ```cs GraphServiceClient graphClient = new GraphServiceClient( authProvider ); var extensionProperties = await graphClient.Applications["{application-id}"].ExtensionProperties .Request() .GetAsync(...
61,233,241
I am pretty new to VBA hence my current struggle and clumsy code. Within my code I am trying identify uncorrelated stocks for a study project. The idea is that my macro generates a correlation matrix, bounded the Stock Names and then loops through line by line to return the most "uncorrelated" stock for the underlying ...
2020/04/15
[ "https://Stackoverflow.com/questions/61233241", "https://Stackoverflow.com", "https://Stackoverflow.com/users/13322605/" ]
Consider this approach: In the correlation matrix, we only need to look at the numbers either "above" or "below" the diagonal line of "1"s. All other values are just a mirror image, looking at them would be a waste of time. So we try to look at a triangle of coordinates: ``` A (1) B (2) C (3) ...
Dimension the variables as `Range` objects. `Variant` is a catch all data type and does not have a `.Name` property. See below. I also changed `Names` variable since `.Names` refers to named ranges. ``` Sub Test() Dim theNames As Range Dim Ref As Range Set theNames = Worksheets("Correlation Matrix").Range(Cells(1,...
18,966,979
I have a C struct defined as follows: ``` struct Guest { int age; char name[20]; }; ``` When I created a `Guest` variable and initialized it using the following: ``` int guest_age = 30; char guest_name[20] = "Mike"; struct Guest mike = {guest_age, guest_name}; ``` I got the error about the second parameter ...
2013/09/23
[ "https://Stackoverflow.com/questions/18966979", "https://Stackoverflow.com", "https://Stackoverflow.com/users/1649466/" ]
`mike.name` is 20 bytes of reserved memory inside the struct. `guest_name` is a pointer to another memory location. By trying to assign `guest_name` to the struct's member you try something impossible. If you have to copy data into the struct you have to use `memcpy` and friends. In this case you need to handle the `\...
mike.name is a character array. You can't copy arrays by just using the = operator. Instead, you'll need to use `strncpy` or something similar to copy the data. ``` int guest_age = 30; char guest_name[20] = "Mike"; struct Guest mike = { guest_age }; strncpy(mike.name, guest_name, sizeof(mike.name) - 1); ``` You've ...
18,966,979
I have a C struct defined as follows: ``` struct Guest { int age; char name[20]; }; ``` When I created a `Guest` variable and initialized it using the following: ``` int guest_age = 30; char guest_name[20] = "Mike"; struct Guest mike = {guest_age, guest_name}; ``` I got the error about the second parameter ...
2013/09/23
[ "https://Stackoverflow.com/questions/18966979", "https://Stackoverflow.com", "https://Stackoverflow.com/users/1649466/" ]
`mike.name` is 20 bytes of reserved memory inside the struct. `guest_name` is a pointer to another memory location. By trying to assign `guest_name` to the struct's member you try something impossible. If you have to copy data into the struct you have to use `memcpy` and friends. In this case you need to handle the `\...
You can statically allocate a struct with a fixed char[] array in C. For example, gcc allows the following: ``` #include <stdio.h> typedef struct { int num; char str[]; } test; int main(void) { static test x={.num=sizeof("hello"),.str="hello"}; printf("sizeof=%zu num=%d str=%s\n",sizeof(x),x.num,x.s...
18,966,979
I have a C struct defined as follows: ``` struct Guest { int age; char name[20]; }; ``` When I created a `Guest` variable and initialized it using the following: ``` int guest_age = 30; char guest_name[20] = "Mike"; struct Guest mike = {guest_age, guest_name}; ``` I got the error about the second parameter ...
2013/09/23
[ "https://Stackoverflow.com/questions/18966979", "https://Stackoverflow.com", "https://Stackoverflow.com/users/1649466/" ]
`mike.name` is 20 bytes of reserved memory inside the struct. `guest_name` is a pointer to another memory location. By trying to assign `guest_name` to the struct's member you try something impossible. If you have to copy data into the struct you have to use `memcpy` and friends. In this case you need to handle the `\...
Actually you can statically initialise this struct: ``` struct Guest { int age; char name[20]; }; Guest guest = { 30, {'M','i','k','e','\0'}}; ``` Each element of the array must be set explictly and this cannot be done using c-strings. If the struct is defined with a char\* name then we can do this: ``` stru...
18,966,979
I have a C struct defined as follows: ``` struct Guest { int age; char name[20]; }; ``` When I created a `Guest` variable and initialized it using the following: ``` int guest_age = 30; char guest_name[20] = "Mike"; struct Guest mike = {guest_age, guest_name}; ``` I got the error about the second parameter ...
2013/09/23
[ "https://Stackoverflow.com/questions/18966979", "https://Stackoverflow.com", "https://Stackoverflow.com/users/1649466/" ]
mike.name is a character array. You can't copy arrays by just using the = operator. Instead, you'll need to use `strncpy` or something similar to copy the data. ``` int guest_age = 30; char guest_name[20] = "Mike"; struct Guest mike = { guest_age }; strncpy(mike.name, guest_name, sizeof(mike.name) - 1); ``` You've ...
You can statically allocate a struct with a fixed char[] array in C. For example, gcc allows the following: ``` #include <stdio.h> typedef struct { int num; char str[]; } test; int main(void) { static test x={.num=sizeof("hello"),.str="hello"}; printf("sizeof=%zu num=%d str=%s\n",sizeof(x),x.num,x.s...
18,966,979
I have a C struct defined as follows: ``` struct Guest { int age; char name[20]; }; ``` When I created a `Guest` variable and initialized it using the following: ``` int guest_age = 30; char guest_name[20] = "Mike"; struct Guest mike = {guest_age, guest_name}; ``` I got the error about the second parameter ...
2013/09/23
[ "https://Stackoverflow.com/questions/18966979", "https://Stackoverflow.com", "https://Stackoverflow.com/users/1649466/" ]
mike.name is a character array. You can't copy arrays by just using the = operator. Instead, you'll need to use `strncpy` or something similar to copy the data. ``` int guest_age = 30; char guest_name[20] = "Mike"; struct Guest mike = { guest_age }; strncpy(mike.name, guest_name, sizeof(mike.name) - 1); ``` You've ...
Actually you can statically initialise this struct: ``` struct Guest { int age; char name[20]; }; Guest guest = { 30, {'M','i','k','e','\0'}}; ``` Each element of the array must be set explictly and this cannot be done using c-strings. If the struct is defined with a char\* name then we can do this: ``` stru...
18,966,979
I have a C struct defined as follows: ``` struct Guest { int age; char name[20]; }; ``` When I created a `Guest` variable and initialized it using the following: ``` int guest_age = 30; char guest_name[20] = "Mike"; struct Guest mike = {guest_age, guest_name}; ``` I got the error about the second parameter ...
2013/09/23
[ "https://Stackoverflow.com/questions/18966979", "https://Stackoverflow.com", "https://Stackoverflow.com/users/1649466/" ]
Actually you can statically initialise this struct: ``` struct Guest { int age; char name[20]; }; Guest guest = { 30, {'M','i','k','e','\0'}}; ``` Each element of the array must be set explictly and this cannot be done using c-strings. If the struct is defined with a char\* name then we can do this: ``` stru...
You can statically allocate a struct with a fixed char[] array in C. For example, gcc allows the following: ``` #include <stdio.h> typedef struct { int num; char str[]; } test; int main(void) { static test x={.num=sizeof("hello"),.str="hello"}; printf("sizeof=%zu num=%d str=%s\n",sizeof(x),x.num,x.s...
32,368,204
What is closure in groovy? Why we use this closure?
2015/09/03
[ "https://Stackoverflow.com/questions/32368204", "https://Stackoverflow.com", "https://Stackoverflow.com/users/5295380/" ]
Why is it a problem to create a class for each kind of Request / Response? If you have hundreds of different kinds of Requests and Responses, you might want to try and categorize them better. I would argue there are common patterns across your requests or responses. Eg. a `FailureResponse` might always contain some st...
**`dynamic`** is a new static type that acts like a ***placeholder*** for a type not known until runtime. Once the **`dynamic`** object is declared, it is possible to call operations, get and set properties on it, even pass the **`dynamic`** instance pretty much as if it were any normal type. **`dynamic`** gives us a l...
32,368,204
What is closure in groovy? Why we use this closure?
2015/09/03
[ "https://Stackoverflow.com/questions/32368204", "https://Stackoverflow.com", "https://Stackoverflow.com/users/5295380/" ]
I'd definitely go with a new class for each request type. Yes, you may need to write a lot of code but it'll be *safer*. The point (to me) is **who will write this code**?. Let's read this answer to the end (or directly jump to last suggested option). In these examples I'll use `Dictionary<string, string>` for *generi...
Why is it a problem to create a class for each kind of Request / Response? If you have hundreds of different kinds of Requests and Responses, you might want to try and categorize them better. I would argue there are common patterns across your requests or responses. Eg. a `FailureResponse` might always contain some st...
32,368,204
What is closure in groovy? Why we use this closure?
2015/09/03
[ "https://Stackoverflow.com/questions/32368204", "https://Stackoverflow.com", "https://Stackoverflow.com/users/5295380/" ]
I'd definitely go with a new class for each request type. Yes, you may need to write a lot of code but it'll be *safer*. The point (to me) is **who will write this code**?. Let's read this answer to the end (or directly jump to last suggested option). In these examples I'll use `Dictionary<string, string>` for *generi...
**`dynamic`** is a new static type that acts like a ***placeholder*** for a type not known until runtime. Once the **`dynamic`** object is declared, it is possible to call operations, get and set properties on it, even pass the **`dynamic`** instance pretty much as if it were any normal type. **`dynamic`** gives us a l...
37,963,636
I'm looking for a way to render my plot\_ly plot directly to a browser in stead of r-studios default viewer. I've searched the plotly documentation but I only see a reference to the default behavior of opening the plot to a browser when running r from a terminal. Does anyone know how to open to a browser window by def...
2016/06/22
[ "https://Stackoverflow.com/questions/37963636", "https://Stackoverflow.com", "https://Stackoverflow.com/users/1549537/" ]
Alright I found a simple solution in the related questions section next to my original question. Sorry I didn't find it before. [stackoverflow.com/questions/36868743](https://stackoverflow.com/questions/33312891/force-rstudio-to-use-browser-instead-of-viewer?rq=1) . Setting: options(viewer=NULL) in the script disables...
An example from this site might help: <http://www.statsblogs.com/2014/02/06/protected-online-r-and-plotly-graphs-canadian-and-u-s-maps-old-faithful-with-multiple-axes-overlaid-histograms/> ``` library(plotly) p <- plotly(username="MattSundquist", key="4om2jxmhmn") library(maps) data(canada.cities) trace1 <- list(x=ma...
39,526,942
I have placed 6 custom markers with the same coordinates in google maps iOS SDK. Those markers are continuously blinking/Toggling. I don't want blinking animation at all. Please help me. Here is my Source Code. ``` -(void)loadPlacesInMapWithIndex:(int)index{ for (int i = 0; i < [[[SearchManager sharedInstance]se...
2016/09/16
[ "https://Stackoverflow.com/questions/39526942", "https://Stackoverflow.com", "https://Stackoverflow.com/users/6643036/" ]
You have to provide them diffrent **zIndex** property. This property defines which marker is on the top of stack. The highest numbers are on top. For your code, insert under: ``` marker.tappable = YES; ``` this line of code: ``` marker.zIndex = (UInt32)i ```
Have you tried to setup the [zIndex property of the markers](https://developers.google.com/maps/documentation/ios-sdk/reference/interface_g_m_s_overlay#a0e9871b40c30bb39f9a45dadaf7a0f75)? Probably the markers blink because they're overlapping an there is no clear draw ordering.
961,548
I'm teaching some high school students about number theory and cryptography, and I'd like a hash function (or ideally, a family of hash functions) that I can use as simple demonstration for cryptographic hash functions. The students have learned everything involved in a simple implementation of RSA. It will be used f...
2014/10/06
[ "https://math.stackexchange.com/questions/961548", "https://math.stackexchange.com", "https://math.stackexchange.com/users/129634/" ]
You can see a good number of hash functions [here](https://www.rose-hulman.edu/~holden/Preprints/jha-paper.pdf) by Joshua Holden. He was also an Associate Professor in the Mathematics Department of Rose-Hulman Institute of Technology. He has created JSA, JSA-1 and JSA-2 which are second-preimage resistant.
I'm looking in my algorithms textbook now for information on hash functions. For positive integers $n$, it says that the most common hash function is to simply take $n\pmod{p}$ for some prime $p$. This doesn't really fit the requirement of "large changes in output for small changes in input." However, things get a bit...
46,334,625
I have a messy dataset that has 2 rows of info that belongs on 1. I would like to take the second row and slap it on the end of the first row and create new columns in the process. ``` For example, I would like: COL1 COL2 1 name1 score1 2 state1 rating1 3 name2 score2 4 state2 rati...
2017/09/21
[ "https://Stackoverflow.com/questions/46334625", "https://Stackoverflow.com", "https://Stackoverflow.com/users/6462550/" ]
I would do this using `unite()` and `separate()` from tidyr, and `lead()` from dplyr. ```r library(dplyr) library(tidyr) df <- tribble( ~COL1, ~COL2, "name1", "score1", "state1", "rating1", "name2", "score2", "state2", "rating2" ) df %>% unite(old_cols, COL1, COL2) %>% mutate(new_cols = lead(old_...
Here is a `dplyr` solution. ``` library(dplyr) dt2 <- dt %>% mutate(Group = rep(1:2, times = nrow(.)/2)) %>% split(.$Group) %>% bind_cols() %>% select(-starts_with("Group")) %>% setNames(paste0("COL", 1:ncol(.))) dt2 COL1 COL2 COL3 COL4 1 name1 score1 state1 rating1 2 name2 score2 state2 rating2 ...
46,334,625
I have a messy dataset that has 2 rows of info that belongs on 1. I would like to take the second row and slap it on the end of the first row and create new columns in the process. ``` For example, I would like: COL1 COL2 1 name1 score1 2 state1 rating1 3 name2 score2 4 state2 rati...
2017/09/21
[ "https://Stackoverflow.com/questions/46334625", "https://Stackoverflow.com", "https://Stackoverflow.com/users/6462550/" ]
With `base R`, we could use recycling of logical vector to subset the rows into a `list` and then `cbind` ``` setNames(do.call(cbind, list(df[c(TRUE, FALSE),], df[c(FALSE, TRUE),])), paste0("COL", 1:4)) # COL1 COL2 COL3 COL4 #1 name1 score1 state1 rating1 #3 name2 score2 state2 rating2 ```
Here is a `dplyr` solution. ``` library(dplyr) dt2 <- dt %>% mutate(Group = rep(1:2, times = nrow(.)/2)) %>% split(.$Group) %>% bind_cols() %>% select(-starts_with("Group")) %>% setNames(paste0("COL", 1:ncol(.))) dt2 COL1 COL2 COL3 COL4 1 name1 score1 state1 rating1 2 name2 score2 state2 rating2 ...
46,334,625
I have a messy dataset that has 2 rows of info that belongs on 1. I would like to take the second row and slap it on the end of the first row and create new columns in the process. ``` For example, I would like: COL1 COL2 1 name1 score1 2 state1 rating1 3 name2 score2 4 state2 rati...
2017/09/21
[ "https://Stackoverflow.com/questions/46334625", "https://Stackoverflow.com", "https://Stackoverflow.com/users/6462550/" ]
You should separate the data frame into two data frames: one containing the even rows and another the odd rows. **Caution:** If there is an odd number of rows, the last row will contain `NA` in the new added columns. Odd rows: `df[seq(1, nrow(df), 2), ]` Even rows: `df[seq(2, nrow(df), 2), ]` The next step is to `cb...
Here is a `dplyr` solution. ``` library(dplyr) dt2 <- dt %>% mutate(Group = rep(1:2, times = nrow(.)/2)) %>% split(.$Group) %>% bind_cols() %>% select(-starts_with("Group")) %>% setNames(paste0("COL", 1:ncol(.))) dt2 COL1 COL2 COL3 COL4 1 name1 score1 state1 rating1 2 name2 score2 state2 rating2 ...
31,861,321
I have Googled this several times, but as a newb, I am completely unclear as to how I would pass a parameter, which is an `int` variable, from one of my methods, into my main method. I have a method, `getInput()`, which returns an `int`, but I can't pass it to main. My constructor and main method are as follows ``` pu...
2015/08/06
[ "https://Stackoverflow.com/questions/31861321", "https://Stackoverflow.com", "https://Stackoverflow.com/users/4996872/" ]
You're going about this all wrong. The main method is used to initiate action (ie methods, constructors etc). The goal is to use the main method as an entry point for your program If you want to pass a parameter into your main method this needs to be done with command line args.
"main()" is the "start" of your program. The only thing that calls in to "main()" is you (by way of the operating system), when you start your program. For example, this illustrates "passing arguments from the command line": ``` public class MyClass { public static void main (String[] args) { System.out.prin...
31,861,321
I have Googled this several times, but as a newb, I am completely unclear as to how I would pass a parameter, which is an `int` variable, from one of my methods, into my main method. I have a method, `getInput()`, which returns an `int`, but I can't pass it to main. My constructor and main method are as follows ``` pu...
2015/08/06
[ "https://Stackoverflow.com/questions/31861321", "https://Stackoverflow.com", "https://Stackoverflow.com/users/4996872/" ]
The only scenario where you would call the `main` method from inside the application is when you're `unit testing` it. For any other purposes, use it just to receive parameters from the `command line`.
"main()" is the "start" of your program. The only thing that calls in to "main()" is you (by way of the operating system), when you start your program. For example, this illustrates "passing arguments from the command line": ``` public class MyClass { public static void main (String[] args) { System.out.prin...
10,889,378
I know Python is dynamic typed, duck typed and is also strong. In some cases, we have to make sure it is declare as a list or a dictionary beforehand in order to use them... so can I say Python is also statically typed language?
2012/06/04
[ "https://Stackoverflow.com/questions/10889378", "https://Stackoverflow.com", "https://Stackoverflow.com/users/963889/" ]
No, Python is not statically typed. In static typing names are bound to both a type and an object (or value), in Python names are only bound to objects. At any time you can reassign a name to an object of a different type, which you cannot do in statically typed languages. I'm not sure what you mean by needing declar...
Consider this line of code: ``` x = [] # (or {}) ``` You are not "declaring a variable as a list (or dict)" before using it. You are creating a list (`[]`) (or dict `{}`) and then assigning it as the value of a variable (`x`). This does not mean that `x` now has a type. You could later assign a string to `x`: ``` x...
54,896,760
This is my first code in python and i completely can't get why the code in 5-th string must contain `math.sqrt(i))+1` instead of just `math.sqrt(i)`, because otherwise squares of prime numbers are added to the result. How to solve this is the easiest and most natural way? Thanks you all in advance ``` import math n...
2019/02/27
[ "https://Stackoverflow.com/questions/54896760", "https://Stackoverflow.com", "https://Stackoverflow.com/users/11122433/" ]
No, HashMap does not provide this capability out-of-the-box. However, you could use two different approaches to achieve the goal: A) If the number of orders in each state does not need to be checked that often, simply iterate over `map.values()` and count the amount of orders in each state B) If the number of orders...
You can put your values into a `Set` to get uniques, then count occurrences of each element with `Collections.frequency`: ``` Set<String> singles = new HashSet<>(map.values()); for(String element : singles) { System.out.println(element + ": " + Collections.frequency(map.values(), element)); } ```
54,896,760
This is my first code in python and i completely can't get why the code in 5-th string must contain `math.sqrt(i))+1` instead of just `math.sqrt(i)`, because otherwise squares of prime numbers are added to the result. How to solve this is the easiest and most natural way? Thanks you all in advance ``` import math n...
2019/02/27
[ "https://Stackoverflow.com/questions/54896760", "https://Stackoverflow.com", "https://Stackoverflow.com/users/11122433/" ]
You can put your values into a `Set` to get uniques, then count occurrences of each element with `Collections.frequency`: ``` Set<String> singles = new HashSet<>(map.values()); for(String element : singles) { System.out.println(element + ": " + Collections.frequency(map.values(), element)); } ```
Another option is to map each value to a number. Here's one way to do so using streams: ``` public static <K, V> Map<V, Long> foo(Map<K, V> map) { return map.entrySet().stream() .collect(Collectors.groupingBy(Map.Entry::getValue, Collectors.counting())); } ``` You could then print out the results lik...
54,896,760
This is my first code in python and i completely can't get why the code in 5-th string must contain `math.sqrt(i))+1` instead of just `math.sqrt(i)`, because otherwise squares of prime numbers are added to the result. How to solve this is the easiest and most natural way? Thanks you all in advance ``` import math n...
2019/02/27
[ "https://Stackoverflow.com/questions/54896760", "https://Stackoverflow.com", "https://Stackoverflow.com/users/11122433/" ]
No, HashMap does not provide this capability out-of-the-box. However, you could use two different approaches to achieve the goal: A) If the number of orders in each state does not need to be checked that often, simply iterate over `map.values()` and count the amount of orders in each state B) If the number of orders...
Another option is to map each value to a number. Here's one way to do so using streams: ``` public static <K, V> Map<V, Long> foo(Map<K, V> map) { return map.entrySet().stream() .collect(Collectors.groupingBy(Map.Entry::getValue, Collectors.counting())); } ``` You could then print out the results lik...
90,589
I want to start deep frying at home in a pot. I read that you can reuse the oil a couple of times and that the quality and taste decreases because of the bits at the bottom, that are being burned (basically sauted, right?) while the rest is frying. I was thinking of using a pasta sieve inside my pot, which (hopefully)...
2018/06/26
[ "https://cooking.stackexchange.com/questions/90589", "https://cooking.stackexchange.com", "https://cooking.stackexchange.com/users/39115/" ]
Your pasta sieve will not be fine enough and it will not prevent what you think it will. The particulates in the oil that burn are burning because your oil it hot enough to burn them. Keeping them suspended above the bottom won't prevent the burning. They will still be submerged in hot oil. When your oil starts to get...
Yes, you can although you will need to line the strainer with something to act as a filter. We do a double lining of kitchen paper and when the oil is cooled, we run it through, jar it and refrigerate. Paper coffee filters will work well too.
525,096
How do I change my Windows 7 user name? When I look under `C:\users\user`, I know I am *user*. But my name in Control Panel → User Accounts is set to **David**. My wife also has access to my PC. Her name is displayed correctly i.e. `C:\Users\Clare` and is listed in user accounts as **Clare**. Why is there a variation...
2012/12/28
[ "https://superuser.com/questions/525096", "https://superuser.com", "https://superuser.com/users/183065/" ]
When Windows creates accounts the folders are created based on the user name. It creates the "user" folder by default. What most likely happened when you got the computer is that you changed the Account name to "David". Windows made this change, but kept the folder structure related to that account. So you log into "...
**If you don't mind maybe having to re-install some of the software you use**, what you can do is create a new administrator account (under accounts in cpanel) with the right name you like. Then, go to C:\users\user (old account directory) and copy all files and folders (this will incluse some settings for some progr...
1,221,102
I have an alias defined `alias svi='sudo /usr/bin/vim -i /home/jeff/.viminfo -u /home/jeff/.vimrc'` but when I type `svi myfile` I get > > Error detected while processing /home/jeff/.vimrc: > > line 1: > > E117: Unknown function: pathogen#infect > > > It seems I need to force vim to scan my .vim director...
2017/06/20
[ "https://superuser.com/questions/1221102", "https://superuser.com", "https://superuser.com/users/278638/" ]
> > how can I get my normal vim initialization when I execute sudo vim? > > > By using `$ sudo -e filename` instead of `$ sudo vim filename`. That command will: 1. ask for your password (if the sudoers security policy requires it); 2. make a copy of `filename` in `/tmp/`; 3. open it *as you* with the first edito...
While I intend to accept @romainl's answer as the preferred solution (after he tweaks it a little), I took another crack at researching a solution to the error I was getting because I hate it when computers get the better of me. It turns out the error has to do with how the vim `runtimepath` option resolves when runni...
57,497,981
This problem is very hard to describe as text, so if the title doesn't fit the requirement, sorry for that. I would like to achieve a specific goal with Project Reactor flux and mono, which seems to be pretty simple at first look. A code example, in the "blocking-way" will be better than a long description: ``` ...
2019/08/14
[ "https://Stackoverflow.com/questions/57497981", "https://Stackoverflow.com", "https://Stackoverflow.com/users/4104015/" ]
Instead of using a `Mono.empty`, I used the `Flux.hasElement` method (like @yossarian), but adding a negation filter. It seems to work as the unit test still pass. ``` fun findGroupToCreateReactive(userId: UUID, groupLabel: String): Mono<LinkUserToGroup> = lib.findGroupsOfUser(userId) ...
I didn't find a nice solution with Reactor. However, since you are using Kotlin you might embrace the pattern and create an extension function for it: ``` fun findGroupToCreateReactive(userId: UUID, groupLabel: String): Mono<LinkUserToGroup> = lib.findGroupsOfUser(userId) .flatMapIterable { it....
4,985,937
Is there a way to determine if the process *may* execute a file without having to actually execute it (e.g. by calling `execv(filepath, args)` only to fail and discover that `errno == EACCES`)? I could `stat` the file and observe `st_mode`, but then I still don’t know how that pertains to the process. Ideally, I’m lo...
2011/02/13
[ "https://Stackoverflow.com/questions/4985937", "https://Stackoverflow.com", "https://Stackoverflow.com/users/252304/" ]
<http://linux.die.net/man/2/access> Note the slight tricksiness around suid - if the process has effective superuser privilege it isn't taken into account, since the general idea of the function is to check whether the original invoking user *should* have access to the file, not to check whether this process *could* a...
Assuming your end goal is to eventually execute the program, you don't. This test would be useless because the result is potentially wrong even before the function to make the check returns! You must be prepared to handle failure of `execve` due to permission errors. As pointed out by Steve Jessop, checking whether a ...
134,075
I have two magical stones. The first one—let's call it fire stone—is a stone that able to increase its temperature equal to that of a normal fire. The second one—as you might already guess, is the ice stone—is the stone that is able to decrease its temperature to equal to a normal water ice. These two stones would hav...
2018/12/16
[ "https://worldbuilding.stackexchange.com/questions/134075", "https://worldbuilding.stackexchange.com", "https://worldbuilding.stackexchange.com/users/58271/" ]
Coat the inside of your thermos with channelium and drop in the type of stone you want. Replace it with a different stone when needed.
The stones shrink, assuming only the surface area shrinks you want to have as large round stones as possible so theres the least surface area to shrink, while having as much volume that generates energy per use. A thermos is designed to contain a hot liquid while losing as little heat energy as possible, making it pos...
134,075
I have two magical stones. The first one—let's call it fire stone—is a stone that able to increase its temperature equal to that of a normal fire. The second one—as you might already guess, is the ice stone—is the stone that is able to decrease its temperature to equal to a normal water ice. These two stones would hav...
2018/12/16
[ "https://worldbuilding.stackexchange.com/questions/134075", "https://worldbuilding.stackexchange.com", "https://worldbuilding.stackexchange.com/users/58271/" ]
Weave a mesh basket like a tea infuser out of channelium with a long chain or wire handle. [![infuser](https://i.stack.imgur.com/WKv2R.jpg)](https://i.stack.imgur.com/WKv2R.jpg) Put the stone inside the channelium basket. Use the handle to lower and raise the stone into and out of whatever container you are us...
The stones shrink, assuming only the surface area shrinks you want to have as large round stones as possible so theres the least surface area to shrink, while having as much volume that generates energy per use. A thermos is designed to contain a hot liquid while losing as little heat energy as possible, making it pos...
134,075
I have two magical stones. The first one—let's call it fire stone—is a stone that able to increase its temperature equal to that of a normal fire. The second one—as you might already guess, is the ice stone—is the stone that is able to decrease its temperature to equal to a normal water ice. These two stones would hav...
2018/12/16
[ "https://worldbuilding.stackexchange.com/questions/134075", "https://worldbuilding.stackexchange.com", "https://worldbuilding.stackexchange.com/users/58271/" ]
Weave a mesh basket like a tea infuser out of channelium with a long chain or wire handle. [![infuser](https://i.stack.imgur.com/WKv2R.jpg)](https://i.stack.imgur.com/WKv2R.jpg) Put the stone inside the channelium basket. Use the handle to lower and raise the stone into and out of whatever container you are us...
Coat the inside of your thermos with channelium and drop in the type of stone you want. Replace it with a different stone when needed.
40,097,215
I am having a user enter in a multiple of 3 between 3 and 24 inclusive. The output then prints out the number less 3 until it reaches 0. Ex the user picks 15. The output prints out 15,12,9,6,3,0. The problem is if the user picks the number 17 it rounds it down to 15 and proceeds to do the rest of the code. How do I mak...
2016/10/17
[ "https://Stackoverflow.com/questions/40097215", "https://Stackoverflow.com", "https://Stackoverflow.com/users/6885173/" ]
You can use a separate loop to initialize `n`. (I'm not sure what your outer loop is for, so I deleted it.) ``` int n; while (true) { System.out.print("Enter a multiple of 3: "); n = input.nextInt(); // Validate input. if (n % 3 == 0 && n < 25 && n > 0) { // Input is good. break; } // Input is ba...
If you don't like the `while(true) { ... break; ... }` then you can use a `do { ... } while (flag);` loop instead. A do/while loop is common when you want to do something 1 or more times - specifically at least once and you aren't sure how many times. For example ``` boolean keepGoing = true; do { System.out.prin...
34,335,231
The documentation for [`java.awt.Graphics`](https://docs.oracle.com/javase/8/docs/api/java/awt/Graphics.html) says the following (I added some **emphasis**): > > All rendering operations modify only pixels which lie within the area > bounded by the current clip, which is specified by a `Shape` in user > space and i...
2015/12/17
[ "https://Stackoverflow.com/questions/34335231", "https://Stackoverflow.com", "https://Stackoverflow.com/users/450398/" ]
OK, the answer seems to be in the documentation for [`java.awt.Component.paint(Graphics)`](https://docs.oracle.com/javase/8/docs/api/java/awt/Component.html#getGraphics--), which says: > > This method is called when the contents of the component should be > painted; such as when the component is first being shown or...
Please note that this answer is *not* correct, due to misinterpretation of the actual question (which I cannot answer). I will leave it open for now, maybe someone else will find it useful. --- 1. The `getGraphics()` method of `Component` [calls `setClip()`](http://grepcode.com/file/repository.grepcode.com/java/root/...
13,132,409
Does it also match empty string, or only non-empty strings? I have been trying to find a reference unsuccesfully.
2012/10/30
[ "https://Stackoverflow.com/questions/13132409", "https://Stackoverflow.com", "https://Stackoverflow.com/users/869986/" ]
Why don't you try it yourself and see? At any rate, here are the docs you were looking for: > > With LIKE you can use the following two wildcard characters in the pattern. > > > > > > | Character | Description | > | --- | --- | > | % | Matches any number of characters, even zero characters | > | \_ | Matches exa...
Have a look at the following demo to explain [SQL Fiddle DEMO](http://www.sqlfiddle.com/#!2/90ae1/2) ------------------------------------------------------- ``` CREATE TABLE Table1( ID INT AUTO_INCREMENT, Val VARCHAR(50), PRIMARY KEY (id) ); INSERT INTO Table1 (Val) SELECT 'TEST'; INSERT INTO Table1 (Val)...
13,132,409
Does it also match empty string, or only non-empty strings? I have been trying to find a reference unsuccesfully.
2012/10/30
[ "https://Stackoverflow.com/questions/13132409", "https://Stackoverflow.com", "https://Stackoverflow.com/users/869986/" ]
Why don't you try it yourself and see? At any rate, here are the docs you were looking for: > > With LIKE you can use the following two wildcard characters in the pattern. > > > > > > | Character | Description | > | --- | --- | > | % | Matches any number of characters, even zero characters | > | \_ | Matches exa...
Such an old question w/o answer, but apparently in a context of creating a procedure % stands for any hosts. i.e.: ``` CREATE DEFINER=`root`@`%` PROCEDURE `*internalProcedureName*` ``` * % wildcard for the HOST stands for **any hosts** Ref.: * [MySQL 8.0 Create Procedure](https://dev.mysql.com/doc/refman/8.0/en/...
58,595,470
I'm newbie with Spring Boot. I'm trying to make a https call to a service, I have a Privake key to secure connection. I hit: ``` http://localhost:8081/points/12345/search ``` I tried with https:// but I get from Postman: ``` Could not get any response There was an error connecting to https://localhost:8081/point...
2019/10/28
[ "https://Stackoverflow.com/questions/58595470", "https://Stackoverflow.com", "https://Stackoverflow.com/users/1956558/" ]
I used `https://` at the beginning instead of `http://`, it worked for me.
I got this message because I was using wrong certificate. I misunderstood Client certificate and Server certificate. In my case, I installed my certificate on the server, for my domain, but what I needed to do instead is to use it to make the request, as a client certificate. you can check it how to do it here. [C...
58,595,470
I'm newbie with Spring Boot. I'm trying to make a https call to a service, I have a Privake key to secure connection. I hit: ``` http://localhost:8081/points/12345/search ``` I tried with https:// but I get from Postman: ``` Could not get any response There was an error connecting to https://localhost:8081/point...
2019/10/28
[ "https://Stackoverflow.com/questions/58595470", "https://Stackoverflow.com", "https://Stackoverflow.com/users/1956558/" ]
I used `https://` at the beginning instead of `http://`, it worked for me.
I had this issue when working on a **Java Project** in **Debian 10** with **Tomcat** as the application server. The issue was that the application already had **https** defined as it's default protocol while I was using **http** to call the application in the browser. I however tried using the **https** protocol in t...
58,595,470
I'm newbie with Spring Boot. I'm trying to make a https call to a service, I have a Privake key to secure connection. I hit: ``` http://localhost:8081/points/12345/search ``` I tried with https:// but I get from Postman: ``` Could not get any response There was an error connecting to https://localhost:8081/point...
2019/10/28
[ "https://Stackoverflow.com/questions/58595470", "https://Stackoverflow.com", "https://Stackoverflow.com/users/1956558/" ]
I used `https://` at the beginning instead of `http://`, it worked for me.
We can fix this by either of below listed solutions. 1. Use HTTPS instead of HTTP 2. Disable TLS encryption from POSTMAN setting and use HTTP 3. Check application properties server.ssl.enabled= true- HTTPS , false-HTTP 4. Add correct authorization credential like username and password in POSTMAN [enter image descripti...
58,595,470
I'm newbie with Spring Boot. I'm trying to make a https call to a service, I have a Privake key to secure connection. I hit: ``` http://localhost:8081/points/12345/search ``` I tried with https:// but I get from Postman: ``` Could not get any response There was an error connecting to https://localhost:8081/point...
2019/10/28
[ "https://Stackoverflow.com/questions/58595470", "https://Stackoverflow.com", "https://Stackoverflow.com/users/1956558/" ]
I used `https://` at the beginning instead of `http://`, it worked for me.
I had this issue myself and searched for days for an answer. Most responses talk about using https instead of http but that wasn't required for my testing on localhost. I got my much needed resolution from Shubham's options, which was to set server.ssl.enabled in application.properties file to false.
58,595,470
I'm newbie with Spring Boot. I'm trying to make a https call to a service, I have a Privake key to secure connection. I hit: ``` http://localhost:8081/points/12345/search ``` I tried with https:// but I get from Postman: ``` Could not get any response There was an error connecting to https://localhost:8081/point...
2019/10/28
[ "https://Stackoverflow.com/questions/58595470", "https://Stackoverflow.com", "https://Stackoverflow.com/users/1956558/" ]
I got this message because I was using wrong certificate. I misunderstood Client certificate and Server certificate. In my case, I installed my certificate on the server, for my domain, but what I needed to do instead is to use it to make the request, as a client certificate. you can check it how to do it here. [C...
I had this issue when working on a **Java Project** in **Debian 10** with **Tomcat** as the application server. The issue was that the application already had **https** defined as it's default protocol while I was using **http** to call the application in the browser. I however tried using the **https** protocol in t...
58,595,470
I'm newbie with Spring Boot. I'm trying to make a https call to a service, I have a Privake key to secure connection. I hit: ``` http://localhost:8081/points/12345/search ``` I tried with https:// but I get from Postman: ``` Could not get any response There was an error connecting to https://localhost:8081/point...
2019/10/28
[ "https://Stackoverflow.com/questions/58595470", "https://Stackoverflow.com", "https://Stackoverflow.com/users/1956558/" ]
I got this message because I was using wrong certificate. I misunderstood Client certificate and Server certificate. In my case, I installed my certificate on the server, for my domain, but what I needed to do instead is to use it to make the request, as a client certificate. you can check it how to do it here. [C...
We can fix this by either of below listed solutions. 1. Use HTTPS instead of HTTP 2. Disable TLS encryption from POSTMAN setting and use HTTP 3. Check application properties server.ssl.enabled= true- HTTPS , false-HTTP 4. Add correct authorization credential like username and password in POSTMAN [enter image descripti...
58,595,470
I'm newbie with Spring Boot. I'm trying to make a https call to a service, I have a Privake key to secure connection. I hit: ``` http://localhost:8081/points/12345/search ``` I tried with https:// but I get from Postman: ``` Could not get any response There was an error connecting to https://localhost:8081/point...
2019/10/28
[ "https://Stackoverflow.com/questions/58595470", "https://Stackoverflow.com", "https://Stackoverflow.com/users/1956558/" ]
We can fix this by either of below listed solutions. 1. Use HTTPS instead of HTTP 2. Disable TLS encryption from POSTMAN setting and use HTTP 3. Check application properties server.ssl.enabled= true- HTTPS , false-HTTP 4. Add correct authorization credential like username and password in POSTMAN [enter image descripti...
I had this issue when working on a **Java Project** in **Debian 10** with **Tomcat** as the application server. The issue was that the application already had **https** defined as it's default protocol while I was using **http** to call the application in the browser. I however tried using the **https** protocol in t...
58,595,470
I'm newbie with Spring Boot. I'm trying to make a https call to a service, I have a Privake key to secure connection. I hit: ``` http://localhost:8081/points/12345/search ``` I tried with https:// but I get from Postman: ``` Could not get any response There was an error connecting to https://localhost:8081/point...
2019/10/28
[ "https://Stackoverflow.com/questions/58595470", "https://Stackoverflow.com", "https://Stackoverflow.com/users/1956558/" ]
I had this issue myself and searched for days for an answer. Most responses talk about using https instead of http but that wasn't required for my testing on localhost. I got my much needed resolution from Shubham's options, which was to set server.ssl.enabled in application.properties file to false.
I had this issue when working on a **Java Project** in **Debian 10** with **Tomcat** as the application server. The issue was that the application already had **https** defined as it's default protocol while I was using **http** to call the application in the browser. I however tried using the **https** protocol in t...
58,595,470
I'm newbie with Spring Boot. I'm trying to make a https call to a service, I have a Privake key to secure connection. I hit: ``` http://localhost:8081/points/12345/search ``` I tried with https:// but I get from Postman: ``` Could not get any response There was an error connecting to https://localhost:8081/point...
2019/10/28
[ "https://Stackoverflow.com/questions/58595470", "https://Stackoverflow.com", "https://Stackoverflow.com/users/1956558/" ]
I had this issue myself and searched for days for an answer. Most responses talk about using https instead of http but that wasn't required for my testing on localhost. I got my much needed resolution from Shubham's options, which was to set server.ssl.enabled in application.properties file to false.
We can fix this by either of below listed solutions. 1. Use HTTPS instead of HTTP 2. Disable TLS encryption from POSTMAN setting and use HTTP 3. Check application properties server.ssl.enabled= true- HTTPS , false-HTTP 4. Add correct authorization credential like username and password in POSTMAN [enter image descripti...
52,722,962
Making a simple 'Template-Driven Form' I am getting error though I've not done anything special. This is a simple form with one input with one required validation. That's all. Can someone help me out? **abc.component.html** ``` <form #customForm="ngForm" (ngSubmit)="alpha(customForm)"> <input type="text" name="fi...
2018/10/09
[ "https://Stackoverflow.com/questions/52722962", "https://Stackoverflow.com", "https://Stackoverflow.com/users/2685914/" ]
Since you're already declaring a template and assigning it the value of `ngModel` by doing `#firstName="ngModel"`, the `firstName` template variable will already have the `firstName` `FormControl`. So you can simply apply a check on that like this: `*ngIf="firstName.touched"` Change your template like so: ``` <form ...
You don't need to use `customForm` you got the refrence to direcly by `#firstName` ``` <div class="red" *ngIf="firstName.touched"> <div *ngIf="firstName.errors.required"> Input field is required! </div> </div> ``` but still `firstName.errors.required` will throw an error when the form controll is ...
40,866,679
how to set textfiled value by getting data from server i am getting xml data from server but unable set those values to textfield.can u please correct me if there is any thing with code below Customerdetails.h(model) ``` @interface Customerdetails : NSObject @property(nonatomic,strong)NSString*fst; @property(nonatom...
2016/11/29
[ "https://Stackoverflow.com/questions/40866679", "https://Stackoverflow.com", "https://Stackoverflow.com/users/5453599/" ]
You need to *specify the size of the pointer*, you need to make the pointer to point to a valid memory, that's all. Moreover, it not *necessary* to use `malloc()`. You can either * allocate memory to the pointer via allocator functions, `malloc()` or family * make the pointer point to the address of any other `char` v...
You need to allocate the memory like: ``` data* r = malloc(sizeof(data)); r->name= malloc(20); ``` assuming the name can hold 20 chars
40,866,679
how to set textfiled value by getting data from server i am getting xml data from server but unable set those values to textfield.can u please correct me if there is any thing with code below Customerdetails.h(model) ``` @interface Customerdetails : NSObject @property(nonatomic,strong)NSString*fst; @property(nonatom...
2016/11/29
[ "https://Stackoverflow.com/questions/40866679", "https://Stackoverflow.com", "https://Stackoverflow.com/users/5453599/" ]
You need to *specify the size of the pointer*, you need to make the pointer to point to a valid memory, that's all. Moreover, it not *necessary* to use `malloc()`. You can either * allocate memory to the pointer via allocator functions, `malloc()` or family * make the pointer point to the address of any other `char` v...
You'd need to supply a way to initialize your structure. For example: ``` void init_data (struct data *p_data) { if (p_data) p_data->name = malloc(STR_LEN); } ``` And you should couple that with a function to free the memory: ``` void release_data (struct data *p_data) { if (p_data) free(p_data->name); ...
40,866,679
how to set textfiled value by getting data from server i am getting xml data from server but unable set those values to textfield.can u please correct me if there is any thing with code below Customerdetails.h(model) ``` @interface Customerdetails : NSObject @property(nonatomic,strong)NSString*fst; @property(nonatom...
2016/11/29
[ "https://Stackoverflow.com/questions/40866679", "https://Stackoverflow.com", "https://Stackoverflow.com/users/5453599/" ]
let's say you create a variable `a` of the type `struct data` ``` struct data a; ``` Now allocate memory to the name member of `a` i.e, ``` a.name = malloc(size_of_name + 1); //+1 for '\0' character at the end ``` Now you can use `a.name` to store and use the string Don't forget to free the allocated data befor...
You need to allocate the memory like: ``` data* r = malloc(sizeof(data)); r->name= malloc(20); ``` assuming the name can hold 20 chars
40,866,679
how to set textfiled value by getting data from server i am getting xml data from server but unable set those values to textfield.can u please correct me if there is any thing with code below Customerdetails.h(model) ``` @interface Customerdetails : NSObject @property(nonatomic,strong)NSString*fst; @property(nonatom...
2016/11/29
[ "https://Stackoverflow.com/questions/40866679", "https://Stackoverflow.com", "https://Stackoverflow.com/users/5453599/" ]
let's say you create a variable `a` of the type `struct data` ``` struct data a; ``` Now allocate memory to the name member of `a` i.e, ``` a.name = malloc(size_of_name + 1); //+1 for '\0' character at the end ``` Now you can use `a.name` to store and use the string Don't forget to free the allocated data befor...
You'd need to supply a way to initialize your structure. For example: ``` void init_data (struct data *p_data) { if (p_data) p_data->name = malloc(STR_LEN); } ``` And you should couple that with a function to free the memory: ``` void release_data (struct data *p_data) { if (p_data) free(p_data->name); ...
158,544
I'm writing my thesis on the EPR paradox (I want to continue my master degree in physics) but I'm having an unusual problem. One passage from the book I'm following at the moment justifies one important passage saying that "a theorem proven by Von Neumann tells us" but, since it is far from obvious, I'd like to check t...
2014/02/24
[ "https://mathoverflow.net/questions/158544", "https://mathoverflow.net", "https://mathoverflow.net/users/47402/" ]
As noted by Dan Stahlke, this is precisely the singular value decompositon for compact (in this case Hilbert-Schmidt) operators, via the identification of an element $\omega$ of the Hilbert space tensor product $H\_1\otimes H\_2$ with such an operator $T$. The result can be deduced from the spectral theorem for the com...
Since no one noticed, I feel I should point out that OP's actual statement of the theorem is incorrect. It might not be possible to match up the two bases, for instance you could have the sum $\sum 2^{-n}e\_n\otimes e\_{n+1}$. It's impossible to reindex the two bases to get this in the form $\sum 2^{-n} e\_n\otimes f\_...
65,118
It is known that **ethyl** has a *stronger* inductive effect than **methyl**. Its positive inductive effect is greater than methyl. Then why does ethylamine has a $\mathrm{p}K\_\mathrm{b}$ of $3.35$ and methylamine has the $\mathrm{p}K\_\mathrm{b}$ of $3.34$ ($\mathrm{p}K\_\mathrm{b}$ values in water) Shouldn't the $\...
2016/12/25
[ "https://chemistry.stackexchange.com/questions/65118", "https://chemistry.stackexchange.com", "https://chemistry.stackexchange.com/users/39172/" ]
Ethylamine has a pKb slightly greater than that of methylamine. As you are saying > > It is known that ethyl is better than methyl for inductive effect. It's positive inductive effect is greater than methyl. > > > is absolutely true. But the basicity in aqueous medium is not only determined by +I effect but also...
The difference of methyl’s and ethyl’s inductive effects is very small. Likewise, the difference in $\mathrm{p}K\_\mathrm{b}$ values is very small. Both are in the magnitude of *practically identical* or *within experimenal error.* As such, be happy that the theory holds true up to the point that the values are simil...
15,515,934
My HTML line is like this ``` li a name="1:2" in die autem tertia apparuit homo veniens de castris Saul veste conscissa et pulvere aspersus caput et ut venit ad David cecidit super faciem suam et adoravit ``` I want the output as ``` 1:2 in die autem tertia apparuit homo veniens de castris Saul veste conscissa et...
2013/03/20
[ "https://Stackoverflow.com/questions/15515934", "https://Stackoverflow.com", "https://Stackoverflow.com/users/2160196/" ]
Use `GetAttributeValue` to get value of *name* attribute: ``` foreach (HtmlNode node in doc.DocumentNode.SelectNodes("//li")){ string liName = node.GetAttributeValue("name", "")); } ```
You have to use GetAttributeValue to get values.
18,846,282
I have a problem copying data from MemoryStream into Request Stream. ``` var Request = (HttpWebRequest.Create(Url) as HttpWebRequest); Request.Method = "PUT"; Stream RequestStream = Request.GetRequestStream(); // write to MemoryStream var MemStream = new MemoryStream(); byte[] Test = Encoding.ASCII.GetBytes("test000\...
2013/09/17
[ "https://Stackoverflow.com/questions/18846282", "https://Stackoverflow.com", "https://Stackoverflow.com/users/2058005/" ]
try to add this to your controller: ``` use DBP\InterfazIcedbpBundle\Form\Type\PreferencesIcecatType; ``` The error says that cant found your form class, so say it where it is.
Maybe there is a typo error. In your use in your controller, the name of your FormType file, the name of your FormType class. Check the namespaces.
24,476,868
I send a request to server via Volley; And after send, increase a variable that show number of requests. ``` VolleyGeneral.getInstance().addToRequestQueue(jsonObj,TAG); numberOfReq++; ``` Then when I get the response, decrease that variable. ``` @Override public void onResponse(JSONObject response){ numberOfReq...
2014/06/29
[ "https://Stackoverflow.com/questions/24476868", "https://Stackoverflow.com", "https://Stackoverflow.com/users/421467/" ]
Maybe I'm not understanding the question, because the answer seems incredibly simple. Just set a flag whenever the activity is "ready to finish", and then check for this condition in `onResponse()` too. Either `onAnimationEnd()` or the last `onResponse()` will run first, and the second one should start the second act...
You are aware of the fact that Volley creates and maintains multiple threads, right? Increments/decrements are not thread safe operations. Instead use something like: ``` AtomicInteger numberOfReq = new AtomicInteger(0); numberOfReq.incrementAndGet(); // ++ numberOfReq.decrementAndGet(); // -- ``` Not sure this i...
24,476,868
I send a request to server via Volley; And after send, increase a variable that show number of requests. ``` VolleyGeneral.getInstance().addToRequestQueue(jsonObj,TAG); numberOfReq++; ``` Then when I get the response, decrease that variable. ``` @Override public void onResponse(JSONObject response){ numberOfReq...
2014/06/29
[ "https://Stackoverflow.com/questions/24476868", "https://Stackoverflow.com", "https://Stackoverflow.com/users/421467/" ]
You are aware of the fact that Volley creates and maintains multiple threads, right? Increments/decrements are not thread safe operations. Instead use something like: ``` AtomicInteger numberOfReq = new AtomicInteger(0); numberOfReq.incrementAndGet(); // ++ numberOfReq.decrementAndGet(); // -- ``` Not sure this i...
As matiash answered you can use set a flag on the onResponse() and can check that value to get the desired result or you can use the broadcast recievers that can be an effective solution also
24,476,868
I send a request to server via Volley; And after send, increase a variable that show number of requests. ``` VolleyGeneral.getInstance().addToRequestQueue(jsonObj,TAG); numberOfReq++; ``` Then when I get the response, decrease that variable. ``` @Override public void onResponse(JSONObject response){ numberOfReq...
2014/06/29
[ "https://Stackoverflow.com/questions/24476868", "https://Stackoverflow.com", "https://Stackoverflow.com/users/421467/" ]
You are aware of the fact that Volley creates and maintains multiple threads, right? Increments/decrements are not thread safe operations. Instead use something like: ``` AtomicInteger numberOfReq = new AtomicInteger(0); numberOfReq.incrementAndGet(); // ++ numberOfReq.decrementAndGet(); // -- ``` Not sure this i...
Why not make the check two way instead of one i.e If the response arrives whilst you're animating then your **onAnimationEnd()** must be responsible for shutting down and starting the new activity Else the otherway round(the image animation ends before the response) **onResponse()** must be responsible for performi...
24,476,868
I send a request to server via Volley; And after send, increase a variable that show number of requests. ``` VolleyGeneral.getInstance().addToRequestQueue(jsonObj,TAG); numberOfReq++; ``` Then when I get the response, decrease that variable. ``` @Override public void onResponse(JSONObject response){ numberOfReq...
2014/06/29
[ "https://Stackoverflow.com/questions/24476868", "https://Stackoverflow.com", "https://Stackoverflow.com/users/421467/" ]
You are aware of the fact that Volley creates and maintains multiple threads, right? Increments/decrements are not thread safe operations. Instead use something like: ``` AtomicInteger numberOfReq = new AtomicInteger(0); numberOfReq.incrementAndGet(); // ++ numberOfReq.decrementAndGet(); // -- ``` Not sure this i...
You should separate the method where you start the other activity. Something like this: ``` private boolean animationEnded = false; @Override public void onResponse(JSONObject response){ numberOfReq--; checkStartOtherActivity(); } @Override public void onAnimationEnd(Animation anim){ animationEnded =...
24,476,868
I send a request to server via Volley; And after send, increase a variable that show number of requests. ``` VolleyGeneral.getInstance().addToRequestQueue(jsonObj,TAG); numberOfReq++; ``` Then when I get the response, decrease that variable. ``` @Override public void onResponse(JSONObject response){ numberOfReq...
2014/06/29
[ "https://Stackoverflow.com/questions/24476868", "https://Stackoverflow.com", "https://Stackoverflow.com/users/421467/" ]
Maybe I'm not understanding the question, because the answer seems incredibly simple. Just set a flag whenever the activity is "ready to finish", and then check for this condition in `onResponse()` too. Either `onAnimationEnd()` or the last `onResponse()` will run first, and the second one should start the second act...
As matiash answered you can use set a flag on the onResponse() and can check that value to get the desired result or you can use the broadcast recievers that can be an effective solution also
24,476,868
I send a request to server via Volley; And after send, increase a variable that show number of requests. ``` VolleyGeneral.getInstance().addToRequestQueue(jsonObj,TAG); numberOfReq++; ``` Then when I get the response, decrease that variable. ``` @Override public void onResponse(JSONObject response){ numberOfReq...
2014/06/29
[ "https://Stackoverflow.com/questions/24476868", "https://Stackoverflow.com", "https://Stackoverflow.com/users/421467/" ]
Maybe I'm not understanding the question, because the answer seems incredibly simple. Just set a flag whenever the activity is "ready to finish", and then check for this condition in `onResponse()` too. Either `onAnimationEnd()` or the last `onResponse()` will run first, and the second one should start the second act...
Why not make the check two way instead of one i.e If the response arrives whilst you're animating then your **onAnimationEnd()** must be responsible for shutting down and starting the new activity Else the otherway round(the image animation ends before the response) **onResponse()** must be responsible for performi...
24,476,868
I send a request to server via Volley; And after send, increase a variable that show number of requests. ``` VolleyGeneral.getInstance().addToRequestQueue(jsonObj,TAG); numberOfReq++; ``` Then when I get the response, decrease that variable. ``` @Override public void onResponse(JSONObject response){ numberOfReq...
2014/06/29
[ "https://Stackoverflow.com/questions/24476868", "https://Stackoverflow.com", "https://Stackoverflow.com/users/421467/" ]
Maybe I'm not understanding the question, because the answer seems incredibly simple. Just set a flag whenever the activity is "ready to finish", and then check for this condition in `onResponse()` too. Either `onAnimationEnd()` or the last `onResponse()` will run first, and the second one should start the second act...
You should separate the method where you start the other activity. Something like this: ``` private boolean animationEnded = false; @Override public void onResponse(JSONObject response){ numberOfReq--; checkStartOtherActivity(); } @Override public void onAnimationEnd(Animation anim){ animationEnded =...
68,476,254
i want to integrate several layouts into my theme. so far I have solved it via page.php and page-blue.php because I saw it that way in tutorials. unfortunately the other template is not displayed under the page attributes. i don't see the error. even if i choose a different theme the attributes do not appear. what am I...
2021/07/21
[ "https://Stackoverflow.com/questions/68476254", "https://Stackoverflow.com", "https://Stackoverflow.com/users/12438434/" ]
Change the name of the template, `page` is reserved word, also create brand-new file with file name other than `page.php`, which is also reserved file name. And, for god's sake, name your template files in a way they mean something, self-explanatory. Example for dummies: ``` <?php /* * Template Name: Some Template */...
pls Use This code ``` <?php /* * Template Name: page-blue * Template Post Type: post */ get_header(); ?> ``` instead of this ``` <?php /* * Template Name: page-blue */ get_header(); ?> ```
43,788
Is it true that rings without zero divisors (integral domains) can have any number of members except for 4,6? and if this is true then what would the multiplication operator be?
2011/06/07
[ "https://math.stackexchange.com/questions/43788", "https://math.stackexchange.com", "https://math.stackexchange.com/users/11841/" ]
Let $R$ be a finite integral domain, with $n=|R|$. Then $R$ is a [finite field](http://en.wikipedia.org/wiki/Finite_field), and therefore we must have $n=p^k$ for some prime number $p$ and $k\geq 1$. Conversely, for any prime power $p^k$, there is an integral domain with that number of members, namely $\mathbb{F}\_{p^k...
A ring can be constructed with any finite number of elements, namely the integers modulo $n$.
43,788
Is it true that rings without zero divisors (integral domains) can have any number of members except for 4,6? and if this is true then what would the multiplication operator be?
2011/06/07
[ "https://math.stackexchange.com/questions/43788", "https://math.stackexchange.com", "https://math.stackexchange.com/users/11841/" ]
Let $R$ be a finite integral domain, with $n=|R|$. Then $R$ is a [finite field](http://en.wikipedia.org/wiki/Finite_field), and therefore we must have $n=p^k$ for some prime number $p$ and $k\geq 1$. Conversely, for any prime power $p^k$, there is an integral domain with that number of members, namely $\mathbb{F}\_{p^k...
Suppose $R$ is a ring of order $10$. Then there are elements $a\neq0$ and $b\neq0$ such that $2a=5b=0$, because of Cauchy's theorem applied to the additive group of $R$. Let $c=ab$. Can $c$ be non-zero?
43,788
Is it true that rings without zero divisors (integral domains) can have any number of members except for 4,6? and if this is true then what would the multiplication operator be?
2011/06/07
[ "https://math.stackexchange.com/questions/43788", "https://math.stackexchange.com", "https://math.stackexchange.com/users/11841/" ]
Let $R$ be a finite integral domain, with $n=|R|$. Then $R$ is a [finite field](http://en.wikipedia.org/wiki/Finite_field), and therefore we must have $n=p^k$ for some prime number $p$ and $k\geq 1$. Conversely, for any prime power $p^k$, there is an integral domain with that number of members, namely $\mathbb{F}\_{p^k...
Another way to define field F4 is by defining addition with: $$ 0 + a = a $$ $$ a + a = 0 $$ $$ 1 + 2 = 3 $$ and multiplication having: $$ 0 \times a = 0 $$ $$ 1 \times a = a $$ $$ 2 \times 2 = 3 $$ $$ \begin{array}{c|cccc} {\Large +} & \overline{0} & \overline{1} & \overline{2} & \overline{3} \\ \hline ...
1,365,929
I am reading through my textbook and there is a part of the solution to an example that I do not understand... $$\int\sin^4x\cos^2x\,dx = \int(\sin^2x)^2\cos^2x\,dx$$ $$=\int\left(\frac{1-\cos2x}{2}\right)^2\left(\frac{1+\cos2x}{2}\right)\,dx$$ $$=\frac18\int[1-\cos2x-\cos^22x+\cos^32x]\,dx$$ $$=\frac18\int\left[1-\co...
2015/07/18
[ "https://math.stackexchange.com/questions/1365929", "https://math.stackexchange.com", "https://math.stackexchange.com/users/138750/" ]
From this, we break the fraction into its individual components so that we go from $$1-\cos2x-\left(\frac{1+\cos4x}{2}\right)+(1-\sin^22x)\cos2x$$ to $$\color{red}{1} - \cos 2x \color{red}{- \frac{1}{2}} - \frac{1}{2}\cos 4x + (1-\sin^2 x)\cos 2x$$ Simplifying gives us $$\frac12-\cos2x-\frac12\cos4x+(1-\sin^22x)\cos...
Rewriting in a smart way: $$\int\sin^4x\cos^2xdx = \int(\sin^2x)^2\cos^2xdx$$ Half-angle formulas: $$=\int\left(\frac{1-\cos2x}{2}\right)^2\left(\frac{1+\cos2x}{2}\right)dx$$ We use that: $$\begin{align}(1-\cos(2x))^2(1+\cos(2x)) &= (1-\cos(2x))(1-\cos^2(2x)) \\ &= 1-\cos^2(2x) - \cos(2x)+\cos^3(2x)\end{align}$$ to g...
1,365,929
I am reading through my textbook and there is a part of the solution to an example that I do not understand... $$\int\sin^4x\cos^2x\,dx = \int(\sin^2x)^2\cos^2x\,dx$$ $$=\int\left(\frac{1-\cos2x}{2}\right)^2\left(\frac{1+\cos2x}{2}\right)\,dx$$ $$=\frac18\int[1-\cos2x-\cos^22x+\cos^32x]\,dx$$ $$=\frac18\int\left[1-\co...
2015/07/18
[ "https://math.stackexchange.com/questions/1365929", "https://math.stackexchange.com", "https://math.stackexchange.com/users/138750/" ]
From this, we break the fraction into its individual components so that we go from $$1-\cos2x-\left(\frac{1+\cos4x}{2}\right)+(1-\sin^22x)\cos2x$$ to $$\color{red}{1} - \cos 2x \color{red}{- \frac{1}{2}} - \frac{1}{2}\cos 4x + (1-\sin^2 x)\cos 2x$$ Simplifying gives us $$\frac12-\cos2x-\frac12\cos4x+(1-\sin^22x)\cos...
You could also use $\displaystyle\int\sin^4x\cos^2 x dx=\int(\sin x\cos x)^2\sin^2x dx=\int\big(\frac{1}{2}\sin 2x\big)^2\sin^2x dx$ $\displaystyle=\int\frac{1}{4}\cdot\frac{1}{2}(1-\cos4x)\cdot\frac{1}{2}(1-\cos2x)dx=\frac{1}{16}\int\big(1-\cos4x-\cos2x+\frac{1}{2}(\cos2x+\cos6x)\big)dx$ $\displaystyle=\frac{1}{16}...
1,365,929
I am reading through my textbook and there is a part of the solution to an example that I do not understand... $$\int\sin^4x\cos^2x\,dx = \int(\sin^2x)^2\cos^2x\,dx$$ $$=\int\left(\frac{1-\cos2x}{2}\right)^2\left(\frac{1+\cos2x}{2}\right)\,dx$$ $$=\frac18\int[1-\cos2x-\cos^22x+\cos^32x]\,dx$$ $$=\frac18\int\left[1-\co...
2015/07/18
[ "https://math.stackexchange.com/questions/1365929", "https://math.stackexchange.com", "https://math.stackexchange.com/users/138750/" ]
Rewriting in a smart way: $$\int\sin^4x\cos^2xdx = \int(\sin^2x)^2\cos^2xdx$$ Half-angle formulas: $$=\int\left(\frac{1-\cos2x}{2}\right)^2\left(\frac{1+\cos2x}{2}\right)dx$$ We use that: $$\begin{align}(1-\cos(2x))^2(1+\cos(2x)) &= (1-\cos(2x))(1-\cos^2(2x)) \\ &= 1-\cos^2(2x) - \cos(2x)+\cos^3(2x)\end{align}$$ to g...
You could also use $\displaystyle\int\sin^4x\cos^2 x dx=\int(\sin x\cos x)^2\sin^2x dx=\int\big(\frac{1}{2}\sin 2x\big)^2\sin^2x dx$ $\displaystyle=\int\frac{1}{4}\cdot\frac{1}{2}(1-\cos4x)\cdot\frac{1}{2}(1-\cos2x)dx=\frac{1}{16}\int\big(1-\cos4x-\cos2x+\frac{1}{2}(\cos2x+\cos6x)\big)dx$ $\displaystyle=\frac{1}{16}...
116,143
I was attempting to roast a head of cauliflower with olive oil and seasonings so it comes out crispy. Following the instructions, I roasted it for 35 minutes at 450°F (the recipe said 30 minutes, but it didn't seem done), stirring once halfway through. However, after they cooled, it appears that they've steamed instead...
2021/06/20
[ "https://cooking.stackexchange.com/questions/116143", "https://cooking.stackexchange.com", "https://cooking.stackexchange.com/users/76962/" ]
No, cooking them for too long will make them mushy, whether they’re roasty or not. You could try oiling then a bit and sticking them under the broiler for a couple of minutes (watch them closely!), but i wouldn’t cook them longer than that.
At that point, I'd try buttering and grilling them to add some brownness, and maybe a little cheese. If the food has steamed, means there was a lot of moisture there in the first place. Could be you washed all the heads but they still had a lot of water, which steamed in the oven and kept the overall temperature too l...
116,143
I was attempting to roast a head of cauliflower with olive oil and seasonings so it comes out crispy. Following the instructions, I roasted it for 35 minutes at 450°F (the recipe said 30 minutes, but it didn't seem done), stirring once halfway through. However, after they cooled, it appears that they've steamed instead...
2021/06/20
[ "https://cooking.stackexchange.com/questions/116143", "https://cooking.stackexchange.com", "https://cooking.stackexchange.com/users/76962/" ]
No, cooking them for too long will make them mushy, whether they’re roasty or not. You could try oiling then a bit and sticking them under the broiler for a couple of minutes (watch them closely!), but i wouldn’t cook them longer than that.
Vegetables get mushy when cooked because the cell walls burst. There's no way to restore that cellular structure that by cooking more. You might be able to dry them out by cooking for longer but you will never restore their [turgidity](https://en.wikipedia.org/wiki/Turgor_pressure).
116,143
I was attempting to roast a head of cauliflower with olive oil and seasonings so it comes out crispy. Following the instructions, I roasted it for 35 minutes at 450°F (the recipe said 30 minutes, but it didn't seem done), stirring once halfway through. However, after they cooled, it appears that they've steamed instead...
2021/06/20
[ "https://cooking.stackexchange.com/questions/116143", "https://cooking.stackexchange.com", "https://cooking.stackexchange.com/users/76962/" ]
No, cooking them for too long will make them mushy, whether they’re roasty or not. You could try oiling then a bit and sticking them under the broiler for a couple of minutes (watch them closely!), but i wouldn’t cook them longer than that.
A dusting of carb -sugar flour or starch- clinging to the oily surface will create a crispy crust after a short hot roasting time. Below that layer, soft.
116,143
I was attempting to roast a head of cauliflower with olive oil and seasonings so it comes out crispy. Following the instructions, I roasted it for 35 minutes at 450°F (the recipe said 30 minutes, but it didn't seem done), stirring once halfway through. However, after they cooled, it appears that they've steamed instead...
2021/06/20
[ "https://cooking.stackexchange.com/questions/116143", "https://cooking.stackexchange.com", "https://cooking.stackexchange.com/users/76962/" ]
At that point, I'd try buttering and grilling them to add some brownness, and maybe a little cheese. If the food has steamed, means there was a lot of moisture there in the first place. Could be you washed all the heads but they still had a lot of water, which steamed in the oven and kept the overall temperature too l...
Vegetables get mushy when cooked because the cell walls burst. There's no way to restore that cellular structure that by cooking more. You might be able to dry them out by cooking for longer but you will never restore their [turgidity](https://en.wikipedia.org/wiki/Turgor_pressure).
116,143
I was attempting to roast a head of cauliflower with olive oil and seasonings so it comes out crispy. Following the instructions, I roasted it for 35 minutes at 450°F (the recipe said 30 minutes, but it didn't seem done), stirring once halfway through. However, after they cooled, it appears that they've steamed instead...
2021/06/20
[ "https://cooking.stackexchange.com/questions/116143", "https://cooking.stackexchange.com", "https://cooking.stackexchange.com/users/76962/" ]
At that point, I'd try buttering and grilling them to add some brownness, and maybe a little cheese. If the food has steamed, means there was a lot of moisture there in the first place. Could be you washed all the heads but they still had a lot of water, which steamed in the oven and kept the overall temperature too l...
A dusting of carb -sugar flour or starch- clinging to the oily surface will create a crispy crust after a short hot roasting time. Below that layer, soft.
57,336,301
``` $content = 'blah [faq] blag blag blag [/faq] blah'; preg_match("%\[faq\].*\[/faq\]%i", $content, $matches); print_r($matches); ``` I know my regex has an issue here because it's not working. I want `matches[0]` to return `blag blag blag`.
2019/08/03
[ "https://Stackoverflow.com/questions/57336301", "https://Stackoverflow.com", "https://Stackoverflow.com/users/2848541/" ]
Your problem can be solved with this. ``` $content = 'blah [faq] blag blag blag [/faq] blah'; preg_match("%\[faq\](.*?)\[/faq\]%i", $content, $matches); print_r($matches[1]); ``` We add one more match and get it index 1. Index 0 is full matched pattern and index 1 is second match from question mark in (.\*?)
Your code is basically correct, except that you should provide a capture group to capture the content in between the tags. Then, access that captured content in `$matches[1]`, not `$matches[0]`, the latter which would contain the entire match. ``` \[faq\](.*?)\[/faq\] ``` Updated script: ``` $content = 'blah [faq] ...
46,710,721
I upgraded a Web API project from ASP.NET Core 1.x to ASP.NET Core 2.0 with very minimal code changes. When running the WebAPI the command prompt opens up like normal. However, every single info message is duplicated. Is this an ASP.NET Core bug or is this an issue on my end after upgrading? **UPDATE:** I was doin...
2017/10/12
[ "https://Stackoverflow.com/questions/46710721", "https://Stackoverflow.com", "https://Stackoverflow.com/users/5678853/" ]
`WebHost.CreateDefaultBuilder` sets up a lot of the *conventional* stuff for you, to save the same code having to be generated for each individual ASP.NET Core 2 project (as it was in ASP.NET Core 1.x). You can see the code for `WebHost.CreateDefaultBuilder` [here](https://github.com/dotnet/aspnetcore/blob/release/2.1...
I was having the same issue: using NLog, all info was duplicated and recorded that way. For me, what solved the problem was to remove the `loggerFactory.AddNLog()` from `Configure` at `Startup.cs`. I'm using Core 2.0.
46,710,721
I upgraded a Web API project from ASP.NET Core 1.x to ASP.NET Core 2.0 with very minimal code changes. When running the WebAPI the command prompt opens up like normal. However, every single info message is duplicated. Is this an ASP.NET Core bug or is this an issue on my end after upgrading? **UPDATE:** I was doin...
2017/10/12
[ "https://Stackoverflow.com/questions/46710721", "https://Stackoverflow.com", "https://Stackoverflow.com/users/5678853/" ]
`WebHost.CreateDefaultBuilder` sets up a lot of the *conventional* stuff for you, to save the same code having to be generated for each individual ASP.NET Core 2 project (as it was in ASP.NET Core 1.x). You can see the code for `WebHost.CreateDefaultBuilder` [here](https://github.com/dotnet/aspnetcore/blob/release/2.1...
For that matter, it is possible to clear the logging providers registered by default by CreateDefaultBuilder(). ``` Host.CreateDefaultBuilder(args).ConfigureLogging((hostContext, loggingBuilder) => { loggingBuilder.ClearProviders(); }); ``` So logs won't be outputed twice and you don't have to configure the host...
46,710,721
I upgraded a Web API project from ASP.NET Core 1.x to ASP.NET Core 2.0 with very minimal code changes. When running the WebAPI the command prompt opens up like normal. However, every single info message is duplicated. Is this an ASP.NET Core bug or is this an issue on my end after upgrading? **UPDATE:** I was doin...
2017/10/12
[ "https://Stackoverflow.com/questions/46710721", "https://Stackoverflow.com", "https://Stackoverflow.com/users/5678853/" ]
I was having the same issue: using NLog, all info was duplicated and recorded that way. For me, what solved the problem was to remove the `loggerFactory.AddNLog()` from `Configure` at `Startup.cs`. I'm using Core 2.0.
For that matter, it is possible to clear the logging providers registered by default by CreateDefaultBuilder(). ``` Host.CreateDefaultBuilder(args).ConfigureLogging((hostContext, loggingBuilder) => { loggingBuilder.ClearProviders(); }); ``` So logs won't be outputed twice and you don't have to configure the host...
58,501,818
I want to use selenium webdriver methods in the robot framework library. ``` def custom_go_to driver = BuiltIn().get_library_instance('SeleniumLibrary') driver.go_to(url) ``` The above code from custom library works fine, but I want to use selenium method at the place of robotframework builtin libra...
2019/10/22
[ "https://Stackoverflow.com/questions/58501818", "https://Stackoverflow.com", "https://Stackoverflow.com/users/2152170/" ]
'SeleniumLibrary' do not have get attribute. Please refer to [Selenium Library Robot Framework](http://robotframework.org/SeleniumLibrary/) for more info. You should be using ``` Open Browser ${LOGIN URL} ${BROWSER} ``` Below is example from the link Example ``` *** Settings *** Documentation Simp...
Reproduced this as well: `driver.get(url)` produces `AttributeError: 'SeleniumLibrary' object has no attribute 'get'` An error with an existing keyword, such as `driver.go_to(url)` produces a different error: `No browser is open.` So, use existing keywords or make your own.
58,501,818
I want to use selenium webdriver methods in the robot framework library. ``` def custom_go_to driver = BuiltIn().get_library_instance('SeleniumLibrary') driver.go_to(url) ``` The above code from custom library works fine, but I want to use selenium method at the place of robotframework builtin libra...
2019/10/22
[ "https://Stackoverflow.com/questions/58501818", "https://Stackoverflow.com", "https://Stackoverflow.com/users/2152170/" ]
The selenium library itself is not a webdriver object, it's just an instance of the SeleniumLibrary class. You need to get a reference to the driver, which is an attribute in the library. ``` def custom_go_to(url): selib = BuiltIn().get_library_instance('SeleniumLibrary') selib.driver.get(url) ``` For more i...
'SeleniumLibrary' do not have get attribute. Please refer to [Selenium Library Robot Framework](http://robotframework.org/SeleniumLibrary/) for more info. You should be using ``` Open Browser ${LOGIN URL} ${BROWSER} ``` Below is example from the link Example ``` *** Settings *** Documentation Simp...
58,501,818
I want to use selenium webdriver methods in the robot framework library. ``` def custom_go_to driver = BuiltIn().get_library_instance('SeleniumLibrary') driver.go_to(url) ``` The above code from custom library works fine, but I want to use selenium method at the place of robotframework builtin libra...
2019/10/22
[ "https://Stackoverflow.com/questions/58501818", "https://Stackoverflow.com", "https://Stackoverflow.com/users/2152170/" ]
The selenium library itself is not a webdriver object, it's just an instance of the SeleniumLibrary class. You need to get a reference to the driver, which is an attribute in the library. ``` def custom_go_to(url): selib = BuiltIn().get_library_instance('SeleniumLibrary') selib.driver.get(url) ``` For more i...
Reproduced this as well: `driver.get(url)` produces `AttributeError: 'SeleniumLibrary' object has no attribute 'get'` An error with an existing keyword, such as `driver.go_to(url)` produces a different error: `No browser is open.` So, use existing keywords or make your own.
58,501,818
I want to use selenium webdriver methods in the robot framework library. ``` def custom_go_to driver = BuiltIn().get_library_instance('SeleniumLibrary') driver.go_to(url) ``` The above code from custom library works fine, but I want to use selenium method at the place of robotframework builtin libra...
2019/10/22
[ "https://Stackoverflow.com/questions/58501818", "https://Stackoverflow.com", "https://Stackoverflow.com/users/2152170/" ]
SeleniumLibrary have a "Get Element Attribute" keyword. See documentation here: [RobotFramework SeleniumLibrary Documentation](https://robotframework.org/SeleniumLibrary/SeleniumLibrary.html#Get%20Element%20Attribute)
Reproduced this as well: `driver.get(url)` produces `AttributeError: 'SeleniumLibrary' object has no attribute 'get'` An error with an existing keyword, such as `driver.go_to(url)` produces a different error: `No browser is open.` So, use existing keywords or make your own.
58,501,818
I want to use selenium webdriver methods in the robot framework library. ``` def custom_go_to driver = BuiltIn().get_library_instance('SeleniumLibrary') driver.go_to(url) ``` The above code from custom library works fine, but I want to use selenium method at the place of robotframework builtin libra...
2019/10/22
[ "https://Stackoverflow.com/questions/58501818", "https://Stackoverflow.com", "https://Stackoverflow.com/users/2152170/" ]
The selenium library itself is not a webdriver object, it's just an instance of the SeleniumLibrary class. You need to get a reference to the driver, which is an attribute in the library. ``` def custom_go_to(url): selib = BuiltIn().get_library_instance('SeleniumLibrary') selib.driver.get(url) ``` For more i...
SeleniumLibrary have a "Get Element Attribute" keyword. See documentation here: [RobotFramework SeleniumLibrary Documentation](https://robotframework.org/SeleniumLibrary/SeleniumLibrary.html#Get%20Element%20Attribute)
713,871
In the Calculus of Variations there is a passage from Euler's characteristic equation: $$ \frac {\partial F}{\partial y} - \frac {d}{dx} \left(\frac {\partial F}{\partial y'} \right)=0 $$ in which $$ F=F(x,y,y') $$ If the function F is made explicitly independent of x then: $$ F=F(y,y') $$ Then by integration of Euler'...
2014/03/16
[ "https://math.stackexchange.com/questions/713871", "https://math.stackexchange.com", "https://math.stackexchange.com/users/135710/" ]
If you want $A$ to be bounded, then it is necessary and sufficient that there exists $c > 0$ such that $||x|| > c$ implies $|F(x)| > 0$. This follows immediately from the definition of boundedness for sets in $\mathbb{R}^n$. As a previous post remarked, we could ask $\lim\_{||x||\rightarrow\infty} |F(x)| = \infty$, bu...
If $x = (x(1), x(2),\ldots, x(n))$ then we need that there is a $C > 0$ such that $|x(k)|<C$ for all $k = 1, 2,\ldots, n$. We can take this to be the condition to guarantee boundedness of $A$.
713,871
In the Calculus of Variations there is a passage from Euler's characteristic equation: $$ \frac {\partial F}{\partial y} - \frac {d}{dx} \left(\frac {\partial F}{\partial y'} \right)=0 $$ in which $$ F=F(x,y,y') $$ If the function F is made explicitly independent of x then: $$ F=F(y,y') $$ Then by integration of Euler'...
2014/03/16
[ "https://math.stackexchange.com/questions/713871", "https://math.stackexchange.com", "https://math.stackexchange.com/users/135710/" ]
If you want $A$ to be bounded, then it is necessary and sufficient that there exists $c > 0$ such that $||x|| > c$ implies $|F(x)| > 0$. This follows immediately from the definition of boundedness for sets in $\mathbb{R}^n$. As a previous post remarked, we could ask $\lim\_{||x||\rightarrow\infty} |F(x)| = \infty$, bu...
A growth conditition on $f$ is sufficient, for example: $$\lim\_{||(x\_1,\cdots,x\_n)||\to\infty}|f(x)|=\infty.$$
5,509
I'm looking to build strength. I'm not concerned with size or bigger muscles so much as strength. At the moment I eat a lot of meat and carbs. For most meals I tend to eat things like donor kebabs, burgers, chicken, pizza, subway subs etc. A lot might be considered junk food, although a lot is freshly made from decen...
2012/02/18
[ "https://fitness.stackexchange.com/questions/5509", "https://fitness.stackexchange.com", "https://fitness.stackexchange.com/users/2921/" ]
If your only goal is strength, and you are getting at least 1g protein per pound body weight, then all the extra calories will be used for energy. Whether you use fat or carbs, your body still uses those macronutrients for energy. This sounds quite compatible with Mark Rippetoe's view on dietary requirements. I think ...
If the sole goal is gaining strength, the source doesn't matter so much. If you're getting 50 grams of all the essential amino acids (most meat covers this) then you're fine. The caveat is fast food has a lot of bad side effects. Your cardio will improve when you drop the McDonalds.
29,096,287
``` (i have drop down list with two options with values), > > <select name="status" id="statue"><option value="0"><option value="1"></select>i use select tag > > > > ``` * with while As it is displayed in code below , these two options Considered > > > > > > > > ``` > > active for stat...
2015/03/17
[ "https://Stackoverflow.com/questions/29096287", "https://Stackoverflow.com", "https://Stackoverflow.com/users/4359137/" ]
You have to put the WHERE clause in your query, it's a SQL statement problem, you have to tell SQL what row you want to modify, otherwise it will modify all rows. Try this: ``` $sqlr=mysql_query("UPDATE sale SET active='".$select."' WHERE id = ".$row['id']." ;"); ``` Change 'id' if needed to match the primary key f...
you don't refer to any dataset. ``` $sqlr=mysql_query("UPDATE sale SET active='$select' WHERE [...]"); ```
278,013
I will word this question in terms of linear operators acting on $\mathbb{C}^n$ for simplicity. Feel free to provide an answer in terms of more general Hilbert spaces if you think it makes more sense that way. The standard norm induced by the inner product on $\mathbb{C}^n$ is the Euclidean norm $ \sqrt{\langle x, x\r...
2017/08/05
[ "https://mathoverflow.net/questions/278013", "https://mathoverflow.net", "https://mathoverflow.net/users/113018/" ]
Another answer is that $M\_n$, the space of $n\times n$ complex matrices, carries an *operator norm* where the norm of a matrix is its norm as a linear operator from $\mathbb{C}^n$ to itself (giving $\mathbb{C}^n$ euclidean norm). For some of us, this is the most natural and useful norm on $M\_n$. With operator norm, ...
The trace-class norm of $A$ is about putting the $\ell^1$ norm on the singular values of $A$, whereas the Hilbert-Schmidt norm uses $\ell^2$ instead. So your question is basically: why should we care about $\ell^1$ and not only $\ell^2$? Things become only interesting in infinite dimensional spaces, where these norm ar...
278,013
I will word this question in terms of linear operators acting on $\mathbb{C}^n$ for simplicity. Feel free to provide an answer in terms of more general Hilbert spaces if you think it makes more sense that way. The standard norm induced by the inner product on $\mathbb{C}^n$ is the Euclidean norm $ \sqrt{\langle x, x\r...
2017/08/05
[ "https://mathoverflow.net/questions/278013", "https://mathoverflow.net", "https://mathoverflow.net/users/113018/" ]
One potential intuition for the trace norm is as a way of turning the rank of a matrix (which is very discontinuous) into a norm (which is continuous). Specifically, the trace norm is the unique norm with the property that $\|P\|\_{\mathrm{tr}} = \mathrm{rank}(P)$ for every orthogonal projection $P \in M\_n(\mathbb{C})...
The trace-class norm of $A$ is about putting the $\ell^1$ norm on the singular values of $A$, whereas the Hilbert-Schmidt norm uses $\ell^2$ instead. So your question is basically: why should we care about $\ell^1$ and not only $\ell^2$? Things become only interesting in infinite dimensional spaces, where these norm ar...
278,013
I will word this question in terms of linear operators acting on $\mathbb{C}^n$ for simplicity. Feel free to provide an answer in terms of more general Hilbert spaces if you think it makes more sense that way. The standard norm induced by the inner product on $\mathbb{C}^n$ is the Euclidean norm $ \sqrt{\langle x, x\r...
2017/08/05
[ "https://mathoverflow.net/questions/278013", "https://mathoverflow.net", "https://mathoverflow.net/users/113018/" ]
Another answer is that $M\_n$, the space of $n\times n$ complex matrices, carries an *operator norm* where the norm of a matrix is its norm as a linear operator from $\mathbb{C}^n$ to itself (giving $\mathbb{C}^n$ euclidean norm). For some of us, this is the most natural and useful norm on $M\_n$. With operator norm, ...
If you are interesting in geometrical intuition, here is the possible one: Any matrix (operator) $A$ transforms a unit ball to an ellipsoid. Singular values of $A$ correspond to the lengths of ellipsoid's axis, which orientation is defined by singular vectors. So the nuclear norm represents the sum of the lengths of e...
278,013
I will word this question in terms of linear operators acting on $\mathbb{C}^n$ for simplicity. Feel free to provide an answer in terms of more general Hilbert spaces if you think it makes more sense that way. The standard norm induced by the inner product on $\mathbb{C}^n$ is the Euclidean norm $ \sqrt{\langle x, x\r...
2017/08/05
[ "https://mathoverflow.net/questions/278013", "https://mathoverflow.net", "https://mathoverflow.net/users/113018/" ]
One potential intuition for the trace norm is as a way of turning the rank of a matrix (which is very discontinuous) into a norm (which is continuous). Specifically, the trace norm is the unique norm with the property that $\|P\|\_{\mathrm{tr}} = \mathrm{rank}(P)$ for every orthogonal projection $P \in M\_n(\mathbb{C})...
If you are interesting in geometrical intuition, here is the possible one: Any matrix (operator) $A$ transforms a unit ball to an ellipsoid. Singular values of $A$ correspond to the lengths of ellipsoid's axis, which orientation is defined by singular vectors. So the nuclear norm represents the sum of the lengths of e...
1,094,049
I have created an AMAZON RDS mariadb database under free tier. I used a random generated password first but it is not connecting. So, I click modify and updated the database with new password. but still, I am getting error as below. ``` (conn=36) Access denied for user 'root'@'175.101.107.213' (using password: YES)...
2022/02/18
[ "https://serverfault.com/questions/1094049", "https://serverfault.com", "https://serverfault.com/users/791983/" ]
First off, I have not seen any specific information regarding the contents of the ssl\_version field in ELB logs, which would be the correct place to authoritatively answer what the ELB logs mean. That said, in this kind of context the string `TLSv1` should reasonably be interpreted to mean *TLS version 1.0*. In yo...
It's your choice if you want to allow user to fallback to lower version (which off course have vulnerabilities like poodle) or reject if cipher or tls version is not matching. You have to communicate to end user/client from here you have to use mentioned version else connection will be rejected. So, now if client expl...
5,200,852
I'm very much new in WPF & MVVM paradigm and i'm trying hard to absorb it. The problem i'm having looks like a lot of MVVM beginers face the same & it seems there's no simple approach. So, to keep the problem domain simple here's just an experimental work. I have a MainWindow with a "New" button on it. I want to show ...
2011/03/05
[ "https://Stackoverflow.com/questions/5200852", "https://Stackoverflow.com", "https://Stackoverflow.com/users/446519/" ]
i did have the same problem a while ago. at least i use a very simple approach and i'm happy with. [here](https://stackoverflow.com/questions/3801681/good-or-bad-practise-for-dialogs-in-wpf-with-mvvm) is my solution. in your viewmodel you just have to write one line of code: ``` var result = this.uiDialogService.Sho...
I put dialog code into the View's CodeBehind. I still route the command through the ViewModel, but the ViewModel calls the View's implementation and gets the result. Suppose I have MainWindow View (xaml), and a MainWindow ViewModel and I want to save a file. In the codebehind View (MainWindow.xaml.cs) I add the code ...
770,391
The question is: > > Prove $$\tan70^\circ - \tan50^\circ + \tan10^\circ = \sqrt{3}.$$ > > > I had no idea how to do it & proceeded by making RHS = $\tan60^\circ$ but this doesn't make any help. Please help me solving this.
2014/04/26
[ "https://math.stackexchange.com/questions/770391", "https://math.stackexchange.com", "https://math.stackexchange.com/users/-1/" ]
Consider $\tan x+\tan(x+60^\circ)+\tan(x+120^\circ)$, then \begin{align} \tan x+\tan(x+60^\circ)+\tan(x+120^\circ)&=\tan x+\frac{\tan x+\tan60^\circ}{1-\tan x\tan60^\circ}+\frac{\tan x+\tan120^\circ}{1-\tan x\tan120^\circ}\\ &=\tan x+\frac{\tan x+\sqrt{3}}{1-\sqrt{3}\tan x}+\frac{\tan x-\sqrt{3}}{1+\sqrt{3}\tan x}\\ &=...
You're right, @André Nicolas: $$\tan70° - \tan50° + \tan10° = \tan(60°+10°)-\tan(60°-10°) +\tan10°=$$ $$ =\frac{\sqrt{3}+\tan10°}{1-\sqrt{3}\cdot\tan10°}+\frac{\sqrt{3}-\tan10°}{1+\sqrt{3}\cdot\tan10°}+\tan10°= 3\frac{\tan10°\cdot(3-\tan^210°)}{1-3\cdot\tan^210°}=$$ $$=3\cdot\tan3\cdot10° =3\cdot\frac{1}{\sqrt{3}}=\sqr...
770,391
The question is: > > Prove $$\tan70^\circ - \tan50^\circ + \tan10^\circ = \sqrt{3}.$$ > > > I had no idea how to do it & proceeded by making RHS = $\tan60^\circ$ but this doesn't make any help. Please help me solving this.
2014/04/26
[ "https://math.stackexchange.com/questions/770391", "https://math.stackexchange.com", "https://math.stackexchange.com/users/-1/" ]
If you know following cotangent identity, $$n \cot(n\theta) = \sum\_{k=0}^{n-1}\cot\left(\theta+\frac{k\pi}{n}\right) \quad\forall n \in \mathbb{Z}\_{+}\tag{\*1}$$ What you need to show is pretty simple, $$\tan10^\circ + \tan 70^\circ - \tan 50^\circ = \cot 80^\circ + \cot 20^\circ + \cot( -40^\circ)\\ = \sum\_{k=0}^{2...
You're right, @André Nicolas: $$\tan70° - \tan50° + \tan10° = \tan(60°+10°)-\tan(60°-10°) +\tan10°=$$ $$ =\frac{\sqrt{3}+\tan10°}{1-\sqrt{3}\cdot\tan10°}+\frac{\sqrt{3}-\tan10°}{1+\sqrt{3}\cdot\tan10°}+\tan10°= 3\frac{\tan10°\cdot(3-\tan^210°)}{1-3\cdot\tan^210°}=$$ $$=3\cdot\tan3\cdot10° =3\cdot\frac{1}{\sqrt{3}}=\sqr...
770,391
The question is: > > Prove $$\tan70^\circ - \tan50^\circ + \tan10^\circ = \sqrt{3}.$$ > > > I had no idea how to do it & proceeded by making RHS = $\tan60^\circ$ but this doesn't make any help. Please help me solving this.
2014/04/26
[ "https://math.stackexchange.com/questions/770391", "https://math.stackexchange.com", "https://math.stackexchange.com/users/-1/" ]
$\tan3x=\dfrac{3t-t^3}{1-3t^2}$ where $t=\tan x$ If $\tan3x=\tan3A$ $\implies t^3-3t^2\tan3A-3t+\tan3A=0$ $\implies\sum\_{r=-1}^1\tan(60^\circ r+x)=\dfrac{3\tan3A}1$ Observe that $\tan3x=\tan30^\circ$ for $x=70^\circ,-50^\circ,10^\circ$ $\implies3x=180^\circ n+30^\circ$ where $n$ is any integer $x=60^\circ n+10^\...
You're right, @André Nicolas: $$\tan70° - \tan50° + \tan10° = \tan(60°+10°)-\tan(60°-10°) +\tan10°=$$ $$ =\frac{\sqrt{3}+\tan10°}{1-\sqrt{3}\cdot\tan10°}+\frac{\sqrt{3}-\tan10°}{1+\sqrt{3}\cdot\tan10°}+\tan10°= 3\frac{\tan10°\cdot(3-\tan^210°)}{1-3\cdot\tan^210°}=$$ $$=3\cdot\tan3\cdot10° =3\cdot\frac{1}{\sqrt{3}}=\sqr...
770,391
The question is: > > Prove $$\tan70^\circ - \tan50^\circ + \tan10^\circ = \sqrt{3}.$$ > > > I had no idea how to do it & proceeded by making RHS = $\tan60^\circ$ but this doesn't make any help. Please help me solving this.
2014/04/26
[ "https://math.stackexchange.com/questions/770391", "https://math.stackexchange.com", "https://math.stackexchange.com/users/-1/" ]
Consider $\tan x+\tan(x+60^\circ)+\tan(x+120^\circ)$, then \begin{align} \tan x+\tan(x+60^\circ)+\tan(x+120^\circ)&=\tan x+\frac{\tan x+\tan60^\circ}{1-\tan x\tan60^\circ}+\frac{\tan x+\tan120^\circ}{1-\tan x\tan120^\circ}\\ &=\tan x+\frac{\tan x+\sqrt{3}}{1-\sqrt{3}\tan x}+\frac{\tan x-\sqrt{3}}{1+\sqrt{3}\tan x}\\ &=...
The correct question should be $\tan70^\circ - \tan50^\circ + \tan10^\circ = \sqrt{3}$. Thus \begin{align} \tan70^\circ - \tan50^\circ + \tan10^\circ &= \sqrt{3}\\ \tan70^\circ + \tan10^\circ - \tan50^\circ &= \sqrt{3}\\ \tan(90^\circ-20^\circ) + \frac{\sin10^\circ}{\cos10^\circ} - \tan(90^\circ-40^\circ) &= \sqrt{3}\\...
770,391
The question is: > > Prove $$\tan70^\circ - \tan50^\circ + \tan10^\circ = \sqrt{3}.$$ > > > I had no idea how to do it & proceeded by making RHS = $\tan60^\circ$ but this doesn't make any help. Please help me solving this.
2014/04/26
[ "https://math.stackexchange.com/questions/770391", "https://math.stackexchange.com", "https://math.stackexchange.com/users/-1/" ]
If you know following cotangent identity, $$n \cot(n\theta) = \sum\_{k=0}^{n-1}\cot\left(\theta+\frac{k\pi}{n}\right) \quad\forall n \in \mathbb{Z}\_{+}\tag{\*1}$$ What you need to show is pretty simple, $$\tan10^\circ + \tan 70^\circ - \tan 50^\circ = \cot 80^\circ + \cot 20^\circ + \cot( -40^\circ)\\ = \sum\_{k=0}^{2...
The correct question should be $\tan70^\circ - \tan50^\circ + \tan10^\circ = \sqrt{3}$. Thus \begin{align} \tan70^\circ - \tan50^\circ + \tan10^\circ &= \sqrt{3}\\ \tan70^\circ + \tan10^\circ - \tan50^\circ &= \sqrt{3}\\ \tan(90^\circ-20^\circ) + \frac{\sin10^\circ}{\cos10^\circ} - \tan(90^\circ-40^\circ) &= \sqrt{3}\\...
770,391
The question is: > > Prove $$\tan70^\circ - \tan50^\circ + \tan10^\circ = \sqrt{3}.$$ > > > I had no idea how to do it & proceeded by making RHS = $\tan60^\circ$ but this doesn't make any help. Please help me solving this.
2014/04/26
[ "https://math.stackexchange.com/questions/770391", "https://math.stackexchange.com", "https://math.stackexchange.com/users/-1/" ]
$\tan3x=\dfrac{3t-t^3}{1-3t^2}$ where $t=\tan x$ If $\tan3x=\tan3A$ $\implies t^3-3t^2\tan3A-3t+\tan3A=0$ $\implies\sum\_{r=-1}^1\tan(60^\circ r+x)=\dfrac{3\tan3A}1$ Observe that $\tan3x=\tan30^\circ$ for $x=70^\circ,-50^\circ,10^\circ$ $\implies3x=180^\circ n+30^\circ$ where $n$ is any integer $x=60^\circ n+10^\...
The correct question should be $\tan70^\circ - \tan50^\circ + \tan10^\circ = \sqrt{3}$. Thus \begin{align} \tan70^\circ - \tan50^\circ + \tan10^\circ &= \sqrt{3}\\ \tan70^\circ + \tan10^\circ - \tan50^\circ &= \sqrt{3}\\ \tan(90^\circ-20^\circ) + \frac{\sin10^\circ}{\cos10^\circ} - \tan(90^\circ-40^\circ) &= \sqrt{3}\\...
770,391
The question is: > > Prove $$\tan70^\circ - \tan50^\circ + \tan10^\circ = \sqrt{3}.$$ > > > I had no idea how to do it & proceeded by making RHS = $\tan60^\circ$ but this doesn't make any help. Please help me solving this.
2014/04/26
[ "https://math.stackexchange.com/questions/770391", "https://math.stackexchange.com", "https://math.stackexchange.com/users/-1/" ]
Consider $\tan x+\tan(x+60^\circ)+\tan(x+120^\circ)$, then \begin{align} \tan x+\tan(x+60^\circ)+\tan(x+120^\circ)&=\tan x+\frac{\tan x+\tan60^\circ}{1-\tan x\tan60^\circ}+\frac{\tan x+\tan120^\circ}{1-\tan x\tan120^\circ}\\ &=\tan x+\frac{\tan x+\sqrt{3}}{1-\sqrt{3}\tan x}+\frac{\tan x-\sqrt{3}}{1+\sqrt{3}\tan x}\\ &=...
If you know following cotangent identity, $$n \cot(n\theta) = \sum\_{k=0}^{n-1}\cot\left(\theta+\frac{k\pi}{n}\right) \quad\forall n \in \mathbb{Z}\_{+}\tag{\*1}$$ What you need to show is pretty simple, $$\tan10^\circ + \tan 70^\circ - \tan 50^\circ = \cot 80^\circ + \cot 20^\circ + \cot( -40^\circ)\\ = \sum\_{k=0}^{2...
770,391
The question is: > > Prove $$\tan70^\circ - \tan50^\circ + \tan10^\circ = \sqrt{3}.$$ > > > I had no idea how to do it & proceeded by making RHS = $\tan60^\circ$ but this doesn't make any help. Please help me solving this.
2014/04/26
[ "https://math.stackexchange.com/questions/770391", "https://math.stackexchange.com", "https://math.stackexchange.com/users/-1/" ]
Consider $\tan x+\tan(x+60^\circ)+\tan(x+120^\circ)$, then \begin{align} \tan x+\tan(x+60^\circ)+\tan(x+120^\circ)&=\tan x+\frac{\tan x+\tan60^\circ}{1-\tan x\tan60^\circ}+\frac{\tan x+\tan120^\circ}{1-\tan x\tan120^\circ}\\ &=\tan x+\frac{\tan x+\sqrt{3}}{1-\sqrt{3}\tan x}+\frac{\tan x-\sqrt{3}}{1+\sqrt{3}\tan x}\\ &=...
$\tan3x=\dfrac{3t-t^3}{1-3t^2}$ where $t=\tan x$ If $\tan3x=\tan3A$ $\implies t^3-3t^2\tan3A-3t+\tan3A=0$ $\implies\sum\_{r=-1}^1\tan(60^\circ r+x)=\dfrac{3\tan3A}1$ Observe that $\tan3x=\tan30^\circ$ for $x=70^\circ,-50^\circ,10^\circ$ $\implies3x=180^\circ n+30^\circ$ where $n$ is any integer $x=60^\circ n+10^\...