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
15,781,433
I want to write a regex that checks if the left and right part (relative to some pivot character) is equal, e.g. `m2/m2` -> yes `m3/m2` -> no How do I write a regex that checks if a capture on the left side of the pivot character is equal to the right?
2013/04/03
[ "https://Stackoverflow.com/questions/15781433", "https://Stackoverflow.com", "https://Stackoverflow.com/users/167251/" ]
```java Animal a = new Dog(); // this animal is a dog Dog d = new Dog(); // this dog is a dog ``` A dog is a dog, however you declared it. `a.getClass()` equals `d.getClass()` equals `Dog.class`. On the other hand: ```java Animal a = new Animal(); // this animal is an animal a.makeNoise(); // pr...
``` Animal a = new Dog(); ``` a is a a reference of type **Animal** but it refers to the object of type **Dog**. Here **Dog** overrides **makeNoise()** method of **Animal** class. ``` class Animal { public void makeNoise() { System.out.println("Squawk"); } } class Dog extends Animal { @Overrid...
15,781,433
I want to write a regex that checks if the left and right part (relative to some pivot character) is equal, e.g. `m2/m2` -> yes `m3/m2` -> no How do I write a regex that checks if a capture on the left side of the pivot character is equal to the right?
2013/04/03
[ "https://Stackoverflow.com/questions/15781433", "https://Stackoverflow.com", "https://Stackoverflow.com/users/167251/" ]
```java Animal a = new Dog(); // this animal is a dog Dog d = new Dog(); // this dog is a dog ``` A dog is a dog, however you declared it. `a.getClass()` equals `d.getClass()` equals `Dog.class`. On the other hand: ```java Animal a = new Animal(); // this animal is an animal a.makeNoise(); // pr...
This is the reason- ``` Animal a = new Dog(); ``` Animal is dog so noise would be same :) If create another animal, say Cat, with that method, and point animal to Cat, you should get a different noise.
15,781,433
I want to write a regex that checks if the left and right part (relative to some pivot character) is equal, e.g. `m2/m2` -> yes `m3/m2` -> no How do I write a regex that checks if a capture on the left side of the pivot character is equal to the right?
2013/04/03
[ "https://Stackoverflow.com/questions/15781433", "https://Stackoverflow.com", "https://Stackoverflow.com/users/167251/" ]
consider there are 3 classes 1. animal 2. dog 3. cat cat and dog are sub classes of animal. --- ```js class Test { public static void main(String[] args) { Animal a = new Animal(); int user_input=userinput(); //returns 1 for cat and 2for dog switch(user_input) { case 1:Animal d=n...
``` class Account { public static void main(String[] args) { Animal a = new Dog(); Dog d = new Dog(); d.makeNoise(); a.makeNoise(); a = new Cat(); a.makeNoise(); } } abstract class Animal { public void makeNoise() { System.out.println("Super"); } ...
15,781,433
I want to write a regex that checks if the left and right part (relative to some pivot character) is equal, e.g. `m2/m2` -> yes `m3/m2` -> no How do I write a regex that checks if a capture on the left side of the pivot character is equal to the right?
2013/04/03
[ "https://Stackoverflow.com/questions/15781433", "https://Stackoverflow.com", "https://Stackoverflow.com/users/167251/" ]
This is the reason- ``` Animal a = new Dog(); ``` Animal is dog so noise would be same :) If create another animal, say Cat, with that method, and point animal to Cat, you should get a different noise.
``` class Account { public static void main(String[] args) { Animal a = new Dog(); Dog d = new Dog(); d.makeNoise(); a.makeNoise(); a = new Cat(); a.makeNoise(); } } abstract class Animal { public void makeNoise() { System.out.println("Super"); } ...
15,781,433
I want to write a regex that checks if the left and right part (relative to some pivot character) is equal, e.g. `m2/m2` -> yes `m3/m2` -> no How do I write a regex that checks if a capture on the left side of the pivot character is equal to the right?
2013/04/03
[ "https://Stackoverflow.com/questions/15781433", "https://Stackoverflow.com", "https://Stackoverflow.com/users/167251/" ]
The example below illustrates dynamic polymorphism. Both a and d are declared to be Animals, but d is actually a dog. Notice that when I call makeNoise on the Animal d, java will know that d is actually a dog and not just any animal. ``` class Test { public static void main(String[] args) { Animal a = ne...
This is the reason- ``` Animal a = new Dog(); ``` Animal is dog so noise would be same :) If create another animal, say Cat, with that method, and point animal to Cat, you should get a different noise.
15,781,433
I want to write a regex that checks if the left and right part (relative to some pivot character) is equal, e.g. `m2/m2` -> yes `m3/m2` -> no How do I write a regex that checks if a capture on the left side of the pivot character is equal to the right?
2013/04/03
[ "https://Stackoverflow.com/questions/15781433", "https://Stackoverflow.com", "https://Stackoverflow.com/users/167251/" ]
Your simplified example does not present the case well enough. ``` Collection<Animal> caged = getCagedAnimals(); for (Animal a : caged) a.makeNoise(); ``` As there are many types of animals (classes), each makes a different noise. We do not need any typecasting to obtain different behavior, so to say. Imagine the ...
i will give one general ex:- personA has one bank account he has all permissions on that account(withdraw,deposit,loanetc). personB wants to deposit money into personA account in this time he wants to access personA's account but we have to provide deposit permissions only. ``` class perosnB { public void deposit() ...
15,781,433
I want to write a regex that checks if the left and right part (relative to some pivot character) is equal, e.g. `m2/m2` -> yes `m3/m2` -> no How do I write a regex that checks if a capture on the left side of the pivot character is equal to the right?
2013/04/03
[ "https://Stackoverflow.com/questions/15781433", "https://Stackoverflow.com", "https://Stackoverflow.com/users/167251/" ]
The example below illustrates dynamic polymorphism. Both a and d are declared to be Animals, but d is actually a dog. Notice that when I call makeNoise on the Animal d, java will know that d is actually a dog and not just any animal. ``` class Test { public static void main(String[] args) { Animal a = ne...
i will give one general ex:- personA has one bank account he has all permissions on that account(withdraw,deposit,loanetc). personB wants to deposit money into personA account in this time he wants to access personA's account but we have to provide deposit permissions only. ``` class perosnB { public void deposit() ...
58,453,870
I'm trying to change the value of the data within computed property, but if I use map to change it, the original value in data property changed too. I read documentation about computed property and it don't change original value. I read documentation about map and it return a new object with the changes. ``` new Vue...
2019/10/18
[ "https://Stackoverflow.com/questions/58453870", "https://Stackoverflow.com", "https://Stackoverflow.com/users/9485501/" ]
This should get the text - `You are an employer`. ``` //a[contains(text(),'Emp')]/parent::*/following-sibling::p/text() ```
This XPath, ``` //a[.="Emp"]/following::p[1]/text() ``` will select the text of the first `p` following the `a` with a string value of `"Emp"`.
58,453,870
I'm trying to change the value of the data within computed property, but if I use map to change it, the original value in data property changed too. I read documentation about computed property and it don't change original value. I read documentation about map and it return a new object with the changes. ``` new Vue...
2019/10/18
[ "https://Stackoverflow.com/questions/58453870", "https://Stackoverflow.com", "https://Stackoverflow.com/users/9485501/" ]
This XPath, ``` //a[.="Emp"]/following::p[1]/text() ``` will select the text of the first `p` following the `a` with a string value of `"Emp"`.
I'd traverse the tree using XPATH like this `//a[text() = 'Emp']//..//../p` or `//*[. = 'Emp']//..//../p`
58,453,870
I'm trying to change the value of the data within computed property, but if I use map to change it, the original value in data property changed too. I read documentation about computed property and it don't change original value. I read documentation about map and it return a new object with the changes. ``` new Vue...
2019/10/18
[ "https://Stackoverflow.com/questions/58453870", "https://Stackoverflow.com", "https://Stackoverflow.com/users/9485501/" ]
This should get the text - `You are an employer`. ``` //a[contains(text(),'Emp')]/parent::*/following-sibling::p/text() ```
I'd traverse the tree using XPATH like this `//a[text() = 'Emp']//..//../p` or `//*[. = 'Emp']//..//../p`
21,053,458
I'm just wondering, I'm trying to make a very simple text processing or reduction. I want to replace all spaces (without these in `" "`) by one. I also have some semantic action dependent on each character read, so I that's why I don't want to use any regex. It's some kind of pseudo FSM model. So here's the the deal: ...
2014/01/10
[ "https://Stackoverflow.com/questions/21053458", "https://Stackoverflow.com", "https://Stackoverflow.com/users/1848050/" ]
Use [shlex](http://docs.python.org/2/library/shlex.html) to parse your string to quoted and unquoted parts, then in unquoted parts use regex to replace sequence of whitespace with one space.
``` i = iter((i for i,char in enumerate(s) if char=='"')) zones = list(zip(*[i]*2)) # a list of all the "zones" where spaces should not be manipulated answer = [] space = False for i,char in enumerate(s): if not any(zone[0] <= i <= zone[1] for zone in zones): if char.isspace(): if not space: ...
21,053,458
I'm just wondering, I'm trying to make a very simple text processing or reduction. I want to replace all spaces (without these in `" "`) by one. I also have some semantic action dependent on each character read, so I that's why I don't want to use any regex. It's some kind of pseudo FSM model. So here's the the deal: ...
2014/01/10
[ "https://Stackoverflow.com/questions/21053458", "https://Stackoverflow.com", "https://Stackoverflow.com/users/1848050/" ]
> > > > > > > > > > > > I also have some semantic action dependent on each character read ... It's some kind of pseudo FSM model. > > > > > > > > > > > > > > > > > > You could actually implement an FSM: ``` s = '''that's my string, " keep these spaces " but reduce these ''' normal, quoted,...
It is a bit of a hack but you could do reducing to a single space with a one-liner. ``` one_space = lambda s : ' '.join([part for part in s.split(' ') if part] ``` This joins the parts that are not empty, that is they have not space characters, together separated by a single space. The harder part of course is sepa...
21,053,458
I'm just wondering, I'm trying to make a very simple text processing or reduction. I want to replace all spaces (without these in `" "`) by one. I also have some semantic action dependent on each character read, so I that's why I don't want to use any regex. It's some kind of pseudo FSM model. So here's the the deal: ...
2014/01/10
[ "https://Stackoverflow.com/questions/21053458", "https://Stackoverflow.com", "https://Stackoverflow.com/users/1848050/" ]
> > > > > > > > > > > > I also have some semantic action dependent on each character read ... It's some kind of pseudo FSM model. > > > > > > > > > > > > > > > > > > You could actually implement an FSM: ``` s = '''that's my string, " keep these spaces " but reduce these ''' normal, quoted,...
A bit concerned whether this solution will be readable or not. Modified the string OP suggested to include multiple double quote pairs in the given string. ``` s = '''that's my string, " keep these spaces "" as well as these " reduce these" keep these spaces too " but not these ''' s_spl...
21,053,458
I'm just wondering, I'm trying to make a very simple text processing or reduction. I want to replace all spaces (without these in `" "`) by one. I also have some semantic action dependent on each character read, so I that's why I don't want to use any regex. It's some kind of pseudo FSM model. So here's the the deal: ...
2014/01/10
[ "https://Stackoverflow.com/questions/21053458", "https://Stackoverflow.com", "https://Stackoverflow.com/users/1848050/" ]
> > > > > > > > > > > > I also have some semantic action dependent on each character read ... It's some kind of pseudo FSM model. > > > > > > > > > > > > > > > > > > You could actually implement an FSM: ``` s = '''that's my string, " keep these spaces " but reduce these ''' normal, quoted,...
Use [shlex](http://docs.python.org/2/library/shlex.html) to parse your string to quoted and unquoted parts, then in unquoted parts use regex to replace sequence of whitespace with one space.
21,053,458
I'm just wondering, I'm trying to make a very simple text processing or reduction. I want to replace all spaces (without these in `" "`) by one. I also have some semantic action dependent on each character read, so I that's why I don't want to use any regex. It's some kind of pseudo FSM model. So here's the the deal: ...
2014/01/10
[ "https://Stackoverflow.com/questions/21053458", "https://Stackoverflow.com", "https://Stackoverflow.com/users/1848050/" ]
As already suggested, I'd use the standard [shlex](http://docs.python.org/2/library/shlex.html) module instead, with some adjustments: ``` import shlex def reduce_spaces(s): lex = shlex.shlex(s) lex.quotes = '"' # ignore single quotes lex.whitespace_split = True # use only spaces to separate ...
``` i = iter((i for i,char in enumerate(s) if char=='"')) zones = list(zip(*[i]*2)) # a list of all the "zones" where spaces should not be manipulated answer = [] space = False for i,char in enumerate(s): if not any(zone[0] <= i <= zone[1] for zone in zones): if char.isspace(): if not space: ...
21,053,458
I'm just wondering, I'm trying to make a very simple text processing or reduction. I want to replace all spaces (without these in `" "`) by one. I also have some semantic action dependent on each character read, so I that's why I don't want to use any regex. It's some kind of pseudo FSM model. So here's the the deal: ...
2014/01/10
[ "https://Stackoverflow.com/questions/21053458", "https://Stackoverflow.com", "https://Stackoverflow.com/users/1848050/" ]
As already suggested, I'd use the standard [shlex](http://docs.python.org/2/library/shlex.html) module instead, with some adjustments: ``` import shlex def reduce_spaces(s): lex = shlex.shlex(s) lex.quotes = '"' # ignore single quotes lex.whitespace_split = True # use only spaces to separate ...
A bit concerned whether this solution will be readable or not. Modified the string OP suggested to include multiple double quote pairs in the given string. ``` s = '''that's my string, " keep these spaces "" as well as these " reduce these" keep these spaces too " but not these ''' s_spl...
21,053,458
I'm just wondering, I'm trying to make a very simple text processing or reduction. I want to replace all spaces (without these in `" "`) by one. I also have some semantic action dependent on each character read, so I that's why I don't want to use any regex. It's some kind of pseudo FSM model. So here's the the deal: ...
2014/01/10
[ "https://Stackoverflow.com/questions/21053458", "https://Stackoverflow.com", "https://Stackoverflow.com/users/1848050/" ]
Use [shlex](http://docs.python.org/2/library/shlex.html) to parse your string to quoted and unquoted parts, then in unquoted parts use regex to replace sequence of whitespace with one space.
It is a bit of a hack but you could do reducing to a single space with a one-liner. ``` one_space = lambda s : ' '.join([part for part in s.split(' ') if part] ``` This joins the parts that are not empty, that is they have not space characters, together separated by a single space. The harder part of course is sepa...
21,053,458
I'm just wondering, I'm trying to make a very simple text processing or reduction. I want to replace all spaces (without these in `" "`) by one. I also have some semantic action dependent on each character read, so I that's why I don't want to use any regex. It's some kind of pseudo FSM model. So here's the the deal: ...
2014/01/10
[ "https://Stackoverflow.com/questions/21053458", "https://Stackoverflow.com", "https://Stackoverflow.com/users/1848050/" ]
> > > > > > > > > > > > I also have some semantic action dependent on each character read ... It's some kind of pseudo FSM model. > > > > > > > > > > > > > > > > > > You could actually implement an FSM: ``` s = '''that's my string, " keep these spaces " but reduce these ''' normal, quoted,...
As already suggested, I'd use the standard [shlex](http://docs.python.org/2/library/shlex.html) module instead, with some adjustments: ``` import shlex def reduce_spaces(s): lex = shlex.shlex(s) lex.quotes = '"' # ignore single quotes lex.whitespace_split = True # use only spaces to separate ...
21,053,458
I'm just wondering, I'm trying to make a very simple text processing or reduction. I want to replace all spaces (without these in `" "`) by one. I also have some semantic action dependent on each character read, so I that's why I don't want to use any regex. It's some kind of pseudo FSM model. So here's the the deal: ...
2014/01/10
[ "https://Stackoverflow.com/questions/21053458", "https://Stackoverflow.com", "https://Stackoverflow.com/users/1848050/" ]
As already suggested, I'd use the standard [shlex](http://docs.python.org/2/library/shlex.html) module instead, with some adjustments: ``` import shlex def reduce_spaces(s): lex = shlex.shlex(s) lex.quotes = '"' # ignore single quotes lex.whitespace_split = True # use only spaces to separate ...
It is a bit of a hack but you could do reducing to a single space with a one-liner. ``` one_space = lambda s : ' '.join([part for part in s.split(' ') if part] ``` This joins the parts that are not empty, that is they have not space characters, together separated by a single space. The harder part of course is sepa...
21,053,458
I'm just wondering, I'm trying to make a very simple text processing or reduction. I want to replace all spaces (without these in `" "`) by one. I also have some semantic action dependent on each character read, so I that's why I don't want to use any regex. It's some kind of pseudo FSM model. So here's the the deal: ...
2014/01/10
[ "https://Stackoverflow.com/questions/21053458", "https://Stackoverflow.com", "https://Stackoverflow.com/users/1848050/" ]
Use [shlex](http://docs.python.org/2/library/shlex.html) to parse your string to quoted and unquoted parts, then in unquoted parts use regex to replace sequence of whitespace with one space.
A bit concerned whether this solution will be readable or not. Modified the string OP suggested to include multiple double quote pairs in the given string. ``` s = '''that's my string, " keep these spaces "" as well as these " reduce these" keep these spaces too " but not these ''' s_spl...
36,908,552
Using `google.maps.places.AutocompleteService` how do you restrict the countries of the search (Canada and USA). If you're using `AutoComplete` you can just add the country to the options, but that doesn't appear to be the case using the `AutocompleteService`. I also found while looking through the docs `componentRestr...
2016/04/28
[ "https://Stackoverflow.com/questions/36908552", "https://Stackoverflow.com", "https://Stackoverflow.com/users/1148107/" ]
Try following this guide from [Component Filtering](https://developers.google.com/maps/documentation/geocoding/intro?hl=cs#RegionCodes): > > In a geocoding response, the Google Maps Geocoding API can return address results restricted to a specific area. The restriction is specified using the components filter. A filt...
You are using AutocompleteService.getQueryPredictions method which does not accepts componentRestrictions option. It is valid for AutocompleteService.getPlacePredictions method. See documentation: AutocompleteService: <https://developers.google.com/maps/documentation/javascript/reference#AutocompleteService> Autocomp...
36,908,552
Using `google.maps.places.AutocompleteService` how do you restrict the countries of the search (Canada and USA). If you're using `AutoComplete` you can just add the country to the options, but that doesn't appear to be the case using the `AutocompleteService`. I also found while looking through the docs `componentRestr...
2016/04/28
[ "https://Stackoverflow.com/questions/36908552", "https://Stackoverflow.com", "https://Stackoverflow.com/users/1148107/" ]
Try following this guide from [Component Filtering](https://developers.google.com/maps/documentation/geocoding/intro?hl=cs#RegionCodes): > > In a geocoding response, the Google Maps Geocoding API can return address results restricted to a specific area. The restriction is specified using the components filter. A filt...
I've used a country select option to set the value of autocomplete.setComponentRestrictions. The autcomplete will be restricted to searching from that country. Please excuse the formatting as I've just dumped it in here. ``` function setAutocompleteCountry() { var country = document.getElementById('id_coun...
36,908,552
Using `google.maps.places.AutocompleteService` how do you restrict the countries of the search (Canada and USA). If you're using `AutoComplete` you can just add the country to the options, but that doesn't appear to be the case using the `AutocompleteService`. I also found while looking through the docs `componentRestr...
2016/04/28
[ "https://Stackoverflow.com/questions/36908552", "https://Stackoverflow.com", "https://Stackoverflow.com/users/1148107/" ]
Try following this guide from [Component Filtering](https://developers.google.com/maps/documentation/geocoding/intro?hl=cs#RegionCodes): > > In a geocoding response, the Google Maps Geocoding API can return address results restricted to a specific area. The restriction is specified using the components filter. A filt...
You can use it with getPlacesPredicitions after you initiate AutocompleteServices. You can include it in the request object like so: ``` const service = new google.maps.places.AutocompleteService(); let request = { input: val, componentRestrictions: {country: 'us'}, }; service.getPlac...
90,782
After doing some yard cleanup, I realized that my panel ground wire was severed. I went to Home Depot and was told that they only carried a temporary solution (see attached photo) and that I should seek a code compliant connector. I also talked to an electrician and I was told that to be up to code that I cannot use ...
2016/05/18
[ "https://diy.stackexchange.com/questions/90782", "https://diy.stackexchange.com", "https://diy.stackexchange.com/users/5345/" ]
Here is what the National Electrical Code says: > > **250.64 Grounding Electrode Conductor Installation.** Grounding electrode conductors at the service, at each building or structure where supplied by a feeder(s) or branch circuit(s), or at a separately derived system shall be installed as specified in 250.64(A) thr...
The easiest thing to do is to go to Home Depot and buy a grounding rod. They are usually stocked in 8' and 10' lengths. Buy the grounding rod nut: it's an oval shaped brass nut with a bolt or screw in it. Then drive the grounding rod into the ground very close to the grounding wire with 3 inches of rod protruding from ...
90,782
After doing some yard cleanup, I realized that my panel ground wire was severed. I went to Home Depot and was told that they only carried a temporary solution (see attached photo) and that I should seek a code compliant connector. I also talked to an electrician and I was told that to be up to code that I cannot use ...
2016/05/18
[ "https://diy.stackexchange.com/questions/90782", "https://diy.stackexchange.com", "https://diy.stackexchange.com/users/5345/" ]
Here is what the National Electrical Code says: > > **250.64 Grounding Electrode Conductor Installation.** Grounding electrode conductors at the service, at each building or structure where supplied by a feeder(s) or branch circuit(s), or at a separately derived system shall be installed as specified in 250.64(A) thr...
Pictured is not a legal splice. [Legal crimps](https://www.google.com/#q=irreversible+compression-type+connectors) are expensive mainly due to the cost of the crimp tool - if you can find someone to loan you a tool, that might make all the difference in the world, but I wouldn't get my hopes up. And the other permitted...
90,782
After doing some yard cleanup, I realized that my panel ground wire was severed. I went to Home Depot and was told that they only carried a temporary solution (see attached photo) and that I should seek a code compliant connector. I also talked to an electrician and I was told that to be up to code that I cannot use ...
2016/05/18
[ "https://diy.stackexchange.com/questions/90782", "https://diy.stackexchange.com", "https://diy.stackexchange.com/users/5345/" ]
Pictured is not a legal splice. [Legal crimps](https://www.google.com/#q=irreversible+compression-type+connectors) are expensive mainly due to the cost of the crimp tool - if you can find someone to loan you a tool, that might make all the difference in the world, but I wouldn't get my hopes up. And the other permitted...
The easiest thing to do is to go to Home Depot and buy a grounding rod. They are usually stocked in 8' and 10' lengths. Buy the grounding rod nut: it's an oval shaped brass nut with a bolt or screw in it. Then drive the grounding rod into the ground very close to the grounding wire with 3 inches of rod protruding from ...
148,739
**EDIT: can this approach be extended to make a robust Particle Image Velocimetry implementation in Mathematica? As of now, there is no package that does PIV in Mathematica (to my knowledge) and there are several in Matlab (which use Fourier Transform to do cross-correlation between images). A crude implementation of P...
2017/06/20
[ "https://mathematica.stackexchange.com/questions/148739", "https://mathematica.stackexchange.com", "https://mathematica.stackexchange.com/users/27331/" ]
Full Code on github: <https://github.com/alihashmiii/simple-piv/blob/master/flowtrack.m> ``` PIV[image1_?ImageQ,image2_?ImageQ,win_Integer,pivmethod_]:=Module[{windowsize=win, imgDim=ImageDimensions[image1],img1NoBorder,interrogateWin,searchWins, dim,midPtsImg1,correlationPts,h,f,width,img1,img2,imgdata,height}, {img...
**Edit: based on conversation with Sander Huisman** This method is regarded as PTV and can work well for simple flows and sparse cases. For complex flows and dense cases PIV is preferred approach (see the question and the other answer) **Old** as mentioned by Henrik Schachner (<http://community.wolfram.com/groups/-/...
35,179
[Album of pictures](https://imgur.com/gallery/hBKNP) [Another album of updated pictures](https://imgur.com/a/udu44) One leaf before being "washed" with a mild soap/water mixture [![leaf](https://i.stack.imgur.com/p7kj8.jpg)](https://i.stack.imgur.com/p7kj8.jpg) Another leaf after being "washed" with a mild soap/wate...
2017/08/25
[ "https://gardening.stackexchange.com/questions/35179", "https://gardening.stackexchange.com", "https://gardening.stackexchange.com/users/19649/" ]
Unique picture and problem (s)! Looks like there are two things to consider; the spots look like a spray of some kind possibly with a surfactant/soap? Maybe it is just me but the margins of the leaves look like a cutworm has been dining? The scale is probably throwing me off. Is this plant out doors on a patio? In door...
Oedema? caused by slightly too wet atmospheric conditions? this ones stumped me but there is something quite like this found on Pelargoniums and Peperomia. the only way to get rid of this is to start again with fresh plants? I've also found something very similar on apples too again caused by overwatering? Perhaps this...
35,179
[Album of pictures](https://imgur.com/gallery/hBKNP) [Another album of updated pictures](https://imgur.com/a/udu44) One leaf before being "washed" with a mild soap/water mixture [![leaf](https://i.stack.imgur.com/p7kj8.jpg)](https://i.stack.imgur.com/p7kj8.jpg) Another leaf after being "washed" with a mild soap/wate...
2017/08/25
[ "https://gardening.stackexchange.com/questions/35179", "https://gardening.stackexchange.com", "https://gardening.stackexchange.com/users/19649/" ]
Unique picture and problem (s)! Looks like there are two things to consider; the spots look like a spray of some kind possibly with a surfactant/soap? Maybe it is just me but the margins of the leaves look like a cutworm has been dining? The scale is probably throwing me off. Is this plant out doors on a patio? In door...
Just an anecdotal answer - I saw some birds (jays) pecking at this succulent, and it left a very similar shaped indentation after they dried. I did not see insects on the plants but that may be what the birds were after. they weren't plucking leaves. [![enter image description here](https://i.stack.imgur.com/U6bLw.jpg...
35,179
[Album of pictures](https://imgur.com/gallery/hBKNP) [Another album of updated pictures](https://imgur.com/a/udu44) One leaf before being "washed" with a mild soap/water mixture [![leaf](https://i.stack.imgur.com/p7kj8.jpg)](https://i.stack.imgur.com/p7kj8.jpg) Another leaf after being "washed" with a mild soap/wate...
2017/08/25
[ "https://gardening.stackexchange.com/questions/35179", "https://gardening.stackexchange.com", "https://gardening.stackexchange.com/users/19649/" ]
It has been nearly two months and the plant's health is deteriorating rapidly. Multiple copper fungicide treatments haven't had any effect, nor has putting the plant outside in full sunlight. The disease appears to be spreading exponentially, so I'm willing to bet that this is something in the vein of cactus anthracn...
Oedema? caused by slightly too wet atmospheric conditions? this ones stumped me but there is something quite like this found on Pelargoniums and Peperomia. the only way to get rid of this is to start again with fresh plants? I've also found something very similar on apples too again caused by overwatering? Perhaps this...
35,179
[Album of pictures](https://imgur.com/gallery/hBKNP) [Another album of updated pictures](https://imgur.com/a/udu44) One leaf before being "washed" with a mild soap/water mixture [![leaf](https://i.stack.imgur.com/p7kj8.jpg)](https://i.stack.imgur.com/p7kj8.jpg) Another leaf after being "washed" with a mild soap/wate...
2017/08/25
[ "https://gardening.stackexchange.com/questions/35179", "https://gardening.stackexchange.com", "https://gardening.stackexchange.com/users/19649/" ]
It has been nearly two months and the plant's health is deteriorating rapidly. Multiple copper fungicide treatments haven't had any effect, nor has putting the plant outside in full sunlight. The disease appears to be spreading exponentially, so I'm willing to bet that this is something in the vein of cactus anthracn...
Just an anecdotal answer - I saw some birds (jays) pecking at this succulent, and it left a very similar shaped indentation after they dried. I did not see insects on the plants but that may be what the birds were after. they weren't plucking leaves. [![enter image description here](https://i.stack.imgur.com/U6bLw.jpg...
461,593
I'll try to be specific and clear. I have a file: `log.txt` it contains multiple strings that I search to print and count each of them. This is my command, only print columns coincidences in the `log.txt` file: ``` sed -n '1p' log.txt | awk '{ s = ""; for(i = 25; i <= NF; i++) s = s $i "\n"; print s}' ``` **Expl...
2018/08/09
[ "https://unix.stackexchange.com/questions/461593", "https://unix.stackexchange.com", "https://unix.stackexchange.com/users/294877/" ]
Here's how I'd approach this problem: ``` awk '{n=1;if(NR==1)n=25;for(i=n;i<=NF;i++) a[$i]++} END{for(val in a) print val,a[val]}' input.txt ``` The fact that you want to capture fields 25 and after in the first line, requires us to check `NR` variable, and set `n` variable which will be used in the loop. As for `a[...
How about ``` awk '{for (i=25; i<=NF; i++) print $i; exit}' file | sort | uniq -c 6 string1 6 string2 6 string3 6 string4 6 string5 6 stringN ``` **EDIT:** In your newly added sample input, you don't have 24 fields to ignore before counting starts, and the limitation to the first line (as inferred from y...
13,344,239
I am trying to use PHPMailer to send a gmail email. I followed this [post](https://stackoverflow.com/questions/4982821/send-email-from-localhost-with-gmailwindows) In order to do this, I set up a function shown below: ``` function sendEmail($email, $name) { $mail = new PHPMailer(); $mail->IsSMTP(); // send v...
2012/11/12
[ "https://Stackoverflow.com/questions/13344239", "https://Stackoverflow.com", "https://Stackoverflow.com/users/1724140/" ]
**Here is a working example:** ``` <?php function SendMail( $ToEmail, $MessageHTML, $MessageTEXT ) { require_once ( 'class.phpmailer.php' ); // Add the path as appropriate $Mail = new PHPMailer(); $Mail->IsSMTP(); // Use SMTP $Mail->Host = "smtp.gmail.com"; // Sets SMTP server $Mail->SMTPDebug = 2; ...
Your Code is not working because you did not set the `SMTPSecure` option to `ssl` which is required for `gmail` account ``` include_once "/lib/phpmailer/PHPMailer.class.php"; include_once "/lib/phpmailer/SMTP.class.php"; include_once "/lib/phpmailer/POP3.class.php"; $mail = new PHPMailer(true); $mail->IsSMTP(); try...
13,344,239
I am trying to use PHPMailer to send a gmail email. I followed this [post](https://stackoverflow.com/questions/4982821/send-email-from-localhost-with-gmailwindows) In order to do this, I set up a function shown below: ``` function sendEmail($email, $name) { $mail = new PHPMailer(); $mail->IsSMTP(); // send v...
2012/11/12
[ "https://Stackoverflow.com/questions/13344239", "https://Stackoverflow.com", "https://Stackoverflow.com/users/1724140/" ]
**Here is a working example:** ``` <?php function SendMail( $ToEmail, $MessageHTML, $MessageTEXT ) { require_once ( 'class.phpmailer.php' ); // Add the path as appropriate $Mail = new PHPMailer(); $Mail->IsSMTP(); // Use SMTP $Mail->Host = "smtp.gmail.com"; // Sets SMTP server $Mail->SMTPDebug = 2; ...
``` $mail = new PHPMailer(); // Set up SMTP $mail->IsSMTP(); // Sets up a SMTP connection $mail->SMTPDebug = 0; // This will print debugging info $mail->SMTPAuth = true; // Connection with the SMTP does require authorizati...
13,344,239
I am trying to use PHPMailer to send a gmail email. I followed this [post](https://stackoverflow.com/questions/4982821/send-email-from-localhost-with-gmailwindows) In order to do this, I set up a function shown below: ``` function sendEmail($email, $name) { $mail = new PHPMailer(); $mail->IsSMTP(); // send v...
2012/11/12
[ "https://Stackoverflow.com/questions/13344239", "https://Stackoverflow.com", "https://Stackoverflow.com/users/1724140/" ]
In such kinds of issues it is important to check how it runs on development environment before you deploy to production, since there are many server issues that might be related to the problem. Because of that before anything set debug to true and check the messages you get. ``` $mail->SMTPDebug = 1; ``` That said,...
**2019 Update phpMailer with Gmail** I know this is an old question but it still comes up in Google and I need to update the answer to this. If you are experience the issue (where many do) with phpmailer that it only works when you comment out `IsSMTP()` when trying to use gmail's SMTP then here is why. When you com...
13,344,239
I am trying to use PHPMailer to send a gmail email. I followed this [post](https://stackoverflow.com/questions/4982821/send-email-from-localhost-with-gmailwindows) In order to do this, I set up a function shown below: ``` function sendEmail($email, $name) { $mail = new PHPMailer(); $mail->IsSMTP(); // send v...
2012/11/12
[ "https://Stackoverflow.com/questions/13344239", "https://Stackoverflow.com", "https://Stackoverflow.com/users/1724140/" ]
**Here is a working example:** ``` <?php function SendMail( $ToEmail, $MessageHTML, $MessageTEXT ) { require_once ( 'class.phpmailer.php' ); // Add the path as appropriate $Mail = new PHPMailer(); $Mail->IsSMTP(); // Use SMTP $Mail->Host = "smtp.gmail.com"; // Sets SMTP server $Mail->SMTPDebug = 2; ...
Try... ``` <?php require_once('class.phpmailer.php'); //include("class.smtp.php"); // optional, gets called from within class.phpmailer.php if not already loaded $mail = new PHPMailer(true); // the true param means it will throw exceptions on errors, which we need to catch $mail->IsSMTP(); // telling the class to us...
13,344,239
I am trying to use PHPMailer to send a gmail email. I followed this [post](https://stackoverflow.com/questions/4982821/send-email-from-localhost-with-gmailwindows) In order to do this, I set up a function shown below: ``` function sendEmail($email, $name) { $mail = new PHPMailer(); $mail->IsSMTP(); // send v...
2012/11/12
[ "https://Stackoverflow.com/questions/13344239", "https://Stackoverflow.com", "https://Stackoverflow.com/users/1724140/" ]
Your Code is not working because you did not set the `SMTPSecure` option to `ssl` which is required for `gmail` account ``` include_once "/lib/phpmailer/PHPMailer.class.php"; include_once "/lib/phpmailer/SMTP.class.php"; include_once "/lib/phpmailer/POP3.class.php"; $mail = new PHPMailer(true); $mail->IsSMTP(); try...
I have send mail from xampp server from localhost This code is perfectly work for me 1: down load phpmailer from <https://github.com/PHPMailer/PHPMailer> 2: go to xampp and search php.ini 3 In php.ini search ``` ;extension=php_openssl.dll remove(;) extension=php_openssl.dll ``` then save and r...
13,344,239
I am trying to use PHPMailer to send a gmail email. I followed this [post](https://stackoverflow.com/questions/4982821/send-email-from-localhost-with-gmailwindows) In order to do this, I set up a function shown below: ``` function sendEmail($email, $name) { $mail = new PHPMailer(); $mail->IsSMTP(); // send v...
2012/11/12
[ "https://Stackoverflow.com/questions/13344239", "https://Stackoverflow.com", "https://Stackoverflow.com/users/1724140/" ]
In such kinds of issues it is important to check how it runs on development environment before you deploy to production, since there are many server issues that might be related to the problem. Because of that before anything set debug to true and check the messages you get. ``` $mail->SMTPDebug = 1; ``` That said,...
I have send mail from xampp server from localhost This code is perfectly work for me 1: down load phpmailer from <https://github.com/PHPMailer/PHPMailer> 2: go to xampp and search php.ini 3 In php.ini search ``` ;extension=php_openssl.dll remove(;) extension=php_openssl.dll ``` then save and r...
13,344,239
I am trying to use PHPMailer to send a gmail email. I followed this [post](https://stackoverflow.com/questions/4982821/send-email-from-localhost-with-gmailwindows) In order to do this, I set up a function shown below: ``` function sendEmail($email, $name) { $mail = new PHPMailer(); $mail->IsSMTP(); // send v...
2012/11/12
[ "https://Stackoverflow.com/questions/13344239", "https://Stackoverflow.com", "https://Stackoverflow.com/users/1724140/" ]
**Here is a working example:** ``` <?php function SendMail( $ToEmail, $MessageHTML, $MessageTEXT ) { require_once ( 'class.phpmailer.php' ); // Add the path as appropriate $Mail = new PHPMailer(); $Mail->IsSMTP(); // Use SMTP $Mail->Host = "smtp.gmail.com"; // Sets SMTP server $Mail->SMTPDebug = 2; ...
I have send mail from xampp server from localhost This code is perfectly work for me 1: down load phpmailer from <https://github.com/PHPMailer/PHPMailer> 2: go to xampp and search php.ini 3 In php.ini search ``` ;extension=php_openssl.dll remove(;) extension=php_openssl.dll ``` then save and r...
13,344,239
I am trying to use PHPMailer to send a gmail email. I followed this [post](https://stackoverflow.com/questions/4982821/send-email-from-localhost-with-gmailwindows) In order to do this, I set up a function shown below: ``` function sendEmail($email, $name) { $mail = new PHPMailer(); $mail->IsSMTP(); // send v...
2012/11/12
[ "https://Stackoverflow.com/questions/13344239", "https://Stackoverflow.com", "https://Stackoverflow.com/users/1724140/" ]
Your Code is not working because you did not set the `SMTPSecure` option to `ssl` which is required for `gmail` account ``` include_once "/lib/phpmailer/PHPMailer.class.php"; include_once "/lib/phpmailer/SMTP.class.php"; include_once "/lib/phpmailer/POP3.class.php"; $mail = new PHPMailer(true); $mail->IsSMTP(); try...
In such kinds of issues it is important to check how it runs on development environment before you deploy to production, since there are many server issues that might be related to the problem. Because of that before anything set debug to true and check the messages you get. ``` $mail->SMTPDebug = 1; ``` That said,...
13,344,239
I am trying to use PHPMailer to send a gmail email. I followed this [post](https://stackoverflow.com/questions/4982821/send-email-from-localhost-with-gmailwindows) In order to do this, I set up a function shown below: ``` function sendEmail($email, $name) { $mail = new PHPMailer(); $mail->IsSMTP(); // send v...
2012/11/12
[ "https://Stackoverflow.com/questions/13344239", "https://Stackoverflow.com", "https://Stackoverflow.com/users/1724140/" ]
In such kinds of issues it is important to check how it runs on development environment before you deploy to production, since there are many server issues that might be related to the problem. Because of that before anything set debug to true and check the messages you get. ``` $mail->SMTPDebug = 1; ``` That said,...
Try... ``` <?php require_once('class.phpmailer.php'); //include("class.smtp.php"); // optional, gets called from within class.phpmailer.php if not already loaded $mail = new PHPMailer(true); // the true param means it will throw exceptions on errors, which we need to catch $mail->IsSMTP(); // telling the class to us...
13,344,239
I am trying to use PHPMailer to send a gmail email. I followed this [post](https://stackoverflow.com/questions/4982821/send-email-from-localhost-with-gmailwindows) In order to do this, I set up a function shown below: ``` function sendEmail($email, $name) { $mail = new PHPMailer(); $mail->IsSMTP(); // send v...
2012/11/12
[ "https://Stackoverflow.com/questions/13344239", "https://Stackoverflow.com", "https://Stackoverflow.com/users/1724140/" ]
**Here is a working example:** ``` <?php function SendMail( $ToEmail, $MessageHTML, $MessageTEXT ) { require_once ( 'class.phpmailer.php' ); // Add the path as appropriate $Mail = new PHPMailer(); $Mail->IsSMTP(); // Use SMTP $Mail->Host = "smtp.gmail.com"; // Sets SMTP server $Mail->SMTPDebug = 2; ...
In such kinds of issues it is important to check how it runs on development environment before you deploy to production, since there are many server issues that might be related to the problem. Because of that before anything set debug to true and check the messages you get. ``` $mail->SMTPDebug = 1; ``` That said,...
65,306,019
I want to split this string into an array using Javascript: ```js var str = "Lorem ipsum<br>dolor sit amet, <span style='color:red'>consectetur</span> adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.<br>At varius vel<br>pharetra vel turpis nunc eget lorem dolor." ``` So it will ou...
2020/12/15
[ "https://Stackoverflow.com/questions/65306019", "https://Stackoverflow.com", "https://Stackoverflow.com/users/1954892/" ]
View ``` <ListView x:Name="ListView1" > <ListView.View> <GridView> <GridViewColumn Header="id" DisplayMemberBinding="{Binding Path=Id}"/> <GridViewColumn Header="name" DisplayMemberBinding="{Binding Path=Name}"/> <GridViewColumn Header="age" DisplayMemberBinding="{Bindin...
As far as I remember, you should just have to ``` _listSpendingView.Items.Add(_categoryNames[0]); ``` The Items collection will hold the element for later retrieval and will call ToString() automatically for displaying.
28,356,632
I'm trying to write a method that capitalizes the first letter of each word in a string. ``` def capitalize(string) arr1 = string.split(" ") arr2 = [] arr1.each do |i| arr2 << i.split(//) end arr2.each do |i| i[0].upcase! i = i.join end arr2.join(" ") end ``` In my second `each` statement, ...
2015/02/06
[ "https://Stackoverflow.com/questions/28356632", "https://Stackoverflow.com", "https://Stackoverflow.com/users/3839058/" ]
The key here is you're trying to modify `i` while inside an `each` block, but as `i` is a local variable, it has no effect on the original. What you want is: ``` arr2.collect! do |i| i[0].upcase! i.join end ``` This rewrites the contents of the array. What you can do, though, is roll this up into a simple `gsu...
I believe in this code here: ``` arr1.each do |i| arr2 << i.split(//) end ``` You are splitting each character of each word from the first array. This is essentially going to give you an array of array's. If you put this block in after your second loop, you can see the structure: ``` arr2.each do |i| puts("...
71,372,593
I implement my `MapStore` to save entries to database (external datastore), but there a issue of starting new node when old member storing entries to database. Firstly, cluster A has only `Member1`. Client puts 20K entries to the cluster then Member1 starts saving entries by batch to database (write-behind mode). When...
2022/03/06
[ "https://Stackoverflow.com/questions/71372593", "https://Stackoverflow.com", "https://Stackoverflow.com/users/3792435/" ]
Since `storeAll()` doesn’t signal the progress back to Hazelcast, Hazelcast has no means of restoring the write operation from where it left off. It must simply restart it from the scratch on the new set of cluster members. As such, the `storeAll()` implementation should be made idempotent. E.g. it must be ready to su...
There is no distributed coordination for write-behind. Means adding or removing nodes can cause data loss or duplications, no guarantee here, current implementation is working as a best effort manner. If you ask for a workaround, you can have a distributed id supplier and before putting objects in IMap, you can set an...
114,897
While practicing flute I noticed I find it much easier to have a good tone when I practice in my living room then when I practice in my normal (music)room. I was thinking that this could be because of how the room acoustics influence the sound. My living room is spacious, while the other room is a lot smaller, more cl...
2021/06/01
[ "https://music.stackexchange.com/questions/114897", "https://music.stackexchange.com", "https://music.stackexchange.com/users/13594/" ]
Particularly on flute the room acoustics have a huge influence on the way the instrument sounds. If you are playing in a larger room with a lot of reverb you **think** you are producing a huge sound, and if you are playing in a room with highly absorbent walls you think you are producing a weak sound. Really you are pr...
While it's pleasing to play/practice in a room which enhances the acoustics, if you really want to improve the "source sound" (i.e. what you're generating), a well-damped or anechoic room is best. It'll sound crummy, but will reveal the tiny faults in pitch or tone, allowing you to improve your technique. Every now an...
114,897
While practicing flute I noticed I find it much easier to have a good tone when I practice in my living room then when I practice in my normal (music)room. I was thinking that this could be because of how the room acoustics influence the sound. My living room is spacious, while the other room is a lot smaller, more cl...
2021/06/01
[ "https://music.stackexchange.com/questions/114897", "https://music.stackexchange.com", "https://music.stackexchange.com/users/13594/" ]
While it's pleasing to play/practice in a room which enhances the acoustics, if you really want to improve the "source sound" (i.e. what you're generating), a well-damped or anechoic room is best. It'll sound crummy, but will reveal the tiny faults in pitch or tone, allowing you to improve your technique. Every now an...
Room acoustics can be an important factor when practicing/performing music. If you are like me, I need to hear pleasant sound when I'm practicing or performing. That's part of what makes it appealing. But I also need to be somewhat versatile and be able to maximize the quality of sound in different environments. To acc...
114,897
While practicing flute I noticed I find it much easier to have a good tone when I practice in my living room then when I practice in my normal (music)room. I was thinking that this could be because of how the room acoustics influence the sound. My living room is spacious, while the other room is a lot smaller, more cl...
2021/06/01
[ "https://music.stackexchange.com/questions/114897", "https://music.stackexchange.com", "https://music.stackexchange.com/users/13594/" ]
While it's pleasing to play/practice in a room which enhances the acoustics, if you really want to improve the "source sound" (i.e. what you're generating), a well-damped or anechoic room is best. It'll sound crummy, but will reveal the tiny faults in pitch or tone, allowing you to improve your technique. Every now an...
Both are suitable but I would recommend: * Practice room for normal practice * Living room as a treat Which is exactly what you're probably doing. I used to habitually practice in the bathroom because the acoustics were excellent. It made me slightly lazy and a little physically weaker than I could have been. I didn'...
114,897
While practicing flute I noticed I find it much easier to have a good tone when I practice in my living room then when I practice in my normal (music)room. I was thinking that this could be because of how the room acoustics influence the sound. My living room is spacious, while the other room is a lot smaller, more cl...
2021/06/01
[ "https://music.stackexchange.com/questions/114897", "https://music.stackexchange.com", "https://music.stackexchange.com/users/13594/" ]
Particularly on flute the room acoustics have a huge influence on the way the instrument sounds. If you are playing in a larger room with a lot of reverb you **think** you are producing a huge sound, and if you are playing in a room with highly absorbent walls you think you are producing a weak sound. Really you are pr...
I would recommend practicing in a mixture of different settings. Personally, I used to have problems playing too quietly in small spaces, because it felt like I didn't need to play as loudly to fill the room. As a performer, I think it's important to get used to a lot of different environments, so that you can feel com...
114,897
While practicing flute I noticed I find it much easier to have a good tone when I practice in my living room then when I practice in my normal (music)room. I was thinking that this could be because of how the room acoustics influence the sound. My living room is spacious, while the other room is a lot smaller, more cl...
2021/06/01
[ "https://music.stackexchange.com/questions/114897", "https://music.stackexchange.com", "https://music.stackexchange.com/users/13594/" ]
Particularly on flute the room acoustics have a huge influence on the way the instrument sounds. If you are playing in a larger room with a lot of reverb you **think** you are producing a huge sound, and if you are playing in a room with highly absorbent walls you think you are producing a weak sound. Really you are pr...
Room acoustics can be an important factor when practicing/performing music. If you are like me, I need to hear pleasant sound when I'm practicing or performing. That's part of what makes it appealing. But I also need to be somewhat versatile and be able to maximize the quality of sound in different environments. To acc...
114,897
While practicing flute I noticed I find it much easier to have a good tone when I practice in my living room then when I practice in my normal (music)room. I was thinking that this could be because of how the room acoustics influence the sound. My living room is spacious, while the other room is a lot smaller, more cl...
2021/06/01
[ "https://music.stackexchange.com/questions/114897", "https://music.stackexchange.com", "https://music.stackexchange.com/users/13594/" ]
Particularly on flute the room acoustics have a huge influence on the way the instrument sounds. If you are playing in a larger room with a lot of reverb you **think** you are producing a huge sound, and if you are playing in a room with highly absorbent walls you think you are producing a weak sound. Really you are pr...
Both are suitable but I would recommend: * Practice room for normal practice * Living room as a treat Which is exactly what you're probably doing. I used to habitually practice in the bathroom because the acoustics were excellent. It made me slightly lazy and a little physically weaker than I could have been. I didn'...
114,897
While practicing flute I noticed I find it much easier to have a good tone when I practice in my living room then when I practice in my normal (music)room. I was thinking that this could be because of how the room acoustics influence the sound. My living room is spacious, while the other room is a lot smaller, more cl...
2021/06/01
[ "https://music.stackexchange.com/questions/114897", "https://music.stackexchange.com", "https://music.stackexchange.com/users/13594/" ]
I would recommend practicing in a mixture of different settings. Personally, I used to have problems playing too quietly in small spaces, because it felt like I didn't need to play as loudly to fill the room. As a performer, I think it's important to get used to a lot of different environments, so that you can feel com...
Room acoustics can be an important factor when practicing/performing music. If you are like me, I need to hear pleasant sound when I'm practicing or performing. That's part of what makes it appealing. But I also need to be somewhat versatile and be able to maximize the quality of sound in different environments. To acc...
114,897
While practicing flute I noticed I find it much easier to have a good tone when I practice in my living room then when I practice in my normal (music)room. I was thinking that this could be because of how the room acoustics influence the sound. My living room is spacious, while the other room is a lot smaller, more cl...
2021/06/01
[ "https://music.stackexchange.com/questions/114897", "https://music.stackexchange.com", "https://music.stackexchange.com/users/13594/" ]
I would recommend practicing in a mixture of different settings. Personally, I used to have problems playing too quietly in small spaces, because it felt like I didn't need to play as loudly to fill the room. As a performer, I think it's important to get used to a lot of different environments, so that you can feel com...
Both are suitable but I would recommend: * Practice room for normal practice * Living room as a treat Which is exactly what you're probably doing. I used to habitually practice in the bathroom because the acoustics were excellent. It made me slightly lazy and a little physically weaker than I could have been. I didn'...
54,501,591
im writing a code which will show the result is to display the individual digits and the decimal equivalent. For e.g., if n is 6 and the number entered is 110011, the printout will be 1 1 0 0 1 1 The decimal equivalent is 51 I have already sourced and edited a code, however it shows "110011 110011 110011 110011 11001...
2019/02/03
[ "https://Stackoverflow.com/questions/54501591", "https://Stackoverflow.com", "https://Stackoverflow.com/users/11007901/" ]
`n = int(e[2:10], 16)` takes characters 2..10 from `e` and interprets them as hexadecimal characters to interpret as an integer. That is, for your input, ```py >>> e = '0100000180a6fa85de8dd3...' >>> f = e[2:10] >>> f '00000180' >>> int(f, 16) 384 ``` so you should be able to do the same with something like `Conve...
At first, you're using string slicing (from 2nd to 9th character) using [2:10]. Then you're converting them to (decimal) `int` from `hexadecimal`. Which will result `n = 384`.
4,282,321
The question is as follows: Divide the following Polynomial and place the result into Division Statement. $$\frac{m^4+n^4}{m^2+n^2}$$ Recently did this on a test and was stumped. A few calulators and classmates later, I'm still stumped. I know that the division statement is $P(x) = q(x)\*d(x) + R$. And I know that t...
2021/10/20
[ "https://math.stackexchange.com/questions/4282321", "https://math.stackexchange.com", "https://math.stackexchange.com/users/923940/" ]
You are trying to solve $\nabla f(x)=0$. You perform Taylor expansion near the current point $x$ and try to set the new gradient equal to $\nabla f(x^\*)=0$. So you want $0=\nabla f(x) + H(x) \Delta x$, using Taylor's theorem. Rearranging you get $\Delta x = -H(x)^{-1} (\nabla f(x))$. What's more confusing is why the ...
Working off of Ian's answer, it seems the equation is derived thus. You have some function $f(\mathbf{\vec{x}})$, whose gradient is given $\nabla f(\mathbf{\vec{x}})$. Extreme points can be found at $\nabla f(\mathbf{\vec{x}}) = 0$, and so we would like to approximate this function with a Taylor series: $$\begin{split...
57,623,431
In a green screen session, caling a program MYLIB/TESTPRG works when my library list is set to QGPL, QTEMP, VENDRLIB1, VENDRLIB2, VENDRLIB3. I can execute `call MYLIB/TESTPRG` on a green screen command line. I want to be able to run this command from my Windows client. I created an external stored procedure MYLIB/TEST...
2019/08/23
[ "https://Stackoverflow.com/questions/57623431", "https://Stackoverflow.com", "https://Stackoverflow.com/users/4086219/" ]
You could try the `volume` plugin <https://pub.dev/packages/volume> It has a get current volumne method ``` await Volume.getVol ```
Using Flutter you can't do it directly. you can make native functionality to flutter using plugins. [exist plugins](https://pub.dartlang.org/packages?q=audio). It's not a big deal to create a plugin. [developing\_plugin\_packages](https://flutter.io/docs/development/packages-and-plugins/developing-packages#developing-p...
39,102,449
I have two APIs - One to search for a phone number (let's say <http://example.com/api/?phone=1234567890>) which returns the **id** of the person associated with that phone number And another (<http://example.com/api/con/>**id**/) to fetch for contact details. Basically, in the second call, I have to include the id ...
2016/08/23
[ "https://Stackoverflow.com/questions/39102449", "https://Stackoverflow.com", "https://Stackoverflow.com/users/6748058/" ]
Since there is a change in dynamic path so if you are trying to call it from local server you need to create .htaccess file with following rules: ``` # Turn rewrite engine on Options +FollowSymlinks RewriteEngine on # map neat URL to internal URL RewriteRule ^api/con/([0-9]+)/?$ RestController.php?phone=single&id=$1 ...
You need to use @Path annotation. ``` public interface RequestInterface { BASE_URL = "http://example.com/api/"; @GET("con/{id}") Call<YourFetchResponse> contactFetch(@Path("id") String id); @GET("") Call<YourIdResponse> contactId(@Query("phone") String phone); } ``` Good luck there.
39,102,449
I have two APIs - One to search for a phone number (let's say <http://example.com/api/?phone=1234567890>) which returns the **id** of the person associated with that phone number And another (<http://example.com/api/con/>**id**/) to fetch for contact details. Basically, in the second call, I have to include the id ...
2016/08/23
[ "https://Stackoverflow.com/questions/39102449", "https://Stackoverflow.com", "https://Stackoverflow.com/users/6748058/" ]
Since there is a change in dynamic path so if you are trying to call it from local server you need to create .htaccess file with following rules: ``` # Turn rewrite engine on Options +FollowSymlinks RewriteEngine on # map neat URL to internal URL RewriteRule ^api/con/([0-9]+)/?$ RestController.php?phone=single&id=$1 ...
``` public interface RequestInterface { @GET("serviceURL") Call<JSONResponse> getPhoneDetails(@Query("api_key") String apiKey); @GET("serviceURL") Call<JSONResponse> getIdDetails(@Query("api_key") String apiKey); } ``` onResponse of First service call second service.
348,930
I've been scratching my head regarding this and thought I'd post it to see if I was missing anything obvious! The scenario is this: The server contains a very large folder called "Programmes" which is a LVM volume and is shared over the network (mixed between Ubuntu and OSX) with all users granted R/W access. A webc...
2012/01/11
[ "https://serverfault.com/questions/348930", "https://serverfault.com", "https://serverfault.com/users/106690/" ]
NFS does not "share folders" (it is not SMB/CIFS). It exports whole file systems. You have to specify which file systems you want to be exported via NFS. If you mount or link a file system within an exported file system, it will not inheiret the export, you have to explicitly export it as well.
What you're asking for requires NFS version 4: > > NFS version 4 servers create and maintain a pseudo-file system, which provides clients with seamless access to all exported objects on the server. Prior to NFS version 4, the pseudo-file system did not exist. Clients were forced to mount each shared server file syste...
189,009
I develop android game using cocos2d-x. For android release, it contain this fields in `proj.android/gradle.properties`: ``` # uncomment it and fill in sign information for release mode #RELEASE_STORE_FILE=file path of keystore #RELEASE_STORE_PASSWORD=password of keystore #RELEASE_KEY_ALIAS=alias of key #RELEASE_KEY_P...
2018/07/05
[ "https://security.stackexchange.com/questions/189009", "https://security.stackexchange.com", "https://security.stackexchange.com/users/151834/" ]
1. Not really, no. As nbering said, it is very hard to remove it from git history if you ever want to share it. Git is also not really meant to hold this kind of information. 2. Not much. The password only encrypts the key, so without the encrypted key, they can't really do anything. 3. A lot. They can create a version...
Why not? -------- It’s all a matter of risk. My main argument against is that if you ever want to share that repository with someone who shouldn’t have the password, it’s really hard to remove the password from the git history. You need to rewrite all history to that point. So you’d have to rewrite all the commits, or...
34,125,174
I am typing a README document in Markdown using Visual Studio Code. I found an online browser-based tool called [Markdown Live Preview](http://markdownlivepreview.com/), but I was wondering if VSCode had any sort of handy split-window pane already built into it.
2015/12/07
[ "https://Stackoverflow.com/questions/34125174", "https://Stackoverflow.com", "https://Stackoverflow.com/users/5647423/" ]
Make sure that your document is saved as a Markdown file in VSCode: File > Save as > README.md (The text will be color-coded.) In the top right corner of VSCode, click the "Split Editor" icon to enable side-by-side editing. Click the "Open Preview" magnifying glass icon to view a live preview of your Markdown synta...
The *"Mouse-Clicks" way* seems inefficient, try *vscode pre-defined keybind* as `markdown.showPreviewToSide`: ``` ctrl+k v ``` which means when you are editing a markdown file, press `Ctrl+k`, then loosen both and press `v`, it comes a preview of current markdown file in the other splited side.
34,125,174
I am typing a README document in Markdown using Visual Studio Code. I found an online browser-based tool called [Markdown Live Preview](http://markdownlivepreview.com/), but I was wondering if VSCode had any sort of handy split-window pane already built into it.
2015/12/07
[ "https://Stackoverflow.com/questions/34125174", "https://Stackoverflow.com", "https://Stackoverflow.com/users/5647423/" ]
Make sure that your document is saved as a Markdown file in VSCode: File > Save as > README.md (The text will be color-coded.) In the top right corner of VSCode, click the "Split Editor" icon to enable side-by-side editing. Click the "Open Preview" magnifying glass icon to view a live preview of your Markdown synta...
Allow me to point out an alternate way of working with Markdown in vscode. The extension "Instant Markdown" will launch a local browser preview on :1090 (I believe) that allows you to position the render wherever you like. This is a pleasant way of watching the document grow in real time in a format that is much more l...
34,125,174
I am typing a README document in Markdown using Visual Studio Code. I found an online browser-based tool called [Markdown Live Preview](http://markdownlivepreview.com/), but I was wondering if VSCode had any sort of handy split-window pane already built into it.
2015/12/07
[ "https://Stackoverflow.com/questions/34125174", "https://Stackoverflow.com", "https://Stackoverflow.com/users/5647423/" ]
Make sure that your document is saved as a Markdown file in VSCode: File > Save as > README.md (The text will be color-coded.) In the top right corner of VSCode, click the "Split Editor" icon to enable side-by-side editing. Click the "Open Preview" magnifying glass icon to view a live preview of your Markdown synta...
Another command that can be used is "Markdown: Open Preview" which can be called both from intellisence (`ctrl + shift + p`, start typing "Markdown" to see available commands) or by a direct keybinding: default is `ctrl + shift + v`, custom may be set at Keyboard Shortcuts (`ctrl + k ctrl + s`). However, this command ...
34,125,174
I am typing a README document in Markdown using Visual Studio Code. I found an online browser-based tool called [Markdown Live Preview](http://markdownlivepreview.com/), but I was wondering if VSCode had any sort of handy split-window pane already built into it.
2015/12/07
[ "https://Stackoverflow.com/questions/34125174", "https://Stackoverflow.com", "https://Stackoverflow.com/users/5647423/" ]
The *"Mouse-Clicks" way* seems inefficient, try *vscode pre-defined keybind* as `markdown.showPreviewToSide`: ``` ctrl+k v ``` which means when you are editing a markdown file, press `Ctrl+k`, then loosen both and press `v`, it comes a preview of current markdown file in the other splited side.
Allow me to point out an alternate way of working with Markdown in vscode. The extension "Instant Markdown" will launch a local browser preview on :1090 (I believe) that allows you to position the render wherever you like. This is a pleasant way of watching the document grow in real time in a format that is much more l...
34,125,174
I am typing a README document in Markdown using Visual Studio Code. I found an online browser-based tool called [Markdown Live Preview](http://markdownlivepreview.com/), but I was wondering if VSCode had any sort of handy split-window pane already built into it.
2015/12/07
[ "https://Stackoverflow.com/questions/34125174", "https://Stackoverflow.com", "https://Stackoverflow.com/users/5647423/" ]
The *"Mouse-Clicks" way* seems inefficient, try *vscode pre-defined keybind* as `markdown.showPreviewToSide`: ``` ctrl+k v ``` which means when you are editing a markdown file, press `Ctrl+k`, then loosen both and press `v`, it comes a preview of current markdown file in the other splited side.
Another command that can be used is "Markdown: Open Preview" which can be called both from intellisence (`ctrl + shift + p`, start typing "Markdown" to see available commands) or by a direct keybinding: default is `ctrl + shift + v`, custom may be set at Keyboard Shortcuts (`ctrl + k ctrl + s`). However, this command ...
34,125,174
I am typing a README document in Markdown using Visual Studio Code. I found an online browser-based tool called [Markdown Live Preview](http://markdownlivepreview.com/), but I was wondering if VSCode had any sort of handy split-window pane already built into it.
2015/12/07
[ "https://Stackoverflow.com/questions/34125174", "https://Stackoverflow.com", "https://Stackoverflow.com/users/5647423/" ]
Another command that can be used is "Markdown: Open Preview" which can be called both from intellisence (`ctrl + shift + p`, start typing "Markdown" to see available commands) or by a direct keybinding: default is `ctrl + shift + v`, custom may be set at Keyboard Shortcuts (`ctrl + k ctrl + s`). However, this command ...
Allow me to point out an alternate way of working with Markdown in vscode. The extension "Instant Markdown" will launch a local browser preview on :1090 (I believe) that allows you to position the render wherever you like. This is a pleasant way of watching the document grow in real time in a format that is much more l...
62,605,283
I am meeting a trouble when i try spliting a numpy array with *numpy.char.split()*. the return was that strings was sliced into **list type**, whereas i want to return a **numpy array** nested in the numpyarray. the following is its detail: My code: ``` print('sol') print(sol) sol1 = np.char.split(sol,', ') print('so...
2020/06/27
[ "https://Stackoverflow.com/questions/62605283", "https://Stackoverflow.com", "https://Stackoverflow.com/users/8655940/" ]
Yep... this is slightly confusing. When you run `setValues` the `values` property is what it was on the last render. So if you did this: ``` const [value, setValue] = useState(1); useEffect(() => { setValue(value + 1); setValue(value + 1); setValue(value + 1); }, []); ``` `value` will be `2` after the first ...
You can set all of them in one `useEffect` like this. ``` useEffect(() => { setValues(prevValues => ({ ...prevValues, vacancyAmount: formatter .format( (prevValues.rentAmount.toString().replace(/,/g, "") * prevValues.vacancyRate) / 100 ) .replac...
22,614,943
I have a table in my Oracle 11g database with non formatted text in a column, which shall be displayed as it was entered. Anyway, a user shall be able to search for that text in any possible format (regarding punctuation). I fulfil that requirement by introducing a function-based index on the column: ``` CREATE INDEX...
2014/03/24
[ "https://Stackoverflow.com/questions/22614943", "https://Stackoverflow.com", "https://Stackoverflow.com/users/1782868/" ]
Although it doesn't answer why the bind variable stops the index being used, or why a hint is ignored (which I've verified, but Oracle is free to ignore a hint I suppose - hence the name), you could take another approach and use a virtual column instead: ``` drop index my_regex_index; alter table my_table add my_rege...
See the section on [the query optimizer](http://docs.oracle.com/cd/B28359_01/server.111/b28274/optimops.htm#PFGRF10101) in the Performance and Tuning Guide. In the table of Optimizer Operations it says: 1. Evaluation of expressions and conditions - The optimizer first evaluates expressions and conditions **containing ...
22,614,943
I have a table in my Oracle 11g database with non formatted text in a column, which shall be displayed as it was entered. Anyway, a user shall be able to search for that text in any possible format (regarding punctuation). I fulfil that requirement by introducing a function-based index on the column: ``` CREATE INDEX...
2014/03/24
[ "https://Stackoverflow.com/questions/22614943", "https://Stackoverflow.com", "https://Stackoverflow.com/users/1782868/" ]
Although it doesn't answer why the bind variable stops the index being used, or why a hint is ignored (which I've verified, but Oracle is free to ignore a hint I suppose - hence the name), you could take another approach and use a virtual column instead: ``` drop index my_regex_index; alter table my_table add my_rege...
Finally, I ended up changing Hibernates Oracle dialect. Depending on Oracle using my hint was a bit too vague and would have required a client change as well. Alex Poole's answer was good, but would involve database evolution AND a client change. So here goes my solution: I subclassed Hibernates Oracle10gDialect (an 1...
603,683
I have installed kvm. and i installed Ubuntu as guest OS in kvm. Now I want to centralize the system. where my users will log in to to their guest account remotely. if yes how to do this?
2015/03/31
[ "https://askubuntu.com/questions/603683", "https://askubuntu.com", "https://askubuntu.com/users/171495/" ]
You need caret browsing. * press F7 for enable to caret browsing. * open browsing window then press tab button, then select text using arrow keys. Finally **ctrl+c** and **ctrl+v**.
Highlight the text and push ctrl+c and hit ctrl+v where you want to paste the text. ? Most web-browsers come with the ability to simply right-click a link and either copy the link address to memory or open in a seperate window/tab.
27,828,536
So I have a bunch of objects in Core Data and want them to auto delete after X amount of days (this would be based off of an NSDate). I did some searching and it seems that you can only delete one core data object at a time, not a group of them, let alone ones that are based off of a certain date. I'm thinking maybe to...
2015/01/07
[ "https://Stackoverflow.com/questions/27828536", "https://Stackoverflow.com", "https://Stackoverflow.com/users/3949231/" ]
A loop deleting objects one by one is the correct approach. Deleting objects in Core Data is extremely processor heavy. If that's a problem, then Core Data is not suitable for your project, and you should use something else. I recommend [FCModel](https://github.com/marcoarment/FCModel), as a light weight alternative t...
It's not as processor heavy as you may think :) (of course it depends of data amount) Feel free to use loop ``` - (void)deleteAllObjects { NSArray *allEntities = self.managedObjectModel.entities; for (NSEntityDescription *entityDescription in allEntities) { NSFetchRequest *fetchRequest = [[NSFetchRequest alloc] i...
27,828,536
So I have a bunch of objects in Core Data and want them to auto delete after X amount of days (this would be based off of an NSDate). I did some searching and it seems that you can only delete one core data object at a time, not a group of them, let alone ones that are based off of a certain date. I'm thinking maybe to...
2015/01/07
[ "https://Stackoverflow.com/questions/27828536", "https://Stackoverflow.com", "https://Stackoverflow.com/users/3949231/" ]
A loop deleting objects one by one is the correct approach. Deleting objects in Core Data is extremely processor heavy. If that's a problem, then Core Data is not suitable for your project, and you should use something else. I recommend [FCModel](https://github.com/marcoarment/FCModel), as a light weight alternative t...
As others have noted, iterating over the objects is the only way to actually delete the objects in Core Data. This is one of those use cases where Core Data's approach kind of falls down, because it's just not optimized for that kind of use. But there are ways to deal with it to avoid unwanted delays in your app, so t...
155,320
There are lots of ports in my small office but sometimes I want to kick out people who are accessing internet instead of doing their job. With `arp -a` i can look for all of the connected users. But how to kick them off a network. Please don't tell me Router's conf. I want to do this via terminal itself. There are ways...
2014/11/08
[ "https://apple.stackexchange.com/questions/155320", "https://apple.stackexchange.com", "https://apple.stackexchange.com/users/92669/" ]
Unless your desktop is the central proxy server you *will* have to go through the router. Just because you can see other machines with arp doesn't mean you can do anything with them. Kicking them off the network via the router will usually be total - does the office staff depend on the network do do their jobs? A bet...
Type in "arp -a" to see who is on the wifi. If you have their password, you can kick them off through coding. Thanks!
155,320
There are lots of ports in my small office but sometimes I want to kick out people who are accessing internet instead of doing their job. With `arp -a` i can look for all of the connected users. But how to kick them off a network. Please don't tell me Router's conf. I want to do this via terminal itself. There are ways...
2014/11/08
[ "https://apple.stackexchange.com/questions/155320", "https://apple.stackexchange.com", "https://apple.stackexchange.com/users/92669/" ]
KickThemOut =========== > > Kick devices off your network by performing an ARP Spoof attack. > > > You can use [KickThemOut](https://github.com/k4m4/kickthemout). It’s a tool I recently developed which does exactly that — it kicks devices off your Local Area Network. [![KickThemOut](https://i.stack.imgur.com/Rh...
Type in "arp -a" to see who is on the wifi. If you have their password, you can kick them off through coding. Thanks!
155,320
There are lots of ports in my small office but sometimes I want to kick out people who are accessing internet instead of doing their job. With `arp -a` i can look for all of the connected users. But how to kick them off a network. Please don't tell me Router's conf. I want to do this via terminal itself. There are ways...
2014/11/08
[ "https://apple.stackexchange.com/questions/155320", "https://apple.stackexchange.com", "https://apple.stackexchange.com/users/92669/" ]
KickThemOut =========== > > Kick devices off your network by performing an ARP Spoof attack. > > > You can use [KickThemOut](https://github.com/k4m4/kickthemout). It’s a tool I recently developed which does exactly that — it kicks devices off your Local Area Network. [![KickThemOut](https://i.stack.imgur.com/Rh...
Good question. Admins used to be able to block mac addresses at the router, but now pervasive tools for mac address spoofing allow users to easily overcome blacklists or mimic trusted computers. If it is your own network and you do not recognize a computer attached to it, and you want them to go away, and have no w...
155,320
There are lots of ports in my small office but sometimes I want to kick out people who are accessing internet instead of doing their job. With `arp -a` i can look for all of the connected users. But how to kick them off a network. Please don't tell me Router's conf. I want to do this via terminal itself. There are ways...
2014/11/08
[ "https://apple.stackexchange.com/questions/155320", "https://apple.stackexchange.com", "https://apple.stackexchange.com/users/92669/" ]
KickThemOut =========== > > Kick devices off your network by performing an ARP Spoof attack. > > > You can use [KickThemOut](https://github.com/k4m4/kickthemout). It’s a tool I recently developed which does exactly that — it kicks devices off your Local Area Network. [![KickThemOut](https://i.stack.imgur.com/Rh...
you can use a program called netcut. this will help you more.
155,320
There are lots of ports in my small office but sometimes I want to kick out people who are accessing internet instead of doing their job. With `arp -a` i can look for all of the connected users. But how to kick them off a network. Please don't tell me Router's conf. I want to do this via terminal itself. There are ways...
2014/11/08
[ "https://apple.stackexchange.com/questions/155320", "https://apple.stackexchange.com", "https://apple.stackexchange.com/users/92669/" ]
Good question. Admins used to be able to block mac addresses at the router, but now pervasive tools for mac address spoofing allow users to easily overcome blacklists or mimic trusted computers. If it is your own network and you do not recognize a computer attached to it, and you want them to go away, and have no w...
Get in CMD and writte: net view (ENTER) This command will show you all possible devices connected. After that writte: SHUTDOWN/"the name of device that you want kick" others commands: Shutdown -s Switch off the device Shutdown -r Reset the device Shutdown -? it shows you all other commands you can use.
155,320
There are lots of ports in my small office but sometimes I want to kick out people who are accessing internet instead of doing their job. With `arp -a` i can look for all of the connected users. But how to kick them off a network. Please don't tell me Router's conf. I want to do this via terminal itself. There are ways...
2014/11/08
[ "https://apple.stackexchange.com/questions/155320", "https://apple.stackexchange.com", "https://apple.stackexchange.com/users/92669/" ]
Unless your desktop is the central proxy server you *will* have to go through the router. Just because you can see other machines with arp doesn't mean you can do anything with them. Kicking them off the network via the router will usually be total - does the office staff depend on the network do do their jobs? A bet...
Get in CMD and writte: net view (ENTER) This command will show you all possible devices connected. After that writte: SHUTDOWN/"the name of device that you want kick" others commands: Shutdown -s Switch off the device Shutdown -r Reset the device Shutdown -? it shows you all other commands you can use.
155,320
There are lots of ports in my small office but sometimes I want to kick out people who are accessing internet instead of doing their job. With `arp -a` i can look for all of the connected users. But how to kick them off a network. Please don't tell me Router's conf. I want to do this via terminal itself. There are ways...
2014/11/08
[ "https://apple.stackexchange.com/questions/155320", "https://apple.stackexchange.com", "https://apple.stackexchange.com/users/92669/" ]
Type in "arp -a" to see who is on the wifi. If you have their password, you can kick them off through coding. Thanks!
you can use a program called netcut. this will help you more.
155,320
There are lots of ports in my small office but sometimes I want to kick out people who are accessing internet instead of doing their job. With `arp -a` i can look for all of the connected users. But how to kick them off a network. Please don't tell me Router's conf. I want to do this via terminal itself. There are ways...
2014/11/08
[ "https://apple.stackexchange.com/questions/155320", "https://apple.stackexchange.com", "https://apple.stackexchange.com/users/92669/" ]
Good question. Admins used to be able to block mac addresses at the router, but now pervasive tools for mac address spoofing allow users to easily overcome blacklists or mimic trusted computers. If it is your own network and you do not recognize a computer attached to it, and you want them to go away, and have no w...
you can use a program called netcut. this will help you more.
155,320
There are lots of ports in my small office but sometimes I want to kick out people who are accessing internet instead of doing their job. With `arp -a` i can look for all of the connected users. But how to kick them off a network. Please don't tell me Router's conf. I want to do this via terminal itself. There are ways...
2014/11/08
[ "https://apple.stackexchange.com/questions/155320", "https://apple.stackexchange.com", "https://apple.stackexchange.com/users/92669/" ]
Type in "arp -a" to see who is on the wifi. If you have their password, you can kick them off through coding. Thanks!
Get in CMD and writte: net view (ENTER) This command will show you all possible devices connected. After that writte: SHUTDOWN/"the name of device that you want kick" others commands: Shutdown -s Switch off the device Shutdown -r Reset the device Shutdown -? it shows you all other commands you can use.
155,320
There are lots of ports in my small office but sometimes I want to kick out people who are accessing internet instead of doing their job. With `arp -a` i can look for all of the connected users. But how to kick them off a network. Please don't tell me Router's conf. I want to do this via terminal itself. There are ways...
2014/11/08
[ "https://apple.stackexchange.com/questions/155320", "https://apple.stackexchange.com", "https://apple.stackexchange.com/users/92669/" ]
KickThemOut =========== > > Kick devices off your network by performing an ARP Spoof attack. > > > You can use [KickThemOut](https://github.com/k4m4/kickthemout). It’s a tool I recently developed which does exactly that — it kicks devices off your Local Area Network. [![KickThemOut](https://i.stack.imgur.com/Rh...
Get in CMD and writte: net view (ENTER) This command will show you all possible devices connected. After that writte: SHUTDOWN/"the name of device that you want kick" others commands: Shutdown -s Switch off the device Shutdown -r Reset the device Shutdown -? it shows you all other commands you can use.
37,002,417
How can take a reference of web API in Ionic ? Is this possible to use web API to interact with different code base ?
2016/05/03
[ "https://Stackoverflow.com/questions/37002417", "https://Stackoverflow.com", "https://Stackoverflow.com/users/6285481/" ]
Yes You can Send Angular http Get,Post Request through Services or Controllers.
You cannot access a DLL in a Hybrid mobile application using JavaScript code. The only way can interact is via an API url from your API.
50,742,132
The string already has `'{'` inside it. Now I want to use python format method. ``` a = "{foo{}}" b = a.format("bar") ``` result should be `{foobar}` There are many ways to solve the problem but I want to know is there a way to skip first `'{'`.
2018/06/07
[ "https://Stackoverflow.com/questions/50742132", "https://Stackoverflow.com", "https://Stackoverflow.com/users/3724987/" ]
To have a regular brace, use it twice in a format string. ``` >>> "{{foo{}}}".format("bar") '{foobar}' ```
You could use the %x syntax as well: ``` a = "{foo%s}" b = a % 'bar' ``` Which will return `'{foobar}'` just fine. FYI: to print % in a string you would use `%%`.
15,069,072
I'm trying to apply a different background for the last h3 element with this css and I don't understand why it won't work: ``` #s5_accordion_menu h3:last-child { background-color:#000000!; } ``` this is the html ``` <div id="s5_accordion_menu"> <div> <h3 id='current' class='s5_am_toggler'><span class="s5_accordi...
2013/02/25
[ "https://Stackoverflow.com/questions/15069072", "https://Stackoverflow.com", "https://Stackoverflow.com/users/1540018/" ]
`h3:last-child` means "A element of type 'h3' that is the last child of its parent". It does not mean "The last element of type 'h3' in its parent". Since you have a `div` after your `h3`, the `h3` is not the last child. You want [`:last-of-type`](http://www.w3.org/TR/selectors/#last-of-type-pseudo)
If you want to use something more specifc, you can use `:nth-child(n)` where `"n"` is the element number, or a function like `"(n + 1)"`.
56,722,679
I have a Postgres table with 500k rows that are only read (a lot, by multiple users). I was wondering if splitting the database in two by, let's say "date of birth" of the rows, would be more efficient. I have half of the table that will be queried a lot more (birthdate>40). So splitting it by birthdate would allow me...
2019/06/23
[ "https://Stackoverflow.com/questions/56722679", "https://Stackoverflow.com", "https://Stackoverflow.com/users/7821557/" ]
An index solves your problem. Spliting a table by storing different sections of it only complicates things.
SiWM is right. Don't split your table, especially given 500k is not really a big number by today's standard. As an addition to SiWM's suggestion, I would recommend you check which columns are in the WHERE clause when the table is queried, and make sure these are indexed.
56,722,679
I have a Postgres table with 500k rows that are only read (a lot, by multiple users). I was wondering if splitting the database in two by, let's say "date of birth" of the rows, would be more efficient. I have half of the table that will be queried a lot more (birthdate>40). So splitting it by birthdate would allow me...
2019/06/23
[ "https://Stackoverflow.com/questions/56722679", "https://Stackoverflow.com", "https://Stackoverflow.com/users/7821557/" ]
An index solves your problem. Spliting a table by storing different sections of it only complicates things.
You can also cluster the table using the main index used (with a cron job), especially if you need to return several rows from a single query. <https://www.postgresql.org/docs/9.1/sql-cluster.html> Initial set up: ``` CLUSTER [VERBOSE] table_name [ USING index_name ] ``` Re-cluster: ``` CLUSTER table_name...
45,092,670
I'm trying to get hadoop and hive to run locally on my linux system, but when I run jps, I noticed that the datanode service is missing: ``` vaughn@vaughn-notebook:/usr/local/hadoop$ jps 2209 NameNode 2682 ResourceManager 3084 Jps 2510 SecondaryNameNode ``` If I run bin/hadoop datanode, the following error occurs: ...
2017/07/14
[ "https://Stackoverflow.com/questions/45092670", "https://Stackoverflow.com", "https://Stackoverflow.com/users/7973902/" ]
1.sudo chown vaughn:hadoop -R /usr/local/hadoop\_store where hadoop is group name. use > > grep vaughn /etc/group > > > in your terminal to see your group name. 2.clean temporary directories. 3.Format the name node. Hope this helps.
Looks like it's a permission issue, The user which is used to start datanode should have write access in the data node -data directories. Try to execute the below command before starting datanode service. ``` sudo chmod -R 777 /home/cloudera/hdata/dfs ``` You can also update owner:group using chown command, that'...
45,092,670
I'm trying to get hadoop and hive to run locally on my linux system, but when I run jps, I noticed that the datanode service is missing: ``` vaughn@vaughn-notebook:/usr/local/hadoop$ jps 2209 NameNode 2682 ResourceManager 3084 Jps 2510 SecondaryNameNode ``` If I run bin/hadoop datanode, the following error occurs: ...
2017/07/14
[ "https://Stackoverflow.com/questions/45092670", "https://Stackoverflow.com", "https://Stackoverflow.com/users/7973902/" ]
Looks like it's a permission issue, The user which is used to start datanode should have write access in the data node -data directories. Try to execute the below command before starting datanode service. ``` sudo chmod -R 777 /home/cloudera/hdata/dfs ``` You can also update owner:group using chown command, that'...
`sudo chown -R /usr/local/hadoop_store` delete datanode namenode directories in hadoop\_store `stop-dfs.sh` and `stop-yarn.sh` `hadoop fs namenode -format` `start-dfs.sh` and `start dfs-yarn.sh` Hope it'll help
45,092,670
I'm trying to get hadoop and hive to run locally on my linux system, but when I run jps, I noticed that the datanode service is missing: ``` vaughn@vaughn-notebook:/usr/local/hadoop$ jps 2209 NameNode 2682 ResourceManager 3084 Jps 2510 SecondaryNameNode ``` If I run bin/hadoop datanode, the following error occurs: ...
2017/07/14
[ "https://Stackoverflow.com/questions/45092670", "https://Stackoverflow.com", "https://Stackoverflow.com/users/7973902/" ]
Looks like it's a permission issue, The user which is used to start datanode should have write access in the data node -data directories. Try to execute the below command before starting datanode service. ``` sudo chmod -R 777 /home/cloudera/hdata/dfs ``` You can also update owner:group using chown command, that'...
One more possible reason which was in my case: Location of HDFS directory in folder properties shower user name twice i.e. *home/hadoop/hadoop/hdfs* So, I had added the same directory in **hdfs-site.xml**. As a solution, I removed **hadoop/** and changed it to *home/hadoop/hdfs* and this resolved my problem.
45,092,670
I'm trying to get hadoop and hive to run locally on my linux system, but when I run jps, I noticed that the datanode service is missing: ``` vaughn@vaughn-notebook:/usr/local/hadoop$ jps 2209 NameNode 2682 ResourceManager 3084 Jps 2510 SecondaryNameNode ``` If I run bin/hadoop datanode, the following error occurs: ...
2017/07/14
[ "https://Stackoverflow.com/questions/45092670", "https://Stackoverflow.com", "https://Stackoverflow.com/users/7973902/" ]
1.sudo chown vaughn:hadoop -R /usr/local/hadoop\_store where hadoop is group name. use > > grep vaughn /etc/group > > > in your terminal to see your group name. 2.clean temporary directories. 3.Format the name node. Hope this helps.
`sudo chown -R /usr/local/hadoop_store` delete datanode namenode directories in hadoop\_store `stop-dfs.sh` and `stop-yarn.sh` `hadoop fs namenode -format` `start-dfs.sh` and `start dfs-yarn.sh` Hope it'll help
45,092,670
I'm trying to get hadoop and hive to run locally on my linux system, but when I run jps, I noticed that the datanode service is missing: ``` vaughn@vaughn-notebook:/usr/local/hadoop$ jps 2209 NameNode 2682 ResourceManager 3084 Jps 2510 SecondaryNameNode ``` If I run bin/hadoop datanode, the following error occurs: ...
2017/07/14
[ "https://Stackoverflow.com/questions/45092670", "https://Stackoverflow.com", "https://Stackoverflow.com/users/7973902/" ]
1.sudo chown vaughn:hadoop -R /usr/local/hadoop\_store where hadoop is group name. use > > grep vaughn /etc/group > > > in your terminal to see your group name. 2.clean temporary directories. 3.Format the name node. Hope this helps.
One more possible reason which was in my case: Location of HDFS directory in folder properties shower user name twice i.e. *home/hadoop/hadoop/hdfs* So, I had added the same directory in **hdfs-site.xml**. As a solution, I removed **hadoop/** and changed it to *home/hadoop/hdfs* and this resolved my problem.
24,451,852
I started learning C# a few days ago and I'm having a problem with public strings, I'm currently trying to write a program that copies and replaces files for practice but I'm having a problem with public strings no matter how much I try to change up the code I couldn't figure it out myself so I came here for help What...
2014/06/27
[ "https://Stackoverflow.com/questions/24451852", "https://Stackoverflow.com", "https://Stackoverflow.com/users/3728981/" ]
``` if (fbd.ShowDialog() == DialogResult.OK) { string sSelectedPath = fbd.SelectedPath; } ``` You are declaring a *new* variable here by using the `string` keyword. It's not setting the property. Just remove `string`. E.g. ``` if (fbd.ShowDialog() == DialogResult.OK) { sSelectedPath = fbd.SelectedPat...
Replace ``` string s = choofdlog.FileName; ``` with ``` s = choofdlog.FileName; ```
24,451,852
I started learning C# a few days ago and I'm having a problem with public strings, I'm currently trying to write a program that copies and replaces files for practice but I'm having a problem with public strings no matter how much I try to change up the code I couldn't figure it out myself so I came here for help What...
2014/06/27
[ "https://Stackoverflow.com/questions/24451852", "https://Stackoverflow.com", "https://Stackoverflow.com/users/3728981/" ]
Your mistake is here : ``` if (choofdlog.ShowDialog() == DialogResult.OK) { string sSelectedPath = choofdlog.FileName; } ``` You're using a local variable, not the member variable. So, write : ``` if (choofdlog.ShowDialog() == DialogResult.OK) { sSelectedPath = choofdlog.FileName; } ``` Or, better, if you...
Replace ``` string s = choofdlog.FileName; ``` with ``` s = choofdlog.FileName; ```
15,748,688
This is driving me crazy! My code works on my computer, works on an online server, but returns null on another server!! Any idea?? Here is the jQuery Ajax code: ``` <script type="text/javascript"> $(document).ready(function() { $('#signup').submit(function() { $.ajax({ url: 'mailchimp.php', ...
2013/04/01
[ "https://Stackoverflow.com/questions/15748688", "https://Stackoverflow.com", "https://Stackoverflow.com/users/1044333/" ]
It's a little early to proclaim a best practice here ... particularly when the actual workflow and performance characteristics of your application are unknown (perhaps unknowable at this point). In general, we think it is better if each VM loads what it needs rather than relying on a master VM to provide for subordina...
My buddy, Steve Schmidt, offers an alternative avenue of attack which must be considered: **One ViewModel / Multiple Views**. In this approach, you compose distinct Views, each dedicated to a particular perspective on the root entity and its graph of child objects. These are much the same (if not identical) to the Vie...
19,317,245
An application I am working on invokes a SP like this: ``` exec CreateChildRecord @ParentID = 123, @ChildID = 124 ``` The SP needs to copy all fields except the ID from the parent record into the child record. The child record may or may not currently exist. What I need is something like the below: ``` UPDATE [...
2013/10/11
[ "https://Stackoverflow.com/questions/19317245", "https://Stackoverflow.com", "https://Stackoverflow.com/users/1780671/" ]
if you can use `merge` statement: ``` merge [Table] as T using ( select @ChildID as ID, data1, data2 from [Table] where ID = @ParentID ) as P on P.ID = T.ID when matched then update set data1 = P.data1, data2 = P.data2 when not matched then insert (ID, data1, data2) values (P.ID...
Depending on the version of SQL Server you are using (2008+) you can make use of [MERGE (Transact-SQL)](http://msdn.microsoft.com/en-us/library/bb510625%28v=sql.100%29.aspx) > > Performs insert, update, or delete operations on a target table based > on the results of a join with a source table. For example, you can ...
19,317,245
An application I am working on invokes a SP like this: ``` exec CreateChildRecord @ParentID = 123, @ChildID = 124 ``` The SP needs to copy all fields except the ID from the parent record into the child record. The child record may or may not currently exist. What I need is something like the below: ``` UPDATE [...
2013/10/11
[ "https://Stackoverflow.com/questions/19317245", "https://Stackoverflow.com", "https://Stackoverflow.com/users/1780671/" ]
if you can use `merge` statement: ``` merge [Table] as T using ( select @ChildID as ID, data1, data2 from [Table] where ID = @ParentID ) as P on P.ID = T.ID when matched then update set data1 = P.data1, data2 = P.data2 when not matched then insert (ID, data1, data2) values (P.ID...
You can use: ``` IF EXISTS (SELECT * FROM Table2 WHERE Table2.ParentID = @ParentID) UPDATE Table2 SET Table2.data1 = Table1.data1, Table2.data2 = Table1.data2 FROM Table1 WHERE Table1.ID = @ParentID ELSE INSERT INTO Table2 (ParentID, data1, data2) SELECT @ParentID, Table1.data1, Table1...
20,511,070
I need to create list elements with numbered as (a) , (b) , etc.... I have tried as below ``` <ol type="a"> <li>Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scr...
2013/12/11
[ "https://Stackoverflow.com/questions/20511070", "https://Stackoverflow.com", "https://Stackoverflow.com/users/1887791/" ]
IE 7 Workaround (?) ``` var i =0; // A is #65 in Unicode $("ol").children() .prepend('<span class="li-counter">(' + String.fromCharCode(64+(i++)) + ')' ); ``` Generaly, people uses CSS counters and ":before" pseudo-element. ``` ol { counter-reset: ...
No, there is no HTML way to generate numbering such as “(a)”. The `type` attribute of `ol` has a very limited set of values. There are some more values for the corresponding CSS construct, the `list-style-type` property, but even for it, it’s a matter of setting the style of “numbers”, not punctuation around them. The...
62,449
I'd like to know if it's possible to drive to Copenhagen using only car, meaning no ferry from Puttgarden to Rødby. I'm asking this because the ferry costs around 200 euros, and if I can drive around it then I'd rather do that. As you can see in this image, it says I need to go via ferry (*veerboot*): [![ferry](https...
2016/02/07
[ "https://travel.stackexchange.com/questions/62449", "https://travel.stackexchange.com", "https://travel.stackexchange.com/users/39898/" ]
Most people didn't think to click OPTIONS and select Avoid Ferries. The route you are asking about would appear instantly if you do this. Note that on this route there is a [€34 one way toll](http://www.storebaelt.dk/english/toll-charges) for crossing the [Storebælt bridge](http://www.storebaelt.dk/english). (There ar...
Yes you can, just say you wanna pitstop/go through the city "odense". It's the "central" city of the island in the middle "fyn". There is only one paid bridge from "Fyn/odense" to "sjælland/københavn". It costs approx. 67€
56,898,808
I am using a Plugin for Owl Carousel: <https://github.com/gijsroge/OwlCarousel2-Thumbs> It inserts Images as Navigation-Thumbs. I tried to figure out the height of the whole `.owl-thumbs` Element. Which is possible in the Console. But the same Code in my `scripts.js` returns "null" for the height. Here is my Code: ...
2019/07/05
[ "https://Stackoverflow.com/questions/56898808", "https://Stackoverflow.com", "https://Stackoverflow.com/users/10368772/" ]
Try this. ``` $j = -1; $newArray = []; foreach($items as $item){ if ($item['SUBMODEL_NAME']) { $j++; } $newArray [$j][] = $item ; } ```
Another way to do it- ``` $result = []; foreach($array as $k=>$v){ $i=0; if($v['SUBMODEL_NAME']==''){ $i++; $k = $k-1; } $result[$k][$i]= $v; } $result = array_values($result); print_r($result); ``` **DEMO:** <https://3v4l.org/3aTgR>