qid
int64
1
74.7M
question
stringlengths
0
58.3k
date
stringlengths
10
10
metadata
list
response_j
stringlengths
2
48.3k
response_k
stringlengths
2
40.5k
23,405,629
I want to pass a compiled regex to golang function, e.g. ``` package main import "fmt" import "regexp" func foo(r *Regexp) { fmt.Println(r) } func main() { r, _ := regexp.Compile("p([a-z]+)ch") foo(r) } ``` But it is showing "undefined: Regexp" Any hints?
2014/05/01
[ "https://Stackoverflow.com/questions/23405629", "https://Stackoverflow.com", "https://Stackoverflow.com/users/365256/" ]
Use a qualified identifier. For example, ``` package main import "fmt" import "regexp" func foo(r *regexp.Regexp) { fmt.Println(r) } func main() { r, _ := regexp.Compile("p([a-z]+)ch") foo(r) } ``` Output: ``` p([a-z]+)ch ``` > > [Qualified identifiers](http://golang.org/ref/spec#Qualified_identi...
You can also use a dot import: ``` package main import ( "fmt" . "regexp" ) func foo(r *Regexp) { fmt.Println(r) } func main() { r := MustCompile("p([a-z]+)ch") foo(r) } ``` However, typically it will be better to use use the fully qualified name. <https://golang.org/ref/spec#Import_declaratio...
10,083,547
I have gone through [this](https://stackoverflow.com/questions/2020088/sending-email-in-android-using-javamail-api-without-using-the-default-android-a) question, it works well with its own case using SSL and I have also tried [this](https://stackoverflow.com/questions/9461223/sending-email-in-android-using-javamail-ap...
2012/04/10
[ "https://Stackoverflow.com/questions/10083547", "https://Stackoverflow.com", "https://Stackoverflow.com/users/1164529/" ]
Firstly use Mail.jar, activation.jar, Additional.jar file Upload in Your project Use this Mail Class ``` package com.technosoft.AkashEmailAddress; import java.io.ByteArrayInputStream; import java.io.IOException; import java.io.InputStream; import java.io.OutputStream; import java.util.Date; import java.util.Properti...
This is what I get for your error which means sending mail from your ip is blocked. below answer is from this link <http://postmaster.bluetie.com/subcontent/smtpCodes.php> 554 - BL0002: Mail Refused - IP Address xxx.xxx.xxx.xxx Blacklisted - Please see <http://www.spamcop.net/w3m?action=checkblock&ip=xxx.xxx.xxx.xxx>...
7,481,868
I'd like to start a thread in the background and want to stop it after a certain amount of time if it not finishes. Main Problem is, while waiting for the thread to finish or a timer to reach a deadline, the program should not block. Its important to guarentee that. I tried [this example](https://stackoverflow.com/que...
2011/09/20
[ "https://Stackoverflow.com/questions/7481868", "https://Stackoverflow.com", "https://Stackoverflow.com/users/833263/" ]
You can start a thread that will start your thread and wait for the timed\_join. ``` main | |---thread | | | |-----thread | | | | | | | join<------ | | ``` But if you just want a warning, put it before starting the thread. If it is a graphical application ...
The thread that must be stopped could exit by itself after a certain amount of time. For instance, if it executes all the work in a loop, it could periodically check (e.g. every 10 iterations of the loop) if the maximum amount of time has passed and exit in the case the time has passed. Every now and then the main th...
6,142,907
I am having an issue in Selenium which has been recurring through my test suite that reports elements not present after they clearly are, and Selenium even reports that they are via `isElementPresent()`. For example, I have a page loading with a text field. After `selenium.waitForPageToLoad()` is complete, selenium in...
2011/05/26
[ "https://Stackoverflow.com/questions/6142907", "https://Stackoverflow.com", "https://Stackoverflow.com/users/771794/" ]
If it is an intermittent issue and selenium is finding the element more often than not, then it should be a timing issue. Following are the two steps I would try for this issue: 1. Change `isElementPresent` to `isVisible`. Many a times, I have seen that `isElementPresent` passes where `isVisible` fails. 2. Assuming yo...
Try selenium.type(elements.get("File Path Text Field"), "something"); As selenium.type method expects two parameters viz. locator and value.
14,862
How many different possible structures (isomers) are there for the complex, $\ce{[Mn(OH2)3(NH3)3]^{3+}}$? I really don't know how to begin with this. I know the answer is 2, but i don't have the faintest idea how this is the case. Since $\ce{Mn}$ has a charge of $3+$, I know that its valence electron configuration is ...
2014/08/04
[ "https://chemistry.stackexchange.com/questions/14862", "https://chemistry.stackexchange.com", "https://chemistry.stackexchange.com/users/7311/" ]
Metal complexes with three each of two types of ligands $(\ce{MX3Y3})$ have two isomers: [*mer*- and *fac*-isomers](http://en.wikipedia.org/wiki/Fac%E2%80%93mer_isomerism#Cis.E2.80.93trans_isomerism_and_facial.E2.80.93meridional_isomerism). For example, for $\ce{Co(NH3)3Cl3}$ there are two isomers: > > *Fac* for faci...
The compound you talked about is of the type $MA\_3B\_3$. I will illustrate a similar example here. There shall be 2 geometrical isomers, '***FACIAL***' and '***MERIDONAL***' ![enter image description here](https://i.stack.imgur.com/OfenJ.jpg) > > To identify which is which, remember that in *MERIDONAL* maximum bond...
70,116,553
I would like to have a Laravel Model with all of the features and functions of a Laravel Model, but the data for the model is completely static and will never change. I could create a database table for it, but that leaves the possibility of someone modifying the table directly. For example: ``` // Model Data fo...
2021/11/25
[ "https://Stackoverflow.com/questions/70116553", "https://Stackoverflow.com", "https://Stackoverflow.com/users/1996152/" ]
You can use **Sushi** for that. Eloquent's missing "array" driver. Sometimes you want to use Eloquent, but without dealing with a database. ``` class State extends Model { use \Sushi\Sushi; protected $rows = [ [ 'name' => 'Emergency', 'icon' => 'fas fa-ambulance', ...
I think you can use a simple model, without creating forms for injecting data, and a seeder to inculde your data at first time (when you run migrate).
54,155,431
Please note this is a self-answered question. This question is about the ToastUI Image Editor v3.3.0, but it may also apply to newer versions. When you load an image using [this official example](https://github.com/nhnent/tui.image-editor/blob/master/docs/Basic-Tutorial.md#3-javascript): ``` // Create image editor v...
2019/01/11
[ "https://Stackoverflow.com/questions/54155431", "https://Stackoverflow.com", "https://Stackoverflow.com/users/2879085/" ]
TL;DR: Here is a working fiddle: <https://fiddle.sencha.com/#view/editor&fiddle/2p0o> --- Long version: There are four problems: * You need to load an initial image, otherwise you can't use the editing controls. * You need to wait until the image editor object is ready before calling `loadImageFromURL`, otherwi...
For those who are using Rails, when it came to the fourth problem stated by @Forivin, this is what I did to get it working. The issue is when Toast would call the image stored on S3 I would get a CORS error on Chrome, but firefox was fine. There are lots of articles on this, essentially I found the best way is to use...
54,155,431
Please note this is a self-answered question. This question is about the ToastUI Image Editor v3.3.0, but it may also apply to newer versions. When you load an image using [this official example](https://github.com/nhnent/tui.image-editor/blob/master/docs/Basic-Tutorial.md#3-javascript): ``` // Create image editor v...
2019/01/11
[ "https://Stackoverflow.com/questions/54155431", "https://Stackoverflow.com", "https://Stackoverflow.com/users/2879085/" ]
TL;DR: Here is a working fiddle: <https://fiddle.sencha.com/#view/editor&fiddle/2p0o> --- Long version: There are four problems: * You need to load an initial image, otherwise you can't use the editing controls. * You need to wait until the image editor object is ready before calling `loadImageFromURL`, otherwi...
Add this attribute to the image tag you want to edit before opening it: ``` crossorigin="anonymous" ``` As explained here: <https://github.com/nhn/tui.image-editor/issues/68#issuecomment-930106372>
34,028
What kind of problems arise from installing a new program while other programs are running? I'd imagine the GAC solved a lot of the old problems of shared dll's being locked. So what kind of issues still arise? I can see issues with upgrading a single program for sure, but outside of this its hard to see why apps would...
2011/01/05
[ "https://softwareengineering.stackexchange.com/questions/34028", "https://softwareengineering.stackexchange.com", "https://softwareengineering.stackexchange.com/users/11107/" ]
GAC only helps with .NET assemblies. There a lot of other applications which are not written in .NET. What else problems exist? * Other applications holding files open * Other applications holding network connections open * Other applications holding devices open * Other applications slowing down the machine so that ...
The possibility of conflict between application being installed and already running one is very small. These days most applications are based around concept of sandbox and they don't need to step out of it during installation process (or normal usage). But lets suppose while installing some software, a change needs to...
34,028
What kind of problems arise from installing a new program while other programs are running? I'd imagine the GAC solved a lot of the old problems of shared dll's being locked. So what kind of issues still arise? I can see issues with upgrading a single program for sure, but outside of this its hard to see why apps would...
2011/01/05
[ "https://softwareengineering.stackexchange.com/questions/34028", "https://softwareengineering.stackexchange.com", "https://softwareengineering.stackexchange.com/users/11107/" ]
maybe the installer is just overly paranoid? in all honesty, I have never ever closed all programs when an installer asked me to do so and never ever got into trouble. Might just be luck though.
it's hedging. i never bother, and have had no trouble. the only exception is installing a plugin when the targeted app (IE, FireFox, Visual Studio, etc) is still open
34,028
What kind of problems arise from installing a new program while other programs are running? I'd imagine the GAC solved a lot of the old problems of shared dll's being locked. So what kind of issues still arise? I can see issues with upgrading a single program for sure, but outside of this its hard to see why apps would...
2011/01/05
[ "https://softwareengineering.stackexchange.com/questions/34028", "https://softwareengineering.stackexchange.com", "https://softwareengineering.stackexchange.com/users/11107/" ]
GAC only helps with .NET assemblies. There a lot of other applications which are not written in .NET. What else problems exist? * Other applications holding files open * Other applications holding network connections open * Other applications holding devices open * Other applications slowing down the machine so that ...
You can't overwrite a DLL or EXE that is in use by another app. The better written prompts say "look, either close stuff that is using things I want to update (and gives you a list) or continue the install and we'll have to reboot after to replace the DLL/EXE then." The lazy ones just blindly tell you to close every si...
34,028
What kind of problems arise from installing a new program while other programs are running? I'd imagine the GAC solved a lot of the old problems of shared dll's being locked. So what kind of issues still arise? I can see issues with upgrading a single program for sure, but outside of this its hard to see why apps would...
2011/01/05
[ "https://softwareengineering.stackexchange.com/questions/34028", "https://softwareengineering.stackexchange.com", "https://softwareengineering.stackexchange.com/users/11107/" ]
You can't overwrite a DLL or EXE that is in use by another app. The better written prompts say "look, either close stuff that is using things I want to update (and gives you a list) or continue the install and we'll have to reboot after to replace the DLL/EXE then." The lazy ones just blindly tell you to close every si...
A lot of times that message is just inserted as default text for the installation system being used. 9 out of 10 times it can be ignored. Its just that 10th time you have to worry about :-) imo, in addition to the technical reasons DevArt summarized nicely, it was probably put in there originally so that end users dont...
34,028
What kind of problems arise from installing a new program while other programs are running? I'd imagine the GAC solved a lot of the old problems of shared dll's being locked. So what kind of issues still arise? I can see issues with upgrading a single program for sure, but outside of this its hard to see why apps would...
2011/01/05
[ "https://softwareengineering.stackexchange.com/questions/34028", "https://softwareengineering.stackexchange.com", "https://softwareengineering.stackexchange.com/users/11107/" ]
You can't overwrite a DLL or EXE that is in use by another app. The better written prompts say "look, either close stuff that is using things I want to update (and gives you a list) or continue the install and we'll have to reboot after to replace the DLL/EXE then." The lazy ones just blindly tell you to close every si...
The possibility of conflict between application being installed and already running one is very small. These days most applications are based around concept of sandbox and they don't need to step out of it during installation process (or normal usage). But lets suppose while installing some software, a change needs to...
34,028
What kind of problems arise from installing a new program while other programs are running? I'd imagine the GAC solved a lot of the old problems of shared dll's being locked. So what kind of issues still arise? I can see issues with upgrading a single program for sure, but outside of this its hard to see why apps would...
2011/01/05
[ "https://softwareengineering.stackexchange.com/questions/34028", "https://softwareengineering.stackexchange.com", "https://softwareengineering.stackexchange.com/users/11107/" ]
A lot of times that message is just inserted as default text for the installation system being used. 9 out of 10 times it can be ignored. Its just that 10th time you have to worry about :-) imo, in addition to the technical reasons DevArt summarized nicely, it was probably put in there originally so that end users dont...
it's hedging. i never bother, and have had no trouble. the only exception is installing a plugin when the targeted app (IE, FireFox, Visual Studio, etc) is still open
34,028
What kind of problems arise from installing a new program while other programs are running? I'd imagine the GAC solved a lot of the old problems of shared dll's being locked. So what kind of issues still arise? I can see issues with upgrading a single program for sure, but outside of this its hard to see why apps would...
2011/01/05
[ "https://softwareengineering.stackexchange.com/questions/34028", "https://softwareengineering.stackexchange.com", "https://softwareengineering.stackexchange.com/users/11107/" ]
maybe the installer is just overly paranoid? in all honesty, I have never ever closed all programs when an installer asked me to do so and never ever got into trouble. Might just be luck though.
The possibility of conflict between application being installed and already running one is very small. These days most applications are based around concept of sandbox and they don't need to step out of it during installation process (or normal usage). But lets suppose while installing some software, a change needs to...
34,028
What kind of problems arise from installing a new program while other programs are running? I'd imagine the GAC solved a lot of the old problems of shared dll's being locked. So what kind of issues still arise? I can see issues with upgrading a single program for sure, but outside of this its hard to see why apps would...
2011/01/05
[ "https://softwareengineering.stackexchange.com/questions/34028", "https://softwareengineering.stackexchange.com", "https://softwareengineering.stackexchange.com/users/11107/" ]
GAC only helps with .NET assemblies. There a lot of other applications which are not written in .NET. What else problems exist? * Other applications holding files open * Other applications holding network connections open * Other applications holding devices open * Other applications slowing down the machine so that ...
it's hedging. i never bother, and have had no trouble. the only exception is installing a plugin when the targeted app (IE, FireFox, Visual Studio, etc) is still open
34,028
What kind of problems arise from installing a new program while other programs are running? I'd imagine the GAC solved a lot of the old problems of shared dll's being locked. So what kind of issues still arise? I can see issues with upgrading a single program for sure, but outside of this its hard to see why apps would...
2011/01/05
[ "https://softwareengineering.stackexchange.com/questions/34028", "https://softwareengineering.stackexchange.com", "https://softwareengineering.stackexchange.com/users/11107/" ]
You can't overwrite a DLL or EXE that is in use by another app. The better written prompts say "look, either close stuff that is using things I want to update (and gives you a list) or continue the install and we'll have to reboot after to replace the DLL/EXE then." The lazy ones just blindly tell you to close every si...
it's hedging. i never bother, and have had no trouble. the only exception is installing a plugin when the targeted app (IE, FireFox, Visual Studio, etc) is still open
34,028
What kind of problems arise from installing a new program while other programs are running? I'd imagine the GAC solved a lot of the old problems of shared dll's being locked. So what kind of issues still arise? I can see issues with upgrading a single program for sure, but outside of this its hard to see why apps would...
2011/01/05
[ "https://softwareengineering.stackexchange.com/questions/34028", "https://softwareengineering.stackexchange.com", "https://softwareengineering.stackexchange.com/users/11107/" ]
A lot of times that message is just inserted as default text for the installation system being used. 9 out of 10 times it can be ignored. Its just that 10th time you have to worry about :-) imo, in addition to the technical reasons DevArt summarized nicely, it was probably put in there originally so that end users dont...
The possibility of conflict between application being installed and already running one is very small. These days most applications are based around concept of sandbox and they don't need to step out of it during installation process (or normal usage). But lets suppose while installing some software, a change needs to...
2,942,479
in Section 1.3 "Connected and compact sets" from the book "Lecture notes on elementary Topology and Geometry" by Singer & Thorpe, Theorem 2 states the following: *Theorem*: Let *S* be a topological space (with **U** as the topology), and let $T\_{0}$ and {$T\_{w}$} with ${w \in W}$ connected subsets of *S* (that is, c...
2018/10/04
[ "https://math.stackexchange.com/questions/2942479", "https://math.stackexchange.com", "https://math.stackexchange.com/users/563340/" ]
Pick any point p /= 0, the origin. For q /= 0, draw a line from p to q. If pq passes through 0, then draw a broken line from p to q avoiding 0. All these lines are connected, cover $R^n$ - {0} and have p in common. Thus $R^n$ - {0} is connected, path connected in fact. Exercise. Let A be a countable...
Let $T\_0=\Bbb R\times \{1\}$ and let $A=\{T\_w\}\_{w\in W}$ be the set of all the lines in $\Bbb R^2\setminus \{(0,0)\}$ that intersect $T\_0.$ Every $(x,y)\in \Bbb R^2\setminus \{0\}$ belongs to a member of $A:$ If $x\ne 0$ then $(x,y)\in \{x\}\times \Bbb R\in A.$ If $y\ne 0$ the line $\{(u,u+y):u\in \Bbb R\}$ thru $...
341,294
Does it describe the contents of the questions to which it is applied? and is it unambiguous? ============================================================================================= [plugins](https://stackoverflow.com/questions/tagged/plugins "show questions tagged 'plugins'") [tag wiki](https://stackoverflow.co...
2017/01/11
[ "https://meta.stackoverflow.com/questions/341294", "https://meta.stackoverflow.com", "https://meta.stackoverflow.com/users/1542723/" ]
There's a few problems here 1. 18k+ questions. A while back, [we burninated the godaddy tag](https://meta.stackoverflow.com/questions/331817/should-we-burninate-godaddy). That was ~2000 questions (the largest successful burnination to date AFAIK), and we wound up locking the tag at the end, instead of retagging about ...
> > While a plugin pattern could be useful for the site, most of the questions are going to be either too broad or opinion based. > > > I think plugin development is very on topic for this side and doesn't has to be too broad or opinion based. These ones doesn't look too broad to me. [Design Pattern for implementi...
341,294
Does it describe the contents of the questions to which it is applied? and is it unambiguous? ============================================================================================= [plugins](https://stackoverflow.com/questions/tagged/plugins "show questions tagged 'plugins'") [tag wiki](https://stackoverflow.co...
2017/01/11
[ "https://meta.stackoverflow.com/questions/341294", "https://meta.stackoverflow.com", "https://meta.stackoverflow.com/users/1542723/" ]
There's a few problems here 1. 18k+ questions. A while back, [we burninated the godaddy tag](https://meta.stackoverflow.com/questions/331817/should-we-burninate-godaddy). That was ~2000 questions (the largest successful burnination to date AFAIK), and we wound up locking the tag at the end, instead of retagging about ...
You know what this burnination request lacks? Numbers, everyone loves numbers. So here numbers: There are at least 10 users with score +10 in the [all time top answerers of the tag](https://stackoverflow.com/tags/plugins/topusers). The most upvoted posts of most of them seems to be one of the two: * I want to do some...
341,294
Does it describe the contents of the questions to which it is applied? and is it unambiguous? ============================================================================================= [plugins](https://stackoverflow.com/questions/tagged/plugins "show questions tagged 'plugins'") [tag wiki](https://stackoverflow.co...
2017/01/11
[ "https://meta.stackoverflow.com/questions/341294", "https://meta.stackoverflow.com", "https://meta.stackoverflow.com/users/1542723/" ]
> > While a plugin pattern could be useful for the site, most of the questions are going to be either too broad or opinion based. > > > I think plugin development is very on topic for this side and doesn't has to be too broad or opinion based. These ones doesn't look too broad to me. [Design Pattern for implementi...
You know what this burnination request lacks? Numbers, everyone loves numbers. So here numbers: There are at least 10 users with score +10 in the [all time top answerers of the tag](https://stackoverflow.com/tags/plugins/topusers). The most upvoted posts of most of them seems to be one of the two: * I want to do some...
63,026,253
Say I have this table: ``` id timeline ---|--------| 1 | BASELINE | 1 | MIDTIME | 1 | ENDTIME | 2 | BASELINE | 2 | MIDTIME | 3 | BASELINE | 4 | BASELINE | 5 | BASELINE | 5 | MIDTIME | 5 | ENDTIME | ``` How do I get the output so that it looks like this: ``` id timeline ---|--------| 1...
2020/07/22
[ "https://Stackoverflow.com/questions/63026253", "https://Stackoverflow.com", "https://Stackoverflow.com/users/12335546/" ]
Here is a sample. I used ROW\_NUMBER() function. Hope to help, my friend :)) ``` CREATE TABLE TestData(id int, timeline varchar(20)) insert into TestData values (1, 'BaseLine'), (1, 'Midtime'), (1, 'Endtime'), (2, 'BaseLine'), (2, 'Midtime'), (3, 'BaseLine'), (4, 'BaseLine'), (5, 'BaseLine'), (5, 'Midtime'...
``` -- assume your table name is t with d as ( select id ,timeline ,row_number() over(partition by id order by case when timeline = 'BASELINE' then 1 when timeline = 'MIDTIME' then 2 when time...
68,193,077
I've used React Router like below: ``` <BrowserRouter> <Switch> <Route exact path="/" component={Login} /> <Route exact path="/home" component={HomeComponent}/> </Switch> </BrowserRouter> ``` When I use **this.props.history.push("/home")** or **http://localhost:3000/home** page is Moving to Home page, but the u...
2021/06/30
[ "https://Stackoverflow.com/questions/68193077", "https://Stackoverflow.com", "https://Stackoverflow.com/users/10545674/" ]
Apparently, dart copy the lists by reference. So, to copy the values of a list to another list, use the following code: ``` list2 = List.from(list1); ``` instead of: ``` list2 = list1; ```
By this ``` list2 = list1; ``` you are not actually making a copy of `list1`. It is the same list being assigned to `list2` too. So you need to change to this. ``` list2 = [...list1]; ```
68,193,077
I've used React Router like below: ``` <BrowserRouter> <Switch> <Route exact path="/" component={Login} /> <Route exact path="/home" component={HomeComponent}/> </Switch> </BrowserRouter> ``` When I use **this.props.history.push("/home")** or **http://localhost:3000/home** page is Moving to Home page, but the u...
2021/06/30
[ "https://Stackoverflow.com/questions/68193077", "https://Stackoverflow.com", "https://Stackoverflow.com/users/10545674/" ]
By this ``` list2 = list1; ``` you are not actually making a copy of `list1`. It is the same list being assigned to `list2` too. So you need to change to this. ``` list2 = [...list1]; ```
You can use **spread** operation: ``` list2 = [...list1]; ``` That should allow any iterable to copy the values instead of using the reference.
68,193,077
I've used React Router like below: ``` <BrowserRouter> <Switch> <Route exact path="/" component={Login} /> <Route exact path="/home" component={HomeComponent}/> </Switch> </BrowserRouter> ``` When I use **this.props.history.push("/home")** or **http://localhost:3000/home** page is Moving to Home page, but the u...
2021/06/30
[ "https://Stackoverflow.com/questions/68193077", "https://Stackoverflow.com", "https://Stackoverflow.com/users/10545674/" ]
Apparently, dart copy the lists by reference. So, to copy the values of a list to another list, use the following code: ``` list2 = List.from(list1); ``` instead of: ``` list2 = list1; ```
You can use **spread** operation: ``` list2 = [...list1]; ``` That should allow any iterable to copy the values instead of using the reference.
43,133,480
I have a file with multiple lines and want to extract the first three words of every line. ``` str = [] str = [ Feb 17 07:10:07 afg-prod-web2 journal: afg-prod-web2 statistics: 192.168.28.12 - 200 - "{\x0A \x22identifier\x22: {\x0A \x22company_code\x22: \x22TSC\x22,\x0A \x22product_type\x22: \x22airt...
2017/03/31
[ "https://Stackoverflow.com/questions/43133480", "https://Stackoverflow.com", "https://Stackoverflow.com/users/7772762/" ]
This Error occurs when you provide an invalid ObjectId The mongo `_id` is 12-byte BSON type ObjectId here I have added `if-else` to verify whether the `category_id` is a Valid ObjectId or not, if it's then do the Operation, else throw an custom error message When you are Using `mongoose-autoincrement-package` it use...
`ThemeSchema.category` is of type `Schema.Types.ObjectId` and `'0'` is not a valid mongo id. A valid mongo id would be 12-byte hexadecimal, for example `507f1f77bcf86cd799439011`. You have two options here, either define `ThemeSchema.category` as a `number` or assign valid mongo id. Since you are referring `ControlCa...
43,133,480
I have a file with multiple lines and want to extract the first three words of every line. ``` str = [] str = [ Feb 17 07:10:07 afg-prod-web2 journal: afg-prod-web2 statistics: 192.168.28.12 - 200 - "{\x0A \x22identifier\x22: {\x0A \x22company_code\x22: \x22TSC\x22,\x0A \x22product_type\x22: \x22airt...
2017/03/31
[ "https://Stackoverflow.com/questions/43133480", "https://Stackoverflow.com", "https://Stackoverflow.com/users/7772762/" ]
This Error occurs when you provide an invalid ObjectId The mongo `_id` is 12-byte BSON type ObjectId here I have added `if-else` to verify whether the `category_id` is a Valid ObjectId or not, if it's then do the Operation, else throw an custom error message When you are Using `mongoose-autoincrement-package` it use...
Looks like <https://stackoverflow.com/users/5127888/p0k8> gave a working answer, thank you! Instead of category : {type: Schema.Types.ObjectId, ref: 'ControlCategorySchema'} do category : {type: Number, ref: 'ControlCategorySchema'} That worked. Although still puzzles me why the Assessment one worked out
87,637
I’m 19 and working as a stripper part time right now and I make 60k a year, and I plan on doing so for the next 7 years. I have 15k saved up, but it’s just in a bank account. I’m also in college majoring in nursing. I have scholarships and my parents are paying for the rest of my school costs so I won’t have any stud...
2017/11/28
[ "https://money.stackexchange.com/questions/87637", "https://money.stackexchange.com", "https://money.stackexchange.com/users/65107/" ]
What's "reasonable" is largely dependent on what you're expecting them to do for you. [Nerd Wallet has a decent article](https://www.nerdwallet.com/blog/investing/how-much-does-a-financial-advisor-cost/) about the cost structures of various FA arrangements. What you're describing from those 2 FA's you interviewed seems...
You are interviewing two advisors who are pricing their services differently than the one you used 15 years ago. They aren't spending x hours and giving you a report and walking through it in a short meeting. You then executed their plan over the next 10+ years. These two are proposing a continuing set of services,...
87,637
I’m 19 and working as a stripper part time right now and I make 60k a year, and I plan on doing so for the next 7 years. I have 15k saved up, but it’s just in a bank account. I’m also in college majoring in nursing. I have scholarships and my parents are paying for the rest of my school costs so I won’t have any stud...
2017/11/28
[ "https://money.stackexchange.com/questions/87637", "https://money.stackexchange.com", "https://money.stackexchange.com/users/65107/" ]
From what I have seen, every retail financial advisor who charges as a percentage of wealth is charging what I would consider to be an unreasonable fee and I continue to be amazed how many people pay this. Somehow 1% or more of your assets every year sounds like a reasonable amount while the dollar equivalent would hav...
You are interviewing two advisors who are pricing their services differently than the one you used 15 years ago. They aren't spending x hours and giving you a report and walking through it in a short meeting. You then executed their plan over the next 10+ years. These two are proposing a continuing set of services,...
87,637
I’m 19 and working as a stripper part time right now and I make 60k a year, and I plan on doing so for the next 7 years. I have 15k saved up, but it’s just in a bank account. I’m also in college majoring in nursing. I have scholarships and my parents are paying for the rest of my school costs so I won’t have any stud...
2017/11/28
[ "https://money.stackexchange.com/questions/87637", "https://money.stackexchange.com", "https://money.stackexchange.com/users/65107/" ]
You are interviewing two advisors who are pricing their services differently than the one you used 15 years ago. They aren't spending x hours and giving you a report and walking through it in a short meeting. You then executed their plan over the next 10+ years. These two are proposing a continuing set of services,...
Here's an answer and follow-up to my own question: A year after I wrote up the question, I did find a fee-only financial advisor who offered the flat-fee-per-plan service that I desired (unlike my prior advisor who had abandoned that service from their expanded practice). I found this advisor via the [Garrett Plannin...
87,637
I’m 19 and working as a stripper part time right now and I make 60k a year, and I plan on doing so for the next 7 years. I have 15k saved up, but it’s just in a bank account. I’m also in college majoring in nursing. I have scholarships and my parents are paying for the rest of my school costs so I won’t have any stud...
2017/11/28
[ "https://money.stackexchange.com/questions/87637", "https://money.stackexchange.com", "https://money.stackexchange.com/users/65107/" ]
What's "reasonable" is largely dependent on what you're expecting them to do for you. [Nerd Wallet has a decent article](https://www.nerdwallet.com/blog/investing/how-much-does-a-financial-advisor-cost/) about the cost structures of various FA arrangements. What you're describing from those 2 FA's you interviewed seems...
Here's an answer and follow-up to my own question: A year after I wrote up the question, I did find a fee-only financial advisor who offered the flat-fee-per-plan service that I desired (unlike my prior advisor who had abandoned that service from their expanded practice). I found this advisor via the [Garrett Plannin...
87,637
I’m 19 and working as a stripper part time right now and I make 60k a year, and I plan on doing so for the next 7 years. I have 15k saved up, but it’s just in a bank account. I’m also in college majoring in nursing. I have scholarships and my parents are paying for the rest of my school costs so I won’t have any stud...
2017/11/28
[ "https://money.stackexchange.com/questions/87637", "https://money.stackexchange.com", "https://money.stackexchange.com/users/65107/" ]
From what I have seen, every retail financial advisor who charges as a percentage of wealth is charging what I would consider to be an unreasonable fee and I continue to be amazed how many people pay this. Somehow 1% or more of your assets every year sounds like a reasonable amount while the dollar equivalent would hav...
Here's an answer and follow-up to my own question: A year after I wrote up the question, I did find a fee-only financial advisor who offered the flat-fee-per-plan service that I desired (unlike my prior advisor who had abandoned that service from their expanded practice). I found this advisor via the [Garrett Plannin...
57,143,884
i'm writing a web scraper with python and beautifulsoup to get data out of a table from a webpage. Link to the table is in the code (url01) I want to know if there is a possibility that the data will be read vertically and not horizontally from the table Here is my code ``` import requests import json from bs4 impor...
2019/07/22
[ "https://Stackoverflow.com/questions/57143884", "https://Stackoverflow.com", "https://Stackoverflow.com/users/-1/" ]
You have not specified exactly which class is not found! Complete stackstrace will help. Nevertheless, as you mentioned it worked on jdk8 which means there is high probability you are using/depending on some class which is removed after jdk9 like jaxb, javax etc. If that is the case, you have couple of options here: ...
The "root" of your code files ie test files in this case should be `src/test/java`. So, you could try adding `compile files('src/test/java') to your`testClasspath` variable.
57,143,884
i'm writing a web scraper with python and beautifulsoup to get data out of a table from a webpage. Link to the table is in the code (url01) I want to know if there is a possibility that the data will be read vertically and not horizontally from the table Here is my code ``` import requests import json from bs4 impor...
2019/07/22
[ "https://Stackoverflow.com/questions/57143884", "https://Stackoverflow.com", "https://Stackoverflow.com/users/-1/" ]
After looking at the complete error trace, it seems the error is originating from the REST-assured library's code. And upgrading `io.rest-assured` dependency from 3.0.0 to 4.0.0 has helped overcome the issue.
The "root" of your code files ie test files in this case should be `src/test/java`. So, you could try adding `compile files('src/test/java') to your`testClasspath` variable.
57,143,884
i'm writing a web scraper with python and beautifulsoup to get data out of a table from a webpage. Link to the table is in the code (url01) I want to know if there is a possibility that the data will be read vertically and not horizontally from the table Here is my code ``` import requests import json from bs4 impor...
2019/07/22
[ "https://Stackoverflow.com/questions/57143884", "https://Stackoverflow.com", "https://Stackoverflow.com/users/-1/" ]
you can try changing the version of the rest assured dependency . from 3.0.0 to 4.1.2 ``` <dependency> <groupId>io.rest-assured</groupId> <artifactId>rest-assured</artifactId> <version>4.1.2</version> </dependency> ``` it will help
The "root" of your code files ie test files in this case should be `src/test/java`. So, you could try adding `compile files('src/test/java') to your`testClasspath` variable.
57,143,884
i'm writing a web scraper with python and beautifulsoup to get data out of a table from a webpage. Link to the table is in the code (url01) I want to know if there is a possibility that the data will be read vertically and not horizontally from the table Here is my code ``` import requests import json from bs4 impor...
2019/07/22
[ "https://Stackoverflow.com/questions/57143884", "https://Stackoverflow.com", "https://Stackoverflow.com/users/-1/" ]
It is because the JAXB library (Java Architecture for XML Binding) is missing in the classpath. JAXB is included in Java SE 10 or older, but it is removed from Java SE from Java 11 or newer –moved to Java EE under Jakarta EE project. That means if you encounter JAXBException error, it’s very much likely that you are us...
The "root" of your code files ie test files in this case should be `src/test/java`. So, you could try adding `compile files('src/test/java') to your`testClasspath` variable.
57,143,884
i'm writing a web scraper with python and beautifulsoup to get data out of a table from a webpage. Link to the table is in the code (url01) I want to know if there is a possibility that the data will be read vertically and not horizontally from the table Here is my code ``` import requests import json from bs4 impor...
2019/07/22
[ "https://Stackoverflow.com/questions/57143884", "https://Stackoverflow.com", "https://Stackoverflow.com/users/-1/" ]
After looking at the complete error trace, it seems the error is originating from the REST-assured library's code. And upgrading `io.rest-assured` dependency from 3.0.0 to 4.0.0 has helped overcome the issue.
You have not specified exactly which class is not found! Complete stackstrace will help. Nevertheless, as you mentioned it worked on jdk8 which means there is high probability you are using/depending on some class which is removed after jdk9 like jaxb, javax etc. If that is the case, you have couple of options here: ...
57,143,884
i'm writing a web scraper with python and beautifulsoup to get data out of a table from a webpage. Link to the table is in the code (url01) I want to know if there is a possibility that the data will be read vertically and not horizontally from the table Here is my code ``` import requests import json from bs4 impor...
2019/07/22
[ "https://Stackoverflow.com/questions/57143884", "https://Stackoverflow.com", "https://Stackoverflow.com/users/-1/" ]
You have not specified exactly which class is not found! Complete stackstrace will help. Nevertheless, as you mentioned it worked on jdk8 which means there is high probability you are using/depending on some class which is removed after jdk9 like jaxb, javax etc. If that is the case, you have couple of options here: ...
It is because the JAXB library (Java Architecture for XML Binding) is missing in the classpath. JAXB is included in Java SE 10 or older, but it is removed from Java SE from Java 11 or newer –moved to Java EE under Jakarta EE project. That means if you encounter JAXBException error, it’s very much likely that you are us...
57,143,884
i'm writing a web scraper with python and beautifulsoup to get data out of a table from a webpage. Link to the table is in the code (url01) I want to know if there is a possibility that the data will be read vertically and not horizontally from the table Here is my code ``` import requests import json from bs4 impor...
2019/07/22
[ "https://Stackoverflow.com/questions/57143884", "https://Stackoverflow.com", "https://Stackoverflow.com/users/-1/" ]
After looking at the complete error trace, it seems the error is originating from the REST-assured library's code. And upgrading `io.rest-assured` dependency from 3.0.0 to 4.0.0 has helped overcome the issue.
you can try changing the version of the rest assured dependency . from 3.0.0 to 4.1.2 ``` <dependency> <groupId>io.rest-assured</groupId> <artifactId>rest-assured</artifactId> <version>4.1.2</version> </dependency> ``` it will help
57,143,884
i'm writing a web scraper with python and beautifulsoup to get data out of a table from a webpage. Link to the table is in the code (url01) I want to know if there is a possibility that the data will be read vertically and not horizontally from the table Here is my code ``` import requests import json from bs4 impor...
2019/07/22
[ "https://Stackoverflow.com/questions/57143884", "https://Stackoverflow.com", "https://Stackoverflow.com/users/-1/" ]
After looking at the complete error trace, it seems the error is originating from the REST-assured library's code. And upgrading `io.rest-assured` dependency from 3.0.0 to 4.0.0 has helped overcome the issue.
It is because the JAXB library (Java Architecture for XML Binding) is missing in the classpath. JAXB is included in Java SE 10 or older, but it is removed from Java SE from Java 11 or newer –moved to Java EE under Jakarta EE project. That means if you encounter JAXBException error, it’s very much likely that you are us...
57,143,884
i'm writing a web scraper with python and beautifulsoup to get data out of a table from a webpage. Link to the table is in the code (url01) I want to know if there is a possibility that the data will be read vertically and not horizontally from the table Here is my code ``` import requests import json from bs4 impor...
2019/07/22
[ "https://Stackoverflow.com/questions/57143884", "https://Stackoverflow.com", "https://Stackoverflow.com/users/-1/" ]
you can try changing the version of the rest assured dependency . from 3.0.0 to 4.1.2 ``` <dependency> <groupId>io.rest-assured</groupId> <artifactId>rest-assured</artifactId> <version>4.1.2</version> </dependency> ``` it will help
It is because the JAXB library (Java Architecture for XML Binding) is missing in the classpath. JAXB is included in Java SE 10 or older, but it is removed from Java SE from Java 11 or newer –moved to Java EE under Jakarta EE project. That means if you encounter JAXBException error, it’s very much likely that you are us...
44,657,449
I tried different ways to set a customized cookie name. But none is working in my configuration. I have a Spring Boot application which is running in a standalone Tomcat. I tried to set the cookie name in the `SpringBootApplication` class which is derived from `SpringBootServletInitializer`: ``` @Value("${session.co...
2017/06/20
[ "https://Stackoverflow.com/questions/44657449", "https://Stackoverflow.com", "https://Stackoverflow.com/users/3443687/" ]
Assuming you have tried shape detectors, line detections, etc and not succeeded here is another way of solving this problem. If this is a grayscale PNG image, you can use segmentation by color to achieve this. I would approach it like so: ``` count = 0 For each pixel in the image: if color(pixel) == white /*255*/...
Filled or not should not make a difference if you find the outer contours (RETR\_EXTERNAL). Following code will give you number 3. [![enter image description here](https://i.stack.imgur.com/WrZEH.png)](https://i.stack.imgur.com/WrZEH.png) ``` canvas = np.zeros(img.shape, np.uint8) img2gray = cv2.cvtColor(img,cv2.COLOR...
66,996,368
I'm currently trying to reverse a doubly-linked list and print it out in C. Unfortunately, my code is only printing one item and I have no idea why. I have looked at multiple solutions on Stack Overflow and online Basically, I pass a txt file that looks like this. ``` Name 100 John 40 ``` Here's the full code: ```...
2021/04/08
[ "https://Stackoverflow.com/questions/66996368", "https://Stackoverflow.com", "https://Stackoverflow.com/users/-1/" ]
As noted in my comments, your problems wasn't in your `reverseList()` function (although it needed help), your problem was in your `add()` function not setting any of the `previous` node pointers. So when you got to the end of your list and attempted to print the list in reverse, all you printed was the current node an...
The code actually seems to be working fine. I'm thinking your test case is not coded correctly, perhaps you forgot to set `mary->previous = john` (or `john->next = mary`) I ran ``` #include <stdio.h> #include <stdlib.h> typedef struct person{ char *firstName; int age; struct person *previous; struct perso...
60,107,824
Please see link below for a sample. Depending on a condition (text) in column A, cell E1 & E2 should auto-populate. This should depend on the condition (text) in column A and total in E5 etc. [Google Docs sample](https://docs.google.com/spreadsheets/d/1IbUthijitKFUsdY-eV9upWNcWhP7AvAGRR842WpkWW8/edit?usp=sharing)
2020/02/07
[ "https://Stackoverflow.com/questions/60107824", "https://Stackoverflow.com", "https://Stackoverflow.com/users/2326092/" ]
**Method 1: use SUMIF()** Cell E1: `=SUMIF(A5:A,"ORDER",E5:E)` Cell E2: `=SUMIF(A5:A,"SALE",E5:E)` --- **Method 2: use SUMIFS()** Cell E1: `=SUMIFS(E5:E,A5:A,"ORDER")` Cell E2: `=SUMIFS(E5:E,A5:A,"SALE")` --- **Method 3: Use SUM() and FILTER()** Cell E1: `=SUM(FILTER(E5:E,A5:A="ORDER"))` Cell E2: `=SUM(FILTER...
paste in **E1** cell: ``` ={SUMIF(A5:A, "order", E5:E); SUMIF(A5:A, "sale", E5:E)} ``` [![0](https://i.stack.imgur.com/iBMjO.png)](https://i.stack.imgur.com/iBMjO.png)
8,368,717
During the development of a software, I need to execute a statement which is stored as a `string`. Say for example: ``` String test = " int a; "; ``` In the above example, I want to declare a variable `a`. Another example is the execution of a mysql statement from a `string`: ``` String sqlquery ="SELECT * FROM ...
2011/12/02
[ "https://Stackoverflow.com/questions/8368717", "https://Stackoverflow.com", "https://Stackoverflow.com/users/977676/" ]
Maybe that's not what you want, but you may use Java's [Reflection API](http://java.sun.com/developer/technicalArticles/ALT/Reflection/) carefully to call methods or something else based on (for example) strings. SQL statements are far different, as they are not really executed by inside Java, they are processed by so...
What you seem to want to do is something like an eval() function for Java. As far as I know, Java doesn't provide one, but it has support for scripting languages, so you might want to fall back to that. I found a [question](https://stackoverflow.com/questions/2605032/using-eval-in-java) on StackOverflow. See the answe...
32,166,359
I have a hash as follows: ``` { :student_name => ['A', 'B', 'C'], :total_marks => [100, 25, 50] } ``` I want to sort each value (array) of this hash by the order of the corresponding element in the value for `:total_marks` when this array is sorted. The resultant hash should look like this: ``` { :student_nam...
2015/08/23
[ "https://Stackoverflow.com/questions/32166359", "https://Stackoverflow.com", "https://Stackoverflow.com/users/2695472/" ]
``` h = {:student_name=>["A", "B", "C"], :total_marks=>[100, 25, 50]} indices = h[:total_marks].to_enum.with_index.sort_by(&:first).map(&:last) h.each{|_, v| v.replace(v.values_at(*indices))} #=> {:student_name=>["B", "C", "A"], :total_marks=>[25, 50, 100]} ```
Given the design of your hash, we need to first pair student and marks together. ``` h = { :student_name => ['A', 'B', 'C'], :total_marks => [100, 25, 50] } student_array = h[:student_name] marks_array = h[:total_marks] student_marks = [] student_array.each_with_index {|student, idx| student_marks << [studen...
32,166,359
I have a hash as follows: ``` { :student_name => ['A', 'B', 'C'], :total_marks => [100, 25, 50] } ``` I want to sort each value (array) of this hash by the order of the corresponding element in the value for `:total_marks` when this array is sorted. The resultant hash should look like this: ``` { :student_nam...
2015/08/23
[ "https://Stackoverflow.com/questions/32166359", "https://Stackoverflow.com", "https://Stackoverflow.com/users/2695472/" ]
If you want the code to be simple and involve the least amount of indirection, I'd recommend holding the student's name and total mark together, rather than as parallel arrays. This way, you can add extra fields without then having to rewrite your sort routine (which would otherwise have to now resort *another* paralle...
``` h = {:student_name=>["A", "B", "C"], :total_marks=>[100, 25, 50]} indices = h[:total_marks].to_enum.with_index.sort_by(&:first).map(&:last) h.each{|_, v| v.replace(v.values_at(*indices))} #=> {:student_name=>["B", "C", "A"], :total_marks=>[25, 50, 100]} ```
32,166,359
I have a hash as follows: ``` { :student_name => ['A', 'B', 'C'], :total_marks => [100, 25, 50] } ``` I want to sort each value (array) of this hash by the order of the corresponding element in the value for `:total_marks` when this array is sorted. The resultant hash should look like this: ``` { :student_nam...
2015/08/23
[ "https://Stackoverflow.com/questions/32166359", "https://Stackoverflow.com", "https://Stackoverflow.com/users/2695472/" ]
``` h = {:student_name=>["A", "B", "C"], :total_marks=>[100, 25, 50]} indices = h[:total_marks].to_enum.with_index.sort_by(&:first).map(&:last) h.each{|_, v| v.replace(v.values_at(*indices))} #=> {:student_name=>["B", "C", "A"], :total_marks=>[25, 50, 100]} ```
``` marks, names = [h[:total_marks], h[:student_name]].transpose. sort_by(&:first).transpose #=> [[25, 50, 100], ["B", "C", "A"]] { student_name: names, total_marks: marks } #=> {:student_name=>["B", "C", "A"], :total_marks=>[25, 50, 100]} ``` The steps: ``` a = [h[:total_marks], h[:student_name]] #=> [[10...
32,166,359
I have a hash as follows: ``` { :student_name => ['A', 'B', 'C'], :total_marks => [100, 25, 50] } ``` I want to sort each value (array) of this hash by the order of the corresponding element in the value for `:total_marks` when this array is sorted. The resultant hash should look like this: ``` { :student_nam...
2015/08/23
[ "https://Stackoverflow.com/questions/32166359", "https://Stackoverflow.com", "https://Stackoverflow.com/users/2695472/" ]
If you want the code to be simple and involve the least amount of indirection, I'd recommend holding the student's name and total mark together, rather than as parallel arrays. This way, you can add extra fields without then having to rewrite your sort routine (which would otherwise have to now resort *another* paralle...
Given the design of your hash, we need to first pair student and marks together. ``` h = { :student_name => ['A', 'B', 'C'], :total_marks => [100, 25, 50] } student_array = h[:student_name] marks_array = h[:total_marks] student_marks = [] student_array.each_with_index {|student, idx| student_marks << [studen...
32,166,359
I have a hash as follows: ``` { :student_name => ['A', 'B', 'C'], :total_marks => [100, 25, 50] } ``` I want to sort each value (array) of this hash by the order of the corresponding element in the value for `:total_marks` when this array is sorted. The resultant hash should look like this: ``` { :student_nam...
2015/08/23
[ "https://Stackoverflow.com/questions/32166359", "https://Stackoverflow.com", "https://Stackoverflow.com/users/2695472/" ]
Given the design of your hash, we need to first pair student and marks together. ``` h = { :student_name => ['A', 'B', 'C'], :total_marks => [100, 25, 50] } student_array = h[:student_name] marks_array = h[:total_marks] student_marks = [] student_array.each_with_index {|student, idx| student_marks << [studen...
``` marks, names = [h[:total_marks], h[:student_name]].transpose. sort_by(&:first).transpose #=> [[25, 50, 100], ["B", "C", "A"]] { student_name: names, total_marks: marks } #=> {:student_name=>["B", "C", "A"], :total_marks=>[25, 50, 100]} ``` The steps: ``` a = [h[:total_marks], h[:student_name]] #=> [[10...
32,166,359
I have a hash as follows: ``` { :student_name => ['A', 'B', 'C'], :total_marks => [100, 25, 50] } ``` I want to sort each value (array) of this hash by the order of the corresponding element in the value for `:total_marks` when this array is sorted. The resultant hash should look like this: ``` { :student_nam...
2015/08/23
[ "https://Stackoverflow.com/questions/32166359", "https://Stackoverflow.com", "https://Stackoverflow.com/users/2695472/" ]
If you want the code to be simple and involve the least amount of indirection, I'd recommend holding the student's name and total mark together, rather than as parallel arrays. This way, you can add extra fields without then having to rewrite your sort routine (which would otherwise have to now resort *another* paralle...
``` marks, names = [h[:total_marks], h[:student_name]].transpose. sort_by(&:first).transpose #=> [[25, 50, 100], ["B", "C", "A"]] { student_name: names, total_marks: marks } #=> {:student_name=>["B", "C", "A"], :total_marks=>[25, 50, 100]} ``` The steps: ``` a = [h[:total_marks], h[:student_name]] #=> [[10...
3,517,346
How do you handle user stories/acceptance tests that have long chains like this one, where the Then/When mingle together? Is it best to split this into a separate acceptance test where one tests that the dialog appears and then the second one tests the behavior after the dialog has been shown? ``` Feature: Confirmatio...
2010/08/18
[ "https://Stackoverflow.com/questions/3517346", "https://Stackoverflow.com", "https://Stackoverflow.com/users/192227/" ]
Your scenario seems a little long, and it's quite heavily tied to the gui. What would happen if you tied it to the capabilities of the system instead? ``` Scenario: I want to remove an item from my cart Given I have a cart containing "xyz" When I remove "xyz" from my cart Then my cart should be empty. ``` The ...
The question is really one of what the "branches" are. If there are multiple steps there must be user choices at each step. There should be multiple "When"'s. This should form a rich tree with lots of user-selected alternatives at each branch. Each possible outcome should have it's own test to make the various choice...
14,579,756
I am developing a (hopefully) RESTful API using ServiceStack. I noticed that most of my services look the same, for example, a GET method will look **something** like this: ``` try { Validate(); GetData(); return Response(); } catch (Exception) ...
2013/01/29
[ "https://Stackoverflow.com/questions/14579756", "https://Stackoverflow.com", "https://Stackoverflow.com/users/748376/" ]
To do this in the [New API](https://github.com/ServiceStack/ServiceStack/wiki/New-Api) we've introduced the concept of a IServiceRunner that decouples the execution of your service from the implementation of it. To add your own Service Hooks you just need to override the default Service Runner in your AppHost from its...
My solution was to add an additional layer where I can handle Logic per entity: Base Logic Sample: ``` public interface IEntity { long Id { get; set; } } public interface IReadOnlyLogic<Entity> where Entity : class, IEntity { List<Entity> GetAll(); Entity GetById(long Id); } public abstract class ReadOnl...
61,531,658
I am using an library called CircularFloating to show menu in my homepage in one fragment but when i click and go to the next fragmetn it still appears to be in next fragment also. how can I remove or set visibility off when I move to next fragments. here is my code. ```html SubActionButton.Builder itemBuil...
2020/04/30
[ "https://Stackoverflow.com/questions/61531658", "https://Stackoverflow.com", "https://Stackoverflow.com/users/11825079/" ]
Your iterations are giving differences based on the random sampling performed by `caret::createDataPartition`. To make this reproducible, you can use the `doRNG` package written for this purpose - a big thanks to @HenrikB for enlightening me about this! **Edit:** fixed the foreach function (did not change the result)...
Try this `set.seed(1)` and set it before `training` model. For more information call in `R` this command `?set.seed()`, it is described quite well there. The `seed number` is the starting point of the generation of a sequence of random numbers. For more information [here](https://www.rdocumentation.org/packages/simEd/v...
22,896,846
I can't connect to my database while running this page on submitting updated details. For the life of me can't figure out why it wont connect. Most recent error: > > Warning: mysql\_connect() [function.mysql-connect]: Access denied for user 'MattS1'@'localhost' (using password: YES) in F:\xampp\htdocs\Site\ProfileU...
2014/04/06
[ "https://Stackoverflow.com/questions/22896846", "https://Stackoverflow.com", "https://Stackoverflow.com/users/3503341/" ]
replace this: ``` mysql_connect("$hostname", "$username", "$password")or die("cannot connect"); mysql_select_db("$databasename")or die("cannot select DB"); ``` to ``` mysql_connect($hostname, $username, $password)or die(mysql_error()); mysql_select_db($databasename)or die(mysql_error()); ``` * don't use quote...
``` mysql_connect("$hostname", "$username", "$password")or die("cannot connect"); mysql_select_db("$databasename")or die("cannot select DB"); ``` You should remove the speechmarks between each variable, check that the MySQL user and MySQL database are connected and have valid permissions, check also that the MySQL us...
22,896,846
I can't connect to my database while running this page on submitting updated details. For the life of me can't figure out why it wont connect. Most recent error: > > Warning: mysql\_connect() [function.mysql-connect]: Access denied for user 'MattS1'@'localhost' (using password: YES) in F:\xampp\htdocs\Site\ProfileU...
2014/04/06
[ "https://Stackoverflow.com/questions/22896846", "https://Stackoverflow.com", "https://Stackoverflow.com/users/3503341/" ]
Haha sorry, but I see your problem. You overwrite your username :) ``` $username = "root"; ``` and ``` $username = trim($_POST["Username"]); ``` Hence the error for this user: > > Access denied for user 'MattS1'@'localhost' > > > Rather than user "root".
``` mysql_connect("$hostname", "$username", "$password")or die("cannot connect"); mysql_select_db("$databasename")or die("cannot select DB"); ``` You should remove the speechmarks between each variable, check that the MySQL user and MySQL database are connected and have valid permissions, check also that the MySQL us...
7,304,967
I've got this flash/flex application and issue with `URLRequest` call. When call is made to server I get content just fine. After that content is stored in cache and next time URLRequest uses local cache to retrieve it. **Sometimes it works, but sometimes call is never finished - stays in pending**. I'm using latest fl...
2011/09/05
[ "https://Stackoverflow.com/questions/7304967", "https://Stackoverflow.com", "https://Stackoverflow.com/users/928412/" ]
ICU is only multimegabyte if you go with a default build including [all this](http://icu-project.org/apiref/icu4c/files.html), hundreds of codepages and several hundred locales worth of data. Have a look at ["Making ICU Smaller"](http://userguide.icu-project.org/packaging#TOC-Making-ICU-Smaller). I just added a note a...
If you want something smaller than ICU, check [UTF8-CPP library](https://github.com/nemtrif/utfcpp).
7,304,967
I've got this flash/flex application and issue with `URLRequest` call. When call is made to server I get content just fine. After that content is stored in cache and next time URLRequest uses local cache to retrieve it. **Sometimes it works, but sometimes call is never finished - stays in pending**. I'm using latest fl...
2011/09/05
[ "https://Stackoverflow.com/questions/7304967", "https://Stackoverflow.com", "https://Stackoverflow.com/users/928412/" ]
`std::string` is capable of storing UTF-8 directly. You will need special libraries, like ICU, only if you want to parse strings in some way. For a simple output without parsing, just go with `std::string` and forget about all those libraries.
If you want something smaller than ICU, check [UTF8-CPP library](https://github.com/nemtrif/utfcpp).
7,304,967
I've got this flash/flex application and issue with `URLRequest` call. When call is made to server I get content just fine. After that content is stored in cache and next time URLRequest uses local cache to retrieve it. **Sometimes it works, but sometimes call is never finished - stays in pending**. I'm using latest fl...
2011/09/05
[ "https://Stackoverflow.com/questions/7304967", "https://Stackoverflow.com", "https://Stackoverflow.com/users/928412/" ]
ICU is only multimegabyte if you go with a default build including [all this](http://icu-project.org/apiref/icu4c/files.html), hundreds of codepages and several hundred locales worth of data. Have a look at ["Making ICU Smaller"](http://userguide.icu-project.org/packaging#TOC-Making-ICU-Smaller). I just added a note a...
`std::string` is capable of storing UTF-8 directly. You will need special libraries, like ICU, only if you want to parse strings in some way. For a simple output without parsing, just go with `std::string` and forget about all those libraries.
7,304,967
I've got this flash/flex application and issue with `URLRequest` call. When call is made to server I get content just fine. After that content is stored in cache and next time URLRequest uses local cache to retrieve it. **Sometimes it works, but sometimes call is never finished - stays in pending**. I'm using latest fl...
2011/09/05
[ "https://Stackoverflow.com/questions/7304967", "https://Stackoverflow.com", "https://Stackoverflow.com/users/928412/" ]
ICU is only multimegabyte if you go with a default build including [all this](http://icu-project.org/apiref/icu4c/files.html), hundreds of codepages and several hundred locales worth of data. Have a look at ["Making ICU Smaller"](http://userguide.icu-project.org/packaging#TOC-Making-ICU-Smaller). I just added a note a...
Alternative lib: [Iconv](http://www.gnu.org/software/libiconv/) Size: about 900kb (which is smaller in APK)
7,304,967
I've got this flash/flex application and issue with `URLRequest` call. When call is made to server I get content just fine. After that content is stored in cache and next time URLRequest uses local cache to retrieve it. **Sometimes it works, but sometimes call is never finished - stays in pending**. I'm using latest fl...
2011/09/05
[ "https://Stackoverflow.com/questions/7304967", "https://Stackoverflow.com", "https://Stackoverflow.com/users/928412/" ]
`std::string` is capable of storing UTF-8 directly. You will need special libraries, like ICU, only if you want to parse strings in some way. For a simple output without parsing, just go with `std::string` and forget about all those libraries.
Alternative lib: [Iconv](http://www.gnu.org/software/libiconv/) Size: about 900kb (which is smaller in APK)
17,633,785
I have created a custom newform.aspx by cloning the form generated by SharePoint Designer and added it to a VS2010 project. Everything seems to be working fine like setting the value etc... but I couldn't figure out how to set the `Required` property of a field. Based on a certain condition I would like to set the req...
2013/07/13
[ "https://Stackoverflow.com/questions/17633785", "https://Stackoverflow.com", "https://Stackoverflow.com/users/2579850/" ]
Its a self calling function, that invokes its self as the script finishes loading. You can call it without arguments, or you can add arguments to it such as `window` or `document`. You use it in a way that jQuery use it: ``` (function( window, undefined ) { // jQuery code })(window); ``` An (almost) alternative...
Self invoking function, basically it calls itself stright away. Used normally to pass in a variable like jQuery to insure that `$` is truly the jQuery object! ``` (function($){ // $ now is equal to jQuery })(jQuery); ```
17,633,785
I have created a custom newform.aspx by cloning the form generated by SharePoint Designer and added it to a VS2010 project. Everything seems to be working fine like setting the value etc... but I couldn't figure out how to set the `Required` property of a field. Based on a certain condition I would like to set the req...
2013/07/13
[ "https://Stackoverflow.com/questions/17633785", "https://Stackoverflow.com", "https://Stackoverflow.com/users/2579850/" ]
This ``` (function(){ alert('hello'); })(); ``` although it is a function is it called automatically so you dont/can't call it manually These can be useful for `for` loops like so This will fail because i would be equal to 9 after 5 seconds ``` for(var i = 0; i < 10; i++) { window.setTimeout(function(){ ...
Self invoking function, basically it calls itself stright away. Used normally to pass in a variable like jQuery to insure that `$` is truly the jQuery object! ``` (function($){ // $ now is equal to jQuery })(jQuery); ```
17,633,785
I have created a custom newform.aspx by cloning the form generated by SharePoint Designer and added it to a VS2010 project. Everything seems to be working fine like setting the value etc... but I couldn't figure out how to set the `Required` property of a field. Based on a certain condition I would like to set the req...
2013/07/13
[ "https://Stackoverflow.com/questions/17633785", "https://Stackoverflow.com", "https://Stackoverflow.com/users/2579850/" ]
The last set of parentheses causes the function to execute immediately. A function is created and executed without ever assigning it anywhere. The reason one might wrap their code in a function like this is to encapsulate code. Take this for example: ``` var myVar = 'whatever'; function shout() { alert(myVar); } ``` ...
Self invoking function, basically it calls itself stright away. Used normally to pass in a variable like jQuery to insure that `$` is truly the jQuery object! ``` (function($){ // $ now is equal to jQuery })(jQuery); ```
17,633,785
I have created a custom newform.aspx by cloning the form generated by SharePoint Designer and added it to a VS2010 project. Everything seems to be working fine like setting the value etc... but I couldn't figure out how to set the `Required` property of a field. Based on a certain condition I would like to set the req...
2013/07/13
[ "https://Stackoverflow.com/questions/17633785", "https://Stackoverflow.com", "https://Stackoverflow.com/users/2579850/" ]
This ``` (function(){ alert('hello'); })(); ``` although it is a function is it called automatically so you dont/can't call it manually These can be useful for `for` loops like so This will fail because i would be equal to 9 after 5 seconds ``` for(var i = 0; i < 10; i++) { window.setTimeout(function(){ ...
Its a self calling function, that invokes its self as the script finishes loading. You can call it without arguments, or you can add arguments to it such as `window` or `document`. You use it in a way that jQuery use it: ``` (function( window, undefined ) { // jQuery code })(window); ``` An (almost) alternative...
17,633,785
I have created a custom newform.aspx by cloning the form generated by SharePoint Designer and added it to a VS2010 project. Everything seems to be working fine like setting the value etc... but I couldn't figure out how to set the `Required` property of a field. Based on a certain condition I would like to set the req...
2013/07/13
[ "https://Stackoverflow.com/questions/17633785", "https://Stackoverflow.com", "https://Stackoverflow.com/users/2579850/" ]
Its a self calling function, that invokes its self as the script finishes loading. You can call it without arguments, or you can add arguments to it such as `window` or `document`. You use it in a way that jQuery use it: ``` (function( window, undefined ) { // jQuery code })(window); ``` An (almost) alternative...
It runs the function you just created. The reason to do this is that it encloses all of the code you write within a new scope. This means when you define `vars` and `functions`, they will be kept within the scope of that `function()` you just created. In short, it encapsulates code.
17,633,785
I have created a custom newform.aspx by cloning the form generated by SharePoint Designer and added it to a VS2010 project. Everything seems to be working fine like setting the value etc... but I couldn't figure out how to set the `Required` property of a field. Based on a certain condition I would like to set the req...
2013/07/13
[ "https://Stackoverflow.com/questions/17633785", "https://Stackoverflow.com", "https://Stackoverflow.com/users/2579850/" ]
Its a self calling function, that invokes its self as the script finishes loading. You can call it without arguments, or you can add arguments to it such as `window` or `document`. You use it in a way that jQuery use it: ``` (function( window, undefined ) { // jQuery code })(window); ``` An (almost) alternative...
The last set of parentheses causes the function to execute immediately. A function is created and executed without ever assigning it anywhere. The reason one might wrap their code in a function like this is to encapsulate code. Take this for example: ``` var myVar = 'whatever'; function shout() { alert(myVar); } ``` ...
17,633,785
I have created a custom newform.aspx by cloning the form generated by SharePoint Designer and added it to a VS2010 project. Everything seems to be working fine like setting the value etc... but I couldn't figure out how to set the `Required` property of a field. Based on a certain condition I would like to set the req...
2013/07/13
[ "https://Stackoverflow.com/questions/17633785", "https://Stackoverflow.com", "https://Stackoverflow.com/users/2579850/" ]
This ``` (function(){ alert('hello'); })(); ``` although it is a function is it called automatically so you dont/can't call it manually These can be useful for `for` loops like so This will fail because i would be equal to 9 after 5 seconds ``` for(var i = 0; i < 10; i++) { window.setTimeout(function(){ ...
It runs the function you just created. The reason to do this is that it encloses all of the code you write within a new scope. This means when you define `vars` and `functions`, they will be kept within the scope of that `function()` you just created. In short, it encapsulates code.
17,633,785
I have created a custom newform.aspx by cloning the form generated by SharePoint Designer and added it to a VS2010 project. Everything seems to be working fine like setting the value etc... but I couldn't figure out how to set the `Required` property of a field. Based on a certain condition I would like to set the req...
2013/07/13
[ "https://Stackoverflow.com/questions/17633785", "https://Stackoverflow.com", "https://Stackoverflow.com/users/2579850/" ]
This ``` (function(){ alert('hello'); })(); ``` although it is a function is it called automatically so you dont/can't call it manually These can be useful for `for` loops like so This will fail because i would be equal to 9 after 5 seconds ``` for(var i = 0; i < 10; i++) { window.setTimeout(function(){ ...
The last set of parentheses causes the function to execute immediately. A function is created and executed without ever assigning it anywhere. The reason one might wrap their code in a function like this is to encapsulate code. Take this for example: ``` var myVar = 'whatever'; function shout() { alert(myVar); } ``` ...
17,633,785
I have created a custom newform.aspx by cloning the form generated by SharePoint Designer and added it to a VS2010 project. Everything seems to be working fine like setting the value etc... but I couldn't figure out how to set the `Required` property of a field. Based on a certain condition I would like to set the req...
2013/07/13
[ "https://Stackoverflow.com/questions/17633785", "https://Stackoverflow.com", "https://Stackoverflow.com/users/2579850/" ]
The last set of parentheses causes the function to execute immediately. A function is created and executed without ever assigning it anywhere. The reason one might wrap their code in a function like this is to encapsulate code. Take this for example: ``` var myVar = 'whatever'; function shout() { alert(myVar); } ``` ...
It runs the function you just created. The reason to do this is that it encloses all of the code you write within a new scope. This means when you define `vars` and `functions`, they will be kept within the scope of that `function()` you just created. In short, it encapsulates code.
65,865,720
In R I would like to replace the x\_axis labels with qrtr\_text = (q3\_2019,q4\_2019,q1\_2020,q2\_2020,q3\_2020,q4\_2020) instead of (0,1,2,3,4,5). In the tibble, I have the qrtr\_text data in the 2nd column of the tibble that I want on the graph replacing 0,1,2,3,4,5. I have tried adding to the ggplot aes statement, ...
2021/01/23
[ "https://Stackoverflow.com/questions/65865720", "https://Stackoverflow.com", "https://Stackoverflow.com/users/1871493/" ]
Here the issue is your image files aren't accessible in public so in laravel you want to run `php artisan storage:link` then you can access your images. More info check [The Public Disk](https://laravel.com/docs/8.x/filesystem#the-public-disk)
Ok, you are saying that you can't access the terminal on your hosting plan. Here's a programmatical solution, create a web route inside routes/web.php: ``` Route::get('/link', function () { Artisan::call('storage:link'); }); ``` Then visit that link using your web browser `yourdomain.com/link`. If it didn't work...
16,609,280
Is there a way to use the patter `\p{Punct}` in a regex in Java without the Symbol `|`. I tried `\\p{Punct}&&[^|]`, but it didn't worked.
2013/05/17
[ "https://Stackoverflow.com/questions/16609280", "https://Stackoverflow.com", "https://Stackoverflow.com/users/2393897/" ]
What you have is nearly correct. The correct syntax is: ``` [\\p{Punct}&&[^|]] ```
do you try with this class : `[^\\P{Punct}|]` (note the uppercase P)
16,609,280
Is there a way to use the patter `\p{Punct}` in a regex in Java without the Symbol `|`. I tried `\\p{Punct}&&[^|]`, but it didn't worked.
2013/05/17
[ "https://Stackoverflow.com/questions/16609280", "https://Stackoverflow.com", "https://Stackoverflow.com/users/2393897/" ]
What you have is nearly correct. The correct syntax is: ``` [\\p{Punct}&&[^|]] ```
Did you see this question: [Punctuation Regex in Java](https://stackoverflow.com/questions/8200908/punctuation-regex-in-java)? I think you can modify that answer slightly to use `(?![|])\\p{Punct}`
6,282,953
I am returning a JSON object from my web service method. The object has some dates in it and so the generated JSON is like the following: ``` {"d": [ {"PeriodID":8,"Period":"072011","BeginDate":"\/Date(1294268400000)\/"}, {"PeriodID":2,"Period":"052011","BeginDate":"\/Date(1293836400000)\/"} ]} ``` I am tryi...
2011/06/08
[ "https://Stackoverflow.com/questions/6282953", "https://Stackoverflow.com", "https://Stackoverflow.com/users/431537/" ]
use [UIScrollView](http://developer.apple.com/library/ios/#documentation/UIKit/Reference/UIScrollView_Class/Reference/UIScrollView.html)
You can't alter a `UIPickerView` object much so you should consider a rotated `UITableView` object. More than subclass, you will need to build a composite view that basically mirrors some of the methods of the `UITableView` object. And you will have to add appropriate methods that handle the selected value.
6,866,764
I am trying to create a multiselect list from json store, which is in this format ``` [{"photo_id":1,"file_name":"test.JPG","x":123,"y":456},{"photo_id":2,"file_name":"test2.JPG","x":321,"y":765}] ``` The multiselect list populates the rows but it doesn't show the file\_name in the list ``` var storeVar = new Ext.d...
2011/07/28
[ "https://Stackoverflow.com/questions/6866764", "https://Stackoverflow.com", "https://Stackoverflow.com/users/854698/" ]
Grigor, you can use [Ext.JSON.decode](http://docs.sencha.com/ext-js/4-0/#/api/Ext.JSON-method-decode) to decode your string in json format: ``` var storeVar = new Ext.data.Store({ extend: 'Ext.data.Model', fields: ['photo_id', 'file_name'], data: Ext.JSON.decode(store) // contains the json }); ``` [Here ...
You are mixing the creation of the Store with the definition of a model: The line ``` extend: 'Ext.data.Model' ``` has no effects on a Store, check examples on documentation [docs](http://docs.sencha.com/ext-js/4-0/#/api/Ext.data.Store) I can't comment/edit on questions so I write it in a new answer.
34,224,225
I need to install Ansible Control Machine behind a corporate firewall with no internet access. I can't find documentation for an offline install. I have access on my workstation to download anything I want and can copy it to the target machine. I have tried searching online but have not been able to find examples on ho...
2015/12/11
[ "https://Stackoverflow.com/questions/34224225", "https://Stackoverflow.com", "https://Stackoverflow.com/users/409401/" ]
I did a testing on my RH6, so if you have a RH6 with Internet access to download all required installation file, and a RH6 installation ISO. You should be able to achieve this. Assuming you have a RH6 which has Internet access, let's call it A. And another one doesn't have access: B. 1. download Ansible and Jinja2 fr...
I know this is a very old question, but I've found the answer in [this blog post](http://www.linuxschoolonline.com/how-to-install-ansible-offline-on-centos-or-redhat/) and I believe that could help someone out there. Although this post aproach is on a CentOS/RHEL machine, I believe the procedure is very similar to oth...
716,199
I just did the upgrade from version 12.04 to 14.04 and immediately had some problems. Whenever I try to open certain webpages using Firefox or Chrome, the screen just freezes. Mouse and keyboard are not responding and shortly after that system automatically logs out. It's especially problematic with Firefox. Most of ...
2016/01/03
[ "https://askubuntu.com/questions/716199", "https://askubuntu.com", "https://askubuntu.com/users/488576/" ]
Use command of "software-properties-gtk -open-tab=4" to change the your graphic card driver (called as restricted drivers)
`rm -fr ~/.mozilla` and then try run `firefox` again! ~/.mozilla is firefox user data folder including personal input info and your own plugins, removing will let you run firefox from zero configuration, just like you run firefox at first time
716,199
I just did the upgrade from version 12.04 to 14.04 and immediately had some problems. Whenever I try to open certain webpages using Firefox or Chrome, the screen just freezes. Mouse and keyboard are not responding and shortly after that system automatically logs out. It's especially problematic with Firefox. Most of ...
2016/01/03
[ "https://askubuntu.com/questions/716199", "https://askubuntu.com", "https://askubuntu.com/users/488576/" ]
Please try the below command to removing the adobe flash plugin and see if the change can help. "sudo apt-get purge flashplugin-installer"
`rm -fr ~/.mozilla` and then try run `firefox` again! ~/.mozilla is firefox user data folder including personal input info and your own plugins, removing will let you run firefox from zero configuration, just like you run firefox at first time
1,281,449
I've got a project where I need to generate PDF reports from a template. The report will have a header, details and a footer, and can potentially run on multiple pages. I was going to use iTextSharp for that. For the templates i was thinking of two options: * PDF Form template * HTML template Can you comment on the ...
2009/08/15
[ "https://Stackoverflow.com/questions/1281449", "https://Stackoverflow.com", "https://Stackoverflow.com/users/10793/" ]
Yes you can. But first install VS 6.0 , Then VS 2008. Else VS 6 will mess around with defaults of VS2008. VS 2008 is Vs 6 aware but not vice versa.
Nope, but I'd recommend installing them starting from the earliest version first.
1,281,449
I've got a project where I need to generate PDF reports from a template. The report will have a header, details and a footer, and can potentially run on multiple pages. I was going to use iTextSharp for that. For the templates i was thinking of two options: * PDF Form template * HTML template Can you comment on the ...
2009/08/15
[ "https://Stackoverflow.com/questions/1281449", "https://Stackoverflow.com", "https://Stackoverflow.com/users/10793/" ]
Yes you can. But first install VS 6.0 , Then VS 2008. Else VS 6 will mess around with defaults of VS2008. VS 2008 is Vs 6 aware but not vice versa.
Yes you can, I'm running VS 6.0, VS 2003, 2005 and 2008 on Vista Business. I'd suggest installing them in that order. In addition make sure you install the service packs for each environment after the main install to avoid conflicts, e.g. VS 6.0, VS 6.0 SP1, VS 2003, VS 2003 SP1, VS 2003 SP2, etc.
39,566
What I know about metabolism is that,during exercise body uses carbohydrate first then fats and then protein,so my question is why does body prefer glucose first as fuel for energy and what makes glucose biochemically preferred molecule to be metabolized first
2015/10/14
[ "https://biology.stackexchange.com/questions/39566", "https://biology.stackexchange.com", "https://biology.stackexchange.com/users/19374/" ]
None of them can be directly use for energy. We all talk about aerobic oxidation, which is the major process for metabolism. They all need to go into the tricarboxylic acid cycle (TCA cycle) and oxidation phosphorylation to produce ATP, which is the energy used in organism. For glucose, they can break down into two p...
I already forget all of the structure of carbohydrate, fat and also protein. But I still remember the reason for body using order of these compounds is related to the structure. None all of carbohydrate can be directly used, only simple carbohydrate, like glucose, can be directly used. For fat, it can be turn by car...
25,686
Suppose that I posted, as an answer, a fairly good hint to a question, but the OP still can't solve it on their own, and they ask me for further details. Would it be rude if I did not reply? The only reason I'd choose to do that would be foreseeing that it would lead to me eventually giving out a detailed, complete an...
2017/01/15
[ "https://math.meta.stackexchange.com/questions/25686", "https://math.meta.stackexchange.com", "https://math.meta.stackexchange.com/users/-1/" ]
Nope. Nobody has the right to usurp your time. In fact, it is rude of someone to expect that you drop everything to answer every single follow-up question they may possibly have. You are here for your enjoyment, not out of a debt to anyone.
In the specific case you describe I second what J.M. said. In my opinion the most apt course of action is to state that you do not wish to elaborate. This has several advantages: 1. OP knows there is no point in waiting for you to reply. 2. Others will know that you decided actively not to elaborate further and thi...
25,686
Suppose that I posted, as an answer, a fairly good hint to a question, but the OP still can't solve it on their own, and they ask me for further details. Would it be rude if I did not reply? The only reason I'd choose to do that would be foreseeing that it would lead to me eventually giving out a detailed, complete an...
2017/01/15
[ "https://math.meta.stackexchange.com/questions/25686", "https://math.meta.stackexchange.com", "https://math.meta.stackexchange.com/users/-1/" ]
Nope. Nobody has the right to usurp your time. In fact, it is rude of someone to expect that you drop everything to answer every single follow-up question they may possibly have. You are here for your enjoyment, not out of a debt to anyone.
It depends on the circumstance. If you post one comment or answer (a hint, as you say) and the OP requests further clarification in the comments and you choose not to reply, I believe that is rude. Facilitating mathematical discussion is the reason we have a "commenting" system; if you're uninterested in discussing, do...
25,686
Suppose that I posted, as an answer, a fairly good hint to a question, but the OP still can't solve it on their own, and they ask me for further details. Would it be rude if I did not reply? The only reason I'd choose to do that would be foreseeing that it would lead to me eventually giving out a detailed, complete an...
2017/01/15
[ "https://math.meta.stackexchange.com/questions/25686", "https://math.meta.stackexchange.com", "https://math.meta.stackexchange.com/users/-1/" ]
Nope. Nobody has the right to usurp your time. In fact, it is rude of someone to expect that you drop everything to answer every single follow-up question they may possibly have. You are here for your enjoyment, not out of a debt to anyone.
I believe that simply choosing not to reply is a bit rude. I would support leaving a comment such as "Please put more effort into this question. I would rather not post a full solution" instead of not replying.
25,686
Suppose that I posted, as an answer, a fairly good hint to a question, but the OP still can't solve it on their own, and they ask me for further details. Would it be rude if I did not reply? The only reason I'd choose to do that would be foreseeing that it would lead to me eventually giving out a detailed, complete an...
2017/01/15
[ "https://math.meta.stackexchange.com/questions/25686", "https://math.meta.stackexchange.com", "https://math.meta.stackexchange.com/users/-1/" ]
Nope. Nobody has the right to usurp your time. In fact, it is rude of someone to expect that you drop everything to answer every single follow-up question they may possibly have. You are here for your enjoyment, not out of a debt to anyone.
I understand your point that sometimes you feel that the student is not giving a minimum effort, and it is true that you have no moral obligation to reply and elaborate. The best course of action however, in my eyes, as a student, is to reply by saying something along the lines of: "what I have written is a direct ba...
25,686
Suppose that I posted, as an answer, a fairly good hint to a question, but the OP still can't solve it on their own, and they ask me for further details. Would it be rude if I did not reply? The only reason I'd choose to do that would be foreseeing that it would lead to me eventually giving out a detailed, complete an...
2017/01/15
[ "https://math.meta.stackexchange.com/questions/25686", "https://math.meta.stackexchange.com", "https://math.meta.stackexchange.com/users/-1/" ]
Nope. Nobody has the right to usurp your time. In fact, it is rude of someone to expect that you drop everything to answer every single follow-up question they may possibly have. You are here for your enjoyment, not out of a debt to anyone.
Think about what you would want, if you were asking the question. (You should be able to figure out the answer from this fairly good hint.)
25,686
Suppose that I posted, as an answer, a fairly good hint to a question, but the OP still can't solve it on their own, and they ask me for further details. Would it be rude if I did not reply? The only reason I'd choose to do that would be foreseeing that it would lead to me eventually giving out a detailed, complete an...
2017/01/15
[ "https://math.meta.stackexchange.com/questions/25686", "https://math.meta.stackexchange.com", "https://math.meta.stackexchange.com/users/-1/" ]
In the specific case you describe I second what J.M. said. In my opinion the most apt course of action is to state that you do not wish to elaborate. This has several advantages: 1. OP knows there is no point in waiting for you to reply. 2. Others will know that you decided actively not to elaborate further and thi...
It depends on the circumstance. If you post one comment or answer (a hint, as you say) and the OP requests further clarification in the comments and you choose not to reply, I believe that is rude. Facilitating mathematical discussion is the reason we have a "commenting" system; if you're uninterested in discussing, do...
25,686
Suppose that I posted, as an answer, a fairly good hint to a question, but the OP still can't solve it on their own, and they ask me for further details. Would it be rude if I did not reply? The only reason I'd choose to do that would be foreseeing that it would lead to me eventually giving out a detailed, complete an...
2017/01/15
[ "https://math.meta.stackexchange.com/questions/25686", "https://math.meta.stackexchange.com", "https://math.meta.stackexchange.com/users/-1/" ]
In the specific case you describe I second what J.M. said. In my opinion the most apt course of action is to state that you do not wish to elaborate. This has several advantages: 1. OP knows there is no point in waiting for you to reply. 2. Others will know that you decided actively not to elaborate further and thi...
I believe that simply choosing not to reply is a bit rude. I would support leaving a comment such as "Please put more effort into this question. I would rather not post a full solution" instead of not replying.
25,686
Suppose that I posted, as an answer, a fairly good hint to a question, but the OP still can't solve it on their own, and they ask me for further details. Would it be rude if I did not reply? The only reason I'd choose to do that would be foreseeing that it would lead to me eventually giving out a detailed, complete an...
2017/01/15
[ "https://math.meta.stackexchange.com/questions/25686", "https://math.meta.stackexchange.com", "https://math.meta.stackexchange.com/users/-1/" ]
In the specific case you describe I second what J.M. said. In my opinion the most apt course of action is to state that you do not wish to elaborate. This has several advantages: 1. OP knows there is no point in waiting for you to reply. 2. Others will know that you decided actively not to elaborate further and thi...
I understand your point that sometimes you feel that the student is not giving a minimum effort, and it is true that you have no moral obligation to reply and elaborate. The best course of action however, in my eyes, as a student, is to reply by saying something along the lines of: "what I have written is a direct ba...
25,686
Suppose that I posted, as an answer, a fairly good hint to a question, but the OP still can't solve it on their own, and they ask me for further details. Would it be rude if I did not reply? The only reason I'd choose to do that would be foreseeing that it would lead to me eventually giving out a detailed, complete an...
2017/01/15
[ "https://math.meta.stackexchange.com/questions/25686", "https://math.meta.stackexchange.com", "https://math.meta.stackexchange.com/users/-1/" ]
In the specific case you describe I second what J.M. said. In my opinion the most apt course of action is to state that you do not wish to elaborate. This has several advantages: 1. OP knows there is no point in waiting for you to reply. 2. Others will know that you decided actively not to elaborate further and thi...
Think about what you would want, if you were asking the question. (You should be able to figure out the answer from this fairly good hint.)
40,933
Classic agglomerative hierarchical clustering methods are based on a [greedy algorithm](http://en.wikipedia.org/wiki/Greedy_algorithm). This means that they (many of them) are prone to give sub-optimal solutions instead of the global optimum result, especially on later steps of agglomeration. To clarify: each of the ag...
2012/10/22
[ "https://stats.stackexchange.com/questions/40933", "https://stats.stackexchange.com", "https://stats.stackexchange.com/users/3277/" ]
Only single-linkage is optimal. Complete-linkage fails, so your intuition was wrong there. ;-) As a simple example, consider the one-dimensional data set 1,2,3,4,5,6. The (unique) optimum solution for complete linkage with two clusters is (1,2,3) and (4,5,6) (complete linkage height 2). The (unique) optimum solution ...
A partial answer to your question follows. Single linkage clustering is equivalent to the computation of a minimal spanning tree (references are easy to find). If we disregard ties the result is garantueed to be an optimal solution, or one among a set of optimal solutions, in that the total branch length will be minima...
2,894
Ich habe beide *die Grippe* und *die echte Grippe* als Namen für die Influenza gehört. Gibt es einen Unterschied zwischen *die Grippe* und *die echte Grippe*?
2011/10/27
[ "https://german.stackexchange.com/questions/2894", "https://german.stackexchange.com", "https://german.stackexchange.com/users/19/" ]
In der Alltagssprache wird das Wort „Grippe“ oft verwendet, um alle Arten von [grippalen Infekten](http://de.wikipedia.org/wiki/Erk%C3%A4ltung) zu beschreiben. Oft wird eine einfache, kurzfristige Erkältung als „eine Grippe“ beschrieben. Die „echte Grippe“ hingegen ist die [Influenza](http://de.wikipedia.org/wiki/Grip...
Wer sagt "ich leide an der echten Grippe" will einer Nachfrage, ob er die Grippe vielleicht mit einer Erkältung verwechselt, was in nachlässigen Kreisen oft vorkommt, zuvorkommen. Wer sagt "Ich leide an einer Grippe" lässt dies offen, so dass man überlegen kann, ob diese Person sich da eine Nachlässigkeit leistet, bz...
2,894
Ich habe beide *die Grippe* und *die echte Grippe* als Namen für die Influenza gehört. Gibt es einen Unterschied zwischen *die Grippe* und *die echte Grippe*?
2011/10/27
[ "https://german.stackexchange.com/questions/2894", "https://german.stackexchange.com", "https://german.stackexchange.com/users/19/" ]
Zu [***„Grippe“***](http://www.dwds.de/?qu=grippe&view=1) findet sich im etymologischen Wörterbuch nach Pfeifer folgender Eintrag: > > **Grippe** f. ‘fieberhafte Erkältungskrankheit, epidemisch auftretende Viruserkrankung’, Übernahme (Ende 18. Jh., etwa zur selben Zeit wie *Influenza*, s. d.) von gleichbed. frz. *gri...
Wer sagt "ich leide an der echten Grippe" will einer Nachfrage, ob er die Grippe vielleicht mit einer Erkältung verwechselt, was in nachlässigen Kreisen oft vorkommt, zuvorkommen. Wer sagt "Ich leide an einer Grippe" lässt dies offen, so dass man überlegen kann, ob diese Person sich da eine Nachlässigkeit leistet, bz...
1,062,312
I have Windows 10 build 10586.164 installed on my machine, and am trying to set up a Hyper-V test lab. I find that after I restart my PC, I can add and change hardware without issue, but after a while, I start getting this kind of error when modifying hardware: [![enter image description here](https://i.stack.imgur.co...
2016/04/06
[ "https://superuser.com/questions/1062312", "https://superuser.com", "https://superuser.com/users/224466/" ]
Goto Samsung's website and search for all available drivers. Search below for your product: [![enter image description here](https://i.stack.imgur.com/5t9gg.png)](https://i.stack.imgur.com/5t9gg.png) which will find this page: <http://www.samsung.com/us/support/owners/product/NP-RV515-A01US> The resulting page: [!...
Go to the official website of your machine manufacturer (Samsung in this case) and download the drivers from there; looking for the web I found your laptop drivers and you can download them [from here (this link is for your laptop model)](http://www.samsung.com/us/support/owners/product/NP-RV515-A01US): once on the we...
1,788,977
Given $f(x)$ is continuous and $0 \le f(x) \le 1$, and $\int f(x) dx = g(x)$, is there indefinite or definite integration formula for $$\int f(x)^n dx$$ or an approximation or expansion?
2016/05/17
[ "https://math.stackexchange.com/questions/1788977", "https://math.stackexchange.com", "https://math.stackexchange.com/users/332505/" ]
You need to show that $\cos^4\theta+\sin^4\theta$ never gets too small. A nice way to do this is to show $$\begin{align} \cos^4\theta+\sin^4\theta &=(\cos^2\theta+\sin^2\theta)^2-2\cos^2\theta\sin^2\theta\\ &=1-{1\over2}(2\sin\theta\cos\theta)^2\\ &=1-{1\over2}\sin^22\theta\\ &\ge1-{1\over2}\\ &={1\over2} \end{align}$...
To bound the trigonometric part: $$\cos^4 \theta + \sin^4 \theta = \cdots = \frac{\cos 4t + 3}{4}$$ So this factor lies between $1/2$ and $1$ (See Barry Cipra's answer to derive this lower bound). It then suffices to show that: $$\lim\_{r \to 0} \frac{e^{-1/r^2}}{r^4}= 0$$
1,788,977
Given $f(x)$ is continuous and $0 \le f(x) \le 1$, and $\int f(x) dx = g(x)$, is there indefinite or definite integration formula for $$\int f(x)^n dx$$ or an approximation or expansion?
2016/05/17
[ "https://math.stackexchange.com/questions/1788977", "https://math.stackexchange.com", "https://math.stackexchange.com/users/332505/" ]
You need to show that $\cos^4\theta+\sin^4\theta$ never gets too small. A nice way to do this is to show $$\begin{align} \cos^4\theta+\sin^4\theta &=(\cos^2\theta+\sin^2\theta)^2-2\cos^2\theta\sin^2\theta\\ &=1-{1\over2}(2\sin\theta\cos\theta)^2\\ &=1-{1\over2}\sin^22\theta\\ &\ge1-{1\over2}\\ &={1\over2} \end{align}$...
Another way of getting Barry Cipra's result: $c^4+s^4 =c^4+(1-c^2)^2 =c^4+1-2c^2+c^4 =1+2c^4-2c^2 =1-2c^2(1-c^2) \ge 1/2 $ since $x(1-x) \le 1/4$ for $0\le x \le 1$.
79,225
I've tried searching for the answer but couldn't find it. Do the notes stored in Google Keep use space from the Google storage? Or is it free and unlimited like a Google doc in Google Drive? EDIT: that's too good to believe they would give unlimited storage for pictures and audio recordings. Any update?
2015/06/15
[ "https://webapps.stackexchange.com/questions/79225", "https://webapps.stackexchange.com", "https://webapps.stackexchange.com/users/22630/" ]
Tested this a minute ago: 19,999 characters is the upper limit for text in **each** Google Keep note, not including the title or any images. additionally, 999 characters maximum are allowed in the title. I was able to upload 7 images totaling 3.0MB to the same note after the above text limits were reached. I assume mor...
It seems there is no limit for Google Keep storage according to [this article](http://www.techradar.com/news/internet/web/google-keep-vs-evernote-vs-apple-notes-1139656).
79,225
I've tried searching for the answer but couldn't find it. Do the notes stored in Google Keep use space from the Google storage? Or is it free and unlimited like a Google doc in Google Drive? EDIT: that's too good to believe they would give unlimited storage for pictures and audio recordings. Any update?
2015/06/15
[ "https://webapps.stackexchange.com/questions/79225", "https://webapps.stackexchange.com", "https://webapps.stackexchange.com/users/22630/" ]
It seems there is no limit for Google Keep storage according to [this article](http://www.techradar.com/news/internet/web/google-keep-vs-evernote-vs-apple-notes-1139656).
As per the Google Product [forum answer](https://productforums.google.com/forum/#!topic/docs/_mgdBX6y53A;context-place=topicsearchin/docs/category$3Akeep$20storage$20space) no data attached to Google Drive account.
79,225
I've tried searching for the answer but couldn't find it. Do the notes stored in Google Keep use space from the Google storage? Or is it free and unlimited like a Google doc in Google Drive? EDIT: that's too good to believe they would give unlimited storage for pictures and audio recordings. Any update?
2015/06/15
[ "https://webapps.stackexchange.com/questions/79225", "https://webapps.stackexchange.com", "https://webapps.stackexchange.com/users/22630/" ]
It seems there is no limit for Google Keep storage according to [this article](http://www.techradar.com/news/internet/web/google-keep-vs-evernote-vs-apple-notes-1139656).
All the Google Keep data is stored in your android phone in main memory. The Default size appears to be 2 GB on my phone. When I used up the 2GB, it prompted me to give it more space, but by then the phone was almost full. I have not found the place where the settings are to change it yet. Seems Like a space hog. Wish ...