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 |
|---|---|---|---|---|---|
4,377 | I bought a GB&A guitar almost an year ago. I play guitar mostly on the weekends. Recently I noted that my guitar bridge has got lifted off the body a bit. So I took it to the Guitar Shop. The owner of the shop suggested me that I should keep the guitar untuned if I am not using/playing it. I just want to know, should I... | 2011/10/24 | [
"https://music.stackexchange.com/questions/4377",
"https://music.stackexchange.com",
"https://music.stackexchange.com/users/1357/"
] | *Generally*, with a guitar in good condition, no. The only time I've detuned a guitar was when shipping one via air, where it might be in an unpressurized baggage compartment. I think the strings should be kept at pitch - but you should check and adjust them if they are getting sharp (which can happen with temperature ... | You shouldn't worry . The only time you have to un-tune your guitar is when you travel overseas and you need to put your guitar to fly with you . It's okay . Use heavy gauge strings or buy a new one . I strongly suggest you buy a new one and use heavy gauge strings . |
4,377 | I bought a GB&A guitar almost an year ago. I play guitar mostly on the weekends. Recently I noted that my guitar bridge has got lifted off the body a bit. So I took it to the Guitar Shop. The owner of the shop suggested me that I should keep the guitar untuned if I am not using/playing it. I just want to know, should I... | 2011/10/24 | [
"https://music.stackexchange.com/questions/4377",
"https://music.stackexchange.com",
"https://music.stackexchange.com/users/1357/"
] | *Generally*, with a guitar in good condition, no. The only time I've detuned a guitar was when shipping one via air, where it might be in an unpressurized baggage compartment. I think the strings should be kept at pitch - but you should check and adjust them if they are getting sharp (which can happen with temperature ... | Tune it One step down and consult a good guitar mechanic ASAP to get the bridge fixed. This sort of problem must not occur in future. |
4,377 | I bought a GB&A guitar almost an year ago. I play guitar mostly on the weekends. Recently I noted that my guitar bridge has got lifted off the body a bit. So I took it to the Guitar Shop. The owner of the shop suggested me that I should keep the guitar untuned if I am not using/playing it. I just want to know, should I... | 2011/10/24 | [
"https://music.stackexchange.com/questions/4377",
"https://music.stackexchange.com",
"https://music.stackexchange.com/users/1357/"
] | No. You shouldn't have to do that on a guitar that's made well. The fact that the bridge is coming up is indicative of an issue with the guitar itself and not the tuning / strings. You should try and get the bridge fixed, in general.
However, a quick google of GB&A guitars shows that they are very cheap acoustic guit... | You shouldn't worry . The only time you have to un-tune your guitar is when you travel overseas and you need to put your guitar to fly with you . It's okay . Use heavy gauge strings or buy a new one . I strongly suggest you buy a new one and use heavy gauge strings . |
4,377 | I bought a GB&A guitar almost an year ago. I play guitar mostly on the weekends. Recently I noted that my guitar bridge has got lifted off the body a bit. So I took it to the Guitar Shop. The owner of the shop suggested me that I should keep the guitar untuned if I am not using/playing it. I just want to know, should I... | 2011/10/24 | [
"https://music.stackexchange.com/questions/4377",
"https://music.stackexchange.com",
"https://music.stackexchange.com/users/1357/"
] | No. You shouldn't have to do that on a guitar that's made well. The fact that the bridge is coming up is indicative of an issue with the guitar itself and not the tuning / strings. You should try and get the bridge fixed, in general.
However, a quick google of GB&A guitars shows that they are very cheap acoustic guit... | Tune it One step down and consult a good guitar mechanic ASAP to get the bridge fixed. This sort of problem must not occur in future. |
4,377 | I bought a GB&A guitar almost an year ago. I play guitar mostly on the weekends. Recently I noted that my guitar bridge has got lifted off the body a bit. So I took it to the Guitar Shop. The owner of the shop suggested me that I should keep the guitar untuned if I am not using/playing it. I just want to know, should I... | 2011/10/24 | [
"https://music.stackexchange.com/questions/4377",
"https://music.stackexchange.com",
"https://music.stackexchange.com/users/1357/"
] | Tune it One step down and consult a good guitar mechanic ASAP to get the bridge fixed. This sort of problem must not occur in future. | You shouldn't worry . The only time you have to un-tune your guitar is when you travel overseas and you need to put your guitar to fly with you . It's okay . Use heavy gauge strings or buy a new one . I strongly suggest you buy a new one and use heavy gauge strings . |
9,537,326 | I'm new to working with Django and am developing for a client who wants to be able to change page content in the Django Admin. They need to be able to change the html of the index page without editing the files on the server.
I know about flatfiles but I'm not sure that's completely what I'm after as I can't display s... | 2012/03/02 | [
"https://Stackoverflow.com/questions/9537326",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/-1/"
] | Honestly, the scope of what you're looking for is too huge to cover in this format. There's a number of ways this *could* be done, but they're all going to require some work and customization based on the client's needs.
Flatpages could work if you allow HTML content and make sure the content is rendered as "safe" in ... | I don't believe that is possible at this time. Of course you can edit your models but templates, I think not. |
9,537,326 | I'm new to working with Django and am developing for a client who wants to be able to change page content in the Django Admin. They need to be able to change the html of the index page without editing the files on the server.
I know about flatfiles but I'm not sure that's completely what I'm after as I can't display s... | 2012/03/02 | [
"https://Stackoverflow.com/questions/9537326",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/-1/"
] | Honestly, the scope of what you're looking for is too huge to cover in this format. There's a number of ways this *could* be done, but they're all going to require some work and customization based on the client's needs.
Flatpages could work if you allow HTML content and make sure the content is rendered as "safe" in ... | I would find out how much they need to change? If they plan a complete redesign every week then you're still looking for an answer. If they just need a dynamic front page then you can split it up into variables and let them edit sections of html. Much safer and less prone to breaking the html. |
8,580,912 | I am using log4net – EventLogAppender to log the application errors to a custom log. This happens, but the errors are also logged in Application log. Since I have my own custom event log say myLog, is it possible to stop the errors being logged into default log Application?
```xml
<log4net debug="true">
<appender na... | 2011/12/20 | [
"https://Stackoverflow.com/questions/8580912",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/454010/"
] | I'm still not sure what your issue is, but looking at the configuration I believe you need to change the `LogName` setting:
```
<param name="LogName" value="PortalWebLogs" />
```
If this doesn't work, it could be a permissions issue. See here for more information:
[log4Net EventlogAppender does not work for Asp.Net... | I haven't done much with using the event log appender, so i'm not really sure. here's another question talking about it and in the answer, it shows using a logName element with a value attribute instead of a param element. might be worth trying that.
[Configuring a custom event log for log4net](https://stackoverflow.c... |
56,220,907 | I need a regular expression (that works in notepad++) that grabs semicolons enclosed by quotation marks and where at least one character is between the quotation mark and the semicolon.
* This semicolon should be matched: `"asdf;a3"`
* This semicolon should not be matched: `";"`
Until now I have the following regex: ... | 2019/05/20 | [
"https://Stackoverflow.com/questions/56220907",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/973158/"
] | You could use a capturing group and a [negated character class](https://www.regular-expressions.info/charclass.html#negated) not match any of the listed characters:
```
"[^";]+(;)[^;"]+"
```
[Regex demo](https://regex101.com/r/BacOsE/1)
Or make use of `\K` to forget what was macthed and a positive lookahead:
```
... | Try this regex:
```
/.+?\;.+?/g
```
[Here](https://regexper.com/#%2F.%2B%3F%5C%3B.%2B%3F%2Fg) is a link that will help you understand the flow of this regex.
[Here](https://regex101.com/r/pNWSu0/1) is link displaying the demo of this regex. |
265,795 | Is there a single word for it? I am trying to think of a word that includes both, but aside cloth I can't think of any. There has to be a more specific word for cloth used for non-clothing stuffs like curtains and tabletop. | 2020/11/12 | [
"https://ell.stackexchange.com/questions/265795",
"https://ell.stackexchange.com",
"https://ell.stackexchange.com/users/124280/"
] | As a dressmaker, in Brit english there isn't a word for your description, as somebody said there is Linen but that also included bed linen, but doesn't cover curtains as curtains are rarely made from linen.
>
> Linen (/ˈlɪnən/) is a textile made from the fibers of the flax plant.
> Linen is very strong, absorbent, an... | "A cloth that's used in both tablecloths and curtains" doesn't exactly narrow it down uniquely, but you may be thinking of linen. |
6,438 | I am searching for 3D printing filaments, that are suitable for outdoor purposes, but printable on unheated beds.
I will mostly use it for sensor node enclosures (should withstand temperature up to 50°C/120°F) and car accessories (70°C/160°F).
If it requires annealing, it should have low shrinkage, since I will be pr... | 2018/07/21 | [
"https://3dprinting.stackexchange.com/questions/6438",
"https://3dprinting.stackexchange.com",
"https://3dprinting.stackexchange.com/users/10684/"
] | This is not an easy one to solve, the firmware of the printer should be keeping the printer at a certain temperature depending on the temperature setting and the current value. If the firmware is not able to keep the temperature at the requested level, but goes beyond that level, that could be considered "strange". As ... | A similar condition occurred in my 3D printer. I solved the same. I checked all my connection and I came to know that I connected the thermistor of the extruder in the wrong port. So just check the connection of your thermistor.
---
Actually my 3D printer circuit board frequently failed because of over current. I the... |
1,550,477 | I installed several (six) hard drives over the years in my PC. Is it possible to physically label them with contents,drive label and the model label?
**What I have tried:** A heat proof sharpie. But the surface of the HDD is black and the sharpie was black. Text written with the sharpie is there but faded
Will an ord... | 2020/05/10 | [
"https://superuser.com/questions/1550477",
"https://superuser.com",
"https://superuser.com/users/635837/"
] | I either use a sticker, write on the drive label or drive sled, or … my "sekrit weapon", a
**gold metallic marker pen**.
You can read it on any colour from black to white, metal or plastic. It will wear off, but not easily & certainly not mounted in a computer or stored somewhere where it's not handled every day.
... | Labels from Staples. Put on sides or end or top, wherever it would be readable without removing the drive, not on bottom. Drives are not supposed to run (for their own longevity) hot enough to change the properties of modern paper or ink (burning). If your drives are running hot enough to effect paper/ink you will be i... |
1,550,477 | I installed several (six) hard drives over the years in my PC. Is it possible to physically label them with contents,drive label and the model label?
**What I have tried:** A heat proof sharpie. But the surface of the HDD is black and the sharpie was black. Text written with the sharpie is there but faded
Will an ord... | 2020/05/10 | [
"https://superuser.com/questions/1550477",
"https://superuser.com",
"https://superuser.com/users/635837/"
] | I either use a sticker, write on the drive label or drive sled, or … my "sekrit weapon", a
**gold metallic marker pen**.
You can read it on any colour from black to white, metal or plastic. It will wear off, but not easily & certainly not mounted in a computer or stored somewhere where it's not handled every day.
... | Dymo labeller, simple as that. |
1,550,477 | I installed several (six) hard drives over the years in my PC. Is it possible to physically label them with contents,drive label and the model label?
**What I have tried:** A heat proof sharpie. But the surface of the HDD is black and the sharpie was black. Text written with the sharpie is there but faded
Will an ord... | 2020/05/10 | [
"https://superuser.com/questions/1550477",
"https://superuser.com",
"https://superuser.com/users/635837/"
] | It is perfectly safe to put glue-backed paper labels on hard drives. There is nothing inside a computer that will get hot enough to ignite paper. Heck, even hard drives themselves have paper and plastic labels adhered to them. I have labeled hundreds of hard drives with paper labels and a laser printer, as well as plas... | Labels from Staples. Put on sides or end or top, wherever it would be readable without removing the drive, not on bottom. Drives are not supposed to run (for their own longevity) hot enough to change the properties of modern paper or ink (burning). If your drives are running hot enough to effect paper/ink you will be i... |
1,550,477 | I installed several (six) hard drives over the years in my PC. Is it possible to physically label them with contents,drive label and the model label?
**What I have tried:** A heat proof sharpie. But the surface of the HDD is black and the sharpie was black. Text written with the sharpie is there but faded
Will an ord... | 2020/05/10 | [
"https://superuser.com/questions/1550477",
"https://superuser.com",
"https://superuser.com/users/635837/"
] | It is perfectly safe to put glue-backed paper labels on hard drives. There is nothing inside a computer that will get hot enough to ignite paper. Heck, even hard drives themselves have paper and plastic labels adhered to them. I have labeled hundreds of hard drives with paper labels and a laser printer, as well as plas... | Dymo labeller, simple as that. |
30,023,327 | But in such a way that there is absolutely NO TRANSMISSION out of it? No searching for hotspots nor any keepalives or any other transmission?
Thank you very much,
Yaron. | 2015/05/04 | [
"https://Stackoverflow.com/questions/30023327",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/279420/"
] | *That depends as there are scenarios with which you want to start your application*. Like for e.g. you have the database initially and then you are designing your model or on the other hand you have the model on the basis of which you design your database. So whatever the case may be the model act as a container to hol... | No. As far as I know, models are different from the database because all models need not necessarily be mapped to a database. For example, model objects can be used just to manipulate data into a form which you need for a particular situation like sending a complex data which consists of a combination of entities or th... |
90,457 | I have to travel from Edinburgh to Belfast, and then Belfast back to London.
But before that trip, I just applied for the Schengen Visa so my passport would be at the embassy, and I don't think I can get it back on time before my flights.
I am an international student from Thailand, on Tier4 visa. Am I allow to trave... | 2017/03/24 | [
"https://travel.stackexchange.com/questions/90457",
"https://travel.stackexchange.com",
"https://travel.stackexchange.com/users/59059/"
] | The UK has no restrictions on internal travel. You might require photo ID to board the flight, but that does not need to be a passport. Check with the airline for exactly what ID is acceptable. | [For UK travel, RyanAir states](https://www.ryanair.com/gb/en/useful-info/help-centre/faq-overview/Travel-documentation/Are-driving-licenses-accepted-as-a-travel-document-on-Ryanair-flights):
>
> Any photo ID which matches the passenger name in the booking.
>
>
>
[FlyBe has a long list, a few of which may apply t... |
10,430,823 | I am trying to add some data to vector by checking if the vector already has the data,even if vector has the data the loop is coming to else block.
```
Vector object = (Vector) listUserEvents.get(key);
Vector compareEventData = (Vector) hCompareTable.get(compareKey);
for (int i = 0; i < compareEventData.size(); i++) ... | 2012/05/03 | [
"https://Stackoverflow.com/questions/10430823",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1348702/"
] | If the code is not behaving as you expect, it is most likely that you don't understand what `contains` is actually doing.
The `contains` method is looking for an element in the vector which the `equals` method says is equal to the argument; e.g. it is (more or less) equivalent to:
```
boolean found = false;
f... | You need to override `EventData.equals()`. Once you do this, you should also override [`hashCode()`](http://docs.oracle.com/javase/6/docs/api/java/lang/Object.html#hashCode%28%29).
Finally, using a `Vector` results in pretty poor computational complexity since every `contains()` check costs `O(n)`. Also, using `Vector... |
10,430,823 | I am trying to add some data to vector by checking if the vector already has the data,even if vector has the data the loop is coming to else block.
```
Vector object = (Vector) listUserEvents.get(key);
Vector compareEventData = (Vector) hCompareTable.get(compareKey);
for (int i = 0; i < compareEventData.size(); i++) ... | 2012/05/03 | [
"https://Stackoverflow.com/questions/10430823",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1348702/"
] | If the code is not behaving as you expect, it is most likely that you don't understand what `contains` is actually doing.
The `contains` method is looking for an element in the vector which the `equals` method says is equal to the argument; e.g. it is (more or less) equivalent to:
```
boolean found = false;
f... | As discussed in the comments, your `EventData` seem to be different instances in both vectors. If you expect them to be equal in the sense that they contain the same information, you should compare the `EventData` objects based on a property that is identifying them. E.g.:
```
Vector<EventData> object = (Vector<EventD... |
44,374,647 | I have been trying to combine two queries I have into one. I am trying to get an output of IP info which will get compared to another query against the host file and eventually dumped into a database. My commands have to be simple one liners due to how they are deployed. I can get what I need with these two, but is the... | 2017/06/05 | [
"https://Stackoverflow.com/questions/44374647",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/4297891/"
] | So here it is. I found out that for android `sdk > 22`, though Runtime permissions are added programatically for your application but you **still** need to **declare your app's permission in the `AndroidManifest.xml` file**. So, after adding the code:
```
<uses-permission android:name="android.permission.WRITE_CALENDA... | You are missing the order of the code. Check this:
```
@Override
public void onRequestPermissionsResult(int requestCode,
String permissions[], int[] grantResults) {
switch (requestCode) {
case CALLBACK_CALENDAR: {
// If request is cancelled, the result arrays are empty.
if (gran... |
4,839 | Can someone be chasidish (or a chasid) if they don't dress in a distinctively "Jewish" way or don't keep all the minhagim such as "cholov yisrael", saying tehillim on rosh chodesh, etc? Does it depend on which chasidus? In other words, is chasidus mainly in the "philosophy" and internal thoughts and beliefs or is it ma... | 2010/12/23 | [
"https://judaism.stackexchange.com/questions/4839",
"https://judaism.stackexchange.com",
"https://judaism.stackexchange.com/users/288/"
] | I think that Breslov is "mainly in the philosophy" as you say. Though Breslovers often have distinctive dress, on the whole they're much more varied than other branches of chassidim. As far as minhagim, the central points that one is supposed to adopt are very private (spending Rosh HaShanah in Uman is not so private, ... | As noted in another answer the Lubavitcher Rebbe told a young man who once came to him and said I would like to be your chossid but don't see myself donning a sertuk as you wake up every day with the commitment to be better than the day before I will be proud to call you my chossid.
"Chabad, however, the emphasis was... |
4,839 | Can someone be chasidish (or a chasid) if they don't dress in a distinctively "Jewish" way or don't keep all the minhagim such as "cholov yisrael", saying tehillim on rosh chodesh, etc? Does it depend on which chasidus? In other words, is chasidus mainly in the "philosophy" and internal thoughts and beliefs or is it ma... | 2010/12/23 | [
"https://judaism.stackexchange.com/questions/4839",
"https://judaism.stackexchange.com",
"https://judaism.stackexchange.com/users/288/"
] | Complex question.
I believe in the past there have been Hassidic thinkers who did not adopt the garb, but today we usually associate the two (but not necessarily). (Was it the Kotzker who was a Hassidic thinker but not dresser?)
[Rabbi Dr. Moshe Dovid Tendler recalls](http://www.kolhamevaser.com/2010/08/an-interview-... | I have seen many Chabad wearing only the "normal"clothing. The ones at Ben Gurion asking if you wish to lay Tefillin are a good example.
It is also not uncommon in The Netherlands. |
4,839 | Can someone be chasidish (or a chasid) if they don't dress in a distinctively "Jewish" way or don't keep all the minhagim such as "cholov yisrael", saying tehillim on rosh chodesh, etc? Does it depend on which chasidus? In other words, is chasidus mainly in the "philosophy" and internal thoughts and beliefs or is it ma... | 2010/12/23 | [
"https://judaism.stackexchange.com/questions/4839",
"https://judaism.stackexchange.com",
"https://judaism.stackexchange.com/users/288/"
] | Chasidus strongly believes in keeping the Minhagim and dress of the previous generations. Thus someone that would not keep the Minhagim is not really being Chasidish. However there are different Chasidishe groups that dress in different manners (Lubavitch wears bend down hats, Stolin wears regular brim up hats, Bobov w... | I think that Breslov is "mainly in the philosophy" as you say. Though Breslovers often have distinctive dress, on the whole they're much more varied than other branches of chassidim. As far as minhagim, the central points that one is supposed to adopt are very private (spending Rosh HaShanah in Uman is not so private, ... |
4,839 | Can someone be chasidish (or a chasid) if they don't dress in a distinctively "Jewish" way or don't keep all the minhagim such as "cholov yisrael", saying tehillim on rosh chodesh, etc? Does it depend on which chasidus? In other words, is chasidus mainly in the "philosophy" and internal thoughts and beliefs or is it ma... | 2010/12/23 | [
"https://judaism.stackexchange.com/questions/4839",
"https://judaism.stackexchange.com",
"https://judaism.stackexchange.com/users/288/"
] | Chasidus strongly believes in keeping the Minhagim and dress of the previous generations. Thus someone that would not keep the Minhagim is not really being Chasidish. However there are different Chasidishe groups that dress in different manners (Lubavitch wears bend down hats, Stolin wears regular brim up hats, Bobov w... | **The Truth**
>
> On the Lubavitcher Rebbe's 70th birthday, he was asked by a college
> student if it was possible to be his Chassid without donning the
> Chassidic garb, without growing a beard. The Rebbe replied, "Every
> day, even now, I wake up each morning seeking to make it better than
> the day before. If ... |
4,839 | Can someone be chasidish (or a chasid) if they don't dress in a distinctively "Jewish" way or don't keep all the minhagim such as "cholov yisrael", saying tehillim on rosh chodesh, etc? Does it depend on which chasidus? In other words, is chasidus mainly in the "philosophy" and internal thoughts and beliefs or is it ma... | 2010/12/23 | [
"https://judaism.stackexchange.com/questions/4839",
"https://judaism.stackexchange.com",
"https://judaism.stackexchange.com/users/288/"
] | Complex question.
I believe in the past there have been Hassidic thinkers who did not adopt the garb, but today we usually associate the two (but not necessarily). (Was it the Kotzker who was a Hassidic thinker but not dresser?)
[Rabbi Dr. Moshe Dovid Tendler recalls](http://www.kolhamevaser.com/2010/08/an-interview-... | Chasidus strongly believes in keeping the Minhagim and dress of the previous generations. Thus someone that would not keep the Minhagim is not really being Chasidish. However there are different Chasidishe groups that dress in different manners (Lubavitch wears bend down hats, Stolin wears regular brim up hats, Bobov w... |
4,839 | Can someone be chasidish (or a chasid) if they don't dress in a distinctively "Jewish" way or don't keep all the minhagim such as "cholov yisrael", saying tehillim on rosh chodesh, etc? Does it depend on which chasidus? In other words, is chasidus mainly in the "philosophy" and internal thoughts and beliefs or is it ma... | 2010/12/23 | [
"https://judaism.stackexchange.com/questions/4839",
"https://judaism.stackexchange.com",
"https://judaism.stackexchange.com/users/288/"
] | Complex question.
I believe in the past there have been Hassidic thinkers who did not adopt the garb, but today we usually associate the two (but not necessarily). (Was it the Kotzker who was a Hassidic thinker but not dresser?)
[Rabbi Dr. Moshe Dovid Tendler recalls](http://www.kolhamevaser.com/2010/08/an-interview-... | **The Truth**
>
> On the Lubavitcher Rebbe's 70th birthday, he was asked by a college
> student if it was possible to be his Chassid without donning the
> Chassidic garb, without growing a beard. The Rebbe replied, "Every
> day, even now, I wake up each morning seeking to make it better than
> the day before. If ... |
4,839 | Can someone be chasidish (or a chasid) if they don't dress in a distinctively "Jewish" way or don't keep all the minhagim such as "cholov yisrael", saying tehillim on rosh chodesh, etc? Does it depend on which chasidus? In other words, is chasidus mainly in the "philosophy" and internal thoughts and beliefs or is it ma... | 2010/12/23 | [
"https://judaism.stackexchange.com/questions/4839",
"https://judaism.stackexchange.com",
"https://judaism.stackexchange.com/users/288/"
] | A person can be a Hasid without necessarily belonging to a specific group. In my experience and from what I heard in the name of many Rebbe's, some of the greatest Hasidim they knew did not dress the part and did not blindly follow whatever the other Hasidim were doing. It does not mean that one can just pick and choos... | I think that Breslov is "mainly in the philosophy" as you say. Though Breslovers often have distinctive dress, on the whole they're much more varied than other branches of chassidim. As far as minhagim, the central points that one is supposed to adopt are very private (spending Rosh HaShanah in Uman is not so private, ... |
4,839 | Can someone be chasidish (or a chasid) if they don't dress in a distinctively "Jewish" way or don't keep all the minhagim such as "cholov yisrael", saying tehillim on rosh chodesh, etc? Does it depend on which chasidus? In other words, is chasidus mainly in the "philosophy" and internal thoughts and beliefs or is it ma... | 2010/12/23 | [
"https://judaism.stackexchange.com/questions/4839",
"https://judaism.stackexchange.com",
"https://judaism.stackexchange.com/users/288/"
] | Chasidus strongly believes in keeping the Minhagim and dress of the previous generations. Thus someone that would not keep the Minhagim is not really being Chasidish. However there are different Chasidishe groups that dress in different manners (Lubavitch wears bend down hats, Stolin wears regular brim up hats, Bobov w... | As noted in another answer the Lubavitcher Rebbe told a young man who once came to him and said I would like to be your chossid but don't see myself donning a sertuk as you wake up every day with the commitment to be better than the day before I will be proud to call you my chossid.
"Chabad, however, the emphasis was... |
4,839 | Can someone be chasidish (or a chasid) if they don't dress in a distinctively "Jewish" way or don't keep all the minhagim such as "cholov yisrael", saying tehillim on rosh chodesh, etc? Does it depend on which chasidus? In other words, is chasidus mainly in the "philosophy" and internal thoughts and beliefs or is it ma... | 2010/12/23 | [
"https://judaism.stackexchange.com/questions/4839",
"https://judaism.stackexchange.com",
"https://judaism.stackexchange.com/users/288/"
] | I have seen many Chabad wearing only the "normal"clothing. The ones at Ben Gurion asking if you wish to lay Tefillin are a good example.
It is also not uncommon in The Netherlands. | **The Truth**
>
> On the Lubavitcher Rebbe's 70th birthday, he was asked by a college
> student if it was possible to be his Chassid without donning the
> Chassidic garb, without growing a beard. The Rebbe replied, "Every
> day, even now, I wake up each morning seeking to make it better than
> the day before. If ... |
4,839 | Can someone be chasidish (or a chasid) if they don't dress in a distinctively "Jewish" way or don't keep all the minhagim such as "cholov yisrael", saying tehillim on rosh chodesh, etc? Does it depend on which chasidus? In other words, is chasidus mainly in the "philosophy" and internal thoughts and beliefs or is it ma... | 2010/12/23 | [
"https://judaism.stackexchange.com/questions/4839",
"https://judaism.stackexchange.com",
"https://judaism.stackexchange.com/users/288/"
] | Complex question.
I believe in the past there have been Hassidic thinkers who did not adopt the garb, but today we usually associate the two (but not necessarily). (Was it the Kotzker who was a Hassidic thinker but not dresser?)
[Rabbi Dr. Moshe Dovid Tendler recalls](http://www.kolhamevaser.com/2010/08/an-interview-... | A person can be a Hasid without necessarily belonging to a specific group. In my experience and from what I heard in the name of many Rebbe's, some of the greatest Hasidim they knew did not dress the part and did not blindly follow whatever the other Hasidim were doing. It does not mean that one can just pick and choos... |
44,489,658 | How come when I change the order of the two sets in the unions below, I get different results?
```
set1 = {1, 2, 3}
set2 = {True, False}
print(set1 | set2)
# {False, 1, 2, 3}
print(set2 | set1)
#{False, True, 2, 3}
``` | 2017/06/11 | [
"https://Stackoverflow.com/questions/44489658",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/435342/"
] | In Python, `False` and `0` are considered equivalent, as are `True` and `1`. Because `True` and `1` are considered the same value, only one of them can be present in a set a the same time. Which one depends on the order they are added to the set in. In the first line, `set1` is used as the first set, so we get `1` in t... | The comparison operator (`==`, `!=`) is defined for boolean `True` and `False` to match 1 and 0.
That's why, in the set union, when it checks whether `True` is in the new set already, it gets a truthy answer:
```
>>> True in {1}
True
>>> 1 in {True}
True
``` |
44,489,658 | How come when I change the order of the two sets in the unions below, I get different results?
```
set1 = {1, 2, 3}
set2 = {True, False}
print(set1 | set2)
# {False, 1, 2, 3}
print(set2 | set1)
#{False, True, 2, 3}
``` | 2017/06/11 | [
"https://Stackoverflow.com/questions/44489658",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/435342/"
] | In Python, `False` and `0` are considered equivalent, as are `True` and `1`. Because `True` and `1` are considered the same value, only one of them can be present in a set a the same time. Which one depends on the order they are added to the set in. In the first line, `set1` is used as the first set, so we get `1` in t... | If you look at <https://docs.python.org/3/library/stdtypes.html#boolean-values> section 4.12.10. Boolean Values:
>
> Boolean values are the two constant objects **False and True**. They are used to represent truth values (although other values can also be considered false or true). In numeric contexts (for example wh... |
44,489,658 | How come when I change the order of the two sets in the unions below, I get different results?
```
set1 = {1, 2, 3}
set2 = {True, False}
print(set1 | set2)
# {False, 1, 2, 3}
print(set2 | set1)
#{False, True, 2, 3}
``` | 2017/06/11 | [
"https://Stackoverflow.com/questions/44489658",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/435342/"
] | Why the union() doesn't contain all items
=========================================
The `1` and `True` are equivalent and considered to be duplicates. Likewise the `0` and `False` are equivalent as well:
```
>>> 1 == True
True
>>> 0 == False
True
```
Which equivalent value is used
==============================
Wh... | In Python, `False` and `0` are considered equivalent, as are `True` and `1`. Because `True` and `1` are considered the same value, only one of them can be present in a set a the same time. Which one depends on the order they are added to the set in. In the first line, `set1` is used as the first set, so we get `1` in t... |
44,489,658 | How come when I change the order of the two sets in the unions below, I get different results?
```
set1 = {1, 2, 3}
set2 = {True, False}
print(set1 | set2)
# {False, 1, 2, 3}
print(set2 | set1)
#{False, True, 2, 3}
``` | 2017/06/11 | [
"https://Stackoverflow.com/questions/44489658",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/435342/"
] | If you look at <https://docs.python.org/3/library/stdtypes.html#boolean-values> section 4.12.10. Boolean Values:
>
> Boolean values are the two constant objects **False and True**. They are used to represent truth values (although other values can also be considered false or true). In numeric contexts (for example wh... | The comparison operator (`==`, `!=`) is defined for boolean `True` and `False` to match 1 and 0.
That's why, in the set union, when it checks whether `True` is in the new set already, it gets a truthy answer:
```
>>> True in {1}
True
>>> 1 in {True}
True
``` |
44,489,658 | How come when I change the order of the two sets in the unions below, I get different results?
```
set1 = {1, 2, 3}
set2 = {True, False}
print(set1 | set2)
# {False, 1, 2, 3}
print(set2 | set1)
#{False, True, 2, 3}
``` | 2017/06/11 | [
"https://Stackoverflow.com/questions/44489658",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/435342/"
] | Why the union() doesn't contain all items
=========================================
The `1` and `True` are equivalent and considered to be duplicates. Likewise the `0` and `False` are equivalent as well:
```
>>> 1 == True
True
>>> 0 == False
True
```
Which equivalent value is used
==============================
Wh... | The comparison operator (`==`, `!=`) is defined for boolean `True` and `False` to match 1 and 0.
That's why, in the set union, when it checks whether `True` is in the new set already, it gets a truthy answer:
```
>>> True in {1}
True
>>> 1 in {True}
True
``` |
44,489,658 | How come when I change the order of the two sets in the unions below, I get different results?
```
set1 = {1, 2, 3}
set2 = {True, False}
print(set1 | set2)
# {False, 1, 2, 3}
print(set2 | set1)
#{False, True, 2, 3}
``` | 2017/06/11 | [
"https://Stackoverflow.com/questions/44489658",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/435342/"
] | Why the union() doesn't contain all items
=========================================
The `1` and `True` are equivalent and considered to be duplicates. Likewise the `0` and `False` are equivalent as well:
```
>>> 1 == True
True
>>> 0 == False
True
```
Which equivalent value is used
==============================
Wh... | If you look at <https://docs.python.org/3/library/stdtypes.html#boolean-values> section 4.12.10. Boolean Values:
>
> Boolean values are the two constant objects **False and True**. They are used to represent truth values (although other values can also be considered false or true). In numeric contexts (for example wh... |
63,960 | I haven't programmed games for about 10 years (My last experience was DJGPP + Allegro), but I thought I'd check out XNA over the weekend to see how it was shaping up.
I am fairly impressed, however as I continue to piece together a game engine, I have a (probably) basic question.
How much should you rely on C#'s Dele... | 2008/09/15 | [
"https://Stackoverflow.com/questions/63960",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1965/"
] | If you were to think of an event as a subscriber list, in your code all you are doing is registering a subscriber. The number of instructions needed to achieve that is likely to be minimal at the CLR level.
If you want your code to be generic or dynamic, then you're need to check if something is subscribed prior to ca... | It's important to realize that events in C# are not queued asynchronous events (like, for example the Windows message queue). They are essentially a list of function pointers. So raising an event doesn't have worse performance implications than iterating through a list of function pointers and calling each one.
At the... |
63,960 | I haven't programmed games for about 10 years (My last experience was DJGPP + Allegro), but I thought I'd check out XNA over the weekend to see how it was shaping up.
I am fairly impressed, however as I continue to piece together a game engine, I have a (probably) basic question.
How much should you rely on C#'s Dele... | 2008/09/15 | [
"https://Stackoverflow.com/questions/63960",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1965/"
] | It's important to realize that events in C# are not queued asynchronous events (like, for example the Windows message queue). They are essentially a list of function pointers. So raising an event doesn't have worse performance implications than iterating through a list of function pointers and calling each one.
At the... | In my extra time away from real work, I've been learning XNA too.
IMHO (or not so humble if you ask my coworkers) is that the overhead of the event handles will be overwhelmed by other elements in the game such as rendering. Given the heavy use of events in normal .Net programming I would be the underlying code is wel... |
63,960 | I haven't programmed games for about 10 years (My last experience was DJGPP + Allegro), but I thought I'd check out XNA over the weekend to see how it was shaping up.
I am fairly impressed, however as I continue to piece together a game engine, I have a (probably) basic question.
How much should you rely on C#'s Dele... | 2008/09/15 | [
"https://Stackoverflow.com/questions/63960",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1965/"
] | The main question here seems to be:
"What is the overhead associated with using C# Delegates and Events?"
Events have little significant overhead in comparison to a regular function call.
The use of Delegates can create implicit and thus hidden garbage. Garbage can be a major cause performance problems especially on ... | In my extra time away from real work, I've been learning XNA too.
IMHO (or not so humble if you ask my coworkers) is that the overhead of the event handles will be overwhelmed by other elements in the game such as rendering. Given the heavy use of events in normal .Net programming I would be the underlying code is wel... |
63,960 | I haven't programmed games for about 10 years (My last experience was DJGPP + Allegro), but I thought I'd check out XNA over the weekend to see how it was shaping up.
I am fairly impressed, however as I continue to piece together a game engine, I have a (probably) basic question.
How much should you rely on C#'s Dele... | 2008/09/15 | [
"https://Stackoverflow.com/questions/63960",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1965/"
] | If you were to think of an event as a subscriber list, in your code all you are doing is registering a subscriber. The number of instructions needed to achieve that is likely to be minimal at the CLR level.
If you want your code to be generic or dynamic, then you're need to check if something is subscribed prior to ca... | In my extra time away from real work, I've been learning XNA too.
IMHO (or not so humble if you ask my coworkers) is that the overhead of the event handles will be overwhelmed by other elements in the game such as rendering. Given the heavy use of events in normal .Net programming I would be the underlying code is wel... |
63,960 | I haven't programmed games for about 10 years (My last experience was DJGPP + Allegro), but I thought I'd check out XNA over the weekend to see how it was shaping up.
I am fairly impressed, however as I continue to piece together a game engine, I have a (probably) basic question.
How much should you rely on C#'s Dele... | 2008/09/15 | [
"https://Stackoverflow.com/questions/63960",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1965/"
] | If you were to think of an event as a subscriber list, in your code all you are doing is registering a subscriber. The number of instructions needed to achieve that is likely to be minimal at the CLR level.
If you want your code to be generic or dynamic, then you're need to check if something is subscribed prior to ca... | As an aside, you might be interested to know that [Shawn Hargreaves](http://www.talula.demon.co.uk/), original developer of [Allegro](http://www.talula.demon.co.uk/allegro/index.html), is one of the main developers on the XNA team :-) |
63,960 | I haven't programmed games for about 10 years (My last experience was DJGPP + Allegro), but I thought I'd check out XNA over the weekend to see how it was shaping up.
I am fairly impressed, however as I continue to piece together a game engine, I have a (probably) basic question.
How much should you rely on C#'s Dele... | 2008/09/15 | [
"https://Stackoverflow.com/questions/63960",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1965/"
] | The main question here seems to be:
"What is the overhead associated with using C# Delegates and Events?"
Events have little significant overhead in comparison to a regular function call.
The use of Delegates can create implicit and thus hidden garbage. Garbage can be a major cause performance problems especially on ... | XNA encourages the use of interfaces, events and delegates to drive something written with it. Take a look at the GameComponent related classes which set this up for you.
The answer is, "As much as you feel comfortable with".
To elaborate a little bit, If for example you take and inherit from the gamecomponent class ... |
63,960 | I haven't programmed games for about 10 years (My last experience was DJGPP + Allegro), but I thought I'd check out XNA over the weekend to see how it was shaping up.
I am fairly impressed, however as I continue to piece together a game engine, I have a (probably) basic question.
How much should you rely on C#'s Dele... | 2008/09/15 | [
"https://Stackoverflow.com/questions/63960",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1965/"
] | It's important to realize that events in C# are not queued asynchronous events (like, for example the Windows message queue). They are essentially a list of function pointers. So raising an event doesn't have worse performance implications than iterating through a list of function pointers and calling each one.
At the... | Before going into what is the impact of an event in terms of performance you must first evaluate whether or not it is needed.
Assuming you are really trying to keep a chase cam updated and its not just an example, what you are looking for is not an event (though events might do the trick just as well), if you are foll... |
63,960 | I haven't programmed games for about 10 years (My last experience was DJGPP + Allegro), but I thought I'd check out XNA over the weekend to see how it was shaping up.
I am fairly impressed, however as I continue to piece together a game engine, I have a (probably) basic question.
How much should you rely on C#'s Dele... | 2008/09/15 | [
"https://Stackoverflow.com/questions/63960",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1965/"
] | The main question here seems to be:
"What is the overhead associated with using C# Delegates and Events?"
Events have little significant overhead in comparison to a regular function call.
The use of Delegates can create implicit and thus hidden garbage. Garbage can be a major cause performance problems especially on ... | Before going into what is the impact of an event in terms of performance you must first evaluate whether or not it is needed.
Assuming you are really trying to keep a chase cam updated and its not just an example, what you are looking for is not an event (though events might do the trick just as well), if you are foll... |
63,960 | I haven't programmed games for about 10 years (My last experience was DJGPP + Allegro), but I thought I'd check out XNA over the weekend to see how it was shaping up.
I am fairly impressed, however as I continue to piece together a game engine, I have a (probably) basic question.
How much should you rely on C#'s Dele... | 2008/09/15 | [
"https://Stackoverflow.com/questions/63960",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1965/"
] | The main question here seems to be:
"What is the overhead associated with using C# Delegates and Events?"
Events have little significant overhead in comparison to a regular function call.
The use of Delegates can create implicit and thus hidden garbage. Garbage can be a major cause performance problems especially on ... | As an aside, you might be interested to know that [Shawn Hargreaves](http://www.talula.demon.co.uk/), original developer of [Allegro](http://www.talula.demon.co.uk/allegro/index.html), is one of the main developers on the XNA team :-) |
63,960 | I haven't programmed games for about 10 years (My last experience was DJGPP + Allegro), but I thought I'd check out XNA over the weekend to see how it was shaping up.
I am fairly impressed, however as I continue to piece together a game engine, I have a (probably) basic question.
How much should you rely on C#'s Dele... | 2008/09/15 | [
"https://Stackoverflow.com/questions/63960",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1965/"
] | If you were to think of an event as a subscriber list, in your code all you are doing is registering a subscriber. The number of instructions needed to achieve that is likely to be minimal at the CLR level.
If you want your code to be generic or dynamic, then you're need to check if something is subscribed prior to ca... | The main question here seems to be:
"What is the overhead associated with using C# Delegates and Events?"
Events have little significant overhead in comparison to a regular function call.
The use of Delegates can create implicit and thus hidden garbage. Garbage can be a major cause performance problems especially on ... |
70,442,894 | I'm doing a problem where I'm required to make a function `generatePrime` without parameters. The function should return number `2` when called for the first time, `3` (second time), `5` (third time) and so on.
I have an instinct this should be done with recursion. But I'm not sure how to make a recursive function wit... | 2021/12/22 | [
"https://Stackoverflow.com/questions/70442894",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/11449597/"
] | If the assignment truly requires you to write a function with no parameters that returns a successive prime on each call, you are probably intended to use a static object. Here is how it can be done to return a simple counter:
```
int GenerateCounter(void)
{
static int counter = 0;
return counter++;
}
```
Us... | Creating a recursive function with no parameters does not make much sense, because the whole point of recursion is that the function arguments change with every level of recursion.
If you want the function `generatePrime` to take no parameters, but to return the next prime whenever it is called, then the function must... |
70,442,894 | I'm doing a problem where I'm required to make a function `generatePrime` without parameters. The function should return number `2` when called for the first time, `3` (second time), `5` (third time) and so on.
I have an instinct this should be done with recursion. But I'm not sure how to make a recursive function wit... | 2021/12/22 | [
"https://Stackoverflow.com/questions/70442894",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/11449597/"
] | If the assignment truly requires you to write a function with no parameters that returns a successive prime on each call, you are probably intended to use a static object. Here is how it can be done to return a simple counter:
```
int GenerateCounter(void)
{
static int counter = 0;
return counter++;
}
```
Us... | >
> ... should return primes between some low and high
>
>
>
Recursion is not really needed here. Set that idea aside.
Create a table [0...high] and apply the [Sieve of Eratosthenes](https://en.wikipedia.org/wiki/Sieve_of_Eratosthenes). All the sought after primes are thus determined as a first step.
```
// Pseu... |
70,442,894 | I'm doing a problem where I'm required to make a function `generatePrime` without parameters. The function should return number `2` when called for the first time, `3` (second time), `5` (third time) and so on.
I have an instinct this should be done with recursion. But I'm not sure how to make a recursive function wit... | 2021/12/22 | [
"https://Stackoverflow.com/questions/70442894",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/11449597/"
] | Creating a recursive function with no parameters does not make much sense, because the whole point of recursion is that the function arguments change with every level of recursion.
If you want the function `generatePrime` to take no parameters, but to return the next prime whenever it is called, then the function must... | >
> ... should return primes between some low and high
>
>
>
Recursion is not really needed here. Set that idea aside.
Create a table [0...high] and apply the [Sieve of Eratosthenes](https://en.wikipedia.org/wiki/Sieve_of_Eratosthenes). All the sought after primes are thus determined as a first step.
```
// Pseu... |
29,632,597 | I want to get post who have custom field value 'Rap' against custom text field 'music-type'
```
$artists = array( 'posts_per_page' => 50, 'offset'=> 0, 'meta_key' => 'music-type', 'meta_value' => 'Rap', 'order'=>'ASC' );
$artists_lst = get_posts( $artists); foreach ($artists_lst as $post ) : setup_postdata( $post );
$... | 2015/04/14 | [
"https://Stackoverflow.com/questions/29632597",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/3580592/"
] | You can deserialize to `Dictionary<string, string>`
```
var dict = JsonConvert.DeserializeObject<Dictionary<string, string>>(json);
foreach(var kv in dict)
{
Console.WriteLine(kv.Key + ":" + kv.Value);
}
```
Since JObject implements `IDictionary`, you can also simply use `JObject.Parse`
```
var dict = JObject.P... | Below is the json Where subratings have key value pair
```
{
"data": [
{
"id": "288560300",
"lang": "en",
"subratings": {
"Cleanliness": "5",
"Sleep Quality": "5",
"Service": "5"
}
}
]}
public void LoadJsonKeyValuePair(string json)
{
Rootobject item = JsonConvert.DeserializeObject<... |
29,632,597 | I want to get post who have custom field value 'Rap' against custom text field 'music-type'
```
$artists = array( 'posts_per_page' => 50, 'offset'=> 0, 'meta_key' => 'music-type', 'meta_value' => 'Rap', 'order'=>'ASC' );
$artists_lst = get_posts( $artists); foreach ($artists_lst as $post ) : setup_postdata( $post );
$... | 2015/04/14 | [
"https://Stackoverflow.com/questions/29632597",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/3580592/"
] | You can deserialize to `Dictionary<string, string>`
```
var dict = JsonConvert.DeserializeObject<Dictionary<string, string>>(json);
foreach(var kv in dict)
{
Console.WriteLine(kv.Key + ":" + kv.Value);
}
```
Since JObject implements `IDictionary`, you can also simply use `JObject.Parse`
```
var dict = JObject.P... | Hi all felt I should also share this
The above answer works for me using text box in asp.ne t
```
var jsonData = JsonConvert.DeserializeObject<Dictionary<string, string>>
(json_Incoming_fromServer);
foreach(var keyvalue in jsonData)
{
textBox.text = keyvalue.Value; // this will only display the value of that
... |
29,632,597 | I want to get post who have custom field value 'Rap' against custom text field 'music-type'
```
$artists = array( 'posts_per_page' => 50, 'offset'=> 0, 'meta_key' => 'music-type', 'meta_value' => 'Rap', 'order'=>'ASC' );
$artists_lst = get_posts( $artists); foreach ($artists_lst as $post ) : setup_postdata( $post );
$... | 2015/04/14 | [
"https://Stackoverflow.com/questions/29632597",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/3580592/"
] | Below is the json Where subratings have key value pair
```
{
"data": [
{
"id": "288560300",
"lang": "en",
"subratings": {
"Cleanliness": "5",
"Sleep Quality": "5",
"Service": "5"
}
}
]}
public void LoadJsonKeyValuePair(string json)
{
Rootobject item = JsonConvert.DeserializeObject<... | Hi all felt I should also share this
The above answer works for me using text box in asp.ne t
```
var jsonData = JsonConvert.DeserializeObject<Dictionary<string, string>>
(json_Incoming_fromServer);
foreach(var keyvalue in jsonData)
{
textBox.text = keyvalue.Value; // this will only display the value of that
... |
473,882 | How do we define velocity of microscopic particles at small scales. As for macroscopic particle we can scale the distance travelled by object. But this is not the case with electron.
Still, while explaining why mercury is liquid, people uses 'relativistic effect'. | 2019/04/20 | [
"https://physics.stackexchange.com/questions/473882",
"https://physics.stackexchange.com",
"https://physics.stackexchange.com/users/228544/"
] | Special relativity (SR) was developed almost twenty yeas before the birth of quantum mechanics (QM). So, it was formulated in a classical mechanics language, assigning a key role to the concept of velocity. It is usual to estimate the importance of relativistic effects, on the basis of the ratio $v/c$ between the speed... | The charge of the electron is measured in the [Millikan oil drop experiment](https://en.wikipedia.org/wiki/Oil_drop_experiment)
The mass of the electron was measured in [cathode ray tubes.](https://en.wikipedia.org/wiki/Cathode_ray#Discovery_of_the_electron)
There are experiments where electrons can be seen and their... |
12,650,409 | I have a list of strings in Java containing first name of a person with dissimilar spellings (not entirely different). For example, John may be spelled as Jon, Jawn, Jaun etc. How should I retrieve the most appropriate string in this list. If anyone can suggest a method how to use Soundex in this case, it shall be of g... | 2012/09/29 | [
"https://Stackoverflow.com/questions/12650409",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1247948/"
] | You have use [approximate string matching](http://en.wikipedia.org/wiki/Approximate_string_matching) algorithm , There are several strategies to implement this . Blur is a Trie-based Java implementation of approximate string matching based on the Levenshtein word distance.
There is another strategy to implement its c... | [Solr](http://lucene.apache.org/solr/) can do this, if you use the [phonetic filter factory](http://wiki.apache.org/solr/AnalyzersTokenizersTokenFilters#solr.PhoneticFilterFactory) while indexing the text.
It is solr's speciality to search. And search for similar sounding words. However if you just want this, and not ... |
12,650,409 | I have a list of strings in Java containing first name of a person with dissimilar spellings (not entirely different). For example, John may be spelled as Jon, Jawn, Jaun etc. How should I retrieve the most appropriate string in this list. If anyone can suggest a method how to use Soundex in this case, it shall be of g... | 2012/09/29 | [
"https://Stackoverflow.com/questions/12650409",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1247948/"
] | You have use [approximate string matching](http://en.wikipedia.org/wiki/Approximate_string_matching) algorithm , There are several strategies to implement this . Blur is a Trie-based Java implementation of approximate string matching based on the Levenshtein word distance.
There is another strategy to implement its c... | There is one jar file for matching approximate string..
go through link and download frej.jar
<http://sourceforge.net/projects/frej/files/>
there is one method inside this jar file
```
Fuzzy.equals("jon","john");
```
it will return true in this type of approximate string. |
12,650,409 | I have a list of strings in Java containing first name of a person with dissimilar spellings (not entirely different). For example, John may be spelled as Jon, Jawn, Jaun etc. How should I retrieve the most appropriate string in this list. If anyone can suggest a method how to use Soundex in this case, it shall be of g... | 2012/09/29 | [
"https://Stackoverflow.com/questions/12650409",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1247948/"
] | You have use [approximate string matching](http://en.wikipedia.org/wiki/Approximate_string_matching) algorithm , There are several strategies to implement this . Blur is a Trie-based Java implementation of approximate string matching based on the Levenshtein word distance.
There is another strategy to implement its c... | There are lots of theories and methods to **estimate** the match of 2 strings
Giving a blunt true/false result seems strange since "jon" really doesn't equal "john", it's close but doesn't match
One great academic work implementing quite a few estimation methods is called "SecondString.jar" - [site link](http://secon... |
12,650,409 | I have a list of strings in Java containing first name of a person with dissimilar spellings (not entirely different). For example, John may be spelled as Jon, Jawn, Jaun etc. How should I retrieve the most appropriate string in this list. If anyone can suggest a method how to use Soundex in this case, it shall be of g... | 2012/09/29 | [
"https://Stackoverflow.com/questions/12650409",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1247948/"
] | You have use [approximate string matching](http://en.wikipedia.org/wiki/Approximate_string_matching) algorithm , There are several strategies to implement this . Blur is a Trie-based Java implementation of approximate string matching based on the Levenshtein word distance.
There is another strategy to implement its c... | This article provides a detailed explanation and complete code on a Trie-based Java implementation of approximate string matching:
[Fast and Easy Levenshtein distance using a Trie](http://stevehanov.ca/blog/index.php?id=114).
The search function returns a list of all words that are less than the given
================... |
12,650,409 | I have a list of strings in Java containing first name of a person with dissimilar spellings (not entirely different). For example, John may be spelled as Jon, Jawn, Jaun etc. How should I retrieve the most appropriate string in this list. If anyone can suggest a method how to use Soundex in this case, it shall be of g... | 2012/09/29 | [
"https://Stackoverflow.com/questions/12650409",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1247948/"
] | There is one jar file for matching approximate string..
go through link and download frej.jar
<http://sourceforge.net/projects/frej/files/>
there is one method inside this jar file
```
Fuzzy.equals("jon","john");
```
it will return true in this type of approximate string. | [Solr](http://lucene.apache.org/solr/) can do this, if you use the [phonetic filter factory](http://wiki.apache.org/solr/AnalyzersTokenizersTokenFilters#solr.PhoneticFilterFactory) while indexing the text.
It is solr's speciality to search. And search for similar sounding words. However if you just want this, and not ... |
12,650,409 | I have a list of strings in Java containing first name of a person with dissimilar spellings (not entirely different). For example, John may be spelled as Jon, Jawn, Jaun etc. How should I retrieve the most appropriate string in this list. If anyone can suggest a method how to use Soundex in this case, it shall be of g... | 2012/09/29 | [
"https://Stackoverflow.com/questions/12650409",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1247948/"
] | There is one jar file for matching approximate string..
go through link and download frej.jar
<http://sourceforge.net/projects/frej/files/>
there is one method inside this jar file
```
Fuzzy.equals("jon","john");
```
it will return true in this type of approximate string. | There are lots of theories and methods to **estimate** the match of 2 strings
Giving a blunt true/false result seems strange since "jon" really doesn't equal "john", it's close but doesn't match
One great academic work implementing quite a few estimation methods is called "SecondString.jar" - [site link](http://secon... |
12,650,409 | I have a list of strings in Java containing first name of a person with dissimilar spellings (not entirely different). For example, John may be spelled as Jon, Jawn, Jaun etc. How should I retrieve the most appropriate string in this list. If anyone can suggest a method how to use Soundex in this case, it shall be of g... | 2012/09/29 | [
"https://Stackoverflow.com/questions/12650409",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1247948/"
] | There is one jar file for matching approximate string..
go through link and download frej.jar
<http://sourceforge.net/projects/frej/files/>
there is one method inside this jar file
```
Fuzzy.equals("jon","john");
```
it will return true in this type of approximate string. | This article provides a detailed explanation and complete code on a Trie-based Java implementation of approximate string matching:
[Fast and Easy Levenshtein distance using a Trie](http://stevehanov.ca/blog/index.php?id=114).
The search function returns a list of all words that are less than the given
================... |
45,978,367 | we are about 10 danish people from an IT class in Denmark, and we have discovered that the background-image thing in css isnt really working like we want it to.. Maybe anyone out there can help us?
I personally havent worked much with the problem, but my friend Jacob (Who is busy atm so he cant write this for himself)... | 2017/08/31 | [
"https://Stackoverflow.com/questions/45978367",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/8542538/"
] | You are using back slash (\) instead of forward slash (/). And other thing to remember is you should give correct path of image.
if your css file and image is in same folder than you can do like this
```
html {
background-image: url("background.jpg");
}
```
if your css is inside css folder and in same directory... | Try to use like this:
```
html { background-image: url("/images/background.jpg"); }
```
Or
```
html { background-image: url("images/background.jpg"); }
``` |
45,978,367 | we are about 10 danish people from an IT class in Denmark, and we have discovered that the background-image thing in css isnt really working like we want it to.. Maybe anyone out there can help us?
I personally havent worked much with the problem, but my friend Jacob (Who is busy atm so he cant write this for himself)... | 2017/08/31 | [
"https://Stackoverflow.com/questions/45978367",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/8542538/"
] | You are using back slash (\) instead of forward slash (/). And other thing to remember is you should give correct path of image.
if your css file and image is in same folder than you can do like this
```
html {
background-image: url("background.jpg");
}
```
if your css is inside css folder and in same directory... | Try this one:
```
html { background-image: url("../images/background.jpg"); }
``` |
45,978,367 | we are about 10 danish people from an IT class in Denmark, and we have discovered that the background-image thing in css isnt really working like we want it to.. Maybe anyone out there can help us?
I personally havent worked much with the problem, but my friend Jacob (Who is busy atm so he cant write this for himself)... | 2017/08/31 | [
"https://Stackoverflow.com/questions/45978367",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/8542538/"
] | You are using back slash (\) instead of forward slash (/). And other thing to remember is you should give correct path of image.
if your css file and image is in same folder than you can do like this
```
html {
background-image: url("background.jpg");
}
```
if your css is inside css folder and in same directory... | Just write:
>
> background:url('../images/background.jpg');
>
>
>
Add more css as:
>
> background-size:cover; min-height:400px; width:100%;
> background-position:center center;
>
>
>
See below working example:
```css
/*--CSS--*/
.image-box{background:url("https://cdn.pixabay.com/photo/2014/03/22/22/05/s... |
45,978,367 | we are about 10 danish people from an IT class in Denmark, and we have discovered that the background-image thing in css isnt really working like we want it to.. Maybe anyone out there can help us?
I personally havent worked much with the problem, but my friend Jacob (Who is busy atm so he cant write this for himself)... | 2017/08/31 | [
"https://Stackoverflow.com/questions/45978367",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/8542538/"
] | You are using back slash (\) instead of forward slash (/). And other thing to remember is you should give correct path of image.
if your css file and image is in same folder than you can do like this
```
html {
background-image: url("background.jpg");
}
```
if your css is inside css folder and in same directory... | This may help:
always remember to give background image in style.css(css file) and if you have no choice left then define it in `HTML` and always keep images and css files in a folder names assets and then you can call them out easily.
`background-image: url('assets/TYdollarsign.jpg');` |
71,323,776 | ```
abstract class A {
}
export class B extends A{
}
export class C extends A{
}
....
getFirstC(aListe:A[]): C {
//get the first c object in alist
}
```
How to get the first element of type C from a list of type A?
We want to loop through a list of parent type(A) and find a way to identify the concrete type of eac... | 2022/03/02 | [
"https://Stackoverflow.com/questions/71323776",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/3408531/"
] | This has nothing to do with "converting .pop() to puppeteer". `pop` is a standard function on the Array prototype. According to the puppeteer [docs](https://pptr.dev/#?product=Puppeteer&version=v13.1.3&show=api-pageselector), the `page.$(<selector>)` performs a `querySelector` on the DOM nodes, which returns the DOM no... | With :
```
const h4All = await page.$$('.message-list-item');
const h4Count = h4All.length;
const fileName = h4All[h4Count - 1];
const id= await (await fileName.getProperty("id")).jsonValue();
console.log(await id);
messageNum = parseInt(id.split("message")[1]);
console.log(messageNum);
```
It's work, ... |
717,866 | Verify the identity: $$\sin 3x + \sin x = 4\sin x - 4\sin^3 x$$
All I've done is this, and I don't know where to go from here:
$$4\sin x - 4\sin^3 x$$
$$ = 4(\sin x - \sin^3 x)$$
$$ = (4\sin x)(1 - \sin^2 x)$$
$$ = (4/\sin x)(\cos^2 x)$$
Am I on the right track?? | 2014/03/19 | [
"https://math.stackexchange.com/questions/717866",
"https://math.stackexchange.com",
"https://math.stackexchange.com/users/56893/"
] | $$\sin 3x + \sin x = 4\sin x - 4\sin^3 x$$
which is the same as writing,
$$\sin 3x = 3\sin x - 4\sin^3 x$$
You can either assume this standard identity, and we are done. Or we can try to prove this.
We have $e^{ix}=\cos(x)+i\sin(x)\implies e^{3ix}=\cos(3x)+i\sin(3x)$
But $e^{3ix}=(e^{ix})^3$
$$(\cos(x)+i\sin(x))... | Using [Prosthaphaeresis Formulas](http://mathworld.wolfram.com/ProsthaphaeresisFormulas.html)
$$\sin3x+\sin x=2\sin2x\cos x=2\cos x(2\sin x\cos x)=4\sin x\cos^2x$$
$$=4\sin x(1-\sin^2x)$$ |
717,866 | Verify the identity: $$\sin 3x + \sin x = 4\sin x - 4\sin^3 x$$
All I've done is this, and I don't know where to go from here:
$$4\sin x - 4\sin^3 x$$
$$ = 4(\sin x - \sin^3 x)$$
$$ = (4\sin x)(1 - \sin^2 x)$$
$$ = (4/\sin x)(\cos^2 x)$$
Am I on the right track?? | 2014/03/19 | [
"https://math.stackexchange.com/questions/717866",
"https://math.stackexchange.com",
"https://math.stackexchange.com/users/56893/"
] | You will likely need the "angle-addition formula" for sine, since you probably aren't expected to know "multiple-angle formulas". (You *will* need the "*double*-angle formulas"...)
$$ \sin 3x \ + \ \sin x \ = \ \sin(2x + x ) \ + \ \sin x $$
$$ = \ (\sin 2x \ \cos x \ + \ \cos 2x \ \sin x) \ + \ \sin x $$
$$ = \ [ \... | Using [Prosthaphaeresis Formulas](http://mathworld.wolfram.com/ProsthaphaeresisFormulas.html)
$$\sin3x+\sin x=2\sin2x\cos x=2\cos x(2\sin x\cos x)=4\sin x\cos^2x$$
$$=4\sin x(1-\sin^2x)$$ |
717,866 | Verify the identity: $$\sin 3x + \sin x = 4\sin x - 4\sin^3 x$$
All I've done is this, and I don't know where to go from here:
$$4\sin x - 4\sin^3 x$$
$$ = 4(\sin x - \sin^3 x)$$
$$ = (4\sin x)(1 - \sin^2 x)$$
$$ = (4/\sin x)(\cos^2 x)$$
Am I on the right track?? | 2014/03/19 | [
"https://math.stackexchange.com/questions/717866",
"https://math.stackexchange.com",
"https://math.stackexchange.com/users/56893/"
] | 
$$ 4 \sin(x) (1-\sin^2(x))=4\sin(x)\cos^2(x)=2\sin(2x)\cos(x)=\sin(3x)+\sin(x) $$ | Using [Prosthaphaeresis Formulas](http://mathworld.wolfram.com/ProsthaphaeresisFormulas.html)
$$\sin3x+\sin x=2\sin2x\cos x=2\cos x(2\sin x\cos x)=4\sin x\cos^2x$$
$$=4\sin x(1-\sin^2x)$$ |
45,161,357 | I have a method which loads some rows from a database, then performs an operation on every row.
Synchronously, it would look like this:
```
void DoSomething()
{
using( IWebService web = new WebService( ... ) )
using( IDatabaseService db = new DatabaseService( ... ) )
{
List<Entity> rows = db.GetRo... | 2017/07/18 | [
"https://Stackoverflow.com/questions/45161357",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/159145/"
] | If you want to execute multiple asynchronous requests based on some input data and await the results, you can use a LINQ expression:
```
var tasks = rows.Select(async row= >{
var info = await web.GetRelatedInfo( row.Foo );
await web.MakeAnotherServiceCall( row.Bar );
awa... | Never use the `Task` constructor.
If your synchronous version is this:
```
void DoSomething()
{
using( IWebService web = new WebService( ... ) )
using( IDatabaseService db = new DatabaseService( ... ) )
{
List<Entity> rows = db.GetRows( ... );
foreach( Entity row in rows )
{
RelatedInfo info ... |
53,293,159 | I have an instance of `std::u16string`, can I pass its `c_str()` to a Win32 APIs which expects `LPCWSTR`, without any kind of conversion? For example, can I safely do this:
```
auto u16s = std::u16string(u"Hello");
::SetWindowTextW(hWnd, reinterpret_cast<LPCWSTR>(u16s.c_str()));
```
*Updated*, MSDN says [here](h... | 2018/11/14 | [
"https://Stackoverflow.com/questions/53293159",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/2674222/"
] | I would like to make amends to @jamesdlin's [anwser](https://stackoverflow.com/a/53293171/1746503) though his answer is correct.
Before C++11, there are `char` and `wchar_t`, and hence specialize `std::basic_string<>` to `std::string` and `std::wstring`.
However, the width in bits of `wchar_t` is platform-specific: o... | Yes. [`WCHAR` strings on Windows are UTF-16](https://learn.microsoft.com/en-us/windows/desktop/learnwin32/working-with-strings). |
90,035 | I want to try out Google public DNS. For this I need to change the nameserver address. I know it's in the file `/etc/resolv.conf`, but whenever I start `network-manager`, it overwrites the values in that file with what it obtains by using DHCP.
How do I tell it not to do it? I looked through the GUI, but I could only ... | 2013/09/10 | [
"https://unix.stackexchange.com/questions/90035",
"https://unix.stackexchange.com",
"https://unix.stackexchange.com/users/43851/"
] | Have a look at:
```
$ man NetworkManager.conf
```
It seems that if you add a line with `dns=none` in the `[main]` section, NetworkManager won't touch `/etc/resolv.conf`. | PPPD senario
------------
Using `ppon` and `ppoff` probably means you are using `pppd`. In which case `pon` will execute the script `/etc/ppp/ppp_on_boot`. Unless you supply an argument to `pon`, it will load settings from `/etc/ppp/peers/provider`. If you provide an argument it will say for example `pon interwebz` it... |
90,035 | I want to try out Google public DNS. For this I need to change the nameserver address. I know it's in the file `/etc/resolv.conf`, but whenever I start `network-manager`, it overwrites the values in that file with what it obtains by using DHCP.
How do I tell it not to do it? I looked through the GUI, but I could only ... | 2013/09/10 | [
"https://unix.stackexchange.com/questions/90035",
"https://unix.stackexchange.com",
"https://unix.stackexchange.com/users/43851/"
] | **Method #1**
Find the NetworkManager configuration file and add/modify the following entry (in CentOS5 it is in `/etc/NetworkManager/nm-system-settings.conf` or `/etc/NetworkManager/system-connections/`) and edit your DSL connection file :
```
[ipv4]
method=auto
dns=8.8.8.8;4.2.2.2;
ignore-auto-dns=true
```
Note:-... | PPPD senario
------------
Using `ppon` and `ppoff` probably means you are using `pppd`. In which case `pon` will execute the script `/etc/ppp/ppp_on_boot`. Unless you supply an argument to `pon`, it will load settings from `/etc/ppp/peers/provider`. If you provide an argument it will say for example `pon interwebz` it... |
90,035 | I want to try out Google public DNS. For this I need to change the nameserver address. I know it's in the file `/etc/resolv.conf`, but whenever I start `network-manager`, it overwrites the values in that file with what it obtains by using DHCP.
How do I tell it not to do it? I looked through the GUI, but I could only ... | 2013/09/10 | [
"https://unix.stackexchange.com/questions/90035",
"https://unix.stackexchange.com",
"https://unix.stackexchange.com/users/43851/"
] | PPPD senario
------------
Using `ppon` and `ppoff` probably means you are using `pppd`. In which case `pon` will execute the script `/etc/ppp/ppp_on_boot`. Unless you supply an argument to `pon`, it will load settings from `/etc/ppp/peers/provider`. If you provide an argument it will say for example `pon interwebz` it... | I added `dns=none` to the main section of `/etc/Networkmanager/NetworkManager.conf`, then rebooted, which successfully stopped NetworkManager from over-writing the search statement in `/etc/resolv.conf`. |
90,035 | I want to try out Google public DNS. For this I need to change the nameserver address. I know it's in the file `/etc/resolv.conf`, but whenever I start `network-manager`, it overwrites the values in that file with what it obtains by using DHCP.
How do I tell it not to do it? I looked through the GUI, but I could only ... | 2013/09/10 | [
"https://unix.stackexchange.com/questions/90035",
"https://unix.stackexchange.com",
"https://unix.stackexchange.com/users/43851/"
] | **Method #1**
Find the NetworkManager configuration file and add/modify the following entry (in CentOS5 it is in `/etc/NetworkManager/nm-system-settings.conf` or `/etc/NetworkManager/system-connections/`) and edit your DSL connection file :
```
[ipv4]
method=auto
dns=8.8.8.8;4.2.2.2;
ignore-auto-dns=true
```
Note:-... | Have a look at:
```
$ man NetworkManager.conf
```
It seems that if you add a line with `dns=none` in the `[main]` section, NetworkManager won't touch `/etc/resolv.conf`. |
90,035 | I want to try out Google public DNS. For this I need to change the nameserver address. I know it's in the file `/etc/resolv.conf`, but whenever I start `network-manager`, it overwrites the values in that file with what it obtains by using DHCP.
How do I tell it not to do it? I looked through the GUI, but I could only ... | 2013/09/10 | [
"https://unix.stackexchange.com/questions/90035",
"https://unix.stackexchange.com",
"https://unix.stackexchange.com/users/43851/"
] | Have a look at:
```
$ man NetworkManager.conf
```
It seems that if you add a line with `dns=none` in the `[main]` section, NetworkManager won't touch `/etc/resolv.conf`. | You can do this in the Network Manager configuration GUI, although as far as I can see it needs to be done on a per-connection basis and can't be done globally, which means you need to configure it individually for each wifi connection. (That's kind of annoying, but also has an advantage, since many wifi networks block... |
90,035 | I want to try out Google public DNS. For this I need to change the nameserver address. I know it's in the file `/etc/resolv.conf`, but whenever I start `network-manager`, it overwrites the values in that file with what it obtains by using DHCP.
How do I tell it not to do it? I looked through the GUI, but I could only ... | 2013/09/10 | [
"https://unix.stackexchange.com/questions/90035",
"https://unix.stackexchange.com",
"https://unix.stackexchange.com/users/43851/"
] | Have a look at:
```
$ man NetworkManager.conf
```
It seems that if you add a line with `dns=none` in the `[main]` section, NetworkManager won't touch `/etc/resolv.conf`. | I added `dns=none` to the main section of `/etc/Networkmanager/NetworkManager.conf`, then rebooted, which successfully stopped NetworkManager from over-writing the search statement in `/etc/resolv.conf`. |
90,035 | I want to try out Google public DNS. For this I need to change the nameserver address. I know it's in the file `/etc/resolv.conf`, but whenever I start `network-manager`, it overwrites the values in that file with what it obtains by using DHCP.
How do I tell it not to do it? I looked through the GUI, but I could only ... | 2013/09/10 | [
"https://unix.stackexchange.com/questions/90035",
"https://unix.stackexchange.com",
"https://unix.stackexchange.com/users/43851/"
] | **Method #1**
Find the NetworkManager configuration file and add/modify the following entry (in CentOS5 it is in `/etc/NetworkManager/nm-system-settings.conf` or `/etc/NetworkManager/system-connections/`) and edit your DSL connection file :
```
[ipv4]
method=auto
dns=8.8.8.8;4.2.2.2;
ignore-auto-dns=true
```
Note:-... | You can do this in the Network Manager configuration GUI, although as far as I can see it needs to be done on a per-connection basis and can't be done globally, which means you need to configure it individually for each wifi connection. (That's kind of annoying, but also has an advantage, since many wifi networks block... |
90,035 | I want to try out Google public DNS. For this I need to change the nameserver address. I know it's in the file `/etc/resolv.conf`, but whenever I start `network-manager`, it overwrites the values in that file with what it obtains by using DHCP.
How do I tell it not to do it? I looked through the GUI, but I could only ... | 2013/09/10 | [
"https://unix.stackexchange.com/questions/90035",
"https://unix.stackexchange.com",
"https://unix.stackexchange.com/users/43851/"
] | **Method #1**
Find the NetworkManager configuration file and add/modify the following entry (in CentOS5 it is in `/etc/NetworkManager/nm-system-settings.conf` or `/etc/NetworkManager/system-connections/`) and edit your DSL connection file :
```
[ipv4]
method=auto
dns=8.8.8.8;4.2.2.2;
ignore-auto-dns=true
```
Note:-... | I added `dns=none` to the main section of `/etc/Networkmanager/NetworkManager.conf`, then rebooted, which successfully stopped NetworkManager from over-writing the search statement in `/etc/resolv.conf`. |
90,035 | I want to try out Google public DNS. For this I need to change the nameserver address. I know it's in the file `/etc/resolv.conf`, but whenever I start `network-manager`, it overwrites the values in that file with what it obtains by using DHCP.
How do I tell it not to do it? I looked through the GUI, but I could only ... | 2013/09/10 | [
"https://unix.stackexchange.com/questions/90035",
"https://unix.stackexchange.com",
"https://unix.stackexchange.com/users/43851/"
] | You can do this in the Network Manager configuration GUI, although as far as I can see it needs to be done on a per-connection basis and can't be done globally, which means you need to configure it individually for each wifi connection. (That's kind of annoying, but also has an advantage, since many wifi networks block... | I added `dns=none` to the main section of `/etc/Networkmanager/NetworkManager.conf`, then rebooted, which successfully stopped NetworkManager from over-writing the search statement in `/etc/resolv.conf`. |
17,022,015 | I have an array of countries:
```
var countriesList: [
{name: "Israel", code: "IL"},
{name: "India", code: "IN"},
{name: "Andorra", code: "AD"}
]
```
and an array of selected countries:
```
selectedCountries: [
{
... | 2013/06/10 | [
"https://Stackoverflow.com/questions/17022015",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/142902/"
] | Here is a [plunker](http://plnkr.co/edit/pFkY5f?p=preview).
I don't see any issue, although I did change the format of `selectedCountries` to be an array of country codes (`["IL", ...]`) instead of the data structure you provided (`[{country:"IL", ...}]`).
Angular does generate the options using the index as the valu... | If you're ok with having the chosen items being a mirror of what is in your countriesList like so:
```
$scope.data.selectedCountries = [$scope.data.countriesList[0]];
ng-options="country as country.name for country in data.countriesList">
```
Then here's an updated plunkr of how to accomplish what you need: <http:/... |
17,022,015 | I have an array of countries:
```
var countriesList: [
{name: "Israel", code: "IL"},
{name: "India", code: "IN"},
{name: "Andorra", code: "AD"}
]
```
and an array of selected countries:
```
selectedCountries: [
{
... | 2013/06/10 | [
"https://Stackoverflow.com/questions/17022015",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/142902/"
] | Here is a [plunker](http://plnkr.co/edit/pFkY5f?p=preview).
I don't see any issue, although I did change the format of `selectedCountries` to be an array of country codes (`["IL", ...]`) instead of the data structure you provided (`[{country:"IL", ...}]`).
Angular does generate the options using the index as the valu... | try this:
```
<select style="width: 100%" ui-select2="{multiple: true}" ng-model="countriesList" class="form-control select2" multiple style="width:300px">
<option></option>
<option ng-repeat="country in countriesList" value="{{country}}">{{country}}</option>
</select>
```
assuming the structure is like @rtcher... |
54,035 | I am associated with a project and the design lead is attempting to take an existing desktop site and design the responsive breakpoints.
The one issue I ran across is that it seems that the screen to screen flow has been altered in some of the workflows. So I asked the question if that means we were creating a mobile ... | 2014/03/14 | [
"https://ux.stackexchange.com/questions/54035",
"https://ux.stackexchange.com",
"https://ux.stackexchange.com/users/21844/"
] | **The main point of responsive is**
1. your site adapts to a variety of devices, based on screen size (specifically, width 90% of the time).
**Responsive is better than dedicated mobile (imo) because**
1. It requires less maintanence, in that you only have to worry about "one" website.
2. It gives the feel of the de... | By screen-to-screen flow I take it that you mean the process of getting from one state to another.
People interact with different form-factors in different ways (mouse vs. touchpad vs. touchscreen), and the screen size is no exception. This menu won't work on a mobile phone:
 appear in both years, as for IDs 2 and 4 in my example.
I want to do the follo... | 2020/06/04 | [
"https://Stackoverflow.com/questions/62200539",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/13628900/"
] | A `dplyr` approach:
```
library(readr)
library(dplyr)
path <- "path to folder with csv files"
```
We extract all csv files and use the `full.names` argument to show full path
```
csv_names <- list.files(path = path,
pattern = "*.csv",
full.names = TRUE)
```
Read in a... | This is two questions.
1. Read in frames from multiple files.
```r
years <- sapply(list.files(".", pattern = "year.*\\.csv$", full.names = TRUE),
read.csv, stringsAsFactors = FALSE, simplify = FALSE)
```
Since I don't have files handy, I'll just mimick that in code:
```r
y1 <- read.table(header = T... |
722,277 | I have a Dell U2312HM, but my Windows 7 x64 detect it as Plug n Play monitor.
What are the benefit of finding and installing the correct driver for it ? Sharper image? Custom resolution? Power-smart features?
Is it important to have the correct driver installed for monitor ? | 2014/02/27 | [
"https://superuser.com/questions/722277",
"https://superuser.com",
"https://superuser.com/users/174119/"
] | A so-called "monitor driver" usually contains color profiles. They are absolutely positively optional. All consumer display devices use a set of well-defined interfaces to communicate with your computer. Power-saving features and the like work right away.
Considering how some programs use color profiles and others don... | >
> A driver is software that allows your computer to communicate with
> hardware or devices. Without drivers, the hardware you connect to your
> computer—for example, a video card or a printer—***won't work properly***.
> <http://windows.microsoft.com/en-ph/windows/what-is-driver#1TC=windows-7>
>
>
>
You can d... |
722,277 | I have a Dell U2312HM, but my Windows 7 x64 detect it as Plug n Play monitor.
What are the benefit of finding and installing the correct driver for it ? Sharper image? Custom resolution? Power-smart features?
Is it important to have the correct driver installed for monitor ? | 2014/02/27 | [
"https://superuser.com/questions/722277",
"https://superuser.com",
"https://superuser.com/users/174119/"
] | A so-called "monitor driver" usually contains color profiles. They are absolutely positively optional. All consumer display devices use a set of well-defined interfaces to communicate with your computer. Power-saving features and the like work right away.
Considering how some programs use color profiles and others don... | The default Microsoft drivers do well most of the time, you should install those only if you intend to get a specific multi-screen/3D/mega-screen configuration... |
3,335,354 | I am attempting to prove the consequent of the following sequence:
>
> $\lnot P\implies R , Q\lor S\vdash (Q\implies\lnot R) \implies (S \lor P)$
>
>
>
My first instinct is to assume $\ Q\implies\lnot R$ to construct a conditional proof, but would that require a subproof, in which I create *another* subproof whe... | 2019/08/26 | [
"https://math.stackexchange.com/questions/3335354",
"https://math.stackexchange.com",
"https://math.stackexchange.com/users/698332/"
] | >
> My first instinct is to assume $\ Q\implies\lnot R$ to construct a conditional proof, but would that require a subproof, in which I create *another* subproof where I assume the antecedent of the assumption (namely$\ Q $ ) to derive $\lnot R$ ?
>
>
>
No, not quite. You do assume the antecedent $Q \to \neg R$ to... | >
> My first instinct is to assume $Q\to ¬R$ to construct a conditional proof, but would that require a subproof, in which I create another subproof where I assume the antecedent of the assumption (namely $Q$) to derive $¬R$?
>
>
>
You do not need to *derive* the assumption, you have *assumed* it. It is considered... |
38,756,977 | I'm trying to automatically display the IDE when Excel is launched.
Is there a way to simulate a click on the "Visual Basic Editor" icon in the ribbon? I looked into `Application.CommandBars` but there's nothing about the Ribbon.
```
Private Sub Workbook_Open()
' Display Visual Basic Editor
End Sub
``` | 2016/08/04 | [
"https://Stackoverflow.com/questions/38756977",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/6429085/"
] | The `Commandbars` object has an `ExecuteMso` method that allows you to "push" any Ribbon button, so:
```
Application.CommandBars.ExecuteMso ("VisualBasic")
```
As noted by Comintern, the `Application` qualification is necessary when using this in a `Workbook_Open` event, otherwise you'll get an error 91.
To find th... | It would be
```
Private Sub Workbook_Open()
' Display Visual Basic Editor
Application.VBE.MainWindow.Visible = True
End Sub
```
If you get Programmatic Access error:
[Programmatic Access To Visual Basic Project Is Not Trusted - Excel](https://stackoverflow.com/questions/25638344/programmatic-access-to-visua... |
62,713,558 | I am working with `goole cloud (GCP)` and have some files on the bucket. I am trying to copy data from the bucket to the home directory of `cloud shell terminal`. I can not find a command for that. do you know the command?
I tried the following command which is not working:
```
gsutil cp gs://my-bucket client-name@cl... | 2020/07/03 | [
"https://Stackoverflow.com/questions/62713558",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/11474255/"
] | While you are at the HOME dir in your Cloud Shell run this:
```
gsutil cp -r gs://my-bucket/* ./
``` | Use simply the `~`
```
# For one file
gsutil cp gs://my-bucket/my-file ~/
# For a directory
gsutil cp -r gs://my-bucket/* ~/
``` |
30,522,184 | Does the Google Analytics API throttle requests?
We have a batch script that I have just moved from v2 to v3 of the API and the requests go through quite well for the first bit (50 queries or so) and then they start taking 4s or so each. Is this Google throttling us? | 2015/05/29 | [
"https://Stackoverflow.com/questions/30522184",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/284272/"
] | While Matthew is correct, I have another possibility for you. Google analytics API cashes your requests to some extent. Let me try and explain.
I have a customer / site that I request data from. While testing I noticed some strange things.
1. the first million rows results would come back with in an acceptable amoun... | Google's Analytics API does have a rate limit per their docs: <https://developers.google.com/analytics/devguides/reporting/core/v3/coreErrors>
However they should not caused delayed requests, rather the request should be returned with a response of: 403 userRateLimitExceeded
Description of that error:
Indicates that ... |
124,190 | Please show me the detailed solution to the question:
Compute the value of
$$\int\_{0}^{\infty }\frac{\left( \ln x\right) ^{40021}}{x}dx$$
Thank you a million! | 2012/03/25 | [
"https://math.stackexchange.com/questions/124190",
"https://math.stackexchange.com",
"https://math.stackexchange.com/users/27581/"
] | Make the change of variables suggested. You'll end up with $$\int\limits\_{-\infty}^\infty u^{40021}du$$ Then the integral is either undefined or taking the principal value, it is $0$. | \begin{align\*}
\int\_{0}^{\infty}\frac{{\log x}^{40021}}{x}dx
&=\lim\_{s\to\infty}\int\_{0}^{s}\frac{{\log x}^{40021}}{x}dx\\
&=\lim\_{s\to\infty}\int\_{-\infty}^{s}u^{40021}du\\
&=\lim\_{s\to\infty}\left[\frac{u^{40022}}{40022}\right]\_{-\infty}^{s}\\
&=\infty.
\end{align\*}
In this i take $\log x= u$. And this e... |
124,190 | Please show me the detailed solution to the question:
Compute the value of
$$\int\_{0}^{\infty }\frac{\left( \ln x\right) ^{40021}}{x}dx$$
Thank you a million! | 2012/03/25 | [
"https://math.stackexchange.com/questions/124190",
"https://math.stackexchange.com",
"https://math.stackexchange.com/users/27581/"
] | **Edited**.
Let $u=\log x$ (as per martini's hint) and $f(u)=u^{40021}$. Then
1. $$\begin{equation\*}
I:=\int\_{0}^{\infty }\frac{\left( \log x\right) ^{40021}}{x}dx=\int\_{-\infty}^{\infty}f(u)du,
\end{equation\*}$$
2. Function $f$ is odd, $f(-u)=-f(u)$. These integrals don't converge $$
\begin{equation\*}
\int... | Make the change of variables suggested. You'll end up with $$\int\limits\_{-\infty}^\infty u^{40021}du$$ Then the integral is either undefined or taking the principal value, it is $0$. |
124,190 | Please show me the detailed solution to the question:
Compute the value of
$$\int\_{0}^{\infty }\frac{\left( \ln x\right) ^{40021}}{x}dx$$
Thank you a million! | 2012/03/25 | [
"https://math.stackexchange.com/questions/124190",
"https://math.stackexchange.com",
"https://math.stackexchange.com/users/27581/"
] | Make the change of variables suggested. You'll end up with $$\int\limits\_{-\infty}^\infty u^{40021}du$$ Then the integral is either undefined or taking the principal value, it is $0$. | Since this is an exercise on improper integrals, it is natural to replace the
upper and lower limits by $R$, $\frac{1}{R}$ respectively and define the integral to be the limit as $R \rightarrow \infty$ . Then write the integral as the sum of the integral from $\frac{1}{R}$ to $1$ and from $1$ to $R$. In the second inte... |
124,190 | Please show me the detailed solution to the question:
Compute the value of
$$\int\_{0}^{\infty }\frac{\left( \ln x\right) ^{40021}}{x}dx$$
Thank you a million! | 2012/03/25 | [
"https://math.stackexchange.com/questions/124190",
"https://math.stackexchange.com",
"https://math.stackexchange.com/users/27581/"
] | **Edited**.
Let $u=\log x$ (as per martini's hint) and $f(u)=u^{40021}$. Then
1. $$\begin{equation\*}
I:=\int\_{0}^{\infty }\frac{\left( \log x\right) ^{40021}}{x}dx=\int\_{-\infty}^{\infty}f(u)du,
\end{equation\*}$$
2. Function $f$ is odd, $f(-u)=-f(u)$. These integrals don't converge $$
\begin{equation\*}
\int... | \begin{align\*}
\int\_{0}^{\infty}\frac{{\log x}^{40021}}{x}dx
&=\lim\_{s\to\infty}\int\_{0}^{s}\frac{{\log x}^{40021}}{x}dx\\
&=\lim\_{s\to\infty}\int\_{-\infty}^{s}u^{40021}du\\
&=\lim\_{s\to\infty}\left[\frac{u^{40022}}{40022}\right]\_{-\infty}^{s}\\
&=\infty.
\end{align\*}
In this i take $\log x= u$. And this e... |
124,190 | Please show me the detailed solution to the question:
Compute the value of
$$\int\_{0}^{\infty }\frac{\left( \ln x\right) ^{40021}}{x}dx$$
Thank you a million! | 2012/03/25 | [
"https://math.stackexchange.com/questions/124190",
"https://math.stackexchange.com",
"https://math.stackexchange.com/users/27581/"
] | Let me introduce you to elegant mathematics!
$$I\_1=\int\limits\_{0}^{\infty }\frac{\left( \ln x\right) ^{40021}}{x}dx$$
put $x=\frac{1}{t}$, to get
$$\int\limits\_{\infty}^{0 }\frac{\left( \ln \frac{1}{t}\right) ^{40021}}{\frac{1}{t}}.\frac{-dt}{t^2}$$
$$\int\limits\_{\infty}^{0 }\frac{\left( \ln t\right) ^{40021}... | \begin{align\*}
\int\_{0}^{\infty}\frac{{\log x}^{40021}}{x}dx
&=\lim\_{s\to\infty}\int\_{0}^{s}\frac{{\log x}^{40021}}{x}dx\\
&=\lim\_{s\to\infty}\int\_{-\infty}^{s}u^{40021}du\\
&=\lim\_{s\to\infty}\left[\frac{u^{40022}}{40022}\right]\_{-\infty}^{s}\\
&=\infty.
\end{align\*}
In this i take $\log x= u$. And this e... |
124,190 | Please show me the detailed solution to the question:
Compute the value of
$$\int\_{0}^{\infty }\frac{\left( \ln x\right) ^{40021}}{x}dx$$
Thank you a million! | 2012/03/25 | [
"https://math.stackexchange.com/questions/124190",
"https://math.stackexchange.com",
"https://math.stackexchange.com/users/27581/"
] | **Edited**.
Let $u=\log x$ (as per martini's hint) and $f(u)=u^{40021}$. Then
1. $$\begin{equation\*}
I:=\int\_{0}^{\infty }\frac{\left( \log x\right) ^{40021}}{x}dx=\int\_{-\infty}^{\infty}f(u)du,
\end{equation\*}$$
2. Function $f$ is odd, $f(-u)=-f(u)$. These integrals don't converge $$
\begin{equation\*}
\int... | Let me introduce you to elegant mathematics!
$$I\_1=\int\limits\_{0}^{\infty }\frac{\left( \ln x\right) ^{40021}}{x}dx$$
put $x=\frac{1}{t}$, to get
$$\int\limits\_{\infty}^{0 }\frac{\left( \ln \frac{1}{t}\right) ^{40021}}{\frac{1}{t}}.\frac{-dt}{t^2}$$
$$\int\limits\_{\infty}^{0 }\frac{\left( \ln t\right) ^{40021}... |
124,190 | Please show me the detailed solution to the question:
Compute the value of
$$\int\_{0}^{\infty }\frac{\left( \ln x\right) ^{40021}}{x}dx$$
Thank you a million! | 2012/03/25 | [
"https://math.stackexchange.com/questions/124190",
"https://math.stackexchange.com",
"https://math.stackexchange.com/users/27581/"
] | **Edited**.
Let $u=\log x$ (as per martini's hint) and $f(u)=u^{40021}$. Then
1. $$\begin{equation\*}
I:=\int\_{0}^{\infty }\frac{\left( \log x\right) ^{40021}}{x}dx=\int\_{-\infty}^{\infty}f(u)du,
\end{equation\*}$$
2. Function $f$ is odd, $f(-u)=-f(u)$. These integrals don't converge $$
\begin{equation\*}
\int... | Since this is an exercise on improper integrals, it is natural to replace the
upper and lower limits by $R$, $\frac{1}{R}$ respectively and define the integral to be the limit as $R \rightarrow \infty$ . Then write the integral as the sum of the integral from $\frac{1}{R}$ to $1$ and from $1$ to $R$. In the second inte... |
124,190 | Please show me the detailed solution to the question:
Compute the value of
$$\int\_{0}^{\infty }\frac{\left( \ln x\right) ^{40021}}{x}dx$$
Thank you a million! | 2012/03/25 | [
"https://math.stackexchange.com/questions/124190",
"https://math.stackexchange.com",
"https://math.stackexchange.com/users/27581/"
] | Let me introduce you to elegant mathematics!
$$I\_1=\int\limits\_{0}^{\infty }\frac{\left( \ln x\right) ^{40021}}{x}dx$$
put $x=\frac{1}{t}$, to get
$$\int\limits\_{\infty}^{0 }\frac{\left( \ln \frac{1}{t}\right) ^{40021}}{\frac{1}{t}}.\frac{-dt}{t^2}$$
$$\int\limits\_{\infty}^{0 }\frac{\left( \ln t\right) ^{40021}... | Since this is an exercise on improper integrals, it is natural to replace the
upper and lower limits by $R$, $\frac{1}{R}$ respectively and define the integral to be the limit as $R \rightarrow \infty$ . Then write the integral as the sum of the integral from $\frac{1}{R}$ to $1$ and from $1$ to $R$. In the second inte... |
542,564 | I'm trying to integrate analytics into my GWT application. To do this, I'm calling a service that returns a String of HTML that needs to be parsed and eval'ed.
I need a regex that looks for and grabs either 1) the body of the tag or 2) the contents of the "src" attribute. I want to eval both of these with JavaScript.... | 2009/02/12 | [
"https://Stackoverflow.com/questions/542564",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/65681/"
] | You could use something like this:
```
String ScriptPattern = "<script\b([^>]+)>(.*?)</script>"
Pattern ScriptRegex = Pattern.compile(ScriptPattern, Pattern.CASE_INSENSITIVE);
```
The regex uses the lazy star quantifier and should work in most cases but it could certainly be improved upon.
It will match in $1 ... | To match the body of the tag, you can try something like
```
<script[^>]*?>(.*?)</script>
```
which you want to match case-insensitively. Works assuming there is no "" appearing in the actual script body and no ">" in the attributes for the tag. You can add whitespace globbers to the regexp to make it more robust. N... |
542,564 | I'm trying to integrate analytics into my GWT application. To do this, I'm calling a service that returns a String of HTML that needs to be parsed and eval'ed.
I need a regex that looks for and grabs either 1) the body of the tag or 2) the contents of the "src" attribute. I want to eval both of these with JavaScript.... | 2009/02/12 | [
"https://Stackoverflow.com/questions/542564",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/65681/"
] | Must it be a regex? You can use the DOM to obtain such information, here is a trivial example of getting the contents of the BODY tag, you could apply it to whatever you like:
```
function test(){
var body = document.getElementsByTagName("body")[0];
alert(body.innerHTML);
}
``` | Thanks for all the great suggestions everyone. I quickly discovered it's not possible to use Java's Regex API in GWT and was able to do what I wanted with JSNI.
```
public static native String evalJS(Element e) /*-{
var scripts = e.getElementsByTagName("script");
for (i=0; i < scripts.length; i++) {
/... |
542,564 | I'm trying to integrate analytics into my GWT application. To do this, I'm calling a service that returns a String of HTML that needs to be parsed and eval'ed.
I need a regex that looks for and grabs either 1) the body of the tag or 2) the contents of the "src" attribute. I want to eval both of these with JavaScript.... | 2009/02/12 | [
"https://Stackoverflow.com/questions/542564",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/65681/"
] | This seems to do what you want:
```
final String srcOne = "<html>\r\n<head>\r\n<script src=\"http://test.com/some.js\"/>\r\n</head></html>";
final String srcTwo = "<html>\r\n<head>\r\n<script src=\"http://test.com/some.js\"></script>\r\n</head></html>";
final String tag = "<html>\r\n<head>\r\n<script>\r\nf... | You could use something like this:
```
String ScriptPattern = "<script\b([^>]+)>(.*?)</script>"
Pattern ScriptRegex = Pattern.compile(ScriptPattern, Pattern.CASE_INSENSITIVE);
```
The regex uses the lazy star quantifier and should work in most cases but it could certainly be improved upon.
It will match in $1 ... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.