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
50,252
I am designing a contact management system and have come across an interesting issue regarding modeling geographic locations in a consistent way. I would like to be able to record locations associated with a particular person (mailing address(es) for work, school, home, etc.) My thought is to create a table of locales ...
2008/09/08
[ "https://Stackoverflow.com/questions/50252", "https://Stackoverflow.com", "https://Stackoverflow.com/users/3927/" ]
I think you might be overthinking this. There's a reason most systems just store addresses and maybe a table of countries. Here are some things to look out for: 1. Would an address in the Bronx include the borough as a level in the hierarchy? Would an address in an unincorporated area eliminate the "city" level of the...
I'm modeling an apps for global users and I have the same problems, but I think that this approach could already be in use in many enterprise. But why this problem don't have an universal solution? Or, has this problem one best solution that can be the start point or anybody in the world need think in a solution for it...
50,252
I am designing a contact management system and have come across an interesting issue regarding modeling geographic locations in a consistent way. I would like to be able to record locations associated with a particular person (mailing address(es) for work, school, home, etc.) My thought is to create a table of locales ...
2008/09/08
[ "https://Stackoverflow.com/questions/50252", "https://Stackoverflow.com", "https://Stackoverflow.com/users/3927/" ]
I agree with the other posts that you need to be very careful here about your requirements. Location can become a tricky issue and this is why GIS systems are so complicted. If you are sure you just need a basic heirarchy structure, I have the following suggestions: * I support the previous comment that root level it...
I'm modeling an apps for global users and I have the same problems, but I think that this approach could already be in use in many enterprise. But why this problem don't have an universal solution? Or, has this problem one best solution that can be the start point or anybody in the world need think in a solution for it...
50,252
I am designing a contact management system and have come across an interesting issue regarding modeling geographic locations in a consistent way. I would like to be able to record locations associated with a particular person (mailing address(es) for work, school, home, etc.) My thought is to create a table of locales ...
2008/09/08
[ "https://Stackoverflow.com/questions/50252", "https://Stackoverflow.com", "https://Stackoverflow.com/users/3927/" ]
I think you might be overthinking this. There's a reason most systems just store addresses and maybe a table of countries. Here are some things to look out for: 1. Would an address in the Bronx include the borough as a level in the hierarchy? Would an address in an unincorporated area eliminate the "city" level of the...
For Geographic locations you may wish to resolve an address to a Latitude, Longitude array (perhaps using Google maps etc.) to calculate proximities etc.. For Geopolitical nesting ... I'd go with the KISS response. If you really want to model it, perhaps you need the types to be more generic ... Country -> State -> C...
50,252
I am designing a contact management system and have come across an interesting issue regarding modeling geographic locations in a consistent way. I would like to be able to record locations associated with a particular person (mailing address(es) for work, school, home, etc.) My thought is to create a table of locales ...
2008/09/08
[ "https://Stackoverflow.com/questions/50252", "https://Stackoverflow.com", "https://Stackoverflow.com/users/3927/" ]
Sounds like a good approach to me. The one thing that I'm not clear on when reading you post is what "parents of themselves" means - if this is to indicate that the locale does not have a parent, you're better off using null than the ID of itself.
Here's a suggestion for a pretty flexible schema. An immediate warning: it could be too flexible/complex for what you actually need Location (LocationID, LocationName) -- Basic building block LocationGroup (LocationGroupID, LocationGroupName, ParentLocationGroupID) -- This can effective encapsulate multiple hierarchi...
50,252
I am designing a contact management system and have come across an interesting issue regarding modeling geographic locations in a consistent way. I would like to be able to record locations associated with a particular person (mailing address(es) for work, school, home, etc.) My thought is to create a table of locales ...
2008/09/08
[ "https://Stackoverflow.com/questions/50252", "https://Stackoverflow.com", "https://Stackoverflow.com/users/3927/" ]
I would think carefully about this since it may not be a necessary feature. Why not just use a text field and let users type in an address? Remember the [KISS principle](http://en.wikipedia.org/wiki/KISS_principle) (Keep It Simple, Stupid).
I'm modeling an apps for global users and I have the same problems, but I think that this approach could already be in use in many enterprise. But why this problem don't have an universal solution? Or, has this problem one best solution that can be the start point or anybody in the world need think in a solution for it...
50,252
I am designing a contact management system and have come across an interesting issue regarding modeling geographic locations in a consistent way. I would like to be able to record locations associated with a particular person (mailing address(es) for work, school, home, etc.) My thought is to create a table of locales ...
2008/09/08
[ "https://Stackoverflow.com/questions/50252", "https://Stackoverflow.com", "https://Stackoverflow.com/users/3927/" ]
Here's a suggestion for a pretty flexible schema. An immediate warning: it could be too flexible/complex for what you actually need Location (LocationID, LocationName) -- Basic building block LocationGroup (LocationGroupID, LocationGroupName, ParentLocationGroupID) -- This can effective encapsulate multiple hierarchi...
For Geographic locations you may wish to resolve an address to a Latitude, Longitude array (perhaps using Google maps etc.) to calculate proximities etc.. For Geopolitical nesting ... I'd go with the KISS response. If you really want to model it, perhaps you need the types to be more generic ... Country -> State -> C...
50,252
I am designing a contact management system and have come across an interesting issue regarding modeling geographic locations in a consistent way. I would like to be able to record locations associated with a particular person (mailing address(es) for work, school, home, etc.) My thought is to create a table of locales ...
2008/09/08
[ "https://Stackoverflow.com/questions/50252", "https://Stackoverflow.com", "https://Stackoverflow.com/users/3927/" ]
You might want to have a look at Freebase.com as a site that's had some open discussion about what a "location" means and what it means when a location is included in another. These sorts of questions can generate a lot of discussion. For example, there is the obvious "geographic nesting", but there are less obvious l...
I would think carefully about this since it may not be a necessary feature. Why not just use a text field and let users type in an address? Remember the [KISS principle](http://en.wikipedia.org/wiki/KISS_principle) (Keep It Simple, Stupid).
50,252
I am designing a contact management system and have come across an interesting issue regarding modeling geographic locations in a consistent way. I would like to be able to record locations associated with a particular person (mailing address(es) for work, school, home, etc.) My thought is to create a table of locales ...
2008/09/08
[ "https://Stackoverflow.com/questions/50252", "https://Stackoverflow.com", "https://Stackoverflow.com/users/3927/" ]
I think you might be overthinking this. There's a reason most systems just store addresses and maybe a table of countries. Here are some things to look out for: 1. Would an address in the Bronx include the borough as a level in the hierarchy? Would an address in an unincorporated area eliminate the "city" level of the...
I agree with the other posts that you need to be very careful here about your requirements. Location can become a tricky issue and this is why GIS systems are so complicted. If you are sure you just need a basic heirarchy structure, I have the following suggestions: * I support the previous comment that root level it...
50,252
I am designing a contact management system and have come across an interesting issue regarding modeling geographic locations in a consistent way. I would like to be able to record locations associated with a particular person (mailing address(es) for work, school, home, etc.) My thought is to create a table of locales ...
2008/09/08
[ "https://Stackoverflow.com/questions/50252", "https://Stackoverflow.com", "https://Stackoverflow.com/users/3927/" ]
I would think carefully about this since it may not be a necessary feature. Why not just use a text field and let users type in an address? Remember the [KISS principle](http://en.wikipedia.org/wiki/KISS_principle) (Keep It Simple, Stupid).
For Geographic locations you may wish to resolve an address to a Latitude, Longitude array (perhaps using Google maps etc.) to calculate proximities etc.. For Geopolitical nesting ... I'd go with the KISS response. If you really want to model it, perhaps you need the types to be more generic ... Country -> State -> C...
50,252
I am designing a contact management system and have come across an interesting issue regarding modeling geographic locations in a consistent way. I would like to be able to record locations associated with a particular person (mailing address(es) for work, school, home, etc.) My thought is to create a table of locales ...
2008/09/08
[ "https://Stackoverflow.com/questions/50252", "https://Stackoverflow.com", "https://Stackoverflow.com/users/3927/" ]
You might want to have a look at Freebase.com as a site that's had some open discussion about what a "location" means and what it means when a location is included in another. These sorts of questions can generate a lot of discussion. For example, there is the obvious "geographic nesting", but there are less obvious l...
I'm modeling an apps for global users and I have the same problems, but I think that this approach could already be in use in many enterprise. But why this problem don't have an universal solution? Or, has this problem one best solution that can be the start point or anybody in the world need think in a solution for it...
4,533,218
I'd like to make a MapView, but extending the MapActivity throws a classNotFoundException: ``` /AndroidRuntime( 374): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2585) E/AndroidRuntime( 374): at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2679)...
2010/12/26
[ "https://Stackoverflow.com/questions/4533218", "https://Stackoverflow.com", "https://Stackoverflow.com/users/346583/" ]
I had the exact same error for me I had to implement the android:required="true" statement, which has been left of a lot of tutorials. ``` <uses-library android:name="com.google.android.maps" android:required="true" /> ```
Try setting package to "com.androidcourse.phonemapper.view": ``` <manifest xmlns:android="http://schemas.android.com/apk/res/android" package="com.androidcourse.phonemapper.view" android:versionCode="1" android:versionName="1.0"> ``` and then referencing it: ``` <activity android:name=".WelcomeActivity" ```
4,533,218
I'd like to make a MapView, but extending the MapActivity throws a classNotFoundException: ``` /AndroidRuntime( 374): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2585) E/AndroidRuntime( 374): at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2679)...
2010/12/26
[ "https://Stackoverflow.com/questions/4533218", "https://Stackoverflow.com", "https://Stackoverflow.com/users/346583/" ]
Try setting package to "com.androidcourse.phonemapper.view": ``` <manifest xmlns:android="http://schemas.android.com/apk/res/android" package="com.androidcourse.phonemapper.view" android:versionCode="1" android:versionName="1.0"> ``` and then referencing it: ``` <activity android:name=".WelcomeActivity" ```
you should uses-library tag inside application tag ``` <application> <uses-library android:name="com.google.android.maps" android:required="true"/> </application> ```
4,533,218
I'd like to make a MapView, but extending the MapActivity throws a classNotFoundException: ``` /AndroidRuntime( 374): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2585) E/AndroidRuntime( 374): at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2679)...
2010/12/26
[ "https://Stackoverflow.com/questions/4533218", "https://Stackoverflow.com", "https://Stackoverflow.com/users/346583/" ]
I had the exact same error for me I had to implement the android:required="true" statement, which has been left of a lot of tutorials. ``` <uses-library android:name="com.google.android.maps" android:required="true" /> ```
Also, if you forget to put the ``` <uses-library android:name="com.google.android.maps" /> ``` tag inside your tag in your manifest you will get a ClassNotFound Exception for your activity that extends MapActivity :)
4,533,218
I'd like to make a MapView, but extending the MapActivity throws a classNotFoundException: ``` /AndroidRuntime( 374): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2585) E/AndroidRuntime( 374): at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2679)...
2010/12/26
[ "https://Stackoverflow.com/questions/4533218", "https://Stackoverflow.com", "https://Stackoverflow.com/users/346583/" ]
Also, if you forget to put the ``` <uses-library android:name="com.google.android.maps" /> ``` tag inside your tag in your manifest you will get a ClassNotFound Exception for your activity that extends MapActivity :)
you should uses-library tag inside application tag ``` <application> <uses-library android:name="com.google.android.maps" android:required="true"/> </application> ```
4,533,218
I'd like to make a MapView, but extending the MapActivity throws a classNotFoundException: ``` /AndroidRuntime( 374): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2585) E/AndroidRuntime( 374): at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2679)...
2010/12/26
[ "https://Stackoverflow.com/questions/4533218", "https://Stackoverflow.com", "https://Stackoverflow.com/users/346583/" ]
I had the exact same error for me I had to implement the android:required="true" statement, which has been left of a lot of tutorials. ``` <uses-library android:name="com.google.android.maps" android:required="true" /> ```
you should uses-library tag inside application tag ``` <application> <uses-library android:name="com.google.android.maps" android:required="true"/> </application> ```
62,264
I have `SMTP PRO` in `Magento 1.9` hosted on `AWS`. The new account emails, and comments work well, but the email of new orders, change of status and billing are not sent. I have no errors or helpful information from the system logs. What additional steps should I take to resolve this?
2015/03/29
[ "https://magento.stackexchange.com/questions/62264", "https://magento.stackexchange.com", "https://magento.stackexchange.com/users/15242/" ]
mb\_string() is a decent place to start looking, as we ran into it also while working the first occurrence of this issue I've seen in the wild. AND It's easy to check : if that's the root cause, you should see something like the following in your system.log: ``` Fatal error: Call to undefined function mb_convert_encod...
Check and make sure you have php-mbstring installed and available to PHP. I just ran into this issue after an upgrade to Magento CE 1.9.1.0 and some transactional emails were not going out due to /lib/Pelago/Emogrifier.php One I installed php-mbstring, this issue went away.
29,288,149
I have been wondering for a long time how to appropriately import in Python, in relation to the way I'm going to explain now: Imagine I've got two modules built by myself, `modulea` and `moduleb`, and have a last one which uses both the `modulea` and `b`, so `modulec`. Furthermore, `modulea` uses `moduleb`. The mod...
2015/03/26
[ "https://Stackoverflow.com/questions/29288149", "https://Stackoverflow.com", "https://Stackoverflow.com/users/-1/" ]
You are overthinking way too much. Each module must be "self contained" in the sense that itself satisfies its dependencies. If `modulea` needs `moduleb`, you do ``` # modulea.py import moduleb ``` Then `moduleb` has to import its dependencies, if any: ``` # moduleb.py import json # for instance ``` And finally...
According to the python [style guide](https://www.python.org/dev/peps/pep-0008/) you should use an import statement for each individual module. It will also tell you everything else you need to know about the conventions surrounding importing modules. ``` import moduleb import modulea import modulec ``` Also, as so...
29,288,149
I have been wondering for a long time how to appropriately import in Python, in relation to the way I'm going to explain now: Imagine I've got two modules built by myself, `modulea` and `moduleb`, and have a last one which uses both the `modulea` and `b`, so `modulec`. Furthermore, `modulea` uses `moduleb`. The mod...
2015/03/26
[ "https://Stackoverflow.com/questions/29288149", "https://Stackoverflow.com", "https://Stackoverflow.com/users/-1/" ]
According to the python [style guide](https://www.python.org/dev/peps/pep-0008/) you should use an import statement for each individual module. It will also tell you everything else you need to know about the conventions surrounding importing modules. ``` import moduleb import modulea import modulec ``` Also, as so...
You can put all of your imports into one place if you'd like. myproject/internal.py ``` from moduleb import * from modulea import * from modulec import * ``` Now, your other modules can just import it myproject/modulec.py ``` from internal import * ``` Although its usually preferable to import everything in the...
29,288,149
I have been wondering for a long time how to appropriately import in Python, in relation to the way I'm going to explain now: Imagine I've got two modules built by myself, `modulea` and `moduleb`, and have a last one which uses both the `modulea` and `b`, so `modulec`. Furthermore, `modulea` uses `moduleb`. The mod...
2015/03/26
[ "https://Stackoverflow.com/questions/29288149", "https://Stackoverflow.com", "https://Stackoverflow.com/users/-1/" ]
You are overthinking way too much. Each module must be "self contained" in the sense that itself satisfies its dependencies. If `modulea` needs `moduleb`, you do ``` # modulea.py import moduleb ``` Then `moduleb` has to import its dependencies, if any: ``` # moduleb.py import json # for instance ``` And finally...
You can put all of your imports into one place if you'd like. myproject/internal.py ``` from moduleb import * from modulea import * from modulec import * ``` Now, your other modules can just import it myproject/modulec.py ``` from internal import * ``` Although its usually preferable to import everything in the...
43,380,384
I have a data table which contains multiple columns of the following type: ``` attr1 attr2 1: 01001 01000 2: 11000 10000 3: 00100 00100 4: 01100 01000 DT = setDT(structure(list(attr1 = c("01001", "11000", "00100", "01100"), attr2 = c("01000", "10000", "00100", "01000")), .Names = c("attr1", "attr2"), row.nam...
2017/04/12
[ "https://Stackoverflow.com/questions/43380384", "https://Stackoverflow.com", "https://Stackoverflow.com/users/4767610/" ]
You can use base R's `regmatches` to supply a different string for matching and replacement: ``` dt[, matches := sapply(regmatches(attr2, gregexpr('1+', attr1)), paste, collapse = '')][] #> attr1 attr2 matches #> 1: 01001 01000 10 #> 2: 11000 10000 10 #> 3: 00100 00100 1 #> 4: 01100 01000 10 `...
You can use a variation on @alistaire's `regmatches` answer, as there is also a replacement function `regmatches<-`. So, instead of extracting `1` values, replace `0` values with `""`: ``` dt[, matches := `regmatches<-`(attr2, gregexpr("0+", attr1), value="")] # attr1 attr2 matches #1: 01001 01000 10 #2: 11000...
43,380,384
I have a data table which contains multiple columns of the following type: ``` attr1 attr2 1: 01001 01000 2: 11000 10000 3: 00100 00100 4: 01100 01000 DT = setDT(structure(list(attr1 = c("01001", "11000", "00100", "01100"), attr2 = c("01000", "10000", "00100", "01000")), .Names = c("attr1", "attr2"), row.nam...
2017/04/12
[ "https://Stackoverflow.com/questions/43380384", "https://Stackoverflow.com", "https://Stackoverflow.com/users/4767610/" ]
You can use base R's `regmatches` to supply a different string for matching and replacement: ``` dt[, matches := sapply(regmatches(attr2, gregexpr('1+', attr1)), paste, collapse = '')][] #> attr1 attr2 matches #> 1: 01001 01000 10 #> 2: 11000 10000 10 #> 3: 00100 00100 1 #> 4: 01100 01000 10 `...
been working on this then saw @latemail comments ``` library(data.table) DT = setDT(structure(list(attr1 = c("01001", "11000", "00100", "01100"), attr2 = c("01000", "10000", "00100", "01000")), .Names = c("attr1", "attr2"), row.names = c(NA, -4L), class = "data.frame")) set.seed(0L) N <- 1e5 dt <- data.ta...
43,380,384
I have a data table which contains multiple columns of the following type: ``` attr1 attr2 1: 01001 01000 2: 11000 10000 3: 00100 00100 4: 01100 01000 DT = setDT(structure(list(attr1 = c("01001", "11000", "00100", "01100"), attr2 = c("01000", "10000", "00100", "01000")), .Names = c("attr1", "attr2"), row.nam...
2017/04/12
[ "https://Stackoverflow.com/questions/43380384", "https://Stackoverflow.com", "https://Stackoverflow.com/users/4767610/" ]
You can use a variation on @alistaire's `regmatches` answer, as there is also a replacement function `regmatches<-`. So, instead of extracting `1` values, replace `0` values with `""`: ``` dt[, matches := `regmatches<-`(attr2, gregexpr("0+", attr1), value="")] # attr1 attr2 matches #1: 01001 01000 10 #2: 11000...
been working on this then saw @latemail comments ``` library(data.table) DT = setDT(structure(list(attr1 = c("01001", "11000", "00100", "01100"), attr2 = c("01000", "10000", "00100", "01000")), .Names = c("attr1", "attr2"), row.names = c(NA, -4L), class = "data.frame")) set.seed(0L) N <- 1e5 dt <- data.ta...
61,808,463
My goal is to use the BigQuery CLI to only list tables that were created in BigQuery after yesterday's date. [The docs specify to use the -j and --min\_creation\_time parameters to filter table list results by date](https://cloud.google.com/bigquery/docs/reference/bq-cli-reference#top_of_page). When I run the below c...
2020/05/14
[ "https://Stackoverflow.com/questions/61808463", "https://Stackoverflow.com", "https://Stackoverflow.com/users/6866797/" ]
`bq ls` -j option means to list jobs, not tables > > --jobs or -j > > > When specified, list jobs. The default value is false. By default, you are limited to 100,000 results. > > > To make the creation time more readable, you can also consider to run a query over INFORMATION\_SCHEMA ``` bq query --nouse_legacy...
In addition to @Yun Zhang answer you can also use `__TABLES_SUMMARY__` representing meta-table that contains information about the tables and views in a particular dataset, available in *Standard* and *Legacy* SQL whereas `INFORMATION_SCHEMA` metadata view only supports *Standart* SQL (more information about known limi...
178,400
I have a lookup relationship. If I just do the following query it works fine: ``` Sobject c = [select field__r.fieldchild__c from custom_obj where Id = :someId]; system.debug('c:' + c); ``` However with the following I get an error: ``` Sobject c = [select field__r.fieldchild__c from custom_obj where Id = :someId]...
2017/06/11
[ "https://salesforce.stackexchange.com/questions/178400", "https://salesforce.stackexchange.com", "https://salesforce.stackexchange.com/users/8722/" ]
You need to add a null check. The only reason this would fail is if your parent record is null. One option may be to just get the value statically: ``` String text = record.Parent__r.TextField__c; ``` If you cannot use a static reference, I recommend a cross object getter like I shared [here](https://salesforce.stac...
Hello Everyone sharing with you my code. This resolve only custom lookut relations modified code for objects that don't have '\_\_r'. ``` //============================================== // Criado por: Rodrigo Chiarato Domingues // Data: 18/04/2020 // Propósito: dá um powerUp para o get do sObject. Exempl...
25,945,019
I have 3 elements. Each has an element within them that when clicked find their parent and send it away to be worked on. The problem is the click events seem to be stacking. For example if I click on Element #1, it sends away Element #1 to be worked on. Then if I click Element #3, it sends away Element #1, and Element ...
2014/09/20
[ "https://Stackoverflow.com/questions/25945019", "https://Stackoverflow.com", "https://Stackoverflow.com/users/2070057/" ]
Instead of stopPropagation. Try switching it out with `stopImmediatePropagation()` From <http://devdocs.io/jquery/event.stoppropagation> > > Prevents the event from bubbling up the DOM tree, preventing any > parent handlers from being notified of the event. > > > From <http://devdocs.io/jquery/event.stopimmedia...
Because you are identifying all the buttons with the class .tiles you must parse a UNIQUE child selector into the function each time.
25,945,019
I have 3 elements. Each has an element within them that when clicked find their parent and send it away to be worked on. The problem is the click events seem to be stacking. For example if I click on Element #1, it sends away Element #1 to be worked on. Then if I click Element #3, it sends away Element #1, and Element ...
2014/09/20
[ "https://Stackoverflow.com/questions/25945019", "https://Stackoverflow.com", "https://Stackoverflow.com/users/2070057/" ]
Nevermind I found out it was not that particular point in code cauding the issue. The showEditDialog() function was calling itself twice, and for some reason bubbling to the parent tile for the second one. I just remove the call to itself and it only called the correct one after.
Because you are identifying all the buttons with the class .tiles you must parse a UNIQUE child selector into the function each time.
25,945,019
I have 3 elements. Each has an element within them that when clicked find their parent and send it away to be worked on. The problem is the click events seem to be stacking. For example if I click on Element #1, it sends away Element #1 to be worked on. Then if I click Element #3, it sends away Element #1, and Element ...
2014/09/20
[ "https://Stackoverflow.com/questions/25945019", "https://Stackoverflow.com", "https://Stackoverflow.com/users/2070057/" ]
Instead of stopPropagation. Try switching it out with `stopImmediatePropagation()` From <http://devdocs.io/jquery/event.stoppropagation> > > Prevents the event from bubbling up the DOM tree, preventing any > parent handlers from being notified of the event. > > > From <http://devdocs.io/jquery/event.stopimmedia...
Nevermind I found out it was not that particular point in code cauding the issue. The showEditDialog() function was calling itself twice, and for some reason bubbling to the parent tile for the second one. I just remove the call to itself and it only called the correct one after.
39,710,426
I have created a C++ wrapper class library to import a C++ native dll. And I have added a project reference of this C++ class library to my C# application and copied all the dependencies to the Debug folder. So far every thing is working fine unless I want to do the same process for a an older version of that C++ nativ...
2016/09/26
[ "https://Stackoverflow.com/questions/39710426", "https://Stackoverflow.com", "https://Stackoverflow.com/users/319188/" ]
Besides AssemblyResolve event, the 'probing' element could be used in application configuration file like this: ``` <configuration> <runtime> <assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1"> <probing privatePath="bin;bin2\subbin;bin3"/> </assemblyBinding> </runtime> </configuration...
You can attach to *static* `AssemblyResolve` event ``` AppDomain.CurrentDomain.AssemblyResolve += (s, e) => { //determine the required assembly using "e.Name" var filename = "....."; return Assembly.LoadFile(filename) }; ```
1,548,050
I want to replace numbers followed by period at the beginning of the line: ``` 1. The quick brown fox jumps over the lazy dog 12. The slow grey cat jumps over the lazy dog 234. The strong yellow lion jumps over the lazy dog ``` with `.IP number\ntext`, so the above input would lead to: ``` .IP 1 The quick brown fox...
2020/05/02
[ "https://superuser.com/questions/1548050", "https://superuser.com", "https://superuser.com/users/882521/" ]
I believe it's not currently possible: <https://chromium.googlesource.com/chromium/src/+/HEAD/net/docs/proxy.md#proxy-credentials-in-manual-proxy-settings> > > Most platforms' manual proxy settings allow specifying a cleartext > username/password for proxy sign in. Chrome does not implement this, > and will not use...
When you are lacking a means of supplying the proxy with user-name and password, you could perhaps solve this by using a two-step proxy : 1. A local proxy server on your computer without user-name and password 2. The local proxy should connect to the real external proxy using the user-name and password. A possible so...
1,548,050
I want to replace numbers followed by period at the beginning of the line: ``` 1. The quick brown fox jumps over the lazy dog 12. The slow grey cat jumps over the lazy dog 234. The strong yellow lion jumps over the lazy dog ``` with `.IP number\ntext`, so the above input would lead to: ``` .IP 1 The quick brown fox...
2020/05/02
[ "https://superuser.com/questions/1548050", "https://superuser.com", "https://superuser.com/users/882521/" ]
* Edit [![enter image description here](https://i.stack.imgur.com/mLNRZ.jpg)](https://i.stack.imgur.com/mLNRZ.jpg) ``` search_form = browser.find_element_by_id('search_form_input_homepage') search_form.send_keys('username') search_form.send_keys('password') search_form.submit() ``` See more [here](https://realpyth...
When you are lacking a means of supplying the proxy with user-name and password, you could perhaps solve this by using a two-step proxy : 1. A local proxy server on your computer without user-name and password 2. The local proxy should connect to the real external proxy using the user-name and password. A possible so...
30,485,369
I recently bought a DigitalOcean account, and am attempting to set up my web site. However, whenever I enter the IP address of my site, I get this page: --- Welcome to nginx! If you see this page, the nginx web server is successfully installed and working. Further configuration is required. For online documentation...
2015/05/27
[ "https://Stackoverflow.com/questions/30485369", "https://Stackoverflow.com", "https://Stackoverflow.com/users/4206438/" ]
**Simplify** Create a "Hello world" index.html and copy it into your project's root directory\*. **Divide and conquer** My suggestion to you is to strip your nginx.conf down to a very simple form, like the one below. ``` server { listen 80 default; server_name yourdomainname.com; root /home/your_app_name/publ...
Just add https:// along with your IP address instead of just entering your IP address. Eg: <https://198.168.5.158> This worked for me.
37,045,634
How would someone solve such a problem with classes and type as least as possible code? Here is what I have Base interface for everything ``` class IWindow { public: virtual void Refresh() = 0; // another 100 virtual methods // ... }; ``` This interface is used inside a library that has no...
2016/05/05
[ "https://Stackoverflow.com/questions/37045634", "https://Stackoverflow.com", "https://Stackoverflow.com/users/200759/" ]
You can use virtual inheritance. If we ignore fact should `IDBDetail` inherit from `IWindow` or not, we could use virtual inheritance to solve problem with current architecture: ``` class IWindow { public: virtual void Refresh() = 0; // another 100 virtual methods // ... }; class Concrete...
Your design is running into [diamond problem](https://en.wikipedia.org/wiki/Multiple_inheritance#TheDiamondProblem). > > Now we have another interface that adds some additional methods and > also used inside that library. > > > ``` class IDBDetail : public IWindow { public: virtual void DoDetail() = 0; ...
37,045,634
How would someone solve such a problem with classes and type as least as possible code? Here is what I have Base interface for everything ``` class IWindow { public: virtual void Refresh() = 0; // another 100 virtual methods // ... }; ``` This interface is used inside a library that has no...
2016/05/05
[ "https://Stackoverflow.com/questions/37045634", "https://Stackoverflow.com", "https://Stackoverflow.com/users/200759/" ]
You can use virtual inheritance. If we ignore fact should `IDBDetail` inherit from `IWindow` or not, we could use virtual inheritance to solve problem with current architecture: ``` class IWindow { public: virtual void Refresh() = 0; // another 100 virtual methods // ... }; class Concrete...
You have to override all the methods in abstract class, there is no other way. Actually you shouldn't create an abstract class of 100 methods here and that's it. Perhaps You can divide it in some smaller abstract classes? However, in this case IDBDetail should not inherit after IWindow and IGBDDetailWrapper also should...
37,045,634
How would someone solve such a problem with classes and type as least as possible code? Here is what I have Base interface for everything ``` class IWindow { public: virtual void Refresh() = 0; // another 100 virtual methods // ... }; ``` This interface is used inside a library that has no...
2016/05/05
[ "https://Stackoverflow.com/questions/37045634", "https://Stackoverflow.com", "https://Stackoverflow.com/users/200759/" ]
You can use virtual inheritance. If we ignore fact should `IDBDetail` inherit from `IWindow` or not, we could use virtual inheritance to solve problem with current architecture: ``` class IWindow { public: virtual void Refresh() = 0; // another 100 virtual methods // ... }; class Concrete...
First, if you are using Visual Studio there are refactoring tools that can help you with that automating what could be otherwise a tedious task, second: To me is much pointless doing the same: ``` class IDBDetail : public IWindow { public: virtual void DoDetail() = 0; }; ``` I would do that instead ``` class ...
37,045,634
How would someone solve such a problem with classes and type as least as possible code? Here is what I have Base interface for everything ``` class IWindow { public: virtual void Refresh() = 0; // another 100 virtual methods // ... }; ``` This interface is used inside a library that has no...
2016/05/05
[ "https://Stackoverflow.com/questions/37045634", "https://Stackoverflow.com", "https://Stackoverflow.com/users/200759/" ]
You can use virtual inheritance. If we ignore fact should `IDBDetail` inherit from `IWindow` or not, we could use virtual inheritance to solve problem with current architecture: ``` class IWindow { public: virtual void Refresh() = 0; // another 100 virtual methods // ... }; class Concrete...
It will not solve your problem, but at least you can redirect execution yourself: ``` class IGDBDetailWrapper : public IDBDetail, public ConcreteWindow { public: virtual void DoDetail() override { /*work here*/ } virtual void Refresh() override { ConcreteWindow::Refresh(); } //another 100 methods }; ``` ...
37,045,634
How would someone solve such a problem with classes and type as least as possible code? Here is what I have Base interface for everything ``` class IWindow { public: virtual void Refresh() = 0; // another 100 virtual methods // ... }; ``` This interface is used inside a library that has no...
2016/05/05
[ "https://Stackoverflow.com/questions/37045634", "https://Stackoverflow.com", "https://Stackoverflow.com/users/200759/" ]
You can use virtual inheritance. If we ignore fact should `IDBDetail` inherit from `IWindow` or not, we could use virtual inheritance to solve problem with current architecture: ``` class IWindow { public: virtual void Refresh() = 0; // another 100 virtual methods // ... }; class Concrete...
@bashrc is right, but it should be possible to solve the problem with virtual inheritance: ``` class ConcreteWindow : public virtual IWindow {...} class IDBDetail : public virtual IWindow {...} ``` This Wikipedia article on [virtual inheritance](https://en.wikipedia.org/wiki/Virtual_inheritance) states the solution...
522,437
When I change tabs (or, as I just found out while clicking this text box to write this question) click on some elements on a web page like a text box, firefox just opens up a new tab with this link in the address bar ``` http://ad.yieldmanager.com/%5BMACRO%5Dhttp://stage.traffiliate.com/TrafficCop.aspx?CampaignUid=1d1...
2012/12/14
[ "https://superuser.com/questions/522437", "https://superuser.com", "https://superuser.com/users/-1/" ]
Could be anything, but I might provide a few suggestions. 1. Try a [portable version](http://portableapps.com/apps/internet/firefox_portable) of your browser to ensure it's not Firefox alone. Maybe even reinstall your browser, if you don't mind the effort. 2. Check your Firefox addons and remove all suspicious soundin...
In FireFox, type **about:config** in the address bar. Then search for that web address. Maybe an add-on or hidden setting has set it somewhere.
53,314,631
I'm new to android studio and going through intents. I'm creating a registration app which takes user information in first 4 activities and display them altogether in respective views the 5th activity. My app has personal, professional,address and other detailed activities that are to be retrieved from edit texts and ...
2018/11/15
[ "https://Stackoverflow.com/questions/53314631", "https://Stackoverflow.com", "https://Stackoverflow.com/users/10655987/" ]
Yes you can do so by sending the data form one activity to the other activity in chain. Let say your app starts at **ActivityOne** then goes to **ActivityTwo** then to **ActivityThree** then to **ActivityFour** then to **ActivityFive** and submits the data here in ActivityFive. Each activity has a EditText to enter d...
I'm also new but why not create One Activity which hold the DataModels and collect the UserInformation within Fragments and set them to the Activity on nextBtnClick? Something like this: ``` final Button nextFragmentButton = (Button) findViewById(R.id.button_id); button.setOnClickListener(new View.OnClickListener() ...
53,314,631
I'm new to android studio and going through intents. I'm creating a registration app which takes user information in first 4 activities and display them altogether in respective views the 5th activity. My app has personal, professional,address and other detailed activities that are to be retrieved from edit texts and ...
2018/11/15
[ "https://Stackoverflow.com/questions/53314631", "https://Stackoverflow.com", "https://Stackoverflow.com/users/10655987/" ]
Yes you can do so by sending the data form one activity to the other activity in chain. Let say your app starts at **ActivityOne** then goes to **ActivityTwo** then to **ActivityThree** then to **ActivityFour** then to **ActivityFive** and submits the data here in ActivityFive. Each activity has a EditText to enter d...
``` You can use singleton class Create one model class and add the data from that four activites public class MySingleton { private UserModel user_details; private static MySingleton ourInstance = new MySingleton(); public static MySingleton getInstance() { return...
53,314,631
I'm new to android studio and going through intents. I'm creating a registration app which takes user information in first 4 activities and display them altogether in respective views the 5th activity. My app has personal, professional,address and other detailed activities that are to be retrieved from edit texts and ...
2018/11/15
[ "https://Stackoverflow.com/questions/53314631", "https://Stackoverflow.com", "https://Stackoverflow.com/users/10655987/" ]
Yes you can do so by sending the data form one activity to the other activity in chain. Let say your app starts at **ActivityOne** then goes to **ActivityTwo** then to **ActivityThree** then to **ActivityFour** then to **ActivityFive** and submits the data here in ActivityFive. Each activity has a EditText to enter d...
There are many ways to pass the data.One easy and efficient way to implement.create a public class in your package.In that class declare your values as static like below. ``` public class MyDataClass { public static String name; public static String userid; } ``` you can pass the values like below ``` MyDataClass m...
53,314,631
I'm new to android studio and going through intents. I'm creating a registration app which takes user information in first 4 activities and display them altogether in respective views the 5th activity. My app has personal, professional,address and other detailed activities that are to be retrieved from edit texts and ...
2018/11/15
[ "https://Stackoverflow.com/questions/53314631", "https://Stackoverflow.com", "https://Stackoverflow.com/users/10655987/" ]
Yes you can do so by sending the data form one activity to the other activity in chain. Let say your app starts at **ActivityOne** then goes to **ActivityTwo** then to **ActivityThree** then to **ActivityFour** then to **ActivityFive** and submits the data here in ActivityFive. Each activity has a EditText to enter d...
Use SharedPreference to save your data using key-value pairs. And then you can retrieve the data in any activity using the respective key. Just make sure you use the proper key to save a variable. ``` public SharedPreferences sharedPref; public SharedPreferences.Editor editor; sharedPref = getSharedPreferences("name...
54,975,716
Could you please help me with this situation? Let's say I have this right now: **HTML** ```html <select name="insta_country_code" class="widget-user-country country-selector" data-account-name=" <?php echo $account1['Username'] ?>"> <option value="br">Brazil</option> <option value="cl">Chile</option> ...
2019/03/04
[ "https://Stackoverflow.com/questions/54975716", "https://Stackoverflow.com", "https://Stackoverflow.com/users/11145865/" ]
As you're using `POST` method to send data to your server side php code, you can catch the data using `$_POST` OR `$_REQUEST` global variable like this- ``` $InstagramCountry = $_POST['country_code']; $InstagramUsername = $_POST['insta_user']); ``` You said vai comment that you're getting error on ajax call, you can...
Try this, it should must work for your case. I have tested it in my localhost. For your HTML File: ``` <select name="insta_country_code" class="widget-user-country country-selector" data-account-name="<?php echo $account1['Username'] ?>"> <option value="br">Brazil</option> <option value="cl">Ch...
54,975,716
Could you please help me with this situation? Let's say I have this right now: **HTML** ```html <select name="insta_country_code" class="widget-user-country country-selector" data-account-name=" <?php echo $account1['Username'] ?>"> <option value="br">Brazil</option> <option value="cl">Chile</option> ...
2019/03/04
[ "https://Stackoverflow.com/questions/54975716", "https://Stackoverflow.com", "https://Stackoverflow.com/users/11145865/" ]
As you're using `POST` method to send data to your server side php code, you can catch the data using `$_POST` OR `$_REQUEST` global variable like this- ``` $InstagramCountry = $_POST['country_code']; $InstagramUsername = $_POST['insta_user']); ``` You said vai comment that you're getting error on ajax call, you can...
Hi you can do it this way: your php script: ``` if (isset($_POST["action"])) { $action = $_POST["action"]; switch ($action) { case 'SLC': if (isset($_POST["id"])) { ...
14,586
So I see there are seeds in cucumbers. But they're always so soft that I don't notice them when I eat the cucumbers. I'm assuming that means the seeds are just young and not ready to be collected yet (kind of like how watermelon seeds start soft then harden). So how do I know when the seeds are ready to take from the ...
2014/11/10
[ "https://gardening.stackexchange.com/questions/14586", "https://gardening.stackexchange.com", "https://gardening.stackexchange.com/users/2984/" ]
Pumkins, squash and cucumbers all are pretty easy to propagate by seed. The important part is letting the fruit ripen thoroughly so the seeds finish formation. So, you have to let one of your Zucchini or Cucumbers completely harden up (develop a rind) and change to full ripe color, ie leave it on the vine till the vi...
I have only done this for heirloom lemon cucumbers, but the idea is probably similar. For one thing, leave the fruit on the plant longer so it matures more. The outer shell gets harder and goes different colors (at least on those - more orangey than white/yellow) Then let it dry out in the house. Which won't happen (w...
14,586
So I see there are seeds in cucumbers. But they're always so soft that I don't notice them when I eat the cucumbers. I'm assuming that means the seeds are just young and not ready to be collected yet (kind of like how watermelon seeds start soft then harden). So how do I know when the seeds are ready to take from the ...
2014/11/10
[ "https://gardening.stackexchange.com/questions/14586", "https://gardening.stackexchange.com", "https://gardening.stackexchange.com/users/2984/" ]
Pumkins, squash and cucumbers all are pretty easy to propagate by seed. The important part is letting the fruit ripen thoroughly so the seeds finish formation. So, you have to let one of your Zucchini or Cucumbers completely harden up (develop a rind) and change to full ripe color, ie leave it on the vine till the vi...
Saving cucumber seeds is easy. Save them from what you would consider overipe fruits - that are yellow. Even using ones starting to dry out or rot is OK as long as the rot has not invaded the seed cavity. If there is a lot of material on the seeds you can put them through a 'rot' or ferment period, as this will make t...
3,827
1. In [Sherlock Holmes: A Game of Shadows](http://www.imdb.com/title/tt1515091/), why does Moriarty want a sniper to additionally shoot the man in the hotel? Was the bomb not enough? 2. In the first movie, the purpose of Professor Moriarty was stealing the remote control, but it is not mentioned in the second movie at ...
2012/08/19
[ "https://movies.stackexchange.com/questions/3827", "https://movies.stackexchange.com", "https://movies.stackexchange.com/users/1903/" ]
The bomb actually was a coverup to the assassination of the designated target. If the specified target alone is killed with the bullet, Moriarty might have deduced that any of the threads for plotting the murder could be traced back to him or his accomplices. So, he wanted to cover it up with a bomb to blow up everyone...
The purpose of the bomb was threefold: 1. To conceal the fact that a single person in the room was to be killed 2. To inflame passions in the country's involved to ratchet up tensions for Moriarty's desired worldwide conflict 3. To destroy any trace evidence that any of the above had occurred. When the explosion is s...
257,699
[![enter image description here](https://i.stack.imgur.com/BPM73.png)](https://i.stack.imgur.com/BPM73.png) Beyond the solution to this particular diagram, can you explain **if there is** a general set of steps that you would follow to obtain this code? **My guesses:** Would conversion to vector graphics give some g...
2015/07/29
[ "https://tex.stackexchange.com/questions/257699", "https://tex.stackexchange.com", "https://tex.stackexchange.com/users/574/" ]
Should point you in the right direction... ``` \documentclass[tikz, border=5]{standalone} \begin{document} \begin{tikzpicture}[>=stealth, line cap=round] \draw [thick, ->] (0,-2) -- (0, 2) node [midway, sloped, above] {Spatial distribution}; \draw [thick, ->] (0,-2) -- (10,-2) node [midway, below] {Time}; \draw [t...
Here is a `pgfplots` approach: [![pgfplots](https://i.stack.imgur.com/v6CcV.png)](https://i.stack.imgur.com/v6CcV.png) ``` \documentclass[tikz,border=10pt]{standalone} \usepackage{pgfplots} \usetikzlibrary{decorations.text} \pgfmathdeclarefunction{gauss}{3}{% \pgfmathparse{1/(#3*sqrt(2*pi))*exp(-((#1-#2)^2)/(2*#3^2)...
26,614,363
Say I have the following list: ``` <cfset myList = "1a,2b,3c,aa,bb,cc" > ``` How do I sort this list so that it will be "aa,bb,cc,1a,2b,3c"? In other words, I want anything that starts with a number to be at the end of the list and in order of the number it starts with.
2014/10/28
[ "https://Stackoverflow.com/questions/26614363", "https://Stackoverflow.com", "https://Stackoverflow.com/users/3376065/" ]
This will work if you are on CF10+. ``` <cfscript> values = listToArray("1a,2b,3c,aa,bb,cc"); arraySort(values, function(e1, e2) { var diff = val(e1) - val(e2); if(diff != 0) return diff; return e1 < e2 ? -1 : 1; }); writedump(values); </cfscript> ``` Run: <http://...
Here is a way to do it in the database. It shows the general idea. The specifics depend on the database engine which you didn't specify. ``` select field1, field2, etc , case when substr(field1, 1, 1) between '0' and '9' then 2 else 1 end sortby etc order by sortby, field1 ```
26,614,363
Say I have the following list: ``` <cfset myList = "1a,2b,3c,aa,bb,cc" > ``` How do I sort this list so that it will be "aa,bb,cc,1a,2b,3c"? In other words, I want anything that starts with a number to be at the end of the list and in order of the number it starts with.
2014/10/28
[ "https://Stackoverflow.com/questions/26614363", "https://Stackoverflow.com", "https://Stackoverflow.com/users/3376065/" ]
I am assuming you are using MySql. I am not sure whether it will work on others, but I think it should. You can do this on database level if the source of the values is a single column. Try this: ``` SELECT column_name FROM your_table ORDER BY IF(name RLIKE '^[a-z]', 1, 2), name ``` See this [runnable example on...
Here is a way to do it in the database. It shows the general idea. The specifics depend on the database engine which you didn't specify. ``` select field1, field2, etc , case when substr(field1, 1, 1) between '0' and '9' then 2 else 1 end sortby etc order by sortby, field1 ```
26,614,363
Say I have the following list: ``` <cfset myList = "1a,2b,3c,aa,bb,cc" > ``` How do I sort this list so that it will be "aa,bb,cc,1a,2b,3c"? In other words, I want anything that starts with a number to be at the end of the list and in order of the number it starts with.
2014/10/28
[ "https://Stackoverflow.com/questions/26614363", "https://Stackoverflow.com", "https://Stackoverflow.com/users/3376065/" ]
@Henry had a working answer for my CF9 server however when I plugged in my list with 2000 or so items in it, this method would have a significant delay, so I ended up coming up with my own way of doing this which turned out to be super fast: ``` <cfset digits = "0,1,2,3,4,5,6,7,8,9"> <cfset numList = ""> <cfloop inde...
Here is a way to do it in the database. It shows the general idea. The specifics depend on the database engine which you didn't specify. ``` select field1, field2, etc , case when substr(field1, 1, 1) between '0' and '9' then 2 else 1 end sortby etc order by sortby, field1 ```
26,614,363
Say I have the following list: ``` <cfset myList = "1a,2b,3c,aa,bb,cc" > ``` How do I sort this list so that it will be "aa,bb,cc,1a,2b,3c"? In other words, I want anything that starts with a number to be at the end of the list and in order of the number it starts with.
2014/10/28
[ "https://Stackoverflow.com/questions/26614363", "https://Stackoverflow.com", "https://Stackoverflow.com/users/3376065/" ]
This will work if you are on CF10+. ``` <cfscript> values = listToArray("1a,2b,3c,aa,bb,cc"); arraySort(values, function(e1, e2) { var diff = val(e1) - val(e2); if(diff != 0) return diff; return e1 < e2 ? -1 : 1; }); writedump(values); </cfscript> ``` Run: <http://...
I am assuming you are using MySql. I am not sure whether it will work on others, but I think it should. You can do this on database level if the source of the values is a single column. Try this: ``` SELECT column_name FROM your_table ORDER BY IF(name RLIKE '^[a-z]', 1, 2), name ``` See this [runnable example on...
26,614,363
Say I have the following list: ``` <cfset myList = "1a,2b,3c,aa,bb,cc" > ``` How do I sort this list so that it will be "aa,bb,cc,1a,2b,3c"? In other words, I want anything that starts with a number to be at the end of the list and in order of the number it starts with.
2014/10/28
[ "https://Stackoverflow.com/questions/26614363", "https://Stackoverflow.com", "https://Stackoverflow.com/users/3376065/" ]
This will work if you are on CF10+. ``` <cfscript> values = listToArray("1a,2b,3c,aa,bb,cc"); arraySort(values, function(e1, e2) { var diff = val(e1) - val(e2); if(diff != 0) return diff; return e1 < e2 ? -1 : 1; }); writedump(values); </cfscript> ``` Run: <http://...
@Henry had a working answer for my CF9 server however when I plugged in my list with 2000 or so items in it, this method would have a significant delay, so I ended up coming up with my own way of doing this which turned out to be super fast: ``` <cfset digits = "0,1,2,3,4,5,6,7,8,9"> <cfset numList = ""> <cfloop inde...
26,614,363
Say I have the following list: ``` <cfset myList = "1a,2b,3c,aa,bb,cc" > ``` How do I sort this list so that it will be "aa,bb,cc,1a,2b,3c"? In other words, I want anything that starts with a number to be at the end of the list and in order of the number it starts with.
2014/10/28
[ "https://Stackoverflow.com/questions/26614363", "https://Stackoverflow.com", "https://Stackoverflow.com/users/3376065/" ]
I am assuming you are using MySql. I am not sure whether it will work on others, but I think it should. You can do this on database level if the source of the values is a single column. Try this: ``` SELECT column_name FROM your_table ORDER BY IF(name RLIKE '^[a-z]', 1, 2), name ``` See this [runnable example on...
@Henry had a working answer for my CF9 server however when I plugged in my list with 2000 or so items in it, this method would have a significant delay, so I ended up coming up with my own way of doing this which turned out to be super fast: ``` <cfset digits = "0,1,2,3,4,5,6,7,8,9"> <cfset numList = ""> <cfloop inde...
59,067,454
i have a bash/shell script and want to store a command output in a variable (**EXCLUDE\_PATTERN**) and the command itself contains also variables (**FOLDERS** and **BUPATH**). the goal with this command is to replace the spaces in the variable **FOLDERS** with **" --exclude="$BUPATH** for use in an **tar** command if...
2019/11/27
[ "https://Stackoverflow.com/questions/59067454", "https://Stackoverflow.com", "https://Stackoverflow.com/users/7436136/" ]
Solution - On Server1 gave everyone full permission on C:\Users[SQL Service account name]\AppData\Local\Temp Moved the Access file to Server1 and re-linked the server
If the access file is open, it cannot be reopened by another application. Make sure that your Access file is not open.
27,900,840
I am using Entity Framework where I want to fetch all the parent records which doesn't have child record. How to query the same? Parent Table -> "Messages" Child Table - > "SentMessages" EDIT: Please note: I need th solution in Entity Framework classes. Currently I am using - ``` ctx.Messages.Where(m => ctx.Sen...
2015/01/12
[ "https://Stackoverflow.com/questions/27900840", "https://Stackoverflow.com", "https://Stackoverflow.com/users/2560395/" ]
You can try this LINQ, ``` MessageList.Where(m => !SentMessageList.Select(sm => sm.MsgId).Contains(m.MsgId)); ```
in pseudo code: ``` from m in Messages where m.Sents.Count() == 0 select m ```
331,499
Prelude: ======== I'm a code-monkey that's increasingly taken on SysAdmin duties for my small company. My code is our product, and increasingly we provide the same app as SaaS. About 18 months ago I moved our servers from a premium hosting centric vendor to a barebones rack pusher in a tier IV data center. (Literally...
2011/11/16
[ "https://serverfault.com/questions/331499", "https://serverfault.com", "https://serverfault.com/users/251/" ]
How can a single disk bring down the array? The answer is that it shouldn't, but it kind of depends on what is causing the outage. If the disk were to die in a way that behaved, it shouldn't take it down. But it's possible that it's failing in an "edge case" way that the controller can't handle. Are you naive to thin...
Just a guess: the harddisks are configured to retry on read errors rather than report an error. While this is desirable behaviour in a desktop setting, it is counterproductive in a RAID (where the controller should rewrite any sector that fails reading from the other disks, so the drive can remap it).
331,499
Prelude: ======== I'm a code-monkey that's increasingly taken on SysAdmin duties for my small company. My code is our product, and increasingly we provide the same app as SaaS. About 18 months ago I moved our servers from a premium hosting centric vendor to a barebones rack pusher in a tier IV data center. (Literally...
2011/11/16
[ "https://serverfault.com/questions/331499", "https://serverfault.com", "https://serverfault.com/users/251/" ]
Just a guess: the harddisks are configured to retry on read errors rather than report an error. While this is desirable behaviour in a desktop setting, it is counterproductive in a RAID (where the controller should rewrite any sector that fails reading from the other disks, so the drive can remap it).
I have seen a SATA disk with broken electronics lock up the firmware init of an Areca 12something solidly, there was no way to access the BIOS let alone boot the machine from any medium until the offending hard drive was found by pulling disks out in a binary search fashion.
331,499
Prelude: ======== I'm a code-monkey that's increasingly taken on SysAdmin duties for my small company. My code is our product, and increasingly we provide the same app as SaaS. About 18 months ago I moved our servers from a premium hosting centric vendor to a barebones rack pusher in a tier IV data center. (Literally...
2011/11/16
[ "https://serverfault.com/questions/331499", "https://serverfault.com", "https://serverfault.com/users/251/" ]
I hate to say "don't use SATA" in critical production environments, but I've seen this situation quite often. SATA drives are not generally meant for the duty cycle you describe, although you did spec [drives specifically rated for 24x7 operation](http://www.wdc.com/en/products/products.aspx?id=30) in your setup. My ex...
How can a single disk bring down the array? The answer is that it shouldn't, but it kind of depends on what is causing the outage. If the disk were to die in a way that behaved, it shouldn't take it down. But it's possible that it's failing in an "edge case" way that the controller can't handle. Are you naive to thin...
331,499
Prelude: ======== I'm a code-monkey that's increasingly taken on SysAdmin duties for my small company. My code is our product, and increasingly we provide the same app as SaaS. About 18 months ago I moved our servers from a premium hosting centric vendor to a barebones rack pusher in a tier IV data center. (Literally...
2011/11/16
[ "https://serverfault.com/questions/331499", "https://serverfault.com", "https://serverfault.com/users/251/" ]
How can a single disk bring down the array? The answer is that it shouldn't, but it kind of depends on what is causing the outage. If the disk were to die in a way that behaved, it shouldn't take it down. But it's possible that it's failing in an "edge case" way that the controller can't handle. Are you naive to thin...
I'm not an expert, but I'm going to take a wild shot in the dark on the basis of my experience with RAID controllers and storage arrays. Disks fail in many different ways. Unfortunately, disks can fail, or be faulty, in ways where their performance is seriously affected but the RAID controller doesn't see as being a f...
331,499
Prelude: ======== I'm a code-monkey that's increasingly taken on SysAdmin duties for my small company. My code is our product, and increasingly we provide the same app as SaaS. About 18 months ago I moved our servers from a premium hosting centric vendor to a barebones rack pusher in a tier IV data center. (Literally...
2011/11/16
[ "https://serverfault.com/questions/331499", "https://serverfault.com", "https://serverfault.com/users/251/" ]
How can a single disk bring down the array? The answer is that it shouldn't, but it kind of depends on what is causing the outage. If the disk were to die in a way that behaved, it shouldn't take it down. But it's possible that it's failing in an "edge case" way that the controller can't handle. Are you naive to thin...
I have seen a SATA disk with broken electronics lock up the firmware init of an Areca 12something solidly, there was no way to access the BIOS let alone boot the machine from any medium until the offending hard drive was found by pulling disks out in a binary search fashion.
331,499
Prelude: ======== I'm a code-monkey that's increasingly taken on SysAdmin duties for my small company. My code is our product, and increasingly we provide the same app as SaaS. About 18 months ago I moved our servers from a premium hosting centric vendor to a barebones rack pusher in a tier IV data center. (Literally...
2011/11/16
[ "https://serverfault.com/questions/331499", "https://serverfault.com", "https://serverfault.com/users/251/" ]
I hate to say "don't use SATA" in critical production environments, but I've seen this situation quite often. SATA drives are not generally meant for the duty cycle you describe, although you did spec [drives specifically rated for 24x7 operation](http://www.wdc.com/en/products/products.aspx?id=30) in your setup. My ex...
I have seen a SATA disk with broken electronics lock up the firmware init of an Areca 12something solidly, there was no way to access the BIOS let alone boot the machine from any medium until the offending hard drive was found by pulling disks out in a binary search fashion.
331,499
Prelude: ======== I'm a code-monkey that's increasingly taken on SysAdmin duties for my small company. My code is our product, and increasingly we provide the same app as SaaS. About 18 months ago I moved our servers from a premium hosting centric vendor to a barebones rack pusher in a tier IV data center. (Literally...
2011/11/16
[ "https://serverfault.com/questions/331499", "https://serverfault.com", "https://serverfault.com/users/251/" ]
How can a single disk bring down the array? The answer is that it shouldn't, but it kind of depends on what is causing the outage. If the disk were to die in a way that behaved, it shouldn't take it down. But it's possible that it's failing in an "edge case" way that the controller can't handle. Are you naive to thin...
my shot in the dark: * drive 7 is failing. it has some failure windows where it's not available. * drive 8 has some 'lighter' errors too; corrected by retrying. * RAID10 is usually "a RAID0 of several RAID1 pairs", are drive 7 and 8 members of the same pair? if so, then it seems you hit the "shouldn't happen" case of...
331,499
Prelude: ======== I'm a code-monkey that's increasingly taken on SysAdmin duties for my small company. My code is our product, and increasingly we provide the same app as SaaS. About 18 months ago I moved our servers from a premium hosting centric vendor to a barebones rack pusher in a tier IV data center. (Literally...
2011/11/16
[ "https://serverfault.com/questions/331499", "https://serverfault.com", "https://serverfault.com/users/251/" ]
I hate to say "don't use SATA" in critical production environments, but I've seen this situation quite often. SATA drives are not generally meant for the duty cycle you describe, although you did spec [drives specifically rated for 24x7 operation](http://www.wdc.com/en/products/products.aspx?id=30) in your setup. My ex...
You need the features of enterprise class storage devices. Specifically, the WD RE 4 enterprise drives have two features needed to prevent this behavior in RAID Arrays. The first technology listed below prevents rotational harmonic vibration from causing needless wear on the hard drive mechanical components. The second...
331,499
Prelude: ======== I'm a code-monkey that's increasingly taken on SysAdmin duties for my small company. My code is our product, and increasingly we provide the same app as SaaS. About 18 months ago I moved our servers from a premium hosting centric vendor to a barebones rack pusher in a tier IV data center. (Literally...
2011/11/16
[ "https://serverfault.com/questions/331499", "https://serverfault.com", "https://serverfault.com/users/251/" ]
I hate to say "don't use SATA" in critical production environments, but I've seen this situation quite often. SATA drives are not generally meant for the duty cycle you describe, although you did spec [drives specifically rated for 24x7 operation](http://www.wdc.com/en/products/products.aspx?id=30) in your setup. My ex...
Just a guess: the harddisks are configured to retry on read errors rather than report an error. While this is desirable behaviour in a desktop setting, it is counterproductive in a RAID (where the controller should rewrite any sector that fails reading from the other disks, so the drive can remap it).
331,499
Prelude: ======== I'm a code-monkey that's increasingly taken on SysAdmin duties for my small company. My code is our product, and increasingly we provide the same app as SaaS. About 18 months ago I moved our servers from a premium hosting centric vendor to a barebones rack pusher in a tier IV data center. (Literally...
2011/11/16
[ "https://serverfault.com/questions/331499", "https://serverfault.com", "https://serverfault.com/users/251/" ]
I hate to say "don't use SATA" in critical production environments, but I've seen this situation quite often. SATA drives are not generally meant for the duty cycle you describe, although you did spec [drives specifically rated for 24x7 operation](http://www.wdc.com/en/products/products.aspx?id=30) in your setup. My ex...
I'm not an expert, but I'm going to take a wild shot in the dark on the basis of my experience with RAID controllers and storage arrays. Disks fail in many different ways. Unfortunately, disks can fail, or be faulty, in ways where their performance is seriously affected but the RAID controller doesn't see as being a f...
270,057
I often say something like: > > This soup is pretty damn spicy! > > > I am wondering now if this is actually proper grammar. On [Urban Dictionary](https://www.urbandictionary.com/define.php?term=pretty%20damn), it says the meaning of it is *“approximately”*, but when I use this term I don’t use it for “approxima...
2020/12/26
[ "https://ell.stackexchange.com/questions/270057", "https://ell.stackexchange.com", "https://ell.stackexchange.com/users/87858/" ]
*Damn* works as an intensifier, similar to *very*. *Pretty* is much milder, and has a sense of "more than expected", "more than average". It actually works to soften *damn* in this sense, giving it a sense of "this is surprising!" It's definitely informal language, and some people would be offended by the word *damn* ...
What is "proper" is really opinion-based. Some people find "damn" offensive, while many do not. What I can say is that it is not polite and would not be used in a formal setting. You might say it to people you know well, but probably wouldn't say it at a job interview. Again, what is "dirty" is opinion-based. Many pe...
270,057
I often say something like: > > This soup is pretty damn spicy! > > > I am wondering now if this is actually proper grammar. On [Urban Dictionary](https://www.urbandictionary.com/define.php?term=pretty%20damn), it says the meaning of it is *“approximately”*, but when I use this term I don’t use it for “approxima...
2020/12/26
[ "https://ell.stackexchange.com/questions/270057", "https://ell.stackexchange.com", "https://ell.stackexchange.com/users/87858/" ]
What is "proper" is really opinion-based. Some people find "damn" offensive, while many do not. What I can say is that it is not polite and would not be used in a formal setting. You might say it to people you know well, but probably wouldn't say it at a job interview. Again, what is "dirty" is opinion-based. Many pe...
Some people find "damn" offensive, and some do not. You should use in a conversation or not important situations, but not important situations. As I said, some people find damn offensive, so you shouldn't use it at a new person you met. Because you don't know the person will find "damn" offensive or not. So this is n...
270,057
I often say something like: > > This soup is pretty damn spicy! > > > I am wondering now if this is actually proper grammar. On [Urban Dictionary](https://www.urbandictionary.com/define.php?term=pretty%20damn), it says the meaning of it is *“approximately”*, but when I use this term I don’t use it for “approxima...
2020/12/26
[ "https://ell.stackexchange.com/questions/270057", "https://ell.stackexchange.com", "https://ell.stackexchange.com/users/87858/" ]
*Damn* works as an intensifier, similar to *very*. *Pretty* is much milder, and has a sense of "more than expected", "more than average". It actually works to soften *damn* in this sense, giving it a sense of "this is surprising!" It's definitely informal language, and some people would be offended by the word *damn* ...
Some people find "damn" offensive, and some do not. You should use in a conversation or not important situations, but not important situations. As I said, some people find damn offensive, so you shouldn't use it at a new person you met. Because you don't know the person will find "damn" offensive or not. So this is n...
17,579,414
What are good ways, in the last query, to include batch 2 in the result as "processing"? Each batch has several child tasks. The overall status of the batch is what I'm looking for. Task status meanings: * 1=pending * 2=processing * 3=retrying * 4=complete * 5=failed Batch status: * Batch 1 is processing * Batch 2 ...
2013/07/10
[ "https://Stackoverflow.com/questions/17579414", "https://Stackoverflow.com", "https://Stackoverflow.com/users/172207/" ]
**UPDATE** ``` SELECT batchId, 1 processing FROM Table1 GROUP BY batchId HAVING SUM(CASE WHEN taskStatus IN(2,3) THEN 1 ELSE 0 END) > 0 OR (SUM(CASE WHEN taskStatus IN(1,4) THEN 1 ELSE 0 END) = COUNT(*) AND COUNT(DISTINCT taskStatus) = 2) ``` Here is **[SQLFiddle](http://sqlfiddle.com/#!3/e97f9/15)** dem...
I interpret what you're saying to mean that you essentially have 3 different "batch statuses" that roughly equate to your task statuses of Pending, Processing, and Complete. Therefore, for any given task status you need to know 2 things: 1. Does this task status indicate that the task has been started? 2. Does this t...
17,579,414
What are good ways, in the last query, to include batch 2 in the result as "processing"? Each batch has several child tasks. The overall status of the batch is what I'm looking for. Task status meanings: * 1=pending * 2=processing * 3=retrying * 4=complete * 5=failed Batch status: * Batch 1 is processing * Batch 2 ...
2013/07/10
[ "https://Stackoverflow.com/questions/17579414", "https://Stackoverflow.com", "https://Stackoverflow.com/users/172207/" ]
I prefer the select subquery as the most straightforward to anything I've seen so far. ``` SELECT t.batchId, CASE WHEN EXISTS(SELECT 1 FROM #t WHERE taskStatus IN (2,3) AND batchId = t.batchId) THEN 1 WHEN EXISTS(SELECT 1 FROM #t WHERE taskStatus=1 AND batchId = t.batchId) AND EXISTS(SELECT...
I interpret what you're saying to mean that you essentially have 3 different "batch statuses" that roughly equate to your task statuses of Pending, Processing, and Complete. Therefore, for any given task status you need to know 2 things: 1. Does this task status indicate that the task has been started? 2. Does this t...
6,758,693
``` class Base { } class Derive:Base { } Base b=new Derive(); ``` The above code works,but why we are able to create a Object of Derive Class and assigning it to Base Class reference. Also,the object variable 'b' will be able to access all non private variable and methods of Class Base,even though it is referenci...
2011/07/20
[ "https://Stackoverflow.com/questions/6758693", "https://Stackoverflow.com", "https://Stackoverflow.com/users/808574/" ]
The theory allowing the above code to work is called the [**substitution principle**](http://en.wikipedia.org/wiki/Liskov_substitution_principle): When `Derived` is a subtype of `Base`, this forms a "is-a" relationship. The substitution principle postulates that wherever an instance of `Base` is expected, it can be sub...
I think this is polymorhism question rather than inheritance. One of the key features of derived classes is that a pointer to a derived class is type-compatible with a pointer to its base class. Using polymorphism you can take advantage of this feature. Polymorhism allows you to invoke derived class methods through a...
14,961,303
I have a .NET 4 Windows service I've written that periodically (usually once a day) communicates with an external device over a serial port. All in all the service works great, but for one customer, every now and then, a call to `SerialPort.Open()` throws the following exception: ``` System.IO.IOException: Insufficien...
2013/02/19
[ "https://Stackoverflow.com/questions/14961303", "https://Stackoverflow.com", "https://Stackoverflow.com/users/2087522/" ]
The answer to this question is that the serial port server used by the client was a wi-fi version (Moxa NPort W2150 Plus) and it turns out the exception occurs when the serial port server has wi-fi connectivity problems.
Had the same problem with NPort 5150. Increasing Network timeout (in NPort Administrator) solved my problem.
14,961,303
I have a .NET 4 Windows service I've written that periodically (usually once a day) communicates with an external device over a serial port. All in all the service works great, but for one customer, every now and then, a call to `SerialPort.Open()` throws the following exception: ``` System.IO.IOException: Insufficien...
2013/02/19
[ "https://Stackoverflow.com/questions/14961303", "https://Stackoverflow.com", "https://Stackoverflow.com/users/2087522/" ]
The answer to this question is that the serial port server used by the client was a wi-fi version (Moxa NPort W2150 Plus) and it turns out the exception occurs when the serial port server has wi-fi connectivity problems.
I recently had the same problem, the resolution for me was that I was accidentally using a straight-through DB9 cable with a device that required a null modem DB9 cable. Once I swapped to a null modem cable the error disappeared and the device functioned properly. When I called Moxa, they suggested some other things t...
14,961,303
I have a .NET 4 Windows service I've written that periodically (usually once a day) communicates with an external device over a serial port. All in all the service works great, but for one customer, every now and then, a call to `SerialPort.Open()` throws the following exception: ``` System.IO.IOException: Insufficien...
2013/02/19
[ "https://Stackoverflow.com/questions/14961303", "https://Stackoverflow.com", "https://Stackoverflow.com/users/2087522/" ]
The answer to this question is that the serial port server used by the client was a wi-fi version (Moxa NPort W2150 Plus) and it turns out the exception occurs when the serial port server has wi-fi connectivity problems.
I had this error and my problem was that the NPort Administration found and programmed the serial ports but the IP4 Address of the network card was set to DHCP. I think this happened during a system update. Recovery from that: 1. Add a TCP/IP address in the subnet of the network interface 2. Reassign the serial ports...
43,279,587
I have been trying to solve a problem for a few hours now, but I failed to figure it out.i try a set adapter for expandable list view but i take this error. thanks. "Attempt to invoke virtual method 'void android.widget.ExpandableListView.setAdapter(android.widget.ExpandableListAdapter)' on a null object reference" *...
2017/04/07
[ "https://Stackoverflow.com/questions/43279587", "https://Stackoverflow.com", "https://Stackoverflow.com/users/7273104/" ]
I think your issue can be resolved by setting `@JsonProperty("customfield_10700")` to the field `deploymentEnvironments` as shown below. You don't need a custom deserializer in this case. ``` public class IssueFieldsPoc implements Serializable { @JsonProperty private String summary; @JsonProperty private Date...
Well, if I understand right, you need to transform json to java object. If you want that class ignore unknown properties you need add `@JsonIgnoreProperties(ignoreUnknown = true)` to your classes which must ignore (`IssueResponsePoc` only or `IssueFieldsPoc` too). In `@JsonProperty(value = <name_of_property_in_json>)...
3,913,365
I have the following situation of branches in a Perforce repository: There’s a mainline “trunk” and two release branches “1.0” and “1.1”. A branch “customer” with customer specific changes has been branched off the 1.0 branch. Now the customer wants to move to version 1.1. How can I merge the 1.1 branch into the custom...
2010/10/12
[ "https://Stackoverflow.com/questions/3913365", "https://Stackoverflow.com", "https://Stackoverflow.com/users/381281/" ]
When you try to integrate revision 3 from your 1.1 branch, Perforce will only tell you that it's integrating changes on that particular branch -- but revision 1 already contains trunk revisions 101 and 102. When merging, Perforce will identify trunk revision 100 as the common ancestor for conflict resolution. It's bee...
To make integrations easy, I would create a specific branches trunk\_to\_custer and 1.1\_to\_customer and then issue: ``` cd customer-workspace p4 integ -b trunk_to_customer @change-number-at-which-1.1-was-branched p4 resolve ``` perhaps an in-between submit here, and then ``` p4 integ -b 1.1_to_customer p4 resolv...
3,913,365
I have the following situation of branches in a Perforce repository: There’s a mainline “trunk” and two release branches “1.0” and “1.1”. A branch “customer” with customer specific changes has been branched off the 1.0 branch. Now the customer wants to move to version 1.1. How can I merge the 1.1 branch into the custom...
2010/10/12
[ "https://Stackoverflow.com/questions/3913365", "https://Stackoverflow.com", "https://Stackoverflow.com/users/381281/" ]
I'd strongly suggest trying to merge the customer's changes into the trunk. It's going to continue to be a maintenance nightmare when a few months down the line the customer wants to upgrade to 2.0 + their custom changes. If you don't want the customer changes reflected in your main project, take the time to restructu...
To make integrations easy, I would create a specific branches trunk\_to\_custer and 1.1\_to\_customer and then issue: ``` cd customer-workspace p4 integ -b trunk_to_customer @change-number-at-which-1.1-was-branched p4 resolve ``` perhaps an in-between submit here, and then ``` p4 integ -b 1.1_to_customer p4 resolv...
55,207,297
I get the following response XML String after calling a SOAP web service. How can i parse the response back to Java entity so that i can handle the `ErrMsg` and `Status` accordingly? I tried with the below code, but keep getting error ``` Exception in thread "main" javax.xml.bind.UnmarshalException: unexpected elemen...
2019/03/17
[ "https://Stackoverflow.com/questions/55207297", "https://Stackoverflow.com", "https://Stackoverflow.com/users/10446234/" ]
It looks like you have many `NewDataSet` classes in your `POJO` model. Check this line of code `JAXBContext.newInstance(NewDataSet.class)` and check `import` whether you imported correct one because exception says that marshaller expects `TransactionalSubmissionsSvcs.NewDataSet`. Before edit ----------- You did not m...
Found the reason, it was resolved by removing the `namespace = "TransactionalSubmissionsSvcs"` ``` @javax.xml.bind.annotation.XmlSchema(namespace = "TransactionalSubmissionsSvcs",elementFormDefault = javax.xml.bind.annotation.XmlNsForm.QUALIFIED) package com.mailadapter; ``` to become ``` @javax.xml.bind.annotation...
16,586,078
opened a popup by click on a pie-chart slice but not when clicked on a data label. How to add click event to a data label of a pie-chart?
2013/05/16
[ "https://Stackoverflow.com/questions/16586078", "https://Stackoverflow.com", "https://Stackoverflow.com/users/2389673/" ]
Update to the last version of Highcharts, using the point select event fires both for the label and the pie slice. ``` plotOptions: { series: { allowPointSelect: true, point: { events: { select: function() { self.yourFunction(this.id);...
You can use html tags and classes in label.formatter, then using jQuery you can add events. ``` dataLabels: { useHTML: true, formatter: function() { return '<div class="my-click">' + this.point.name + '</div>'; } } ``` And then: ``` $(".my-click").on('click', function(){ /* do somthing */ }); `...
25,469,112
I'm using the script .git/hooks/pre-commit to take snapshots of a MySQL database along with other project files. Here are the contents: ``` #!/bin/bash mysqldump -u user -ppassword --skip-extended-insert dbname > /path/to/repo/dbname.sql cd /mnt/hoste/Storage/Code/test-repo/ git add /path/to/repo/dbname.sql ``` If I...
2014/08/24
[ "https://Stackoverflow.com/questions/25469112", "https://Stackoverflow.com", "https://Stackoverflow.com/users/1306689/" ]
In a hook, make sure to always specify the git\_dir and work\_tree: ``` git --git-dir=/path/to/your/repo/.git --work-tree=/path/to/your/repo add -- yourFile ``` By changing folder in a hook, you are *not* changing what was the current git repo. If that repo is supposed to change, it is best to reference it explicitl...
What I observe is that the "pre-commit" hook occurs after git has "frozen" the list of files to be affected (i.e., chosen a content addressable name of the repository state), and it cannot be influenced to alter that; instead, the "git add" in the pre-commit hook is making changes to the index that will be in effect on...
966,583
Can't connect for 3 days already, saing 'Failed to connect repositories' All access already granted and i'm repository owner Perhaps you know how to deal with that EDIT: Bitbucked connected without any problem Thanks in advanced [![enter image description here](https://i.stack.imgur.com/Ub35x.png)](https://i.st...
2019/05/09
[ "https://serverfault.com/questions/966583", "https://serverfault.com", "https://serverfault.com/users/522870/" ]
Enabling the **sourcerepo.googleapis.com** API on the project solved it.
Looks like Google's service is buggy at the moment. When you attempt to connect it does a POST. I am having same issue. On my end it attempts to post: Request URL: `https://grimoire-pa.clients6.google.com/batch%24ct=multipart%2Fmixed%3B%20boundary%3Dbatch764066031442833345` Request Method: `POST` Status Code: `200...
966,583
Can't connect for 3 days already, saing 'Failed to connect repositories' All access already granted and i'm repository owner Perhaps you know how to deal with that EDIT: Bitbucked connected without any problem Thanks in advanced [![enter image description here](https://i.stack.imgur.com/Ub35x.png)](https://i.st...
2019/05/09
[ "https://serverfault.com/questions/966583", "https://serverfault.com", "https://serverfault.com/users/522870/" ]
Enabling the **sourcerepo.googleapis.com** API on the project solved it.
Based on your screenshot it looks like you were trying to connect to an organization repository. I was having the same problem with organization repositories but I managed to find a workaround (though, I am not sure how reliable it is so it is not guaranteed to work): 1. Go to your Github application settings (<https:...
15,198,520
My instructor is having trouble grading my assignment. I created the following program in BlueJ, and he most likely uses Eclipse. The problem is that I couldn't get BlueJ to fire up any piece of code with the main method, so I just opted to use a constructor instead. A copy/paste of my BlueJ code into Eclipse shows it ...
2013/03/04
[ "https://Stackoverflow.com/questions/15198520", "https://Stackoverflow.com", "https://Stackoverflow.com/users/1834148/" ]
one way is to create another class to hold your main method ``` public class Main { public static void main (String args[]) { RandomGame rGame = new RandomGame(); } } ``` (Note: the name of the .java file must be Main.java in the above case) otherwise you can just add the main() to your RandomGa...
Write `public static void main(String args[])` Inside the main, make an instance of your class.
15,198,520
My instructor is having trouble grading my assignment. I created the following program in BlueJ, and he most likely uses Eclipse. The problem is that I couldn't get BlueJ to fire up any piece of code with the main method, so I just opted to use a constructor instead. A copy/paste of my BlueJ code into Eclipse shows it ...
2013/03/04
[ "https://Stackoverflow.com/questions/15198520", "https://Stackoverflow.com", "https://Stackoverflow.com/users/1834148/" ]
Consider the following steps : 1. Change the constructor to main method `public static void main(String[] args)` 2. Change all the private/public methods used in the constructor as `static` methods 3. Either change the member variable `usersScore` as static or create instance of RandomGame instead main to track the va...
Write `public static void main(String args[])` Inside the main, make an instance of your class.
15,198,520
My instructor is having trouble grading my assignment. I created the following program in BlueJ, and he most likely uses Eclipse. The problem is that I couldn't get BlueJ to fire up any piece of code with the main method, so I just opted to use a constructor instead. A copy/paste of my BlueJ code into Eclipse shows it ...
2013/03/04
[ "https://Stackoverflow.com/questions/15198520", "https://Stackoverflow.com", "https://Stackoverflow.com/users/1834148/" ]
one way is to create another class to hold your main method ``` public class Main { public static void main (String args[]) { RandomGame rGame = new RandomGame(); } } ``` (Note: the name of the .java file must be Main.java in the above case) otherwise you can just add the main() to your RandomGa...
The code below has made the following changes: * Added constructor logic to a main method * Made methods static * Made field static ``` import java.util.Scanner; public class RandomGame { static int usersScore = 0; public static void main(String[] args) { Scanner userInput = new Scanner(System.in); ...
15,198,520
My instructor is having trouble grading my assignment. I created the following program in BlueJ, and he most likely uses Eclipse. The problem is that I couldn't get BlueJ to fire up any piece of code with the main method, so I just opted to use a constructor instead. A copy/paste of my BlueJ code into Eclipse shows it ...
2013/03/04
[ "https://Stackoverflow.com/questions/15198520", "https://Stackoverflow.com", "https://Stackoverflow.com/users/1834148/" ]
Consider the following steps : 1. Change the constructor to main method `public static void main(String[] args)` 2. Change all the private/public methods used in the constructor as `static` methods 3. Either change the member variable `usersScore` as static or create instance of RandomGame instead main to track the va...
The code below has made the following changes: * Added constructor logic to a main method * Made methods static * Made field static ``` import java.util.Scanner; public class RandomGame { static int usersScore = 0; public static void main(String[] args) { Scanner userInput = new Scanner(System.in); ...
58,317,820
I'm trying to plot the output from an ODE using a Kronecker delta function which should only become 'active' at a specific time = t1. This should give a sawtooth like response where the initial value decays down exponentially until t=t1 where it rises again instantly before decaying down once again. However, when I plo...
2019/10/10
[ "https://Stackoverflow.com/questions/58317820", "https://Stackoverflow.com", "https://Stackoverflow.com/users/12193433/" ]
In the case of a simple Kronecker delta using time, you can run the ode in pieces like so: ``` from scipy.integrate import odeint import matplotlib.pyplot as plt import numpy as np def dy_dt(y,t): return -2*y t_delta = 4 tend = 10 y0 = [500] t1 = np.linspace(0,t_delta,50) y1 = odeint(dy_dt,y0,t1) y0 = y1[-1] +...
I think the problem could be internal rounding errors, because 0.1 cannot be represented exactly as a python `float`. I would try ``` import math def dy_dt(y,t): if math.isclose(t, t1): return 500 - 2*y else: return -2y ``` Also the documentation of `odeint` suggests using the `args` parame...
47,815,347
I'm having a problem when I'm trying to create a child model associated to his parent. I have 2 models: * Instituion (has many addresses) * Address (has 1 Institution) When I click a Institution and I go to show.blade.php where I have a form to create an Address for that Institution I can't get from the request the ...
2017/12/14
[ "https://Stackoverflow.com/questions/47815347", "https://Stackoverflow.com", "https://Stackoverflow.com/users/5609097/" ]
You can access the id from the parameters of the `store` method like this : In the routes file : ``` Route::post('/institution/{institution_id}/addresses', 'YourController@store') ``` In the controller : ``` public function store($institution_id, Request $request) { $request->request->add(['institution_id' => ...
``` $p=Parent::find($anId); $ch=Child::create(['somekey0'=>value0,'somekey1'=>value1, ...,'somekeyN'=>valueN]); $ch->my_parent()->associate($p); $ch->save(); ```
47,815,347
I'm having a problem when I'm trying to create a child model associated to his parent. I have 2 models: * Instituion (has many addresses) * Address (has 1 Institution) When I click a Institution and I go to show.blade.php where I have a form to create an Address for that Institution I can't get from the request the ...
2017/12/14
[ "https://Stackoverflow.com/questions/47815347", "https://Stackoverflow.com", "https://Stackoverflow.com/users/5609097/" ]
If all relationships are set, the documentation has what you're looking for <https://laravel.com/docs/5.5/eloquent-relationships#the-create-method> Example: ``` // Routes (If laravel version > 5.2 web.php I guess Route::post('/institution/{institution_id}/addresses', 'Controller@store') // app/Http/Controllers/Contro...
``` $p=Parent::find($anId); $ch=Child::create(['somekey0'=>value0,'somekey1'=>value1, ...,'somekeyN'=>valueN]); $ch->my_parent()->associate($p); $ch->save(); ```
47,815,347
I'm having a problem when I'm trying to create a child model associated to his parent. I have 2 models: * Instituion (has many addresses) * Address (has 1 Institution) When I click a Institution and I go to show.blade.php where I have a form to create an Address for that Institution I can't get from the request the ...
2017/12/14
[ "https://Stackoverflow.com/questions/47815347", "https://Stackoverflow.com", "https://Stackoverflow.com/users/5609097/" ]
Here's how I did it. I had 2 models/controllers: website and visitor. Visitor is dependent on website. Routes: ``` Route::resource('website', 'WebsiteController'); Route::resource('website/{website}/visitor', 'VisitorController'); ``` Don't forget to set all the relationships. I'll only show you the one that I'll u...
``` $p=Parent::find($anId); $ch=Child::create(['somekey0'=>value0,'somekey1'=>value1, ...,'somekeyN'=>valueN]); $ch->my_parent()->associate($p); $ch->save(); ```
30,697,993
Can anyone explain me the result of this execution? I can't notice why each method is called. And how we distinguish the real type vs the apparent type. Thank you :) ``` public class JavaApplication15 { public static void main(String[] args) { A a = new A(); B b= new B(); A ab = new B(); ...
2015/06/07
[ "https://Stackoverflow.com/questions/30697993", "https://Stackoverflow.com", "https://Stackoverflow.com/users/3671361/" ]
You are [overloading](http://en.wikipedia.org/wiki/Function_overloading) which (per the wikipedia) creates *multiple methods of the same name with different implementations*. I think you meant to [override](http://en.wikipedia.org/wiki/Method_overriding) the `f(A x)` method with the `f(B x)` method. Overriding (per the...
Since `B` extends `A` and A has a public method. So it has both of the following methods - ``` public void f(A x){ System.out.println("Send a fax to "+ x ) ; } ``` And - ``` public void f(B x){ System.out.println("Send an email to"+ x ) ; } ``` Actually the seond method in `B` is an overloaded versio...
30,697,993
Can anyone explain me the result of this execution? I can't notice why each method is called. And how we distinguish the real type vs the apparent type. Thank you :) ``` public class JavaApplication15 { public static void main(String[] args) { A a = new A(); B b= new B(); A ab = new B(); ...
2015/06/07
[ "https://Stackoverflow.com/questions/30697993", "https://Stackoverflow.com", "https://Stackoverflow.com/users/3671361/" ]
``` @Override public String toString() { return id; } ``` This defines how the class is outputted. When you call a function such as the following: ``` b.f(a) ``` You are inputting a class as the parameter. Because of your `toString()` method, which is an override of the standard method to output your class, yo...
Since `B` extends `A` and A has a public method. So it has both of the following methods - ``` public void f(A x){ System.out.println("Send a fax to "+ x ) ; } ``` And - ``` public void f(B x){ System.out.println("Send an email to"+ x ) ; } ``` Actually the seond method in `B` is an overloaded versio...
30,697,993
Can anyone explain me the result of this execution? I can't notice why each method is called. And how we distinguish the real type vs the apparent type. Thank you :) ``` public class JavaApplication15 { public static void main(String[] args) { A a = new A(); B b= new B(); A ab = new B(); ...
2015/06/07
[ "https://Stackoverflow.com/questions/30697993", "https://Stackoverflow.com", "https://Stackoverflow.com/users/3671361/" ]
An object of class `B` has both `f(A)` and `f(B)`. When you call `f(x)`, it generally chooses the *most specific* one that matches the type of `x`. For this, what matters is the type of the *reference*. So your `a` is an `A`, therefore it calls `f(A)`. Your `b` is a `B`, therefore it calls `f(B)`. But what is your `ab...
Since `B` extends `A` and A has a public method. So it has both of the following methods - ``` public void f(A x){ System.out.println("Send a fax to "+ x ) ; } ``` And - ``` public void f(B x){ System.out.println("Send an email to"+ x ) ; } ``` Actually the seond method in `B` is an overloaded versio...
11,444
I recently rewatched *The Prestige* and find this question to be central to understanding the plot. In the final narration Cutter seems to be challenging the audience to discover a further, hidden secret. This secret would necessarily not be made explicit in the movie, but nevertheless be key to understanding the entir...
2013/05/16
[ "https://movies.stackexchange.com/questions/11444", "https://movies.stackexchange.com", "https://movies.stackexchange.com/users/4878/" ]
I think Angier was prepared for, and was expecting Borden to crash his show, but he did not know when Borden would do it. Angier clearly did not have the courage and plan to keep killing a duplicate of himself forever. He wanted to outdo Borden mainly for revenge. It was his plan than sooner or later Borden would show ...
This is one of those things that could probably never be answered, I am not even sure the author really knows. All the comments above make good points, so not to distract from them, but felt this deserved at least one answer ... The final narration and the 'clues' that are revealed are meant to be provocative. A set o...
31,828
And when did it start being used that way? Before or after the bird meaning of "rook"?
2011/06/28
[ "https://english.stackexchange.com/questions/31828", "https://english.stackexchange.com", "https://english.stackexchange.com/users/10041/" ]
[etymonline.com](http://www.etymonline.com/index.php?term=rook) > > "chess piece," c.1300, from O.Fr. roc, > from Arabic rukhkh, from Pers. rukh, > of unknown meaning, perhaps somehow > related to the Indian name for the > piece, rut, from Hindi rath "chariot." > > > According to the OED, the word rook meanin...
In the first case (when the word is used to refer to a chess piece), the origin of the word is Middle English, from Old French *rock*, based on Arabic *ruḵḵ*. In the second case, the origin of the word is from Old English *hrōc*. The word has been first used to refer to the bird, but the two words have different or...
31,828
And when did it start being used that way? Before or after the bird meaning of "rook"?
2011/06/28
[ "https://english.stackexchange.com/questions/31828", "https://english.stackexchange.com", "https://english.stackexchange.com/users/10041/" ]
[etymonline.com](http://www.etymonline.com/index.php?term=rook) > > "chess piece," c.1300, from O.Fr. roc, > from Arabic rukhkh, from Pers. rukh, > of unknown meaning, perhaps somehow > related to the Indian name for the > piece, rut, from Hindi rath "chariot." > > > According to the OED, the word rook meanin...
The rook is definitely named from the Persian word rukh meaning war-chariot as the corresponding piece in Oriental games is also called a chariot. However as the game came to Europe the word got confused with the Italian word rocca meaning a tower. That's why it's represented as a fortified tower and referred to inform...
657,827
[Here](https://www.youtube.com/watch?v=LOoM3qlpYuU&list=PLHXZ9OQGMqxcJXnLr08cyNaup4RDsbAl1&index=12) (and [*here*](http://lie.math.okstate.edu/%7Ebinegar/2233/2233-l31.pdf)), I saw an equation for a horizontal frictionless harmonic oscillator (a mass on a spring) that was suddenty hit by a hummer (i.e. the duration of ...
2021/08/07
[ "https://physics.stackexchange.com/questions/657827", "https://physics.stackexchange.com", "https://physics.stackexchange.com/users/238538/" ]
You seem to be new to the concept of the $\delta$-function. Therefore I will try to motivate this now. Let's hit the oscillator body with a hammer made of soft rubber. The force-time graph will look like this: [![enter image description here](https://i.stack.imgur.com/DRkCp.png)](https://i.stack.imgur.com/DRkCp.png...
The only thing I’ll add to Thomas’ great answer is the terminology of an “impulse”, sometimes called “impulse force”. If you say “And then there is an impulse on the object.”, people will get that it is a very short-term, large force, such as an impact, and we don’t know or care about the specific dynamics of that for...
28,526,500
I'm developing a Contiki+Cooja application(sky motes) with one border router and about 30 motes. For some of them I'm simulating a direct cable connection by putting them in the tx range of the BR(in cooja) and setting: #define DUIP\_CONF\_IPV6\_RPL 0 I have noticed that querying the br (<http://[aaaa::212:7401:1:101]>...
2015/02/15
[ "https://Stackoverflow.com/questions/28526500", "https://Stackoverflow.com", "https://Stackoverflow.com/users/3146756/" ]
There is a difference between [Bare Build Definition](http://www.scala-sbt.org/0.13/tutorial/Bare-Def.html), [Multi-Project .sbt definition](http://www.scala-sbt.org/0.13/tutorial/Basic-Def.html) and [Scala Build Definition](http://www.scala-sbt.org/0.13/tutorial/Full-Def.html). About the first one: > > Unlike Multi-...
I found a solution for the problem. I added the following lines to the scala build file: ``` lazy val root = Project(id = "HardyHeron", base = file("."), settings = Project.defaultSettings ++ hardyHeronSettings) ``` After that it nearly worked but I got an MissingRequirementError because of the line ``` libra...
60,723,486
I am trying to implement a basic function but I'm out of practice with Haskell and struggling so would really appreciate some help. My question is specifically how to select a section of a list **by index**. I know how to in other languages but have been struggling ``` [ x | x <- graph, x!! > 5 && x!! <10 ] ``` I h...
2020/03/17
[ "https://Stackoverflow.com/questions/60723486", "https://Stackoverflow.com", "https://Stackoverflow.com/users/2733843/" ]
As pointed out in the comments `!!` does not give you the index of a value in the way it seems you expect. It is just an infix for getting an element of a list. There is no way to get the index of `x` like this in Haskell since the `x` object doesn't keep track of where it is. To fix this we can make a list of object...
In this case, you could `drop 5 <&> take 4`. As in `drop 5 x & take 4`. Drop skips the first few elements and take leaves out all but the first few left after the drop.
63,088,123
I am getting gradle build error while running the app. I am using windows 10 with 8GB RAM, Android studio version 4.0.1 > > Out of memory: Java heap space. Please assign more memory to Gradle in > the project's gradle.properties file. For example, the following line, > in the gradle.properties file, sets the maximum ...
2020/07/25
[ "https://Stackoverflow.com/questions/63088123", "https://Stackoverflow.com", "https://Stackoverflow.com/users/6345799/" ]
1. Give more RAM for gradle `org.gradle.jvmargs=-Xmx4g` 2. If you face the same problem after can run for a few times, open `Task Manager`, `End task` any `Open JDK Platform binary` or `Java(TM) Se Binary` to release RAM, then you can run project again. If your computer have less than 8GB RAM, set like this in your `g...
Adding `android:largeHeap="true"` to the `AndroidManifest.xml` may solve your problem, if you haven't already added. But note that the main issue is your app is consuming too much memory. Consider tracking your app at runtime to find the unusual memory consuming process/objects. ``` <manifest ... <applicati...