qid
int64
1
74.7M
question
stringlengths
15
58.3k
date
stringlengths
10
10
metadata
list
response_j
stringlengths
4
30.2k
response_k
stringlengths
11
36.5k
1,576,008
i have this file `C:\\xampp\htdocs\exact\sample_pie.php` that contains a graph. here's the code: ``` <?php include("phpgraphlib.php"); include("phpgraphlib_pie.php"); include("connection.php"); $graph=new PHPGraphLibPie(400,200); $link = mysql_connect('localhost', 'root', ''); mysql_select_db('exact'); $querypa = "S...
2009/10/16
[ "https://Stackoverflow.com/questions/1576008", "https://Stackoverflow.com", "https://Stackoverflow.com/users/161562/" ]
Using `file_get_contents()` like that is only going to retrieve the script itself. That text is what the file contains and that's what `file_get_contents()` does; exactly what it says on the tin. Try looking at the documentation for PHPGraphLib or in the source code failing that. There should be some sort of save met...
``` <img src="/exact/sample_pie.php" /> ``` You may want to use `header()` to set the appropriate Content-type from within sample\_pie.php.
1,576,008
i have this file `C:\\xampp\htdocs\exact\sample_pie.php` that contains a graph. here's the code: ``` <?php include("phpgraphlib.php"); include("phpgraphlib_pie.php"); include("connection.php"); $graph=new PHPGraphLibPie(400,200); $link = mysql_connect('localhost', 'root', ''); mysql_select_db('exact'); $querypa = "S...
2009/10/16
[ "https://Stackoverflow.com/questions/1576008", "https://Stackoverflow.com", "https://Stackoverflow.com/users/161562/" ]
On a sidenote, I should mention that your script is a lot more complicated than it should be. Everything between `mysql_select_db()` and `$graph->addData()` could be rewritten into something like this: ``` $data = array( 'Parade' => 0, 'Community Service' => 0, 'General Assembly' => 0, 'Play/Showcase/S...
``` <img src="/exact/sample_pie.php" /> ``` You may want to use `header()` to set the appropriate Content-type from within sample\_pie.php.
28,031,603
If you run Golang tests on Travis CI, it will [download all of your dependencies with three dots](http://docs.travis-ci.com/user/languages/go/): ``` go get -d -v ./... && go build -v ./... ``` What does `./...` indicate or expand to there? I've done some research but it doesn't seem to be a Unix convention.
2015/01/19
[ "https://Stackoverflow.com/questions/28031603", "https://Stackoverflow.com", "https://Stackoverflow.com/users/329700/" ]
From the command `go help packages`: > > An import path is a pattern if it includes one or more "..." wildcards, > each of which can match any string, including the empty string and > strings containing slashes. Such a pattern expands to all package > directories found in the GOPATH trees with names matching the >...
``` go [command] ./... ``` Here `./` tells to start from the current folder, `...` tells to go down recursively. **For Example:** ``` go list ... ``` In any folder lists all the packages, including packages of the standard library first followed by external libraries in your go workspace.
15,150,724
I have a string in my header file named ``` NSString *enemy; ``` In implementation file i'm initializing that string from a plist file like this ``` NSString *path = [[NSBundle mainBundle] pathForResource:@"Settings" ofType:@"plist"]; NSDictionary *data = [NSDictionary dictionaryWithContentsOfFile:path]; NSDiction...
2013/03/01
[ "https://Stackoverflow.com/questions/15150724", "https://Stackoverflow.com", "https://Stackoverflow.com/users/1727981/" ]
You can use following code for display `UIImage` grid. Add `UICollectionView` for your `xib` file. Don't forget to set the `delegate` in collection. ``` - (NSInteger)numberOfSectionsInCollectionView:(UICollectionView *)collectionView { return noOfItem/ noOfSection; } - (NSInteger)collectionView:(...
Please go through below links. <http://developer.apple.com/library/ios/#documentation/UIKit/Reference/UICollectionView_class/Reference/Reference.html> Above link is from Apple developer site. It has all details of UIcollectionview and tutorials related it. Below URL is also having sample tutorial, which will help you...
3,553,399
I am trying to study functions in math and learning some basic proofs. In numerous places I have seen this: $$(f \circ\ g) ^{-1}(u) = g^{-1}(f^{-1}(u))$$ I know this is true as well, having used it in numerous places in middle and high school. Is there any way of proving this definition though using logical steps? Than...
2020/02/20
[ "https://math.stackexchange.com/questions/3553399", "https://math.stackexchange.com", "https://math.stackexchange.com/users/571753/" ]
Assuming that $g : A \to B$ and $f : B \to C$, then, by definition, $(f\circ g)^{-1} : C\to A$ is the **unique** function such that * $(f\circ g)^{-1}\circ(f\circ g) = \textrm{id}\_A$, and * $(f\circ g)\circ(f\circ g)^{-1} = \textrm{id}\_C$. But observe that the function $g^{-1}\circ f^{-1} : C\to A$ has the same pro...
To prove something is the inverse of a function, you need only check the compositions work as expected, i.e. if you believe $g(x)$ is the inverse of $f(x)$, then show $f(g(x))=x$ and $g(f(x))=x$. This will prove that $g(x)= f^{-1}(x)$. Define $G(u)= (f \circ g)(u)$ and $H(u)= g^{-1}(f^{-1}(u))$. Now just check that $H...
3,553,399
I am trying to study functions in math and learning some basic proofs. In numerous places I have seen this: $$(f \circ\ g) ^{-1}(u) = g^{-1}(f^{-1}(u))$$ I know this is true as well, having used it in numerous places in middle and high school. Is there any way of proving this definition though using logical steps? Than...
2020/02/20
[ "https://math.stackexchange.com/questions/3553399", "https://math.stackexchange.com", "https://math.stackexchange.com/users/571753/" ]
Assuming that $g : A \to B$ and $f : B \to C$, then, by definition, $(f\circ g)^{-1} : C\to A$ is the **unique** function such that * $(f\circ g)^{-1}\circ(f\circ g) = \textrm{id}\_A$, and * $(f\circ g)\circ(f\circ g)^{-1} = \textrm{id}\_C$. But observe that the function $g^{-1}\circ f^{-1} : C\to A$ has the same pro...
For any $x$ in the domain, let $y=(f\circ g)^{-1}(x)$. Note that the following are equivalent: $$y=(f\circ g)^{-1}(x)$$ $$(f\circ g)(y)=x$$ $$f(g(y))=x$$ $$g(y)=f^{-1}(x)$$ $$y=g^{-1}(f^{-1}(x))$$ $$y=(g^{-1}\circ f^{-1})(x)$$ It follows that $(f\circ g)^{-1}(x)=y=(g^{-1}\circ f^{-1})(x)$
3,553,399
I am trying to study functions in math and learning some basic proofs. In numerous places I have seen this: $$(f \circ\ g) ^{-1}(u) = g^{-1}(f^{-1}(u))$$ I know this is true as well, having used it in numerous places in middle and high school. Is there any way of proving this definition though using logical steps? Than...
2020/02/20
[ "https://math.stackexchange.com/questions/3553399", "https://math.stackexchange.com", "https://math.stackexchange.com/users/571753/" ]
Assuming that $g : A \to B$ and $f : B \to C$, then, by definition, $(f\circ g)^{-1} : C\to A$ is the **unique** function such that * $(f\circ g)^{-1}\circ(f\circ g) = \textrm{id}\_A$, and * $(f\circ g)\circ(f\circ g)^{-1} = \textrm{id}\_C$. But observe that the function $g^{-1}\circ f^{-1} : C\to A$ has the same pro...
Assume functions $g:A\mapsto B, f:B\mapsto C$ are bijective (therefore invertible). By definition : $(f\circ g)(x)=f(g(x))$ Applying inversion: $$g^{-1}(f^{-1}((f\circ g)(x)))=x$$ Let : $x=(f\circ g)^{-1}(u)$ which means also $u=(f\circ g)(x)$ Therefore …$$g^{-1}(f^{-1}(u))=(f\circ g)^{-1}(u)$$
628,405
I've added a new SSL certificate to my nginx server (I've done this many times before). However, when I restart nginx, no sites are working. When I run configtest, it says: ``` nginx: the configuration file /etc/nginx/nginx.conf syntax is ok nginx: configuration file /etc/nginx/nginx.conf test is successful ``` If ...
2014/09/14
[ "https://serverfault.com/questions/628405", "https://serverfault.com", "https://serverfault.com/users/242282/" ]
Turning off a few spamassassin tests ------------------------------------ According to my SA configuration from the above tests only `RP_MATCHES_RCVD` yields negative score (ham indicator). `RP_MATCHES_RCVD` scores between -1.5 and -0.5 (local/network, with bayes/without bayes). You may consider turning the test off ...
Install DCC, Pyzor and Razor2. That improves detection significantly. If you still get spam, write some meta-rules (for example DCC + Blacklist = +2 score). I block more than 300 spams per week with an accuracy beyond 99% with that method.
39,050,318
I used the `pandas.pivot_table` function on a pandas dataframe and my output looks like something simillar to this: ``` Winners Runnerup year 2016 2015 2014 2016 2015 2014 Country Sport india badminton ...
2016/08/20
[ "https://Stackoverflow.com/questions/39050318", "https://Stackoverflow.com", "https://Stackoverflow.com/users/3624880/" ]
You can also use list comprehension: ``` df.columns = ['_'.join(col) for col in df.columns] print (df) Winners_2016 Winners_2015 Winners_2014 Runnerup_2016 \ Country Sport india badminton 1 1 1 ...
Try this: ``` df.columns=['{}_{}'.format(x,y) for x,y in zip(df.columns.get_level_values(0),df.columns.get_level_values(1))] ``` `get_level_values` is what you need to get only one of the levels of the resulting multiindex. Side note: you might try working with the data as is. I really hated pandas multiIndex for a...
172,835
I have a problem with a circuit that should be simple but has caused me some annoying problems. **Summary:** I need a switch that closes when the power is off and opens when the power is on. My solution doesn't work and I feel stupid. **Desired effect:** * When power is on, QNP should act as an open switch. In zer...
2015/05/28
[ "https://electronics.stackexchange.com/questions/172835", "https://electronics.stackexchange.com", "https://electronics.stackexchange.com/users/69477/" ]
Page 2 of [this](https://www.fairchildsemi.com/datasheets/2N/2N3906.pdf) datasheet tells the story. ![enter image description here](https://i.stack.imgur.com/BzRDQ.png) Under absolute maximum ratings it states that the maximum reverse voltage of base and emitter is 5V. You have exceeded this by using 12V and although...
This is expected. Edit: It's not leakage- you're breaking down the E-B junction in reverse by exceeding the breakdown voltage (typically rated at 5V with actual breakdown 6~9V). A p-channel MOSFET might give you what you want since the gate is insulated. There are also (somewhat rare) 'symmetrical' transistors that h...
172,835
I have a problem with a circuit that should be simple but has caused me some annoying problems. **Summary:** I need a switch that closes when the power is off and opens when the power is on. My solution doesn't work and I feel stupid. **Desired effect:** * When power is on, QNP should act as an open switch. In zer...
2015/05/28
[ "https://electronics.stackexchange.com/questions/172835", "https://electronics.stackexchange.com", "https://electronics.stackexchange.com/users/69477/" ]
Page 2 of [this](https://www.fairchildsemi.com/datasheets/2N/2N3906.pdf) datasheet tells the story. ![enter image description here](https://i.stack.imgur.com/BzRDQ.png) Under absolute maximum ratings it states that the maximum reverse voltage of base and emitter is 5V. You have exceeded this by using 12V and although...
When I look at the datasheet for a 2N3906 manufactured by Fairchild (<https://www.fairchildsemi.com/datasheets/2N/2N3906.pdf>), I see on page 3 that it has an Emitter-Base breakdown Voltage of -5.0V. So if your SW12 switch is closed then you're applying 12V to the base of your 2N3906. Its emitter is tied to groun...
27,381,815
So i have started learning Akka and trying out the examples in typesafe. So the Hello Akka app has the following code : ``` import akka.actor.{ ActorRef, ActorSystem, Props, Actor, Inbox } import scala.concurrent.duration._ case object Greet case class WhoToGreet(who: String) case class Greeting(message: String) ...
2014/12/09
[ "https://Stackoverflow.com/questions/27381815", "https://Stackoverflow.com", "https://Stackoverflow.com/users/834219/" ]
The purpose of `tell`, also represented as `!` is to send a message to an actor. As actors communicate via message passing, `tell` is the mechanism used to support that message passing. It is asynchronous to the caller, so that once the caller calls `tell`, they are decoupled from the receiving and processing of that m...
When you do the following you are dealing directly with an `ActorRef` ``` greeter.tell(WhoToGreet("akka"), ActorRef.noSender) ``` On the other hand, when you use an `Inbox` you are dealing something that is not exactly an actor but *actor-like*. One scenario where this is helpful is when you don't want to create you...
9,820
I have a problem with my Laptop (Dell Inspiron 1564 Core i5 4GB Ram VGA ATI Mobility Radeon HD 4300 running Ubuntu 10.10 32bit). It shuts down abruptly without even a lag in the application I am working with before shutdown. I think it's overheating problem. Actually the laptop is hot all the time when I am running Ubu...
2010/10/27
[ "https://askubuntu.com/questions/9820", "https://askubuntu.com", "https://askubuntu.com/users/-1/" ]
There seems to be quite a few fan/heating issues with dell laptops. My first port of call would be to upgrade the bios. I have had systems before that over heat and the bios update usually sorts the problem. UnFortunately it depends on dells support, please check the link below. <http://support.dell.com/support/down...
To lock the CPU to the lowest possible frequencies you can do this: ``` sudo tee /sys/devices/system/cpu/cpu0/cpufreq/scaling_max_freq < /sys/devices/system/cpu/cpu0/cpufreq/cpuinfo_min_freq ``` Or you can choose from the list of available frequencies by doing ``` echo [FERQ] | sudo tee /sys/devices/system/cpu/cpu0...
9,820
I have a problem with my Laptop (Dell Inspiron 1564 Core i5 4GB Ram VGA ATI Mobility Radeon HD 4300 running Ubuntu 10.10 32bit). It shuts down abruptly without even a lag in the application I am working with before shutdown. I think it's overheating problem. Actually the laptop is hot all the time when I am running Ubu...
2010/10/27
[ "https://askubuntu.com/questions/9820", "https://askubuntu.com", "https://askubuntu.com/users/-1/" ]
There seems to be quite a few fan/heating issues with dell laptops. My first port of call would be to upgrade the bios. I have had systems before that over heat and the bios update usually sorts the problem. UnFortunately it depends on dells support, please check the link below. <http://support.dell.com/support/down...
If you're comfortable with doing it, it could well be worth taking the CPU apart and blowing the dust out of the fan and heatsink area. There are likely to be loads of guides around on the web, but the overall process is documented in the Dell service manual [here](http://support.dell.com/support/edocs/systems/ins1564/...
9,820
I have a problem with my Laptop (Dell Inspiron 1564 Core i5 4GB Ram VGA ATI Mobility Radeon HD 4300 running Ubuntu 10.10 32bit). It shuts down abruptly without even a lag in the application I am working with before shutdown. I think it's overheating problem. Actually the laptop is hot all the time when I am running Ubu...
2010/10/27
[ "https://askubuntu.com/questions/9820", "https://askubuntu.com", "https://askubuntu.com/users/-1/" ]
There seems to be quite a few fan/heating issues with dell laptops. My first port of call would be to upgrade the bios. I have had systems before that over heat and the bios update usually sorts the problem. UnFortunately it depends on dells support, please check the link below. <http://support.dell.com/support/down...
I had a problem with Ubuntu 10.04 and 10.10 overheating and using all of my cpu and most of my ram. I scanned through these forums but didnt see anything that fit the description of my exact problem so I just started to tinker. I noticed in system monitor that XORG was doing most of the damage. I did a 'stop process' a...
9,820
I have a problem with my Laptop (Dell Inspiron 1564 Core i5 4GB Ram VGA ATI Mobility Radeon HD 4300 running Ubuntu 10.10 32bit). It shuts down abruptly without even a lag in the application I am working with before shutdown. I think it's overheating problem. Actually the laptop is hot all the time when I am running Ubu...
2010/10/27
[ "https://askubuntu.com/questions/9820", "https://askubuntu.com", "https://askubuntu.com/users/-1/" ]
There seems to be quite a few fan/heating issues with dell laptops. My first port of call would be to upgrade the bios. I have had systems before that over heat and the bios update usually sorts the problem. UnFortunately it depends on dells support, please check the link below. <http://support.dell.com/support/down...
What kind of GPU do you have? Radeons are known to always run hot. Switching to the proprietary FLGRX driver fixes this. There is an [open bug](https://bugs.launchpad.net/ubuntu/+source/linux/+bug/748080) for this on launchpad.
9,820
I have a problem with my Laptop (Dell Inspiron 1564 Core i5 4GB Ram VGA ATI Mobility Radeon HD 4300 running Ubuntu 10.10 32bit). It shuts down abruptly without even a lag in the application I am working with before shutdown. I think it's overheating problem. Actually the laptop is hot all the time when I am running Ubu...
2010/10/27
[ "https://askubuntu.com/questions/9820", "https://askubuntu.com", "https://askubuntu.com/users/-1/" ]
If you're comfortable with doing it, it could well be worth taking the CPU apart and blowing the dust out of the fan and heatsink area. There are likely to be loads of guides around on the web, but the overall process is documented in the Dell service manual [here](http://support.dell.com/support/edocs/systems/ins1564/...
To lock the CPU to the lowest possible frequencies you can do this: ``` sudo tee /sys/devices/system/cpu/cpu0/cpufreq/scaling_max_freq < /sys/devices/system/cpu/cpu0/cpufreq/cpuinfo_min_freq ``` Or you can choose from the list of available frequencies by doing ``` echo [FERQ] | sudo tee /sys/devices/system/cpu/cpu0...
9,820
I have a problem with my Laptop (Dell Inspiron 1564 Core i5 4GB Ram VGA ATI Mobility Radeon HD 4300 running Ubuntu 10.10 32bit). It shuts down abruptly without even a lag in the application I am working with before shutdown. I think it's overheating problem. Actually the laptop is hot all the time when I am running Ubu...
2010/10/27
[ "https://askubuntu.com/questions/9820", "https://askubuntu.com", "https://askubuntu.com/users/-1/" ]
To lock the CPU to the lowest possible frequencies you can do this: ``` sudo tee /sys/devices/system/cpu/cpu0/cpufreq/scaling_max_freq < /sys/devices/system/cpu/cpu0/cpufreq/cpuinfo_min_freq ``` Or you can choose from the list of available frequencies by doing ``` echo [FERQ] | sudo tee /sys/devices/system/cpu/cpu0...
I had a problem with Ubuntu 10.04 and 10.10 overheating and using all of my cpu and most of my ram. I scanned through these forums but didnt see anything that fit the description of my exact problem so I just started to tinker. I noticed in system monitor that XORG was doing most of the damage. I did a 'stop process' a...
9,820
I have a problem with my Laptop (Dell Inspiron 1564 Core i5 4GB Ram VGA ATI Mobility Radeon HD 4300 running Ubuntu 10.10 32bit). It shuts down abruptly without even a lag in the application I am working with before shutdown. I think it's overheating problem. Actually the laptop is hot all the time when I am running Ubu...
2010/10/27
[ "https://askubuntu.com/questions/9820", "https://askubuntu.com", "https://askubuntu.com/users/-1/" ]
What kind of GPU do you have? Radeons are known to always run hot. Switching to the proprietary FLGRX driver fixes this. There is an [open bug](https://bugs.launchpad.net/ubuntu/+source/linux/+bug/748080) for this on launchpad.
To lock the CPU to the lowest possible frequencies you can do this: ``` sudo tee /sys/devices/system/cpu/cpu0/cpufreq/scaling_max_freq < /sys/devices/system/cpu/cpu0/cpufreq/cpuinfo_min_freq ``` Or you can choose from the list of available frequencies by doing ``` echo [FERQ] | sudo tee /sys/devices/system/cpu/cpu0...
9,820
I have a problem with my Laptop (Dell Inspiron 1564 Core i5 4GB Ram VGA ATI Mobility Radeon HD 4300 running Ubuntu 10.10 32bit). It shuts down abruptly without even a lag in the application I am working with before shutdown. I think it's overheating problem. Actually the laptop is hot all the time when I am running Ubu...
2010/10/27
[ "https://askubuntu.com/questions/9820", "https://askubuntu.com", "https://askubuntu.com/users/-1/" ]
If you're comfortable with doing it, it could well be worth taking the CPU apart and blowing the dust out of the fan and heatsink area. There are likely to be loads of guides around on the web, but the overall process is documented in the Dell service manual [here](http://support.dell.com/support/edocs/systems/ins1564/...
I had a problem with Ubuntu 10.04 and 10.10 overheating and using all of my cpu and most of my ram. I scanned through these forums but didnt see anything that fit the description of my exact problem so I just started to tinker. I noticed in system monitor that XORG was doing most of the damage. I did a 'stop process' a...
9,820
I have a problem with my Laptop (Dell Inspiron 1564 Core i5 4GB Ram VGA ATI Mobility Radeon HD 4300 running Ubuntu 10.10 32bit). It shuts down abruptly without even a lag in the application I am working with before shutdown. I think it's overheating problem. Actually the laptop is hot all the time when I am running Ubu...
2010/10/27
[ "https://askubuntu.com/questions/9820", "https://askubuntu.com", "https://askubuntu.com/users/-1/" ]
What kind of GPU do you have? Radeons are known to always run hot. Switching to the proprietary FLGRX driver fixes this. There is an [open bug](https://bugs.launchpad.net/ubuntu/+source/linux/+bug/748080) for this on launchpad.
I had a problem with Ubuntu 10.04 and 10.10 overheating and using all of my cpu and most of my ram. I scanned through these forums but didnt see anything that fit the description of my exact problem so I just started to tinker. I noticed in system monitor that XORG was doing most of the damage. I did a 'stop process' a...
15,238,588
Given an array *A* of positive integers, find the maximum number of **contiguous** sections under the condition that the sum of the first section is >= than the sum of the second section, the sum of the second is >= than the sum of the third, and so on. I know dynamic programming is needed. I thought about brute force...
2013/03/06
[ "https://Stackoverflow.com/questions/15238588", "https://Stackoverflow.com", "https://Stackoverflow.com/users/2138293/" ]
A greedy algorithm as suggested in the question would not work. You might think that the last element of the list should indeed be a partition of its own but here is a counter example: [16,15,1,5,7] If you have 7 as one partition you end up with 2 partitions. But 16,15,(1+5+7) is a better solution. I suggest you tak...
I was initially going for a greedy algorithm, but indeed one needs to implement a dynamic one here. Starting from the end seems intuitively easier. The main idea is that for a given step in the recursion, we have an established set of partitions, an ongoing one, and the rest of the sequence. Then, the algorithm must c...
15,238,588
Given an array *A* of positive integers, find the maximum number of **contiguous** sections under the condition that the sum of the first section is >= than the sum of the second section, the sum of the second is >= than the sum of the third, and so on. I know dynamic programming is needed. I thought about brute force...
2013/03/06
[ "https://Stackoverflow.com/questions/15238588", "https://Stackoverflow.com", "https://Stackoverflow.com/users/2138293/" ]
This is an interesting problem. It resembles to the original partition problem except that here the sum of partitions needs to be in an monotonically increasing order. The dynamic programming recurrence relation is given as below: ``` numP[i] = max {numP[i-j] + 1} for those values of j (1<=j<=i) such that sum(A[i-j,i-...
I was initially going for a greedy algorithm, but indeed one needs to implement a dynamic one here. Starting from the end seems intuitively easier. The main idea is that for a given step in the recursion, we have an established set of partitions, an ongoing one, and the rest of the sequence. Then, the algorithm must c...
15,238,588
Given an array *A* of positive integers, find the maximum number of **contiguous** sections under the condition that the sum of the first section is >= than the sum of the second section, the sum of the second is >= than the sum of the third, and so on. I know dynamic programming is needed. I thought about brute force...
2013/03/06
[ "https://Stackoverflow.com/questions/15238588", "https://Stackoverflow.com", "https://Stackoverflow.com/users/2138293/" ]
This is an interesting problem. It resembles to the original partition problem except that here the sum of partitions needs to be in an monotonically increasing order. The dynamic programming recurrence relation is given as below: ``` numP[i] = max {numP[i-j] + 1} for those values of j (1<=j<=i) such that sum(A[i-j,i-...
A greedy algorithm as suggested in the question would not work. You might think that the last element of the list should indeed be a partition of its own but here is a counter example: [16,15,1,5,7] If you have 7 as one partition you end up with 2 partitions. But 16,15,(1+5+7) is a better solution. I suggest you tak...
38,714,033
I have a list of anonymous objects generated by a LINQ query that I do not have access to modify. The objects have the following properties: ``` OrderId, RepId, FirstName, LastName, Address ``` Each "Rep" often places multiple orders, so there are a lot of rows where the only difference is the OrderId. There is a r...
2016/08/02
[ "https://Stackoverflow.com/questions/38714033", "https://Stackoverflow.com", "https://Stackoverflow.com/users/5855968/" ]
As your output have anonymous objects with different schema, that make the thing a little more complicate. Ideally you should design your entity class to use list for orders instead of property like "OrderId1", "OrderId2"... That is not extensible and error prone. But for that specific question, we can combine LINQ a...
First option. ------------- If you want to get 6 OrderId-s as a list, you can create ``` class OrderBundle { public int RepId { get; set; } public List<int> OrderIds { get; set; } } ``` Group your items: ``` var orderBundels = orderList .GroupBy(m => m.RepId) .Select(g => new OrderBundle { ...
62,029,637
How can I change the username, hostname, and path color in iTerm2? I'm using the built-in Solarized colorscheme. In Ubuntu, the same built-in colorscheme is highlighted like: [![enter image description here](https://i.stack.imgur.com/5cElM.png)](https://i.stack.imgur.com/5cElM.png) In iTerm2: [![enter image descripti...
2020/05/26
[ "https://Stackoverflow.com/questions/62029637", "https://Stackoverflow.com", "https://Stackoverflow.com/users/13055097/" ]
Default value of `$PS1`: `%n@%m %1~ %#` Updated value of `$PS1` from [this link](https://stackoverflow.com/a/59939561/13055097) (in the **Prompt Example** section): `%(?.%F{green}.%F{green})%n@%m %1~ %# %f` Added the below in my `.zshrc`: ``` export PS1='%(?.%F{green}.%F{green})%n@%m %1~ %# %f' ``` Edit: The `P...
I think you need to change the colors on your terminal prompt to achieve that, this may be of help <http://www.marinamele.com/2014/05/customize-colors-of-your-terminal-in-mac-os-x.html>
62,029,637
How can I change the username, hostname, and path color in iTerm2? I'm using the built-in Solarized colorscheme. In Ubuntu, the same built-in colorscheme is highlighted like: [![enter image description here](https://i.stack.imgur.com/5cElM.png)](https://i.stack.imgur.com/5cElM.png) In iTerm2: [![enter image descripti...
2020/05/26
[ "https://Stackoverflow.com/questions/62029637", "https://Stackoverflow.com", "https://Stackoverflow.com/users/13055097/" ]
This is what I am using now. Colours for prompt and `ls` command. ``` RED='\033[1;31m' GREEN='\033[1;32m' YELLOW='\033[1;33m' BLUE='\033[1;34m' PURPLE='\033[1;35m' CYAN='\033[1;36m' WHITE='\033[1;37m' RESET='\033[0m' export PS1="$RED\u:$BLUE\w $GREEN\h$RESET$ " export CLICOLOR=1 export LSCOLORS=GxFxCxDxbxegedabagace...
I think you need to change the colors on your terminal prompt to achieve that, this may be of help <http://www.marinamele.com/2014/05/customize-colors-of-your-terminal-in-mac-os-x.html>
62,029,637
How can I change the username, hostname, and path color in iTerm2? I'm using the built-in Solarized colorscheme. In Ubuntu, the same built-in colorscheme is highlighted like: [![enter image description here](https://i.stack.imgur.com/5cElM.png)](https://i.stack.imgur.com/5cElM.png) In iTerm2: [![enter image descripti...
2020/05/26
[ "https://Stackoverflow.com/questions/62029637", "https://Stackoverflow.com", "https://Stackoverflow.com/users/13055097/" ]
Default value of `$PS1`: `%n@%m %1~ %#` Updated value of `$PS1` from [this link](https://stackoverflow.com/a/59939561/13055097) (in the **Prompt Example** section): `%(?.%F{green}.%F{green})%n@%m %1~ %# %f` Added the below in my `.zshrc`: ``` export PS1='%(?.%F{green}.%F{green})%n@%m %1~ %# %f' ``` Edit: The `P...
You should the PS1 environment variable in your bash / zsh profile file. For example, if you're using bash, you could add the following line to ~/.bash\_profile: ``` export PS1='\[\033[36m\]\u\[\033[m\]@\[\033[32m\]\h:\[\033[33;1m\]\w\[\033[m\]\$ ' ``` A more detailed explanation of this env variable can be found ...
62,029,637
How can I change the username, hostname, and path color in iTerm2? I'm using the built-in Solarized colorscheme. In Ubuntu, the same built-in colorscheme is highlighted like: [![enter image description here](https://i.stack.imgur.com/5cElM.png)](https://i.stack.imgur.com/5cElM.png) In iTerm2: [![enter image descripti...
2020/05/26
[ "https://Stackoverflow.com/questions/62029637", "https://Stackoverflow.com", "https://Stackoverflow.com/users/13055097/" ]
This is what I am using now. Colours for prompt and `ls` command. ``` RED='\033[1;31m' GREEN='\033[1;32m' YELLOW='\033[1;33m' BLUE='\033[1;34m' PURPLE='\033[1;35m' CYAN='\033[1;36m' WHITE='\033[1;37m' RESET='\033[0m' export PS1="$RED\u:$BLUE\w $GREEN\h$RESET$ " export CLICOLOR=1 export LSCOLORS=GxFxCxDxbxegedabagace...
You should the PS1 environment variable in your bash / zsh profile file. For example, if you're using bash, you could add the following line to ~/.bash\_profile: ``` export PS1='\[\033[36m\]\u\[\033[m\]@\[\033[32m\]\h:\[\033[33;1m\]\w\[\033[m\]\$ ' ``` A more detailed explanation of this env variable can be found ...
62,029,637
How can I change the username, hostname, and path color in iTerm2? I'm using the built-in Solarized colorscheme. In Ubuntu, the same built-in colorscheme is highlighted like: [![enter image description here](https://i.stack.imgur.com/5cElM.png)](https://i.stack.imgur.com/5cElM.png) In iTerm2: [![enter image descripti...
2020/05/26
[ "https://Stackoverflow.com/questions/62029637", "https://Stackoverflow.com", "https://Stackoverflow.com/users/13055097/" ]
Default value of `$PS1`: `%n@%m %1~ %#` Updated value of `$PS1` from [this link](https://stackoverflow.com/a/59939561/13055097) (in the **Prompt Example** section): `%(?.%F{green}.%F{green})%n@%m %1~ %# %f` Added the below in my `.zshrc`: ``` export PS1='%(?.%F{green}.%F{green})%n@%m %1~ %# %f' ``` Edit: The `P...
This is what I am using now. Colours for prompt and `ls` command. ``` RED='\033[1;31m' GREEN='\033[1;32m' YELLOW='\033[1;33m' BLUE='\033[1;34m' PURPLE='\033[1;35m' CYAN='\033[1;36m' WHITE='\033[1;37m' RESET='\033[0m' export PS1="$RED\u:$BLUE\w $GREEN\h$RESET$ " export CLICOLOR=1 export LSCOLORS=GxFxCxDxbxegedabagace...
30,951,980
I have a DrawerLayout with a Coordinator layout hosted as the main content. When I create a SnackBar with the Snackbar.make method, the FAB hosted in the Coordinator layout refuses to animate. I find this odd, because I've used the same FAB in Coordinator layouts that aren't wrapped in a DrawerLayout and it animates ...
2015/06/20
[ "https://Stackoverflow.com/questions/30951980", "https://Stackoverflow.com", "https://Stackoverflow.com/users/3681727/" ]
Make sure you are passing the right view to the `Snackbar.make()` method. As per the docs, > > Snackbar will try and find a parent view to hold Snackbar's view from the value given to view. Snackbar will walk up the view tree trying to find a suitable parent, which is defined as a CoordinatorLayout or the window deco...
I found the solution. You apparently must move to the Navigation view widget in the new design library. Moving to this and keeping all else constant, the FAB animates again. For implementation see [The official blog post for the support libary](http://android-developers.blogspot.com/2015/05/android-design-support-libr...
22,162,596
Currently I manage to get the direction degrees using below code: ``` d = Math.Atan2(Math.Sin(long2 - long1) * Math.Cos(lat2), _ Math.Cos(lat1) * Math.Sin(lat2) - Math.Sin(lat1) * Math.Cos(lat2) * Math.Cos(long2 - long1)) Dim direction As Double = (RadToDeg(d) + 360.0) Mod 360 ``` which, in my case let say I go...
2014/03/04
[ "https://Stackoverflow.com/questions/22162596", "https://Stackoverflow.com", "https://Stackoverflow.com/users/3152527/" ]
If I am reading your question correct, it sounds like you are trying to determine a heading when your position is fixed and you are only rotating the device. Unfortunately, what you are looking for is not possible with GPS. Both the formula you are using and the `GetPosition.Heading` is a calculated heading based on ...
*"how to know gps device point at which direction?"* by using [GPS Intermediate Driver](http://msdn.microsoft.com/en-us/library/ee485782.aspx), `GetPosition.Heading` will give you the current direction you are heading. As stated in the [GPS\_POSITION documentation](http://msdn.microsoft.com/en-us/library/ee484992.asp...
22,162,596
Currently I manage to get the direction degrees using below code: ``` d = Math.Atan2(Math.Sin(long2 - long1) * Math.Cos(lat2), _ Math.Cos(lat1) * Math.Sin(lat2) - Math.Sin(lat1) * Math.Cos(lat2) * Math.Cos(long2 - long1)) Dim direction As Double = (RadToDeg(d) + 360.0) Mod 360 ``` which, in my case let say I go...
2014/03/04
[ "https://Stackoverflow.com/questions/22162596", "https://Stackoverflow.com", "https://Stackoverflow.com/users/3152527/" ]
The Honeywell Dolphin 6000 [documentation](http://www.honeywellaidc.com/CatalogDocuments/Dolphin6000_DS_EN.pdf) doesn't mention a magnetometer or compass, so you're probably SOL. But, if it does have one, then you should be able to find methods to access it in the [SDK](http://www.honeywellaidc.com/en-US/Pages/Product....
*"how to know gps device point at which direction?"* by using [GPS Intermediate Driver](http://msdn.microsoft.com/en-us/library/ee485782.aspx), `GetPosition.Heading` will give you the current direction you are heading. As stated in the [GPS\_POSITION documentation](http://msdn.microsoft.com/en-us/library/ee484992.asp...
22,162,596
Currently I manage to get the direction degrees using below code: ``` d = Math.Atan2(Math.Sin(long2 - long1) * Math.Cos(lat2), _ Math.Cos(lat1) * Math.Sin(lat2) - Math.Sin(lat1) * Math.Cos(lat2) * Math.Cos(long2 - long1)) Dim direction As Double = (RadToDeg(d) + 360.0) Mod 360 ``` which, in my case let say I go...
2014/03/04
[ "https://Stackoverflow.com/questions/22162596", "https://Stackoverflow.com", "https://Stackoverflow.com/users/3152527/" ]
If I am reading your question correct, it sounds like you are trying to determine a heading when your position is fixed and you are only rotating the device. Unfortunately, what you are looking for is not possible with GPS. Both the formula you are using and the `GetPosition.Heading` is a calculated heading based on ...
You must distinguish between the direction you are moving, that is called bearing or course. And the direction you are looking or holding your device. (Think of you sitting in a bus that drives north (course = 0°), where you make a photo in direction west. heading = 270°) A (consumer-) GPS receiver always returns only...
22,162,596
Currently I manage to get the direction degrees using below code: ``` d = Math.Atan2(Math.Sin(long2 - long1) * Math.Cos(lat2), _ Math.Cos(lat1) * Math.Sin(lat2) - Math.Sin(lat1) * Math.Cos(lat2) * Math.Cos(long2 - long1)) Dim direction As Double = (RadToDeg(d) + 360.0) Mod 360 ``` which, in my case let say I go...
2014/03/04
[ "https://Stackoverflow.com/questions/22162596", "https://Stackoverflow.com", "https://Stackoverflow.com/users/3152527/" ]
The Honeywell Dolphin 6000 [documentation](http://www.honeywellaidc.com/CatalogDocuments/Dolphin6000_DS_EN.pdf) doesn't mention a magnetometer or compass, so you're probably SOL. But, if it does have one, then you should be able to find methods to access it in the [SDK](http://www.honeywellaidc.com/en-US/Pages/Product....
If I am reading your question correct, it sounds like you are trying to determine a heading when your position is fixed and you are only rotating the device. Unfortunately, what you are looking for is not possible with GPS. Both the formula you are using and the `GetPosition.Heading` is a calculated heading based on ...
22,162,596
Currently I manage to get the direction degrees using below code: ``` d = Math.Atan2(Math.Sin(long2 - long1) * Math.Cos(lat2), _ Math.Cos(lat1) * Math.Sin(lat2) - Math.Sin(lat1) * Math.Cos(lat2) * Math.Cos(long2 - long1)) Dim direction As Double = (RadToDeg(d) + 360.0) Mod 360 ``` which, in my case let say I go...
2014/03/04
[ "https://Stackoverflow.com/questions/22162596", "https://Stackoverflow.com", "https://Stackoverflow.com/users/3152527/" ]
The Honeywell Dolphin 6000 [documentation](http://www.honeywellaidc.com/CatalogDocuments/Dolphin6000_DS_EN.pdf) doesn't mention a magnetometer or compass, so you're probably SOL. But, if it does have one, then you should be able to find methods to access it in the [SDK](http://www.honeywellaidc.com/en-US/Pages/Product....
You must distinguish between the direction you are moving, that is called bearing or course. And the direction you are looking or holding your device. (Think of you sitting in a bus that drives north (course = 0°), where you make a photo in direction west. heading = 270°) A (consumer-) GPS receiver always returns only...
52,136,360
In the js-data library, I have added a custom query with the `addAction()` method as shown [here](https://www.js-data.io/docs/reading-data). Now when my server returns a 4xx error code upon calling that custom action, an error is thrown but the server response (which is send) is nowhere to be found: ``` store.getMappe...
2018/09/02
[ "https://Stackoverflow.com/questions/52136360", "https://Stackoverflow.com", "https://Stackoverflow.com/users/3071369/" ]
The `then` function can take two parameters: ```js then( onSuccess: Function, onRejection: Function ) ``` So here is how you can handle the rejection due to the 4xx error: ```js store.getMapper('school').getTeacherReports(1234, { basePath: 'reports' }).then( function (response) { // on success console.l...
This has to do with axios: The rejected error object indeed has the response as a property ([source code](https://github.com/axios/axios/blob/503418718f669fcc674719fd862b355605d7b41f/lib/core/settle.js)) but it doesn't appear as such in console outputs because error objects are shown differently in the console. The fol...
42,984,499
I'm Unable to submit the form within the same page and getting result in the same page.
2017/03/23
[ "https://Stackoverflow.com/questions/42984499", "https://Stackoverflow.com", "https://Stackoverflow.com/users/7758697/" ]
Put in the action of the your form the current URL. `action="<?php echo current_url();?>"`
You probably need ``` redirect('controllerName') ``` So once you send data from the form to the controller, that controller does the processing and then redirects back to the index().
42,984,499
I'm Unable to submit the form within the same page and getting result in the same page.
2017/03/23
[ "https://Stackoverflow.com/questions/42984499", "https://Stackoverflow.com", "https://Stackoverflow.com/users/7758697/" ]
Put in the action of the your form the current URL. `action="<?php echo current_url();?>"`
Use Ajax and Javascript to submit form without changing the url.
339,870
I was going through the datasheet of ADV7125 DAC and found this sentence confusing. **For optimum performance, the analog outputs should each have a source termination resistance to ground of 75 Ω (doubly terminated 75 Ω configuration). This termination resistance should be as close as possible to the ADV7125 to mini...
2017/11/14
[ "https://electronics.stackexchange.com/questions/339870", "https://electronics.stackexchange.com", "https://electronics.stackexchange.com/users/166884/" ]
> > since the cable impedance is 75 ohms, and the load is also 75 impedance at the end of the cable, is n't the cable already devoid of reflections ? > > > Nobody's perfect. The cable geometry won't be exactly perfect, so its characteristic impedance won't be exactly 75 ohms. It might be 73 or 78 ohms, for exampl...
Double termination ensures any reflections from the far end, and any capacitance at the far end will cause reflections back to the DAC output pin, are mostly absorbed at the DAC. Thus double-termination improves settling.
339,870
I was going through the datasheet of ADV7125 DAC and found this sentence confusing. **For optimum performance, the analog outputs should each have a source termination resistance to ground of 75 Ω (doubly terminated 75 Ω configuration). This termination resistance should be as close as possible to the ADV7125 to mini...
2017/11/14
[ "https://electronics.stackexchange.com/questions/339870", "https://electronics.stackexchange.com", "https://electronics.stackexchange.com/users/166884/" ]
Double termination ensures any reflections from the far end, and any capacitance at the far end will cause reflections back to the DAC output pin, are mostly absorbed at the DAC. Thus double-termination improves settling.
The DAC outputs are current sources, so the voltage levels that come out of them are dependent on the load. This allows you to choose between different standards with different signal levels specified into 75 Ohm loads by choosing the appropriate load resistor in parallel with the cable. Read further in the datasheet: ...
339,870
I was going through the datasheet of ADV7125 DAC and found this sentence confusing. **For optimum performance, the analog outputs should each have a source termination resistance to ground of 75 Ω (doubly terminated 75 Ω configuration). This termination resistance should be as close as possible to the ADV7125 to mini...
2017/11/14
[ "https://electronics.stackexchange.com/questions/339870", "https://electronics.stackexchange.com", "https://electronics.stackexchange.com/users/166884/" ]
> > since the cable impedance is 75 ohms, and the load is also 75 impedance at the end of the cable, is n't the cable already devoid of reflections ? > > > Nobody's perfect. The cable geometry won't be exactly perfect, so its characteristic impedance won't be exactly 75 ohms. It might be 73 or 78 ohms, for exampl...
The DAC outputs are current sources, so the voltage levels that come out of them are dependent on the load. This allows you to choose between different standards with different signal levels specified into 75 Ohm loads by choosing the appropriate load resistor in parallel with the cable. Read further in the datasheet: ...
2,744,282
We are using Microsoft Unity and dependency injection and so we have parametrised constructor for the usercontrol. How to inject this dependency into usercontrol using XAML? I have added the usercontrol in XAML as below. ``` xmlns:usrRefundArrivalProcessor="Ttl.Refunds.Wpf.Dashboad.Application.Usercontrols;assembly=T...
2010/04/30
[ "https://Stackoverflow.com/questions/2744282", "https://Stackoverflow.com", "https://Stackoverflow.com/users/55891/" ]
Dependency injection does not imply parameterized constructors. In fact, if you look at the samples that come with Unity, most of the dependency injection is done by properties with the [Dependency] attribute. Unity works very well with XAML, but only if you don't use parameterized constructors. Convert your UserContr...
Seems rather easy. Why don't you simply add "a public parameterless constructor" to your `UserControl`? You may choose not to use it in your code directly but that is what the Designer is looking for. If you want to make sure it is never called in code, put [a check for presence of Designer](http://alanle.com/2009/02/1...
2,744,282
We are using Microsoft Unity and dependency injection and so we have parametrised constructor for the usercontrol. How to inject this dependency into usercontrol using XAML? I have added the usercontrol in XAML as below. ``` xmlns:usrRefundArrivalProcessor="Ttl.Refunds.Wpf.Dashboad.Application.Usercontrols;assembly=T...
2010/04/30
[ "https://Stackoverflow.com/questions/2744282", "https://Stackoverflow.com", "https://Stackoverflow.com/users/55891/" ]
Dependency injection does not imply parameterized constructors. In fact, if you look at the samples that come with Unity, most of the dependency injection is done by properties with the [Dependency] attribute. Unity works very well with XAML, but only if you don't use parameterized constructors. Convert your UserContr...
It works, but performance are quite bad when you use grids or complex WPF screens. Inherits = true implies that all the GUI elements created will have the PropertyChangedCallback of the attached property called just after constructor, even if that specific GUI element doesn't need Unity at all. And when you have grids,...
37,381,764
I have file `submission.xhtml` with code snippet: ``` <p:outputLabel for="cbFilterPlanYear" value="Choose time period"/> <p:outputPanel> <p:selectOneMenu id="cbFilterPlanMonth" value="#{SubmissionController.miFilterMonth}" style="width: 50%"> <f:selectItem itemLabel="#{null}" itemValue="#{null}" /> ...
2016/05/23
[ "https://Stackoverflow.com/questions/37381764", "https://Stackoverflow.com", "https://Stackoverflow.com/users/3728901/" ]
I think you could put just an empty string on your f:selectItem instead of `itemLabel="#{null}" itemValue="#{null}"` and add the attribute `noSelectionOption="true"` ``` <f:selectItem itemLabel="" itemValue="" noSelectionOption="true" /> ``` Example [here](http://www.primefaces.org/showcase/ui/ajax/dropdown.xhtml) ...
you can do like that :`<f:selectItem itemValue="#{null}" itemLabel="" />`
41,567,911
I'm currently working on an SVG map, with a drop down menu where you can select a country and it highlights the country on the map. how do I get the active class applied on a specific polygon once a country is selected from the options? **Code** ``` <select id="countries" data-placeholder="Select a country"> ...
2017/01/10
[ "https://Stackoverflow.com/questions/41567911", "https://Stackoverflow.com", "https://Stackoverflow.com/users/7394822/" ]
Try with a sample data:use `label` and `value` as keys instead of `LNAME` and `id`. Use `event.preventDefault();` to set the `label in #tag` field otherwise by `default it will set the value`. ```js var data = [ { value: "1", label: "jQuery" }, { value:...
Try this: ``` $( function() { var projects = [ { value: "1", label: "jQuery" }, { value: "2", label: "jQuery UI" }, { value: "3", label: "Sizzle JS" } ]; $( "#project" ).autocomplete({ ...
558,793
I’m currently trying to find the word one would describe a person that does not follow the governmental structure and laws of their country. My example is the views some native maori people of NZ have towards the crown, they do not conform to the crowns forced power as it is not British land but that of the traditiona...
2021/01/28
[ "https://english.stackexchange.com/questions/558793", "https://english.stackexchange.com", "https://english.stackexchange.com/users/412885/" ]
**divergent effects** > > **divergent** > > Moving or extending in different directions from a common point: diverging from each other > > > *divergent paths* [m-w](https://www.merriam-webster.com/dictionary/divergent) > > > --- > > Ketamine injection, however, in Group A had a significant **reduction** in...
A name for an effect of a drug or treatment that is opposite the usual one is a *paradoxical reaction* or *paradoxical effect*. [See Wikipedia.](https://en.wikipedia.org/wiki/Paradoxical_reaction) If there's no "usual effect", you could call the two opposite effects *paradoxical effects.*
10,081,479
Is there any way for `R` to solve for the inverse of a given single variable function? The motivation is for me to later tell `R` to use a vector of values as inputs of the inverse function so that it can spit out the inverse function values. For instance, I have the function `y(x) = x^2`, the inverse is `y = sqrt(x)`...
2012/04/10
[ "https://Stackoverflow.com/questions/10081479", "https://Stackoverflow.com", "https://Stackoverflow.com/users/1322919/" ]
What kind of inverse are you finding? If you're looking for a symbolic inverse (e.g., a function y that is identically equal to sqrt(x)) you're going to have to use a symbolic system. Look at [ryacas](http://code.google.com/p/ryacas/) for an R library to connect with a computer algebra system that can likely compute in...
I cannot comment as my reputation is too low. I am a newbie to R, and it took me a while to understand Mike's code as I was not used to the way functions are defined in his answer. Below is Mike's code in a longer, but (to me) easier readable notation: ``` inverse <- function(f, lower, upper){ function(y){ uniro...
37,894,456
How to use variable in xpath in selenium webdriver using java ?? Here is my lines of code: ``` for(int row =1; row<=20; row++) { driver.findElement(By.xpath(“//*[text()=’PickReuest’]/table/tbody/tr[+row+]/td[2]”)).click(); } ``` But I am getting error as invalid xpath. Please help me how to resolve this...
2016/06/18
[ "https://Stackoverflow.com/questions/37894456", "https://Stackoverflow.com", "https://Stackoverflow.com/users/6482172/" ]
The xpath expression string should probably be ``` "//*[text()='PickReuest']/table/tbody/tr[" + row + "]/td[2]" ``` also check if `PickReuest` is what you want.
Also, you can use String.format(); ``` for(int row =1; row<=20; row++) { driver.findElement(By.xpath(String.format("//*[text()='PickReuest']/table/tbody/tr[%s]/td[2]", row))).click(); } ``` This way is better if you store your x-path as a constants.
37,894,456
How to use variable in xpath in selenium webdriver using java ?? Here is my lines of code: ``` for(int row =1; row<=20; row++) { driver.findElement(By.xpath(“//*[text()=’PickReuest’]/table/tbody/tr[+row+]/td[2]”)).click(); } ``` But I am getting error as invalid xpath. Please help me how to resolve this...
2016/06/18
[ "https://Stackoverflow.com/questions/37894456", "https://Stackoverflow.com", "https://Stackoverflow.com/users/6482172/" ]
The xpath expression string should probably be ``` "//*[text()='PickReuest']/table/tbody/tr[" + row + "]/td[2]" ``` also check if `PickReuest` is what you want.
```java String newUser = "Cullen Sipes"; WebElement findthePatient = driver.findElement( By.xpath("//div[@class='d-flex flex-column' and contains(text(),'" +newUser +"')]" )); ``` Trying to click on Cullen Sipes in a div class and it's a dynamic name
16,091,094
I am trying to make changes to the C# codebehind for an asp.net file. After compiling and publishing it in Visual Studio, none of the changes in aspx.cs appear, while changes to the aspx file do. I have also deleted the contents of the Temporary ASP.NET Files folder to no effect. Is there something I am missing that p...
2013/04/18
[ "https://Stackoverflow.com/questions/16091094", "https://Stackoverflow.com", "https://Stackoverflow.com/users/2271126/" ]
What ended up fixing the issue was deleting the dll assembled by Visual Studio from the project bin folder. I had assumed Visual Studio removed it when running Clean Solution, but it appears it does not. I verified the name of the assembled dll by going to Project Properties > Application and then checking the Assembly...
I encountered similar issues a couple of times. Try the following solution: 1. Close Visual Studio 2012. 2. Clear the c:\Users[your\_user]\AppData\Roaming\Microsoft\VisualStudio\11.0\ReflectedSchemas\ folder. 3. Reopen your application.
13,196,045
I am experiencing something a bit weird when using git. I am using git on my Windows 7 machine. I wanted to review some code changes, so I fired up gitk to check what was in the commit I wanted to review. In my list of changed files i highlight the first file and can see the diff to the left of that. But I have Beyond...
2012/11/02
[ "https://Stackoverflow.com/questions/13196045", "https://Stackoverflow.com", "https://Stackoverflow.com/users/1794286/" ]
I don't know Beyond Compare that well, but I'll give it a try : When you run the external diff the first time, it launches BC. The second time, it launches a new BC process, which find the previous one, so it sends a message to the first instance, then quits. When you click on external diff in gitk, it creates temp f...
gracchus's answer was spot on and helped me to solve my problem. In Beyond Compare's case, users should use `BComp.exe` in gitk instead of the `BCompare.exe` (which I was using). BComp.exe: > > This is a Win32 GUI program. If launched from a version control system, it should work just fine. If launched from a conso...
13,196,045
I am experiencing something a bit weird when using git. I am using git on my Windows 7 machine. I wanted to review some code changes, so I fired up gitk to check what was in the commit I wanted to review. In my list of changed files i highlight the first file and can see the diff to the left of that. But I have Beyond...
2012/11/02
[ "https://Stackoverflow.com/questions/13196045", "https://Stackoverflow.com", "https://Stackoverflow.com/users/1794286/" ]
I don't know Beyond Compare that well, but I'll give it a try : When you run the external diff the first time, it launches BC. The second time, it launches a new BC process, which find the previous one, so it sends a message to the first instance, then quits. When you click on external diff in gitk, it creates temp f...
I use gitk + WinMerge and have encountered the same problem. I avoid this error by closing all instances of WinMerge before call the `External diff` command or changing the WinMerge settings: ``` Options > General > Uncheck the "Allow only one instance to run" checkbox. ```
13,196,045
I am experiencing something a bit weird when using git. I am using git on my Windows 7 machine. I wanted to review some code changes, so I fired up gitk to check what was in the commit I wanted to review. In my list of changed files i highlight the first file and can see the diff to the left of that. But I have Beyond...
2012/11/02
[ "https://Stackoverflow.com/questions/13196045", "https://Stackoverflow.com", "https://Stackoverflow.com/users/1794286/" ]
gracchus's answer was spot on and helped me to solve my problem. In Beyond Compare's case, users should use `BComp.exe` in gitk instead of the `BCompare.exe` (which I was using). BComp.exe: > > This is a Win32 GUI program. If launched from a version control system, it should work just fine. If launched from a conso...
I use gitk + WinMerge and have encountered the same problem. I avoid this error by closing all instances of WinMerge before call the `External diff` command or changing the WinMerge settings: ``` Options > General > Uncheck the "Allow only one instance to run" checkbox. ```
49,167
Should a separate section list all retracted articles? Should just a note (---retracted) suffice? Is a short explanation expected (retracted for fabrication, plagiarism)? Should one give a longer explanation (retracted due to Joe's work, my supervisor, who is a fraud. He is the rat, not me.). Or should the retrac...
2015/07/21
[ "https://academia.stackexchange.com/questions/49167", "https://academia.stackexchange.com", "https://academia.stackexchange.com/users/8970/" ]
In a [poll on Retraction Watch](http://retractionwatch.com/2011/01/26/how-should-authors-mark-retracted-papers-on-their-cvs-compare-a-chronic-lyme-doctor-with-one-from-the-mayo/) asking "Should retracted papers show up on a CV?," the majority of respondents said "They should be listed as retracted": ![image of poll re...
I do not think that a retracted article can be treated the same way as a never-published article and simply not listed, because the article still appears in the literature ([and may even attract citations](http://retractionwatch.com/2015/02/18/evidence-scientists-continue-cite-retracted-papers/)), just with a "retracte...
115,613
If we look at a finite dimensional vector space over a field $F$ as a noetherian $F$-module, we can view the dimension of the vector space as the length of the maximal ascending chain of subspaces. A chain being a sequence of subspaces which contain each other, without multiplicity, e.g., $V\_1 \subsetneq V\_2 \subsetn...
2012/03/02
[ "https://math.stackexchange.com/questions/115613", "https://math.stackexchange.com", "https://math.stackexchange.com/users/19536/" ]
This does not extend to $R$-modules. For example, consider $\mathbb Z$ as a $\mathbb Z$-module, in which we have arbitrarily large chains of submodules of the form $(2^n)\subset (2^{n-1})\subset\cdots \subset (2)\subset \mathbb Z$. More generally, we have arbitrarily large chains for any non-Artinian $R$-module, and so...
Consider the polynomial ring $k[x]$. This ring is clearly noetherian. For every natural number $n$ there is a chain of ideals $$(x^n)\subset (x^{n-1})\subset\ldots\subset (x)\subset k[x]$$ of length $n+1$.
4,445,806
Simplify $$\dfrac{1+\sin\alpha-2\sin^2\left(45^\circ-\dfrac{\alpha}{2}\right)}{4\cos\dfrac{\alpha}{2}}$$ I am reading the solution of the authors and I really don't see how $$\dfrac{1+\sin\alpha-2\sin^2\left(45^\circ-\dfrac{\alpha}{2}\right)}{4\cos\dfrac{\alpha}{2}}=\dfrac{1+\sin\alpha-(1-\cos(90^\circ-\alpha))}{4\cos...
2022/05/08
[ "https://math.stackexchange.com/questions/4445806", "https://math.stackexchange.com", "https://math.stackexchange.com/users/1022167/" ]
We start from the classical formula $$\cos(a+b)=$$ $$\cos(a)\cos(b)-\sin(a)\sin(b)$$ which gives $$\cos(2a)=\cos^2(a)-\sin^2(a)$$ $$=1-2\sin^2(a)$$ or $$2\sin^2(a)=1-\cos(2a)$$ thus $$2\sin^2(45-\frac{\alpha}{2})=$$ $$1-\cos(90-\alpha)=1-\sin(\alpha)$$ your expression becomes $$\frac{1+\sin(\alpha)-(1-\sin(\alp...
Only one thing changes, namely: $2\sin(45^\circ - a/2)^2 \rightarrow 1-\cos(90^\circ - a).$ So recall the double angle formula: $\cos(2\theta) = 1 - 2\sin(\theta)^2$ Then by rearrangement $2\sin(\theta)^2 = 1 - \cos(2\theta)$. Let $\theta = 45^\circ - a/2$, then $2\sin(45^\circ - a/2)^2 = 1-\cos(2\cdot (45^\circ - a...
17,441
I am looking for an online site/program where I could refresh my french especially the french related to the hotel reception... Do you maybe know such a site/program?
2016/01/20
[ "https://french.stackexchange.com/questions/17441", "https://french.stackexchange.com", "https://french.stackexchange.com/users/5168/" ]
Here you can do exercises to understand french language in an hotel situation : [www.bonjourdefrance.com](http://www.bonjourdefrance.com/exercices/contenu/le-francais-du-tourisme.html)
Duolingo is a pretty good site to learn a new language (not only french). <https://www.duolingo.com/> There is a mobile app too, so you can practise everywhere. It is not specialized for hotel trade though.
17,441
I am looking for an online site/program where I could refresh my french especially the french related to the hotel reception... Do you maybe know such a site/program?
2016/01/20
[ "https://french.stackexchange.com/questions/17441", "https://french.stackexchange.com", "https://french.stackexchange.com/users/5168/" ]
[Babbel](https://fr.babbel.com/) (website and app) can also help you. [Babbel](https://fr.babbel.com/) (site web et application) peut aussi t'aider.
Duolingo is a pretty good site to learn a new language (not only french). <https://www.duolingo.com/> There is a mobile app too, so you can practise everywhere. It is not specialized for hotel trade though.
69,014,546
The notification sound using Flutter Local Notification for Android not working at all here is the code ``` const NotificationDetails( android: AndroidNotificationDetails( 'daily notification channel id', 'daily notification channel name', 'daily notification description',...
2021/09/01
[ "https://Stackoverflow.com/questions/69014546", "https://Stackoverflow.com", "https://Stackoverflow.com/users/13691187/" ]
I've had a problem like yours before, but it's finished by applying the code below ``` class AddTaskScreen extends StatefulWidget { static String id = 'AddTaskScreen'; @override _AddTaskScreenState createState() => _AddTaskScreenState(); } class _AddTaskScreenState extends State<AddTaskScreen> { final taskCo...
add this code in Manifest.xml ``` <receiver android:name="com.dexterous.flutterlocalnotifications.ScheduledNotificationReceiver" /> .... </application> ```
69,014,546
The notification sound using Flutter Local Notification for Android not working at all here is the code ``` const NotificationDetails( android: AndroidNotificationDetails( 'daily notification channel id', 'daily notification channel name', 'daily notification description',...
2021/09/01
[ "https://Stackoverflow.com/questions/69014546", "https://Stackoverflow.com", "https://Stackoverflow.com/users/13691187/" ]
My problem was that I was testing the app on Xiaomi and I realized that Xiaomi has some problems and it by default doesn't allow notification sound. Somehow it didn't work on the emulator too, but by testing it on other physical devices it worked.
add this code in Manifest.xml ``` <receiver android:name="com.dexterous.flutterlocalnotifications.ScheduledNotificationReceiver" /> .... </application> ```
69,014,546
The notification sound using Flutter Local Notification for Android not working at all here is the code ``` const NotificationDetails( android: AndroidNotificationDetails( 'daily notification channel id', 'daily notification channel name', 'daily notification description',...
2021/09/01
[ "https://Stackoverflow.com/questions/69014546", "https://Stackoverflow.com", "https://Stackoverflow.com/users/13691187/" ]
you can play asset sound, This worked 100% in my case The property below: sound: const UriAndroidNotificationSound("assets/tunes/pop.mp3"), ``` await flutterLocalNotificationsPlugin.schedule( id, "notification", 'Notification Alert', dateTime, NotificationDetails( android: AndroidNotificati...
add this code in Manifest.xml ``` <receiver android:name="com.dexterous.flutterlocalnotifications.ScheduledNotificationReceiver" /> .... </application> ```
69,014,546
The notification sound using Flutter Local Notification for Android not working at all here is the code ``` const NotificationDetails( android: AndroidNotificationDetails( 'daily notification channel id', 'daily notification channel name', 'daily notification description',...
2021/09/01
[ "https://Stackoverflow.com/questions/69014546", "https://Stackoverflow.com", "https://Stackoverflow.com/users/13691187/" ]
For Android 8.0+, sounds and vibrations are associated with notification channels and can only be configured when they are first created. Showing/scheduling a notification will create a channel with the specified id if it doesn't exist already. If another notification specifies the same channel id but tries to specify ...
add this code in Manifest.xml ``` <receiver android:name="com.dexterous.flutterlocalnotifications.ScheduledNotificationReceiver" /> .... </application> ```
69,014,546
The notification sound using Flutter Local Notification for Android not working at all here is the code ``` const NotificationDetails( android: AndroidNotificationDetails( 'daily notification channel id', 'daily notification channel name', 'daily notification description',...
2021/09/01
[ "https://Stackoverflow.com/questions/69014546", "https://Stackoverflow.com", "https://Stackoverflow.com/users/13691187/" ]
My problem was that I was testing the app on Xiaomi and I realized that Xiaomi has some problems and it by default doesn't allow notification sound. Somehow it didn't work on the emulator too, but by testing it on other physical devices it worked.
I've had a problem like yours before, but it's finished by applying the code below ``` class AddTaskScreen extends StatefulWidget { static String id = 'AddTaskScreen'; @override _AddTaskScreenState createState() => _AddTaskScreenState(); } class _AddTaskScreenState extends State<AddTaskScreen> { final taskCo...
69,014,546
The notification sound using Flutter Local Notification for Android not working at all here is the code ``` const NotificationDetails( android: AndroidNotificationDetails( 'daily notification channel id', 'daily notification channel name', 'daily notification description',...
2021/09/01
[ "https://Stackoverflow.com/questions/69014546", "https://Stackoverflow.com", "https://Stackoverflow.com/users/13691187/" ]
you can play asset sound, This worked 100% in my case The property below: sound: const UriAndroidNotificationSound("assets/tunes/pop.mp3"), ``` await flutterLocalNotificationsPlugin.schedule( id, "notification", 'Notification Alert', dateTime, NotificationDetails( android: AndroidNotificati...
I've had a problem like yours before, but it's finished by applying the code below ``` class AddTaskScreen extends StatefulWidget { static String id = 'AddTaskScreen'; @override _AddTaskScreenState createState() => _AddTaskScreenState(); } class _AddTaskScreenState extends State<AddTaskScreen> { final taskCo...
69,014,546
The notification sound using Flutter Local Notification for Android not working at all here is the code ``` const NotificationDetails( android: AndroidNotificationDetails( 'daily notification channel id', 'daily notification channel name', 'daily notification description',...
2021/09/01
[ "https://Stackoverflow.com/questions/69014546", "https://Stackoverflow.com", "https://Stackoverflow.com/users/13691187/" ]
For Android 8.0+, sounds and vibrations are associated with notification channels and can only be configured when they are first created. Showing/scheduling a notification will create a channel with the specified id if it doesn't exist already. If another notification specifies the same channel id but tries to specify ...
I've had a problem like yours before, but it's finished by applying the code below ``` class AddTaskScreen extends StatefulWidget { static String id = 'AddTaskScreen'; @override _AddTaskScreenState createState() => _AddTaskScreenState(); } class _AddTaskScreenState extends State<AddTaskScreen> { final taskCo...
69,014,546
The notification sound using Flutter Local Notification for Android not working at all here is the code ``` const NotificationDetails( android: AndroidNotificationDetails( 'daily notification channel id', 'daily notification channel name', 'daily notification description',...
2021/09/01
[ "https://Stackoverflow.com/questions/69014546", "https://Stackoverflow.com", "https://Stackoverflow.com/users/13691187/" ]
My problem was that I was testing the app on Xiaomi and I realized that Xiaomi has some problems and it by default doesn't allow notification sound. Somehow it didn't work on the emulator too, but by testing it on other physical devices it worked.
you can play asset sound, This worked 100% in my case The property below: sound: const UriAndroidNotificationSound("assets/tunes/pop.mp3"), ``` await flutterLocalNotificationsPlugin.schedule( id, "notification", 'Notification Alert', dateTime, NotificationDetails( android: AndroidNotificati...
69,014,546
The notification sound using Flutter Local Notification for Android not working at all here is the code ``` const NotificationDetails( android: AndroidNotificationDetails( 'daily notification channel id', 'daily notification channel name', 'daily notification description',...
2021/09/01
[ "https://Stackoverflow.com/questions/69014546", "https://Stackoverflow.com", "https://Stackoverflow.com/users/13691187/" ]
My problem was that I was testing the app on Xiaomi and I realized that Xiaomi has some problems and it by default doesn't allow notification sound. Somehow it didn't work on the emulator too, but by testing it on other physical devices it worked.
For Android 8.0+, sounds and vibrations are associated with notification channels and can only be configured when they are first created. Showing/scheduling a notification will create a channel with the specified id if it doesn't exist already. If another notification specifies the same channel id but tries to specify ...
52,455,652
I have upgraded to `Xcode 10` on `High Sierra` and now the [Rewarded Ad example project](https://github.com/googleads/googleads-mobile-ios-examples/tree/master/Swift/admob/RewardedVideoExample) from AdMob complains that `com.apple.commcenter.coretelephony.xpc` is not working correctly. Is there a new entitlement that ...
2018/09/22
[ "https://Stackoverflow.com/questions/52455652", "https://Stackoverflow.com", "https://Stackoverflow.com/users/92153/" ]
Well it's working on both the simulator and device in Xcode 10.2. 1. Add CoreTelephony.framework (Optional) 2. Executing the following command in Terminal: ``` xcrun simctl spawn booted log config --mode "level:off" --subsystem com.apple.CoreTelephony ``` 3. From the Xcode menu open: Product > Scheme > Edit Scheme ...
For people facing this issue when building on real devices, turning on the wifi on the device fixed the problem. This seems to trigger when cellular is being used in stead of wifi.
52,455,652
I have upgraded to `Xcode 10` on `High Sierra` and now the [Rewarded Ad example project](https://github.com/googleads/googleads-mobile-ios-examples/tree/master/Swift/admob/RewardedVideoExample) from AdMob complains that `com.apple.commcenter.coretelephony.xpc` is not working correctly. Is there a new entitlement that ...
2018/09/22
[ "https://Stackoverflow.com/questions/52455652", "https://Stackoverflow.com", "https://Stackoverflow.com/users/92153/" ]
Well it's working on both the simulator and device in Xcode 10.2. 1. Add CoreTelephony.framework (Optional) 2. Executing the following command in Terminal: ``` xcrun simctl spawn booted log config --mode "level:off" --subsystem com.apple.CoreTelephony ``` 3. From the Xcode menu open: Product > Scheme > Edit Scheme ...
For those who are experiencing this issue in real devices, linking CoreTelephony.framework to the project fixes the problem. It does not fix it for the simulator, though.
52,455,652
I have upgraded to `Xcode 10` on `High Sierra` and now the [Rewarded Ad example project](https://github.com/googleads/googleads-mobile-ios-examples/tree/master/Swift/admob/RewardedVideoExample) from AdMob complains that `com.apple.commcenter.coretelephony.xpc` is not working correctly. Is there a new entitlement that ...
2018/09/22
[ "https://Stackoverflow.com/questions/52455652", "https://Stackoverflow.com", "https://Stackoverflow.com/users/92153/" ]
I found a workaround restarting the simulator.
For people facing this issue when building on real devices, turning on the wifi on the device fixed the problem. This seems to trigger when cellular is being used in stead of wifi.
52,455,652
I have upgraded to `Xcode 10` on `High Sierra` and now the [Rewarded Ad example project](https://github.com/googleads/googleads-mobile-ios-examples/tree/master/Swift/admob/RewardedVideoExample) from AdMob complains that `com.apple.commcenter.coretelephony.xpc` is not working correctly. Is there a new entitlement that ...
2018/09/22
[ "https://Stackoverflow.com/questions/52455652", "https://Stackoverflow.com", "https://Stackoverflow.com/users/92153/" ]
For those who are experiencing this issue in real devices, linking CoreTelephony.framework to the project fixes the problem. It does not fix it for the simulator, though.
I was having the same issue, and this is how I solved it: Go to the tab **Build Phases** and search for **Bundle React Native code and images** and below **shell** input add: **export NODE\_BINARY=node ../node\_modules/react-native/scripts/react-native-xcode.sh** This worked for me with Xcode 11.3.1 Hope this helps ...
52,455,652
I have upgraded to `Xcode 10` on `High Sierra` and now the [Rewarded Ad example project](https://github.com/googleads/googleads-mobile-ios-examples/tree/master/Swift/admob/RewardedVideoExample) from AdMob complains that `com.apple.commcenter.coretelephony.xpc` is not working correctly. Is there a new entitlement that ...
2018/09/22
[ "https://Stackoverflow.com/questions/52455652", "https://Stackoverflow.com", "https://Stackoverflow.com/users/92153/" ]
Well it's working on both the simulator and device in Xcode 10.2. 1. Add CoreTelephony.framework (Optional) 2. Executing the following command in Terminal: ``` xcrun simctl spawn booted log config --mode "level:off" --subsystem com.apple.CoreTelephony ``` 3. From the Xcode menu open: Product > Scheme > Edit Scheme ...
I was having the same issue, and this is how I solved it: Go to the tab **Build Phases** and search for **Bundle React Native code and images** and below **shell** input add: **export NODE\_BINARY=node ../node\_modules/react-native/scripts/react-native-xcode.sh** This worked for me with Xcode 11.3.1 Hope this helps ...
52,455,652
I have upgraded to `Xcode 10` on `High Sierra` and now the [Rewarded Ad example project](https://github.com/googleads/googleads-mobile-ios-examples/tree/master/Swift/admob/RewardedVideoExample) from AdMob complains that `com.apple.commcenter.coretelephony.xpc` is not working correctly. Is there a new entitlement that ...
2018/09/22
[ "https://Stackoverflow.com/questions/52455652", "https://Stackoverflow.com", "https://Stackoverflow.com/users/92153/" ]
Running this in Terminal made it go away: ``` xcrun simctl spawn booted log config --mode "level:off" --subsystem com.apple.CoreTelephony ```
For those who are experiencing this issue in real devices, linking CoreTelephony.framework to the project fixes the problem. It does not fix it for the simulator, though.
52,455,652
I have upgraded to `Xcode 10` on `High Sierra` and now the [Rewarded Ad example project](https://github.com/googleads/googleads-mobile-ios-examples/tree/master/Swift/admob/RewardedVideoExample) from AdMob complains that `com.apple.commcenter.coretelephony.xpc` is not working correctly. Is there a new entitlement that ...
2018/09/22
[ "https://Stackoverflow.com/questions/52455652", "https://Stackoverflow.com", "https://Stackoverflow.com/users/92153/" ]
Well it's working on both the simulator and device in Xcode 10.2. 1. Add CoreTelephony.framework (Optional) 2. Executing the following command in Terminal: ``` xcrun simctl spawn booted log config --mode "level:off" --subsystem com.apple.CoreTelephony ``` 3. From the Xcode menu open: Product > Scheme > Edit Scheme ...
I found a workaround restarting the simulator.
52,455,652
I have upgraded to `Xcode 10` on `High Sierra` and now the [Rewarded Ad example project](https://github.com/googleads/googleads-mobile-ios-examples/tree/master/Swift/admob/RewardedVideoExample) from AdMob complains that `com.apple.commcenter.coretelephony.xpc` is not working correctly. Is there a new entitlement that ...
2018/09/22
[ "https://Stackoverflow.com/questions/52455652", "https://Stackoverflow.com", "https://Stackoverflow.com/users/92153/" ]
Running this in Terminal made it go away: ``` xcrun simctl spawn booted log config --mode "level:off" --subsystem com.apple.CoreTelephony ```
I found a workaround restarting the simulator.
52,455,652
I have upgraded to `Xcode 10` on `High Sierra` and now the [Rewarded Ad example project](https://github.com/googleads/googleads-mobile-ios-examples/tree/master/Swift/admob/RewardedVideoExample) from AdMob complains that `com.apple.commcenter.coretelephony.xpc` is not working correctly. Is there a new entitlement that ...
2018/09/22
[ "https://Stackoverflow.com/questions/52455652", "https://Stackoverflow.com", "https://Stackoverflow.com/users/92153/" ]
Run this in Terminal, * to disappear those log messages ``` xcrun simctl spawn booted log config --mode "level:off" --subsystem com.apple.CoreTelephony ``` * to appear those log messages: ``` xcrun simctl spawn booted log config --mode "level:default" --subsystem com.apple.CoreTelephony ``` Possible mode lev...
I was having the same issue, and this is how I solved it: Go to the tab **Build Phases** and search for **Bundle React Native code and images** and below **shell** input add: **export NODE\_BINARY=node ../node\_modules/react-native/scripts/react-native-xcode.sh** This worked for me with Xcode 11.3.1 Hope this helps ...
52,455,652
I have upgraded to `Xcode 10` on `High Sierra` and now the [Rewarded Ad example project](https://github.com/googleads/googleads-mobile-ios-examples/tree/master/Swift/admob/RewardedVideoExample) from AdMob complains that `com.apple.commcenter.coretelephony.xpc` is not working correctly. Is there a new entitlement that ...
2018/09/22
[ "https://Stackoverflow.com/questions/52455652", "https://Stackoverflow.com", "https://Stackoverflow.com/users/92153/" ]
Running this in Terminal made it go away: ``` xcrun simctl spawn booted log config --mode "level:off" --subsystem com.apple.CoreTelephony ```
For people facing this issue when building on real devices, turning on the wifi on the device fixed the problem. This seems to trigger when cellular is being used in stead of wifi.
19,008,462
I'm trying to do it but I get a "Stack Overflow error" so I accepted the advice and came here searching for help. I want to limit the lenght of the text the user can insert, so when he type a character above the length limit the character is erased ``` sms_input.addTextChangedListener(new TextWatcher(){ @Ove...
2013/09/25
[ "https://Stackoverflow.com/questions/19008462", "https://Stackoverflow.com", "https://Stackoverflow.com/users/2641475/" ]
You don't want to do all these. Just try this in XML ``` android:maxLength="120" ``` When you try to enter more than 120 characters it just block you from entering the next character. I think this is what you looking for. Just leave it if not.
This same question was already answered before for example here ([TextWatcher afterTextChanged causes stackoverflow in android](https://stackoverflow.com/questions/8628437/textwatcher-aftertextchanged-causes-stackoverflow-in-android)) But basically what happens is that you change the text inside the method "afterTextC...
46,388,861
I have the following html. `<div><item1><item2><item3><div>`. The items are `div`s. I would like the items to be displayed in two columns. The item2 to be in the left column by itself. In the right column, item1 to align to the top and item3 to be aligned to the bottom. Here is the layout [![enter image description her...
2017/09/24
[ "https://Stackoverflow.com/questions/46388861", "https://Stackoverflow.com", "https://Stackoverflow.com/users/1343106/" ]
This should produce the desired effect. You need to use `float: right;` to put the `div` to the right. and `float: left;` to position the div to the left. ```css #main { width: 50%; background-color: blue; height: 200px; float: left; } #first { width: 50%; background-color: red; height: 100px;...
use position relative for your div and position absolute for your items with a 0 value for top left right or bottom attribute
46,388,861
I have the following html. `<div><item1><item2><item3><div>`. The items are `div`s. I would like the items to be displayed in two columns. The item2 to be in the left column by itself. In the right column, item1 to align to the top and item3 to be aligned to the bottom. Here is the layout [![enter image description her...
2017/09/24
[ "https://Stackoverflow.com/questions/46388861", "https://Stackoverflow.com", "https://Stackoverflow.com/users/1343106/" ]
You can do it with flexbox and float, but I would probably use css-grid for that. That way you can even keep your current order. ```css .wrapper { display: grid; grid-template-rows: 1fr 1fr; /*you can use px, %, auto etc. here*/ grid-template-columns: 1fr 1fr; grid-template-areas: "left-item right-top" "...
use position relative for your div and position absolute for your items with a 0 value for top left right or bottom attribute
46,388,861
I have the following html. `<div><item1><item2><item3><div>`. The items are `div`s. I would like the items to be displayed in two columns. The item2 to be in the left column by itself. In the right column, item1 to align to the top and item3 to be aligned to the bottom. Here is the layout [![enter image description her...
2017/09/24
[ "https://Stackoverflow.com/questions/46388861", "https://Stackoverflow.com", "https://Stackoverflow.com/users/1343106/" ]
There are many ways to do it. You can make a table having two columns. In the second column, you can make two rows. Finally put your item in the table. Here that I made: ```css table, th, td { border: 1px solid black; border-collapse: collapse; } th, td { padding: 5px; t...
use position relative for your div and position absolute for your items with a 0 value for top left right or bottom attribute
46,388,861
I have the following html. `<div><item1><item2><item3><div>`. The items are `div`s. I would like the items to be displayed in two columns. The item2 to be in the left column by itself. In the right column, item1 to align to the top and item3 to be aligned to the bottom. Here is the layout [![enter image description her...
2017/09/24
[ "https://Stackoverflow.com/questions/46388861", "https://Stackoverflow.com", "https://Stackoverflow.com/users/1343106/" ]
This should produce the desired effect. You need to use `float: right;` to put the `div` to the right. and `float: left;` to position the div to the left. ```css #main { width: 50%; background-color: blue; height: 200px; float: left; } #first { width: 50%; background-color: red; height: 100px;...
There are many ways to do it. You can make a table having two columns. In the second column, you can make two rows. Finally put your item in the table. Here that I made: ```css table, th, td { border: 1px solid black; border-collapse: collapse; } th, td { padding: 5px; t...
46,388,861
I have the following html. `<div><item1><item2><item3><div>`. The items are `div`s. I would like the items to be displayed in two columns. The item2 to be in the left column by itself. In the right column, item1 to align to the top and item3 to be aligned to the bottom. Here is the layout [![enter image description her...
2017/09/24
[ "https://Stackoverflow.com/questions/46388861", "https://Stackoverflow.com", "https://Stackoverflow.com/users/1343106/" ]
You can do it with flexbox and float, but I would probably use css-grid for that. That way you can even keep your current order. ```css .wrapper { display: grid; grid-template-rows: 1fr 1fr; /*you can use px, %, auto etc. here*/ grid-template-columns: 1fr 1fr; grid-template-areas: "left-item right-top" "...
There are many ways to do it. You can make a table having two columns. In the second column, you can make two rows. Finally put your item in the table. Here that I made: ```css table, th, td { border: 1px solid black; border-collapse: collapse; } th, td { padding: 5px; t...
54,474,217
I'm new to sass and currently exploring it. I want to try using mixin but when I tried it, it's just not working. Here's the code: ``` @mixin container($radius, $width, $height, $bg, $color) { -webkit-border-radius: $radius; -moz-border-radius: $radius; -ms-border-radius: $radius; border-radius: $radiu...
2019/02/01
[ "https://Stackoverflow.com/questions/54474217", "https://Stackoverflow.com", "https://Stackoverflow.com/users/10953551/" ]
this? ``` $white: #fff; $dark-grey: #666; @mixin container($radius, $width, $height, $bg, $color) { -webkit-border-radius: $radius; -moz-border-radius: $radius; -ms-border-radius: $radius; border-radius: $radius; width: $width; height: $height; background: $bg; color: $color; m...
It looks like your variables are a bit messed up This should work: ``` @mixin container($radius, $width, $height, $bg, $color) { -webkit-border-radius: $radius; -moz-border-radius: $radius; -ms-border-radius: $radius; border-radius: $radius; width: $width; // <= here height: $height...
51,847,784
After researching I have found that a default pool size of 4 is created by Spring Boot when deploying to the cloud. I am deploying to Cloud Foundry, using Spring Boot 1.3.7, and connecting to a MySQL service. I would like to increase the default pool size. I am following the steps outlined in the this blog, but I am ge...
2018/08/14
[ "https://Stackoverflow.com/questions/51847784", "https://Stackoverflow.com", "https://Stackoverflow.com/users/9295684/" ]
> > When nested object has more complex hierarchy, how can we solve this > without manually indicate field like address.city.field1.field2. > > > As most answers intimated, you have to use the [dot notation](https://docs.mongodb.com/manual/reference/operator/update/set/#set-fields-in-embedded-documents) to update...
This should work: ``` let params = { "address.city": "city_new" } User.set(param) ``` In the documentation on [$set](https://docs.mongodb.com/manual/reference/operator/update/set/#set-fields-in-embedded-documents) you'll also find the following remark: > > To specify a <field> in an embedded document or in an a...
119,936
I am new to SOQL. How do I fetch the country,state,city of an account? I have tried this but have an error. ``` Select AccountNumber,name, BillingAddress.City from Account ```
2016/04/29
[ "https://salesforce.stackexchange.com/questions/119936", "https://salesforce.stackexchange.com", "https://salesforce.stackexchange.com/users/31070/" ]
Here you can found a list of all SOAP API fields accepted in Account (standard fields) [Account SOAP API](https://developer.salesforce.com/docs/atlas.en-us.api.meta/api/sforce_api_objects_account.htm) If you need the Billing Address fields you can use: ``` SELECT Id, Name, BillingStreet, BillingCity, BillingState, B...
``` BillingCity BillingCountry BillingState ``` are the correct API Names To check the object's field correct API Name use describe call in developer console and check all fields label Name and corresponding API Name in debug log ``` for(Schema.SobjectField strFld: Account.SobjectType.getDescribe().fields.getMap()...
3,623,073
I am creating a .dat file with headers and data in Matlab, however when I try opening it from the folder where it is saved then I get the error that says `'file in use by another application and cannot be accessed'`. This error occurs even when Matlab is closed. I can only open it as a text by right clicking on the fil...
2010/09/02
[ "https://Stackoverflow.com/questions/3623073", "https://Stackoverflow.com", "https://Stackoverflow.com/users/-1/" ]
Try <http://prettydiff.com/?m=beautify> See if that gets what you want. If you specifically need to address HTML tags that do not have a closing pair, such as `<br>`, then add the `&html` attribute to the address above. It should do everything you need as per the stated requirements.
This isn't perfect, but: 1. Install django-vim <http://www.vim.org/scripts/script.php?script_id=1487> 2. Highlight lines in visual mode 3. press '=' Voila! The power of vim.
3,623,073
I am creating a .dat file with headers and data in Matlab, however when I try opening it from the folder where it is saved then I get the error that says `'file in use by another application and cannot be accessed'`. This error occurs even when Matlab is closed. I can only open it as a text by right clicking on the fil...
2010/09/02
[ "https://Stackoverflow.com/questions/3623073", "https://Stackoverflow.com", "https://Stackoverflow.com/users/-1/" ]
This isn't perfect, but: 1. Install django-vim <http://www.vim.org/scripts/script.php?script_id=1487> 2. Highlight lines in visual mode 3. press '=' Voila! The power of vim.
If you use Sublime Text I recommend installing a package called `HTML-CSS-JS Prettify`. You can get the package from PackageControl [Here](https://packagecontrol.io/packages/HTML-CSS-JS%20Prettify).
3,623,073
I am creating a .dat file with headers and data in Matlab, however when I try opening it from the folder where it is saved then I get the error that says `'file in use by another application and cannot be accessed'`. This error occurs even when Matlab is closed. I can only open it as a text by right clicking on the fil...
2010/09/02
[ "https://Stackoverflow.com/questions/3623073", "https://Stackoverflow.com", "https://Stackoverflow.com/users/-1/" ]
Try <http://prettydiff.com/?m=beautify> See if that gets what you want. If you specifically need to address HTML tags that do not have a closing pair, such as `<br>`, then add the `&html` attribute to the address above. It should do everything you need as per the stated requirements.
If you use Sublime Text I recommend installing a package called `HTML-CSS-JS Prettify`. You can get the package from PackageControl [Here](https://packagecontrol.io/packages/HTML-CSS-JS%20Prettify).
16,675,684
I have an app that lists images up until now I've been using and ListView, and is very happy with it, it´s fast and smooth. But now I want to implement a landscape layout as well, and I'm thinking an two column per row type. I got it working and its nice. So now I´m thinking about skipping the listview and use the grid...
2013/05/21
[ "https://Stackoverflow.com/questions/16675684", "https://Stackoverflow.com", "https://Stackoverflow.com/users/907119/" ]
I've done this and not seen any significant slowdown. GridView with a single column will look and act just like a listview.
In your particular case GridView should be faster because you'll be populating the images into one view only. Where as with the listviews you'll have to do it in two different ones. The latter operation might be a little slower.
24,171,411
I'm trying to plot the following data set in R: ``` fruit<-matrix(c("Apple","186","Banana","93","Elderberry","48","Durian", "28","Cherry", "28"),ncol=2,byrow=TRUE) colnames(fruit) <- c("Name","Freq") fruit <- data.table(fruit) fruit$Freq <- as.numeric(as.character(fruit$Freq)) qplot(fruit$Name, fruit$Freq, geom="bar...
2014/06/11
[ "https://Stackoverflow.com/questions/24171411", "https://Stackoverflow.com", "https://Stackoverflow.com/users/2100803/" ]
[This](http://docs.sqlalchemy.org/en/rel_0_9/core/types.html) page provides an overview of the types implemented in SQLAlchemy. You can also use the `flask-sqlalchemy.SQLAlchemy` class to look through the available data types.
You're on the right page of the documentation, you just need to skip up to the [Column and Datatypes - Generic Types documentation](http://docs.sqlalchemy.org/en/rel_0_9/core/types.html#generic-types).
187,862
I'd like to have a new section in line with the usual numbering, without it showing in the text. I include multiple PDF files using the `\includepdf` command. Each of them is a subsection which I'd like to subordinate under the section. However, I can't just use `\section` because that makes a new headline in the docum...
2014/07/03
[ "https://tex.stackexchange.com/questions/187862", "https://tex.stackexchange.com", "https://tex.stackexchange.com/users/56538/" ]
I do not know whether this is what is requested, but it is quite easy to add a non-existing section (or anything) to the TOC and use a section number in front of it. User cmhughes already pointed to `\addcontentsline` Please change the title and the corresponding section number. ``` \documentclass{article} \usepa...
Only an addendum to [Christian's first example](https://tex.stackexchange.com/a/187871/9057): To have a solution with correct automatic bookmark for the `\addcontentsline` with `hyperref` you need to use `\refstepcounter` to increase the `section` counter. And you should insert `\clearpage` before adding the section e...
73,881,549
I have a list of timestamps. I need to keep only the first element within a range and remove the rest. Initial list: ``` AAPL -- 2022-09-28T14:32:53.424494377 AAPL -- 2022-09-28T14:32:58.424494377 AAPL -- 2022-09-28T14:33:03.424494377 AMZN -- 2022-09-28T14:33:08.424494377 AAPL -- 2022-09-28T14:33:13.424494377 MSFT --...
2022/09/28
[ "https://Stackoverflow.com/questions/73881549", "https://Stackoverflow.com", "https://Stackoverflow.com/users/2169845/" ]
Since "each box is attracted to one attractor point with a force proportional to the distance", you are describing a system where the boxes are attached to the attractor points by springs (see [Hooke's law](https://en.wikipedia.org/wiki/Hooke%27s_law)), and you want to determine the state of the system at rest (the sta...
**Edit: this is a crude solution to minimize the sum of all `Li`, which is no longer the question.** Let's name the boxes B, so `Bi` has center `Ci`. Let `n` be the number of boxes and points. Assuming all the boxes can fit into the larger range, here is how I would do it: Let `Q(a, b)` be the average of `Pi` from `i...
73,881,549
I have a list of timestamps. I need to keep only the first element within a range and remove the rest. Initial list: ``` AAPL -- 2022-09-28T14:32:53.424494377 AAPL -- 2022-09-28T14:32:58.424494377 AAPL -- 2022-09-28T14:33:03.424494377 AMZN -- 2022-09-28T14:33:08.424494377 AAPL -- 2022-09-28T14:33:13.424494377 MSFT --...
2022/09/28
[ "https://Stackoverflow.com/questions/73881549", "https://Stackoverflow.com", "https://Stackoverflow.com/users/2169845/" ]
It seems the objective is a quadratic function and all the constraints are linear. So I think you can solve it by standard quadratic programming solvers. If we write `S_i` be the half-size of i-th box, and the Pi's are given, then: ``` Minimize y with respect to C_1, C_2, ...C_n subject to y = sum_i (P_i - C_i)^2 C...
**Edit: this is a crude solution to minimize the sum of all `Li`, which is no longer the question.** Let's name the boxes B, so `Bi` has center `Ci`. Let `n` be the number of boxes and points. Assuming all the boxes can fit into the larger range, here is how I would do it: Let `Q(a, b)` be the average of `Pi` from `i...
73,881,549
I have a list of timestamps. I need to keep only the first element within a range and remove the rest. Initial list: ``` AAPL -- 2022-09-28T14:32:53.424494377 AAPL -- 2022-09-28T14:32:58.424494377 AAPL -- 2022-09-28T14:33:03.424494377 AMZN -- 2022-09-28T14:33:08.424494377 AAPL -- 2022-09-28T14:33:13.424494377 MSFT --...
2022/09/28
[ "https://Stackoverflow.com/questions/73881549", "https://Stackoverflow.com", "https://Stackoverflow.com/users/2169845/" ]
Since "each box is attracted to one attractor point with a force proportional to the distance", you are describing a system where the boxes are attached to the attractor points by springs (see [Hooke's law](https://en.wikipedia.org/wiki/Hooke%27s_law)), and you want to determine the state of the system at rest (the sta...
It seems the objective is a quadratic function and all the constraints are linear. So I think you can solve it by standard quadratic programming solvers. If we write `S_i` be the half-size of i-th box, and the Pi's are given, then: ``` Minimize y with respect to C_1, C_2, ...C_n subject to y = sum_i (P_i - C_i)^2 C...
73,881,549
I have a list of timestamps. I need to keep only the first element within a range and remove the rest. Initial list: ``` AAPL -- 2022-09-28T14:32:53.424494377 AAPL -- 2022-09-28T14:32:58.424494377 AAPL -- 2022-09-28T14:33:03.424494377 AMZN -- 2022-09-28T14:33:08.424494377 AAPL -- 2022-09-28T14:33:13.424494377 MSFT --...
2022/09/28
[ "https://Stackoverflow.com/questions/73881549", "https://Stackoverflow.com", "https://Stackoverflow.com/users/2169845/" ]
Since "each box is attracted to one attractor point with a force proportional to the distance", you are describing a system where the boxes are attached to the attractor points by springs (see [Hooke's law](https://en.wikipedia.org/wiki/Hooke%27s_law)), and you want to determine the state of the system at rest (the sta...
Just for completion, I found a (probably subtompimal) solution that works pretty well and is very easy to implement. 1. Place all boxes with their Ci's at their Pi's. 2. Go over all boxes, from left to right and do the following: 1. Check if box i overlaps with the box to its left. If it is the first box, check if it...
73,881,549
I have a list of timestamps. I need to keep only the first element within a range and remove the rest. Initial list: ``` AAPL -- 2022-09-28T14:32:53.424494377 AAPL -- 2022-09-28T14:32:58.424494377 AAPL -- 2022-09-28T14:33:03.424494377 AMZN -- 2022-09-28T14:33:08.424494377 AAPL -- 2022-09-28T14:33:13.424494377 MSFT --...
2022/09/28
[ "https://Stackoverflow.com/questions/73881549", "https://Stackoverflow.com", "https://Stackoverflow.com/users/2169845/" ]
It seems the objective is a quadratic function and all the constraints are linear. So I think you can solve it by standard quadratic programming solvers. If we write `S_i` be the half-size of i-th box, and the Pi's are given, then: ``` Minimize y with respect to C_1, C_2, ...C_n subject to y = sum_i (P_i - C_i)^2 C...
Just for completion, I found a (probably subtompimal) solution that works pretty well and is very easy to implement. 1. Place all boxes with their Ci's at their Pi's. 2. Go over all boxes, from left to right and do the following: 1. Check if box i overlaps with the box to its left. If it is the first box, check if it...
39,230,026
I have a little serach box that returns results from a database. That works fine. The results are in a List page and display correctly. However, I need to take the selected object and pass it to my controller. I am getting NULL values when I debug it, and an empty results page. Here is the model: ``` public class Code...
2016/08/30
[ "https://Stackoverflow.com/questions/39230026", "https://Stackoverflow.com", "https://Stackoverflow.com/users/2132845/" ]
Since you said that you have tried with ActionLink and it did not work, here is how it would work.. instead of passing the type that you are looking for as a parameter for the Display action, pass the `ID` of the record. So it would look something like this: **Controller Action** ``` [HttpGet] public ActionResult Di...
There are two problems with your code: 1) You do not render any `<input>` elements in which you send the selected values back to the controller. Use `Html.HiddenFor` or `Html.EditorFor` in addition to `Html.DisplayFor`. 2) In order for the MVC Modelbinder to be able to bind your list, use a `for` loop instead of `for...
40,608,209
I'm creating a JSON structure which I ultimately need to save to a file but am having problems with embedded line feed characters. I first create a dictionary: ``` changes = { "20161101": "Added logging", "20161027": "Fixed scrolling bug", "20161024": "Added summary functionality" } ``` and then convert ...
2016/11/15
[ "https://Stackoverflow.com/questions/40608209", "https://Stackoverflow.com", "https://Stackoverflow.com/users/258009/" ]
In JSON you need to properly escape the control characters including `\n`. Here's example on what's currently happening: ``` >>> import json >>> json.loads('"foo\nbar"') Traceback (most recent call last): File "<stdin>", line 1, in <module> File "C:\python35\lib\json\__init__.py", line 319, in loads return _de...
To convert it to a single line-feed separated string: ``` import json changes_str = json.dumps(changes) ``` To load a string JSON in dict python: ``` dict_changes = json.loads(changes_str) ```