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
1,786,216
I have a table named `activity` with 2 columns: ``` when as datetime // last time i saw a user guid as varchar // a unique identifier for each user ``` This tables is used to track usage in a certain resource. Guid are created by the clients. I want to be able to query how many new users I have in the last day/wee...
2009/11/23
[ "https://Stackoverflow.com/questions/1786216", "https://Stackoverflow.com", "https://Stackoverflow.com/users/173437/" ]
``` select count(guid)as total_new_users from activity where when >= {last day/week/month} and guid not in(select guid from activity where when < {last day/week/month}) ```
``` SELECT COUNT(DISTINCT guid) FROM ACTIVITY WHERE when BETWEEN CURDATE() AND CURDATE() - INTERVAL 7 DAYS AND guid NOT IN (SELECT distinct GUID FROM ACTIVITY WHERE when < (CURDATE() -7 DAYS)) ``` That should do it.
1,786,216
I have a table named `activity` with 2 columns: ``` when as datetime // last time i saw a user guid as varchar // a unique identifier for each user ``` This tables is used to track usage in a certain resource. Guid are created by the clients. I want to be able to query how many new users I have in the last day/wee...
2009/11/23
[ "https://Stackoverflow.com/questions/1786216", "https://Stackoverflow.com", "https://Stackoverflow.com/users/173437/" ]
``` select count(guid)as total_new_users from activity where when >= {last day/week/month} and guid not in(select guid from activity where when < {last day/week/month}) ```
I think what you want is: ``` select count(*) from ( select guid,min(when) as first from activity group by guid having first between curdate()-interval 7 day and curdate() ) ``` You have to query the entire table because otherwise people will be counted as new for their first visit during the time period in que...
1,786,216
I have a table named `activity` with 2 columns: ``` when as datetime // last time i saw a user guid as varchar // a unique identifier for each user ``` This tables is used to track usage in a certain resource. Guid are created by the clients. I want to be able to query how many new users I have in the last day/wee...
2009/11/23
[ "https://Stackoverflow.com/questions/1786216", "https://Stackoverflow.com", "https://Stackoverflow.com/users/173437/" ]
I think what you want is: ``` select count(*) from ( select guid,min(when) as first from activity group by guid having first between curdate()-interval 7 day and curdate() ) ``` You have to query the entire table because otherwise people will be counted as new for their first visit during the time period in que...
``` SELECT COUNT(DISTINCT guid) FROM ACTIVITY WHERE when BETWEEN CURDATE() AND CURDATE() - INTERVAL 7 DAYS AND guid NOT IN (SELECT distinct GUID FROM ACTIVITY WHERE when < (CURDATE() -7 DAYS)) ``` That should do it.
45,005,735
Is there any way to minimize these piece of code, So we can write in a single line Basically I want to switch the attribute value of data-original to src and then want to remove data-original attribute from the element. Below is my code which is working for me but i want to minimize these piece of code so I can write...
2017/07/10
[ "https://Stackoverflow.com/questions/45005735", "https://Stackoverflow.com", "https://Stackoverflow.com/users/3548359/" ]
i think you can use following code: ``` $('#pop-slider li:eq(nth)').find('img[data-original]').each(function(){ $(this).attr('src',$(this).attr('data-original')).removeAttr('data-original') }); ```
You can do like this ``` var img=$('#pop-slider li:eq(nth)').find('img'); if(img.attr('data-original')){ img.attr('src',img.attr('data-original')); img.removeAttr('data-original'); } ```
6,891
The project I am currently working on requires that content created by members of a content authoring team is approved by a review team in order to publish - this is achieved by a workflow. I have a requirement that when the reviewer either approves or rejects an item of content, the original author is emailed to tell...
2017/08/03
[ "https://sitecore.stackexchange.com/questions/6891", "https://sitecore.stackexchange.com", "https://sitecore.stackexchange.com/users/1594/" ]
This post is an old one from Alex Shyba: <http://sitecoreblog.alexshyba.com/who_moved_the_item_to_the_workflow_state/> It highlights a way to go back through the workflow history to find a user. This can be more accurate than going to the Created field as an item might go through workflow multiple times, or the user t...
First of all check if "Created by" field in "Statistics" section of item is populated in the content editor under admin user. If no then something is wrong with updating statistics. And you should fix it. If "Created by" field is populated then check that reviewer user have permission to read information from "Create...
505,965
This is Transmission BitTorrent Client: ![enter image description here](https://i.stack.imgur.com/JgOs1.png) What does the "Seeding to 3 of 4 connected peers 7kB/s ▲"? What is seeding and what are peers? And why does this only appear after it has downloaded? Before it says "Downloading from 60 of 60 peers - 785 kB/s...
2014/08/02
[ "https://askubuntu.com/questions/505965", "https://askubuntu.com", "https://askubuntu.com/users/186134/" ]
Some torrent terminology: * Peer: A user who is participating in the torrent. * Seeder: A peer who keeps the torrent available for uploading. They can be the people who initially uploaded the torrent or those who have finished downloading it and kept it alive. * Seeding: To keep a torrent alive for uploading once you ...
**Seeders** are the peers who have completed downloading the file 100% A seed is a peer that has a complete copy of the torrent’s contents and keeps uploading it. That can be done by leaving the task running after completing the download. The more seeders there are, the better the chances of getting a higher download...
26,327,673
I have a problem in my .gitignore. I want it to just ignore the 'vendor/' directory, but it is ignoring all directories with that name. Below is my .gitignore: ``` .idea/ bin/ vendor/ composer.lock composer.phar ``` Below is the result of my 'git status': ``` Changes not staged for commit:    (use "git ad...
2014/10/12
[ "https://Stackoverflow.com/questions/26327673", "https://Stackoverflow.com", "https://Stackoverflow.com/users/-1/" ]
From the docs [for Git Ignore](https://www.kernel.org/pub/software/scm/git/docs/gitignore.html) > > A leading slash matches the beginning of the pathname. For example, `/*.c` matches `cat-file.c` but not `mozilla-sha1/sha1.c`. > > > Try changing `vendor/` to `/vendor/`
From [Git - gitignore Documentation](http://git-scm.com/docs/gitignore): > > "If the pattern ends with a slash, it is removed for the purpose of the following description, but it would only find a match with a directory. In other words, foo/ will match a directory foo and paths underneath it, but will not match a reg...
1,025,440
I am loading a webpage from an external server using UIWebView. The page loads very slowly. Using Edge, it takes ~30 seconds. Using WiFi, it takes ~5-6 seconds. The same page is much faster when loading directly through Safari. In the simulator, the UIWebView is very responsive. Has anyone had any experience in incr...
2009/06/22
[ "https://Stackoverflow.com/questions/1025440", "https://Stackoverflow.com", "https://Stackoverflow.com/users/-1/" ]
UIWebView is simply slow to load up compared to anything else, even when using simple static HTML. A UILabel is always far faster. I think this is because some aspects of the HTML engine you may not need (like the Javascript interpreter) take some time to load. But even if you keep an already created instance of a UIW...
That is because the Simulator is using your broadband connection.
1,025,440
I am loading a webpage from an external server using UIWebView. The page loads very slowly. Using Edge, it takes ~30 seconds. Using WiFi, it takes ~5-6 seconds. The same page is much faster when loading directly through Safari. In the simulator, the UIWebView is very responsive. Has anyone had any experience in incr...
2009/06/22
[ "https://Stackoverflow.com/questions/1025440", "https://Stackoverflow.com", "https://Stackoverflow.com/users/-1/" ]
A few points. 1. The simulator is purely an API simulator, it is not an emulator. This means that it's using the full power of you Mac and just making sure the API's behave the same way. Performance on your Mac is in no way correlated to the mobile device. 2. The UIWebView component is based on WebKit, but it's an old...
That is because the Simulator is using your broadband connection.
1,025,440
I am loading a webpage from an external server using UIWebView. The page loads very slowly. Using Edge, it takes ~30 seconds. Using WiFi, it takes ~5-6 seconds. The same page is much faster when loading directly through Safari. In the simulator, the UIWebView is very responsive. Has anyone had any experience in incr...
2009/06/22
[ "https://Stackoverflow.com/questions/1025440", "https://Stackoverflow.com", "https://Stackoverflow.com/users/-1/" ]
UIWebView is simply slow to load up compared to anything else, even when using simple static HTML. A UILabel is always far faster. I think this is because some aspects of the HTML engine you may not need (like the Javascript interpreter) take some time to load. But even if you keep an already created instance of a UIW...
A few points. 1. The simulator is purely an API simulator, it is not an emulator. This means that it's using the full power of you Mac and just making sure the API's behave the same way. Performance on your Mac is in no way correlated to the mobile device. 2. The UIWebView component is based on WebKit, but it's an old...
19,831,310
I have added uglifyjs plugin to my project with `grails install-plugin uglify-js-minified-resources`. Also added `compile ":uglify-js-minified-resources:0.1.1"` to my `BuildConfig.groovy` file. After starting application none of the js files was minified. Am i missing some configuration? I was following [this](http:...
2013/11/07
[ "https://Stackoverflow.com/questions/19831310", "https://Stackoverflow.com", "https://Stackoverflow.com/users/1883645/" ]
First make sure you have the resource plugin enabled for the environment you are checking. Many times I had it off in Dev on accident. Also you can turn on the logging to see what is happening. Add the following to your log4j config. ``` debug "org.grails.plugin.resource" ``` Also the minified resources will only sh...
If you want to install a plugin then you need to write it in BuildConfig.groovy. ``` dependencies { // dependency will be here. } plugins { compile ":uglify-js-minified-resources:0.1.1" } ``` Enjoy..
34,149,564
I am trying to put different instances of 1 dictionary into an array. Shared the expected and current output. Please suggest something Thanks in advance **Program.h** ``` @property (nonatomic,strong)NSMutableArray* array; ``` **Program.m** ``` -- (void)StartFuntion { _array = [[NSMutableArray alloc] init]; NSMut...
2015/12/08
[ "https://Stackoverflow.com/questions/34149564", "https://Stackoverflow.com", "https://Stackoverflow.com/users/5653112/" ]
You can't reuse `dicOne`. Instead of removing its objects, create a new instance. ``` _array = [[NSMutableArray alloc] init]; NSMutableDictionary* dicOne = [[NSMutableDictionary alloc] init]; [dicOne setObject:@"A" forKey:@"1"]; //Adding new [dicOne setObject:@"B" forKey:@"2"]; [dicOne setObject:@"C" forKey:@"...
You are reusing an `NSMutableDictionary` instead of creating a new instance. Do something like this instead... ``` [_array addObject:@{ @"1" : @"A", @"2" : @"B", @"3" : @"C", @"4" : @"D", }]; [_array addObject:@{ ...
34,149,564
I am trying to put different instances of 1 dictionary into an array. Shared the expected and current output. Please suggest something Thanks in advance **Program.h** ``` @property (nonatomic,strong)NSMutableArray* array; ``` **Program.m** ``` -- (void)StartFuntion { _array = [[NSMutableArray alloc] init]; NSMut...
2015/12/08
[ "https://Stackoverflow.com/questions/34149564", "https://Stackoverflow.com", "https://Stackoverflow.com/users/5653112/" ]
You are reusing an `NSMutableDictionary` instead of creating a new instance. Do something like this instead... ``` [_array addObject:@{ @"1" : @"A", @"2" : @"B", @"3" : @"C", @"4" : @"D", }]; [_array addObject:@{ ...
You can do something like this: ``` NSMutableArray array = [[NSMutableArray alloc] init]; [array addObject:dict1]; [array addObject:dict2]; ```
34,149,564
I am trying to put different instances of 1 dictionary into an array. Shared the expected and current output. Please suggest something Thanks in advance **Program.h** ``` @property (nonatomic,strong)NSMutableArray* array; ``` **Program.m** ``` -- (void)StartFuntion { _array = [[NSMutableArray alloc] init]; NSMut...
2015/12/08
[ "https://Stackoverflow.com/questions/34149564", "https://Stackoverflow.com", "https://Stackoverflow.com/users/5653112/" ]
You are reusing an `NSMutableDictionary` instead of creating a new instance. Do something like this instead... ``` [_array addObject:@{ @"1" : @"A", @"2" : @"B", @"3" : @"C", @"4" : @"D", }]; [_array addObject:@{ ...
Sure you can, but you have to make a copy of dic before inserting it in \_array. ``` -- (void) addob:(NSMutableDictionary*)dic{ [_array addObject:[dic copy]]; NSLog(@"_array = %@",_array); } ``` or use [dic mutableCopy] if you want mutable dict in your array. You can also make the copy when you call addob: and not i...
34,149,564
I am trying to put different instances of 1 dictionary into an array. Shared the expected and current output. Please suggest something Thanks in advance **Program.h** ``` @property (nonatomic,strong)NSMutableArray* array; ``` **Program.m** ``` -- (void)StartFuntion { _array = [[NSMutableArray alloc] init]; NSMut...
2015/12/08
[ "https://Stackoverflow.com/questions/34149564", "https://Stackoverflow.com", "https://Stackoverflow.com/users/5653112/" ]
You can't reuse `dicOne`. Instead of removing its objects, create a new instance. ``` _array = [[NSMutableArray alloc] init]; NSMutableDictionary* dicOne = [[NSMutableDictionary alloc] init]; [dicOne setObject:@"A" forKey:@"1"]; //Adding new [dicOne setObject:@"B" forKey:@"2"]; [dicOne setObject:@"C" forKey:@"...
You can do something like this: ``` NSMutableArray array = [[NSMutableArray alloc] init]; [array addObject:dict1]; [array addObject:dict2]; ```
34,149,564
I am trying to put different instances of 1 dictionary into an array. Shared the expected and current output. Please suggest something Thanks in advance **Program.h** ``` @property (nonatomic,strong)NSMutableArray* array; ``` **Program.m** ``` -- (void)StartFuntion { _array = [[NSMutableArray alloc] init]; NSMut...
2015/12/08
[ "https://Stackoverflow.com/questions/34149564", "https://Stackoverflow.com", "https://Stackoverflow.com/users/5653112/" ]
You can't reuse `dicOne`. Instead of removing its objects, create a new instance. ``` _array = [[NSMutableArray alloc] init]; NSMutableDictionary* dicOne = [[NSMutableDictionary alloc] init]; [dicOne setObject:@"A" forKey:@"1"]; //Adding new [dicOne setObject:@"B" forKey:@"2"]; [dicOne setObject:@"C" forKey:@"...
Sure you can, but you have to make a copy of dic before inserting it in \_array. ``` -- (void) addob:(NSMutableDictionary*)dic{ [_array addObject:[dic copy]]; NSLog(@"_array = %@",_array); } ``` or use [dic mutableCopy] if you want mutable dict in your array. You can also make the copy when you call addob: and not i...
285,641
I'm trying to read two functions of x from a file, and then get the result of f(8) / g(8) using `pgfmathparse`. Here is a minimal (not) working example: ``` \begin{filecontents}{data.dat} f(x) g(x) x x+1 \end{filecontents} \documentclass{article} \usepackage{xstring,pgfplotstable,filecontents} \begin{document} ...
2016/01/02
[ "https://tex.stackexchange.com/questions/285641", "https://tex.stackexchange.com", "https://tex.stackexchange.com/users/94936/" ]
Edit ==== You can do this without `xstring` if you have the input slightly modified. The previous code fails because `pgfmath` does not like `\x{}`. So I simply change it to `(\x)`. (You cannot leave `\x` along because otherwise `pgfplotstable` will not see the space between `\x` and `\x+1`.) [![](https://i.stack.img...
There is some expansion stuff going on (which I don't understand so won't attempt to explain it). But, here is one way to achieve the desired results: [![enter image description here](https://i.stack.imgur.com/LYZfn.png)](https://i.stack.imgur.com/LYZfn.png) Code: ----- ``` \begin{filecontents}{data.dat} f(x) g(x) x...
34,551,083
Why does [this SPARQL query](http://dbpedia.org/sparql?default-graph-uri=http%3A%2F%2Fdbpedia.org&qtxt=%20PREFIX%20dbpedia-owl%3A%20%3Chttp%3A%2F%2Fdbpedia.org%2Fontology%2F%3E%0D%0A%20PREFIX%20dbpedia%3A%20%3Chttp%3A%2F%2Fdbpedia.org%2Fresource%2F%3E%0D%0A%0D%0ASELECT%20*%0D%0AWHERE%20%7B%20%0D%0A%20%20%20%20%3Chttp%3...
2015/12/31
[ "https://Stackoverflow.com/questions/34551083", "https://Stackoverflow.com", "https://Stackoverflow.com/users/1033684/" ]
This URI does not lead to the same result as the DBpedia page - for what ever reason. You can see this with ``` PREFIX dbpedia-owl: <http://dbpedia.org/ontology/> PREFIX dbpedia: <http://dbpedia.org/resource/> SELECT * WHERE { <http://dbpedia.org/resource/Louis,_Prince_of_Condé_(1530–1569)> ?p ?o } LIMI...
It does not have `dbpedia-owl:abstract` predicate. If you list its predicates you find the following properties: ``` http://www.w3.org/2002/07/owl#sameAs http://xmlns.com/foaf/0.1/name http://purl.org/dc/elements/1.1/description http://dbpedia.org/ontology/alias http://dbpedia.org/ontology/birthYear http://dbpedia.or...
34,551,083
Why does [this SPARQL query](http://dbpedia.org/sparql?default-graph-uri=http%3A%2F%2Fdbpedia.org&qtxt=%20PREFIX%20dbpedia-owl%3A%20%3Chttp%3A%2F%2Fdbpedia.org%2Fontology%2F%3E%0D%0A%20PREFIX%20dbpedia%3A%20%3Chttp%3A%2F%2Fdbpedia.org%2Fresource%2F%3E%0D%0A%0D%0ASELECT%20*%0D%0AWHERE%20%7B%20%0D%0A%20%20%20%20%3Chttp%3...
2015/12/31
[ "https://Stackoverflow.com/questions/34551083", "https://Stackoverflow.com", "https://Stackoverflow.com/users/1033684/" ]
This URI does not lead to the same result as the DBpedia page - for what ever reason. You can see this with ``` PREFIX dbpedia-owl: <http://dbpedia.org/ontology/> PREFIX dbpedia: <http://dbpedia.org/resource/> SELECT * WHERE { <http://dbpedia.org/resource/Louis,_Prince_of_Condé_(1530–1569)> ?p ?o } LIMI...
As AKSW mentions, the resource actually doesn't have many properties, but is connected to the "canonical" version by an owl:sameAs link. You can keep using the IRI that you're using now, follow owl:sameAs in either direction to any of its equal resources (let's call them ?s), and then ask for the abstract of ?s. (And t...
1,291
I have an idea for a series of science articles, but I don't have a strong background in the particular field. What's a good way to identify experts who I could interview to shore up the details and make sure I get the facts straight? The local college might be a good start, but where do I go from there if I need more...
2011/02/04
[ "https://writers.stackexchange.com/questions/1291", "https://writers.stackexchange.com", "https://writers.stackexchange.com/users/641/" ]
When following up on an e-mail: I usually forward the original e-mail to the original recipient, with some added text at the top. ``` Hello [Name], Have you had time to look into this? Kind Regards, ... Forwarded message: From: .... Date: ... Subject: ... To: ... ... ```
Just forward your original e-mail and write on top of it "Polite Reminder."
1,291
I have an idea for a series of science articles, but I don't have a strong background in the particular field. What's a good way to identify experts who I could interview to shore up the details and make sure I get the facts straight? The local college might be a good start, but where do I go from there if I need more...
2011/02/04
[ "https://writers.stackexchange.com/questions/1291", "https://writers.stackexchange.com", "https://writers.stackexchange.com/users/641/" ]
Here's how I write it: > > Hi - this is just a friendly reminder that I'm waiting for [whatever it is]. Thanks! > > >
Write it as if *you're* the one apologizing to *them*. You know that they're the one who is dragging their feet. Pretend like you were instead. Frame the message in terms of "I must have missed an email somewhere, sorry" rather than "why haven't you sent me an email?" This lets them take the action you want without a...
1,291
I have an idea for a series of science articles, but I don't have a strong background in the particular field. What's a good way to identify experts who I could interview to shore up the details and make sure I get the facts straight? The local college might be a good start, but where do I go from there if I need more...
2011/02/04
[ "https://writers.stackexchange.com/questions/1291", "https://writers.stackexchange.com", "https://writers.stackexchange.com/users/641/" ]
Well, makes sure you're clear what you're asking about and don't assume they have the same information that you do. If you're following up on a submission make sure you tell them the title of the story and when you sent it off. It's possible that lost/misplaced your submission so this information well help them find yo...
I think the best way to remind someone is "I think my e-mail missed your attention".
1,291
I have an idea for a series of science articles, but I don't have a strong background in the particular field. What's a good way to identify experts who I could interview to shore up the details and make sure I get the facts straight? The local college might be a good start, but where do I go from there if I need more...
2011/02/04
[ "https://writers.stackexchange.com/questions/1291", "https://writers.stackexchange.com", "https://writers.stackexchange.com/users/641/" ]
When following up on an e-mail: I usually forward the original e-mail to the original recipient, with some added text at the top. ``` Hello [Name], Have you had time to look into this? Kind Regards, ... Forwarded message: From: .... Date: ... Subject: ... To: ... ... ```
Regarding the bullet point on the message being "respectful", I would like to point out something which I don't see being stated explicitly in any of the previous answers. This goes equally for both original requests and reminders alike. **Make it *actionable* by the recipient.** Give the recipient a clear path forwa...
1,291
I have an idea for a series of science articles, but I don't have a strong background in the particular field. What's a good way to identify experts who I could interview to shore up the details and make sure I get the facts straight? The local college might be a good start, but where do I go from there if I need more...
2011/02/04
[ "https://writers.stackexchange.com/questions/1291", "https://writers.stackexchange.com", "https://writers.stackexchange.com/users/641/" ]
Here's how I write it: > > Hi - this is just a friendly reminder that I'm waiting for [whatever it is]. Thanks! > > >
Regarding the bullet point on the message being "respectful", I would like to point out something which I don't see being stated explicitly in any of the previous answers. This goes equally for both original requests and reminders alike. **Make it *actionable* by the recipient.** Give the recipient a clear path forwa...
1,291
I have an idea for a series of science articles, but I don't have a strong background in the particular field. What's a good way to identify experts who I could interview to shore up the details and make sure I get the facts straight? The local college might be a good start, but where do I go from there if I need more...
2011/02/04
[ "https://writers.stackexchange.com/questions/1291", "https://writers.stackexchange.com", "https://writers.stackexchange.com/users/641/" ]
I'd probably go with something on the lines of: > > Hi [whoever] > > > Just checking that the XXX I sent you on Xth XXX is okay. I have to [do > something] with your feedback before I > can [do something else]. Can you let > me know when you'll be able to look at > it for me? > > > Thanks > > > That way, it m...
Regarding the bullet point on the message being "respectful", I would like to point out something which I don't see being stated explicitly in any of the previous answers. This goes equally for both original requests and reminders alike. **Make it *actionable* by the recipient.** Give the recipient a clear path forwa...
1,291
I have an idea for a series of science articles, but I don't have a strong background in the particular field. What's a good way to identify experts who I could interview to shore up the details and make sure I get the facts straight? The local college might be a good start, but where do I go from there if I need more...
2011/02/04
[ "https://writers.stackexchange.com/questions/1291", "https://writers.stackexchange.com", "https://writers.stackexchange.com/users/641/" ]
I'd probably go with something on the lines of: > > Hi [whoever] > > > Just checking that the XXX I sent you on Xth XXX is okay. I have to [do > something] with your feedback before I > can [do something else]. Can you let > me know when you'll be able to look at > it for me? > > > Thanks > > > That way, it m...
I like suggesting that they may have already done it, in case they have! > > Dear xxx, > > If you haven't already, please take a moment to ... > > > If you have, thank you. > > > Regards, > > xxx > > >
1,291
I have an idea for a series of science articles, but I don't have a strong background in the particular field. What's a good way to identify experts who I could interview to shore up the details and make sure I get the facts straight? The local college might be a good start, but where do I go from there if I need more...
2011/02/04
[ "https://writers.stackexchange.com/questions/1291", "https://writers.stackexchange.com", "https://writers.stackexchange.com/users/641/" ]
Here's how I write it: > > Hi - this is just a friendly reminder that I'm waiting for [whatever it is]. Thanks! > > >
My suggestions are 1-Keep it very short 2-Remind them clearly what you need (yes/no, approval, a revised draft, etc.) 3-Keep it kind/gentle but definite I try to be a little cutesy or funny to convey I'm not annoyed so that they don't get defensive. If my objective is to get it done, I don't mind taking one for the ...
1,291
I have an idea for a series of science articles, but I don't have a strong background in the particular field. What's a good way to identify experts who I could interview to shore up the details and make sure I get the facts straight? The local college might be a good start, but where do I go from there if I need more...
2011/02/04
[ "https://writers.stackexchange.com/questions/1291", "https://writers.stackexchange.com", "https://writers.stackexchange.com/users/641/" ]
When following up on an e-mail: I usually forward the original e-mail to the original recipient, with some added text at the top. ``` Hello [Name], Have you had time to look into this? Kind Regards, ... Forwarded message: From: .... Date: ... Subject: ... To: ... ... ```
I like suggesting that they may have already done it, in case they have! > > Dear xxx, > > If you haven't already, please take a moment to ... > > > If you have, thank you. > > > Regards, > > xxx > > >
1,291
I have an idea for a series of science articles, but I don't have a strong background in the particular field. What's a good way to identify experts who I could interview to shore up the details and make sure I get the facts straight? The local college might be a good start, but where do I go from there if I need more...
2011/02/04
[ "https://writers.stackexchange.com/questions/1291", "https://writers.stackexchange.com", "https://writers.stackexchange.com/users/641/" ]
Well, makes sure you're clear what you're asking about and don't assume they have the same information that you do. If you're following up on a submission make sure you tell them the title of the story and when you sent it off. It's possible that lost/misplaced your submission so this information well help them find yo...
My suggestions are 1-Keep it very short 2-Remind them clearly what you need (yes/no, approval, a revised draft, etc.) 3-Keep it kind/gentle but definite I try to be a little cutesy or funny to convey I'm not annoyed so that they don't get defensive. If my objective is to get it done, I don't mind taking one for the ...
847
I am not a historian, just an enthusiast with no formal history training. I tried to write a question, but in comments, was referred to Wikipedia pages (Wikipedia is in my opinion, **not** an authorative source), from experience, downvotes generally follow. So, I deleted the question to save that hassle, but I am als...
2014/01/07
[ "https://history.meta.stackexchange.com/questions/847", "https://history.meta.stackexchange.com", "https://history.meta.stackexchange.com/users/-1/" ]
What makes you think Wikipedia would be any less authoritative then this site? Both are run by random strangers on the internet. The difference between a good and a bad answer on this site is the same as on Wikipedia: **sources**.
It takes some time to learn how to craft a question.
847
I am not a historian, just an enthusiast with no formal history training. I tried to write a question, but in comments, was referred to Wikipedia pages (Wikipedia is in my opinion, **not** an authorative source), from experience, downvotes generally follow. So, I deleted the question to save that hassle, but I am als...
2014/01/07
[ "https://history.meta.stackexchange.com/questions/847", "https://history.meta.stackexchange.com", "https://history.meta.stackexchange.com/users/-1/" ]
What makes you think Wikipedia would be any less authoritative then this site? Both are run by random strangers on the internet. The difference between a good and a bad answer on this site is the same as on Wikipedia: **sources**.
Wikipedia is a legitimate source for preliminary research. Certainly there are false statements on wikipedia, and there a statements/articles that are misleading because they are incomplete. I imagine that if this site were subjected to the same level of scrutiny as wikipedia, we'd be found guilty of the same offenses....
847
I am not a historian, just an enthusiast with no formal history training. I tried to write a question, but in comments, was referred to Wikipedia pages (Wikipedia is in my opinion, **not** an authorative source), from experience, downvotes generally follow. So, I deleted the question to save that hassle, but I am als...
2014/01/07
[ "https://history.meta.stackexchange.com/questions/847", "https://history.meta.stackexchange.com", "https://history.meta.stackexchange.com/users/-1/" ]
What makes you think Wikipedia would be any less authoritative then this site? Both are run by random strangers on the internet. The difference between a good and a bad answer on this site is the same as on Wikipedia: **sources**.
The bias is (legitimately) on the questions that make the reader suspect that the asked didn't even bother reading Wikipedia. If your question states: > > I'm curious about XYZ. I read Wikipedia articles A and B, and have doubts about aspects C and D in those articles. > > > ... then it is a lot more likely to b...
70,392,070
```css *{ margin:0; padding: 0; box-sizing: border-box; } body{ background-color: burlywood; } header{ width: 100%; background-color: azure; display: flex; justify-content: space-between; ...
2021/12/17
[ "https://Stackoverflow.com/questions/70392070", "https://Stackoverflow.com", "https://Stackoverflow.com/users/17695270/" ]
You can try this hope it helps ```html <link href="https://cdn.jsdelivr.net/npm/bootstrap@5.0.2/dist/css/bootstrap.min.css" rel="stylesheet" /> <div class="brand_story_body w-75 d-flex m-auto justify-content-between"> <div class="container-md mt-3"> <div class="row"> <div class="col-6 p-0 m-0 border"> <d...
This is a working example: ```html <link href="https://cdn.jsdelivr.net/npm/bootstrap@5.0.2/dist/css/bootstrap.min.css" rel="stylesheet" /> <div class="brand_story_body"> <div class="brand_story_description"> <div class="row"> <div class="col"> <img class="img-responsive w-100" src="https://i.ibb.c...
70,392,070
```css *{ margin:0; padding: 0; box-sizing: border-box; } body{ background-color: burlywood; } header{ width: 100%; background-color: azure; display: flex; justify-content: space-between; ...
2021/12/17
[ "https://Stackoverflow.com/questions/70392070", "https://Stackoverflow.com", "https://Stackoverflow.com/users/17695270/" ]
You can try this hope it helps ```html <link href="https://cdn.jsdelivr.net/npm/bootstrap@5.0.2/dist/css/bootstrap.min.css" rel="stylesheet" /> <div class="brand_story_body w-75 d-flex m-auto justify-content-between"> <div class="container-md mt-3"> <div class="row"> <div class="col-6 p-0 m-0 border"> <d...
Simply using Flexbox or Grid. In the example below i used Flexbox. You can find a very good explanation [here](https://css-tricks.com/snippets/css/a-guide-to-flexbox/) ```css .brand_story_description { display: flex; flex-wrap: wrap; } .brand_story_description .w-50 { flex: 0 1 50%; } ``` ```html <link href="h...
13,495,367
I have created a custom content page.tpl.php file and I am trying to display the whole comments section. So far I have been apply to display the beginning of the comments section where the user can enter comments but it is not printing the comment thread. The code I am using to print the comments is `<?php print drup...
2012/11/21
[ "https://Stackoverflow.com/questions/13495367", "https://Stackoverflow.com", "https://Stackoverflow.com/users/1765703/" ]
It'd probably be best to make use of [`comment_node_page_additions()`](http://api.drupal.org/api/drupal/modules%21comment%21comment.module/function/comment_node_page_additions/7): > > Build the comment-related elements for node detail pages. > > > e.g. ``` $rendered = render(comment_node_page_additions($node)); ...
Use the following code in your `page.tpl.php` ``` <?php print render($content['comments']);?> ```
31,029
In [wikipedia page - jazz chords : Major Seventh](http://en.wikipedia.org/wiki/Jazz_chord#Major_chords) it is said that *"if the melody note is the root of the chord, including a major seventh can frequently cause a harsh dissonance"*. But since the root note itself is played in the melody, what is the reason for the d...
2015/03/23
[ "https://music.stackexchange.com/questions/31029", "https://music.stackexchange.com", "https://music.stackexchange.com/users/1391/" ]
Even if the b2 interval mentioned in Dan Davis's answer is avoided by using a different voicing, the problem that is usually meant in this context is the b9 interval between the major 7th and the (higher) root note. The b9 interval is considered a very dissonant interval which in *traditional* jazz harmony is only "all...
It looks like that bit of information has been in the article since it was written. From [the original 2005 article](http://en.wikipedia.org/w/index.php?title=Jazz_chord&oldid=14739891#Notes): > > Often the melody note or other pitched phenomena influences which of the above chord types a performer selects. For examp...
31,029
In [wikipedia page - jazz chords : Major Seventh](http://en.wikipedia.org/wiki/Jazz_chord#Major_chords) it is said that *"if the melody note is the root of the chord, including a major seventh can frequently cause a harsh dissonance"*. But since the root note itself is played in the melody, what is the reason for the d...
2015/03/23
[ "https://music.stackexchange.com/questions/31029", "https://music.stackexchange.com", "https://music.stackexchange.com/users/1391/" ]
It looks like that bit of information has been in the article since it was written. From [the original 2005 article](http://en.wikipedia.org/w/index.php?title=Jazz_chord&oldid=14739891#Notes): > > Often the melody note or other pitched phenomena influences which of the above chord types a performer selects. For examp...
A minor 2nd interval (two notes that are one half-step apart) is used in the chord. Minor 2nds generally sound dissonant and not very good. On a piano, try playing B and C or F and F# together. The major seventh chord doesn't sound quite as dissonant as this because the B and C are in different octaves, but it's defi...
31,029
In [wikipedia page - jazz chords : Major Seventh](http://en.wikipedia.org/wiki/Jazz_chord#Major_chords) it is said that *"if the melody note is the root of the chord, including a major seventh can frequently cause a harsh dissonance"*. But since the root note itself is played in the melody, what is the reason for the d...
2015/03/23
[ "https://music.stackexchange.com/questions/31029", "https://music.stackexchange.com", "https://music.stackexchange.com/users/1391/" ]
Even if the b2 interval mentioned in Dan Davis's answer is avoided by using a different voicing, the problem that is usually meant in this context is the b9 interval between the major 7th and the (higher) root note. The b9 interval is considered a very dissonant interval which in *traditional* jazz harmony is only "all...
Spacing ("voicing") a chord like that makes the interval between the topmost "seventh" and the melody note a semitone, also called a minor second. A different spacing would change that to a major seventh. Minor seconds sound harsher than major sevenths, because the notes of a minor second usually occupy the same psych...
31,029
In [wikipedia page - jazz chords : Major Seventh](http://en.wikipedia.org/wiki/Jazz_chord#Major_chords) it is said that *"if the melody note is the root of the chord, including a major seventh can frequently cause a harsh dissonance"*. But since the root note itself is played in the melody, what is the reason for the d...
2015/03/23
[ "https://music.stackexchange.com/questions/31029", "https://music.stackexchange.com", "https://music.stackexchange.com/users/1391/" ]
Even if the b2 interval mentioned in Dan Davis's answer is avoided by using a different voicing, the problem that is usually meant in this context is the b9 interval between the major 7th and the (higher) root note. The b9 interval is considered a very dissonant interval which in *traditional* jazz harmony is only "all...
A minor 2nd interval (two notes that are one half-step apart) is used in the chord. Minor 2nds generally sound dissonant and not very good. On a piano, try playing B and C or F and F# together. The major seventh chord doesn't sound quite as dissonant as this because the B and C are in different octaves, but it's defi...
31,029
In [wikipedia page - jazz chords : Major Seventh](http://en.wikipedia.org/wiki/Jazz_chord#Major_chords) it is said that *"if the melody note is the root of the chord, including a major seventh can frequently cause a harsh dissonance"*. But since the root note itself is played in the melody, what is the reason for the d...
2015/03/23
[ "https://music.stackexchange.com/questions/31029", "https://music.stackexchange.com", "https://music.stackexchange.com/users/1391/" ]
Spacing ("voicing") a chord like that makes the interval between the topmost "seventh" and the melody note a semitone, also called a minor second. A different spacing would change that to a major seventh. Minor seconds sound harsher than major sevenths, because the notes of a minor second usually occupy the same psych...
A minor 2nd interval (two notes that are one half-step apart) is used in the chord. Minor 2nds generally sound dissonant and not very good. On a piano, try playing B and C or F and F# together. The major seventh chord doesn't sound quite as dissonant as this because the B and C are in different octaves, but it's defi...
2,087,854
What is the best practice for setting up a background process that runs every 10 minutes in a WinForm project? Is it to use a backgroundworker off of the form? Or is there a more generic way that would apply to many more project styles? Maybe some code I should call right before the line: ``` Application.Run(new Fo...
2010/01/18
[ "https://Stackoverflow.com/questions/2087854", "https://Stackoverflow.com", "https://Stackoverflow.com/users/36590/" ]
Typically, if you want a Windows Forms application to run some code on a regular interval, using a [Windows.Forms.Timer](http://msdn.microsoft.com/en-us/library/system.windows.forms.timer.aspx) on one of your forms is an appropriate way to handle the notifications. However, as you seem to have realized, this will requ...
You can use Task Scheduler to schedule an application. If you want to have a timer in your application you can either use a timer or use a library such as [Quartz.NET](http://quartznet.sourceforge.net/)
16,990,202
Is there a resource that provides quick/easy access to methods and their pydoc's for standard library classes? E.g. I want to see what are the methods available on the Match class and the associated pydoc descriptions. Starting pydoc -p 8888 is partially helpful .. but does not address this usecase. Thanks.
2013/06/07
[ "https://Stackoverflow.com/questions/16990202", "https://Stackoverflow.com", "https://Stackoverflow.com/users/1056563/" ]
Specifically for your case, help on the `re.MatchObject` can be found at <http://docs.python.org/2/library/re.html#match-objects> for Python 2.x or <http://docs.python.org/3/library/re.html#match-objects> for Python 3.x. Additionally, as Mark writes, you can call `help` on the interactive console. If you don't know h...
Try: ``` >>> import re.match >>> help(re.match('', '')) ``` from the interactive console. * Edited to add your specific example.
40,998,526
Can someone help to know, can I see cost of each call at user cabinet in Twilio service?
2016/12/06
[ "https://Stackoverflow.com/questions/40998526", "https://Stackoverflow.com", "https://Stackoverflow.com/users/5625211/" ]
Twilio developer evangelist here. You can see the price of a call on the call details page, linked from the call logs with a URL that would look like this: <https://www.twilio.com/console/voice/logs/calls/CALL_SID>, in your [Twilio console](https://www.twilio.com/console/voice/logs/calls). [![The cost is listed on an...
<https://www.twilio.com/voice/pricing/in> If you use trial then free. other twilio take per call like this[![enter image description here](https://i.stack.imgur.com/ItS63.png)](https://i.stack.imgur.com/ItS63.png)
40,998,526
Can someone help to know, can I see cost of each call at user cabinet in Twilio service?
2016/12/06
[ "https://Stackoverflow.com/questions/40998526", "https://Stackoverflow.com", "https://Stackoverflow.com/users/5625211/" ]
Twilio developer evangelist here. You can see the price of a call on the call details page, linked from the call logs with a URL that would look like this: <https://www.twilio.com/console/voice/logs/calls/CALL_SID>, in your [Twilio console](https://www.twilio.com/console/voice/logs/calls). [![The cost is listed on an...
You can find it on <https://www.twilio.com/voice/pricing> Finally found it
66,848,910
I'm trying to wrap my head around the correct steps to deploy [CouchDB](https://couchdb.apache.org] into a Kubernetes cluster. What I did is: ```sh kubectl create secret --namespace mynamespace generic couch-test-couchdb \ --from-literal=adminUsername=admin --from-literal=adminPassword=password --from-literal=c...
2021/03/29
[ "https://Stackoverflow.com/questions/66848910", "https://Stackoverflow.com", "https://Stackoverflow.com/users/131021/" ]
Storage classes are environment/infrastructure specific which is why the CouchDB Helm chart stops short of creating any. The chart should create a `PersistantVolumeClaim` for each pod using the storage class specified in the chart values file. Most production Kubernetes environments will have a list of preconfigured `...
To expand on Will's solution and my edge case: It looks like the helm chart won't create a `PersistentVolumeClaim` when the `storageClass` isn't capable of dynamic provisioning. In my case I was configuring an Edge device with local storage only using [Microk8s](https://microk8s.io/). Luckily Microk8s comes with a st...
33,114,945
So I am trying to figure out what my error is, whenever I run this program I made, it keeps giving me this error: > > Exception in thread "main" java.util.InputMismatchException > at java.util.Scanner.throwFor(Scanner.java:864) > at java.util.Scanner.next(Scanner.java:1485) > at java.util.Scanner.nextInt(Scanner.j...
2015/10/14
[ "https://Stackoverflow.com/questions/33114945", "https://Stackoverflow.com", "https://Stackoverflow.com/users/5443069/" ]
You need to use `%f` as the [format specifier for float values](https://uk.mathworks.com/help/matlab/matlab_prog/formatting-strings.html#bq0z60p-1). Changing your code ``` Mean=sprintf('Mean=%0.4d',M) ``` to ``` Mean=sprintf('Mean=%0.4f',M) ``` will print `M` with 4 decimal places of accuracy. If you want to prin...
You can use `num2str` function. For example: ``` mean(y) a=num2str(ans,5) plot(x,y) title(['sometext ' a]) ``` `5` in `num2str` parameters shows maximum number of significant digits. And `a` is now a `string`. By the way you can use `mean` build-in function instead your formula.
253,447
I'm trying to make an animated grass field. I have set the particle system and I want to simulate some wind in the scene, but when I move the Turbulence the particles just start spinning around theyr origins... [![enter image description here](https://i.stack.imgur.com/YZQ7H.jpg)](https://i.stack.imgur.com/YZQ7H.jpg) ...
2022/02/11
[ "https://blender.stackexchange.com/questions/253447", "https://blender.stackexchange.com", "https://blender.stackexchange.com/users/142021/" ]
I've told you that it will not work if instances are realized. After realizing, whose instances are converted from many objects inside the main object into one object which has one common object position. The only way to make it work in 3.0 is to calculate distance inside GN and then pass this value using transfer att...
sorry, i am always working with 3.1...so here the update for 3.0: [![enter image description here](https://i.stack.imgur.com/ar4IP.png)](https://i.stack.imgur.com/ar4IP.png) [![enter image description here](https://i.stack.imgur.com/TRRi5.jpg)](https://i.stack.imgur.com/TRRi5.jpg) --- you can use this node setup to...
17,676,627
I'm already finished my code using delphi,but then i was wondering if i can use mmio windows function in java to read .wav file, is it even possible? if yes can u give me lead, because i can't found any source to get started?
2013/07/16
[ "https://Stackoverflow.com/questions/17676627", "https://Stackoverflow.com", "https://Stackoverflow.com/users/1745841/" ]
I don't see anything wrong with your query -- I have updated the syntax to use `INNER JOINs` and to use `NOT IN` though: ``` SELECT *, `tee`.`id` as id, `tee`.`created` as created, `users`.`id` as user_id, `users`.`created` as user_created FROM `tee` JOIN `users` ON `users`.`id` = `tee`.`user_id` JOIN `...
you can use Not In ('41','11',...) instead of `tee`.`id` != '41' AND `tee`.`id` != '11'.....
17,676,627
I'm already finished my code using delphi,but then i was wondering if i can use mmio windows function in java to read .wav file, is it even possible? if yes can u give me lead, because i can't found any source to get started?
2013/07/16
[ "https://Stackoverflow.com/questions/17676627", "https://Stackoverflow.com", "https://Stackoverflow.com/users/1745841/" ]
I don't see anything wrong with your query -- I have updated the syntax to use `INNER JOINs` and to use `NOT IN` though: ``` SELECT *, `tee`.`id` as id, `tee`.`created` as created, `users`.`id` as user_id, `users`.`created` as user_created FROM `tee` JOIN `users` ON `users`.`id` = `tee`.`user_id` JOIN `...
Use a UNION clause. First select your tees then select the tees from people you follow.
73,158,731
I want to display OpenStreetMaps in the package [flutter\_map](https://pub.dev/packages/flutter_map) in a darkmode. I have read that you can use the `tileBuilder` or a `tilesContainerBuilder` to create a ColorFiltered, with the help of which the map is then displayed in dark mode. When I create the code with an OpenStr...
2022/07/28
[ "https://Stackoverflow.com/questions/73158731", "https://Stackoverflow.com", "https://Stackoverflow.com/users/6355909/" ]
As seen on the [pypi installation page of easyocr](https://pypi.org/project/easyocr/) "In case you do not have a GPU, or your GPU has low memory, you can run the model in CPU-only mode by adding gpu=False. ```py reader = easyocr.Reader(['ch_sim','en'], gpu=False) ``` "
EasyOCR works without GPU, but is crushingly slow.
48,402
Below is the new Sonos logo. When you scroll up and down with the image on screen, it looks like sound waves are pulsing outward. What causes this effect to occur? ![enter image description here](https://i.stack.imgur.com/cPsGC.jpg)
2015/02/17
[ "https://graphicdesign.stackexchange.com/questions/48402", "https://graphicdesign.stackexchange.com", "https://graphicdesign.stackexchange.com/users/39559/" ]
It's called a [Moiré pattern](http://en.wikipedia.org/wiki/Moir%C3%A9_pattern). It forms when two 'grid' patterns (loose term that could apply to geometric lines, dots, etc.) are overlaid with each other and moved. In this case, the two 'grid patterns' are the image, itself (which is geometric lines) and the pixel ...
The Moiré pattern is part of the cause, but another factor (since it's more noticeable when you scroll) is the refresh rate of the screen, and the fact that not all lines update at once. It usually updates line by line horizontally, and this distortion combined with the Moiré makes the pulsating effect.
48,402
Below is the new Sonos logo. When you scroll up and down with the image on screen, it looks like sound waves are pulsing outward. What causes this effect to occur? ![enter image description here](https://i.stack.imgur.com/cPsGC.jpg)
2015/02/17
[ "https://graphicdesign.stackexchange.com/questions/48402", "https://graphicdesign.stackexchange.com", "https://graphicdesign.stackexchange.com/users/39559/" ]
It's called a [Moiré pattern](http://en.wikipedia.org/wiki/Moir%C3%A9_pattern). It forms when two 'grid' patterns (loose term that could apply to geometric lines, dots, etc.) are overlaid with each other and moved. In this case, the two 'grid patterns' are the image, itself (which is geometric lines) and the pixel ...
Moiré of the pattern overlaying itself -------------------------------------- The pattern of the logo creates a surprising visual appearence of motion when it is shown on an LCD\* and the view is scrolled by small fractions of the pattern size. The effect seen when scrolling the image up and down is a [**Moiré**](htt...
48,402
Below is the new Sonos logo. When you scroll up and down with the image on screen, it looks like sound waves are pulsing outward. What causes this effect to occur? ![enter image description here](https://i.stack.imgur.com/cPsGC.jpg)
2015/02/17
[ "https://graphicdesign.stackexchange.com/questions/48402", "https://graphicdesign.stackexchange.com", "https://graphicdesign.stackexchange.com/users/39559/" ]
It's called a [Moiré pattern](http://en.wikipedia.org/wiki/Moir%C3%A9_pattern). It forms when two 'grid' patterns (loose term that could apply to geometric lines, dots, etc.) are overlaid with each other and moved. In this case, the two 'grid patterns' are the image, itself (which is geometric lines) and the pixel ...
The moire effect and similar visual effects are a, likely big, part of the story. However, with LCDs you have an extra twist that depends on the LCD model: The reponse time (time for a pixel to change state to what is needed) depends on the grey levels (begin and end). <http://www.lagom.nl/lcd-test/response_time.php#...
48,402
Below is the new Sonos logo. When you scroll up and down with the image on screen, it looks like sound waves are pulsing outward. What causes this effect to occur? ![enter image description here](https://i.stack.imgur.com/cPsGC.jpg)
2015/02/17
[ "https://graphicdesign.stackexchange.com/questions/48402", "https://graphicdesign.stackexchange.com", "https://graphicdesign.stackexchange.com/users/39559/" ]
Moiré of the pattern overlaying itself -------------------------------------- The pattern of the logo creates a surprising visual appearence of motion when it is shown on an LCD\* and the view is scrolled by small fractions of the pattern size. The effect seen when scrolling the image up and down is a [**Moiré**](htt...
The Moiré pattern is part of the cause, but another factor (since it's more noticeable when you scroll) is the refresh rate of the screen, and the fact that not all lines update at once. It usually updates line by line horizontally, and this distortion combined with the Moiré makes the pulsating effect.
48,402
Below is the new Sonos logo. When you scroll up and down with the image on screen, it looks like sound waves are pulsing outward. What causes this effect to occur? ![enter image description here](https://i.stack.imgur.com/cPsGC.jpg)
2015/02/17
[ "https://graphicdesign.stackexchange.com/questions/48402", "https://graphicdesign.stackexchange.com", "https://graphicdesign.stackexchange.com/users/39559/" ]
The moire effect and similar visual effects are a, likely big, part of the story. However, with LCDs you have an extra twist that depends on the LCD model: The reponse time (time for a pixel to change state to what is needed) depends on the grey levels (begin and end). <http://www.lagom.nl/lcd-test/response_time.php#...
The Moiré pattern is part of the cause, but another factor (since it's more noticeable when you scroll) is the refresh rate of the screen, and the fact that not all lines update at once. It usually updates line by line horizontally, and this distortion combined with the Moiré makes the pulsating effect.
48,402
Below is the new Sonos logo. When you scroll up and down with the image on screen, it looks like sound waves are pulsing outward. What causes this effect to occur? ![enter image description here](https://i.stack.imgur.com/cPsGC.jpg)
2015/02/17
[ "https://graphicdesign.stackexchange.com/questions/48402", "https://graphicdesign.stackexchange.com", "https://graphicdesign.stackexchange.com/users/39559/" ]
Moiré of the pattern overlaying itself -------------------------------------- The pattern of the logo creates a surprising visual appearence of motion when it is shown on an LCD\* and the view is scrolled by small fractions of the pattern size. The effect seen when scrolling the image up and down is a [**Moiré**](htt...
The moire effect and similar visual effects are a, likely big, part of the story. However, with LCDs you have an extra twist that depends on the LCD model: The reponse time (time for a pixel to change state to what is needed) depends on the grey levels (begin and end). <http://www.lagom.nl/lcd-test/response_time.php#...
67,304,231
I would like to take an array of objects that contains string and numeric values and convert all string values to lowercase. I don't know ahead of time what specific values my array objects will have, so I just want to first check if an object within the array contains a string, and then make that string lowercase. Whe...
2021/04/28
[ "https://Stackoverflow.com/questions/67304231", "https://Stackoverflow.com", "https://Stackoverflow.com/users/12114075/" ]
You need to use `.map()` to iterate over the array, you can't just use the array itself as a function. You can then use `Object.entries(x).map()` to iterate of the keys and values of the object, and lowercase the string values. A new object can then be created using `Object.fromEntries()`. ```js let data = [{ use...
`Array.map` is not needed here (some other answers suggest this) since you are not changing what the objects themselves are, only their properties. Iterate over the array, changing the objects. ```js let data = [{ userId: 1234567890, errorId: 957, userCategory: "Category", userAge: 18, userType: "Standard" ...
67,304,231
I would like to take an array of objects that contains string and numeric values and convert all string values to lowercase. I don't know ahead of time what specific values my array objects will have, so I just want to first check if an object within the array contains a string, and then make that string lowercase. Whe...
2021/04/28
[ "https://Stackoverflow.com/questions/67304231", "https://Stackoverflow.com", "https://Stackoverflow.com/users/12114075/" ]
`Array.map` is not needed here (some other answers suggest this) since you are not changing what the objects themselves are, only their properties. Iterate over the array, changing the objects. ```js let data = [{ userId: 1234567890, errorId: 957, userCategory: "Category", userAge: 18, userType: "Standard" ...
You could simply iterate over the object keys and check the `typeof` it's value - if it's a string then call `toLowerCase` on it, otherwise just return the original data. For example: ```js let data = [{ userId: 1234567890, errorId: 957, userCategory: "Category", userAge: 18, userType: "Standard" ...
67,304,231
I would like to take an array of objects that contains string and numeric values and convert all string values to lowercase. I don't know ahead of time what specific values my array objects will have, so I just want to first check if an object within the array contains a string, and then make that string lowercase. Whe...
2021/04/28
[ "https://Stackoverflow.com/questions/67304231", "https://Stackoverflow.com", "https://Stackoverflow.com/users/12114075/" ]
You need to use `.map()` to iterate over the array, you can't just use the array itself as a function. You can then use `Object.entries(x).map()` to iterate of the keys and values of the object, and lowercase the string values. A new object can then be created using `Object.fromEntries()`. ```js let data = [{ use...
You could simply iterate over the object keys and check the `typeof` it's value - if it's a string then call `toLowerCase` on it, otherwise just return the original data. For example: ```js let data = [{ userId: 1234567890, errorId: 957, userCategory: "Category", userAge: 18, userType: "Standard" ...
2,293,698
Suppose i have two curves $\gamma\_1$ and $\gamma\_2$, where one is a linear curve, $$\gamma\_1(t)=tP\_1+(1-t)P\_2$$ and the other is a similar path, composed with a $C^\infty$-diffeomorphism $\Phi:\mathbb{R}^n\rightarrow\mathbb{R}^n$: $$\gamma\_2(t)=\Phi(tP\_3+(1-t)P\_4)$$ Can one prove, that the intersections are fi...
2017/05/23
[ "https://math.stackexchange.com/questions/2293698", "https://math.stackexchange.com", "https://math.stackexchange.com/users/313438/" ]
For $0 \le k \le 12$, the probability that she chooses exactly $k$ of those $24$ that you know is $$ {24 \choose k} {16 \choose 12-k}\left/ {40 \choose 12} \right.$$ You must add these for $k$ from $7$ to $12$. But I think it would be more productive to learn some of the other $16$ definitions.
There are ${40}\choose{12}$ possible exams. We need $n = 7..12$ correct solutions, and can make $12-n$ mistakes. $\sum\_{n=7}^{12} {{24}\choose{n}} {{16}\choose{12-n}}$ Divide for the ratio, take normal distribution approximation for practical use.
2,293,698
Suppose i have two curves $\gamma\_1$ and $\gamma\_2$, where one is a linear curve, $$\gamma\_1(t)=tP\_1+(1-t)P\_2$$ and the other is a similar path, composed with a $C^\infty$-diffeomorphism $\Phi:\mathbb{R}^n\rightarrow\mathbb{R}^n$: $$\gamma\_2(t)=\Phi(tP\_3+(1-t)P\_4)$$ Can one prove, that the intersections are fi...
2017/05/23
[ "https://math.stackexchange.com/questions/2293698", "https://math.stackexchange.com", "https://math.stackexchange.com/users/313438/" ]
For $0 \le k \le 12$, the probability that she chooses exactly $k$ of those $24$ that you know is $$ {24 \choose k} {16 \choose 12-k}\left/ {40 \choose 12} \right.$$ You must add these for $k$ from $7$ to $12$. But I think it would be more productive to learn some of the other $16$ definitions.
I'm not sure how to read the question. In one interpretation the $40$ seems to be irrelevant. You know she will choose her $12$ from $24$. There are $W = \binom{24}{12}$ ways she can do that. Counting the ways you can guess $7$ or more you get $$ C = \binom{12}{7} + \binom{12}{8} + \binom{12}{9} + \binom{12}{10} + \b...
31,802,656
Let's say I have a running `NSURLSessionUploadTask`. What happens to the pending request if the app is killed or crashes during that timeframe? Will the task still complete or is it also terminated?
2015/08/04
[ "https://Stackoverflow.com/questions/31802656", "https://Stackoverflow.com", "https://Stackoverflow.com/users/-1/" ]
This is from memory, so take it with a grain of salt. IIRC, it depends on the task type, how far along the task is in its progress and whether you provided a body data object or a body stream. If you are using a non-background session, the request is canceled. If you are using a background session: * If you provided...
From [Apple's Documentation](https://developer.apple.com/documentation/foundation/url_loading_system/downloading_files_in_the_background). > > If the system terminated the app while it was suspended, the system relaunches the app in the background. > > > It's under the "Recreate the Session If the App Was Termina...
24,984,398
I have the following HTML fragment: ``` >>> a <div class="headercolumn"> <h2> <a class="results" data-name="result-name" href="/xxy> my text</a> </h2> ``` I am trying to select header column only if attribute data-name="result-name" I've tried: ``` >>> a.select('a["data-name="result-name""]') ``` This gives: ``...
2014/07/27
[ "https://Stackoverflow.com/questions/24984398", "https://Stackoverflow.com", "https://Stackoverflow.com/users/1592380/" ]
You can simply do this : ``` soup = BeautifulSoup(html) results = soup.findAll("a", {"data-name" : "result-name"}) ``` Source : [How to find tags with only certain attributes - BeautifulSoup](https://stackoverflow.com/questions/8933863/how-to-find-tags-with-only-certain-attributes-beautifulsoup)
select classes or ids ``` soup.select('a.gamers') # select an `a` tag with the class gamers soup.select('a#gamer') # select an `a` tag with the id gamer ``` select single attr: ``` soup.select('a[attr="value"]') ``` select multiple attr: ``` attr_dict = { 'attr1': 'val1', 'attr2': 'val2...
24,984,398
I have the following HTML fragment: ``` >>> a <div class="headercolumn"> <h2> <a class="results" data-name="result-name" href="/xxy> my text</a> </h2> ``` I am trying to select header column only if attribute data-name="result-name" I've tried: ``` >>> a.select('a["data-name="result-name""]') ``` This gives: ``...
2014/07/27
[ "https://Stackoverflow.com/questions/24984398", "https://Stackoverflow.com", "https://Stackoverflow.com/users/1592380/" ]
``` html = """ <div class="headercolumn"> <h2> <a class="results" data-name="result-name" href="/xxy> my text</a> </h2> """ from bs4 import BeautifulSoup soup = BeautifulSoup(html) for d in soup.findAll("div",{"class":"headercolumn"}): print d.a.get("data-name") print d.select("a.results") result-name [<a cla...
select classes or ids ``` soup.select('a.gamers') # select an `a` tag with the class gamers soup.select('a#gamer') # select an `a` tag with the id gamer ``` select single attr: ``` soup.select('a[attr="value"]') ``` select multiple attr: ``` attr_dict = { 'attr1': 'val1', 'attr2': 'val2...
162,939
In lightning, we can reference to static resource by a value provider like: ``` <img src="{!$Resource.staticResource}"/> ``` Is there any smart way to make it dynamic like: ``` <aura:attribute name="resourceName" type="String" default="res"/> <img src="{!$Resource.v.resourceName}"/> ``` For VF+Apex it was possibl...
2017/03/03
[ "https://salesforce.stackexchange.com/questions/162939", "https://salesforce.stackexchange.com", "https://salesforce.stackexchange.com/users/24501/" ]
Ok, I've found 1 way, but it's not official (not stated anywhere), so not sure how long it would work - use at your own risk! ``` <img src="{!'/resource/'+v.resourceName}"/> ``` If anyone founds any other way - please share.
To further elaborate on @KamilK answer, if you have a custom URL set up (force.com/customer), you need to add that to the resource URL: `{!'/customer/resource/' + v.resourceName}`
162,939
In lightning, we can reference to static resource by a value provider like: ``` <img src="{!$Resource.staticResource}"/> ``` Is there any smart way to make it dynamic like: ``` <aura:attribute name="resourceName" type="String" default="res"/> <img src="{!$Resource.v.resourceName}"/> ``` For VF+Apex it was possibl...
2017/03/03
[ "https://salesforce.stackexchange.com/questions/162939", "https://salesforce.stackexchange.com", "https://salesforce.stackexchange.com/users/24501/" ]
Ok, I've found 1 way, but it's not official (not stated anywhere), so not sure how long it would work - use at your own risk! ``` <img src="{!'/resource/'+v.resourceName}"/> ``` If anyone founds any other way - please share.
According to this Salesforce Developers Blog post By David Green [Advanced SEO for Lightning Communities](https://developer.salesforce.com/blogs/2018/01/advanced-seo-lightning-communities.html) in the Adding social media tags section > > Note that in the future we plan to support $Resource.resourceName in our meta ta...
162,939
In lightning, we can reference to static resource by a value provider like: ``` <img src="{!$Resource.staticResource}"/> ``` Is there any smart way to make it dynamic like: ``` <aura:attribute name="resourceName" type="String" default="res"/> <img src="{!$Resource.v.resourceName}"/> ``` For VF+Apex it was possibl...
2017/03/03
[ "https://salesforce.stackexchange.com/questions/162939", "https://salesforce.stackexchange.com", "https://salesforce.stackexchange.com/users/24501/" ]
Yes, I found out the way to display the resource name dynamically. You can do that using below statement, **src = "{!$Resource.resourceName + '/parentFolderName/' + v.imageName + '.jpeg'}"** **Note** : Make sure image extension should ".jpeg' (you can change image extension whichever you want). Hope this will resolv...
To further elaborate on @KamilK answer, if you have a custom URL set up (force.com/customer), you need to add that to the resource URL: `{!'/customer/resource/' + v.resourceName}`
162,939
In lightning, we can reference to static resource by a value provider like: ``` <img src="{!$Resource.staticResource}"/> ``` Is there any smart way to make it dynamic like: ``` <aura:attribute name="resourceName" type="String" default="res"/> <img src="{!$Resource.v.resourceName}"/> ``` For VF+Apex it was possibl...
2017/03/03
[ "https://salesforce.stackexchange.com/questions/162939", "https://salesforce.stackexchange.com", "https://salesforce.stackexchange.com/users/24501/" ]
Yes, I found out the way to display the resource name dynamically. You can do that using below statement, **src = "{!$Resource.resourceName + '/parentFolderName/' + v.imageName + '.jpeg'}"** **Note** : Make sure image extension should ".jpeg' (you can change image extension whichever you want). Hope this will resolv...
According to this Salesforce Developers Blog post By David Green [Advanced SEO for Lightning Communities](https://developer.salesforce.com/blogs/2018/01/advanced-seo-lightning-communities.html) in the Adding social media tags section > > Note that in the future we plan to support $Resource.resourceName in our meta ta...
2,274,780
I'm working on some code that generates an Excel spreadsheet server-side and then downloads it to the user. I'm using [ExcelPackage](http://www.codeplex.com/ExcelPackage) to generate the file. The generation is working just fine. I can open the generated files using Excel 2007 with no issues. But, I'm having trouble d...
2010/02/16
[ "https://Stackoverflow.com/questions/2274780", "https://Stackoverflow.com", "https://Stackoverflow.com/users/79646/" ]
I can't definitely say that there's anything wrong with your approach, but I'll just share some observations from doing something similar. Headers are Pascal Case, most browsers shouldn't care but I would change your content-disposition to Content-Disposition. Changing the Charset shouldn't be necessary or relevant. Y...
use this ``` HttpContext.Current.Response.AddHeader("Content-Disposition", "attachment;filename=\"filename + ".zip" + "\""); Response.TransmitFile(zipPath); Response.Flush(); Response.Close(); Response.End(); ``` in your code is ``` Response.AddHeader...
2,274,780
I'm working on some code that generates an Excel spreadsheet server-side and then downloads it to the user. I'm using [ExcelPackage](http://www.codeplex.com/ExcelPackage) to generate the file. The generation is working just fine. I can open the generated files using Excel 2007 with no issues. But, I'm having trouble d...
2010/02/16
[ "https://Stackoverflow.com/questions/2274780", "https://Stackoverflow.com", "https://Stackoverflow.com/users/79646/" ]
I can't definitely say that there's anything wrong with your approach, but I'll just share some observations from doing something similar. Headers are Pascal Case, most browsers shouldn't care but I would change your content-disposition to Content-Disposition. Changing the Charset shouldn't be necessary or relevant. Y...
Try like this ``` public void DataTableToExcel(DataTable dt, string Filename) { MemoryStream ms = DataTableToExcelXlsx(dt, "Sheet1"); ms.WriteTo(HttpContext.Current.Response.OutputStream); HttpContext.Current.Response.ContentType = "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet"; Ht...
2,274,780
I'm working on some code that generates an Excel spreadsheet server-side and then downloads it to the user. I'm using [ExcelPackage](http://www.codeplex.com/ExcelPackage) to generate the file. The generation is working just fine. I can open the generated files using Excel 2007 with no issues. But, I'm having trouble d...
2010/02/16
[ "https://Stackoverflow.com/questions/2274780", "https://Stackoverflow.com", "https://Stackoverflow.com/users/79646/" ]
use this ``` HttpContext.Current.Response.AddHeader("Content-Disposition", "attachment;filename=\"filename + ".zip" + "\""); Response.TransmitFile(zipPath); Response.Flush(); Response.Close(); Response.End(); ``` in your code is ``` Response.AddHeader...
Try like this ``` public void DataTableToExcel(DataTable dt, string Filename) { MemoryStream ms = DataTableToExcelXlsx(dt, "Sheet1"); ms.WriteTo(HttpContext.Current.Response.OutputStream); HttpContext.Current.Response.ContentType = "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet"; Ht...
41,593,689
I'm writing a mobile app that will be a remote control for a PC application. What I want to do is couple them using WiFi Direct. I read about the P2P Service Discovery feature, that allows me to look only straight for devices running a certain service (and not for all of the available WiFi Direct devices). On the A...
2017/01/11
[ "https://Stackoverflow.com/questions/41593689", "https://Stackoverflow.com", "https://Stackoverflow.com/users/4779987/" ]
It is not blocking. But it is using Promises. I mean, when the promise returned (`then`), You can check the returned code. If it's a success, it's mean you the credit card is valid, and you can use the token. If you got token, you send the token to your server, and try to capture the money. This you can so also using ...
[Checkout](https://stripe.com/docs/checkout) only collects a customer's payment information and tokenizes it. Once the token is created, you then send it to your backend server so that you can use it in an API request. In your case, you want to update the customer's card, so you'd pass the token ID as the [`source`](h...
65,678,030
I am trying to replace elements in a list with a list containig said elements, for example: ``` list = ['cow','orange','apple','mango'] to_replace = 'orange', 'apple' replace_with = ['banana','cream'] ``` Desired output: ``` ['cow', ['banana', 'cream'], 'mango'] ``` I've read the answers in this question [1](http...
2021/01/12
[ "https://Stackoverflow.com/questions/65678030", "https://Stackoverflow.com", "https://Stackoverflow.com/users/8462345/" ]
Try this: ``` List[1:3] = [["banana", "cream"]] ``` The reason this isnt working is because when you are writing: `List[1:3] = ["banana", "cream"]` you are replacing a list with a list. In other words you are changing `["orange", "apple"]` to `["banana", "cream"]`. When doing this: `List[1:3] = [["banana", "cream"...
``` def replace_item(lst, to_replace, replace_with): for n,i in enumerate(lst): if i in to_replace and lst[n+1] in to_replace: lst[n]=replace_with lst[n+1] = "" return [item for item in lst if item] lst = ['cow','orange','apple','mango'] to_replace = 'orange', 'apple' replace_with = ['b...
52,004,935
I have a json data to save to a django model. When i try to save it, i get all sorts of errors and i have tried to work around it, all to no avail. Please help me i am new to django rest framework. This are the models i am inserting into: ``` class OrderItemDishItem(SoftDeleteModelBase): item = models.ForeignKey(D...
2018/08/24
[ "https://Stackoverflow.com/questions/52004935", "https://Stackoverflow.com", "https://Stackoverflow.com/users/4083326/" ]
I was able to reproduce this with Atlas. You are attempting to use a mongodb+srv URL, which is what Atlas recommends when using the MongoDB driver 3.6 or better. Apostrophe 2.x is currently on the MongoDB 2.x driver, so that doesn't work. You need to use the older style of URL which you can see on Atlas if you click t...
If you click the `Connect` button from your cluster and choose `Connect your application`, and then choose driver version 2. This will give you an example of how to connect.
125,775
This bell icon showed up in my menu bar one day and there's no obvious way to disable it. How do I get rid of it?
2014/03/28
[ "https://apple.stackexchange.com/questions/125775", "https://apple.stackexchange.com", "https://apple.stackexchange.com/users/21351/" ]
edit: **The option described below has been removed from Chrome. This should void the question as well as my answer.** Old answer: In the Chrome Menu Bar under **"Chrome -> Hide Notification Icon"** you can get rid of the bell without having to go through flags (which doesn't work/exist any more!). It's the Option on...
It's easy. In Chrome 35.0.1916.153 m: 1. Go to **chrome://flags** in the address bar and uncheck the **Enable Rich Notifications Windows, Chrome OS** and **Google Now** 2. Google Updates has to be turned off (search for instructions on how to do this on OS X) 3. In the firewall block all traffic for Google Updater
125,775
This bell icon showed up in my menu bar one day and there's no obvious way to disable it. How do I get rid of it?
2014/03/28
[ "https://apple.stackexchange.com/questions/125775", "https://apple.stackexchange.com", "https://apple.stackexchange.com/users/21351/" ]
edit: **The option described below has been removed from Chrome. This should void the question as well as my answer.** Old answer: In the Chrome Menu Bar under **"Chrome -> Hide Notification Icon"** you can get rid of the bell without having to go through flags (which doesn't work/exist any more!). It's the Option on...
Chrome for OS X v35.0.1916.114, "Enable Rich Notifications Mac, Windows" has changed to "Notification Center behavior Mac" and is still located in chrome://flags
125,775
This bell icon showed up in my menu bar one day and there's no obvious way to disable it. How do I get rid of it?
2014/03/28
[ "https://apple.stackexchange.com/questions/125775", "https://apple.stackexchange.com", "https://apple.stackexchange.com/users/21351/" ]
Google has buried this option in a very hard-to-find location. 1. Visit **chrome://flags/#enable-google-now** in Chrome.app 2. Visit **chrome://flags/#notification-center-tray-behavior** in Chrome.app 3. Change both settings to **Disabled**. (They're probably on Default currently.) (NOTE: this used to be *chrome://fl...
It worked for me by simply locating the file (mine was in the download folder) and deleting it. The key is to locate the incomplete file.
125,775
This bell icon showed up in my menu bar one day and there's no obvious way to disable it. How do I get rid of it?
2014/03/28
[ "https://apple.stackexchange.com/questions/125775", "https://apple.stackexchange.com", "https://apple.stackexchange.com/users/21351/" ]
This seems to have changed to chrome://flags/#enable-google-now I would make a comment instead of a new answer but I require 50 rep for that.
It's easy. In Chrome 35.0.1916.153 m: 1. Go to **chrome://flags** in the address bar and uncheck the **Enable Rich Notifications Windows, Chrome OS** and **Google Now** 2. Google Updates has to be turned off (search for instructions on how to do this on OS X) 3. In the firewall block all traffic for Google Updater
125,775
This bell icon showed up in my menu bar one day and there's no obvious way to disable it. How do I get rid of it?
2014/03/28
[ "https://apple.stackexchange.com/questions/125775", "https://apple.stackexchange.com", "https://apple.stackexchange.com/users/21351/" ]
Chrome for OS X v35.0.1916.114, "Enable Rich Notifications Mac, Windows" has changed to "Notification Center behavior Mac" and is still located in chrome://flags
1. Click on the bell icon, 2. Click on the Settings tab, 3. Then uncheck "Google Now"
125,775
This bell icon showed up in my menu bar one day and there's no obvious way to disable it. How do I get rid of it?
2014/03/28
[ "https://apple.stackexchange.com/questions/125775", "https://apple.stackexchange.com", "https://apple.stackexchange.com/users/21351/" ]
This seems to have changed to chrome://flags/#enable-google-now I would make a comment instead of a new answer but I require 50 rep for that.
For Chrome (Version 35.0.1916.114), all you have to do is click on the bell to open the dialog box and then simply click on the bell with the line through it to toggle it on and off. It disables the notifications, but doesn't remove the bell, so it solves part of the problem, that you said there was "no easy way to dis...
125,775
This bell icon showed up in my menu bar one day and there's no obvious way to disable it. How do I get rid of it?
2014/03/28
[ "https://apple.stackexchange.com/questions/125775", "https://apple.stackexchange.com", "https://apple.stackexchange.com/users/21351/" ]
edit: **The option described below has been removed from Chrome. This should void the question as well as my answer.** Old answer: In the Chrome Menu Bar under **"Chrome -> Hide Notification Icon"** you can get rid of the bell without having to go through flags (which doesn't work/exist any more!). It's the Option on...
It worked for me by simply locating the file (mine was in the download folder) and deleting it. The key is to locate the incomplete file.
125,775
This bell icon showed up in my menu bar one day and there's no obvious way to disable it. How do I get rid of it?
2014/03/28
[ "https://apple.stackexchange.com/questions/125775", "https://apple.stackexchange.com", "https://apple.stackexchange.com/users/21351/" ]
edit: **The option described below has been removed from Chrome. This should void the question as well as my answer.** Old answer: In the Chrome Menu Bar under **"Chrome -> Hide Notification Icon"** you can get rid of the bell without having to go through flags (which doesn't work/exist any more!). It's the Option on...
Google has buried this option in a very hard-to-find location. 1. Visit **chrome://flags/#enable-google-now** in Chrome.app 2. Visit **chrome://flags/#notification-center-tray-behavior** in Chrome.app 3. Change both settings to **Disabled**. (They're probably on Default currently.) (NOTE: this used to be *chrome://fl...
125,775
This bell icon showed up in my menu bar one day and there's no obvious way to disable it. How do I get rid of it?
2014/03/28
[ "https://apple.stackexchange.com/questions/125775", "https://apple.stackexchange.com", "https://apple.stackexchange.com/users/21351/" ]
edit: **The option described below has been removed from Chrome. This should void the question as well as my answer.** Old answer: In the Chrome Menu Bar under **"Chrome -> Hide Notification Icon"** you can get rid of the bell without having to go through flags (which doesn't work/exist any more!). It's the Option on...
Some solutions here appear to be outdated. Good answer is available here: <https://support.google.com/chrome/answer/3220216?hl=en>
125,775
This bell icon showed up in my menu bar one day and there's no obvious way to disable it. How do I get rid of it?
2014/03/28
[ "https://apple.stackexchange.com/questions/125775", "https://apple.stackexchange.com", "https://apple.stackexchange.com/users/21351/" ]
Chrome for OS X v35.0.1916.114, "Enable Rich Notifications Mac, Windows" has changed to "Notification Center behavior Mac" and is still located in chrome://flags
It's easy. In Chrome 35.0.1916.153 m: 1. Go to **chrome://flags** in the address bar and uncheck the **Enable Rich Notifications Windows, Chrome OS** and **Google Now** 2. Google Updates has to be turned off (search for instructions on how to do this on OS X) 3. In the firewall block all traffic for Google Updater
187,493
The Help Center has a nice section titled "When should I edit posts?". It comes with a couple of helpful editing suggestions. What is not made clear in there however is when/what you shouldn't edit. I would propose a small addition to the help center, primarily motivated by [some of the comments made here](https://met...
2013/07/05
[ "https://meta.stackexchange.com/questions/187493", "https://meta.stackexchange.com", "https://meta.stackexchange.com/users/161198/" ]
In general, enumerating badness is a bad idea... *Particularly* when it comes to something that like editing that depends heavily on context. If you're going try and warn against certain behaviors, you want a few specific, easy-to-recognize examples that the reader can extrapolate from, not a complicated set of prohibi...
I totally disagree with the idea that correcting indentation in the code of a Python question shouldn't be allowed, and more generally I don't think it's true that you shouldn't correct mistakes in code in a question. I think there are two points you kind of wanted to make when you said that, but you've been too aggre...
187,493
The Help Center has a nice section titled "When should I edit posts?". It comes with a couple of helpful editing suggestions. What is not made clear in there however is when/what you shouldn't edit. I would propose a small addition to the help center, primarily motivated by [some of the comments made here](https://met...
2013/07/05
[ "https://meta.stackexchange.com/questions/187493", "https://meta.stackexchange.com", "https://meta.stackexchange.com/users/161198/" ]
In general, enumerating badness is a bad idea... *Particularly* when it comes to something that like editing that depends heavily on context. If you're going try and warn against certain behaviors, you want a few specific, easy-to-recognize examples that the reader can extrapolate from, not a complicated set of prohibi...
Because the guidelines for editing and suggested editing are different and because what is considered acceptable to one community may not be acceptable to another, I think an expanded version of this idea would work better as a post under the [faq](/questions/tagged/faq "show questions tagged 'faq'") tag. There is a po...
187,493
The Help Center has a nice section titled "When should I edit posts?". It comes with a couple of helpful editing suggestions. What is not made clear in there however is when/what you shouldn't edit. I would propose a small addition to the help center, primarily motivated by [some of the comments made here](https://met...
2013/07/05
[ "https://meta.stackexchange.com/questions/187493", "https://meta.stackexchange.com", "https://meta.stackexchange.com/users/161198/" ]
In general, enumerating badness is a bad idea... *Particularly* when it comes to something that like editing that depends heavily on context. If you're going try and warn against certain behaviors, you want a few specific, easy-to-recognize examples that the reader can extrapolate from, not a complicated set of prohibi...
This is a bad idea for two reasons. First and foremost, this adds some detailed rules about an uncommon case. The current [guidelines](https://meta.stackoverflow.com/help/editing) for “When should I edit posts?” are 122 words long. You're proposing to add a whooping 100 more words, so the size of the rules would almos...
187,493
The Help Center has a nice section titled "When should I edit posts?". It comes with a couple of helpful editing suggestions. What is not made clear in there however is when/what you shouldn't edit. I would propose a small addition to the help center, primarily motivated by [some of the comments made here](https://met...
2013/07/05
[ "https://meta.stackexchange.com/questions/187493", "https://meta.stackexchange.com", "https://meta.stackexchange.com/users/161198/" ]
Because the guidelines for editing and suggested editing are different and because what is considered acceptable to one community may not be acceptable to another, I think an expanded version of this idea would work better as a post under the [faq](/questions/tagged/faq "show questions tagged 'faq'") tag. There is a po...
I totally disagree with the idea that correcting indentation in the code of a Python question shouldn't be allowed, and more generally I don't think it's true that you shouldn't correct mistakes in code in a question. I think there are two points you kind of wanted to make when you said that, but you've been too aggre...
187,493
The Help Center has a nice section titled "When should I edit posts?". It comes with a couple of helpful editing suggestions. What is not made clear in there however is when/what you shouldn't edit. I would propose a small addition to the help center, primarily motivated by [some of the comments made here](https://met...
2013/07/05
[ "https://meta.stackexchange.com/questions/187493", "https://meta.stackexchange.com", "https://meta.stackexchange.com/users/161198/" ]
This is a bad idea for two reasons. First and foremost, this adds some detailed rules about an uncommon case. The current [guidelines](https://meta.stackoverflow.com/help/editing) for “When should I edit posts?” are 122 words long. You're proposing to add a whooping 100 more words, so the size of the rules would almos...
I totally disagree with the idea that correcting indentation in the code of a Python question shouldn't be allowed, and more generally I don't think it's true that you shouldn't correct mistakes in code in a question. I think there are two points you kind of wanted to make when you said that, but you've been too aggre...
12,588,359
I want to create a javascript function within a xajax function(php) and assign it in response. ``` <?php require_once("Resources/xajax/xajax_core/xajax.inc.php"); $xajax = new xajax(); function foo() { $response = new xajaxResponse(); // The code needed should be here... // He...
2012/09/25
[ "https://Stackoverflow.com/questions/12588359", "https://Stackoverflow.com", "https://Stackoverflow.com/users/1521646/" ]
As long as the event handlers are added using the `AddHandler` statement, the event handlers are guaranteed to be called in the same order that they were added. If, on the other hand, you are using the `Handles` modifier on the event handler methods, I don't think there is any way to be sure what the order will be. He...
I'd recommend you change to having a single handler, and detect which textbox is being left: ``` Private Sub txt_Leave(sender As Object, e As System.EventArgs) Handles TextBox1.Leave, TextBox2.Leave Dim txt As TextBox = DirectCast(sender, TextBox) If txt Is TextBox1 Then txt.Text = "Very important textbox!" ...
12,588,359
I want to create a javascript function within a xajax function(php) and assign it in response. ``` <?php require_once("Resources/xajax/xajax_core/xajax.inc.php"); $xajax = new xajax(); function foo() { $response = new xajaxResponse(); // The code needed should be here... // He...
2012/09/25
[ "https://Stackoverflow.com/questions/12588359", "https://Stackoverflow.com", "https://Stackoverflow.com/users/1521646/" ]
As long as the event handlers are added using the `AddHandler` statement, the event handlers are guaranteed to be called in the same order that they were added. If, on the other hand, you are using the `Handles` modifier on the event handler methods, I don't think there is any way to be sure what the order will be. He...
This is just additional information not related to the order of execution of multiple event handlers with the same "Handles" clause. It may be of interest, though, to those wondering about when to use a "Handles" clause and when to use the "AddHandler" statement. Addhandler is more useful when using a UDC (User Define...
12,588,359
I want to create a javascript function within a xajax function(php) and assign it in response. ``` <?php require_once("Resources/xajax/xajax_core/xajax.inc.php"); $xajax = new xajax(); function foo() { $response = new xajaxResponse(); // The code needed should be here... // He...
2012/09/25
[ "https://Stackoverflow.com/questions/12588359", "https://Stackoverflow.com", "https://Stackoverflow.com/users/1521646/" ]
I'd recommend you change to having a single handler, and detect which textbox is being left: ``` Private Sub txt_Leave(sender As Object, e As System.EventArgs) Handles TextBox1.Leave, TextBox2.Leave Dim txt As TextBox = DirectCast(sender, TextBox) If txt Is TextBox1 Then txt.Text = "Very important textbox!" ...
This is just additional information not related to the order of execution of multiple event handlers with the same "Handles" clause. It may be of interest, though, to those wondering about when to use a "Handles" clause and when to use the "AddHandler" statement. Addhandler is more useful when using a UDC (User Define...
15,898,912
I'am developing Windows form application using EF 5 and start building DB with Code First method. My question is:"Does Code first method has some constraints compare to Data base first,or Model first" ? any suggestions ?
2013/04/09
[ "https://Stackoverflow.com/questions/15898912", "https://Stackoverflow.com", "https://Stackoverflow.com/users/2195801/" ]
Just specifically (I'll skip the general ovewview), > > what's bothering me the most - is the lack of **native** support for > various Db objects, views, UDF, sp-s. > > Meaning - **sure, you can use them - but you have to 'inject'** SQL and synchronize with 'C# POCO' > > > You can now work-around most of th...
A quick search revealed the following answer (from the go-to-guy with regards EF): [Code-first vs Model/Database-first](https://stackoverflow.com/questions/5446316/ef-4-1-code-first-vs-model-database-first) While the question asks about EF 4.1, the answer should deliver enough information to allow you to make your ow...
53,341,957
I have oracle database table 'table\_1' having 2 columns with few sample rows as following- ``` CaseID PerID 35039074 36190822 35067334 36246430 35239319 36003875 ``` Record in this dynamic table gets added frequently. I have another oracle database table 'table\_2' having 2 columns with ...
2018/11/16
[ "https://Stackoverflow.com/questions/53341957", "https://Stackoverflow.com", "https://Stackoverflow.com/users/1791817/" ]
`dpkt` only works at the packet level. `dpkt.http.Request` expects the full HTTP request as input and not only the part in the current packet. This means you have to collect the input from all packets belonging to the connection, i.e. reassembling the TCP data stream. Reassembling is not simply concatenating packets b...
Perhaps a bit late. The points raised by [@steffen Ullrich](https://stackoverflow.com/users/3081018/steffen-ullrich) are correct. However, assuming you do not have those issues (i.e no lost, duplicate pkts, etc), you can do some rudimentary reassembly like I did for reassembling TLS frames spread over multiple TLS pack...
53,341,957
I have oracle database table 'table\_1' having 2 columns with few sample rows as following- ``` CaseID PerID 35039074 36190822 35067334 36246430 35239319 36003875 ``` Record in this dynamic table gets added frequently. I have another oracle database table 'table\_2' having 2 columns with ...
2018/11/16
[ "https://Stackoverflow.com/questions/53341957", "https://Stackoverflow.com", "https://Stackoverflow.com/users/1791817/" ]
`dpkt` only works at the packet level. `dpkt.http.Request` expects the full HTTP request as input and not only the part in the current packet. This means you have to collect the input from all packets belonging to the connection, i.e. reassembling the TCP data stream. Reassembling is not simply concatenating packets b...
Or you could use the builtin feature in Scapy 2.4.3+ <https://scapy.readthedocs.io/en/latest/layers/http.html> ``` sniff(session=TCPSession, [...]) ```
53,341,957
I have oracle database table 'table\_1' having 2 columns with few sample rows as following- ``` CaseID PerID 35039074 36190822 35067334 36246430 35239319 36003875 ``` Record in this dynamic table gets added frequently. I have another oracle database table 'table\_2' having 2 columns with ...
2018/11/16
[ "https://Stackoverflow.com/questions/53341957", "https://Stackoverflow.com", "https://Stackoverflow.com/users/1791817/" ]
Perhaps a bit late. The points raised by [@steffen Ullrich](https://stackoverflow.com/users/3081018/steffen-ullrich) are correct. However, assuming you do not have those issues (i.e no lost, duplicate pkts, etc), you can do some rudimentary reassembly like I did for reassembling TLS frames spread over multiple TLS pack...
Or you could use the builtin feature in Scapy 2.4.3+ <https://scapy.readthedocs.io/en/latest/layers/http.html> ``` sniff(session=TCPSession, [...]) ```
1,164,095
If we have a A.jar that contains B.class and this file is located in JBOSS/server/default/lib and WEB-INF/lib of an EAR file. We have java2ParentDelegation is turned off. if we want to load the B.class which one will be loaded? what if java2ParentDelegation is turned on?
2009/07/22
[ "https://Stackoverflow.com/questions/1164095", "https://Stackoverflow.com", "https://Stackoverflow.com/users/-1/" ]
Like Ryan said: > > the pid you want is in tmp/pids/ > > > probably server.pid is the file you want. You should be able to run `kill -9 $(cat tmp/pids/server.pid)` to bring down a daemonized server.
You can start your server in the background by adding `-d` to your command. For instance: ``` puma -d ``` To stop it, just kill whatever process is running on port 3000: ``` kill $(cat tmp/pids/server.pid) ```
1,164,095
If we have a A.jar that contains B.class and this file is located in JBOSS/server/default/lib and WEB-INF/lib of an EAR file. We have java2ParentDelegation is turned off. if we want to load the B.class which one will be loaded? what if java2ParentDelegation is turned on?
2009/07/22
[ "https://Stackoverflow.com/questions/1164095", "https://Stackoverflow.com", "https://Stackoverflow.com/users/-1/" ]
Like Ryan said: > > the pid you want is in tmp/pids/ > > > probably server.pid is the file you want. You should be able to run `kill -9 $(cat tmp/pids/server.pid)` to bring down a daemonized server.
A Ruby ticket, <http://bugs.ruby-lang.org/issues/4777>, suggests it's a kernel (Linux) bug. They give a work around (essentially equivalent to the Ctrl-C/Ctrl-Z one), for use if you've demonized the server: 1. kill -INT `cat tmp/pids/server.pid` 2. kill -CONT `cat tmp/pids/server.pid` This seems to cause the origina...
1,164,095
If we have a A.jar that contains B.class and this file is located in JBOSS/server/default/lib and WEB-INF/lib of an EAR file. We have java2ParentDelegation is turned off. if we want to load the B.class which one will be loaded? what if java2ParentDelegation is turned on?
2009/07/22
[ "https://Stackoverflow.com/questions/1164095", "https://Stackoverflow.com", "https://Stackoverflow.com/users/-1/" ]
The only **proper** way to kill the Ruby on Rails default server (which is WEBrick) is: ``` kill -INT $(cat tmp/pids/server.pid) ``` If you are running Mongrel, this is sufficient: ``` kill $(cat tmp/pids/server.pid) ``` Use `kill -9` if your daemon hung. Remember the implications of `kill -9` - if the data kept ...
You can start your server in the background by adding `-d` to your command. For instance: ``` puma -d ``` To stop it, just kill whatever process is running on port 3000: ``` kill $(cat tmp/pids/server.pid) ```
1,164,095
If we have a A.jar that contains B.class and this file is located in JBOSS/server/default/lib and WEB-INF/lib of an EAR file. We have java2ParentDelegation is turned off. if we want to load the B.class which one will be loaded? what if java2ParentDelegation is turned on?
2009/07/22
[ "https://Stackoverflow.com/questions/1164095", "https://Stackoverflow.com", "https://Stackoverflow.com/users/-1/" ]
if it can be useful, on linux you can find which process is using a port (in this case 3000) you can use: > > lsof -i :3000 > > > it'll return the pid too
Here I leave a bash function which, if pasted in you `.bashrc` or `.zshrc` will alloy you do things like: ``` rails start # To start the server in development environment rails start production # To start the server in production environment rails stop # To stop the server rails stop -9 # To stop the server sending -9...