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 |
|---|---|---|---|---|---|
11,509,254 | I just launched a website powered by Wordpress. I put the Google Analytics tracking code in my header, but for some reason it appears as if each visit might be double firing. I am getting things like a 0% bounce rate, and twice as many "pageviews" as "unique visitors."
<http://www.super-average.com>
Has anyone had e... | 2012/07/16 | [
"https://Stackoverflow.com/questions/11509254",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1367053/"
] | I had a similar problem with gtags.js.
I was making a single page application and I followed the documentation :
[Single page application devguide](https://developers.google.com/analytics/devguides/collection/gtagjs/single-page-applications)
But, after a few try, I saw that the page\_view event was duplicated.
After s... | I got similar problem, that some Adware called "Yontoo" broke analytics in a way that every page request counted as new visitor. This "Yontoo" installed itself as Chrome extension (or I guess it came with Daemon Tools installer). So if you viewed 20 pages, it has shown 20 unique visitors on page.
Deleting the Chrome e... |
18,718,946 | i setOnQueryTextListener for my edittext view. If there is no search item mean it will show one alert box. But some time if enter numbers fastly from keyborad remaining number are display at the bottom of the screen.like this
how can clear that bottom... | 2013/09/10 | [
"https://Stackoverflow.com/questions/18718946",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1448285/"
] | ```
SearchRecentSuggestions suggestions = new SearchRecentSuggestions(this,
HelloSuggestionProvider.AUTHORITY, HelloSuggestionProvider.MODE);
suggestions.clearHistory();
```
Try this. | A Suggestion will be to turn off the auto-suggestion for the `EditText`.
Add this line into your `EditText`.
```
android:inputType="textFilter"
```
**Or**
```
EditText edit = (EditText) this.findViewById(R.id.edit);
edit.setInputType(InputType.TYPE_TEXT_FLAG_NO_SUGGESTIONS);
```
See this for more answer ... |
53,760,955 | I am learning Javascript from udemy and in one lecture tutor has implemented a function using `bind()` method, however when i am trying to use `call()` it doesn't work.
Here is a small program that works with bind:
```
function mapForEach(arr, fn){
var newArr = [];
for (var i=0; i < arr.length; i++){
... | 2018/12/13 | [
"https://Stackoverflow.com/questions/53760955",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/3047069/"
] | `bind` and `call` (or `apply`) are not really alternatives for the same thing. `bind` returns a function, while `call` executes a function. The only thing they have in common is that they allow to specify what `this` should be. But in your actual case the value of `this` is not used, so that common part is not relevant... | The function `mapForEach` accepts a function as second parameter.
When you call `checkPastLimit.bind(this,1)` it returns a function as result.
When you call `checkPastLimit.call(this,1)` it returns false.
So you can't simply use `call` instead of `bind`
 mixes polygon and multipolygon, hence it always fails to do the export because of the constraint check `enforce_geotype`.
Is there a way to clear the constr... | 2011/08/12 | [
"https://gis.stackexchange.com/questions/13498",
"https://gis.stackexchange.com",
"https://gis.stackexchange.com/users/3919/"
] | The SQL to drop the constraint:
```
ALTER TABLE myapp_mymodel DROP CONSTRAINT enforce_geotype_mygeom;
```
Or to alter it to allow both Polygons & MultiPolygons:
```
ALTER TABLE myapp_mymodel DROP CONSTRAINT enforce_geotype_mygeom;
ALTER TABLE myapp_mymodel ADD CONSTRAINT enforce_geotype_mygeom CHECK (geometrytype(m... | I know this is old, but I just ran into this issue myself and had problems using the above suggested solutions:
* Using `GeometryField` makes it difficult to use the built-in `OSMGeoAdmin` class. The code in `templates/gis/admin/openlayers.js` (and `contrib/gis/admin/widgets.py` and probably other places I missed) fre... |
13,498 | I set up a model with `models.PolygonField` in geodjango, using postgres as database. I try to import shp into postgres. The problem is, shp (compiled with QGIS) mixes polygon and multipolygon, hence it always fails to do the export because of the constraint check `enforce_geotype`.
Is there a way to clear the constr... | 2011/08/12 | [
"https://gis.stackexchange.com/questions/13498",
"https://gis.stackexchange.com",
"https://gis.stackexchange.com/users/3919/"
] | The SQL to drop the constraint:
```
ALTER TABLE myapp_mymodel DROP CONSTRAINT enforce_geotype_mygeom;
```
Or to alter it to allow both Polygons & MultiPolygons:
```
ALTER TABLE myapp_mymodel DROP CONSTRAINT enforce_geotype_mygeom;
ALTER TABLE myapp_mymodel ADD CONSTRAINT enforce_geotype_mygeom CHECK (geometrytype(m... | longish workaround
one could use fromstr()
```
from django.contrib.gis.geos import fromstr
p = Polygon()
# this seems to work correctly
mp = MultiPolygon(fromstr(str(p)),)
model1.geom_field = mp
model1.save()
``` |
7,349,174 | There appears to be a difference between managed bean state and component tree state. You can control managed bean state by using annotations like *@RequestScoped* and *@SessionScoped*, but it seems you don't have a choice in whether the component tree state is saved or not (although you can choose whether it is saved ... | 2011/09/08 | [
"https://Stackoverflow.com/questions/7349174",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/562644/"
] | Because the component tree can be altered programmatically depending on the initial request. This is not necessarily reproduceable on the subsequent request whenever the form data has to be processed.
Further I have the impression that you think that the component tree also holds the model values. This is not true. It... | Adding to the previous answer, ever since JSF 2.0 something called `partial state saving` is used by default.
The default view description language in JSF (Facelets) creates the whole component tree from the original Facelet after every request and initializes the components from their corresponding tag attributes. It... |
132,342 | Is this the best way to implement a genetic algorithm framework? I'm just a student and wanted to know if I can improve the code that I have done. Some of the code I copied from the [framework documentation](http://johnnewcombe.net/gaf/section/302):
```
namespace xx.xx.xx {
class Program {
static GrafoDis... | 2016/06/17 | [
"https://codereview.stackexchange.com/questions/132342",
"https://codereview.stackexchange.com",
"https://codereview.stackexchange.com/users/109249/"
] | You can make your code shorter and more readable with LINQ.
This:
>
>
> ```
> int[] arrayD = new int[total];
> for (int a = 0; a < total; a++) {
> arrayD[a] = a + 1;
> }
>
> ```
>
>
Can be replaced with:
```
int[] arrayD = Enumerable.Range(1, total).ToArray();
```
This:
>
>
> ```
> arrayD = arrayD.Ord... | 1. It is better to use a constant variable for the file path, that way you don't need to look for that line if you wish to change the file path or name.
```
using (var leitura = File.OpenText(@"C:\portugal.data"))
```
2. The main function is just too long and hard to understand and maintain. Split it into a sub funct... |
28,350,912 | I am trying to mount a source directory from nfs server to a destination directory in embedded board having linux. The following command works perfectly as expected in shell prompt in the board.
```
mount -t nfs -o nolock 10.126.62.45:/vol/home/avinoba/Sky /mnt
```
What is the equivalent system call to be used in pr... | 2015/02/05 | [
"https://Stackoverflow.com/questions/28350912",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/4529636/"
] | I'm quite surprised here knowing that how this is not covered by any man page regarding NFS mounts. Diving into the kernel code, in the function **nfs\_validate\_text\_mount\_data**, the function **nfs\_parse\_mount\_options** is responsible for parsing the multiple comma separated options passed as the fifth argument ... | MS\_MGC\_VAL should be in the top 16 bits if needed, not the bottom. If your kernel version is > 2.4, you don't need it at all. |
28,350,912 | I am trying to mount a source directory from nfs server to a destination directory in embedded board having linux. The following command works perfectly as expected in shell prompt in the board.
```
mount -t nfs -o nolock 10.126.62.45:/vol/home/avinoba/Sky /mnt
```
What is the equivalent system call to be used in pr... | 2015/02/05 | [
"https://Stackoverflow.com/questions/28350912",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/4529636/"
] | I'm quite surprised here knowing that how this is not covered by any man page regarding NFS mounts. Diving into the kernel code, in the function **nfs\_validate\_text\_mount\_data**, the function **nfs\_parse\_mount\_options** is responsible for parsing the multiple comma separated options passed as the fifth argument ... | It solved by the following call for me now.
```
if(system("mount -t nfs -o nolock 10.126.62.45:/vol/home/avinoba/Sky /mnt")==-1);
{
printf("ERROR: mount failed \n");
}
```
*But still searching for the answer with mount() call as it accepts 'filesystemtype' argument as "nfs".* |
2,209,022 | What is the best documentation for the RelativeLayout layout
algorithm?
In the layout below, the edittext gets rendered on top of the textview. This seems
wrong since the EditText has android:layout\_below="@id/textview".
If I remove the android:layout\_centerInParent="true" on the TextView,
then the EditText is... | 2010/02/05 | [
"https://Stackoverflow.com/questions/2209022",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/-1/"
] | As just a guess, I would imagine they have implemented a GIS library in Flash in the client side and are using this to project latitude and longitude coordinates into a pixel space. Then they aggregate by pixel to determine the "height" of each pixel and render it just like you would render a circle, but using a gradie... | MapReduce for your actual aggregate map totals, and something with Geospatial Indexing for the database - to feed these MapReduce jobs. I'm looking into implementing this exact same approach, but for interfaces instead of maps :) MongoDB seems to be a good fit at the moment. |
57,656,873 | I save a variable in a text file but not save " in my text file just saved variable I want to save "$my variable" in the file and then use for json\_decode.
I try this:
```
file_put_contents("mytext.txt","$variable");
file_put_contents("mytext.txt",".$variable.");
```
but not work | 2019/08/26 | [
"https://Stackoverflow.com/questions/57656873",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/11978184/"
] | Your query is quite inscrutable. You are trying to assign multiple values to a single value and then trying to use the result as a scalar value in your subquery.
I think you basically want this:
```
update lr
set Analises_Recebidas = ac.cnt
from LocaisRecolha lr inner join
(select LIDEntid, count(*) ... | YOu can try below -
```
update [LocaisRecolha]
set [Analises_Recebidas]=count(AC.LidEntid)
from [Analises_Calendario] as AC inner join [LocaisRecolha] as LR on AC.LidEntid=LR.LIDEntid
where AC.Estado='Recebida' and AC.Data>=DATEADD(mm, DATEDIFF(mm, 0, GETDATE()), 0) and AC.Data<=DATEADD (dd, -1, DATEADD(mm, DATEDIFF(m... |
34,476,493 | Does anyone know of a good way to display badges for Travis CI, etc. on the main page of a Github repo without keeping them in version control?
I like to have the badges on the front page, but if they're committed in the README then every branch & fork references the badges from master. It'd be better to have no badge... | 2015/12/27 | [
"https://Stackoverflow.com/questions/34476493",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/5237018/"
] | In your readme link them using markdown to generate the buttons. Travis CI and code climate provide premade buttons to use in your readme. For other services you can make your own in the same format with [shields.io](http://shields.io)
(I don't believe they are dynamic but you can update them manually) | >
> I like to have the badges on the front page, but if they're committed in the README then every branch & fork references the badges from master.
>
>
>
This is only true if the README for every branch & fork references the same badge. If you want each branch to show it's status simply update the README for the b... |
34,476,493 | Does anyone know of a good way to display badges for Travis CI, etc. on the main page of a Github repo without keeping them in version control?
I like to have the badges on the front page, but if they're committed in the README then every branch & fork references the badges from master. It'd be better to have no badge... | 2015/12/27 | [
"https://Stackoverflow.com/questions/34476493",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/5237018/"
] | We're lazy and just put a table in markdown that shows separate badges for master and develop
[](https://i.stack.imgur.com/IXVf2.png)
No need to worry about merging blips then | >
> I like to have the badges on the front page, but if they're committed in the README then every branch & fork references the badges from master.
>
>
>
This is only true if the README for every branch & fork references the same badge. If you want each branch to show it's status simply update the README for the b... |
34,476,493 | Does anyone know of a good way to display badges for Travis CI, etc. on the main page of a Github repo without keeping them in version control?
I like to have the badges on the front page, but if they're committed in the README then every branch & fork references the badges from master. It'd be better to have no badge... | 2015/12/27 | [
"https://Stackoverflow.com/questions/34476493",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/5237018/"
] | We're lazy and just put a table in markdown that shows separate badges for master and develop
[](https://i.stack.imgur.com/IXVf2.png)
No need to worry about merging blips then | In your readme link them using markdown to generate the buttons. Travis CI and code climate provide premade buttons to use in your readme. For other services you can make your own in the same format with [shields.io](http://shields.io)
(I don't believe they are dynamic but you can update them manually) |
262,183 | How could the following list be improved:
```
You must either;
a) signup for x, or
b) signup for y, or
c) pay for z.
``` | 2015/07/24 | [
"https://english.stackexchange.com/questions/262183",
"https://english.stackexchange.com",
"https://english.stackexchange.com/users/130467/"
] | I would run it this way:
>
> You **must** choose one (and only one) of the following three options:
>
>
> 1. Sign up for x.
> 2. Sign up for y.
> 3. Pay for z.
>
>
>
My rationale for handling the list in this way is that running the three options as separate simple sentences maximizes their readability and thei... | Either is followed by two alternatives. Either A or B. You have three. Do not use "either" in this way. |
262,183 | How could the following list be improved:
```
You must either;
a) signup for x, or
b) signup for y, or
c) pay for z.
``` | 2015/07/24 | [
"https://english.stackexchange.com/questions/262183",
"https://english.stackexchange.com",
"https://english.stackexchange.com/users/130467/"
] | Either is followed by two alternatives. Either A or B. You have three. Do not use "either" in this way. | First, *either* is used with only two alternatives (either *this* or *that*).
Second, a semicolon is not a good choice before a list; a colon would be appropriate if you want to keep the question in its current form.
Third, *sign up*, used as a verb, should be two words, not one. *Signup* is appropriate when used as ... |
262,183 | How could the following list be improved:
```
You must either;
a) signup for x, or
b) signup for y, or
c) pay for z.
``` | 2015/07/24 | [
"https://english.stackexchange.com/questions/262183",
"https://english.stackexchange.com",
"https://english.stackexchange.com/users/130467/"
] | I would run it this way:
>
> You **must** choose one (and only one) of the following three options:
>
>
> 1. Sign up for x.
> 2. Sign up for y.
> 3. Pay for z.
>
>
>
My rationale for handling the list in this way is that running the three options as separate simple sentences maximizes their readability and thei... | First, *either* is used with only two alternatives (either *this* or *that*).
Second, a semicolon is not a good choice before a list; a colon would be appropriate if you want to keep the question in its current form.
Third, *sign up*, used as a verb, should be two words, not one. *Signup* is appropriate when used as ... |
31,064,948 | I have a string `myString = ""Ted", "Male", "29", "10,000""` . I am trying to split this string with `myString.split(",")` and write it in excel using poi. But it also splits the salary `"10,000"` to `["10","000"]`.
Is there any way to avoid that? | 2015/06/26 | [
"https://Stackoverflow.com/questions/31064948",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/2810293/"
] | If your string is formated with a space after "," you can use this code.
```
String string = "\"Ted\", \"Male\", \"29\", \"10,000\"";
System.out.println(Arrays.asList(string.split(", ")));
``` | The `String.split()` function actually takes two parameters, the first is the regex to split the String with, and the second is the limit at which to stop spliting. [[Documentation]](http://docs.oracle.com/javase/7/docs/api/java/lang/String.html#split(java.lang.String,%20int))
If you are sure that the number would alw... |
31,064,948 | I have a string `myString = ""Ted", "Male", "29", "10,000""` . I am trying to split this string with `myString.split(",")` and write it in excel using poi. But it also splits the salary `"10,000"` to `["10","000"]`.
Is there any way to avoid that? | 2015/06/26 | [
"https://Stackoverflow.com/questions/31064948",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/2810293/"
] | If your string is formated with a space after "," you can use this code.
```
String string = "\"Ted\", \"Male\", \"29\", \"10,000\"";
System.out.println(Arrays.asList(string.split(", ")));
``` | You can use a positive lookbehind regex to only split at commas that occur after a quote, followed by zero or more spaces:
```
String myString = "\"Ted\", \"Male\", \"29\", \"10,000\"";
System.out.println(Arrays.asList(myString.split("(?<=\"), *")));
```
output:
```
["Ted", "Male", "29", "10,000"]
``` |
31,064,948 | I have a string `myString = ""Ted", "Male", "29", "10,000""` . I am trying to split this string with `myString.split(",")` and write it in excel using poi. But it also splits the salary `"10,000"` to `["10","000"]`.
Is there any way to avoid that? | 2015/06/26 | [
"https://Stackoverflow.com/questions/31064948",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/2810293/"
] | If your string is formated with a space after "," you can use this code.
```
String string = "\"Ted\", \"Male\", \"29\", \"10,000\"";
System.out.println(Arrays.asList(string.split(", ")));
``` | You can try this regex:
```
(?:\\")(,\\s*)
```
It will look for character next to and supports zero or more spaces.
### [Demo](http://rubular.com/r/DfzOqVStx2) |
8,998,443 | I have a windows form which client needs to appear full screen in any resolution(Needs to looks like a web page).But the problem is to make the form width to 100%.
Any suggestions? | 2012/01/25 | [
"https://Stackoverflow.com/questions/8998443",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1158379/"
] | you can use `FormWindowState` to maximize the form at loading.
```
this.WindowState = FormWindowState.Maximized;
``` | Another way:
If you dont want this to do programmatically, you can also right click on the form to see the properties of that form and set "**WindowState**" property to "**Maximized**". |
8,998,443 | I have a windows form which client needs to appear full screen in any resolution(Needs to looks like a web page).But the problem is to make the form width to 100%.
Any suggestions? | 2012/01/25 | [
"https://Stackoverflow.com/questions/8998443",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1158379/"
] | you can use `FormWindowState` to maximize the form at loading.
```
this.WindowState = FormWindowState.Maximized;
``` | >
> In my application its a user control rather than a windows form.
>
>
>
So manually set the size of the user control to the size of the containing form's client area.
Something like:
```
Control container = this.Parent;
if (container)
{
// Fill the parent control.
this.Size = container.ClientSize;
}
... |
8,998,443 | I have a windows form which client needs to appear full screen in any resolution(Needs to looks like a web page).But the problem is to make the form width to 100%.
Any suggestions? | 2012/01/25 | [
"https://Stackoverflow.com/questions/8998443",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1158379/"
] | Another way:
If you dont want this to do programmatically, you can also right click on the form to see the properties of that form and set "**WindowState**" property to "**Maximized**". | >
> In my application its a user control rather than a windows form.
>
>
>
So manually set the size of the user control to the size of the containing form's client area.
Something like:
```
Control container = this.Parent;
if (container)
{
// Fill the parent control.
this.Size = container.ClientSize;
}
... |
8,998,443 | I have a windows form which client needs to appear full screen in any resolution(Needs to looks like a web page).But the problem is to make the form width to 100%.
Any suggestions? | 2012/01/25 | [
"https://Stackoverflow.com/questions/8998443",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1158379/"
] | If you only want to set the width to 100%:
```cs
this.Width = Screen.PrimaryScreen.Bounds.Width;
```
If you want set both width and height:
```cs
this.WindowState = FormWindowState.Maximized;
``` | Another way:
If you dont want this to do programmatically, you can also right click on the form to see the properties of that form and set "**WindowState**" property to "**Maximized**". |
8,998,443 | I have a windows form which client needs to appear full screen in any resolution(Needs to looks like a web page).But the problem is to make the form width to 100%.
Any suggestions? | 2012/01/25 | [
"https://Stackoverflow.com/questions/8998443",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1158379/"
] | If you only want to set the width to 100%:
```cs
this.Width = Screen.PrimaryScreen.Bounds.Width;
```
If you want set both width and height:
```cs
this.WindowState = FormWindowState.Maximized;
``` | >
> In my application its a user control rather than a windows form.
>
>
>
So manually set the size of the user control to the size of the containing form's client area.
Something like:
```
Control container = this.Parent;
if (container)
{
// Fill the parent control.
this.Size = container.ClientSize;
}
... |
68,656,588 | I am having trouble creating a simple on/off switch.
I am beginner and am writing a discord bot for fun and to learn. My bot is on more than one server and that is why a global variable isn't an option (running it on one server also changes it for others).
Putting a variable inside the command isn't an option because e... | 2021/08/04 | [
"https://Stackoverflow.com/questions/68656588",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/15480058/"
] | In `base R`, we may either use one of the following i.e. loop over all the columns, create an `if/else` conditon to change it
```
dataframe[] <- lapply(dataframe, function(x) if(is.numeric(x))
as.character(x) else x)
```
Or create an index for numeric columns and loop only on those columns and assign
``... | All said by master akrun! Here is a `data.table` alternative. Note it converts all columns to `character` class:
```
library(data.table)
data.table::setDT(df)
df[, (colnames(df)) := lapply(.SD, as.character), .SDcols = colnames(df)]
``` |
3,559 | Getting the error "Storage location can only be given for array or struct types" in a setup function. The exact line is
```
uint memory _total = 0;
```
I'm confused by the error, because I'm not trying to use storage, I'm trying to use memory. | 2016/05/03 | [
"https://ethereum.stackexchange.com/questions/3559",
"https://ethereum.stackexchange.com",
"https://ethereum.stackexchange.com/users/40/"
] | The term "storage location" is a bit misleading here, it refers to a more general concept about where data is stored, i.e. in storage or in memory. The error occurs because the "storage location" is only relevant for reference types like structs and arrays and uints are always passed by value, so you cannot hold a refe... | "For almost all types, you cannot specify where they should be stored"
"local variables of value type (i.e. neither array, nor struct nor mapping) are stored in the stack"
source: <http://solidity.readthedocs.io/en/v0.4.24/frequently-asked-questions.html>
So you can not set storage location for uint |
3,102,259 | I wrote some dummy css. Instead of a tag I got escaped characters. How can I add a div tag instead?
```
.HeaderName:after{
content: "<div class=\"Name2\">text</div>";
}
.Name2 {
color: red;
}
``` | 2010/06/23 | [
"https://Stackoverflow.com/questions/3102259",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/-1/"
] | The `content` declaration cannot add tags to the page (tags are structural); additionally, CSS is meant for presentation changes, not structural content changes.
Consider using jQuery, instead, such as:
```
$(".HeaderName").after("your html here");
``` | You can't insert tags using `content:` in CSS. Here is the relevant part of the spec; see [the 'content' property](http://www.w3.org/TR/2009/CR-CSS2-20090908/generate.html#propdef-content) in the CSS 2.1 spec. |
3,102,259 | I wrote some dummy css. Instead of a tag I got escaped characters. How can I add a div tag instead?
```
.HeaderName:after{
content: "<div class=\"Name2\">text</div>";
}
.Name2 {
color: red;
}
``` | 2010/06/23 | [
"https://Stackoverflow.com/questions/3102259",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/-1/"
] | The `content` declaration cannot add tags to the page (tags are structural); additionally, CSS is meant for presentation changes, not structural content changes.
Consider using jQuery, instead, such as:
```
$(".HeaderName").after("your html here");
``` | If you need that extra tag only to make the added text red, just do this:
```
.HeaderName:after{
content: "text";
color:red;
}
```
Tested on Chrome. |
270,391 | >
> "Well, Tormance is a big place. But I have an infallible rule, Corpang. As I come from the south, I always go due north."
>
>
> "That will take us to Lichstorm."
>
>
> Maskull gazed at the fantastically piled rocks all around them. “I saw these rocks from Matterplay. The mountains **look as far off now as they... | 2015/08/31 | [
"https://english.stackexchange.com/questions/270391",
"https://english.stackexchange.com",
"https://english.stackexchange.com/users/134982/"
] | The key issue here involves the word *them*, which appears in the highlighted sentence in multiple editions of *A Voyage to Arcturus*. I think this word is a typo—and at least one edition of the book agrees with me. From David Lindsay, [*A Voyage to Arcturus*](https://books.google.com/books?lr=&id=HDHQAAAAMAAJ&dq=editi... | The whole sentence is a comparison statement. Maskull traveled a long way, and the mountains he saw appeared to not move at all as he approached them.
In this sentence, the word *as* is used to compare two things: what the mountains looked like at the beginning of his voyage and what they looked like at the end. If yo... |
22,597,349 | I'm working on a page with two Bootstrap 3 modals in Chrome. Everything appears fine until you leave the developer console open and launch one of the modals. You can repeat the issue with this jsfiddle, again with the latest Chrome, or create an html page with the below code.
<http://jsfiddle.net/ow3n/22ENG/>
```htm... | 2014/03/23 | [
"https://Stackoverflow.com/questions/22597349",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/441878/"
] | You are trying to activate the modals automatically *and* activate them manually at the same time! If you read the [**docs**](http://getbootstrap.com/javascript/#modals) :
>
> Activate a modal without writing JavaScript. Set data-toggle="modal"
> on a controller element, like a button, **along with a
> data-target=... | I have updated the jsfiddle demo:
<http://jsfiddle.net/22ENG/11/>
```
<link href="http://netdna.bootstrapcdn.com/bootstrap/3.2.0/css/bootstrap.min.css" rel="stylesheet">
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.11.0/jquery.min.js"></script>
<script src="http://netdna.bootstrapcdn.com/bootstrap/3.2.0/... |
69,020,548 | **DataProvider.js**
```
import React, { Component } from "react";
import {ProjectFirestore} from '../Config/Firebase';
const DataContext = React.createContext();
class DataProvider extends Component {
state = {
orderHistory: [],
};
componentDidMount() {
this.fetchUserOrderHistory();
}
fetchUserO... | 2021/09/01 | [
"https://Stackoverflow.com/questions/69020548",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/11375002/"
] | Can you please try this...
```
const Add = (props) => {
const { register, handleSubmit } = useForm();
const onSubmit = (data) => {
console.log(data);
addReview(data);
};
const addReview = (data) => {
axios.POST("http://localhost:3000/reviews", data).then(() => {
props.setReviews([...props.r... | You have a typo.
This is what you have currently:
```
<form className="form" onSubmit={handleSubmit(onSubmit)}>
```
You call `handleSubmit(onSubmit)` but I'm guessing you are trying to use `onSubmit` as a handler. Replace the line above with this:
```
<form className="form" onSubmit={onSubmit}>
``` |
69,020,548 | **DataProvider.js**
```
import React, { Component } from "react";
import {ProjectFirestore} from '../Config/Firebase';
const DataContext = React.createContext();
class DataProvider extends Component {
state = {
orderHistory: [],
};
componentDidMount() {
this.fetchUserOrderHistory();
}
fetchUserO... | 2021/09/01 | [
"https://Stackoverflow.com/questions/69020548",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/11375002/"
] | Pass this for every `input` with the `name` in order to register:
```
{...register("rating")}
```
Reference: <https://react-hook-form.com/api/useform/register> | You have a typo.
This is what you have currently:
```
<form className="form" onSubmit={handleSubmit(onSubmit)}>
```
You call `handleSubmit(onSubmit)` but I'm guessing you are trying to use `onSubmit` as a handler. Replace the line above with this:
```
<form className="form" onSubmit={onSubmit}>
``` |
69,020,548 | **DataProvider.js**
```
import React, { Component } from "react";
import {ProjectFirestore} from '../Config/Firebase';
const DataContext = React.createContext();
class DataProvider extends Component {
state = {
orderHistory: [],
};
componentDidMount() {
this.fetchUserOrderHistory();
}
fetchUserO... | 2021/09/01 | [
"https://Stackoverflow.com/questions/69020548",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/11375002/"
] | You have a typo.
This is what you have currently:
```
<form className="form" onSubmit={handleSubmit(onSubmit)}>
```
You call `handleSubmit(onSubmit)` but I'm guessing you are trying to use `onSubmit` as a handler. Replace the line above with this:
```
<form className="form" onSubmit={onSubmit}>
``` | [You have to register your input into the hook by invoking the "register" function](https://codesandbox.io/s/bold-lamarr-gyguv?file=/src/Add.js)
Like this `<input type="text" placeholder="Rating" {...register("Rating")}></input>` |
69,020,548 | **DataProvider.js**
```
import React, { Component } from "react";
import {ProjectFirestore} from '../Config/Firebase';
const DataContext = React.createContext();
class DataProvider extends Component {
state = {
orderHistory: [],
};
componentDidMount() {
this.fetchUserOrderHistory();
}
fetchUserO... | 2021/09/01 | [
"https://Stackoverflow.com/questions/69020548",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/11375002/"
] | Pass this for every `input` with the `name` in order to register:
```
{...register("rating")}
```
Reference: <https://react-hook-form.com/api/useform/register> | Can you please try this...
```
const Add = (props) => {
const { register, handleSubmit } = useForm();
const onSubmit = (data) => {
console.log(data);
addReview(data);
};
const addReview = (data) => {
axios.POST("http://localhost:3000/reviews", data).then(() => {
props.setReviews([...props.r... |
69,020,548 | **DataProvider.js**
```
import React, { Component } from "react";
import {ProjectFirestore} from '../Config/Firebase';
const DataContext = React.createContext();
class DataProvider extends Component {
state = {
orderHistory: [],
};
componentDidMount() {
this.fetchUserOrderHistory();
}
fetchUserO... | 2021/09/01 | [
"https://Stackoverflow.com/questions/69020548",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/11375002/"
] | Can you please try this...
```
const Add = (props) => {
const { register, handleSubmit } = useForm();
const onSubmit = (data) => {
console.log(data);
addReview(data);
};
const addReview = (data) => {
axios.POST("http://localhost:3000/reviews", data).then(() => {
props.setReviews([...props.r... | [You have to register your input into the hook by invoking the "register" function](https://codesandbox.io/s/bold-lamarr-gyguv?file=/src/Add.js)
Like this `<input type="text" placeholder="Rating" {...register("Rating")}></input>` |
69,020,548 | **DataProvider.js**
```
import React, { Component } from "react";
import {ProjectFirestore} from '../Config/Firebase';
const DataContext = React.createContext();
class DataProvider extends Component {
state = {
orderHistory: [],
};
componentDidMount() {
this.fetchUserOrderHistory();
}
fetchUserO... | 2021/09/01 | [
"https://Stackoverflow.com/questions/69020548",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/11375002/"
] | Pass this for every `input` with the `name` in order to register:
```
{...register("rating")}
```
Reference: <https://react-hook-form.com/api/useform/register> | [You have to register your input into the hook by invoking the "register" function](https://codesandbox.io/s/bold-lamarr-gyguv?file=/src/Add.js)
Like this `<input type="text" placeholder="Rating" {...register("Rating")}></input>` |
2,430,423 | A search for "python" and "xml" returns a variety of libraries for combining the two.
This list probably faulty:
* xml.dom
* xml.etree
* xml.sax
* xml.parsers.expat
* PyXML
* beautifulsoup?
* HTMLParser
* htmllib
* sgmllib
Be nice if someone can offer a quick summary of when to use which, and why. | 2010/03/12 | [
"https://Stackoverflow.com/questions/2430423",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/75033/"
] | The DOM/SAX divide is a basic one. It applies not just to python since DOM and SAX are cross-language.
**DOM**: read the whole document into memory and manipulate it.
Good for:
* complex relationships across tags in the markup
* small intricate XML documents
* Cautions:
+ Easy to use excessive memory
**SAX**: parse... | I don't do much with XML, but when I've needed to, [lxml](http://lxml.de/) has been a joy to work with and is apparently quite fast. The element tree API is very nice in an object oriented setting. |
2,430,423 | A search for "python" and "xml" returns a variety of libraries for combining the two.
This list probably faulty:
* xml.dom
* xml.etree
* xml.sax
* xml.parsers.expat
* PyXML
* beautifulsoup?
* HTMLParser
* htmllib
* sgmllib
Be nice if someone can offer a quick summary of when to use which, and why. | 2010/03/12 | [
"https://Stackoverflow.com/questions/2430423",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/75033/"
] | The DOM/SAX divide is a basic one. It applies not just to python since DOM and SAX are cross-language.
**DOM**: read the whole document into memory and manipulate it.
Good for:
* complex relationships across tags in the markup
* small intricate XML documents
* Cautions:
+ Easy to use excessive memory
**SAX**: parse... | I find `xml.etree` essentially sufficient for everything, except for `BeautifulSoup` if I ever need to parse *broken* XML (not a common problem, differently from broken HTML, which BeautifulSoup also helps with and *is* everywhere): it has reasonable support for reading entire XML docs in memory, navigating them, creat... |
2,430,423 | A search for "python" and "xml" returns a variety of libraries for combining the two.
This list probably faulty:
* xml.dom
* xml.etree
* xml.sax
* xml.parsers.expat
* PyXML
* beautifulsoup?
* HTMLParser
* htmllib
* sgmllib
Be nice if someone can offer a quick summary of when to use which, and why. | 2010/03/12 | [
"https://Stackoverflow.com/questions/2430423",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/75033/"
] | The DOM/SAX divide is a basic one. It applies not just to python since DOM and SAX are cross-language.
**DOM**: read the whole document into memory and manipulate it.
Good for:
* complex relationships across tags in the markup
* small intricate XML documents
* Cautions:
+ Easy to use excessive memory
**SAX**: parse... | For many problems you can get by with the xml. It has the major advantage of being part of the standard library. This means that it is pre-installed on almost every system and that the interface will be static. It is not the best, or the fastest, but it is there.
For everything else there is lxml. Specically, lxml is ... |
2,430,423 | A search for "python" and "xml" returns a variety of libraries for combining the two.
This list probably faulty:
* xml.dom
* xml.etree
* xml.sax
* xml.parsers.expat
* PyXML
* beautifulsoup?
* HTMLParser
* htmllib
* sgmllib
Be nice if someone can offer a quick summary of when to use which, and why. | 2010/03/12 | [
"https://Stackoverflow.com/questions/2430423",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/75033/"
] | I find `xml.etree` essentially sufficient for everything, except for `BeautifulSoup` if I ever need to parse *broken* XML (not a common problem, differently from broken HTML, which BeautifulSoup also helps with and *is* everywhere): it has reasonable support for reading entire XML docs in memory, navigating them, creat... | I don't do much with XML, but when I've needed to, [lxml](http://lxml.de/) has been a joy to work with and is apparently quite fast. The element tree API is very nice in an object oriented setting. |
2,430,423 | A search for "python" and "xml" returns a variety of libraries for combining the two.
This list probably faulty:
* xml.dom
* xml.etree
* xml.sax
* xml.parsers.expat
* PyXML
* beautifulsoup?
* HTMLParser
* htmllib
* sgmllib
Be nice if someone can offer a quick summary of when to use which, and why. | 2010/03/12 | [
"https://Stackoverflow.com/questions/2430423",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/75033/"
] | I find `xml.etree` essentially sufficient for everything, except for `BeautifulSoup` if I ever need to parse *broken* XML (not a common problem, differently from broken HTML, which BeautifulSoup also helps with and *is* everywhere): it has reasonable support for reading entire XML docs in memory, navigating them, creat... | For many problems you can get by with the xml. It has the major advantage of being part of the standard library. This means that it is pre-installed on almost every system and that the interface will be static. It is not the best, or the fastest, but it is there.
For everything else there is lxml. Specically, lxml is ... |
32,254,079 | I am trying to connect to a server to create a new account. I am capturing the full URL into a string for debugging purposes, and then setting the URL to that string and trying to open that connection. When I copy and paste the URL into my browser, I get a response back and the proper execution. However, in my app I'm ... | 2015/08/27 | [
"https://Stackoverflow.com/questions/32254079",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/2281389/"
] | I ended up adding this to my code before I tried opening the connection until I can ask the developer who designed the server about whether or not the certificate is self signed or not
```
SSLContext ctx = SSLContext.getInstance("TLS");
ctx.init(null, new TrustManager[] {
new X509TrustManager() {
public void chec... | I used this in kotlin:
```
private fun configureHttps() {
val ctx = SSLContext.getInstance("TLS")
val trustAllCerts = arrayOf<TrustManager>(object : X509TrustManager {
override fun getAcceptedIssuers(): Array<X509Certificate?> {
return arrayOfNulls(0)
}
... |
69,307,675 | I am trying to use this function in a for loop but everytime the function runs for 2nd time it does not work and throw this error. I realised that everytime I need to use it I need to execute the cell that define it. Is it possible that I can define it only once and run it multiple times inside a for loop as I normally... | 2021/09/23 | [
"https://Stackoverflow.com/questions/69307675",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/13491046/"
] | Most likely the last commit of `big-feature` shown in your picture is not the same commit ID in both `main` and `style-edits`. (Update: I think this is possibly confirmed in the comments, due to a "basic" rebase onto `master` instead of a "fancy" rebase using `--onto`, which would explain this if that happened before `... | If it is as you say, the PR should work. Git should recognize that style shares all the commits of feature. You can check with `git log main..style`; all the commits reachable from style except those reachable from main. That's just the three commits in style.
From what you're saying is happening, that isn't not the c... |
137,870 | I have created a function that adds "shadow" to the content of a canvas. The algorithm for adding shadow follows these rules:
1. If the either `x` or `y` is 0, ignore.
2. If the pixel on the current pixel's top left corner is not completely transparent, set current pixel's alpha value to 0.1.
This algorithm runs from... | 2016/08/04 | [
"https://codereview.stackexchange.com/questions/137870",
"https://codereview.stackexchange.com",
"https://codereview.stackexchange.com/users/49321/"
] | Use diagonals. The idea is to have only one pixel check, compared to two you have now:
1. find the first occupied pixel on a diagonal
2. skip to an unoccupied one
3. fill with 0.1 while unoccupied
4. repeat 1-3 until out of bounds
Considering everything should be inlined, the code would be like this:
```
var x, y, ... | This is my attempt of optimizing the performance of the loop:
```
var width = rendered.width, height = rendered.height,
imgData = renderedCtx.getImageData(0, 0, width, height),
data = new Uint8Array(imgData.data.buffer),
arrayWidth = width * 4, arrayHeight = height * 4;
for(var y = 0; y < arrayHeight; y+=... |
137,870 | I have created a function that adds "shadow" to the content of a canvas. The algorithm for adding shadow follows these rules:
1. If the either `x` or `y` is 0, ignore.
2. If the pixel on the current pixel's top left corner is not completely transparent, set current pixel's alpha value to 0.1.
This algorithm runs from... | 2016/08/04 | [
"https://codereview.stackexchange.com/questions/137870",
"https://codereview.stackexchange.com",
"https://codereview.stackexchange.com/users/49321/"
] | Use diagonals. The idea is to have only one pixel check, compared to two you have now:
1. find the first occupied pixel on a diagonal
2. skip to an unoccupied one
3. fill with 0.1 while unoccupied
4. repeat 1-3 until out of bounds
Considering everything should be inlined, the code would be like this:
```
var x, y, ... | A simple optimization that most programmers fail to notice:
```
if (...) return true else return false;
```
==>
```
return (...);
```
Instead of looking at every pixel, only look at each diagonal from upper left toward the south-east. (Assuming 0,0 is in the north-west.) It seems that once you hit a clear spot... |
137,870 | I have created a function that adds "shadow" to the content of a canvas. The algorithm for adding shadow follows these rules:
1. If the either `x` or `y` is 0, ignore.
2. If the pixel on the current pixel's top left corner is not completely transparent, set current pixel's alpha value to 0.1.
This algorithm runs from... | 2016/08/04 | [
"https://codereview.stackexchange.com/questions/137870",
"https://codereview.stackexchange.com",
"https://codereview.stackexchange.com/users/49321/"
] | This is my attempt of optimizing the performance of the loop:
```
var width = rendered.width, height = rendered.height,
imgData = renderedCtx.getImageData(0, 0, width, height),
data = new Uint8Array(imgData.data.buffer),
arrayWidth = width * 4, arrayHeight = height * 4;
for(var y = 0; y < arrayHeight; y+=... | A simple optimization that most programmers fail to notice:
```
if (...) return true else return false;
```
==>
```
return (...);
```
Instead of looking at every pixel, only look at each diagonal from upper left toward the south-east. (Assuming 0,0 is in the north-west.) It seems that once you hit a clear spot... |
55,297,858 | I added to My **angular 7** project to **one page menu option** , its not working correctly ,I used bootstrap 4 and I tried to do like this [example](https://startbootstrap.com/previews/scrolling-nav/)
anyone know how to add this correctly
[stack blitz sample](https://stackblitz.com/edit/angular-1tdhmy)
Thanks
**... | 2019/03/22 | [
"https://Stackoverflow.com/questions/55297858",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/8268644/"
] | Create a function `scrollToElement()` in the app.component.ts file and then call the function from the html
```
scrollToElement(element): void {
element.scrollIntoView({behavior: "smooth", inline: "nearest"});
}
```
For example
```
<a class="nav-link js-scroll-trigger" (click)="scrollToElement(about)">About</a... | I just created basic **bootstrap Scrollspy** code snippet, I hope it'll help you out. Thanks
```js
function scrollSpy(v, e) {
e.preventDefault();
$('html, body').animate({
scrollTop: $(v.hash).offset().top
}, 500, function(){
window.location.hash = v.hash;
});
}
(function() {
... |
55,297,858 | I added to My **angular 7** project to **one page menu option** , its not working correctly ,I used bootstrap 4 and I tried to do like this [example](https://startbootstrap.com/previews/scrolling-nav/)
anyone know how to add this correctly
[stack blitz sample](https://stackblitz.com/edit/angular-1tdhmy)
Thanks
**... | 2019/03/22 | [
"https://Stackoverflow.com/questions/55297858",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/8268644/"
] | Create a function `scrollToElement()` in the app.component.ts file and then call the function from the html
```
scrollToElement(element): void {
element.scrollIntoView({behavior: "smooth", inline: "nearest"});
}
```
For example
```
<a class="nav-link js-scroll-trigger" (click)="scrollToElement(about)">About</a... | Try putting the header tag and code in the index.html file. worked for me. |
55,297,858 | I added to My **angular 7** project to **one page menu option** , its not working correctly ,I used bootstrap 4 and I tried to do like this [example](https://startbootstrap.com/previews/scrolling-nav/)
anyone know how to add this correctly
[stack blitz sample](https://stackblitz.com/edit/angular-1tdhmy)
Thanks
**... | 2019/03/22 | [
"https://Stackoverflow.com/questions/55297858",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/8268644/"
] | I just created basic **bootstrap Scrollspy** code snippet, I hope it'll help you out. Thanks
```js
function scrollSpy(v, e) {
e.preventDefault();
$('html, body').animate({
scrollTop: $(v.hash).offset().top
}, 500, function(){
window.location.hash = v.hash;
});
}
(function() {
... | Try putting the header tag and code in the index.html file. worked for me. |
4,933,097 | Can I search in the web with Google Custom Search? Because in [http://www.google.com/cse](http://www.google.com/cse/), I must enter a site url in "Sites to search"; And I don't have any url! because the Internet doesn't have any URL! (I think!)
Can you help me? | 2011/02/08 | [
"https://Stackoverflow.com/questions/4933097",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/501134/"
] | I believe you have to enter a url because google wants to know what website(s) the search form is going to be on. But after that, when your custom search is set up, you can go into its settings and make different changes. The best you can do for searching the entire web is to click this option in the "Basics" section o... | The point of custom searches is that they narrow down the content that they're trying to bring back to a subset of the google index. Specifically the stuff it has crawled on the sites that you give it. To add "The Internet" to a custom-search engine defeats the whole purpose of it. You may as well just specify <http://... |
4,933,097 | Can I search in the web with Google Custom Search? Because in [http://www.google.com/cse](http://www.google.com/cse/), I must enter a site url in "Sites to search"; And I don't have any url! because the Internet doesn't have any URL! (I think!)
Can you help me? | 2011/02/08 | [
"https://Stackoverflow.com/questions/4933097",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/501134/"
] | From Google's help page here:
Convert a search engine to search the entire web:
On the Custom Search home page, click the search engine you want.
-Click Setup, and then click the Basics tab.
-Select Search the entire web but emphasize included sites.
-In the Sites to search section, delete the site you entered during ... | The point of custom searches is that they narrow down the content that they're trying to bring back to a subset of the google index. Specifically the stuff it has crawled on the sites that you give it. To add "The Internet" to a custom-search engine defeats the whole purpose of it. You may as well just specify <http://... |
4,933,097 | Can I search in the web with Google Custom Search? Because in [http://www.google.com/cse](http://www.google.com/cse/), I must enter a site url in "Sites to search"; And I don't have any url! because the Internet doesn't have any URL! (I think!)
Can you help me? | 2011/02/08 | [
"https://Stackoverflow.com/questions/4933097",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/501134/"
] | when you are about to create a CSE, just enter some arbitrary URL for **Sites to Search** and when You were done, then you can select your CSE in control panel to modify it.
Like this example you can remove any previously entered URL and click **search entire web but emphasize included sites** option
[, I must enter a site url in "Sites to search"; And I don't have any url! because the Internet doesn't have any URL! (I think!)
Can you help me? | 2011/02/08 | [
"https://Stackoverflow.com/questions/4933097",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/501134/"
] | I believe you have to enter a url because google wants to know what website(s) the search form is going to be on. But after that, when your custom search is set up, you can go into its settings and make different changes. The best you can do for searching the entire web is to click this option in the "Basics" section o... | From Google's help page here:
Convert a search engine to search the entire web:
On the Custom Search home page, click the search engine you want.
-Click Setup, and then click the Basics tab.
-Select Search the entire web but emphasize included sites.
-In the Sites to search section, delete the site you entered during ... |
4,933,097 | Can I search in the web with Google Custom Search? Because in [http://www.google.com/cse](http://www.google.com/cse/), I must enter a site url in "Sites to search"; And I don't have any url! because the Internet doesn't have any URL! (I think!)
Can you help me? | 2011/02/08 | [
"https://Stackoverflow.com/questions/4933097",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/501134/"
] | I believe you have to enter a url because google wants to know what website(s) the search form is going to be on. But after that, when your custom search is set up, you can go into its settings and make different changes. The best you can do for searching the entire web is to click this option in the "Basics" section o... | when you are about to create a CSE, just enter some arbitrary URL for **Sites to Search** and when You were done, then you can select your CSE in control panel to modify it.
Like this example you can remove any previously entered URL and click **search entire web but emphasize included sites** option
[![enter ima... |
14,930 | Can I use both words as **"room"**? | 2014/07/19 | [
"https://german.stackexchange.com/questions/14930",
"https://german.stackexchange.com",
"https://german.stackexchange.com/users/8925/"
] | Yes you can use both:
**Raum** = Room
**Weltraum** = Space
**Zimmer** = A room in a house. Particularly a home.
**Raum** = A room in a house or a conference room. A room in any building
**Zimmer** is more private than room. (In Hotels you refer to the rooms you can book as Zimmer. - These Zimmer come with locks a... | Zimmer and Raum both refer to "room" (in a building) in somewhat different contexts.
Zimmer refers to a "private" room. For a "public" room such as a conference room or a party room, use Raum.
Raum has the additional meaning of "room" in the sense of "space," and even regarding time periods. |
14,930 | Can I use both words as **"room"**? | 2014/07/19 | [
"https://german.stackexchange.com/questions/14930",
"https://german.stackexchange.com",
"https://german.stackexchange.com/users/8925/"
] | Yes you can use both:
**Raum** = Room
**Weltraum** = Space
**Zimmer** = A room in a house. Particularly a home.
**Raum** = A room in a house or a conference room. A room in any building
**Zimmer** is more private than room. (In Hotels you refer to the rooms you can book as Zimmer. - These Zimmer come with locks a... | Der *Raum* ist ein allgemeinerer Begriff. Es ist–physikalisch ausgedrückt–ein [sich in drei Dimensionen erstreckende geometrische Größe](http://de.wiktionary.org/wiki/Raum). Der Begriff *Raum* kann einen Bereich bezeichnen, der als Nutzfläche genutzt wird oder zum Aufenthalt zur Verfügung steht. Letzteres(also Aufentha... |
14,930 | Can I use both words as **"room"**? | 2014/07/19 | [
"https://german.stackexchange.com/questions/14930",
"https://german.stackexchange.com",
"https://german.stackexchange.com/users/8925/"
] | Yes you can use both:
**Raum** = Room
**Weltraum** = Space
**Zimmer** = A room in a house. Particularly a home.
**Raum** = A room in a house or a conference room. A room in any building
**Zimmer** is more private than room. (In Hotels you refer to the rooms you can book as Zimmer. - These Zimmer come with locks a... | Most of the points have been covered in the previous replies. Just want to add the below conjugations :
Der Raum = space (There's space in the car)
Der Raum = room (A conference/discussion room maybe)
Das Zimmer = room (A room in a house) |
14,930 | Can I use both words as **"room"**? | 2014/07/19 | [
"https://german.stackexchange.com/questions/14930",
"https://german.stackexchange.com",
"https://german.stackexchange.com/users/8925/"
] | Zimmer and Raum both refer to "room" (in a building) in somewhat different contexts.
Zimmer refers to a "private" room. For a "public" room such as a conference room or a party room, use Raum.
Raum has the additional meaning of "room" in the sense of "space," and even regarding time periods. | Most of the points have been covered in the previous replies. Just want to add the below conjugations :
Der Raum = space (There's space in the car)
Der Raum = room (A conference/discussion room maybe)
Das Zimmer = room (A room in a house) |
14,930 | Can I use both words as **"room"**? | 2014/07/19 | [
"https://german.stackexchange.com/questions/14930",
"https://german.stackexchange.com",
"https://german.stackexchange.com/users/8925/"
] | Der *Raum* ist ein allgemeinerer Begriff. Es ist–physikalisch ausgedrückt–ein [sich in drei Dimensionen erstreckende geometrische Größe](http://de.wiktionary.org/wiki/Raum). Der Begriff *Raum* kann einen Bereich bezeichnen, der als Nutzfläche genutzt wird oder zum Aufenthalt zur Verfügung steht. Letzteres(also Aufentha... | Most of the points have been covered in the previous replies. Just want to add the below conjugations :
Der Raum = space (There's space in the car)
Der Raum = room (A conference/discussion room maybe)
Das Zimmer = room (A room in a house) |
55,215 | **The general question**
Do older people (> 40 years) who have successfully retrained as developers stand any chance to be interviewed for junior level positions, and if so, how do they maximize their chances?
**Background to this question**
Over the last few years I've been helping an acquaintance learn software d... | 2015/09/30 | [
"https://workplace.stackexchange.com/questions/55215",
"https://workplace.stackexchange.com",
"https://workplace.stackexchange.com/users/42493/"
] | Lots of good answers here, but something in your question stuck out to me: he's having trouble *getting an interview*. Most of these (very good) answers are most useful once you are sitting across the room from (or on the phone with) a real live person.
Paying someone to review your resume (as @Kathy suggests) is abso... | Make him get a professional to write his CV. Some people have real problems writing a good CV. Especially if they’ve got a job for lifetime or thought so and never had to write a CV. The CV makes all the difference. Some CVs won’t even be read. That’s where a professional charging £200 to £300 makes all the difference.... |
55,215 | **The general question**
Do older people (> 40 years) who have successfully retrained as developers stand any chance to be interviewed for junior level positions, and if so, how do they maximize their chances?
**Background to this question**
Over the last few years I've been helping an acquaintance learn software d... | 2015/09/30 | [
"https://workplace.stackexchange.com/questions/55215",
"https://workplace.stackexchange.com",
"https://workplace.stackexchange.com/users/42493/"
] | My understanding is that testing is a growing area in IT.
I know of some training centers in the U.S. that specialize in training older, highly educated professional immigrants in the latest testing approaches and tools, then cut them loose on Silicone Valley with high % of graduates receiving employment offers.
Te... | I got an entry level job at age 49. I was hired base on my enthusiasm, curiosity and by getting my hands dirty creating my own asp.net websites. (or at least that's what I was told). Don't feel pressure to have an in-depth knowledge of C#, SQL, etc. Learn them, yes, but don't feel you have to be an expert. The best rou... |
55,215 | **The general question**
Do older people (> 40 years) who have successfully retrained as developers stand any chance to be interviewed for junior level positions, and if so, how do they maximize their chances?
**Background to this question**
Over the last few years I've been helping an acquaintance learn software d... | 2015/09/30 | [
"https://workplace.stackexchange.com/questions/55215",
"https://workplace.stackexchange.com",
"https://workplace.stackexchange.com/users/42493/"
] | My understanding is that testing is a growing area in IT.
I know of some training centers in the U.S. that specialize in training older, highly educated professional immigrants in the latest testing approaches and tools, then cut them loose on Silicone Valley with high % of graduates receiving employment offers.
Te... | Make him get a professional to write his CV. Some people have real problems writing a good CV. Especially if they’ve got a job for lifetime or thought so and never had to write a CV. The CV makes all the difference. Some CVs won’t even be read. That’s where a professional charging £200 to £300 makes all the difference.... |
55,215 | **The general question**
Do older people (> 40 years) who have successfully retrained as developers stand any chance to be interviewed for junior level positions, and if so, how do they maximize their chances?
**Background to this question**
Over the last few years I've been helping an acquaintance learn software d... | 2015/09/30 | [
"https://workplace.stackexchange.com/questions/55215",
"https://workplace.stackexchange.com",
"https://workplace.stackexchange.com/users/42493/"
] | This is a variant of the "portfolio of projects" idea.
Look for a popular, widely used, open software project in C or C++ that relates to one of his areas of domain knowledge. He should join the project and start contributing to both discussions and actual development.
At the best, someone needing a developer in that... | Focus in a cover letter on the experience with a domain specific language and the recent learning of C++. It would help to have a project and display the code online. Indicate this was a decision to make a career change and not a desperate attempt to find employment because you can't find a job in your current field. T... |
55,215 | **The general question**
Do older people (> 40 years) who have successfully retrained as developers stand any chance to be interviewed for junior level positions, and if so, how do they maximize their chances?
**Background to this question**
Over the last few years I've been helping an acquaintance learn software d... | 2015/09/30 | [
"https://workplace.stackexchange.com/questions/55215",
"https://workplace.stackexchange.com",
"https://workplace.stackexchange.com/users/42493/"
] | This is a variant of the "portfolio of projects" idea.
Look for a popular, widely used, open software project in C or C++ that relates to one of his areas of domain knowledge. He should join the project and start contributing to both discussions and actual development.
At the best, someone needing a developer in that... | I had no problems getting interviews (and job offers) as a junior dev with little experience at age 46 (in the US), but my undergrad degree is in a related field and I had started studying for my MS in CS.
I'll echo the "portfolio of projects" recommendation, which should be listed on the resume. Also, don't lie on th... |
55,215 | **The general question**
Do older people (> 40 years) who have successfully retrained as developers stand any chance to be interviewed for junior level positions, and if so, how do they maximize their chances?
**Background to this question**
Over the last few years I've been helping an acquaintance learn software d... | 2015/09/30 | [
"https://workplace.stackexchange.com/questions/55215",
"https://workplace.stackexchange.com",
"https://workplace.stackexchange.com/users/42493/"
] | Focus in a cover letter on the experience with a domain specific language and the recent learning of C++. It would help to have a project and display the code online. Indicate this was a decision to make a career change and not a desperate attempt to find employment because you can't find a job in your current field. T... | I don't think your friend will have any trouble due to his age-- especially due to being too *old*. It has been my experience that software developers believe that the field is a meritocracy, and care very little about age. At first blush, I could see a young-ish (30's) team-lead/manager being concerned that a 45-50 ye... |
55,215 | **The general question**
Do older people (> 40 years) who have successfully retrained as developers stand any chance to be interviewed for junior level positions, and if so, how do they maximize their chances?
**Background to this question**
Over the last few years I've been helping an acquaintance learn software d... | 2015/09/30 | [
"https://workplace.stackexchange.com/questions/55215",
"https://workplace.stackexchange.com",
"https://workplace.stackexchange.com/users/42493/"
] | I had no problems getting interviews (and job offers) as a junior dev with little experience at age 46 (in the US), but my undergrad degree is in a related field and I had started studying for my MS in CS.
I'll echo the "portfolio of projects" recommendation, which should be listed on the resume. Also, don't lie on th... | I can give you a note of hope here, my dad did exactly this. After being a teacher for over 20 years the stress and government interference finally became too much and he decided to leave at a similar age to your friend.
He'd been doing a lot of hobby programming over the years, was very strong in a number of language... |
55,215 | **The general question**
Do older people (> 40 years) who have successfully retrained as developers stand any chance to be interviewed for junior level positions, and if so, how do they maximize their chances?
**Background to this question**
Over the last few years I've been helping an acquaintance learn software d... | 2015/09/30 | [
"https://workplace.stackexchange.com/questions/55215",
"https://workplace.stackexchange.com",
"https://workplace.stackexchange.com/users/42493/"
] | I had no problems getting interviews (and job offers) as a junior dev with little experience at age 46 (in the US), but my undergrad degree is in a related field and I had started studying for my MS in CS.
I'll echo the "portfolio of projects" recommendation, which should be listed on the resume. Also, don't lie on th... | I got an entry level job at age 49. I was hired base on my enthusiasm, curiosity and by getting my hands dirty creating my own asp.net websites. (or at least that's what I was told). Don't feel pressure to have an in-depth knowledge of C#, SQL, etc. Learn them, yes, but don't feel you have to be an expert. The best rou... |
55,215 | **The general question**
Do older people (> 40 years) who have successfully retrained as developers stand any chance to be interviewed for junior level positions, and if so, how do they maximize their chances?
**Background to this question**
Over the last few years I've been helping an acquaintance learn software d... | 2015/09/30 | [
"https://workplace.stackexchange.com/questions/55215",
"https://workplace.stackexchange.com",
"https://workplace.stackexchange.com/users/42493/"
] | Lots of good answers here, but something in your question stuck out to me: he's having trouble *getting an interview*. Most of these (very good) answers are most useful once you are sitting across the room from (or on the phone with) a real live person.
Paying someone to review your resume (as @Kathy suggests) is abso... | I got an entry level job at age 49. I was hired base on my enthusiasm, curiosity and by getting my hands dirty creating my own asp.net websites. (or at least that's what I was told). Don't feel pressure to have an in-depth knowledge of C#, SQL, etc. Learn them, yes, but don't feel you have to be an expert. The best rou... |
55,215 | **The general question**
Do older people (> 40 years) who have successfully retrained as developers stand any chance to be interviewed for junior level positions, and if so, how do they maximize their chances?
**Background to this question**
Over the last few years I've been helping an acquaintance learn software d... | 2015/09/30 | [
"https://workplace.stackexchange.com/questions/55215",
"https://workplace.stackexchange.com",
"https://workplace.stackexchange.com/users/42493/"
] | I don't think your friend will have any trouble due to his age-- especially due to being too *old*. It has been my experience that software developers believe that the field is a meritocracy, and care very little about age. At first blush, I could see a young-ish (30's) team-lead/manager being concerned that a 45-50 ye... | Make him get a professional to write his CV. Some people have real problems writing a good CV. Especially if they’ve got a job for lifetime or thought so and never had to write a CV. The CV makes all the difference. Some CVs won’t even be read. That’s where a professional charging £200 to £300 makes all the difference.... |
26,992,301 | I was wondering if there's a way to use an Environment Variables (or similar) with an if statement in order to turn certain things on and off, such as display\_errors, modpagespeed.
So for example:
```
SetEnv DISPLAY_ERRORS on
<If "DISPLAY_ERRORS == on">
php_flag display_errors on
</If>
<If "DISPLAY_ERRORS == of... | 2014/11/18 | [
"https://Stackoverflow.com/questions/26992301",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1729734/"
] | We can be tempted to write this:
```
#SetEnvIf Request_URI "^" DISPLAY_ERRORS=off
SetEnv DISPLAY_ERRORS off
<If "-T env('DISPLAY_ERRORS')">
php_flag display_errors off
</If>
<Else>
php_flag display_errors on
</Else>
```
But it seems that `<If>` is evalued **before** any `SetEnv(If)`.
>
> Note that the val... | Use SetEnvIf with early processing, this will cause your environment variable to be set earlier in the request process and then you can use them in your IF statement.
Just use a dummy condition that always evaluates to true. |
47,965,336 | I have a thread that reads the memory of another program. The information read is stored in a global variable. I, then, create another thread that acts on this information.
I have initialized the variable to be 0. After the first thread is created (the one that reads the memory of another program), it prints to consol... | 2017/12/25 | [
"https://Stackoverflow.com/questions/47965336",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/9064365/"
] | Option 1
--------
Use `onCreate` to create multiple tables :-
```
@Override
public void onCreate(SQLiteDatabase database) {
String createDicaTable = "CREATE TABLE " + TABLE_NAME + "( " +
ID_DICA + " INTEGER UNSIGNED PRIMARY KEY," +
CHANNEL_DICA + " TEXT NOT NULL," +
TITULO_DICA... | ```
private boolean checkDataBase() {
SQLiteDatabase checkDB = null;
try {
checkDB = SQLiteDatabase.openDatabase(DB_FULL_PATH(DB_FULL_PATH is the path to your database file), null,
SQLiteDatabase.OPEN_READONLY);
checkDB.close();
} catch (SQLiteException e) {
// databa... |
9,346,540 | I have a method which is simple and quite forward.
It is supposed to create a folder if it doesn´t exist.
It takes one string parameter which is properly declared.
When I use it and pass a parameter the receiving variable remains empty which is pretty strange because pathTo\_Folder is a path.
Any ideas why this ha... | 2012/02/19 | [
"https://Stackoverflow.com/questions/9346540",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/981969/"
] | My guess is that since you don't define the type of `thePath`, the compiler defaults it to an `int`, and an `int` doesn't print very well with `%@`. | I don't see any type declaration for the argument `thePath` selector, it should be
```
- (void) createFolder:(NSString*)thePath {
BOOL isDir;
```
Probably you don't get a warning because it has a default to `id` but that will mostly solve the issue. But an `id` type would be ok in this case, maybe it's some O... |
9,346,540 | I have a method which is simple and quite forward.
It is supposed to create a folder if it doesn´t exist.
It takes one string parameter which is properly declared.
When I use it and pass a parameter the receiving variable remains empty which is pretty strange because pathTo\_Folder is a path.
Any ideas why this ha... | 2012/02/19 | [
"https://Stackoverflow.com/questions/9346540",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/981969/"
] | My guess is that since you don't define the type of `thePath`, the compiler defaults it to an `int`, and an `int` doesn't print very well with `%@`. | This is a little bit cleaner and should work:
```
- (void) createFolder: (NSString *) thePath;
- (void) applicationDidFinishLaunching: (NSNotification *) aNotification
{
NSString *appSupportDir = [NSSearchPathForDirectoriesInDomains(NSApplicationSupportDirectory,
NSUserDomainMask, YES) lastObject];
[self cr... |
73,439,125 | I'm creating a dropdown using list items in React and am mapping through the data to get each option displayed. I want the user to be able to select multiple options and for all selected options to be saved in the state.
Currently the last option they select is being saved in an array in the state but I cannot get all... | 2022/08/22 | [
"https://Stackoverflow.com/questions/73439125",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/19816010/"
] | A `Set` would make the most sense here. This will prevent duplicates from being added if the user selects the same symptom twice, without having to search the entire array.
Passing a function to `setSelectedSymptoms` will give you access to the previous state.
```js
const [selectedSymptoms, setSelectedSymptoms] = use... | The current logic is completely replacing the state value with an array of a single symptom name.
If you need to append, or remove, elements from the array then I suggest using a functional state update.
Example:
```
const [selectedSymptoms, setSelectedSymptoms] = useState([]);
...
const handleSymptoms = (symptom)... |
73,356,938 | I have used `connectivity_plus` and `internet_connection_checker` packages to check the internet connectivity.
The problem occured is , the app works perfectly fine as expected when the app start's with internet on state. But when the app is opened with internet off, the dialog isn't shown !!
I assume this is happeni... | 2022/08/15 | [
"https://Stackoverflow.com/questions/73356938",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/13431819/"
] | Your bundle identifier has a hyphen in it. That's what's illegal about it. | Click on project at the top of the source file tree in the left sidebar, select the target in a mini sidebar on the left, and switch to `Build Settings`. In build settings select the following filter: All, Combined.
Then type in the following in the search bar on the right hand side: `PRODUCT_BUNDLE_IDENTIFIER` and ve... |
73,356,938 | I have used `connectivity_plus` and `internet_connection_checker` packages to check the internet connectivity.
The problem occured is , the app works perfectly fine as expected when the app start's with internet on state. But when the app is opened with internet off, the dialog isn't shown !!
I assume this is happeni... | 2022/08/15 | [
"https://Stackoverflow.com/questions/73356938",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/13431819/"
] | The problem was not solved by the above suggested questions. It turns out that I had to port the Chrome extension again, using the most recent XCode. (The original porting happened using an earlier version of XCode). | Click on project at the top of the source file tree in the left sidebar, select the target in a mini sidebar on the left, and switch to `Build Settings`. In build settings select the following filter: All, Combined.
Then type in the following in the search bar on the right hand side: `PRODUCT_BUNDLE_IDENTIFIER` and ve... |
952,904 | This is an excerpt from my text:
>
> A set $S \subset \mathbb{R}^n$ is said to be compact if for all sequences of points $\{x\_k\}$ such that $x\_k\in S$ for each $k$, there exists a subsequence $\{x\_{m(k)}\}$ of $\{x\_k\}$ and a point $x\in S$ such that $x\_{m(k)}\rightarrow x$.
>
>
> If $S\in \mathbb{R}^n$ is co... | 2014/09/30 | [
"https://math.stackexchange.com/questions/952904",
"https://math.stackexchange.com",
"https://math.stackexchange.com/users/86863/"
] | If $\|x\_k\| > k$ for all $k$ and $\{n\_k\}$ is an increasing sequence of natural numbers, then $\|x\_{n\_k}\| > n\_k \ge k$ for all $k$ too. In particular every subsequence is unbounded. Unbounded sequences cannot converge. | Hint: prove, or use if you have seen it before, that convergent sequences are bounded. Further hint for how to show this fact: consider the $\epsilon-N$ definition with $\epsilon = 1$. What is the largest value that can be attained by the sequence $\{x\_n\}$? |
952,904 | This is an excerpt from my text:
>
> A set $S \subset \mathbb{R}^n$ is said to be compact if for all sequences of points $\{x\_k\}$ such that $x\_k\in S$ for each $k$, there exists a subsequence $\{x\_{m(k)}\}$ of $\{x\_k\}$ and a point $x\in S$ such that $x\_{m(k)}\rightarrow x$.
>
>
> If $S\in \mathbb{R}^n$ is co... | 2014/09/30 | [
"https://math.stackexchange.com/questions/952904",
"https://math.stackexchange.com",
"https://math.stackexchange.com/users/86863/"
] | Note that convergent sequences need to be Cauchy. However, we can prove that unbounded sequences cannot be Cauchy:
Consider any $n \in \Bbb N$. Let $M = \|x\_n\|$. We may select a $k \in \Bbb N$ such that $k > M + 1$, which would mean that $\|x\_k\| > k > M$. We then note that
$$
\|x\_k - x\_n\| \geq \|x\_k\| - \|x\_n... | If $\|x\_k\| > k$ for all $k$ and $\{n\_k\}$ is an increasing sequence of natural numbers, then $\|x\_{n\_k}\| > n\_k \ge k$ for all $k$ too. In particular every subsequence is unbounded. Unbounded sequences cannot converge. |
952,904 | This is an excerpt from my text:
>
> A set $S \subset \mathbb{R}^n$ is said to be compact if for all sequences of points $\{x\_k\}$ such that $x\_k\in S$ for each $k$, there exists a subsequence $\{x\_{m(k)}\}$ of $\{x\_k\}$ and a point $x\in S$ such that $x\_{m(k)}\rightarrow x$.
>
>
> If $S\in \mathbb{R}^n$ is co... | 2014/09/30 | [
"https://math.stackexchange.com/questions/952904",
"https://math.stackexchange.com",
"https://math.stackexchange.com/users/86863/"
] | You should see that any convergent sequence, implies that it is bounded by definition.
If you take its contraposition, it tells that if a sequence is not bounded it is divergent. Hence, you have the result. | Hint: prove, or use if you have seen it before, that convergent sequences are bounded. Further hint for how to show this fact: consider the $\epsilon-N$ definition with $\epsilon = 1$. What is the largest value that can be attained by the sequence $\{x\_n\}$? |
952,904 | This is an excerpt from my text:
>
> A set $S \subset \mathbb{R}^n$ is said to be compact if for all sequences of points $\{x\_k\}$ such that $x\_k\in S$ for each $k$, there exists a subsequence $\{x\_{m(k)}\}$ of $\{x\_k\}$ and a point $x\in S$ such that $x\_{m(k)}\rightarrow x$.
>
>
> If $S\in \mathbb{R}^n$ is co... | 2014/09/30 | [
"https://math.stackexchange.com/questions/952904",
"https://math.stackexchange.com",
"https://math.stackexchange.com/users/86863/"
] | Note that convergent sequences need to be Cauchy. However, we can prove that unbounded sequences cannot be Cauchy:
Consider any $n \in \Bbb N$. Let $M = \|x\_n\|$. We may select a $k \in \Bbb N$ such that $k > M + 1$, which would mean that $\|x\_k\| > k > M$. We then note that
$$
\|x\_k - x\_n\| \geq \|x\_k\| - \|x\_n... | Hint: prove, or use if you have seen it before, that convergent sequences are bounded. Further hint for how to show this fact: consider the $\epsilon-N$ definition with $\epsilon = 1$. What is the largest value that can be attained by the sequence $\{x\_n\}$? |
952,904 | This is an excerpt from my text:
>
> A set $S \subset \mathbb{R}^n$ is said to be compact if for all sequences of points $\{x\_k\}$ such that $x\_k\in S$ for each $k$, there exists a subsequence $\{x\_{m(k)}\}$ of $\{x\_k\}$ and a point $x\in S$ such that $x\_{m(k)}\rightarrow x$.
>
>
> If $S\in \mathbb{R}^n$ is co... | 2014/09/30 | [
"https://math.stackexchange.com/questions/952904",
"https://math.stackexchange.com",
"https://math.stackexchange.com/users/86863/"
] | Note that convergent sequences need to be Cauchy. However, we can prove that unbounded sequences cannot be Cauchy:
Consider any $n \in \Bbb N$. Let $M = \|x\_n\|$. We may select a $k \in \Bbb N$ such that $k > M + 1$, which would mean that $\|x\_k\| > k > M$. We then note that
$$
\|x\_k - x\_n\| \geq \|x\_k\| - \|x\_n... | You should see that any convergent sequence, implies that it is bounded by definition.
If you take its contraposition, it tells that if a sequence is not bounded it is divergent. Hence, you have the result. |
380,622 | I'm fairly new to Zsh and Bash.
I wish to set up custom commands, for example `desktop` which would bring me to my desktop. Adding the following lines to the .bash\_profile file would work With Bash.
```
desktop() {
cd /Users/me/Desktop
}
```
It doesn't seem to work with Zsh.
Is it just a matter of where I pla... | 2012/01/20 | [
"https://superuser.com/questions/380622",
"https://superuser.com",
"https://superuser.com/users/101532/"
] | Edit the ~/.bashrc file.
Find the alias section and add the following
alias desktop='cd /path/to/desktop'
Doing so, you'll declare some aliases. You can make any custom alias you want !
(ie. i have alias ne='emacs -nw' and everytime i run
ne "some file"
it opens the file in shell based emacs.)
Whenever yo... | **Create a global z shell script executable**
It is better to create your own script file that is globally available and independent from the shell configuration.
1.Create a text file with the following content (name the file 'desktop'):
```
#!/usr/bin/env zsh
cd /Users/me/Desktop
#or any shell commands you want
``... |
380,622 | I'm fairly new to Zsh and Bash.
I wish to set up custom commands, for example `desktop` which would bring me to my desktop. Adding the following lines to the .bash\_profile file would work With Bash.
```
desktop() {
cd /Users/me/Desktop
}
```
It doesn't seem to work with Zsh.
Is it just a matter of where I pla... | 2012/01/20 | [
"https://superuser.com/questions/380622",
"https://superuser.com",
"https://superuser.com/users/101532/"
] | With zsh you should edit ~/.zshrc (create it if it doesn't exist -> example template <https://github.com/robbyrussell/oh-my-zsh/blob/master/templates/zshrc.zsh-template>)
so:
>
> nano ~/.zshrc
>
>
>
and add the alias you want, e.g.
>
> alias my\_project\_runserver='cd my\_project\_path; . venv/bin/activate; ./... | **Create a global z shell script executable**
It is better to create your own script file that is globally available and independent from the shell configuration.
1.Create a text file with the following content (name the file 'desktop'):
```
#!/usr/bin/env zsh
cd /Users/me/Desktop
#or any shell commands you want
``... |
5,215,004 | A couple of questions have had answers suggesting making use of mod\_auth\_tkt to allow Plone 4 ([Plone and Asp.Net Integration](https://stackoverflow.com/q/2893976/334719), [Use Plone's authentication mechanism to login to other sites.](https://stackoverflow.com/q/3540030/334719)) to authenticate other web application... | 2011/03/07 | [
"https://Stackoverflow.com/questions/5215004",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/334719/"
] | The documentation on using mod\_auth\_tkt is a man page distributed with the source.
In answer to your specific questions:
1. In /Plone/acl\_users/session. On the Manage secrets tab set a shared secret. (This is described in the documentation for setting up a shared secret with an IIS login form.) You should set the ... | It turns out that there seems to be a conflict with pas.plugins.sqlalchemy. I've been investigating PPS, and while it doesn't seem that there should be any crossover, the site I was testing had PPS installed. When I switched to a site without PPS, setting the "secret" and the mod\_auth\_tkt flag had the desired effect.... |
1,091,160 | SOLUTION: I have found [RJ45 connectors that are compatible with Cat7](https://www.amazon.fr/odedo-10-connecteurs-protection-antitorsion-Connecteur/dp/B01N24UXCL/ref=pd_cp_60_1?_encoding=UTF8&psc=1&refRID=PB16ZSN1BZQMD5SY1FCH) and can also be used with the standard cat 5/6 crimpers. These do not provide speeds higher t... | 2016/06/19 | [
"https://superuser.com/questions/1091160",
"https://superuser.com",
"https://superuser.com/users/588878/"
] | If you want to connect these cables to your D-Link switch's 10GBASE-T ports, then you need to put whatever connector your D-Link switch has, and your D-Link switch almost certainly has Cat 6a 8P8C ("RJ-45") connectors, because it's been designed to work with Cat 6 and Cat 6a cabling.
Your D-Link switch almost certainl... | Cat7 is pointless for Ethernet since it has not been ratified by TIA/EIA. Cat7 has been designed as a standard for Gigabit Ethernet over 100m of copper cabling The cable contains four twisted copper wire pairs, just like the earlier standards. Cat7 can be terminated either with 8P8C compatible GG45 electrical connector... |
1,091,160 | SOLUTION: I have found [RJ45 connectors that are compatible with Cat7](https://www.amazon.fr/odedo-10-connecteurs-protection-antitorsion-Connecteur/dp/B01N24UXCL/ref=pd_cp_60_1?_encoding=UTF8&psc=1&refRID=PB16ZSN1BZQMD5SY1FCH) and can also be used with the standard cat 5/6 crimpers. These do not provide speeds higher t... | 2016/06/19 | [
"https://superuser.com/questions/1091160",
"https://superuser.com",
"https://superuser.com/users/588878/"
] | If you want to connect these cables to your D-Link switch's 10GBASE-T ports, then you need to put whatever connector your D-Link switch has, and your D-Link switch almost certainly has Cat 6a 8P8C ("RJ-45") connectors, because it's been designed to work with Cat 6 and Cat 6a cabling.
Your D-Link switch almost certainl... | While an IEC vote of 18 countries chose TERA connectors as the official connector for Cat 7 (IEC 61076-3-104), my experience with TERA connectors has been that getting them connected and disconnected in patch panels is a pain and can sometimes hurt your fingers, and due to the way the connectors are so long, when plugg... |
1,091,160 | SOLUTION: I have found [RJ45 connectors that are compatible with Cat7](https://www.amazon.fr/odedo-10-connecteurs-protection-antitorsion-Connecteur/dp/B01N24UXCL/ref=pd_cp_60_1?_encoding=UTF8&psc=1&refRID=PB16ZSN1BZQMD5SY1FCH) and can also be used with the standard cat 5/6 crimpers. These do not provide speeds higher t... | 2016/06/19 | [
"https://superuser.com/questions/1091160",
"https://superuser.com",
"https://superuser.com/users/588878/"
] | While an IEC vote of 18 countries chose TERA connectors as the official connector for Cat 7 (IEC 61076-3-104), my experience with TERA connectors has been that getting them connected and disconnected in patch panels is a pain and can sometimes hurt your fingers, and due to the way the connectors are so long, when plugg... | Cat7 is pointless for Ethernet since it has not been ratified by TIA/EIA. Cat7 has been designed as a standard for Gigabit Ethernet over 100m of copper cabling The cable contains four twisted copper wire pairs, just like the earlier standards. Cat7 can be terminated either with 8P8C compatible GG45 electrical connector... |
12,759,189 | I want to write `2-7` in excel spreadsheet. when I write it, it is automatically converted in `2/7/2012`. Please let me know how can I overcome by this silly problem. | 2012/10/06 | [
"https://Stackoverflow.com/questions/12759189",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1358004/"
] | Start with a quote:
```
'2-7
```
And it should work. Alternatively you can enter a string:
```
="2-7"
``` | Format your column as text before you enter data. |
66,521 | I will be attending a conference to give a presentation
in approximately two months.
I would like to buy plane tickets to and from the conference location,
especially because I am living outside the US
and the conference is in the US,
so travel to the conference is not an easy thing.
Unfortunately, the conference orga... | 2016/04/08 | [
"https://academia.stackexchange.com/questions/66521",
"https://academia.stackexchange.com",
"https://academia.stackexchange.com/users/8802/"
] | First, I would ask whether you think you really should skip part of the conference---you're going such a long way, and presumably it's a community that you care about, so are you sure you want to abandon part of it?
If you really do want to skip, though, I would recommend a third path that I have often seen work: cont... | >
> Should I book my flight tickets now at "safe" times? Or should I book my flight tickets, leaving early on the last day, hoping that I don't get scheduled for the very last presentation slot?
>
>
>
There is certainly a risk to this, but in practice it seems like a small one. The question is, what is the worst t... |
66,521 | I will be attending a conference to give a presentation
in approximately two months.
I would like to buy plane tickets to and from the conference location,
especially because I am living outside the US
and the conference is in the US,
so travel to the conference is not an easy thing.
Unfortunately, the conference orga... | 2016/04/08 | [
"https://academia.stackexchange.com/questions/66521",
"https://academia.stackexchange.com",
"https://academia.stackexchange.com/users/8802/"
] | >
> Should I book my flight tickets now at "safe" times? Or should I book my flight tickets, leaving early on the last day, hoping that I don't get scheduled for the very last presentation slot?
>
>
>
There is certainly a risk to this, but in practice it seems like a small one. The question is, what is the worst t... | Send an e-mail to the organizers, and ask for your talk to be scheduled on Monday because you need to leave early on Tuesday. Apologize for the trouble, and cite personal reasons or whatever you feel appropriate to divulge about the motivation. |
66,521 | I will be attending a conference to give a presentation
in approximately two months.
I would like to buy plane tickets to and from the conference location,
especially because I am living outside the US
and the conference is in the US,
so travel to the conference is not an easy thing.
Unfortunately, the conference orga... | 2016/04/08 | [
"https://academia.stackexchange.com/questions/66521",
"https://academia.stackexchange.com",
"https://academia.stackexchange.com/users/8802/"
] | First, I would ask whether you think you really should skip part of the conference---you're going such a long way, and presumably it's a community that you care about, so are you sure you want to abandon part of it?
If you really do want to skip, though, I would recommend a third path that I have often seen work: cont... | Send an e-mail to the organizers, and ask for your talk to be scheduled on Monday because you need to leave early on Tuesday. Apologize for the trouble, and cite personal reasons or whatever you feel appropriate to divulge about the motivation. |
66,521 | I will be attending a conference to give a presentation
in approximately two months.
I would like to buy plane tickets to and from the conference location,
especially because I am living outside the US
and the conference is in the US,
so travel to the conference is not an easy thing.
Unfortunately, the conference orga... | 2016/04/08 | [
"https://academia.stackexchange.com/questions/66521",
"https://academia.stackexchange.com",
"https://academia.stackexchange.com/users/8802/"
] | First, I would ask whether you think you really should skip part of the conference---you're going such a long way, and presumably it's a community that you care about, so are you sure you want to abandon part of it?
If you really do want to skip, though, I would recommend a third path that I have often seen work: cont... | A plausible solution to your problem
------------------------------------
There is nothing wrong with contacting the conference organisers confirming your part of the schedule.
As your reason is perfectly legit, you may state the same details as you posted here to the organising committee. Even if the total schedule... |
66,521 | I will be attending a conference to give a presentation
in approximately two months.
I would like to buy plane tickets to and from the conference location,
especially because I am living outside the US
and the conference is in the US,
so travel to the conference is not an easy thing.
Unfortunately, the conference orga... | 2016/04/08 | [
"https://academia.stackexchange.com/questions/66521",
"https://academia.stackexchange.com",
"https://academia.stackexchange.com/users/8802/"
] | A plausible solution to your problem
------------------------------------
There is nothing wrong with contacting the conference organisers confirming your part of the schedule.
As your reason is perfectly legit, you may state the same details as you posted here to the organising committee. Even if the total schedule... | Send an e-mail to the organizers, and ask for your talk to be scheduled on Monday because you need to leave early on Tuesday. Apologize for the trouble, and cite personal reasons or whatever you feel appropriate to divulge about the motivation. |
60,716,735 | I have come across code in image processing where the following statement is used:
```
#args is a dictionary
if not args.get("video",False)
```
The get() method returns:
the value for the specified key if key is in dictionary.
None if the key is not found and value is not specified.
value if the key is not f... | 2020/03/17 | [
"https://Stackoverflow.com/questions/60716735",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/12648245/"
] | Yes, it's valid.
A `str` will return `True` as long as it's not `""`.
As per the documentation - [Truth Value Testing](https://docs.python.org/3/library/stdtypes.html#truth-value-testing):
>
> Any object can be tested for truth value, for use in an if or while condition or as operand of the Boolean operations below... | Yes, it is a valid statement.But if this **args.get("video")** return **None** the it will not execute if block |
60,716,735 | I have come across code in image processing where the following statement is used:
```
#args is a dictionary
if not args.get("video",False)
```
The get() method returns:
the value for the specified key if key is in dictionary.
None if the key is not found and value is not specified.
value if the key is not f... | 2020/03/17 | [
"https://Stackoverflow.com/questions/60716735",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/12648245/"
] | Yes, it's valid.
A `str` will return `True` as long as it's not `""`.
As per the documentation - [Truth Value Testing](https://docs.python.org/3/library/stdtypes.html#truth-value-testing):
>
> Any object can be tested for truth value, for use in an if or while condition or as operand of the Boolean operations below... | Classes in python can establish a `__bool__(self)` [method](https://docs.python.org/3/reference/datamodel.html#object.__bool__). If the function is defined, then when the member is accessed via `if`, the code in `__bool__` runs and decides whether to return `True` or `False`. So yes, the line is valid python. It will c... |
6,233 | Suppose you sample uniformly from the unit vectors in R^n. What are the distributions of the order statistics of the magnitudes of the components of the sampled vectors? That is, for 1 <= i <= n and x in [0,1], what is the probability that the i'th largest component of the vector (in absolute value) is less than or equ... | 2009/11/20 | [
"https://mathoverflow.net/questions/6233",
"https://mathoverflow.net",
"https://mathoverflow.net/users/1954/"
] | There has been some work in the physics community on extreme statistics (i.e. distribution of largest and smallest components) of random vectors. See, [link text](http://arxiv.org/abs/0708.0176/ "ArXiv:0708.0176") for example. The largest component is approximately distributed like a Gumbel random variable, while the s... | Your problem is closely related to order statistics for normal random variables, so you may find this paper useful: [Percentage Points and Modes of Order Statistics from the Normal Distribution](https://projecteuclid.org/journals/annals-of-mathematical-statistics/volume-32/issue-3/Percentage-Points-and-Modes-of-Order-S... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.