qid int64 1 74.7M | question stringlengths 15 58.3k | date stringlengths 10 10 | metadata list | response_j stringlengths 4 30.2k | response_k stringlengths 11 36.5k |
|---|---|---|---|---|---|
95,285 | If $R$ is an algebra without a unit, then the standard unitisation $R^\sharp$ can have maximal one-sided ideals other than $R$. Thus, it is natural to ask about the following. Let $R$ be an algebra without a unit (over a field with char 0 if it does matter).
Is there a unital algebra $A$ such that $R$ is the unique ma... | 2012/04/26 | [
"https://mathoverflow.net/questions/95285",
"https://mathoverflow.net",
"https://mathoverflow.net/users/23242/"
] | Hi, here are some references taken from *Algebraic geometry I. Schemes.* by Gortz and Wedhorn, Appendix E. These are generally scattered in EGAIV as far as I remember. Anyway, Kazuma Shimomoto recently pointed out to me this appendix.
**EDIT:** I originally misread what Gortz and Wedhorn were saying, and got the refer... | I think that the answer for 2) is negative. Let $C$ be the union of the axises in the plane and $p:C \to \mathbb A ^1$ be given by $p(x,y)=x+y$. the fiber of $0$ is "irreducible" but non-reduced (i.e. its reduction is irreducible), but the generic fiber is reducible.
Another counterexample is $X=[(x,y,z) \in \mathbb A... |
1,956,345 | I am confirming about creating activity.
My Manifest.xml is like this :
```
<application android:icon="@drawable/icon" android:label="@string/app_name">
<activity android:name=".FirstActivity"
android:label="@string/app_name">
<intent-filter>
<action android:name="android.intent.action.MAIN" />... | 2009/12/24 | [
"https://Stackoverflow.com/questions/1956345",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/227889/"
] | Try this config:
```
<application android:icon="@drawable/icon" android:label="@string/app_name">
<activity android:name=".FirstActivity" android:label="@string/app_name">
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" ... | Think of an [`Intent`](http://developer.android.com/guide/topics/fundamentals.html) as message used to start an `Activity` to do something. So I can create an `Intent` to view a web page and an application with an Activity which knows how to view a web page - most likely the browser - can intercept his Intent as act on... |
1,956,345 | I am confirming about creating activity.
My Manifest.xml is like this :
```
<application android:icon="@drawable/icon" android:label="@string/app_name">
<activity android:name=".FirstActivity"
android:label="@string/app_name">
<intent-filter>
<action android:name="android.intent.action.MAIN" />... | 2009/12/24 | [
"https://Stackoverflow.com/questions/1956345",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/227889/"
] | Try this config:
```
<application android:icon="@drawable/icon" android:label="@string/app_name">
<activity android:name=".FirstActivity" android:label="@string/app_name">
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" ... | One of the other problems with using
`<category android:name="android.intent.category.LAUNCHER" />` for more than one activity is that the Phone's launcher menu will display more than one icon...
**From the docs:**
>
> CATEGORY\_LAUNCHER The activity can
> be the initial activity of a task and
> is listed in the ... |
2,094,668 | I'm making a widget similar to the uservoice widgets, except I want the content of the page to be in an iFrame rather than the widget appear via javascript.
How can I have a full page (width/height 100%) iFrame with a div fixed to the left of the browser, an example (using javascript rather than css/html) is here: <ht... | 2010/01/19 | [
"https://Stackoverflow.com/questions/2094668",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/248231/"
] | If you're not loading cross domain then you could just load in using jquery ajax call
<http://docs.jquery.com/Ajax/load>
```
$(document).ready(function () {
$("#content").load("page.html");
});
```
and replace your iframe with
```
<div id="content"></div>
``` | That's "[clickjacking](http://en.wikipedia.org/wiki/Clickjacking)", isn't it?
Nothing is likely to work long term, as browsers (rightly) see this as a security threat to be prevented. |
2,094,668 | I'm making a widget similar to the uservoice widgets, except I want the content of the page to be in an iFrame rather than the widget appear via javascript.
How can I have a full page (width/height 100%) iFrame with a div fixed to the left of the browser, an example (using javascript rather than css/html) is here: <ht... | 2010/01/19 | [
"https://Stackoverflow.com/questions/2094668",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/248231/"
] | That's "[clickjacking](http://en.wikipedia.org/wiki/Clickjacking)", isn't it?
Nothing is likely to work long term, as browsers (rightly) see this as a security threat to be prevented. | You probably need to add margin:auto; to your iFrame or the floating div.
This will make it fill the screen 100%.
Example:
```
.width {
position:absolute;
left:0;
right:0;
top:0;
bottom:0;
width:250px;
height:150px;
margin:auto;
}
```
To fix it to the left of the browser you can use:
```
ma... |
2,094,668 | I'm making a widget similar to the uservoice widgets, except I want the content of the page to be in an iFrame rather than the widget appear via javascript.
How can I have a full page (width/height 100%) iFrame with a div fixed to the left of the browser, an example (using javascript rather than css/html) is here: <ht... | 2010/01/19 | [
"https://Stackoverflow.com/questions/2094668",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/248231/"
] | This worked for me:
* add the overlay div with a high z-index and absolute position
* make the iframe also positioned absolute
* add the iframe inside a div
The div with the overlay:
```
<div style="z-index:99;position:absolute;top:0;right:0">
...overlay html...
</div>
```
The iframe:
```
<style>
iframe {
... | You could wrap your iframe in a div with a low Z-index and then lay a div over it with a higher z-index. |
2,094,668 | I'm making a widget similar to the uservoice widgets, except I want the content of the page to be in an iFrame rather than the widget appear via javascript.
How can I have a full page (width/height 100%) iFrame with a div fixed to the left of the browser, an example (using javascript rather than css/html) is here: <ht... | 2010/01/19 | [
"https://Stackoverflow.com/questions/2094668",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/248231/"
] | That's "[clickjacking](http://en.wikipedia.org/wiki/Clickjacking)", isn't it?
Nothing is likely to work long term, as browsers (rightly) see this as a security threat to be prevented. | You could wrap your iframe in a div with a low Z-index and then lay a div over it with a higher z-index. |
2,094,668 | I'm making a widget similar to the uservoice widgets, except I want the content of the page to be in an iFrame rather than the widget appear via javascript.
How can I have a full page (width/height 100%) iFrame with a div fixed to the left of the browser, an example (using javascript rather than css/html) is here: <ht... | 2010/01/19 | [
"https://Stackoverflow.com/questions/2094668",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/248231/"
] | That's "[clickjacking](http://en.wikipedia.org/wiki/Clickjacking)", isn't it?
Nothing is likely to work long term, as browsers (rightly) see this as a security threat to be prevented. | with this code I get a double scrollbar on the right on the right.
One for the website and one for the i-frame.
```
<style>
iframe {
position: absolute;
border: none;
box-sizing: border-box;
width: 100%;
height: 100%;
}
</style>
<div>
<iframe src="http://..."> </iframe>
</div>
``` |
2,094,668 | I'm making a widget similar to the uservoice widgets, except I want the content of the page to be in an iFrame rather than the widget appear via javascript.
How can I have a full page (width/height 100%) iFrame with a div fixed to the left of the browser, an example (using javascript rather than css/html) is here: <ht... | 2010/01/19 | [
"https://Stackoverflow.com/questions/2094668",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/248231/"
] | That's "[clickjacking](http://en.wikipedia.org/wiki/Clickjacking)", isn't it?
Nothing is likely to work long term, as browsers (rightly) see this as a security threat to be prevented. | This worked for me:
* add the overlay div with a high z-index and absolute position
* make the iframe also positioned absolute
* add the iframe inside a div
The div with the overlay:
```
<div style="z-index:99;position:absolute;top:0;right:0">
...overlay html...
</div>
```
The iframe:
```
<style>
iframe {
... |
2,094,668 | I'm making a widget similar to the uservoice widgets, except I want the content of the page to be in an iFrame rather than the widget appear via javascript.
How can I have a full page (width/height 100%) iFrame with a div fixed to the left of the browser, an example (using javascript rather than css/html) is here: <ht... | 2010/01/19 | [
"https://Stackoverflow.com/questions/2094668",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/248231/"
] | You probably need to add margin:auto; to your iFrame or the floating div.
This will make it fill the screen 100%.
Example:
```
.width {
position:absolute;
left:0;
right:0;
top:0;
bottom:0;
width:250px;
height:150px;
margin:auto;
}
```
To fix it to the left of the browser you can use:
```
ma... | with this code I get a double scrollbar on the right on the right.
One for the website and one for the i-frame.
```
<style>
iframe {
position: absolute;
border: none;
box-sizing: border-box;
width: 100%;
height: 100%;
}
</style>
<div>
<iframe src="http://..."> </iframe>
</div>
``` |
2,094,668 | I'm making a widget similar to the uservoice widgets, except I want the content of the page to be in an iFrame rather than the widget appear via javascript.
How can I have a full page (width/height 100%) iFrame with a div fixed to the left of the browser, an example (using javascript rather than css/html) is here: <ht... | 2010/01/19 | [
"https://Stackoverflow.com/questions/2094668",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/248231/"
] | If you're not loading cross domain then you could just load in using jquery ajax call
<http://docs.jquery.com/Ajax/load>
```
$(document).ready(function () {
$("#content").load("page.html");
});
```
and replace your iframe with
```
<div id="content"></div>
``` | You could wrap your iframe in a div with a low Z-index and then lay a div over it with a higher z-index. |
2,094,668 | I'm making a widget similar to the uservoice widgets, except I want the content of the page to be in an iFrame rather than the widget appear via javascript.
How can I have a full page (width/height 100%) iFrame with a div fixed to the left of the browser, an example (using javascript rather than css/html) is here: <ht... | 2010/01/19 | [
"https://Stackoverflow.com/questions/2094668",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/248231/"
] | with this code I get a double scrollbar on the right on the right.
One for the website and one for the i-frame.
```
<style>
iframe {
position: absolute;
border: none;
box-sizing: border-box;
width: 100%;
height: 100%;
}
</style>
<div>
<iframe src="http://..."> </iframe>
</div>
``` | You could wrap your iframe in a div with a low Z-index and then lay a div over it with a higher z-index. |
2,094,668 | I'm making a widget similar to the uservoice widgets, except I want the content of the page to be in an iFrame rather than the widget appear via javascript.
How can I have a full page (width/height 100%) iFrame with a div fixed to the left of the browser, an example (using javascript rather than css/html) is here: <ht... | 2010/01/19 | [
"https://Stackoverflow.com/questions/2094668",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/248231/"
] | If you're not loading cross domain then you could just load in using jquery ajax call
<http://docs.jquery.com/Ajax/load>
```
$(document).ready(function () {
$("#content").load("page.html");
});
```
and replace your iframe with
```
<div id="content"></div>
``` | This worked for me:
* add the overlay div with a high z-index and absolute position
* make the iframe also positioned absolute
* add the iframe inside a div
The div with the overlay:
```
<div style="z-index:99;position:absolute;top:0;right:0">
...overlay html...
</div>
```
The iframe:
```
<style>
iframe {
... |
614,986 | I'm attempting to use Postfix (version 2.6.6 on RHEL6) to connect to and send mail via a mail relay on our internal network. I want to connect with STARTTLS on port 25 (port 465 is not available on this server). The mail relay uses a self-signed SSL/TLS certificate so I needed to skip certificate verification using a c... | 2014/07/23 | [
"https://serverfault.com/questions/614986",
"https://serverfault.com",
"https://serverfault.com/users/103657/"
] | Gonna answer my own question here. I did not manage to get `fingerprint` verification working, but I did discover how to get TLS without certificate verification. From the [manual](http://www.postfix.org/TLS_README.html#client_tls_encrypt):
>
> Mandatory TLS encryption can be configured by setting "smtp\_tls\_securit... | Since Postfix has enable chroot (by default in Debian) "/etc/postfix/master.cf":
```
# ==========================================================================
# service type private unpriv chroot wakeup maxproc command + args
# (yes) (yes) (yes) (never) (100)
# ==============================... |
5,215 | This is more like an academic question. Although, common perception is that dynamic analysis is testing itself, most of advanced sources (but AFAIK also the ISTQB) distinct between:
* **dynamic testing** (excercising the program) and
* **dynamic analysis** (analysis of memory leaks, pointer exceptions etc. during runt... | 2012/11/15 | [
"https://sqa.stackexchange.com/questions/5215",
"https://sqa.stackexchange.com",
"https://sqa.stackexchange.com/users/2740/"
] | My thoughts are that this is more about the differences between static and dynamic than analysis and testing.
My own personal definitions are:
**Static testing** = Testing of requirements, designs, specifications, log files, configuration files etc.
**Dynamic testing** = Testing of the application whilst it is runni... | To perform dynamic analysis (memory leaks...) you have to execute the program, so I should try to provide a clear description when defining "dynamic testing" as a different aspect than "dynamic analysis" (and not just in a way of "exercising the program").
Usually, the test cases executions (from unit testing to regre... |
51,656 | I have been having a problem with my wife's 2008 Toyota Highlander Hybrid.
It is blowing headlamps every 3 or 4 months. Usually one at a time, so it is probably really 6 months of life per lamp before it blows. I have made sure not to touch the bulb glass, but that doesn't seem to affect the time to failure on the bulb... | 2018/02/09 | [
"https://mechanics.stackexchange.com/questions/51656",
"https://mechanics.stackexchange.com",
"https://mechanics.stackexchange.com/users/35467/"
] | I have the answer AND it certainly has to do with the age of the car.
So, the 2008 Toyota highlander lens are made of plastic and they develop a white film over time that is a product of UV damage and the elements.
At some point, that film begins to contribute significantly a reduction in visible brightness, but i... | Had similar problem with 2010 Toyota [another model]. Recently Toyota admitted there is a problem (years around 2010) and dealership made some fix.
Another problem could be water in a headlight. |
51,656 | I have been having a problem with my wife's 2008 Toyota Highlander Hybrid.
It is blowing headlamps every 3 or 4 months. Usually one at a time, so it is probably really 6 months of life per lamp before it blows. I have made sure not to touch the bulb glass, but that doesn't seem to affect the time to failure on the bulb... | 2018/02/09 | [
"https://mechanics.stackexchange.com/questions/51656",
"https://mechanics.stackexchange.com",
"https://mechanics.stackexchange.com/users/35467/"
] | I have the answer AND it certainly has to do with the age of the car.
So, the 2008 Toyota highlander lens are made of plastic and they develop a white film over time that is a product of UV damage and the elements.
At some point, that film begins to contribute significantly a reduction in visible brightness, but i... | Look for long-life bulbs. There is a tradeoff between light output and bulb lifetime if you keep the wattage of the bulb constant. Some vehicles (which probably includes Toyota according to my experiences with a 2011 Toyota Yaris) might have slightly higher charging system voltage than others, and therefore, the bulb l... |
51,656 | I have been having a problem with my wife's 2008 Toyota Highlander Hybrid.
It is blowing headlamps every 3 or 4 months. Usually one at a time, so it is probably really 6 months of life per lamp before it blows. I have made sure not to touch the bulb glass, but that doesn't seem to affect the time to failure on the bulb... | 2018/02/09 | [
"https://mechanics.stackexchange.com/questions/51656",
"https://mechanics.stackexchange.com",
"https://mechanics.stackexchange.com/users/35467/"
] | I have the answer AND it certainly has to do with the age of the car.
So, the 2008 Toyota highlander lens are made of plastic and they develop a white film over time that is a product of UV damage and the elements.
At some point, that film begins to contribute significantly a reduction in visible brightness, but i... | Switch to LED head lights. I had this problem with a blinker and now it is fixed. You could install a dimmer switch, dim your head lights a touch and they may last longer. |
24,069,473 | In the Swift programming language I see an example
```
func anyCommonElements <T, U where T: Sequence, U: Sequence, T.GeneratorType.Element: Equatable, T.GeneratorType.Element == U.GeneratorType.Element> (lhs: T, rhs: U) -> Bool {
for lhsItem in lhs {
for rhsItem in rhs {
if lhsItem == rhsItem ... | 2014/06/05 | [
"https://Stackoverflow.com/questions/24069473",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1370927/"
] | As @conner noted but you would never specify it that way as there is only one type. This is better:
```
func functionName<T> (lhs: T, rhs: T) -> Bool { ... }
``` | If you want both of your parameters to be the same type, you can just use the same generic for both of them. Something like:
```
func functionName <T, T> (lhs: T, rhs: T) -> Bool {
return false
}
``` |
64,851,765 | i've been using jetpack datastore for a while, but then i got a problem.
I want to clear data in datastore when the app is destroyed.
Im using jetpack datastore to persist data only in form
i've searched that sharedPreferences has a clear() function, is there a similar function for Jetpack Datastore ? and how can i us... | 2020/11/16 | [
"https://Stackoverflow.com/questions/64851765",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/11230663/"
] | Use this
```
dataStore.edit {
it.clear()
}
```
Method description states
>
> Removes all preferences from this MutablePreferences.
>
>
>
For proto datastore (Thanks to Amir Raza for comment)
```
datastore.updateData {
it.toBuilder().clear().build()
}
``` | For Proto DataStore you can do:
dataStore.updateData { it.getDefaultInstance() }
It doesn't delete the file, but it's effectively the same. |
64,851,765 | i've been using jetpack datastore for a while, but then i got a problem.
I want to clear data in datastore when the app is destroyed.
Im using jetpack datastore to persist data only in form
i've searched that sharedPreferences has a clear() function, is there a similar function for Jetpack Datastore ? and how can i us... | 2020/11/16 | [
"https://Stackoverflow.com/questions/64851765",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/11230663/"
] | Use this
```
dataStore.edit {
it.clear()
}
```
Method description states
>
> Removes all preferences from this MutablePreferences.
>
>
>
For proto datastore (Thanks to Amir Raza for comment)
```
datastore.updateData {
it.toBuilder().clear().build()
}
``` | Try this (for Proto DataStore):
```
dataStore.updateData { obj ->
obj.toBuilder()
.clear()
.build()
}
``` |
64,851,765 | i've been using jetpack datastore for a while, but then i got a problem.
I want to clear data in datastore when the app is destroyed.
Im using jetpack datastore to persist data only in form
i've searched that sharedPreferences has a clear() function, is there a similar function for Jetpack Datastore ? and how can i us... | 2020/11/16 | [
"https://Stackoverflow.com/questions/64851765",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/11230663/"
] | Use this
```
dataStore.edit {
it.clear()
}
```
Method description states
>
> Removes all preferences from this MutablePreferences.
>
>
>
For proto datastore (Thanks to Amir Raza for comment)
```
datastore.updateData {
it.toBuilder().clear().build()
}
``` | If you want to delete a specific key then try this
```
dataStore.edit {
if (it.contains(key)) {
it.remove(key)
}
}
``` |
64,851,765 | i've been using jetpack datastore for a while, but then i got a problem.
I want to clear data in datastore when the app is destroyed.
Im using jetpack datastore to persist data only in form
i've searched that sharedPreferences has a clear() function, is there a similar function for Jetpack Datastore ? and how can i us... | 2020/11/16 | [
"https://Stackoverflow.com/questions/64851765",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/11230663/"
] | Use this
```
dataStore.edit {
it.clear()
}
```
Method description states
>
> Removes all preferences from this MutablePreferences.
>
>
>
For proto datastore (Thanks to Amir Raza for comment)
```
datastore.updateData {
it.toBuilder().clear().build()
}
``` | In case anyone wants to know how to remove a specific preference
```
context.dataStore.edit {
it.remove(key)
}
``` |
64,851,765 | i've been using jetpack datastore for a while, but then i got a problem.
I want to clear data in datastore when the app is destroyed.
Im using jetpack datastore to persist data only in form
i've searched that sharedPreferences has a clear() function, is there a similar function for Jetpack Datastore ? and how can i us... | 2020/11/16 | [
"https://Stackoverflow.com/questions/64851765",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/11230663/"
] | Try this (for Proto DataStore):
```
dataStore.updateData { obj ->
obj.toBuilder()
.clear()
.build()
}
``` | For Proto DataStore you can do:
dataStore.updateData { it.getDefaultInstance() }
It doesn't delete the file, but it's effectively the same. |
64,851,765 | i've been using jetpack datastore for a while, but then i got a problem.
I want to clear data in datastore when the app is destroyed.
Im using jetpack datastore to persist data only in form
i've searched that sharedPreferences has a clear() function, is there a similar function for Jetpack Datastore ? and how can i us... | 2020/11/16 | [
"https://Stackoverflow.com/questions/64851765",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/11230663/"
] | If you want to delete a specific key then try this
```
dataStore.edit {
if (it.contains(key)) {
it.remove(key)
}
}
``` | For Proto DataStore you can do:
dataStore.updateData { it.getDefaultInstance() }
It doesn't delete the file, but it's effectively the same. |
64,851,765 | i've been using jetpack datastore for a while, but then i got a problem.
I want to clear data in datastore when the app is destroyed.
Im using jetpack datastore to persist data only in form
i've searched that sharedPreferences has a clear() function, is there a similar function for Jetpack Datastore ? and how can i us... | 2020/11/16 | [
"https://Stackoverflow.com/questions/64851765",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/11230663/"
] | In case anyone wants to know how to remove a specific preference
```
context.dataStore.edit {
it.remove(key)
}
``` | For Proto DataStore you can do:
dataStore.updateData { it.getDefaultInstance() }
It doesn't delete the file, but it's effectively the same. |
64,851,765 | i've been using jetpack datastore for a while, but then i got a problem.
I want to clear data in datastore when the app is destroyed.
Im using jetpack datastore to persist data only in form
i've searched that sharedPreferences has a clear() function, is there a similar function for Jetpack Datastore ? and how can i us... | 2020/11/16 | [
"https://Stackoverflow.com/questions/64851765",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/11230663/"
] | Try this (for Proto DataStore):
```
dataStore.updateData { obj ->
obj.toBuilder()
.clear()
.build()
}
``` | If you want to delete a specific key then try this
```
dataStore.edit {
if (it.contains(key)) {
it.remove(key)
}
}
``` |
64,851,765 | i've been using jetpack datastore for a while, but then i got a problem.
I want to clear data in datastore when the app is destroyed.
Im using jetpack datastore to persist data only in form
i've searched that sharedPreferences has a clear() function, is there a similar function for Jetpack Datastore ? and how can i us... | 2020/11/16 | [
"https://Stackoverflow.com/questions/64851765",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/11230663/"
] | In case anyone wants to know how to remove a specific preference
```
context.dataStore.edit {
it.remove(key)
}
``` | Try this (for Proto DataStore):
```
dataStore.updateData { obj ->
obj.toBuilder()
.clear()
.build()
}
``` |
64,851,765 | i've been using jetpack datastore for a while, but then i got a problem.
I want to clear data in datastore when the app is destroyed.
Im using jetpack datastore to persist data only in form
i've searched that sharedPreferences has a clear() function, is there a similar function for Jetpack Datastore ? and how can i us... | 2020/11/16 | [
"https://Stackoverflow.com/questions/64851765",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/11230663/"
] | In case anyone wants to know how to remove a specific preference
```
context.dataStore.edit {
it.remove(key)
}
``` | If you want to delete a specific key then try this
```
dataStore.edit {
if (it.contains(key)) {
it.remove(key)
}
}
``` |
46,448,046 | I would like to inject data to `DeviceMarkerComponent` before running this:
```
let component: DeviceMarkerComponent;
let fixture: ComponentFixture<DeviceMarkerComponent>;
...
fixture = TestBed.createComponent(DeviceMarkerComponent);
component = fixture.componentInstance;
```
`DeviceMarkerComponent` uses variables ... | 2017/09/27 | [
"https://Stackoverflow.com/questions/46448046",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/6212581/"
] | There are a number of ways you "might" do this, you could
* Create a factory method to apply the properties and listeners you need to mimic the functionality
* Create a new class which extends from `JButton` or `AbstractButton` and provide core functionality/properties you need in a self contained package
* You could ... | Here is an example
```
import java.awt.Color;
import java.awt.Font;
import java.awt.event.MouseAdapter;
import java.awt.event.MouseEvent;
import javax.swing.BorderFactory;
import javax.swing.JButton;
import javax.swing.JFrame;
import javax.swing.JPanel;
import javax.swing.WindowConstants;
import javax.swing.border.Co... |
46,448,046 | I would like to inject data to `DeviceMarkerComponent` before running this:
```
let component: DeviceMarkerComponent;
let fixture: ComponentFixture<DeviceMarkerComponent>;
...
fixture = TestBed.createComponent(DeviceMarkerComponent);
component = fixture.componentInstance;
```
`DeviceMarkerComponent` uses variables ... | 2017/09/27 | [
"https://Stackoverflow.com/questions/46448046",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/6212581/"
] | There are a number of ways you "might" do this, you could
* Create a factory method to apply the properties and listeners you need to mimic the functionality
* Create a new class which extends from `JButton` or `AbstractButton` and provide core functionality/properties you need in a self contained package
* You could ... | In order to manipulate mouse events, such as hovering, you'll have to treat these events yourself, one of the ways to do is to create your own button.
---
**Edit**
Adding a mouse listener to your button, as answered by Sergiy Medvynskyy, would be a better practice since there is no need to tinker with the button cl... |
35,196,469 | I'm using the following code taken from [this tutorial](http://www.codeproject.com/Articles/236394/Bi-Cubic-and-Bi-Linear-Interpolation-with-GLSL) to perform linear filtering on a floating point texture in my fragment shader in WebGL:
```
float fHeight = 512.0;
float fWidth = 1024.0;
float texelSizeX = 1.0/fWidth;
flo... | 2016/02/04 | [
"https://Stackoverflow.com/questions/35196469",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/347857/"
] | This is not impossible, but it is a bad idea - it's very tricky to get right.
Instead, you want to separate the business logic from the UI, so that you can do the logic in the background, while the UI is still on the UI thread. The key is that you must not modify the UI controls from the background thread - instead, y... | WPF does not allow you to change UI from the background thread. Only ONE SINGLE thread can handle UI thread. Instead, you should calculate your data in the background thread, and then call `Application.Current.Dispatcher.Invoke(...)` method to update the UI. For example:
```
Application.Current.Dispatcher.Invoke(() =>... |
142,173 | I have read a lot of computer architecture textbooks, and I wonder why most of them (if not all) used MIPS as the architecture to teach. Why MIPS and not Intel or AMD or something else? What makes the architecture suitable for teaching? | 2012/03/29 | [
"https://softwareengineering.stackexchange.com/questions/142173",
"https://softwareengineering.stackexchange.com",
"https://softwareengineering.stackexchange.com/users/21461/"
] | The MIPS architecture is derived from an architecture specifically designed at Stanford for educational use and for research into CPU ISAs and architectural implementations. Early academic RISC architecture were designed such that they could be implemented (included layout) by small teams of graduate or upper-division ... | Intel and AMD have a large share of the Desktop market. Other processor families are much more common in devices outside that fairly small area of influence. MIPS is also a RISC architecture which are generally thought of as being easier to learn. You learn a small number of commands that can be combined orthogonally a... |
138,104 | I'm developing a sort of ’social mmmo’ where people build an avatar and chat with people around them, carryout tasks together, and play team games.
At the moment I have a product I want to release to beta testers but I only have 2 locations ready and they are quite far apart.
I have a fast travel system in place wher... | 2017/03/02 | [
"https://gamedev.stackexchange.com/questions/138104",
"https://gamedev.stackexchange.com",
"https://gamedev.stackexchange.com/users/82339/"
] | First: **Why should you have fast-travel in the first place?**
Because fast travel has an important function: It prevents boredom.
Traversing a well-designed area for the first time is interesting because there is lots of new stuff to discover for the player. The player is exploring, which is one of [the four major ... | When you talk about beta testing, I don't know if you mean **closed beta**. If that is the case, you can focus testing on particular parts of the game, which also means you may ask the testers to do certain things (such as use the bus). In this enviroment it would be ok to give them the money for the bus.
Otherwise, w... |
2,849,394 | I've learnt some ways of finding a point on a line which can minimize the sum of length to other points.
[](https://i.stack.imgur.com/PwOce.png)
I want to generalize this to three points using **geometric** methods.
>
> **Question:**
>
>
> There'... | 2018/07/13 | [
"https://math.stackexchange.com/questions/2849394",
"https://math.stackexchange.com",
"https://math.stackexchange.com/users/483338/"
] | This is not something you can solve with geometric constructions for more than two points.
Suppose the $n$ points are $(x\_i,y\_i)$ and the target point is constrained to the $x$-axis, then the problem is equivalent to minimising the following function:
$$\sum\_i\sqrt{(x-x\_i)^2+y\_i^2}$$
When considering the unconstr... | For the special case of the three points $(0,0)$, $(1,1)$, $(2,2)$, I find that the minimal $x$ is a root (approximately $0.5473905291$) of the polynomial $$3 x^8-36 x^7+206 x^6-708 x^5+1567 x^4-2280 x^3+2128 x^2-1152 x+256$$
The Galois group of this polynomial, according to Maple, is $S\_8$, which is not solvable. Thi... |
4,841,775 | I've got an ItemsControl that has another ItemsControl in it.
which means, for each item in the parent list, i want to show all the items in the child list.
so the Xaml is something like this (I'm neglecting some of the DataTemplate)"
```
<ItemsControl x:Name="dayPanel" Grid.Column="1">
<ItemsControl.ItemTempl... | 2011/01/30 | [
"https://Stackoverflow.com/questions/4841775",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/563297/"
] | ```
<ItemsControl x:Name="dayPanel" Grid.Column="1" ItemsSource={Binding}>
<ItemsControl.ItemTemplate>
<DataTemplate>
<Grid>
<ItemsControl x:Name="dayHours" Grid.Row="1" ItemsSource={Binding HourItems}">
<ItemsControl.ItemTemplate>
<... | In your `ItemsControl`, try using a `RelativeSource`:
```
<ItemsControl x:Name="dayHours" Grid.Row="1" ItemsSource="{Binding RelativeSource={RelativeSource TemplatedParent}, Path=ItemsSource }">
```
Helpful links:
* MSDN [Binding.RelativeSource Property](http://msdn.microsoft.com/en-us/library/system.windows.data.b... |
11,332,803 | I have a custom cell with a thumbnail image, which the user can select from their photo albums. I know that saving images to Core Data will result in poor performance, and I should use the file system.
Anyone recommend some good tutorials on this. What exactly should I store in core data, if I am not storing the image... | 2012/07/04 | [
"https://Stackoverflow.com/questions/11332803",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/597775/"
] | You should have two fields in your core data db : `thumbnailPath` : `NSString` and `originalPath` : `NSString`
With the file manager you create your thumbnail and original image at a specific path. so you'll have : ..../thumbs/myPicture\_thumb.jpg AND ..../originals/myPicture.jpg
Then you just store this two path to y... | You can store the Images in the `Application Documents Folder` and save the path of the Images in CoreData or sqlite. Refer the Images with their paths. |
11,332,803 | I have a custom cell with a thumbnail image, which the user can select from their photo albums. I know that saving images to Core Data will result in poor performance, and I should use the file system.
Anyone recommend some good tutorials on this. What exactly should I store in core data, if I am not storing the image... | 2012/07/04 | [
"https://Stackoverflow.com/questions/11332803",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/597775/"
] | ```
UIImage*image = [UIImage imageNamed:@"the image you wish to save.jpg"];
//build the path for your image on the filesystem
NSArray *dirPath = NSSearchPathForDirectoriesInDomains(NSDocumentDirectory, NSUserDomainMask, YES);
NSString *docsDir = [dirPath objectAtIndex:0];
NSString* photoName = @"imageName.jpg";
NSStri... | You can store the Images in the `Application Documents Folder` and save the path of the Images in CoreData or sqlite. Refer the Images with their paths. |
11,332,803 | I have a custom cell with a thumbnail image, which the user can select from their photo albums. I know that saving images to Core Data will result in poor performance, and I should use the file system.
Anyone recommend some good tutorials on this. What exactly should I store in core data, if I am not storing the image... | 2012/07/04 | [
"https://Stackoverflow.com/questions/11332803",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/597775/"
] | ```
UIImage*image = [UIImage imageNamed:@"the image you wish to save.jpg"];
//build the path for your image on the filesystem
NSArray *dirPath = NSSearchPathForDirectoriesInDomains(NSDocumentDirectory, NSUserDomainMask, YES);
NSString *docsDir = [dirPath objectAtIndex:0];
NSString* photoName = @"imageName.jpg";
NSStri... | You should have two fields in your core data db : `thumbnailPath` : `NSString` and `originalPath` : `NSString`
With the file manager you create your thumbnail and original image at a specific path. so you'll have : ..../thumbs/myPicture\_thumb.jpg AND ..../originals/myPicture.jpg
Then you just store this two path to y... |
2,256,364 | Like most of the average PHP web developers I use MySql as a RDBMS. MySql (as other RDBMS also) offers SPATIAL INDEX features, but I'm don't get it very well. I have googled for it but didn't find clear real world examples to clarify my bad knowledge about it.
Could someone explain me a little bit what is a SPATIAL IN... | 2010/02/13 | [
"https://Stackoverflow.com/questions/2256364",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/272256/"
] | You can use a spatial index for indexing geo-objects - shapes. The spatial index makes it possible to efficiently search for objects that overlap in space | Spatial Index is like an ordinary index with this difference that Spatial objects are not 1D data points rather are in higher dimension space (e.g. 2D) and thus Ordinary indexes such as BTree are not appropriate for indexing such data. The well-known spatial Index technique is R-tree ( Google it on wikipedia ) |
2,256,364 | Like most of the average PHP web developers I use MySql as a RDBMS. MySql (as other RDBMS also) offers SPATIAL INDEX features, but I'm don't get it very well. I have googled for it but didn't find clear real world examples to clarify my bad knowledge about it.
Could someone explain me a little bit what is a SPATIAL IN... | 2010/02/13 | [
"https://Stackoverflow.com/questions/2256364",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/272256/"
] | You can use a spatial index for indexing geo-objects - shapes. The spatial index makes it possible to efficiently search for objects that overlap in space | The use of spacial index is best for searching exact matching value look-up,not for range scan.It is mainly supported in MyISAM tables but from MySQL 5.7.4 LAB release,it is also supported by Innodb.
References:-
<http://dev.mysql.com/doc/refman/5.5/en/creating-spatial-indexes.html>
<http://mysqlserverteam.com/innodb-... |
2,256,364 | Like most of the average PHP web developers I use MySql as a RDBMS. MySql (as other RDBMS also) offers SPATIAL INDEX features, but I'm don't get it very well. I have googled for it but didn't find clear real world examples to clarify my bad knowledge about it.
Could someone explain me a little bit what is a SPATIAL IN... | 2010/02/13 | [
"https://Stackoverflow.com/questions/2256364",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/272256/"
] | You can use a spatial index for indexing geo-objects - shapes. The spatial index makes it possible to efficiently search for objects that overlap in space | When we need to store some geographic data for storing locations OR we need to store shape related data then we can use it.
For Instance, Imagine that you are trying to develop an application that helps people find restaurants, pubs, bars and other hangout places near them. In nutshell, this will be a location discove... |
2,256,364 | Like most of the average PHP web developers I use MySql as a RDBMS. MySql (as other RDBMS also) offers SPATIAL INDEX features, but I'm don't get it very well. I have googled for it but didn't find clear real world examples to clarify my bad knowledge about it.
Could someone explain me a little bit what is a SPATIAL IN... | 2010/02/13 | [
"https://Stackoverflow.com/questions/2256364",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/272256/"
] | Spatial Index is like an ordinary index with this difference that Spatial objects are not 1D data points rather are in higher dimension space (e.g. 2D) and thus Ordinary indexes such as BTree are not appropriate for indexing such data. The well-known spatial Index technique is R-tree ( Google it on wikipedia ) | The use of spacial index is best for searching exact matching value look-up,not for range scan.It is mainly supported in MyISAM tables but from MySQL 5.7.4 LAB release,it is also supported by Innodb.
References:-
<http://dev.mysql.com/doc/refman/5.5/en/creating-spatial-indexes.html>
<http://mysqlserverteam.com/innodb-... |
2,256,364 | Like most of the average PHP web developers I use MySql as a RDBMS. MySql (as other RDBMS also) offers SPATIAL INDEX features, but I'm don't get it very well. I have googled for it but didn't find clear real world examples to clarify my bad knowledge about it.
Could someone explain me a little bit what is a SPATIAL IN... | 2010/02/13 | [
"https://Stackoverflow.com/questions/2256364",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/272256/"
] | When we need to store some geographic data for storing locations OR we need to store shape related data then we can use it.
For Instance, Imagine that you are trying to develop an application that helps people find restaurants, pubs, bars and other hangout places near them. In nutshell, this will be a location discove... | The use of spacial index is best for searching exact matching value look-up,not for range scan.It is mainly supported in MyISAM tables but from MySQL 5.7.4 LAB release,it is also supported by Innodb.
References:-
<http://dev.mysql.com/doc/refman/5.5/en/creating-spatial-indexes.html>
<http://mysqlserverteam.com/innodb-... |
63,084,330 | I have used below code to encrypt my value. However, I noticed that for the same value new encryption format is generated instead of same encryption value. Can anyone help me to solve this issue?
Example:
Value is HelloWorld123$
When I executed for the first time, I am getting this encryption - EAAAAE+WzLTCsNOJSQBuTwn... | 2020/07/25 | [
"https://Stackoverflow.com/questions/63084330",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/3481508/"
] | Take a look at - <https://learn.microsoft.com/en-us/dotnet/api/system.security.cryptography.rfc2898derivebytes?view=netcore-3.1>
This class uses a pseudorandom number generator in its work, which means that it is *supposed* to generate different data over time which means that your encrypted data is *supposed* to chan... | If you encrypt the same value it will give you different result, it’s basically security and most of the encryptions work in this manner.
If it gives you same results on each encryption then it will be deterministic and should be avoided. |
56,806,407 | This is using bash 4.3.48.
```
$ ARR=(entry1 entry2 entry3)
$ echo "${ARR[*]}"
entry1 entry2 entry3
```
Things work as expected until here, but after
```
$ { IFS=: ; echo "${ARR[*]}" ;}
entry1:entry2:entry3
```
IFS is strangely changed half persistently after the change
```
$ echo "${ARR[*]}"
entry1:entry2:entry... | 2019/06/28 | [
"https://Stackoverflow.com/questions/56806407",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/3485767/"
] | >
>
> ```
> $ echo $IFS
>
> $ echo "$IFS"
> :
>
> ```
>
>
Writing a variable expansion without double quotes makes it subject to word splitting (and globbing). Word splitting splits a string up by the characters in `$IFS`. When you write `$var` it's as if there's a hidden function call `split+glob($var)`.
If y... | `{ ... ; }` runs the commands in the context of the current shell. $IFS (or any other variable) changed inside curly braces keeps its value even after the closing brace.
To localise a change of a variable, use a subshell (round parentheses):
```
(IFS=:; echo "${arr[*]}")
```
The reason why `echo $IFS` doesn't outpu... |
56,806,407 | This is using bash 4.3.48.
```
$ ARR=(entry1 entry2 entry3)
$ echo "${ARR[*]}"
entry1 entry2 entry3
```
Things work as expected until here, but after
```
$ { IFS=: ; echo "${ARR[*]}" ;}
entry1:entry2:entry3
```
IFS is strangely changed half persistently after the change
```
$ echo "${ARR[*]}"
entry1:entry2:entry... | 2019/06/28 | [
"https://Stackoverflow.com/questions/56806407",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/3485767/"
] | >
>
> ```
> $ echo $IFS
>
> $ echo "$IFS"
> :
>
> ```
>
>
Writing a variable expansion without double quotes makes it subject to word splitting (and globbing). Word splitting splits a string up by the characters in `$IFS`. When you write `$var` it's as if there's a hidden function call `split+glob($var)`.
If y... | The `{ ... }` does not run in a subshell. So all changes within `{ .. }` are visible in the *current* shell.
```
{ a=1; }; echo $a
```
That includes IFS. You have set `IFS=:` and the change stays after the braces.
```
{ IFS=:; }; echo "$IFS"
```
Now we come to expansion and [word splitting](https://www.gnu.org/so... |
26,508,203 | I'm working on a custom password validation that will do a bunch of extra checks, ideally including that the password the user is trying to create doesn't contain any permutations of their username.
We're using the Identity Framework, and my original intent was to just extend IIdentityValidator like this:
```
public ... | 2014/10/22 | [
"https://Stackoverflow.com/questions/26508203",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/865773/"
] | Instead of using the `PasswordValidator` use the `UserValidator` which will allow you to use your user object as the argument. The type for `ValidateAsync` comes from the generic parameter.
```
public class MyUserValidator : IIdentityValidator<User>
{
public Task<IdentityResult> ValidateAsync(User item)
{
... | Just add one/many field(s) of the type you wish in `StrongPasswordValidator`, and inject the values in constructor
```
public class StrongPasswordValidator : IIdentityValidator<string>
{
public int MinimumLength { get; set; }
public int MaximumLength { get; set; }
private readonly MyCustomObjectType _myCus... |
680,715 | Can you use C++.Net for writting a Silverlight application? Not use C# or VB.Net as the backend language but C++.Net | 2009/03/25 | [
"https://Stackoverflow.com/questions/680715",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/81948/"
] | You can use any language so long as it compiles to pure managed code. For example there are Silverlight applications using IronPython, IronRuby. The only restriction is you can't have any native code, or use parts of the FCL that are restricted by Silverlight (e.g. P/Invoke) | Check [this](http://silverlight.net/forums/p/5329/164934.aspx#164934). A google search would have answered your query.
Update: I was wrong. Apologies for that. Mark has answered it correctly.
Mark : You can use any language so long as it compiles to pure managed code. For example there are Silverlight applications us... |
78,539 | I've been working on a site for a new company that is in the tactical gear/survival gear niche and have ran into a hitch with the keywords that Google ranks for the site.
Namely 4 of the top 5 keywords aren't content related at all, and are elements/functions of the site. The top 5 are as follows:
1. Tactical
2. Cart... | 2015/03/25 | [
"https://webmasters.stackexchange.com/questions/78539",
"https://webmasters.stackexchange.com",
"https://webmasters.stackexchange.com/users/50875/"
] | Just looking at your list, it looks like you need more content. If things like "cart, compare, and wishlist' are ranking because of some buttons on your site, you need more blogs or text related to your niche.
In other words, your descriptions and posts should outnumber and overwhelm your store keywords. | Use textalyser.net and run your pages through it. It will list you the top keywords as well as the top pairs of keywords and if you don't want google to rank for a keyword, then try to make the keyword density for it to under 1%. Just make sure at the same time you don't make any keyword density set to over 5%. |
78,539 | I've been working on a site for a new company that is in the tactical gear/survival gear niche and have ran into a hitch with the keywords that Google ranks for the site.
Namely 4 of the top 5 keywords aren't content related at all, and are elements/functions of the site. The top 5 are as follows:
1. Tactical
2. Cart... | 2015/03/25 | [
"https://webmasters.stackexchange.com/questions/78539",
"https://webmasters.stackexchange.com",
"https://webmasters.stackexchange.com/users/50875/"
] | The content keyword list in Google Webmaster Tools measures which keywords are used on the most pages on your site compared to other sites. So if you have a shopping cart on every page of your site, you will have "cart" in your content keywords. Words like "the" don't show up in the list because most sites have them on... | Use textalyser.net and run your pages through it. It will list you the top keywords as well as the top pairs of keywords and if you don't want google to rank for a keyword, then try to make the keyword density for it to under 1%. Just make sure at the same time you don't make any keyword density set to over 5%. |
78,539 | I've been working on a site for a new company that is in the tactical gear/survival gear niche and have ran into a hitch with the keywords that Google ranks for the site.
Namely 4 of the top 5 keywords aren't content related at all, and are elements/functions of the site. The top 5 are as follows:
1. Tactical
2. Cart... | 2015/03/25 | [
"https://webmasters.stackexchange.com/questions/78539",
"https://webmasters.stackexchange.com",
"https://webmasters.stackexchange.com/users/50875/"
] | The content keyword list in Google Webmaster Tools measures which keywords are used on the most pages on your site compared to other sites. So if you have a shopping cart on every page of your site, you will have "cart" in your content keywords. Words like "the" don't show up in the list because most sites have them on... | Just looking at your list, it looks like you need more content. If things like "cart, compare, and wishlist' are ranking because of some buttons on your site, you need more blogs or text related to your niche.
In other words, your descriptions and posts should outnumber and overwhelm your store keywords. |
201,855 | Using three parts name in SQL statements is a good practice it helps in object identification and performance improvement as well. It can also help for many other purposes like if you want to move SPs,View Functions to different database with same T-SQL statement..
So I wanted to create a policy which can enforce deve... | 2018/03/21 | [
"https://dba.stackexchange.com/questions/201855",
"https://dba.stackexchange.com",
"https://dba.stackexchange.com/users/91078/"
] | Using three-part names in queries that reference objects in the current database is a terrible practice and you should create a rule *against* it. The most frequent problem with it is that it prevents you from having two instances of your application database on a single server, and can lead to unintentional cross-data... | Please follow this link. Might help you.
<https://www.mssqltips.com/sqlservertip/2298/enforce-sql-server-database-naming-conventions-using-policy-based-management/> |
56,538,388 | I tried to add product programmatically. and i use below code
```
$cart = Mage::getSingleton('checkout/cart');
$cart->init();
$paramater = array(
'product' => $product->getId(),
'related_product' => null,
'qty' => 1,
'form_key' => Mage::getSingleton('core/session')->get... | 2019/06/11 | [
"https://Stackoverflow.com/questions/56538388",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/5336831/"
] | I found the solution to remove class placeholder
```
<div class="card-image placeholder">
<a [routerLink]="somelink">
<img src="{{url}}/someimage"
onError="this.src='image';"
onload="this.parentNode.parentNode.classList.remove('placeholder');">
</a>
</div>
``` | you can introduce boolean property isPlaceholder with default value 'true' in component class
and modify template like this:
```
<div class="card-image" [ngClass]="{'placeholder': isPlaceholder}">
<a [routerLink]="somelink">
<img src="{{url}}/someimage"
onError="this.src='image';"
(load)="is... |
19,070,777 | I was started to read "Developing an AngularJS Edge", and I wanted to set up the various frameworks in use.
The book uses nodejs and karma, along with several other frameworks.
I'm on Win7x32.
I just upgraded my nodejs to the latest, v0.10.18 .
I installed the Karma package with "npm install -g karma". This appeare... | 2013/09/28 | [
"https://Stackoverflow.com/questions/19070777",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/10508/"
] | Probably you're using the Git Bash terminal, MinTTY, which doesn't have full support for TTY.
You have 4 options to fix the problem:
1. Use CMD terminal with the **Windows shell** (the default Windows console)
2. Use CMD terminal with the **Bash shell** (execute `"C:\Program Files\Git\bin\bash.exe" --login -i` in cmd... | In my case, the problem was that I was using the git bash terminal in windows. When I ran the command in a cmd window it worked fine. |
19,070,777 | I was started to read "Developing an AngularJS Edge", and I wanted to set up the various frameworks in use.
The book uses nodejs and karma, along with several other frameworks.
I'm on Win7x32.
I just upgraded my nodejs to the latest, v0.10.18 .
I installed the Karma package with "npm install -g karma". This appeare... | 2013/09/28 | [
"https://Stackoverflow.com/questions/19070777",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/10508/"
] | The reason for the error with running npm in Cygwin seems to be a known issue with npm. You can use the work around mentioned here,
<https://stackoverflow.com/a/22436199/2390020> | In my case, the problem was that I was using the git bash terminal in windows. When I ran the command in a cmd window it worked fine. |
19,070,777 | I was started to read "Developing an AngularJS Edge", and I wanted to set up the various frameworks in use.
The book uses nodejs and karma, along with several other frameworks.
I'm on Win7x32.
I just upgraded my nodejs to the latest, v0.10.18 .
I installed the Karma package with "npm install -g karma". This appeare... | 2013/09/28 | [
"https://Stackoverflow.com/questions/19070777",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/10508/"
] | The reason for the error with running npm in Cygwin seems to be a known issue with npm. You can use the work around mentioned here,
<https://stackoverflow.com/a/22436199/2390020> | If you open up the `karma` file it's just a node script, so an alternative way of executing it would be:
```
node karma init
```
This worked for me in the MINGW64/git bash shell |
19,070,777 | I was started to read "Developing an AngularJS Edge", and I wanted to set up the various frameworks in use.
The book uses nodejs and karma, along with several other frameworks.
I'm on Win7x32.
I just upgraded my nodejs to the latest, v0.10.18 .
I installed the Karma package with "npm install -g karma". This appeare... | 2013/09/28 | [
"https://Stackoverflow.com/questions/19070777",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/10508/"
] | I got the same error with MINGW64.
Runs properly on default command prompt. | If you open up the `karma` file it's just a node script, so an alternative way of executing it would be:
```
node karma init
```
This worked for me in the MINGW64/git bash shell |
19,070,777 | I was started to read "Developing an AngularJS Edge", and I wanted to set up the various frameworks in use.
The book uses nodejs and karma, along with several other frameworks.
I'm on Win7x32.
I just upgraded my nodejs to the latest, v0.10.18 .
I installed the Karma package with "npm install -g karma". This appeare... | 2013/09/28 | [
"https://Stackoverflow.com/questions/19070777",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/10508/"
] | The reason for the error with running npm in Cygwin seems to be a known issue with npm. You can use the work around mentioned here,
<https://stackoverflow.com/a/22436199/2390020> | Run the command in github shell command window. Worked for me. |
19,070,777 | I was started to read "Developing an AngularJS Edge", and I wanted to set up the various frameworks in use.
The book uses nodejs and karma, along with several other frameworks.
I'm on Win7x32.
I just upgraded my nodejs to the latest, v0.10.18 .
I installed the Karma package with "npm install -g karma". This appeare... | 2013/09/28 | [
"https://Stackoverflow.com/questions/19070777",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/10508/"
] | I got the same error with MINGW64.
Runs properly on default command prompt. | In my case, the problem was that I was using the git bash terminal in windows. When I ran the command in a cmd window it worked fine. |
19,070,777 | I was started to read "Developing an AngularJS Edge", and I wanted to set up the various frameworks in use.
The book uses nodejs and karma, along with several other frameworks.
I'm on Win7x32.
I just upgraded my nodejs to the latest, v0.10.18 .
I installed the Karma package with "npm install -g karma". This appeare... | 2013/09/28 | [
"https://Stackoverflow.com/questions/19070777",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/10508/"
] | Faced the same issue.try this
node node\_modules/karma/bin/karma init | If you open up the `karma` file it's just a node script, so an alternative way of executing it would be:
```
node karma init
```
This worked for me in the MINGW64/git bash shell |
19,070,777 | I was started to read "Developing an AngularJS Edge", and I wanted to set up the various frameworks in use.
The book uses nodejs and karma, along with several other frameworks.
I'm on Win7x32.
I just upgraded my nodejs to the latest, v0.10.18 .
I installed the Karma package with "npm install -g karma". This appeare... | 2013/09/28 | [
"https://Stackoverflow.com/questions/19070777",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/10508/"
] | Faced the same issue.try this
node node\_modules/karma/bin/karma init | In my case, the problem was that I was using the git bash terminal in windows. When I ran the command in a cmd window it worked fine. |
19,070,777 | I was started to read "Developing an AngularJS Edge", and I wanted to set up the various frameworks in use.
The book uses nodejs and karma, along with several other frameworks.
I'm on Win7x32.
I just upgraded my nodejs to the latest, v0.10.18 .
I installed the Karma package with "npm install -g karma". This appeare... | 2013/09/28 | [
"https://Stackoverflow.com/questions/19070777",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/10508/"
] | Faced the same issue.try this
node node\_modules/karma/bin/karma init | Run the command in github shell command window. Worked for me. |
19,070,777 | I was started to read "Developing an AngularJS Edge", and I wanted to set up the various frameworks in use.
The book uses nodejs and karma, along with several other frameworks.
I'm on Win7x32.
I just upgraded my nodejs to the latest, v0.10.18 .
I installed the Karma package with "npm install -g karma". This appeare... | 2013/09/28 | [
"https://Stackoverflow.com/questions/19070777",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/10508/"
] | Faced the same issue.try this
node node\_modules/karma/bin/karma init | One other likely relevant point that I failed to mention is that I was running these commands from a Cygwin rxvt window.
I just tried completely uninstalling nodejs and reinstalling it.
When I brought up the rxvt window again and ran "npm install -g karma", it failed with the following:
```
/c/Program Files/nodejs/n... |
74,476,789 | I have these two lists:
```cs
List<image> ImagesByPerimeterId
List<PerimeterTile> ImagesWithMorePerimeters
```
The context is the following:
I want to remove images that contain the id found in the `ImagesWithMorePerimeters` list from the `ImagesByPerimeterId` list. The `ImagesWithMorePerimeters` list has an `imageI... | 2022/11/17 | [
"https://Stackoverflow.com/questions/74476789",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/19943087/"
] | **Revised answer**
Unfortunately, using `Get-ADGroupMember` together with switch `-Recursive` will **not** return members that are groups.
As [the docs](https://learn.microsoft.com/en-us/powershell/module/activedirectory/get-adgroupmember?view=windowsserver2022-ps#description) state:
>
> If the Recursive parameter i... | Another take to [Theo's helpful answer](https://stackoverflow.com/a/74478184/15339544) using a [`Stack<T>`](https://learn.microsoft.com/en-us/dotnet/api/system.collections.generic.stack-1?view=net-7.0) instead of recursion.
**Note, this function will output unique objects, i.e.: if a user was a member of more than one... |
11,496 | I am running Hierarchical Dirichlet Process, HDP using gensim in Python but as my corpus is too large it is throwing me following error:
```
model = gensim.models.HdpModel(corpus, id2word=corpus.id2word, chunksize=50000)
File "/usr/cluster/contrib/Enthought/Canopy_64/User/lib/python2.7/site-packages/gensim/models/hd... | 2016/04/29 | [
"https://datascience.stackexchange.com/questions/11496",
"https://datascience.stackexchange.com",
"https://datascience.stackexchange.com/users/18275/"
] | This all depends on the needs and the budget for the models. The first cleaning steps usually bring a decent increase in performance. The more steps you take the slower the improvements will increase in general. If you are doing something for yourself, cut it off at a certain point, if you are doing it for somebody els... | I would say do as much cleaning and possible. The phrase "Garbage in, garbage out" is here for a reason.
Missing values, different definitions, suspicious information...all must be cleaned before fetched into any model.
Sure, even without all of this, the model will produce something, but it most likely will be less ... |
11,496 | I am running Hierarchical Dirichlet Process, HDP using gensim in Python but as my corpus is too large it is throwing me following error:
```
model = gensim.models.HdpModel(corpus, id2word=corpus.id2word, chunksize=50000)
File "/usr/cluster/contrib/Enthought/Canopy_64/User/lib/python2.7/site-packages/gensim/models/hd... | 2016/04/29 | [
"https://datascience.stackexchange.com/questions/11496",
"https://datascience.stackexchange.com",
"https://datascience.stackexchange.com/users/18275/"
] | This is a question that is very dependent upon the data in question. Assuming that you can train your models in a reasonable time, I would start by not cleaning the data at all, and seeing how well your model performs, and then cleaning it a bit and redoing the experiment and so on.
This is because it is possible to **... | This all depends on the needs and the budget for the models. The first cleaning steps usually bring a decent increase in performance. The more steps you take the slower the improvements will increase in general. If you are doing something for yourself, cut it off at a certain point, if you are doing it for somebody els... |
11,496 | I am running Hierarchical Dirichlet Process, HDP using gensim in Python but as my corpus is too large it is throwing me following error:
```
model = gensim.models.HdpModel(corpus, id2word=corpus.id2word, chunksize=50000)
File "/usr/cluster/contrib/Enthought/Canopy_64/User/lib/python2.7/site-packages/gensim/models/hd... | 2016/04/29 | [
"https://datascience.stackexchange.com/questions/11496",
"https://datascience.stackexchange.com",
"https://datascience.stackexchange.com/users/18275/"
] | This all depends on the needs and the budget for the models. The first cleaning steps usually bring a decent increase in performance. The more steps you take the slower the improvements will increase in general. If you are doing something for yourself, cut it off at a certain point, if you are doing it for somebody els... | Data cleaning can be a real pain and also can easily take you away from the core task. Nevertheless, it is one of the critical aspect and hence cannot be taken lightly.
I believe you have the right idea because you mentioned that you are seeking `balance`. I always think of data cleaning as a marginal transaction. Bey... |
11,496 | I am running Hierarchical Dirichlet Process, HDP using gensim in Python but as my corpus is too large it is throwing me following error:
```
model = gensim.models.HdpModel(corpus, id2word=corpus.id2word, chunksize=50000)
File "/usr/cluster/contrib/Enthought/Canopy_64/User/lib/python2.7/site-packages/gensim/models/hd... | 2016/04/29 | [
"https://datascience.stackexchange.com/questions/11496",
"https://datascience.stackexchange.com",
"https://datascience.stackexchange.com/users/18275/"
] | This is a question that is very dependent upon the data in question. Assuming that you can train your models in a reasonable time, I would start by not cleaning the data at all, and seeing how well your model performs, and then cleaning it a bit and redoing the experiment and so on.
This is because it is possible to **... | I would say do as much cleaning and possible. The phrase "Garbage in, garbage out" is here for a reason.
Missing values, different definitions, suspicious information...all must be cleaned before fetched into any model.
Sure, even without all of this, the model will produce something, but it most likely will be less ... |
11,496 | I am running Hierarchical Dirichlet Process, HDP using gensim in Python but as my corpus is too large it is throwing me following error:
```
model = gensim.models.HdpModel(corpus, id2word=corpus.id2word, chunksize=50000)
File "/usr/cluster/contrib/Enthought/Canopy_64/User/lib/python2.7/site-packages/gensim/models/hd... | 2016/04/29 | [
"https://datascience.stackexchange.com/questions/11496",
"https://datascience.stackexchange.com",
"https://datascience.stackexchange.com/users/18275/"
] | This is a question that is very dependent upon the data in question. Assuming that you can train your models in a reasonable time, I would start by not cleaning the data at all, and seeing how well your model performs, and then cleaning it a bit and redoing the experiment and so on.
This is because it is possible to **... | Data cleaning can be a real pain and also can easily take you away from the core task. Nevertheless, it is one of the critical aspect and hence cannot be taken lightly.
I believe you have the right idea because you mentioned that you are seeking `balance`. I always think of data cleaning as a marginal transaction. Bey... |
23,204 | I am using Bernoulli's equation in order to calculate a relative area between two points in a pipe. Problem is, based on the solution I have obtained, I end up with imaginary numbers and not sure what to make of this practically. Here is my math:
$$\begin{gather}
P\_1 + \dfrac{1}{2}\rho v\_1^2 + \rho gh\_1 = P\_2 + \d... | 2018/08/12 | [
"https://engineering.stackexchange.com/questions/23204",
"https://engineering.stackexchange.com",
"https://engineering.stackexchange.com/users/17123/"
] | Unless you are putting "randomly chosen numbers" into your equation, or you have measured the numbers but your assumptions about Bernoulli and compressibility don't apply to your real-world flow situation, you shouldn't have a problem.
Look at it this way: for given values of $P\_2$ and $v\_2$, physically $P\_1$ must ... | Adding to alephzero,
Imagine you are getting a negative denominator,
$v\_{2}^2 + \frac{2}{\rho}(P\_2 - P\_1) < 0 $,
$\Rightarrow \frac{1}{2}{\rho}v\_{2}^2 +(P\_2 - P\_1) < 0 $ ,
$\Rightarrow \frac{1}{2}{\rho}v\_{2}^2 +P\_2 < P\_1 $ ,
$\Rightarrow P\_{02} < P\_1 $ , This violates the Bernoulli's principle. So yo... |
23,204 | I am using Bernoulli's equation in order to calculate a relative area between two points in a pipe. Problem is, based on the solution I have obtained, I end up with imaginary numbers and not sure what to make of this practically. Here is my math:
$$\begin{gather}
P\_1 + \dfrac{1}{2}\rho v\_1^2 + \rho gh\_1 = P\_2 + \d... | 2018/08/12 | [
"https://engineering.stackexchange.com/questions/23204",
"https://engineering.stackexchange.com",
"https://engineering.stackexchange.com/users/17123/"
] | Unless you are putting "randomly chosen numbers" into your equation, or you have measured the numbers but your assumptions about Bernoulli and compressibility don't apply to your real-world flow situation, you shouldn't have a problem.
Look at it this way: for given values of $P\_2$ and $v\_2$, physically $P\_1$ must ... | >
> As a side note, I am assuming non-compressible airflow. Cannot assume laminar flow.
>
>
>
The assumptions that $\dot{V}\_1 = v\_1 A\_1 = v\_2 A\_2 = \dot{V}\_2$ and that $\rho =$ constant are only valid for incompressible flow. Air is compressible, not incompressible. Use the ideal gas law with $\rho = M\_{air... |
2,913,160 | Is there a way I can count the size of an associated collection without initializing?
e.g.
```
Select count(p.children) from Parent p
```
(there is a good reason why I cant do this any other way as my where clause is more complicated and my from clause is a polymorphic query)
Thanks. | 2010/05/26 | [
"https://Stackoverflow.com/questions/2913160",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/249571/"
] | A possible solution other than queries might be mapping `children` with `lazy="extra"` (in XML notation). This way, you can fetch the Parent with whatever query you need, then call `parent.getChildren().size()` without loading the whole collection (only a `SELECT COUNT` type query is executed).
With annotations, it wo... | You can use Session#createFilter which is a form of HQL which explicitly operates on collections. For example, you mention Parent and Children so if you have a Person p the most basic form would be:
```
session.createFilter( p.getChildren(), "" ).list()
```
This simply returns you a list of the children. It is impor... |
2,913,160 | Is there a way I can count the size of an associated collection without initializing?
e.g.
```
Select count(p.children) from Parent p
```
(there is a good reason why I cant do this any other way as my where clause is more complicated and my from clause is a polymorphic query)
Thanks. | 2010/05/26 | [
"https://Stackoverflow.com/questions/2913160",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/249571/"
] | A possible solution other than queries might be mapping `children` with `lazy="extra"` (in XML notation). This way, you can fetch the Parent with whatever query you need, then call `parent.getChildren().size()` without loading the whole collection (only a `SELECT COUNT` type query is executed).
With annotations, it wo... | You can do the same like this:
```
@Override
public FaqQuestions getFaqQuestionById(Long questionId) {
session = sessionFactory.openSession();
tx = session.beginTransaction();
FaqQuestions faqQuestions = null;
try {
faqQuestions = (FaqQuestions) session.get(FaqQuestions.class,
q... |
2,913,160 | Is there a way I can count the size of an associated collection without initializing?
e.g.
```
Select count(p.children) from Parent p
```
(there is a good reason why I cant do this any other way as my where clause is more complicated and my from clause is a polymorphic query)
Thanks. | 2010/05/26 | [
"https://Stackoverflow.com/questions/2913160",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/249571/"
] | You can use Session#createFilter which is a form of HQL which explicitly operates on collections. For example, you mention Parent and Children so if you have a Person p the most basic form would be:
```
session.createFilter( p.getChildren(), "" ).list()
```
This simply returns you a list of the children. It is impor... | You can do the same like this:
```
@Override
public FaqQuestions getFaqQuestionById(Long questionId) {
session = sessionFactory.openSession();
tx = session.beginTransaction();
FaqQuestions faqQuestions = null;
try {
faqQuestions = (FaqQuestions) session.get(FaqQuestions.class,
q... |
68,870,250 | For example, I have this string array
```
const groceries = [
'milk',
'coriander',
'cucumber',
'eggplant',
'carrot',
'brinjal',
'onions',
'tomatoes',
'soap',
'bag',
'pepper',
'salt',
'fruits',
'bread',
'pasta',
'oil',
... | 2021/08/21 | [
"https://Stackoverflow.com/questions/68870250",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/11804085/"
] | Several points to cover here. First, a binary search needs *sorted* data in order to work. As your list is *not* sorted, weirdness and hilarity may ensue :-)
Consider, for example, the unsorted `[27 , 39 , 56, 73, 3, 43, 15, 98, 21]` when you're looking for `39`.
The first midpoint is at value `3` so a binary search ... | First of all, do not use any reserved word (here `list`) to name your variables. Secondly, you have a logical error in the following lines:
```
if list[mid] > searchValue:
last = mid - 1
else:
last = mid + 1
```
In the last line of the above snippet, it should be `first = mid + 1` |
68,870,250 | For example, I have this string array
```
const groceries = [
'milk',
'coriander',
'cucumber',
'eggplant',
'carrot',
'brinjal',
'onions',
'tomatoes',
'soap',
'bag',
'pepper',
'salt',
'fruits',
'bread',
'pasta',
'oil',
... | 2021/08/21 | [
"https://Stackoverflow.com/questions/68870250",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/11804085/"
] | First of all, do not use any reserved word (here `list`) to name your variables. Secondly, you have a logical error in the following lines:
```
if list[mid] > searchValue:
last = mid - 1
else:
last = mid + 1
```
In the last line of the above snippet, it should be `first = mid + 1` | There are very good answers to this question, also you can consider this simpler version adapted to your case:
```py
my_list = [3, 15, 21, 27, 39, 43, 56, 73, 84, 98] # sorted!
left, right = 0, len(my_list) # [left, right)
search_value = int(input("Which number are you looking for? "))
while left + 1 < right:
... |
68,870,250 | For example, I have this string array
```
const groceries = [
'milk',
'coriander',
'cucumber',
'eggplant',
'carrot',
'brinjal',
'onions',
'tomatoes',
'soap',
'bag',
'pepper',
'salt',
'fruits',
'bread',
'pasta',
'oil',
... | 2021/08/21 | [
"https://Stackoverflow.com/questions/68870250",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/11804085/"
] | First of all, do not use any reserved word (here `list`) to name your variables. Secondly, you have a logical error in the following lines:
```
if list[mid] > searchValue:
last = mid - 1
else:
last = mid + 1
```
In the last line of the above snippet, it should be `first = mid + 1` | The problem with your function is that in Binary Search the array or the list needs to be **SORTED** because it's one of the most important principal of binary search, i made same function working correctly for you
```
#low is the first index and high is the last index, val is the value to find, list_ is the list, you... |
68,870,250 | For example, I have this string array
```
const groceries = [
'milk',
'coriander',
'cucumber',
'eggplant',
'carrot',
'brinjal',
'onions',
'tomatoes',
'soap',
'bag',
'pepper',
'salt',
'fruits',
'bread',
'pasta',
'oil',
... | 2021/08/21 | [
"https://Stackoverflow.com/questions/68870250",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/11804085/"
] | Several points to cover here. First, a binary search needs *sorted* data in order to work. As your list is *not* sorted, weirdness and hilarity may ensue :-)
Consider, for example, the unsorted `[27 , 39 , 56, 73, 3, 43, 15, 98, 21]` when you're looking for `39`.
The first midpoint is at value `3` so a binary search ... | There are very good answers to this question, also you can consider this simpler version adapted to your case:
```py
my_list = [3, 15, 21, 27, 39, 43, 56, 73, 84, 98] # sorted!
left, right = 0, len(my_list) # [left, right)
search_value = int(input("Which number are you looking for? "))
while left + 1 < right:
... |
68,870,250 | For example, I have this string array
```
const groceries = [
'milk',
'coriander',
'cucumber',
'eggplant',
'carrot',
'brinjal',
'onions',
'tomatoes',
'soap',
'bag',
'pepper',
'salt',
'fruits',
'bread',
'pasta',
'oil',
... | 2021/08/21 | [
"https://Stackoverflow.com/questions/68870250",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/11804085/"
] | Several points to cover here. First, a binary search needs *sorted* data in order to work. As your list is *not* sorted, weirdness and hilarity may ensue :-)
Consider, for example, the unsorted `[27 , 39 , 56, 73, 3, 43, 15, 98, 21]` when you're looking for `39`.
The first midpoint is at value `3` so a binary search ... | The problem with your function is that in Binary Search the array or the list needs to be **SORTED** because it's one of the most important principal of binary search, i made same function working correctly for you
```
#low is the first index and high is the last index, val is the value to find, list_ is the list, you... |
68,870,250 | For example, I have this string array
```
const groceries = [
'milk',
'coriander',
'cucumber',
'eggplant',
'carrot',
'brinjal',
'onions',
'tomatoes',
'soap',
'bag',
'pepper',
'salt',
'fruits',
'bread',
'pasta',
'oil',
... | 2021/08/21 | [
"https://Stackoverflow.com/questions/68870250",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/11804085/"
] | There are very good answers to this question, also you can consider this simpler version adapted to your case:
```py
my_list = [3, 15, 21, 27, 39, 43, 56, 73, 84, 98] # sorted!
left, right = 0, len(my_list) # [left, right)
search_value = int(input("Which number are you looking for? "))
while left + 1 < right:
... | The problem with your function is that in Binary Search the array or the list needs to be **SORTED** because it's one of the most important principal of binary search, i made same function working correctly for you
```
#low is the first index and high is the last index, val is the value to find, list_ is the list, you... |
47,037,067 | I am unable to find the location where images and containers are stored in my machine, i checked [this](https://stackoverflow.com/questions/42250222/what-is-docker-image-location-on-windows-10) and with 'docker info' in *Docker Root Dir* i have `/var/lib/docker` , but i'm unable to find this anywhere, | 2017/10/31 | [
"https://Stackoverflow.com/questions/47037067",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/7660161/"
] | **you need to import from main.js**
`import {HTTP} from './main';` | Try changing
`import {HTTP} from './http-common';` to
`import {HTTP} from '../http-common';`
Hope this helps in some cases. |
67,246 | My Academy's wi-fi requires me to log in via a web-browser portal page before I have access to the internet. Safari on my iPhone doesn't save my username and password for it. Is there a way to manually force it to save them? | 2012/10/13 | [
"https://apple.stackexchange.com/questions/67246",
"https://apple.stackexchange.com",
"https://apple.stackexchange.com/users/31797/"
] | Do you really need to log in using Safari?
Otherwise you go to 'System Preferences' > 'Wi-Fi' > Select the appropriate network > Log in > Deselect 'Ask To Join Networks'
This way, your iPhone remembers this Wi-Fi network and your iPhone will automatically connect to this network when you're within the range of the aca... | It's not a matter of Safari not remembering the password, its a matter of the network requiring login based on the browser. Most captive walled gardens require it with every disconnect for security purposes. |
67,246 | My Academy's wi-fi requires me to log in via a web-browser portal page before I have access to the internet. Safari on my iPhone doesn't save my username and password for it. Is there a way to manually force it to save them? | 2012/10/13 | [
"https://apple.stackexchange.com/questions/67246",
"https://apple.stackexchange.com",
"https://apple.stackexchange.com/users/31797/"
] | check out this link <http://www.ausbt.com.au/how-to-save-passwords-in-safari-on-the-ipad-iphone> to setup autofill name and passwords for safari on IOS.
And it totally is a matter of safari not remembering username/password.
It's a little hidden, but it's there, and thanks for asking a good question. The other answer... | Do you really need to log in using Safari?
Otherwise you go to 'System Preferences' > 'Wi-Fi' > Select the appropriate network > Log in > Deselect 'Ask To Join Networks'
This way, your iPhone remembers this Wi-Fi network and your iPhone will automatically connect to this network when you're within the range of the aca... |
67,246 | My Academy's wi-fi requires me to log in via a web-browser portal page before I have access to the internet. Safari on my iPhone doesn't save my username and password for it. Is there a way to manually force it to save them? | 2012/10/13 | [
"https://apple.stackexchange.com/questions/67246",
"https://apple.stackexchange.com",
"https://apple.stackexchange.com/users/31797/"
] | Do you really need to log in using Safari?
Otherwise you go to 'System Preferences' > 'Wi-Fi' > Select the appropriate network > Log in > Deselect 'Ask To Join Networks'
This way, your iPhone remembers this Wi-Fi network and your iPhone will automatically connect to this network when you're within the range of the aca... | I had this problem. Turns out I was in Private Browsing mode. |
67,246 | My Academy's wi-fi requires me to log in via a web-browser portal page before I have access to the internet. Safari on my iPhone doesn't save my username and password for it. Is there a way to manually force it to save them? | 2012/10/13 | [
"https://apple.stackexchange.com/questions/67246",
"https://apple.stackexchange.com",
"https://apple.stackexchange.com/users/31797/"
] | If this is a "captive portal" - a wifi network where you need to input your password into a form on a web page, or check a box agreeing to terms of use, then in my experience the iPhone will not remember the password. | It's not a matter of Safari not remembering the password, its a matter of the network requiring login based on the browser. Most captive walled gardens require it with every disconnect for security purposes. |
67,246 | My Academy's wi-fi requires me to log in via a web-browser portal page before I have access to the internet. Safari on my iPhone doesn't save my username and password for it. Is there a way to manually force it to save them? | 2012/10/13 | [
"https://apple.stackexchange.com/questions/67246",
"https://apple.stackexchange.com",
"https://apple.stackexchange.com/users/31797/"
] | check out this link <http://www.ausbt.com.au/how-to-save-passwords-in-safari-on-the-ipad-iphone> to setup autofill name and passwords for safari on IOS.
And it totally is a matter of safari not remembering username/password.
It's a little hidden, but it's there, and thanks for asking a good question. The other answer... | If this is a "captive portal" - a wifi network where you need to input your password into a form on a web page, or check a box agreeing to terms of use, then in my experience the iPhone will not remember the password. |
67,246 | My Academy's wi-fi requires me to log in via a web-browser portal page before I have access to the internet. Safari on my iPhone doesn't save my username and password for it. Is there a way to manually force it to save them? | 2012/10/13 | [
"https://apple.stackexchange.com/questions/67246",
"https://apple.stackexchange.com",
"https://apple.stackexchange.com/users/31797/"
] | If this is a "captive portal" - a wifi network where you need to input your password into a form on a web page, or check a box agreeing to terms of use, then in my experience the iPhone will not remember the password. | I had this problem. Turns out I was in Private Browsing mode. |
67,246 | My Academy's wi-fi requires me to log in via a web-browser portal page before I have access to the internet. Safari on my iPhone doesn't save my username and password for it. Is there a way to manually force it to save them? | 2012/10/13 | [
"https://apple.stackexchange.com/questions/67246",
"https://apple.stackexchange.com",
"https://apple.stackexchange.com/users/31797/"
] | check out this link <http://www.ausbt.com.au/how-to-save-passwords-in-safari-on-the-ipad-iphone> to setup autofill name and passwords for safari on IOS.
And it totally is a matter of safari not remembering username/password.
It's a little hidden, but it's there, and thanks for asking a good question. The other answer... | It's not a matter of Safari not remembering the password, its a matter of the network requiring login based on the browser. Most captive walled gardens require it with every disconnect for security purposes. |
67,246 | My Academy's wi-fi requires me to log in via a web-browser portal page before I have access to the internet. Safari on my iPhone doesn't save my username and password for it. Is there a way to manually force it to save them? | 2012/10/13 | [
"https://apple.stackexchange.com/questions/67246",
"https://apple.stackexchange.com",
"https://apple.stackexchange.com/users/31797/"
] | check out this link <http://www.ausbt.com.au/how-to-save-passwords-in-safari-on-the-ipad-iphone> to setup autofill name and passwords for safari on IOS.
And it totally is a matter of safari not remembering username/password.
It's a little hidden, but it's there, and thanks for asking a good question. The other answer... | I had this problem. Turns out I was in Private Browsing mode. |
42,553,224 | I am new to Sql query if I had a table called Employee:
```
Id, Name, Department
1 tim sales
2 tom sales
3 jay HR
4 ben design
5 lin design
```
I am trying to write a query that returns the number of employees in each department.
```
SELECT COUNT(Department) FROM Employee
```
Does anyone hav... | 2017/03/02 | [
"https://Stackoverflow.com/questions/42553224",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/5259826/"
] | ```
SELECT COUNT(id), department FROM Employee GROUP BY department;
``` | ```
SELECT COUNT([id]), [department] FROM [Employee], GROUP BY [department].
``` |
42,553,224 | I am new to Sql query if I had a table called Employee:
```
Id, Name, Department
1 tim sales
2 tom sales
3 jay HR
4 ben design
5 lin design
```
I am trying to write a query that returns the number of employees in each department.
```
SELECT COUNT(Department) FROM Employee
```
Does anyone hav... | 2017/03/02 | [
"https://Stackoverflow.com/questions/42553224",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/5259826/"
] | **Using group by**
`SELECT COUNT(id), department FROM Employee GROUP BY department`
OR
**By WHERE condition**`SELECT COUNT(id),Department FROM Employee WHERE Department='HR'` | ```
SELECT COUNT([id]), [department] FROM [Employee], GROUP BY [department].
``` |
75,078 | EDIT : Sorry, my question clearly wasn't clear. I don't want to report attempted server attacks internally; we already have systems that log. record and report that activity.
What I was keen to do was to report the attacks to the perpetrator's ISP or somesuch.
Original question:
Our sites are immune to SQL Injection... | 2009/10/16 | [
"https://serverfault.com/questions/75078",
"https://serverfault.com",
"https://serverfault.com/users/23154/"
] | Playing devils advocate, it's almost always pointless to waste your time reporting these machines. Most attacks come from zombies machines that the user has no idea is even occurring. So even if you report them to their ISP and their ISP cuts their connection until they have their machine cleaned they will most likely ... | afrinic.net, apnic.net, arin.net, jpnic.net, krnic.net, lacnic.net, ripe.net or twnic.net all have web-sites that you can perform a whois lookup. I normally start with the American (arin) NIC.
You can also download a whois client. I use the GNU ***JWHOIS***. It's OK. Additionally one can also get some information by us... |
75,078 | EDIT : Sorry, my question clearly wasn't clear. I don't want to report attempted server attacks internally; we already have systems that log. record and report that activity.
What I was keen to do was to report the attacks to the perpetrator's ISP or somesuch.
Original question:
Our sites are immune to SQL Injection... | 2009/10/16 | [
"https://serverfault.com/questions/75078",
"https://serverfault.com",
"https://serverfault.com/users/23154/"
] | Most ISPs have an abuse@ispname.com email address for reporting such things.. If you can revers lookup the ISP name from the IP I would send the info there. | By SQL injection from sites, I take it: (a) you have some web forms, (b) there's a SQL back-end, (c) you use methods which prevent user input from being mis-interpreted as SQL (parameterized queries, etc.)
But still you would like to detect attempts at SQL injection. Ok.
One of the standard ways to attempt SQL inject... |
75,078 | EDIT : Sorry, my question clearly wasn't clear. I don't want to report attempted server attacks internally; we already have systems that log. record and report that activity.
What I was keen to do was to report the attacks to the perpetrator's ISP or somesuch.
Original question:
Our sites are immune to SQL Injection... | 2009/10/16 | [
"https://serverfault.com/questions/75078",
"https://serverfault.com",
"https://serverfault.com/users/23154/"
] | Donate your logs to [SANS](http://isc.sans.org/howto.html)! They have a client for most firewalls that will pull the logs and send them to the DShield database. | Either everyone else understood something else or I did, but from what I can understand you are trying to report the people attempting SQL injections to their ISPs.
This will usually be a dead end, and you're better off just blocking the users attempting the attacks, as most machines performing attacks are not usually... |
75,078 | EDIT : Sorry, my question clearly wasn't clear. I don't want to report attempted server attacks internally; we already have systems that log. record and report that activity.
What I was keen to do was to report the attacks to the perpetrator's ISP or somesuch.
Original question:
Our sites are immune to SQL Injection... | 2009/10/16 | [
"https://serverfault.com/questions/75078",
"https://serverfault.com",
"https://serverfault.com/users/23154/"
] | Donate your logs to [SANS](http://isc.sans.org/howto.html)! They have a client for most firewalls that will pull the logs and send them to the DShield database. | Playing devils advocate, it's almost always pointless to waste your time reporting these machines. Most attacks come from zombies machines that the user has no idea is even occurring. So even if you report them to their ISP and their ISP cuts their connection until they have their machine cleaned they will most likely ... |
75,078 | EDIT : Sorry, my question clearly wasn't clear. I don't want to report attempted server attacks internally; we already have systems that log. record and report that activity.
What I was keen to do was to report the attacks to the perpetrator's ISP or somesuch.
Original question:
Our sites are immune to SQL Injection... | 2009/10/16 | [
"https://serverfault.com/questions/75078",
"https://serverfault.com",
"https://serverfault.com/users/23154/"
] | By SQL injection from sites, I take it: (a) you have some web forms, (b) there's a SQL back-end, (c) you use methods which prevent user input from being mis-interpreted as SQL (parameterized queries, etc.)
But still you would like to detect attempts at SQL injection. Ok.
One of the standard ways to attempt SQL inject... | afrinic.net, apnic.net, arin.net, jpnic.net, krnic.net, lacnic.net, ripe.net or twnic.net all have web-sites that you can perform a whois lookup. I normally start with the American (arin) NIC.
You can also download a whois client. I use the GNU ***JWHOIS***. It's OK. Additionally one can also get some information by us... |
75,078 | EDIT : Sorry, my question clearly wasn't clear. I don't want to report attempted server attacks internally; we already have systems that log. record and report that activity.
What I was keen to do was to report the attacks to the perpetrator's ISP or somesuch.
Original question:
Our sites are immune to SQL Injection... | 2009/10/16 | [
"https://serverfault.com/questions/75078",
"https://serverfault.com",
"https://serverfault.com/users/23154/"
] | Either everyone else understood something else or I did, but from what I can understand you are trying to report the people attempting SQL injections to their ISPs.
This will usually be a dead end, and you're better off just blocking the users attempting the attacks, as most machines performing attacks are not usually... | Playing devils advocate, it's almost always pointless to waste your time reporting these machines. Most attacks come from zombies machines that the user has no idea is even occurring. So even if you report them to their ISP and their ISP cuts their connection until they have their machine cleaned they will most likely ... |
75,078 | EDIT : Sorry, my question clearly wasn't clear. I don't want to report attempted server attacks internally; we already have systems that log. record and report that activity.
What I was keen to do was to report the attacks to the perpetrator's ISP or somesuch.
Original question:
Our sites are immune to SQL Injection... | 2009/10/16 | [
"https://serverfault.com/questions/75078",
"https://serverfault.com",
"https://serverfault.com/users/23154/"
] | Either everyone else understood something else or I did, but from what I can understand you are trying to report the people attempting SQL injections to their ISPs.
This will usually be a dead end, and you're better off just blocking the users attempting the attacks, as most machines performing attacks are not usually... | afrinic.net, apnic.net, arin.net, jpnic.net, krnic.net, lacnic.net, ripe.net or twnic.net all have web-sites that you can perform a whois lookup. I normally start with the American (arin) NIC.
You can also download a whois client. I use the GNU ***JWHOIS***. It's OK. Additionally one can also get some information by us... |
75,078 | EDIT : Sorry, my question clearly wasn't clear. I don't want to report attempted server attacks internally; we already have systems that log. record and report that activity.
What I was keen to do was to report the attacks to the perpetrator's ISP or somesuch.
Original question:
Our sites are immune to SQL Injection... | 2009/10/16 | [
"https://serverfault.com/questions/75078",
"https://serverfault.com",
"https://serverfault.com/users/23154/"
] | Donate your logs to [SANS](http://isc.sans.org/howto.html)! They have a client for most firewalls that will pull the logs and send them to the DShield database. | afrinic.net, apnic.net, arin.net, jpnic.net, krnic.net, lacnic.net, ripe.net or twnic.net all have web-sites that you can perform a whois lookup. I normally start with the American (arin) NIC.
You can also download a whois client. I use the GNU ***JWHOIS***. It's OK. Additionally one can also get some information by us... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.