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 |
|---|---|---|---|---|---|
30,014,321 | Sorry if it is trivial or obvious, but I could not find the answer by googling it.
From where does the `size` value in `$_FILES['name']` array come from? Could you trust the value of it (`$_FILES['name']['size']`) or should you still check it using the `filesize()` function?
In other words, is it necessary to check a... | 2015/05/03 | [
"https://Stackoverflow.com/questions/30014321",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1600305/"
] | If the file is uploaded correctly and everything is fine, you **can** use the info provided by PHP superglobal `$_FILES`. Using `filesize()` adds small overhead since OS needs to inspect the file for the size. It's up to you, but checking PHP source on how it does all this indicates clearly that it correctly calculates... | PHP does seem to recalculate the size of the file after it is uploaded. Although the client does send a header specifying the `content-length` of the file, based on tests (with PHP 5.5) this header is simply ignored and, instead, the length is measured. Personally, I would always use `filesize()` to get the file size s... |
30,014,321 | Sorry if it is trivial or obvious, but I could not find the answer by googling it.
From where does the `size` value in `$_FILES['name']` array come from? Could you trust the value of it (`$_FILES['name']['size']`) or should you still check it using the `filesize()` function?
In other words, is it necessary to check a... | 2015/05/03 | [
"https://Stackoverflow.com/questions/30014321",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1600305/"
] | If the file is uploaded correctly and everything is fine, you **can** use the info provided by PHP superglobal `$_FILES`. Using `filesize()` adds small overhead since OS needs to inspect the file for the size. It's up to you, but checking PHP source on how it does all this indicates clearly that it correctly calculates... | You should rather check if the client-reported `$_FILES['file_name']['size']` equals the value given by `filesize()`. A difference may indicate an error during transmission of the uploaded file. |
60,914,655 | I am trying to implement a pipeline design pattern using Java 8 with the below article for my reference:
<https://stackoverflow.com/a/58713936/4770397>
Code:
```
public abstract class Pipeline{
Function<Integer, Integer> addOne = it -> {
System.out.println(it + 1);
return it + 1;
};
Function<In... | 2020/03/29 | [
"https://Stackoverflow.com/questions/60914655",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/4770397/"
] | You can just declare a regular abstract method that takes an `Integer` and returns an `Integer` and use the method reference syntax to refer to it:
```
public abstract Integer overridden(Integer input);
final Function<Integer, Integer> pipe = sourceInt
.andThen(timesTwo)
.andThen(this::overridden)
.andThe... | Fields aren't a subject to polymorphism - you need a method. You either write
1. a method that just returns a `Function<Integer, Integer>` instance
```
public abstract Function<Integer, Integer> getMyFunction();
```
2. a method that actually represents a `Function<Integer, Integer>`
```
public abstract Integer myFu... |
26,206,283 | I have created a `UITableView` which contains cells that display `Users`. Each cell is added within this method `-tableView:cellForRowAtIndexPath:`. And each cell has content linked to the specific user, like an `UIImageView` and `UILabel`.
The `UITableView` works properly as long as there is no more than 9-10 cells d... | 2014/10/05 | [
"https://Stackoverflow.com/questions/26206283",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1734802/"
] | I solved my problem by doing changing the cell identifier to be unique. I don't know if this actually is the way to do it, or if it is good practice, but when I did it solved my problem. So it would be good with some feedback to know if this will cause any other problems I'm might be missing?
```
NSString *identifier ... | Change your code like this:
```
- (UITableViewCell *)tableView:(UITableView *)tableview cellForRowAtIndexPath:(NSIndexPath *)indexPath {
static NSString *simpleTableIdentifier = @"SimpleTableCell";
UITableViewCell *cell = [tableview dequeueReusableCellWithIdentifier:simpleTableIdentifier];
if (cell == nil) ... |
26,206,283 | I have created a `UITableView` which contains cells that display `Users`. Each cell is added within this method `-tableView:cellForRowAtIndexPath:`. And each cell has content linked to the specific user, like an `UIImageView` and `UILabel`.
The `UITableView` works properly as long as there is no more than 9-10 cells d... | 2014/10/05 | [
"https://Stackoverflow.com/questions/26206283",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1734802/"
] | I solved my problem by doing changing the cell identifier to be unique. I don't know if this actually is the way to do it, or if it is good practice, but when I did it solved my problem. So it would be good with some feedback to know if this will cause any other problems I'm might be missing?
```
NSString *identifier ... | There are a couple problems with the code. One is that special care must be taken with asynch calls inside the cellForRowAtIndex: datasource method. Another is that the cells are reused, so adding subviews to them each time they come into view will pile subviews upon subview.
**Lets start with the asynch operation**. ... |
8,808 | Given two sets of $N$ uniformly random binary bitstrings of size $m$, such as $$(x\_0,x\_1,...,x\_m) \space \forall x\_i \in \{0,1\}.$$
One generated from a quantum device and the other generated by random uniform in Python. Knowing that quantum is really random and classical is pseudo-random, is there any statistica... | 2019/11/16 | [
"https://quantumcomputing.stackexchange.com/questions/8808",
"https://quantumcomputing.stackexchange.com",
"https://quantumcomputing.stackexchange.com/users/9070/"
] | Depends on what pseudorandom generator Python is using; if the pseudorandom generator is cryptographically secure, then it is computationally impossible to distinguish whether a bit string is generated by the pseudorandom generator or is truly random.
On the other hand, "truly random" quantum generator may fail classi... | In general, you cannot distinguish between the two. Both classical and quantum mechanics can produce arbitrary probability distributions, so there simply isn't enough information to distinguish between the two if that's all you have access to.
A setting in which observable differences can be observed is when locality ... |
8,808 | Given two sets of $N$ uniformly random binary bitstrings of size $m$, such as $$(x\_0,x\_1,...,x\_m) \space \forall x\_i \in \{0,1\}.$$
One generated from a quantum device and the other generated by random uniform in Python. Knowing that quantum is really random and classical is pseudo-random, is there any statistica... | 2019/11/16 | [
"https://quantumcomputing.stackexchange.com/questions/8808",
"https://quantumcomputing.stackexchange.com",
"https://quantumcomputing.stackexchange.com/users/9070/"
] | The idea behind pseudo-random number generators is to generate random numbers using the software, which is convenient and cost-effective. The pseudo-random number generators are one-way functions so if you know the seed you can predict their subsequent values but you cannot determine the sequence of values if you do no... | In general, you cannot distinguish between the two. Both classical and quantum mechanics can produce arbitrary probability distributions, so there simply isn't enough information to distinguish between the two if that's all you have access to.
A setting in which observable differences can be observed is when locality ... |
47,793,219 | I have a domain and subdomain based app (all in one Laravel project). I have set up CORS and CSRF so that communication works. I've also replaced the cookie domain under `session.php` and now the session is shared across domain and subdomain.
I have an issue when logging in however. When I log in (either from domain ... | 2017/12/13 | [
"https://Stackoverflow.com/questions/47793219",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/2841351/"
] | ORDER is a reserved word for mysql or for doctrine. That's why the insert wasn't working. Was forced to rename my class order by an other name. And now it's working ! | can you do this in your controller in other to get the reason why your form is not valid?
```
if ($form->isSubmitted() && $form->isValid()) {
$order->setUser($this->container->get('security.token_storage')->getToken()->getUser());
$em = $this->getDoctrine()->getManager();
$em->persist($order);... |
37,815,400 | I would like to trigger a service when a change of an ip address on a specific interface occurs. Is there a target for this or some other method I am not aware of to achieve this using systemd on Linux (Kernel 3.19)?
The service would be used to send a SIGNAL to a defined process. The Linux is running on an embedded s... | 2016/06/14 | [
"https://Stackoverflow.com/questions/37815400",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/3482407/"
] | In a `foreach` you can get both the `key` and the `value`. Take a look at the following pseudo-code
```
foreach ($array as $key => $value) {
echo $key.': '.$value.'<br />';
}
``` | You just need to format output as you want.
```
<?php
$json = file_get_contents("https://api.worldoftanks.eu/wot/account/tanks/?application_id=demo&account_id=521997295");
$json_tank = json_decode($json, TRUE);
foreach ($json_tank['521997295'] as $tank_id) {
echo 'Tank ID: '.$tank_id['tank_id'].' ';
}
?>
``` |
37,815,400 | I would like to trigger a service when a change of an ip address on a specific interface occurs. Is there a target for this or some other method I am not aware of to achieve this using systemd on Linux (Kernel 3.19)?
The service would be used to send a SIGNAL to a defined process. The Linux is running on an embedded s... | 2016/06/14 | [
"https://Stackoverflow.com/questions/37815400",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/3482407/"
] | ```
<?php
$json = file_get_contents("https://api.worldoftanks.eu/wot/account/tanks/?application_id=demo&account_id=521997295");
$json_tank = json_decode($json, TRUE);
echo('<pre>');
//print_r($json_tank);
foreach ($json_tank['data']['521997295'] as $tank_id) {
echo "Tank ID: " . $tank_id['tank_id'] . '<br/>';
}
``` | You just need to format output as you want.
```
<?php
$json = file_get_contents("https://api.worldoftanks.eu/wot/account/tanks/?application_id=demo&account_id=521997295");
$json_tank = json_decode($json, TRUE);
foreach ($json_tank['521997295'] as $tank_id) {
echo 'Tank ID: '.$tank_id['tank_id'].' ';
}
?>
``` |
39,123,430 | I am new to android application development.. I am trying to create new activity for button click inside a custom list view..(i.e) I want to add on Click event for buttons used in item of List view. How can I give on Click event for buttons in List Item. I am trying to use intent and bundles to pass data for two differ... | 2016/08/24 | [
"https://Stackoverflow.com/questions/39123430",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/4427574/"
] | I had the same problem and I came up with this solution:
1. Import a pretrained model using Keras (here [VGG16](https://keras.io/applications/))
2. Extract features per image
3. Do [kmeans](https://scikit-learn.org/stable/modules/generated/sklearn.cluster.KMeans.html)
4. Export by copying with cluster label
Here is m... | It is a too broad question.
Generally speaking you can use any [clustering mechanism](http://scikit-learn.org/stable/modules/classes.html#module-sklearn.cluster), e.g. a popular k-means. To prepare your data for clustering you need to convert your collection into an array X, where every row is one example (image) and ... |
50,863,608 | Is there a more efficent or standard way to get data from a database?
This way is comfortable but maybe it's not the most efficient
```
public ArrayList<ArrayList<String>> getUsers() throws SQLException {
ArrayList<ArrayList<String>> result = new ArrayList<ArrayList<String>>();
ArrayList<String> res;
... | 2018/06/14 | [
"https://Stackoverflow.com/questions/50863608",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/9941741/"
] | I solved it in the following way, adding ngZone:
```
import { Injectable, NgZone } from '@angular/core';
constructor( public snackBar: MatSnackBar, private zone: NgZone )
private handleError(error: Error) {
console.error(error);
this.zone.run(() => {
this.snackBar.open(error.message, 'CERRAR', {
duration... | Try this.
```
this.snackBar.open(message, 'Close', { duration: 3500, verticalPosition: 'top', panelClass: 'snack-error'});
``` |
50,863,608 | Is there a more efficent or standard way to get data from a database?
This way is comfortable but maybe it's not the most efficient
```
public ArrayList<ArrayList<String>> getUsers() throws SQLException {
ArrayList<ArrayList<String>> result = new ArrayList<ArrayList<String>>();
ArrayList<String> res;
... | 2018/06/14 | [
"https://Stackoverflow.com/questions/50863608",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/9941741/"
] | I solved it in the following way, adding ngZone:
```
import { Injectable, NgZone } from '@angular/core';
constructor( public snackBar: MatSnackBar, private zone: NgZone )
private handleError(error: Error) {
console.error(error);
this.zone.run(() => {
this.snackBar.open(error.message, 'CERRAR', {
duration... | You can use
```
private handleError(error: Error) {
console.error(error);
this.snackBar.open(error.message, this.action,
{ duration: 1000
verticalPosition: 'top',
horizontalPosition: 'center'
});
}
```
You can check the available configuration options in the documentation [here](https://m... |
54,087,731 | I have two fragments(suppose **FragmentA** and **FragmentB**) in an Android app that I switch between using a **BottomBar**.
I have a list of data that is being fetched using **Retrofit** that I am displaying using a **RecyclerView** in **FragmentA** and I have a **MapView** in **FragmentB**.
My problem is whenever I... | 2019/01/08 | [
"https://Stackoverflow.com/questions/54087731",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/10857206/"
] | [Architecture components](https://developer.android.com/topic/libraries/architecture/) are better suited to your scenario. Use [LiveData](https://developer.android.com/topic/libraries/architecture/livedata) and [ViewModel](https://developer.android.com/topic/libraries/architecture/viewmodel).
1. Inside the Activity, C... | In MyActivity,
**Declare both fragments objects above onCreate:**
```
private Fragment1 fragment1 = new Fragment1();
private Fragment2 fragment1 = new Fragment2();
```
Clicking on BottomBar, you can set click for both fragments to show and hide.
**Set fragment1 selected**
```
private void fragment1Selected() {
... |
54,087,731 | I have two fragments(suppose **FragmentA** and **FragmentB**) in an Android app that I switch between using a **BottomBar**.
I have a list of data that is being fetched using **Retrofit** that I am displaying using a **RecyclerView** in **FragmentA** and I have a **MapView** in **FragmentB**.
My problem is whenever I... | 2019/01/08 | [
"https://Stackoverflow.com/questions/54087731",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/10857206/"
] | In MyActivity,
**Declare both fragments objects above onCreate:**
```
private Fragment1 fragment1 = new Fragment1();
private Fragment2 fragment1 = new Fragment2();
```
Clicking on BottomBar, you can set click for both fragments to show and hide.
**Set fragment1 selected**
```
private void fragment1Selected() {
... | To build upon Rumit Patel's answer
I created a function to display the first fragment
```
private fun initialFragment(fragment: Fragment) {
val fragmentTransaction = supportFragmentManager.beginTransaction()
fragmentTransaction.replace(R.id.frameLayoutMA,fragment)
fragmentTransaction.commit()
}
```
Then... |
54,087,731 | I have two fragments(suppose **FragmentA** and **FragmentB**) in an Android app that I switch between using a **BottomBar**.
I have a list of data that is being fetched using **Retrofit** that I am displaying using a **RecyclerView** in **FragmentA** and I have a **MapView** in **FragmentB**.
My problem is whenever I... | 2019/01/08 | [
"https://Stackoverflow.com/questions/54087731",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/10857206/"
] | [Architecture components](https://developer.android.com/topic/libraries/architecture/) are better suited to your scenario. Use [LiveData](https://developer.android.com/topic/libraries/architecture/livedata) and [ViewModel](https://developer.android.com/topic/libraries/architecture/viewmodel).
1. Inside the Activity, C... | To build upon Rumit Patel's answer
I created a function to display the first fragment
```
private fun initialFragment(fragment: Fragment) {
val fragmentTransaction = supportFragmentManager.beginTransaction()
fragmentTransaction.replace(R.id.frameLayoutMA,fragment)
fragmentTransaction.commit()
}
```
Then... |
2,747,285 | HTML5's localStorage databases are usually size-limited — standard sizes are 5 or 10 MB per domain. Can these limits be circumvented by subdomains (e.g. example.com, hack1.example.com and hack2.example.com all have their own 5 MB databases)? And is there anything in the standard that specifies whether parent domains ca... | 2010/04/30 | [
"https://Stackoverflow.com/questions/2747285",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/50742/"
] | From <http://dev.w3.org/html5/webstorage/#disk-space>
>
> A mostly arbitrary limit of five megabytes per origin is recommended. Implementation feedback is welcome and will be used to update this suggestion in the future.
>
>
>
It also mentions that :
>
> User agents should guard against sites storing data under... | I missed this question when I asked "[Is 5MB the de facto limit for W3C Web Storage?](https://stackoverflow.com/questions/3232872/is-5mb-the-de-facto-limit-for-w3c-web-storage)", but I got basically the same answer. If you want more information, I did link to some browser specific limits in my question. |
2,747,285 | HTML5's localStorage databases are usually size-limited — standard sizes are 5 or 10 MB per domain. Can these limits be circumvented by subdomains (e.g. example.com, hack1.example.com and hack2.example.com all have their own 5 MB databases)? And is there anything in the standard that specifies whether parent domains ca... | 2010/04/30 | [
"https://Stackoverflow.com/questions/2747285",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/50742/"
] | From <http://dev.w3.org/html5/webstorage/#disk-space>
>
> A mostly arbitrary limit of five megabytes per origin is recommended. Implementation feedback is welcome and will be used to update this suggestion in the future.
>
>
>
It also mentions that :
>
> User agents should guard against sites storing data under... | Here's a pretty detailed test result with plenty of desktop and mobile browsers covered: <http://dev-test.nemikor.com/web-storage/support-test/>
Which confirms this bug report: <http://code.google.com/p/chromium/issues/detail?id=58985#c15>
You can rely on only 2.5MB, not 5MB, based on the string length that you can s... |
2,747,285 | HTML5's localStorage databases are usually size-limited — standard sizes are 5 or 10 MB per domain. Can these limits be circumvented by subdomains (e.g. example.com, hack1.example.com and hack2.example.com all have their own 5 MB databases)? And is there anything in the standard that specifies whether parent domains ca... | 2010/04/30 | [
"https://Stackoverflow.com/questions/2747285",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/50742/"
] | From <http://dev.w3.org/html5/webstorage/#disk-space>
>
> A mostly arbitrary limit of five megabytes per origin is recommended. Implementation feedback is welcome and will be used to update this suggestion in the future.
>
>
>
It also mentions that :
>
> User agents should guard against sites storing data under... | **A better solution is to use the [HTML5 IndexedDB for offline storage.]**[1](http://ido-green.appspot.com/WebSQL-IndexedDB-example/jqm_indexedDB.html)
It looks like the replacement for the old Web SQL (which seems to be misnamed b/c it's for *offline* storage) is: Indexed DB, which allows offline storage and is still... |
2,747,285 | HTML5's localStorage databases are usually size-limited — standard sizes are 5 or 10 MB per domain. Can these limits be circumvented by subdomains (e.g. example.com, hack1.example.com and hack2.example.com all have their own 5 MB databases)? And is there anything in the standard that specifies whether parent domains ca... | 2010/04/30 | [
"https://Stackoverflow.com/questions/2747285",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/50742/"
] | From <http://dev.w3.org/html5/webstorage/#disk-space>
>
> A mostly arbitrary limit of five megabytes per origin is recommended. Implementation feedback is welcome and will be used to update this suggestion in the future.
>
>
>
It also mentions that :
>
> User agents should guard against sites storing data under... | To get 50MB of storage space use code below
```
// 1. paste this line in your code
!function(){function e(t,o){return n?void(n.transaction("s").objectStore("s").get(t).onsuccess=function(e){var t=e.target.result&&e.target.result.v||null;o(t)}):void setTimeout(function(){e(t,o)},100)}var t=window.indexedDB||window.mozI... |
2,747,285 | HTML5's localStorage databases are usually size-limited — standard sizes are 5 or 10 MB per domain. Can these limits be circumvented by subdomains (e.g. example.com, hack1.example.com and hack2.example.com all have their own 5 MB databases)? And is there anything in the standard that specifies whether parent domains ca... | 2010/04/30 | [
"https://Stackoverflow.com/questions/2747285",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/50742/"
] | Here's a pretty detailed test result with plenty of desktop and mobile browsers covered: <http://dev-test.nemikor.com/web-storage/support-test/>
Which confirms this bug report: <http://code.google.com/p/chromium/issues/detail?id=58985#c15>
You can rely on only 2.5MB, not 5MB, based on the string length that you can s... | I missed this question when I asked "[Is 5MB the de facto limit for W3C Web Storage?](https://stackoverflow.com/questions/3232872/is-5mb-the-de-facto-limit-for-w3c-web-storage)", but I got basically the same answer. If you want more information, I did link to some browser specific limits in my question. |
2,747,285 | HTML5's localStorage databases are usually size-limited — standard sizes are 5 or 10 MB per domain. Can these limits be circumvented by subdomains (e.g. example.com, hack1.example.com and hack2.example.com all have their own 5 MB databases)? And is there anything in the standard that specifies whether parent domains ca... | 2010/04/30 | [
"https://Stackoverflow.com/questions/2747285",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/50742/"
] | I missed this question when I asked "[Is 5MB the de facto limit for W3C Web Storage?](https://stackoverflow.com/questions/3232872/is-5mb-the-de-facto-limit-for-w3c-web-storage)", but I got basically the same answer. If you want more information, I did link to some browser specific limits in my question. | To get 50MB of storage space use code below
```
// 1. paste this line in your code
!function(){function e(t,o){return n?void(n.transaction("s").objectStore("s").get(t).onsuccess=function(e){var t=e.target.result&&e.target.result.v||null;o(t)}):void setTimeout(function(){e(t,o)},100)}var t=window.indexedDB||window.mozI... |
2,747,285 | HTML5's localStorage databases are usually size-limited — standard sizes are 5 or 10 MB per domain. Can these limits be circumvented by subdomains (e.g. example.com, hack1.example.com and hack2.example.com all have their own 5 MB databases)? And is there anything in the standard that specifies whether parent domains ca... | 2010/04/30 | [
"https://Stackoverflow.com/questions/2747285",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/50742/"
] | Here's a pretty detailed test result with plenty of desktop and mobile browsers covered: <http://dev-test.nemikor.com/web-storage/support-test/>
Which confirms this bug report: <http://code.google.com/p/chromium/issues/detail?id=58985#c15>
You can rely on only 2.5MB, not 5MB, based on the string length that you can s... | **A better solution is to use the [HTML5 IndexedDB for offline storage.]**[1](http://ido-green.appspot.com/WebSQL-IndexedDB-example/jqm_indexedDB.html)
It looks like the replacement for the old Web SQL (which seems to be misnamed b/c it's for *offline* storage) is: Indexed DB, which allows offline storage and is still... |
2,747,285 | HTML5's localStorage databases are usually size-limited — standard sizes are 5 or 10 MB per domain. Can these limits be circumvented by subdomains (e.g. example.com, hack1.example.com and hack2.example.com all have their own 5 MB databases)? And is there anything in the standard that specifies whether parent domains ca... | 2010/04/30 | [
"https://Stackoverflow.com/questions/2747285",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/50742/"
] | Here's a pretty detailed test result with plenty of desktop and mobile browsers covered: <http://dev-test.nemikor.com/web-storage/support-test/>
Which confirms this bug report: <http://code.google.com/p/chromium/issues/detail?id=58985#c15>
You can rely on only 2.5MB, not 5MB, based on the string length that you can s... | To get 50MB of storage space use code below
```
// 1. paste this line in your code
!function(){function e(t,o){return n?void(n.transaction("s").objectStore("s").get(t).onsuccess=function(e){var t=e.target.result&&e.target.result.v||null;o(t)}):void setTimeout(function(){e(t,o)},100)}var t=window.indexedDB||window.mozI... |
2,747,285 | HTML5's localStorage databases are usually size-limited — standard sizes are 5 or 10 MB per domain. Can these limits be circumvented by subdomains (e.g. example.com, hack1.example.com and hack2.example.com all have their own 5 MB databases)? And is there anything in the standard that specifies whether parent domains ca... | 2010/04/30 | [
"https://Stackoverflow.com/questions/2747285",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/50742/"
] | **A better solution is to use the [HTML5 IndexedDB for offline storage.]**[1](http://ido-green.appspot.com/WebSQL-IndexedDB-example/jqm_indexedDB.html)
It looks like the replacement for the old Web SQL (which seems to be misnamed b/c it's for *offline* storage) is: Indexed DB, which allows offline storage and is still... | To get 50MB of storage space use code below
```
// 1. paste this line in your code
!function(){function e(t,o){return n?void(n.transaction("s").objectStore("s").get(t).onsuccess=function(e){var t=e.target.result&&e.target.result.v||null;o(t)}):void setTimeout(function(){e(t,o)},100)}var t=window.indexedDB||window.mozI... |
585,528 | How do I change gitlab's default port 80 to a custom port number?
There are two approaches I've tried:
**Set the port in /etc/gitlab/gitlab.rb**
```
external_port "8888"
```
Then run reconfigure:
```
gitlab-ctl reconfigure
```
**Set port in /var/opt/gitlab/gitlab-rails/etc/gitlab.yml**
```
production: &base
... | 2014/03/31 | [
"https://serverfault.com/questions/585528",
"https://serverfault.com",
"https://serverfault.com/users/207451/"
] | Chad Carbert answer still applies but just want to add extra for version 7.0.0.
Open "/etc/gitlab/gitlab.rb" in your text editor where currently I have **external\_url** `http://127.0.0.1/` or similar to that. I may need to change external\_url with dns including port number (eg. '<http://gitlab.com.local:81/>') then... | In Amazon Linux using the Centos 6 package I had to configure the file:
```
/opt/gitlab/embedded/cookbooks/gitlab/attributes/default.rb
```
and then do the
```
gitlab-ctl reconfigure
```
command to finally get the port change. |
585,528 | How do I change gitlab's default port 80 to a custom port number?
There are two approaches I've tried:
**Set the port in /etc/gitlab/gitlab.rb**
```
external_port "8888"
```
Then run reconfigure:
```
gitlab-ctl reconfigure
```
**Set port in /var/opt/gitlab/gitlab-rails/etc/gitlab.yml**
```
production: &base
... | 2014/03/31 | [
"https://serverfault.com/questions/585528",
"https://serverfault.com",
"https://serverfault.com/users/207451/"
] | I'm also having this same issue. I don't have my `gitlab.rb` in the same location as you, but do have it installed via dpkg at the `/opt` path you mentioned.
If you've installed it via the package, all self-contained in that `/opt` directory, then you might find changing the port at :
* `/opt/gitlab/embedded/conf/ngi... | I'm using Gitlab 7.5.3 omnibus 5.2.1 ci on Debian Squeeze.
To change the default port for nginx add the \_gitlab\_port\_ to */etc/gitlab/gitlab.rb*:
My **/etc/gitlab/gitlab.rb**:
```
external_url = 'gitlab.example.org'
gitlab_rails['gitlab_port'] = 12345
```
After changing the port, you have to call `gitlab-ctl rec... |
585,528 | How do I change gitlab's default port 80 to a custom port number?
There are two approaches I've tried:
**Set the port in /etc/gitlab/gitlab.rb**
```
external_port "8888"
```
Then run reconfigure:
```
gitlab-ctl reconfigure
```
**Set port in /var/opt/gitlab/gitlab-rails/etc/gitlab.yml**
```
production: &base
... | 2014/03/31 | [
"https://serverfault.com/questions/585528",
"https://serverfault.com",
"https://serverfault.com/users/207451/"
] | Chad Carbert answer still applies but just want to add extra for version 7.0.0.
Open "/etc/gitlab/gitlab.rb" in your text editor where currently I have **external\_url** `http://127.0.0.1/` or similar to that. I may need to change external\_url with dns including port number (eg. '<http://gitlab.com.local:81/>') then... | With Ubuntu 17.04 and gitlab-ce 9.2.2, on local network
These steps worked for me:
1. Edit `gitlab.rb` file.
`sudo nano /etc/gitlab/gitlab.rb`
2. Add your optional listen port to end of file.
`nginx['listen_port'] = 8181`
3. Stop apache if needed, and reconfigure gitlab
`sudo service apache2 stop
sudo gitlab-ctl... |
585,528 | How do I change gitlab's default port 80 to a custom port number?
There are two approaches I've tried:
**Set the port in /etc/gitlab/gitlab.rb**
```
external_port "8888"
```
Then run reconfigure:
```
gitlab-ctl reconfigure
```
**Set port in /var/opt/gitlab/gitlab-rails/etc/gitlab.yml**
```
production: &base
... | 2014/03/31 | [
"https://serverfault.com/questions/585528",
"https://serverfault.com",
"https://serverfault.com/users/207451/"
] | My main issue was that new users were not getting the custom port number in the emails that the system sent. Otherwise, manually writing the custom port in the address bar led users to the Gitlab install.
I did [this install](https://gitlab.com/gitlab-org/gitlab-ce/blob/7-4-stable/doc/install/installation.md) on **Ubu... | You must change the **external\_url** value on Gitlab configuration file.
Follow these steps:
1. Edit config file by run this command
>
>
> ```
> sudo nano /etc/gitlab/gitlab.rb
>
> ```
>
>
2. Find the **external\_url** and change to your URL and port
[ on **Ubu... |
585,528 | How do I change gitlab's default port 80 to a custom port number?
There are two approaches I've tried:
**Set the port in /etc/gitlab/gitlab.rb**
```
external_port "8888"
```
Then run reconfigure:
```
gitlab-ctl reconfigure
```
**Set port in /var/opt/gitlab/gitlab-rails/etc/gitlab.yml**
```
production: &base
... | 2014/03/31 | [
"https://serverfault.com/questions/585528",
"https://serverfault.com",
"https://serverfault.com/users/207451/"
] | Very simple way to change defaults port number
```
gitlab-ctl stop
```
Edit the file in centos or linux: `/var/opt/gitlab/nginx/conf/gitlab-http.conf`
Change `listen *:80;` to what you want Ex:- `90`
Then
Don't run the command: `gitlab-ctl reconfigure`
If `gitlab-ctl reconfigure` it configured gitlab by defa... | My main issue was that new users were not getting the custom port number in the emails that the system sent. Otherwise, manually writing the custom port in the address bar led users to the Gitlab install.
I did [this install](https://gitlab.com/gitlab-org/gitlab-ce/blob/7-4-stable/doc/install/installation.md) on **Ubu... |
585,528 | How do I change gitlab's default port 80 to a custom port number?
There are two approaches I've tried:
**Set the port in /etc/gitlab/gitlab.rb**
```
external_port "8888"
```
Then run reconfigure:
```
gitlab-ctl reconfigure
```
**Set port in /var/opt/gitlab/gitlab-rails/etc/gitlab.yml**
```
production: &base
... | 2014/03/31 | [
"https://serverfault.com/questions/585528",
"https://serverfault.com",
"https://serverfault.com/users/207451/"
] | Chad Carbert answer still applies but just want to add extra for version 7.0.0.
Open "/etc/gitlab/gitlab.rb" in your text editor where currently I have **external\_url** `http://127.0.0.1/` or similar to that. I may need to change external\_url with dns including port number (eg. '<http://gitlab.com.local:81/>') then... | You must change the **external\_url** value on Gitlab configuration file.
Follow these steps:
1. Edit config file by run this command
>
>
> ```
> sudo nano /etc/gitlab/gitlab.rb
>
> ```
>
>
2. Find the **external\_url** and change to your URL and port
[ then... | Very simple way to change defaults port number
```
gitlab-ctl stop
```
Edit the file in centos or linux: `/var/opt/gitlab/nginx/conf/gitlab-http.conf`
Change `listen *:80;` to what you want Ex:- `90`
Then
Don't run the command: `gitlab-ctl reconfigure`
If `gitlab-ctl reconfigure` it configured gitlab by defa... |
585,528 | How do I change gitlab's default port 80 to a custom port number?
There are two approaches I've tried:
**Set the port in /etc/gitlab/gitlab.rb**
```
external_port "8888"
```
Then run reconfigure:
```
gitlab-ctl reconfigure
```
**Set port in /var/opt/gitlab/gitlab-rails/etc/gitlab.yml**
```
production: &base
... | 2014/03/31 | [
"https://serverfault.com/questions/585528",
"https://serverfault.com",
"https://serverfault.com/users/207451/"
] | With Ubuntu 17.04 and gitlab-ce 9.2.2, on local network
These steps worked for me:
1. Edit `gitlab.rb` file.
`sudo nano /etc/gitlab/gitlab.rb`
2. Add your optional listen port to end of file.
`nginx['listen_port'] = 8181`
3. Stop apache if needed, and reconfigure gitlab
`sudo service apache2 stop
sudo gitlab-ctl... | I'm using Gitlab 7.5.3 omnibus 5.2.1 ci on Debian Squeeze.
To change the default port for nginx add the \_gitlab\_port\_ to */etc/gitlab/gitlab.rb*:
My **/etc/gitlab/gitlab.rb**:
```
external_url = 'gitlab.example.org'
gitlab_rails['gitlab_port'] = 12345
```
After changing the port, you have to call `gitlab-ctl rec... |
4,594,351 | I want to log in my website by using google account, now i can use google account to log in(by OpenID), but i don't know how to get user account and information in google?
Just like below link(which is provided by google)
<http://googlecodesamples.com/hybrid/>
This link can log in by user's google account, and list a... | 2011/01/04 | [
"https://Stackoverflow.com/questions/4594351",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/419284/"
] | I suggest you read this article from Apple carefully, especially the **Completing a Finite Length Task in the Background** section.
<http://developer.apple.com/library/ios/#documentation/iphone/conceptual/iphoneosprogrammingguide/BackgroundExecution/BackgroundExecution.html>
Something to clarify:
* Once your app is ... | Create a new project in Xcode and you will see there are bunch of new methods auto generated in app delegate file. like applicationDidEnterBackground, applicationWillEnterForeground etc.
read the description you have to call your thread to upload data on server here. |
4,594,351 | I want to log in my website by using google account, now i can use google account to log in(by OpenID), but i don't know how to get user account and information in google?
Just like below link(which is provided by google)
<http://googlecodesamples.com/hybrid/>
This link can log in by user's google account, and list a... | 2011/01/04 | [
"https://Stackoverflow.com/questions/4594351",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/419284/"
] | There is a trick that I think flayvr is using.
If you download and use the app, you will see that they require you to enable your location.
And why is that?
because they want like you to do something in the background even when the app is terminated (they creating an album out of your newly captured photos), and how ... | Create a new project in Xcode and you will see there are bunch of new methods auto generated in app delegate file. like applicationDidEnterBackground, applicationWillEnterForeground etc.
read the description you have to call your thread to upload data on server here. |
4,594,351 | I want to log in my website by using google account, now i can use google account to log in(by OpenID), but i don't know how to get user account and information in google?
Just like below link(which is provided by google)
<http://googlecodesamples.com/hybrid/>
This link can log in by user's google account, and list a... | 2011/01/04 | [
"https://Stackoverflow.com/questions/4594351",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/419284/"
] | Until now you can do that on iOS7 with **Background Fetch**.
Take a look at this [article](http://www.appcoda.com/ios7-background-fetch-programming/).
However **you only have up to 30s** to get the task done.
According to the article above, there's also another solution called **Background transfer service**.
>
> If... | Create a new project in Xcode and you will see there are bunch of new methods auto generated in app delegate file. like applicationDidEnterBackground, applicationWillEnterForeground etc.
read the description you have to call your thread to upload data on server here. |
4,594,351 | I want to log in my website by using google account, now i can use google account to log in(by OpenID), but i don't know how to get user account and information in google?
Just like below link(which is provided by google)
<http://googlecodesamples.com/hybrid/>
This link can log in by user's google account, and list a... | 2011/01/04 | [
"https://Stackoverflow.com/questions/4594351",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/419284/"
] | I suggest you read this article from Apple carefully, especially the **Completing a Finite Length Task in the Background** section.
<http://developer.apple.com/library/ios/#documentation/iphone/conceptual/iphoneosprogrammingguide/BackgroundExecution/BackgroundExecution.html>
Something to clarify:
* Once your app is ... | There is a trick that I think flayvr is using.
If you download and use the app, you will see that they require you to enable your location.
And why is that?
because they want like you to do something in the background even when the app is terminated (they creating an album out of your newly captured photos), and how ... |
4,594,351 | I want to log in my website by using google account, now i can use google account to log in(by OpenID), but i don't know how to get user account and information in google?
Just like below link(which is provided by google)
<http://googlecodesamples.com/hybrid/>
This link can log in by user's google account, and list a... | 2011/01/04 | [
"https://Stackoverflow.com/questions/4594351",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/419284/"
] | I suggest you read this article from Apple carefully, especially the **Completing a Finite Length Task in the Background** section.
<http://developer.apple.com/library/ios/#documentation/iphone/conceptual/iphoneosprogrammingguide/BackgroundExecution/BackgroundExecution.html>
Something to clarify:
* Once your app is ... | Until now you can do that on iOS7 with **Background Fetch**.
Take a look at this [article](http://www.appcoda.com/ios7-background-fetch-programming/).
However **you only have up to 30s** to get the task done.
According to the article above, there's also another solution called **Background transfer service**.
>
> If... |
29,225,824 | I am using input type file for launching the camera in iOS . The following line of code I am using :
```
<input type="file" name="select a Picture"/>
```
When I press the button it shows two option i.e. 1) Take a Picture 2. Choose from the gallery
If I select option Choose from the gallery then it launches the nat... | 2015/03/24 | [
"https://Stackoverflow.com/questions/29225824",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1352747/"
] | In my case, adding a name="" attribute fixed the problem. I had:
```
<input id="uploadPhotoInput" type="file" capture="camera" accept="image/*">
```
and it crashed every time. Changing it to:
```
<input id="uploadPhotoInput" name="uploadPhotoInput" type="file" capture="camera" accept="image/*">
```
seems to have ... | Try the following:
```
<input type="file" accept="image/*" capture="camera">
```
Also remove any onchange="xxxxxxx" from your input tag (if you have any) since for some reason is causing problems in iOS8. |
58,349,955 | I have a TextField in SwiftUI that needs to use a different keyboard depending on the value of a @State variable determined by a SegementedControl() picker.
How can I dismiss the keyboard (like send an endEditing event) when the user taps a different segment? I need to do this because I want to change the keyboard typ... | 2019/10/12 | [
"https://Stackoverflow.com/questions/58349955",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/3445098/"
] | Attach a custom `Binding` to the `Picker` that calls `endEditing()` whenever it is set:
```
Section(header: Text("Search Type")) {
Picker("", selection: Binding(get: {
self.type
}, set: { (res) in
self.type = res
UIApplication.shared.endEditing()
})) {
Text("By Name").tag("n... | Update since iOS 13 / iPadOS 13 was released.
---------------------------------------------
Since there is now support for multiple windows in one app you need to loop through the UIWindows and end editing one-by-one.
```
UIApplication.shared.windows.forEach { $0.endEditing(false) }
``` |
58,349,955 | I have a TextField in SwiftUI that needs to use a different keyboard depending on the value of a @State variable determined by a SegementedControl() picker.
How can I dismiss the keyboard (like send an endEditing event) when the user taps a different segment? I need to do this because I want to change the keyboard typ... | 2019/10/12 | [
"https://Stackoverflow.com/questions/58349955",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/3445098/"
] | Attach a custom `Binding` to the `Picker` that calls `endEditing()` whenever it is set:
```
Section(header: Text("Search Type")) {
Picker("", selection: Binding(get: {
self.type
}, set: { (res) in
self.type = res
UIApplication.shared.endEditing()
})) {
Text("By Name").tag("n... | **SwiftUI 2.0**
Now it can be done in more elegant way, with `.onChange` (actually it can be attached to any view, but at `TextField` looks appropriate, by intention)
```
TextField("Placeholder", text: $searchValue)
.keyboardType(self.type == "name" ? UIKeyboardType.alphabet : UIKeyboardType.numberPad)
.onCha... |
58,349,955 | I have a TextField in SwiftUI that needs to use a different keyboard depending on the value of a @State variable determined by a SegementedControl() picker.
How can I dismiss the keyboard (like send an endEditing event) when the user taps a different segment? I need to do this because I want to change the keyboard typ... | 2019/10/12 | [
"https://Stackoverflow.com/questions/58349955",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/3445098/"
] | Attach a custom `Binding` to the `Picker` that calls `endEditing()` whenever it is set:
```
Section(header: Text("Search Type")) {
Picker("", selection: Binding(get: {
self.type
}, set: { (res) in
self.type = res
UIApplication.shared.endEditing()
})) {
Text("By Name").tag("n... | For SwiftUI 3 use FocusState and .focused(…) |
58,349,955 | I have a TextField in SwiftUI that needs to use a different keyboard depending on the value of a @State variable determined by a SegementedControl() picker.
How can I dismiss the keyboard (like send an endEditing event) when the user taps a different segment? I need to do this because I want to change the keyboard typ... | 2019/10/12 | [
"https://Stackoverflow.com/questions/58349955",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/3445098/"
] | Update since iOS 13 / iPadOS 13 was released.
---------------------------------------------
Since there is now support for multiple windows in one app you need to loop through the UIWindows and end editing one-by-one.
```
UIApplication.shared.windows.forEach { $0.endEditing(false) }
``` | **SwiftUI 2.0**
Now it can be done in more elegant way, with `.onChange` (actually it can be attached to any view, but at `TextField` looks appropriate, by intention)
```
TextField("Placeholder", text: $searchValue)
.keyboardType(self.type == "name" ? UIKeyboardType.alphabet : UIKeyboardType.numberPad)
.onCha... |
58,349,955 | I have a TextField in SwiftUI that needs to use a different keyboard depending on the value of a @State variable determined by a SegementedControl() picker.
How can I dismiss the keyboard (like send an endEditing event) when the user taps a different segment? I need to do this because I want to change the keyboard typ... | 2019/10/12 | [
"https://Stackoverflow.com/questions/58349955",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/3445098/"
] | Update since iOS 13 / iPadOS 13 was released.
---------------------------------------------
Since there is now support for multiple windows in one app you need to loop through the UIWindows and end editing one-by-one.
```
UIApplication.shared.windows.forEach { $0.endEditing(false) }
``` | For SwiftUI 3 use FocusState and .focused(…) |
58,349,955 | I have a TextField in SwiftUI that needs to use a different keyboard depending on the value of a @State variable determined by a SegementedControl() picker.
How can I dismiss the keyboard (like send an endEditing event) when the user taps a different segment? I need to do this because I want to change the keyboard typ... | 2019/10/12 | [
"https://Stackoverflow.com/questions/58349955",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/3445098/"
] | **SwiftUI 2.0**
Now it can be done in more elegant way, with `.onChange` (actually it can be attached to any view, but at `TextField` looks appropriate, by intention)
```
TextField("Placeholder", text: $searchValue)
.keyboardType(self.type == "name" ? UIKeyboardType.alphabet : UIKeyboardType.numberPad)
.onCha... | For SwiftUI 3 use FocusState and .focused(…) |
5,034,755 | I am setting up a repository, and for some reason when I create a repository, the directory does not change to displaying the common SVN checkbox.
Are there any common well-known mistakes that cause that?
I am using Windows7
Thanks,
Alex | 2011/02/17 | [
"https://Stackoverflow.com/questions/5034755",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/478573/"
] | If the repository is located on a network drive, no overlays will be shown.
**EDIT 08. August 2016**
As for TortoiseSVN 1.9.4 on Win10
Right click a folder > TortoiseSVN > Settings > Icon Overlays > Drive Types > mark "Network drives" | Simply renaming my file(From "DEV" to "DEV\_") fixed this for me and this was after restarting my computer and running "Cleanup" |
5,034,755 | I am setting up a repository, and for some reason when I create a repository, the directory does not change to displaying the common SVN checkbox.
Are there any common well-known mistakes that cause that?
I am using Windows7
Thanks,
Alex | 2011/02/17 | [
"https://Stackoverflow.com/questions/5034755",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/478573/"
] | Right click on a folder -> TortoiseSVN -> Settings -> Icon overlays -> Status Cache.
Select Shell. | Simply renaming my file(From "DEV" to "DEV\_") fixed this for me and this was after restarting my computer and running "Cleanup" |
5,034,755 | I am setting up a repository, and for some reason when I create a repository, the directory does not change to displaying the common SVN checkbox.
Are there any common well-known mistakes that cause that?
I am using Windows7
Thanks,
Alex | 2011/02/17 | [
"https://Stackoverflow.com/questions/5034755",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/478573/"
] | Right click on a folder -> TortoiseSVN -> Settings -> Icon overlays -> Exclude paths:
If there are green markers in the checked out subfolders you might have checked out into a subfolder of the folder you are looking at.
There is also some caching issues with TortoiseSVN. TortoiseSVN -> Cleanup usually fixes those. | If the repository is located on a network drive, no overlays will be shown.
**EDIT 08. August 2016**
As for TortoiseSVN 1.9.4 on Win10
Right click a folder > TortoiseSVN > Settings > Icon Overlays > Drive Types > mark "Network drives" |
5,034,755 | I am setting up a repository, and for some reason when I create a repository, the directory does not change to displaying the common SVN checkbox.
Are there any common well-known mistakes that cause that?
I am using Windows7
Thanks,
Alex | 2011/02/17 | [
"https://Stackoverflow.com/questions/5034755",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/478573/"
] | If the repository is located on a network drive, no overlays will be shown.
**EDIT 08. August 2016**
As for TortoiseSVN 1.9.4 on Win10
Right click a folder > TortoiseSVN > Settings > Icon Overlays > Drive Types > mark "Network drives" | In Windows:
* Run regedit.exe in start/windows.
* open the path, Computer\HKEY\_LOCAL\_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\ShellIconOverlayIdentifiers
* Delete/Export all OneDrive entries.
* Restart the machine.
Hope it helps. |
5,034,755 | I am setting up a repository, and for some reason when I create a repository, the directory does not change to displaying the common SVN checkbox.
Are there any common well-known mistakes that cause that?
I am using Windows7
Thanks,
Alex | 2011/02/17 | [
"https://Stackoverflow.com/questions/5034755",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/478573/"
] | Right click on a folder -> TortoiseSVN -> Settings -> Icon overlays -> Exclude paths:
If there are green markers in the checked out subfolders you might have checked out into a subfolder of the folder you are looking at.
There is also some caching issues with TortoiseSVN. TortoiseSVN -> Cleanup usually fixes those. | Simply renaming my file(From "DEV" to "DEV\_") fixed this for me and this was after restarting my computer and running "Cleanup" |
5,034,755 | I am setting up a repository, and for some reason when I create a repository, the directory does not change to displaying the common SVN checkbox.
Are there any common well-known mistakes that cause that?
I am using Windows7
Thanks,
Alex | 2011/02/17 | [
"https://Stackoverflow.com/questions/5034755",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/478573/"
] | Not sure if that's exactly your problem, but there is a common problem with the TortoiseSVN overlay icons not showing up in Windows 7:
* [TortoiseSVN icons not showing up under Windows 7](https://stackoverflow.com/questions/1057734/tortoisesvn-icons-not-showing-up-under-windows-7) | Right click on a folder -> TortoiseSVN -> Settings -> Icon overlays -> Status Cache.
Select Shell. |
5,034,755 | I am setting up a repository, and for some reason when I create a repository, the directory does not change to displaying the common SVN checkbox.
Are there any common well-known mistakes that cause that?
I am using Windows7
Thanks,
Alex | 2011/02/17 | [
"https://Stackoverflow.com/questions/5034755",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/478573/"
] | Not sure if that's exactly your problem, but there is a common problem with the TortoiseSVN overlay icons not showing up in Windows 7:
* [TortoiseSVN icons not showing up under Windows 7](https://stackoverflow.com/questions/1057734/tortoisesvn-icons-not-showing-up-under-windows-7) | If the repository is located on a network drive, no overlays will be shown.
**EDIT 08. August 2016**
As for TortoiseSVN 1.9.4 on Win10
Right click a folder > TortoiseSVN > Settings > Icon Overlays > Drive Types > mark "Network drives" |
5,034,755 | I am setting up a repository, and for some reason when I create a repository, the directory does not change to displaying the common SVN checkbox.
Are there any common well-known mistakes that cause that?
I am using Windows7
Thanks,
Alex | 2011/02/17 | [
"https://Stackoverflow.com/questions/5034755",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/478573/"
] | Right click on a folder -> TortoiseSVN -> Settings -> Icon overlays -> Status Cache.
Select Shell. | In Windows:
* Run regedit.exe in start/windows.
* open the path, Computer\HKEY\_LOCAL\_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\ShellIconOverlayIdentifiers
* Delete/Export all OneDrive entries.
* Restart the machine.
Hope it helps. |
5,034,755 | I am setting up a repository, and for some reason when I create a repository, the directory does not change to displaying the common SVN checkbox.
Are there any common well-known mistakes that cause that?
I am using Windows7
Thanks,
Alex | 2011/02/17 | [
"https://Stackoverflow.com/questions/5034755",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/478573/"
] | Not sure if that's exactly your problem, but there is a common problem with the TortoiseSVN overlay icons not showing up in Windows 7:
* [TortoiseSVN icons not showing up under Windows 7](https://stackoverflow.com/questions/1057734/tortoisesvn-icons-not-showing-up-under-windows-7) | Simply renaming my file(From "DEV" to "DEV\_") fixed this for me and this was after restarting my computer and running "Cleanup" |
5,034,755 | I am setting up a repository, and for some reason when I create a repository, the directory does not change to displaying the common SVN checkbox.
Are there any common well-known mistakes that cause that?
I am using Windows7
Thanks,
Alex | 2011/02/17 | [
"https://Stackoverflow.com/questions/5034755",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/478573/"
] | Right click on a folder -> TortoiseSVN -> Settings -> Icon overlays -> Exclude paths:
If there are green markers in the checked out subfolders you might have checked out into a subfolder of the folder you are looking at.
There is also some caching issues with TortoiseSVN. TortoiseSVN -> Cleanup usually fixes those. | Right click on a folder -> TortoiseSVN -> Settings -> Icon overlays -> Status Cache.
Select Shell. |
54,463,222 | I need to split an input and put it in to a list according to a list of keywords or delimiters that I have created.
I've tried simply splitting the string by spaces and then processing it afterwards, but the problem is that some of my keywords have spaces in them so they are split apart which causes undesired behavio... | 2019/01/31 | [
"https://Stackoverflow.com/questions/54463222",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/10588701/"
] | First of all, @Curious\_mind is right about forcing output of json\_decode as an associative array with second parameter to true. Then I think you should get what you want by echoing directly $key and $value, like so:
```
while (!feof($resultFile)) {
$line = fgets ($resultFile);
echo $line;
$someArray = js... | How about that `$someArray = json_decode($line,true);`? because without the 2nd parameter `true`, `json_decode()` will return results as `object` and for that case you've to use `$value->key` while accessing keys not `$value['key']`
```
while (!feof($resultFile)) {
$line = fgets ($resultFile);
echo $line;
... |
54,463,222 | I need to split an input and put it in to a list according to a list of keywords or delimiters that I have created.
I've tried simply splitting the string by spaces and then processing it afterwards, but the problem is that some of my keywords have spaces in them so they are split apart which causes undesired behavio... | 2019/01/31 | [
"https://Stackoverflow.com/questions/54463222",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/10588701/"
] | First of all, @Curious\_mind is right about forcing output of json\_decode as an associative array with second parameter to true. Then I think you should get what you want by echoing directly $key and $value, like so:
```
while (!feof($resultFile)) {
$line = fgets ($resultFile);
echo $line;
$someArray = js... | First I agree with Dexter0015's answer. It should be marked as the correct answer as it will deal with a wide variety of results.
I just thought I'd throw my two cents in for a shorter and very problem specific to the user's issue.
```
/* Load up a record that is json encoded */
$json = '{"key":"XYZ-6680","status":"... |
108,045 | **Problem**
Current is the amount of charge that is flowing through a component per unit of time.
For a given voltage, Ohm's law tells us that if we increase the resistance, then the current must decrease.
But *what's actually happening to decrease the current?*
**My reasoning so far - is it correct?**
More resi... | 2014/04/12 | [
"https://physics.stackexchange.com/questions/108045",
"https://physics.stackexchange.com",
"https://physics.stackexchange.com/users/29532/"
] | The answer depends on the circumstances: how do you change the resistance? Both the drift velocity and the number of available charge carriers can be changed.
In a basic [Drude model](http://en.wikipedia.org/wiki/Drude_model) for electrical transport both, $n$, the charge carrier density and $\tau$, the time between c... | Your understanding is correct. From $V=IR$ if voltage stays the same while resistance is **increased**, the current should be **decreased**.
But if you have heard of another equation $I = \frac{Q}{t}$
If current(I) is increased and the charge $Q$ is fixed (Charge is fixed if the power supply is from power cells like ... |
108,045 | **Problem**
Current is the amount of charge that is flowing through a component per unit of time.
For a given voltage, Ohm's law tells us that if we increase the resistance, then the current must decrease.
But *what's actually happening to decrease the current?*
**My reasoning so far - is it correct?**
More resi... | 2014/04/12 | [
"https://physics.stackexchange.com/questions/108045",
"https://physics.stackexchange.com",
"https://physics.stackexchange.com/users/29532/"
] | The answer depends on the circumstances: how do you change the resistance? Both the drift velocity and the number of available charge carriers can be changed.
In a basic [Drude model](http://en.wikipedia.org/wiki/Drude_model) for electrical transport both, $n$, the charge carrier density and $\tau$, the time between c... | Current is produced in a metal when the free electrons in the metals acquire a **drift velocity** due to an electric field. But when these free electrons travel through the metal, their path is hindered by other atoms and particles and their electomagnetic pull. More the resistance, higher is this hindrance and lesser ... |
108,045 | **Problem**
Current is the amount of charge that is flowing through a component per unit of time.
For a given voltage, Ohm's law tells us that if we increase the resistance, then the current must decrease.
But *what's actually happening to decrease the current?*
**My reasoning so far - is it correct?**
More resi... | 2014/04/12 | [
"https://physics.stackexchange.com/questions/108045",
"https://physics.stackexchange.com",
"https://physics.stackexchange.com/users/29532/"
] | The answer depends on the circumstances: how do you change the resistance? Both the drift velocity and the number of available charge carriers can be changed.
In a basic [Drude model](http://en.wikipedia.org/wiki/Drude_model) for electrical transport both, $n$, the charge carrier density and $\tau$, the time between c... | My answer is based on the similarities between electricity and fluid behaviour:
Imagine that current is the fluid flow. You can change current either by
1. changing resistance or
2. changing the potentional.
If you increase the pressure in a hose then the water will flow through it more quickly. But if you change it... |
108,045 | **Problem**
Current is the amount of charge that is flowing through a component per unit of time.
For a given voltage, Ohm's law tells us that if we increase the resistance, then the current must decrease.
But *what's actually happening to decrease the current?*
**My reasoning so far - is it correct?**
More resi... | 2014/04/12 | [
"https://physics.stackexchange.com/questions/108045",
"https://physics.stackexchange.com",
"https://physics.stackexchange.com/users/29532/"
] | The answer depends on the circumstances: how do you change the resistance? Both the drift velocity and the number of available charge carriers can be changed.
In a basic [Drude model](http://en.wikipedia.org/wiki/Drude_model) for electrical transport both, $n$, the charge carrier density and $\tau$, the time between c... | >
> For a given voltage, Ohm's law tells us that if we increase the resistance, then the current must decrease.
>
>
> But what's actually happening to decrease the current?
>
>
>
*If we increase the potential*, the current increases, rest all the parameters are constant - which are resistance, material, temperat... |
108,045 | **Problem**
Current is the amount of charge that is flowing through a component per unit of time.
For a given voltage, Ohm's law tells us that if we increase the resistance, then the current must decrease.
But *what's actually happening to decrease the current?*
**My reasoning so far - is it correct?**
More resi... | 2014/04/12 | [
"https://physics.stackexchange.com/questions/108045",
"https://physics.stackexchange.com",
"https://physics.stackexchange.com/users/29532/"
] | The answer depends on the circumstances: how do you change the resistance? Both the drift velocity and the number of available charge carriers can be changed.
In a basic [Drude model](http://en.wikipedia.org/wiki/Drude_model) for electrical transport both, $n$, the charge carrier density and $\tau$, the time between c... | For an Ohmic conductor (not a semiconductor) the number of conduction electrons is constant. It is the drift velocity that increases as a larger potential difference means a larger acceleration between scattering events. You can change the resistivity by changing the temperature. This will change the scattering probabi... |
13,763,603 | I wrote a code in vbscript as below ,but when i run my script it is giving an error saying the "Range" is undefined. Can any help me here by saying what is the error?
```
For TaskCounter = 1 to 35
TaskRangeFrom="Task"&TaskCounter&" Start Date"
TaskRangeTo="Task"&(TaskCounter+1)&" Name"
objSheet6.Rang... | 2012/12/07 | [
"https://Stackoverflow.com/questions/13763603",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/2767755/"
] | You are talking about this line?
```
myTable.myIntField =
Convert.ToInt32((myIDataReader["TableIntField"] == DBNull.Value) ? null : myIDataReader["myTableField"]);
```
If you break that statement apart, you have a type of conditional, often called the Ternary operator, [explained here](http://msdn.microsoft.com/en-u... | The syntax above works correctly and it means:
`TableIntField` could contains a database null.
This is expressed in NET via the [DBNull](http://msdn.microsoft.com/en-us/library/system.dbnull.value.aspx) object and its Value field.
The code checks if the `TableIntField` contains the `DBNull.Value` via C# [ternary ... |
6,505,857 | Code:
```
<input type="radio" value="x" name="a" />One<br />
<input type="radio" value="y" name="b" />Two<br />
....
```
I have many of `radio` buttons like above.
How can I get text string after a `radio` when it has been clicked?
**EDITING HTML IS NOT POSSIBLE** | 2011/06/28 | [
"https://Stackoverflow.com/questions/6505857",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/690854/"
] | this should work:
```
var radioButtonNames = ["a", "b"]; // Add the names of your other radio buttons
for (var i = 0; i < radioButtonNames.length; i++) {
document.getElementById(radioButtonNames[i]).onclick = function(){
var result = this.nextSibling.data;
alert(result);
}
}
``` | That text belongs to the `<body>` tag or its closest parent. I'd wrap the text in a `<span>` then do a `$(this).next('span').text()` inside your radio button's click event handler. |
6,505,857 | Code:
```
<input type="radio" value="x" name="a" />One<br />
<input type="radio" value="y" name="b" />Two<br />
....
```
I have many of `radio` buttons like above.
How can I get text string after a `radio` when it has been clicked?
**EDITING HTML IS NOT POSSIBLE** | 2011/06/28 | [
"https://Stackoverflow.com/questions/6505857",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/690854/"
] | You could use jQuery to grab the nextSibling data from that since the text is not part of the current input tag and isn't wrapped in any tags.
jQuery:
```
$(document).ready(function() {
$("input[type=radio]").click(function(e) {
var radioText = e.currentTarget.nextSibling.data
alert(radioText);
... | That text belongs to the `<body>` tag or its closest parent. I'd wrap the text in a `<span>` then do a `$(this).next('span').text()` inside your radio button's click event handler. |
6,505,857 | Code:
```
<input type="radio" value="x" name="a" />One<br />
<input type="radio" value="y" name="b" />Two<br />
....
```
I have many of `radio` buttons like above.
How can I get text string after a `radio` when it has been clicked?
**EDITING HTML IS NOT POSSIBLE** | 2011/06/28 | [
"https://Stackoverflow.com/questions/6505857",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/690854/"
] | this should work:
```
var radioButtonNames = ["a", "b"]; // Add the names of your other radio buttons
for (var i = 0; i < radioButtonNames.length; i++) {
document.getElementById(radioButtonNames[i]).onclick = function(){
var result = this.nextSibling.data;
alert(result);
}
}
``` | ```
var radioLength = radioObj.length;
if(radioLength == undefined)
if(radioObj.checked)
return radioObj.value;
else
return "";
for(var i = 0; i < radioLength; i++) {
if(radioObj[i].checked) {
return radioObj[i].value;
}
}
```
this will get the radio object value out, then you ... |
6,505,857 | Code:
```
<input type="radio" value="x" name="a" />One<br />
<input type="radio" value="y" name="b" />Two<br />
....
```
I have many of `radio` buttons like above.
How can I get text string after a `radio` when it has been clicked?
**EDITING HTML IS NOT POSSIBLE** | 2011/06/28 | [
"https://Stackoverflow.com/questions/6505857",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/690854/"
] | You could use jQuery to grab the nextSibling data from that since the text is not part of the current input tag and isn't wrapped in any tags.
jQuery:
```
$(document).ready(function() {
$("input[type=radio]").click(function(e) {
var radioText = e.currentTarget.nextSibling.data
alert(radioText);
... | ```
var radioLength = radioObj.length;
if(radioLength == undefined)
if(radioObj.checked)
return radioObj.value;
else
return "";
for(var i = 0; i < radioLength; i++) {
if(radioObj[i].checked) {
return radioObj[i].value;
}
}
```
this will get the radio object value out, then you ... |
6,505,857 | Code:
```
<input type="radio" value="x" name="a" />One<br />
<input type="radio" value="y" name="b" />Two<br />
....
```
I have many of `radio` buttons like above.
How can I get text string after a `radio` when it has been clicked?
**EDITING HTML IS NOT POSSIBLE** | 2011/06/28 | [
"https://Stackoverflow.com/questions/6505857",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/690854/"
] | this should work:
```
var radioButtonNames = ["a", "b"]; // Add the names of your other radio buttons
for (var i = 0; i < radioButtonNames.length; i++) {
document.getElementById(radioButtonNames[i]).onclick = function(){
var result = this.nextSibling.data;
alert(result);
}
}
``` | Please use `object.innerHTML` or `object.innerText` methods
In your case JS would be like.
```
var text = $('a').innerHTML;
``` |
6,505,857 | Code:
```
<input type="radio" value="x" name="a" />One<br />
<input type="radio" value="y" name="b" />Two<br />
....
```
I have many of `radio` buttons like above.
How can I get text string after a `radio` when it has been clicked?
**EDITING HTML IS NOT POSSIBLE** | 2011/06/28 | [
"https://Stackoverflow.com/questions/6505857",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/690854/"
] | You could use jQuery to grab the nextSibling data from that since the text is not part of the current input tag and isn't wrapped in any tags.
jQuery:
```
$(document).ready(function() {
$("input[type=radio]").click(function(e) {
var radioText = e.currentTarget.nextSibling.data
alert(radioText);
... | Please use `object.innerHTML` or `object.innerText` methods
In your case JS would be like.
```
var text = $('a').innerHTML;
``` |
6,505,857 | Code:
```
<input type="radio" value="x" name="a" />One<br />
<input type="radio" value="y" name="b" />Two<br />
....
```
I have many of `radio` buttons like above.
How can I get text string after a `radio` when it has been clicked?
**EDITING HTML IS NOT POSSIBLE** | 2011/06/28 | [
"https://Stackoverflow.com/questions/6505857",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/690854/"
] | You could use jQuery to grab the nextSibling data from that since the text is not part of the current input tag and isn't wrapped in any tags.
jQuery:
```
$(document).ready(function() {
$("input[type=radio]").click(function(e) {
var radioText = e.currentTarget.nextSibling.data
alert(radioText);
... | this should work:
```
var radioButtonNames = ["a", "b"]; // Add the names of your other radio buttons
for (var i = 0; i < radioButtonNames.length; i++) {
document.getElementById(radioButtonNames[i]).onclick = function(){
var result = this.nextSibling.data;
alert(result);
}
}
``` |
118,033 | In this alternate timeline, Hitler was killed during the first great war. This prevented the Nazis from becoming a true force in Germany. The real threat came from communism in Russia under a man called Joseph Stalin, who wanted to spread its territory. This started the second world war, with Russia and its friends fig... | 2018/07/13 | [
"https://worldbuilding.stackexchange.com/questions/118033",
"https://worldbuilding.stackexchange.com",
"https://worldbuilding.stackexchange.com/users/52361/"
] | You are more or less describing the trajectory in history chosen by Francisco Franco in Spain and Salazar in Portugal: present yourself as a shield against communism, and the good old patrols of the free world will close an eye on small stuff like freedom of speech or how you deal with opposition and minorities.
On th... | First I would not erase Italy expansion in Africa. For a long time it was a continent that was exploited by "the good guys" like France. And without Germany Allies would have little to no problem with Italy making it second leg there as long as it wouldn't clash with USA or England interest.
What would be more import... |
118,033 | In this alternate timeline, Hitler was killed during the first great war. This prevented the Nazis from becoming a true force in Germany. The real threat came from communism in Russia under a man called Joseph Stalin, who wanted to spread its territory. This started the second world war, with Russia and its friends fig... | 2018/07/13 | [
"https://worldbuilding.stackexchange.com/questions/118033",
"https://worldbuilding.stackexchange.com",
"https://worldbuilding.stackexchange.com/users/52361/"
] | You are more or less describing the trajectory in history chosen by Francisco Franco in Spain and Salazar in Portugal: present yourself as a shield against communism, and the good old patrols of the free world will close an eye on small stuff like freedom of speech or how you deal with opposition and minorities.
On th... | It could be argued that Fascism actually exists into the present day. The Fascist Corporate State was conceived as a mass political movement to harness the economic and industrial power of modern industry into the State, and using mass communications to organize the people and direct them to achieve the goals of the St... |
118,033 | In this alternate timeline, Hitler was killed during the first great war. This prevented the Nazis from becoming a true force in Germany. The real threat came from communism in Russia under a man called Joseph Stalin, who wanted to spread its territory. This started the second world war, with Russia and its friends fig... | 2018/07/13 | [
"https://worldbuilding.stackexchange.com/questions/118033",
"https://worldbuilding.stackexchange.com",
"https://worldbuilding.stackexchange.com/users/52361/"
] | First I would not erase Italy expansion in Africa. For a long time it was a continent that was exploited by "the good guys" like France. And without Germany Allies would have little to no problem with Italy making it second leg there as long as it wouldn't clash with USA or England interest.
What would be more import... | It could be argued that Fascism actually exists into the present day. The Fascist Corporate State was conceived as a mass political movement to harness the economic and industrial power of modern industry into the State, and using mass communications to organize the people and direct them to achieve the goals of the St... |
5,427,459 | I have a requirement to store dates and durations arising from multiple different calendars. In particular I need to store dates that:
1. Span the change to Gregorian calendars in different countries at different times
2. Cover a historic period of at least 500 years
3. Deal with multiple types of calendar - lunar, so... | 2011/03/25 | [
"https://Stackoverflow.com/questions/5427459",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/441969/"
] | If you are writing your own, as I assume you intend to, I would make a class that contains a TDateTime, and other fields, and I would base it on the functionality in the very nicely written mxDateTime extension for Python, which is very easily readable, open source, C code, that you could use to extract the gregorian c... | Only a partial answer but an important piece.
Since you are going to store dates in a very broad range where a lot of things happened to calendars, you need to accommodate for those changes.
The timezone database [TZ-database](http://www.twinsun.com/tz/tz-link.htm) and the Delphi [TZDB wrapper](http://code.google.com... |
16,688,256 | Is there a built in method in Java to determine if a String starts with a specific character? How can I write, to an output file, only the lines that do not start with a defined character?
```
try {
File input = new File("input");
File output = new File("output");
Scanner sc = new Scanner(in... | 2013/05/22 | [
"https://Stackoverflow.com/questions/16688256",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/2408838/"
] | Built in a check if the character is there.
```
while (sc.hasNextLine()) {
String s = sc.nextLine();
if (s.startsWith("?"))
printer.write(s);
}
```
Or
```
while (sc.hasNextLine()) {
String s = sc.nextLine();
char c = s.charAt(0);
if (c.matches('?'))
printer.write(s);
}
```
EDIT... | You can easily check for text before writing in your while loop.
```
if(check your string)
printer.write(s);
``` |
38,104,173 | For a game I'm making, I want the player to have a choice of two (or more) buttons, and when a button is clicked, a new screen appears.
However, as of now, the 1st button's text still remains when it is clicked. I've tried setVisible(false) in the listener, and later setText(" "), but both only create errors. If anyo... | 2016/06/29 | [
"https://Stackoverflow.com/questions/38104173",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/6529165/"
] | I think your issue is substantial...
```
SELECT IIF(SomeVariable=1,"TrueValue","FalseValue")
```
cannot be used as
```
IIF(SomeVariable=1,(Execute one statement),(Execute another statment))
```
Your are mixing the concept of a conditional expression and of a conditional processing... The semicolons you've put at ... | You don't need this outer `IIf` at all, just put the condition into the WHERE clause.
This should do what you want, but you should check the order of precedence of OR and AND in the WHERE clause, you probably want another set of parentheses around the two OR conditions.
```
SELECT UserList.Clerkid, IIf([LastName]=" S... |
3,950 | I normally barbecue with charcoal, but I've seen wood chips in shops, so I started wondering...
I assume the material you use gives a different flavor to the meat. What is your experience on this regard? When is coal preferable, wood, or gas (the latter IMHO ruins the point)? If wood is better, which kind of wood gi... | 2010/08/01 | [
"https://cooking.stackexchange.com/questions/3950",
"https://cooking.stackexchange.com",
"https://cooking.stackexchange.com/users/1342/"
] | There are two main types of charcoal, briquettes and hard lump. The first comes in preformed pieces, so they are all the same size and include a filler material. They will sometimes also have lighter fluid in them already and be "easy start" or something similar. Hard lump is just charcoal from hardwoods with no filler... | When you say 'coal', do you mean chunk charcoal, or the type of mineral coal that comes out of the ground, or charcoal briquettes from the market? Wood chips are primarily for flavoring meat and or veg while grilling over briquettes. You soak them in water before using, and they give off a scented, flavored smoke. Chun... |
3,950 | I normally barbecue with charcoal, but I've seen wood chips in shops, so I started wondering...
I assume the material you use gives a different flavor to the meat. What is your experience on this regard? When is coal preferable, wood, or gas (the latter IMHO ruins the point)? If wood is better, which kind of wood gi... | 2010/08/01 | [
"https://cooking.stackexchange.com/questions/3950",
"https://cooking.stackexchange.com",
"https://cooking.stackexchange.com/users/1342/"
] | Charcoal is for smokeless and flavourless cooking
For a nice smokey BBQ flavour you need some dried, split hardwood. Or fresh hard wood twigs. For quick to cook meats you can even use softwoods, or even driftwood from the beach
Add bunches of greenery and twigs from scented shrubs like tea-tree, lavender, rosemary et... | When you say 'coal', do you mean chunk charcoal, or the type of mineral coal that comes out of the ground, or charcoal briquettes from the market? Wood chips are primarily for flavoring meat and or veg while grilling over briquettes. You soak them in water before using, and they give off a scented, flavored smoke. Chun... |
3,950 | I normally barbecue with charcoal, but I've seen wood chips in shops, so I started wondering...
I assume the material you use gives a different flavor to the meat. What is your experience on this regard? When is coal preferable, wood, or gas (the latter IMHO ruins the point)? If wood is better, which kind of wood gi... | 2010/08/01 | [
"https://cooking.stackexchange.com/questions/3950",
"https://cooking.stackexchange.com",
"https://cooking.stackexchange.com/users/1342/"
] | There are two main types of charcoal, briquettes and hard lump. The first comes in preformed pieces, so they are all the same size and include a filler material. They will sometimes also have lighter fluid in them already and be "easy start" or something similar. Hard lump is just charcoal from hardwoods with no filler... | Charcoal is for smokeless and flavourless cooking
For a nice smokey BBQ flavour you need some dried, split hardwood. Or fresh hard wood twigs. For quick to cook meats you can even use softwoods, or even driftwood from the beach
Add bunches of greenery and twigs from scented shrubs like tea-tree, lavender, rosemary et... |
44,263,732 | Importing and using Realm on react native works fine for iOS. Android also works in terms of functionality, however, when using remote debugging on chrome the following error yields.
[](https://i.stack.imgur.com/p3vGK.png)
I've looked around almost e... | 2017/05/30 | [
"https://Stackoverflow.com/questions/44263732",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/4873660/"
] | You're running into known issues w/ android remote debugging, but they're being worked on. You can track progress here: <https://github.com/realm/realm-js/issues/491> | I've met this problem when I've used react native with realm database. I think you need manually port reverse and forward to avoid conflict port.When you enable debug mode, please open command line and follow below command:
```
`adb reverse tcp:8081 tcp:8081`
`adb forward tcp:8082 tcp:8082`
```
Then, you can r... |
44,263,732 | Importing and using Realm on react native works fine for iOS. Android also works in terms of functionality, however, when using remote debugging on chrome the following error yields.
[](https://i.stack.imgur.com/p3vGK.png)
I've looked around almost e... | 2017/05/30 | [
"https://Stackoverflow.com/questions/44263732",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/4873660/"
] | Easy fix is to goto `node_modules/realm/lib/browser/rpc.js` and replace line 216 with `let url = 'http://127.0.0.1:8083/' + command;` | I was able to resolve this issue in my pixel\_3XL simulator android API level : 29
reset the path for platform-tools
changed my PATH to platform-tools
```
$ export PATH=${PATH}:/root/Android/Sdk/platform-tools
$ adb kill-server
$ adb root #will give root access for adb
$ adb forward tcp:8082 tc... |
44,263,732 | Importing and using Realm on react native works fine for iOS. Android also works in terms of functionality, however, when using remote debugging on chrome the following error yields.
[](https://i.stack.imgur.com/p3vGK.png)
I've looked around almost e... | 2017/05/30 | [
"https://Stackoverflow.com/questions/44263732",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/4873660/"
] | You're running into known issues w/ android remote debugging, but they're being worked on. You can track progress here: <https://github.com/realm/realm-js/issues/491> | Doing this worked for me
on terminal:
```
adb reverse tcp:8081 tcp:8081
adb forward tcp:8082 tcp:8082
adb forward tcp:8083 tcp:8083
``` |
44,263,732 | Importing and using Realm on react native works fine for iOS. Android also works in terms of functionality, however, when using remote debugging on chrome the following error yields.
[](https://i.stack.imgur.com/p3vGK.png)
I've looked around almost e... | 2017/05/30 | [
"https://Stackoverflow.com/questions/44263732",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/4873660/"
] | I was able to resolve this issue in my pixel\_3XL simulator android API level : 29
reset the path for platform-tools
changed my PATH to platform-tools
```
$ export PATH=${PATH}:/root/Android/Sdk/platform-tools
$ adb kill-server
$ adb root #will give root access for adb
$ adb forward tcp:8082 tc... | Doing this worked for me
on terminal:
```
adb reverse tcp:8081 tcp:8081
adb forward tcp:8082 tcp:8082
adb forward tcp:8083 tcp:8083
``` |
44,263,732 | Importing and using Realm on react native works fine for iOS. Android also works in terms of functionality, however, when using remote debugging on chrome the following error yields.
[](https://i.stack.imgur.com/p3vGK.png)
I've looked around almost e... | 2017/05/30 | [
"https://Stackoverflow.com/questions/44263732",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/4873660/"
] | if answer from @johnny didn't work, when you type the commands
`adb reverse tcp:8081 tcp:8081`
`adb forward tcp:8082 tcp:8082`
and you get the following message
```
adb server is out of date. killing...
* daemon started successfully *
```
that means that the adb command you are using in command line, and the adb ... | I was able to resolve this issue in my pixel\_3XL simulator android API level : 29
reset the path for platform-tools
changed my PATH to platform-tools
```
$ export PATH=${PATH}:/root/Android/Sdk/platform-tools
$ adb kill-server
$ adb root #will give root access for adb
$ adb forward tcp:8082 tc... |
44,263,732 | Importing and using Realm on react native works fine for iOS. Android also works in terms of functionality, however, when using remote debugging on chrome the following error yields.
[](https://i.stack.imgur.com/p3vGK.png)
I've looked around almost e... | 2017/05/30 | [
"https://Stackoverflow.com/questions/44263732",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/4873660/"
] | You're running into known issues w/ android remote debugging, but they're being worked on. You can track progress here: <https://github.com/realm/realm-js/issues/491> | if answer from @johnny didn't work, when you type the commands
`adb reverse tcp:8081 tcp:8081`
`adb forward tcp:8082 tcp:8082`
and you get the following message
```
adb server is out of date. killing...
* daemon started successfully *
```
that means that the adb command you are using in command line, and the adb ... |
44,263,732 | Importing and using Realm on react native works fine for iOS. Android also works in terms of functionality, however, when using remote debugging on chrome the following error yields.
[](https://i.stack.imgur.com/p3vGK.png)
I've looked around almost e... | 2017/05/30 | [
"https://Stackoverflow.com/questions/44263732",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/4873660/"
] | You're running into known issues w/ android remote debugging, but they're being worked on. You can track progress here: <https://github.com/realm/realm-js/issues/491> | I was able to resolve this issue in my pixel\_3XL simulator android API level : 29
reset the path for platform-tools
changed my PATH to platform-tools
```
$ export PATH=${PATH}:/root/Android/Sdk/platform-tools
$ adb kill-server
$ adb root #will give root access for adb
$ adb forward tcp:8082 tc... |
44,263,732 | Importing and using Realm on react native works fine for iOS. Android also works in terms of functionality, however, when using remote debugging on chrome the following error yields.
[](https://i.stack.imgur.com/p3vGK.png)
I've looked around almost e... | 2017/05/30 | [
"https://Stackoverflow.com/questions/44263732",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/4873660/"
] | Easy fix is to goto `node_modules/realm/lib/browser/rpc.js` and replace line 216 with `let url = 'http://127.0.0.1:8083/' + command;` | Doing this worked for me
on terminal:
```
adb reverse tcp:8081 tcp:8081
adb forward tcp:8082 tcp:8082
adb forward tcp:8083 tcp:8083
``` |
44,263,732 | Importing and using Realm on react native works fine for iOS. Android also works in terms of functionality, however, when using remote debugging on chrome the following error yields.
[](https://i.stack.imgur.com/p3vGK.png)
I've looked around almost e... | 2017/05/30 | [
"https://Stackoverflow.com/questions/44263732",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/4873660/"
] | Easy fix is to goto `node_modules/realm/lib/browser/rpc.js` and replace line 216 with `let url = 'http://127.0.0.1:8083/' + command;` | I've met this problem when I've used react native with realm database. I think you need manually port reverse and forward to avoid conflict port.When you enable debug mode, please open command line and follow below command:
```
`adb reverse tcp:8081 tcp:8081`
`adb forward tcp:8082 tcp:8082`
```
Then, you can r... |
44,263,732 | Importing and using Realm on react native works fine for iOS. Android also works in terms of functionality, however, when using remote debugging on chrome the following error yields.
[](https://i.stack.imgur.com/p3vGK.png)
I've looked around almost e... | 2017/05/30 | [
"https://Stackoverflow.com/questions/44263732",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/4873660/"
] | if answer from @johnny didn't work, when you type the commands
`adb reverse tcp:8081 tcp:8081`
`adb forward tcp:8082 tcp:8082`
and you get the following message
```
adb server is out of date. killing...
* daemon started successfully *
```
that means that the adb command you are using in command line, and the adb ... | Doing this worked for me
on terminal:
```
adb reverse tcp:8081 tcp:8081
adb forward tcp:8082 tcp:8082
adb forward tcp:8083 tcp:8083
``` |
6,689 | A typical project for me is a 3 months web development and Android Apps project with a 3 person team. All development work is started and required all software development life cycle activities (planning, implementation, testing, documenting, deploying and maintenance).
* Are there any rules or guidelines for tailorin... | 2012/09/30 | [
"https://pm.stackexchange.com/questions/6689",
"https://pm.stackexchange.com",
"https://pm.stackexchange.com/users/4714/"
] | I am going to use an educated guess based on what was said, as it is a bit unclear exactly what you are looking for.
>
> How would I manage different project with respect to the software development life cycle?
>
>
>
My first suggestion would be to read [Agile Software Development: A gentle introduction](http://w... | >
> how can I better determine what can be done to improve project quality and better stay on track?
>
>
>
What do your lessons learned from the prior project state?
Perhaps I'm reading too deeply into "typical project" - but that implies to me that you're not a complete novice; you've danced this dance before.... |
6,689 | A typical project for me is a 3 months web development and Android Apps project with a 3 person team. All development work is started and required all software development life cycle activities (planning, implementation, testing, documenting, deploying and maintenance).
* Are there any rules or guidelines for tailorin... | 2012/09/30 | [
"https://pm.stackexchange.com/questions/6689",
"https://pm.stackexchange.com",
"https://pm.stackexchange.com/users/4714/"
] | I am going to use an educated guess based on what was said, as it is a bit unclear exactly what you are looking for.
>
> How would I manage different project with respect to the software development life cycle?
>
>
>
My first suggestion would be to read [Agile Software Development: A gentle introduction](http://w... | At a very high level the principles of good project management (focus on the end product, have a viable business case, learn from experience, tailor your methods to your needs, manage the project in stages, clearly define roles & responsibilities, open & timely communications, etc) are universal across project types. Y... |
6,689 | A typical project for me is a 3 months web development and Android Apps project with a 3 person team. All development work is started and required all software development life cycle activities (planning, implementation, testing, documenting, deploying and maintenance).
* Are there any rules or guidelines for tailorin... | 2012/09/30 | [
"https://pm.stackexchange.com/questions/6689",
"https://pm.stackexchange.com",
"https://pm.stackexchange.com/users/4714/"
] | At a very high level the principles of good project management (focus on the end product, have a viable business case, learn from experience, tailor your methods to your needs, manage the project in stages, clearly define roles & responsibilities, open & timely communications, etc) are universal across project types. Y... | >
> how can I better determine what can be done to improve project quality and better stay on track?
>
>
>
What do your lessons learned from the prior project state?
Perhaps I'm reading too deeply into "typical project" - but that implies to me that you're not a complete novice; you've danced this dance before.... |
9,114,371 | I've been Google-ing this for the past 24 hours, pretty much. I can't seem to find an answer that fits my scenario, even though I know it's widely used.
I have many links on one page (let's call it "page 1") of my website and I would like to them all to head to one, blank page (and this "page 2") and then have the con... | 2012/02/02 | [
"https://Stackoverflow.com/questions/9114371",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/-1/"
] | You could use the `$_GET[]` variable. On page1, the links could be to `page2?food=bacon` or `page2?food=foo`. On page2, you could say...
```
if ($_GET['food']=='bacon')
{
// Stuff here that prints what you want.
}
elsif ($_GET['food']=='foo')
{
// Stuff here that prints what you want.
}
``` | <http://www.w3schools.com/php/php_get.asp>
www.example.com/index.php?page=something\_here
```
$_get["page"]
```
Would return "something\_here" |
9,114,371 | I've been Google-ing this for the past 24 hours, pretty much. I can't seem to find an answer that fits my scenario, even though I know it's widely used.
I have many links on one page (let's call it "page 1") of my website and I would like to them all to head to one, blank page (and this "page 2") and then have the con... | 2012/02/02 | [
"https://Stackoverflow.com/questions/9114371",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/-1/"
] | You can pass an identifier of the content to be loaded through the URL.
Ex:
Set a value for one of the `GET` parameter to be the identifier for the content of page 2
`<a href="page2.php?pageid=content">Link to Page 2</a>`
And then in page 2 just check for the value and load the content accordingly.
```
include_once... | <http://www.w3schools.com/php/php_get.asp>
www.example.com/index.php?page=something\_here
```
$_get["page"]
```
Would return "something\_here" |
9,114,371 | I've been Google-ing this for the past 24 hours, pretty much. I can't seem to find an answer that fits my scenario, even though I know it's widely used.
I have many links on one page (let's call it "page 1") of my website and I would like to them all to head to one, blank page (and this "page 2") and then have the con... | 2012/02/02 | [
"https://Stackoverflow.com/questions/9114371",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/-1/"
] | You could use the `$_GET[]` variable. On page1, the links could be to `page2?food=bacon` or `page2?food=foo`. On page2, you could say...
```
if ($_GET['food']=='bacon')
{
// Stuff here that prints what you want.
}
elsif ($_GET['food']=='foo')
{
// Stuff here that prints what you want.
}
``` | You can pass an identifier of the content to be loaded through the URL.
Ex:
Set a value for one of the `GET` parameter to be the identifier for the content of page 2
`<a href="page2.php?pageid=content">Link to Page 2</a>`
And then in page 2 just check for the value and load the content accordingly.
```
include_once... |
11,038,430 | I think it would be easier to use function pointers if I created a typedef for a function pointer, but I seem to be getting myself tripped up on some syntax or usage or something about typedef for function pointers, and I could use some help.
I've got
```
int foo(int i){ return i + 1;}
typedef <???> g;
int hvar;
hvar... | 2012/06/14 | [
"https://Stackoverflow.com/questions/11038430",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1323010/"
] | Your question isn't clear, but I think you might want something like this:
```
int foo(int i){ return i + 1;}
typedef int (*g)(int); // Declare typedef
g func = &foo; // Define function-pointer variable, and initialise
int hvar = func(3); // Call function through pointer
``` | The original way of writing the function returning function pointer is
```
int (* call(void) ) (int,int);
```
Here `call` is a function which takes nothing but returns a function pointer which takes 2 arguments and returns an integer value. Pay attention to the brackets, they are absolutely necessary.
Here is the c... |
11,038,430 | I think it would be easier to use function pointers if I created a typedef for a function pointer, but I seem to be getting myself tripped up on some syntax or usage or something about typedef for function pointers, and I could use some help.
I've got
```
int foo(int i){ return i + 1;}
typedef <???> g;
int hvar;
hvar... | 2012/06/14 | [
"https://Stackoverflow.com/questions/11038430",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1323010/"
] | Your question isn't clear, but I think you might want something like this:
```
int foo(int i){ return i + 1;}
typedef int (*g)(int); // Declare typedef
g func = &foo; // Define function-pointer variable, and initialise
int hvar = func(3); // Call function through pointer
``` | You are right. The function pointer can be conveniently used to point to the different functions of the same return type and taking same number of arguments.
The argument types should match the declaration of the function pointer arguments.
In your case you could define your function pointer `g` as:
`typedef int (*g)... |
11,038,430 | I think it would be easier to use function pointers if I created a typedef for a function pointer, but I seem to be getting myself tripped up on some syntax or usage or something about typedef for function pointers, and I could use some help.
I've got
```
int foo(int i){ return i + 1;}
typedef <???> g;
int hvar;
hvar... | 2012/06/14 | [
"https://Stackoverflow.com/questions/11038430",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1323010/"
] | You are right. The function pointer can be conveniently used to point to the different functions of the same return type and taking same number of arguments.
The argument types should match the declaration of the function pointer arguments.
In your case you could define your function pointer `g` as:
`typedef int (*g)... | The original way of writing the function returning function pointer is
```
int (* call(void) ) (int,int);
```
Here `call` is a function which takes nothing but returns a function pointer which takes 2 arguments and returns an integer value. Pay attention to the brackets, they are absolutely necessary.
Here is the c... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.