qid
int64
1
74.7M
question
stringlengths
0
58.3k
date
stringlengths
10
10
metadata
list
response_j
stringlengths
2
48.3k
response_k
stringlengths
2
40.5k
26,579,139
I'd like to subclass [CompletableFuture](http://docs.oracle.com/javase/8/docs/api/java/util/concurrent/CompletableFuture.html) to override the default `Executor`. That is, if a user invokes a method without specifying an `Executor`, I want my own `Executor` to get used instead of the one normally used by `CompletableFu...
2014/10/26
[ "https://Stackoverflow.com/questions/26579139", "https://Stackoverflow.com", "https://Stackoverflow.com/users/14731/" ]
Since you didn’t show us what you have tried, we don’t have a chance to find out what you did exactly and why it failed. After you clarifications, it looks like a straight-forward decoration pattern job that doesn’t need to touch any of the `CompletableFuture`’s inner workings. ``` import java.util.concurrent.*; impor...
Your goal is to limit the rate of access to the web service. Your solution is to use special executor which introduces delays. This is not the best solution, because some function in the chain can spend some time for other activity, or just wait too long in the queue to processor on O/S level and thus need not be delay...
26,579,139
I'd like to subclass [CompletableFuture](http://docs.oracle.com/javase/8/docs/api/java/util/concurrent/CompletableFuture.html) to override the default `Executor`. That is, if a user invokes a method without specifying an `Executor`, I want my own `Executor` to get used instead of the one normally used by `CompletableFu...
2014/10/26
[ "https://Stackoverflow.com/questions/26579139", "https://Stackoverflow.com", "https://Stackoverflow.com/users/14731/" ]
Since you didn’t show us what you have tried, we don’t have a chance to find out what you did exactly and why it failed. After you clarifications, it looks like a straight-forward decoration pattern job that doesn’t need to touch any of the `CompletableFuture`’s inner workings. ``` import java.util.concurrent.*; impor...
Answering the original question -- **How is one supposed to subclass CompletableFuture?** Probably starting from a clean-room CompletionStage interface implementation (rather than from the concrete CompletableFuture class) a is a better option. Please take a look here: <https://github.com/lukas-krecan/completion-stag...
26,579,139
I'd like to subclass [CompletableFuture](http://docs.oracle.com/javase/8/docs/api/java/util/concurrent/CompletableFuture.html) to override the default `Executor`. That is, if a user invokes a method without specifying an `Executor`, I want my own `Executor` to get used instead of the one normally used by `CompletableFu...
2014/10/26
[ "https://Stackoverflow.com/questions/26579139", "https://Stackoverflow.com", "https://Stackoverflow.com/users/14731/" ]
Answering the original question -- **How is one supposed to subclass CompletableFuture?** Probably starting from a clean-room CompletionStage interface implementation (rather than from the concrete CompletableFuture class) a is a better option. Please take a look here: <https://github.com/lukas-krecan/completion-stag...
Your goal is to limit the rate of access to the web service. Your solution is to use special executor which introduces delays. This is not the best solution, because some function in the chain can spend some time for other activity, or just wait too long in the queue to processor on O/S level and thus need not be delay...
93,572
From a keyboard shortcut I want to add this text ``` Custom text - 31/12/09 - 10:00:15(GMT) ``` **Time, date and Time zone** should be taken from System in same format.
2010/01/09
[ "https://superuser.com/questions/93572", "https://superuser.com", "https://superuser.com/users/15114/" ]
``` ^!v:: FormatTime, CurrentDateTime,, dd/MM/yyyy - hh:mm:ss SendRaw Jitendra - %CurrentDateTime%(GMT) Return ``` The proof: Jitendra - 09/01/2010 - 05:41:15(GMT) **edit:** Alright, try this: ``` ^!v:: FormatTime, CurrentDateTime,, dd/MM/yyyy - hh:mm:ss time:=A_Now EnvSub, time, A_NowUTC, Hours SendRaw...
You can cause Notepad to put the current date and time into the bottom of a file every time it is opened. Save ".LOG" in the top of the contents of the file. The resulting format is ``` hh:mm dd/mm/yyyy ``` Although probably not what you're after, it's an interesting trick that may be useful to someone coming from G...
9,926,751
I have a single column table with multiple rows some of which have a-tag links in them, the others just plain text. I can change the height of any cells except the ones that have a-tags in them; they remain unaffected. ``` #table tr td{ max-height: 20px; } ``` This code changes the height of all the cells to 20p...
2012/03/29
[ "https://Stackoverflow.com/questions/9926751", "https://Stackoverflow.com", "https://Stackoverflow.com/users/1045873/" ]
Basic answer, no. You can't open a PDF in a webview; so you either need to fire an Intent to open the file (the file can then open in the default installed app on the device); or write your own PDF reader.
Try to use pdf.js. See <http://www.worldwidewhat.net/2011/08/render-pdf-files-with-html5/> I downloaded its source and placed it in sdcard. Then I use a `WebView` to load its `index.htm`. It did show pdf file on a webView in sdcard in Android 4.0 device but sometime it show white page. I need to reload it and it f...
3,082,751
this is a code example from lazyfoo's SDL tutorials. ``` SDL_Surface *load_image( std::string filename ) { //Temporary storage for the image that's loaded SDL_Surface* loadedImage = NULL; //The optimized image that will be used SDL_Surface* optimizedImage = NULL; //Load the image loadedImage = SDL_LoadBMP( fil...
2010/06/21
[ "https://Stackoverflow.com/questions/3082751", "https://Stackoverflow.com", "https://Stackoverflow.com/users/170501/" ]
It does, but not the allocated memory pointed by it. It is a merely 4 byte pointer variable, the only thing needed from it is to retain its value. The value is the address. The address is something allocated in manually controlled fashion, and deallocating it requires calling functions the compiler does not know about...
optimizedImage is in the function's stack, so it goes out of scope after the function returns. The object it points to is in the heap, so it remains there until no other pointer is referring to it.
4,638,112
I am just at starting levels in DB usage and have 2 basic questions 1. I have a generic UPDATE stored proc which updates all columns of a table. But i need to make it conditional wherein it does not SET when the parameter is NULL. Usage: I want to use this as a single SP to UPDATE any subset of columns, the caller f...
2011/01/09
[ "https://Stackoverflow.com/questions/4638112", "https://Stackoverflow.com", "https://Stackoverflow.com/users/520348/" ]
You need: * first to declare the different JRE in your Eclipse: See "[Eclipse - no Java (JRE) / (JDK) … no virtual machine…](https://stackoverflow.com/questions/2030434/eclipse-no-java-jre-jdk-no-virtual-machine/2843837#2843837)" * then to add the right JRE in your project settings (see this [blog post for instance](h...
you can configure VM in [eclipse.ini](http://wiki.eclipse.org/Eclipse.ini) file.
206,110
I recently read in a book that a nucleon with +1/2 isospin is a proton and if the isospin is changed to -1/2, it is a neutron, so it is the same particle in different states. If a proton has a different quark configuration $uud$ than a neutron $udd$, what happens to the quark composition when the isospin changes from +...
2015/09/09
[ "https://physics.stackexchange.com/questions/206110", "https://physics.stackexchange.com", "https://physics.stackexchange.com/users/90248/" ]
Isospin is an approximate symmetry of nuclear interactions. Roughly, the "x" component of isospin consists of changing u quarks to d quarks and d quarks to u quarks. Because u quarks and d quarks are very similar - have different charges but about the same mass and reasonably precisely the same interactions with gluons...
Like spin, isospin cannot change in isolation: an intermediate particle is required. For spin that particle is most frequently the photon: if you want to reorient a particle in a magnetic field, the correct model to use is absorption or emission of a virtual photon from the magnet. The most important isospin-changing ...
61,362,201
I have a big problem and i hope someone can help me, i created a platform where admin's can respond to tickets but when a ticket is recieved it automaticly generates margin-top of the results body. So when a new ticket is recieved it addes more margin. I've added screenshots to make it more understandable. Sorry for th...
2020/04/22
[ "https://Stackoverflow.com/questions/61362201", "https://Stackoverflow.com", "https://Stackoverflow.com/users/13260149/" ]
I just created the example you need but try to make sure that you assign proper names (instead of col-x or row-y) like `navigation` or `sidebar` for example. I'd recommend to just double the amount of rows and assign the amount of rows twice for the left column. Especially take a look at `grid-template-areas` in the ...
You can just set a new html element below (for example) column2/row1 and set the style as `display: grid; grid-template: auto/auto; align-self: center`
1,097
I have a DAAP server with multiple VLAN interfaces. I would like to get traffic forwarded on all of the VLANs. Forwarded from eth0 to eth1.010\* I've got the switch configured to be a trunk port with the correct VLANs, and I enabled **/proc/sys/net/ipv4/ip\_forward** But that doesn't seem to be doing the trick. Is the...
2010/08/05
[ "https://askubuntu.com/questions/1097", "https://askubuntu.com", "https://askubuntu.com/users/661/" ]
I haven't done this on Ubuntu but here's my research so far: You need to stick ``` vconfig add eth1 101 vconfig add eth1 102 vconfig add eth1 103 vconfig add eth1 104 vconfig add eth1 105 ``` in a startup script. The interfaces file would look something like this: ``` auto lo iface lo inet loopback auto...
If I'm reading your question correctly, you are looking for bridging. Bridging forwards all traffic from one interface to another. You will need to install bridge-utils package and setup your configuration as follows: ``` auto br0 iface br0 inet static address 192.168.1.20 netmask 255.255.0.0 gateway 192.168.1....
1,097
I have a DAAP server with multiple VLAN interfaces. I would like to get traffic forwarded on all of the VLANs. Forwarded from eth0 to eth1.010\* I've got the switch configured to be a trunk port with the correct VLANs, and I enabled **/proc/sys/net/ipv4/ip\_forward** But that doesn't seem to be doing the trick. Is the...
2010/08/05
[ "https://askubuntu.com/questions/1097", "https://askubuntu.com", "https://askubuntu.com/users/661/" ]
It worked! I've got a separate problem with DAAP now, but I think it's Avahi related. I'll try to work through that myself. Thanks a ton.
If I'm reading your question correctly, you are looking for bridging. Bridging forwards all traffic from one interface to another. You will need to install bridge-utils package and setup your configuration as follows: ``` auto br0 iface br0 inet static address 192.168.1.20 netmask 255.255.0.0 gateway 192.168.1....
1,097
I have a DAAP server with multiple VLAN interfaces. I would like to get traffic forwarded on all of the VLANs. Forwarded from eth0 to eth1.010\* I've got the switch configured to be a trunk port with the correct VLANs, and I enabled **/proc/sys/net/ipv4/ip\_forward** But that doesn't seem to be doing the trick. Is the...
2010/08/05
[ "https://askubuntu.com/questions/1097", "https://askubuntu.com", "https://askubuntu.com/users/661/" ]
I haven't done this on Ubuntu but here's my research so far: You need to stick ``` vconfig add eth1 101 vconfig add eth1 102 vconfig add eth1 103 vconfig add eth1 104 vconfig add eth1 105 ``` in a startup script. The interfaces file would look something like this: ``` auto lo iface lo inet loopback auto...
It worked! I've got a separate problem with DAAP now, but I think it's Avahi related. I'll try to work through that myself. Thanks a ton.
22,686
We have a strong perimeter firewall. Would it make sense to still use IPTables on each host to hard block any and all ports except for the ones that are needed (DNS, 80 for the web server, nagios ports, etc.), or would this just lead to inefficiency. The web server gets millions of hits per day.
2012/10/16
[ "https://security.stackexchange.com/questions/22686", "https://security.stackexchange.com", "https://security.stackexchange.com/users/13978/" ]
Yes, it is a good idea to lock down all of the hosts inside the firewall as well to protect against any threats coming from your internal network. That way, if someone gains access to your network or if there is a virus/worm/etc attacking your local machines, there are that many fewer services that could potentially be...
Definitely do this. I've made it a habit to deploy services using Puppet, so the allow service rules are written into the same definition file that installs the service. The generic firewall manifest file finishes off by dropping everything I didn't otherwise allow (besides ICMP. Don't turn off ICMP).
40,743,200
I have series of plots looking like this: python code: ``` a = np.array([4,4,4,4,5,5,5,6,6,6,6,6,6,6,7,7,7,8,8,8,9]) b = np.array([i/len(a) for i in range(1, len(a)+1)]) pl.plot(a,b, 'ro') ``` r code: ``` a <- c(4,4,4,4,5,5,5,6,6,6,6,6,6,6,7,7,7,8,8,8,9) b <- seq(0,1,length = length(a)) plot(a, b, col = "red") ``...
2016/11/22
[ "https://Stackoverflow.com/questions/40743200", "https://Stackoverflow.com", "https://Stackoverflow.com/users/4776662/" ]
You can achieve this with `replace()` alone using the correct RegEx with group captures. Try this: ```js var _string = "split and replace @123/0 and test @456/1 and so on..."; _string = _string.replace(/(@\d{3})\/(\d)/g, "$1.00/$2"); console.log(_string); ```
Use [`String#replace`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String/replace) method with a callback function. ```js var _string = "split and replace @123/0 and test @456/1 and so on..."; console.log( _string.replace(/@(\d+)\/(\d)\b/g, function(_, m1, m2) { return '...
40,743,200
I have series of plots looking like this: python code: ``` a = np.array([4,4,4,4,5,5,5,6,6,6,6,6,6,6,7,7,7,8,8,8,9]) b = np.array([i/len(a) for i in range(1, len(a)+1)]) pl.plot(a,b, 'ro') ``` r code: ``` a <- c(4,4,4,4,5,5,5,6,6,6,6,6,6,6,7,7,7,8,8,8,9) b <- seq(0,1,length = length(a)) plot(a, b, col = "red") ``...
2016/11/22
[ "https://Stackoverflow.com/questions/40743200", "https://Stackoverflow.com", "https://Stackoverflow.com/users/4776662/" ]
Use [`String#replace`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String/replace) method with a callback function. ```js var _string = "split and replace @123/0 and test @456/1 and so on..."; console.log( _string.replace(/@(\d+)\/(\d)\b/g, function(_, m1, m2) { return '...
``` var _string = "split and replace @123/0 and test @456/1 and so on...".replace("@123/0", "@123.00/0").replace("@456/1", "@456.00/0"); ``` Try this
40,743,200
I have series of plots looking like this: python code: ``` a = np.array([4,4,4,4,5,5,5,6,6,6,6,6,6,6,7,7,7,8,8,8,9]) b = np.array([i/len(a) for i in range(1, len(a)+1)]) pl.plot(a,b, 'ro') ``` r code: ``` a <- c(4,4,4,4,5,5,5,6,6,6,6,6,6,6,7,7,7,8,8,8,9) b <- seq(0,1,length = length(a)) plot(a, b, col = "red") ``...
2016/11/22
[ "https://Stackoverflow.com/questions/40743200", "https://Stackoverflow.com", "https://Stackoverflow.com/users/4776662/" ]
You can achieve this with `replace()` alone using the correct RegEx with group captures. Try this: ```js var _string = "split and replace @123/0 and test @456/1 and so on..."; _string = _string.replace(/(@\d{3})\/(\d)/g, "$1.00/$2"); console.log(_string); ```
``` var _string = "split and replace @123/0 and test @456/1 and so on...".replace("@123/0", "@123.00/0").replace("@456/1", "@456.00/0"); ``` Try this
4,124,182
I'm looking for two functions conceptually similar to these: ``` // returns the encrypted text string encrypt( string public_key, string pass_phrase, string text ); // returns the original text string decrypt( string private_key, string pass_phrase, string encrypted_text ); ``` where `string` could be a `char*`, a `...
2010/11/08
[ "https://Stackoverflow.com/questions/4124182", "https://Stackoverflow.com", "https://Stackoverflow.com/users/300805/" ]
Unfortunately, encryption *always* requires a non-superficial knowledge of the algorithms involved. It is hard to get right. The "Handbook of Applied Cryptography" is a relatively readable guide to the various algorithms available so it's probably worth a look. You could also try [cryptlib](http://www.cs.auckland.ac.n...
Assuming you don’t need something platform agnostic, Cryptography Next Generation (CNG) is a relatively new cryptography API on Windows and is surprisingly intuitive and easy to use. I wrote an article that includes examples of all the main cryptographic operations you’re likely to need in typical applications. The sam...
4,124,182
I'm looking for two functions conceptually similar to these: ``` // returns the encrypted text string encrypt( string public_key, string pass_phrase, string text ); // returns the original text string decrypt( string private_key, string pass_phrase, string encrypted_text ); ``` where `string` could be a `char*`, a `...
2010/11/08
[ "https://Stackoverflow.com/questions/4124182", "https://Stackoverflow.com", "https://Stackoverflow.com/users/300805/" ]
When someone asks for easy encryption, I can only recommend [KeyCzar](https://github.com/google/keyczar). It not only provides a clean interface in several languages (that can use the same keys) but also mechanisms to handle key rotations and the like. And of course, safe defaults for the algorithms implemented so th...
Assuming you don’t need something platform agnostic, Cryptography Next Generation (CNG) is a relatively new cryptography API on Windows and is surprisingly intuitive and easy to use. I wrote an article that includes examples of all the main cryptographic operations you’re likely to need in typical applications. The sam...
4,124,182
I'm looking for two functions conceptually similar to these: ``` // returns the encrypted text string encrypt( string public_key, string pass_phrase, string text ); // returns the original text string decrypt( string private_key, string pass_phrase, string encrypted_text ); ``` where `string` could be a `char*`, a `...
2010/11/08
[ "https://Stackoverflow.com/questions/4124182", "https://Stackoverflow.com", "https://Stackoverflow.com/users/300805/" ]
Unfortunately, encryption *always* requires a non-superficial knowledge of the algorithms involved. It is hard to get right. The "Handbook of Applied Cryptography" is a relatively readable guide to the various algorithms available so it's probably worth a look. You could also try [cryptlib](http://www.cs.auckland.ac.n...
When someone asks for easy encryption, I can only recommend [KeyCzar](https://github.com/google/keyczar). It not only provides a clean interface in several languages (that can use the same keys) but also mechanisms to handle key rotations and the like. And of course, safe defaults for the algorithms implemented so th...
68,927,851
I am trying to pass a function that returns true or false as a prop, a function similar to this ``` canBeUsed(): boolean { if (this.usable) { return true } return false } ``` The component that I am passing the props to has the following code ``` props: { canBeUsed: { type: Boolean } ...
2021/08/25
[ "https://Stackoverflow.com/questions/68927851", "https://Stackoverflow.com", "https://Stackoverflow.com/users/16484171/" ]
Change the prop type to a Function: ``` props: { canBeUsed: { type: Function } } ```
Why don't you just pass `this.usable` to the component props? `<component :can-be-used="usable"></component>` If all your component cares about is whether or not usable is true or false, that should be it. The data processing can happen on the parent to determine `this.usable`'s value.
68,927,851
I am trying to pass a function that returns true or false as a prop, a function similar to this ``` canBeUsed(): boolean { if (this.usable) { return true } return false } ``` The component that I am passing the props to has the following code ``` props: { canBeUsed: { type: Boolean } ...
2021/08/25
[ "https://Stackoverflow.com/questions/68927851", "https://Stackoverflow.com", "https://Stackoverflow.com/users/16484171/" ]
I'm guessing that you are doing: ```html <component :can-be-used="canBeUsed"></component> ``` This, indeed passes the function as a prop. However, your prop qualify for a boolean one, and you should pass the result of that function instead: ```html <component :can-be-used="canBeUsed()"></component> ``` This appro...
Why don't you just pass `this.usable` to the component props? `<component :can-be-used="usable"></component>` If all your component cares about is whether or not usable is true or false, that should be it. The data processing can happen on the parent to determine `this.usable`'s value.
37,446,853
Why is the variable $myVar undefined in the for loop statement while defined in the if statement as shown below (blade template in Laravel 5.2)? ``` $myVar = []; @if (empty($myVar)) Var is empty. @endif @foreach ($myVar as $var) <li>{{$var}}</li> @endforeach ```
2016/05/25
[ "https://Stackoverflow.com/questions/37446853", "https://Stackoverflow.com", "https://Stackoverflow.com/users/6362812/" ]
Please check this out ``` var customerNameDict = ["firstName":"karthi","LastName":"alagu","MiddleName":"prabhu"]; var clientNameDict = ["firstName":"Selva","LastName":"kumar","MiddleName":"m"]; var employeeNameDict = ["firstName":"karthi","LastName":"prabhu","MiddleName":"kp"]; var attributeValue = "karthi"; var arrN...
I agree with the comment by @luk2302, in that using the Swift `Array` `filter` method is nicer in general than filtering with an `NSPredicate`. If you're worried about performance across a large data set you should have your content in `CoreData` and use an `NSPredicate` as part of an `NSFetchRequest` with proper index...
65,778,074
Hello I'm starting now in programming and I'm having some problems with Scraping, I'm trying to get all the links in a category with several names, but I'm not getting isolate the cells because there are many with the same name, could someone help me? I will put the picture of my code and the url I want to get. ` ```...
2021/01/18
[ "https://Stackoverflow.com/questions/65778074", "https://Stackoverflow.com", "https://Stackoverflow.com/users/15015737/" ]
Okay so I will answer my post because with the suggested TYPED way of doing it was causing problems with the values not being set inside the httpClient, E.G BaseAddress was always null. In the startup I was trying to go with typed httpclient e.g ```cs services.AddHttpClient<IReService, ReService>(c => ... ``` But i...
You configured your client as a typed client and not a named client. No need for the factory. You should explicitly inject the http client in constructor instead, not the http client factory. Change your code to this: ``` private readonly HttpClient _httpClient; public ReService(HttpClient httpClient;) { _httpC...
65,778,074
Hello I'm starting now in programming and I'm having some problems with Scraping, I'm trying to get all the links in a category with several names, but I'm not getting isolate the cells because there are many with the same name, could someone help me? I will put the picture of my code and the url I want to get. ` ```...
2021/01/18
[ "https://Stackoverflow.com/questions/65778074", "https://Stackoverflow.com", "https://Stackoverflow.com/users/15015737/" ]
A simple, frustrating reason this may happen is due to the order of your service collection statements. Assigning the dependant service **after** the HTTPClient will not work, it must come before: ``` // NOT WORKING - BaseAddress is null services.AddTransient<Controller1>(); services.AddTransient<Controller2>(); ser...
You configured your client as a typed client and not a named client. No need for the factory. You should explicitly inject the http client in constructor instead, not the http client factory. Change your code to this: ``` private readonly HttpClient _httpClient; public ReService(HttpClient httpClient;) { _httpC...
65,778,074
Hello I'm starting now in programming and I'm having some problems with Scraping, I'm trying to get all the links in a category with several names, but I'm not getting isolate the cells because there are many with the same name, could someone help me? I will put the picture of my code and the url I want to get. ` ```...
2021/01/18
[ "https://Stackoverflow.com/questions/65778074", "https://Stackoverflow.com", "https://Stackoverflow.com/users/15015737/" ]
You configured your client as a typed client and not a named client. No need for the factory. You should explicitly inject the http client in constructor instead, not the http client factory. Change your code to this: ``` private readonly HttpClient _httpClient; public ReService(HttpClient httpClient;) { _httpC...
@jack wrote a comment and several guys supported him that this is the right decision, but it is the wrong decision. AddHttpClient creates a TService service as a Transient service, to which it passes an HttpClient created only for it Calling first AddTransient, and then AddHttpClient<>, you add 2 implementations of o...
65,778,074
Hello I'm starting now in programming and I'm having some problems with Scraping, I'm trying to get all the links in a category with several names, but I'm not getting isolate the cells because there are many with the same name, could someone help me? I will put the picture of my code and the url I want to get. ` ```...
2021/01/18
[ "https://Stackoverflow.com/questions/65778074", "https://Stackoverflow.com", "https://Stackoverflow.com/users/15015737/" ]
Okay so I will answer my post because with the suggested TYPED way of doing it was causing problems with the values not being set inside the httpClient, E.G BaseAddress was always null. In the startup I was trying to go with typed httpclient e.g ```cs services.AddHttpClient<IReService, ReService>(c => ... ``` But i...
@jack wrote a comment and several guys supported him that this is the right decision, but it is the wrong decision. AddHttpClient creates a TService service as a Transient service, to which it passes an HttpClient created only for it Calling first AddTransient, and then AddHttpClient<>, you add 2 implementations of o...
65,778,074
Hello I'm starting now in programming and I'm having some problems with Scraping, I'm trying to get all the links in a category with several names, but I'm not getting isolate the cells because there are many with the same name, could someone help me? I will put the picture of my code and the url I want to get. ` ```...
2021/01/18
[ "https://Stackoverflow.com/questions/65778074", "https://Stackoverflow.com", "https://Stackoverflow.com/users/15015737/" ]
A simple, frustrating reason this may happen is due to the order of your service collection statements. Assigning the dependant service **after** the HTTPClient will not work, it must come before: ``` // NOT WORKING - BaseAddress is null services.AddTransient<Controller1>(); services.AddTransient<Controller2>(); ser...
@jack wrote a comment and several guys supported him that this is the right decision, but it is the wrong decision. AddHttpClient creates a TService service as a Transient service, to which it passes an HttpClient created only for it Calling first AddTransient, and then AddHttpClient<>, you add 2 implementations of o...
54,133
Given two primitive recursive functions is it decidable whether or not they are the same function? For example lets take sorting algorithms A, and B which are primitive recursive. While there are many algorithms for sorting they all describe the same relation. Given two primitive recursive implementations of A, and B, ...
2016/03/07
[ "https://cs.stackexchange.com/questions/54133", "https://cs.stackexchange.com", "https://cs.stackexchange.com/users/44701/" ]
It is well known that equivalence is undecidable even for CFGs resp. PDAs (see even [Wikipedia](https://en.wikipedia.org/wiki/Context-free_language#Decidability_properties)). This provides a proof that the same property is undecidable for every model of any superset of CFL (by a simple [special case reduction](https://...
It is not decidable, by the relatively straightforward informal proof: Given an arbitrary Turing machine $M$, you can define the following function $f\_M$: $$ f\_M(n) = \cases{0 \mbox{ if $M$ does not halt in $\leq n$ steps on empty input}\\ 1\mbox{ otherwise}}$$ It's a fundamental fact of primitive recursion that $...
60,337,108
When I use iloc to set a datetime value to a dataframe cell, the value is changed ``` import datetime as dt import pandas as pd t = '2019-12-29 13:17:34.678000' t = dt.datetime.fromisoformat(t) print(t) # 2019-12-29 13:17:34.678000 df = pd.DataFrame({'t': [t]}) print(df) # t # 0 2019-12-29 13...
2020/02/21
[ "https://Stackoverflow.com/questions/60337108", "https://Stackoverflow.com", "https://Stackoverflow.com/users/160406/" ]
You can apply function `isoformat` that will trunc time to milliseconds removing microsecond precision: ``` t = dt.datetime.fromisoformat(t).isoformat(timespec='milliseconds') ``` For details regarding isoformat, please follow: <https://docs.python.org/3/library/datetime.html#datetime.time.microsecond> Please note...
This seems to be a bug in pandas `0.25.2`. It doesn't happen in the latest version, `1.0.1`. In `0.25.2` it can be worked around by using `.at` instead of `.iloc` ``` t = '2019-12-29 13:17:34.678000' t = dt.datetime.fromisoformat(t) print(t) # 2019-12-29 13:17:34.678000 df = pd.DataFrame({'t': [t]}) print(df) # ...
26,159,370
I need a direct link to download QGIS and ArcGIS softwares those will be compatible with redhat 5 and can some one help me to install it on redhat 5 ??? i need a full package? Also I would like to ask you is there any version of ARCGIS that compatible with redhat 5
2014/10/02
[ "https://Stackoverflow.com/questions/26159370", "https://Stackoverflow.com", "https://Stackoverflow.com/users/2161114/" ]
Look under RSpec on "[Testing Sinatra with Rack::Test](http://www.sinatrarb.com/testing.html)". I'd suggest you use that code as boilerplate to get started. Just add this to your describe block: ``` def app Sinatra::Application end ``` I would suggest you read up RSpec. --- Since you want to test an external sy...
As I'm writing request specs to ensure the features won't be broken I decided to rather write separate Cucumber features. The nice thing is that I can use Capybara, and thanks to Selenium Web Drive, I can launch a server before I run my tests. So, I created a dummy Sinatra application (that will represent the externa...
40,570,907
I have a pandas DataFrame `df` that looks like this: ``` A B 0 ['a','b'] 1 ['c','d'] 2 ['a','c'] 3 ['b','d'] 4 ['a','d'] ``` Now, I wish to subset `df` by only selecting those rows in which `'a'` belongs to the list in `B`, the desired output being: ``` A B 0 ['a','b'] 2 ['a','c'] 4 ['a','d'] ``...
2016/11/13
[ "https://Stackoverflow.com/questions/40570907", "https://Stackoverflow.com", "https://Stackoverflow.com/users/2556222/" ]
After debugging the issue, using <https://developers.pinterest.com/tools/url-debugger/>, the problem seems to stem from the server-side. > > If you're seeing We weren't able to retrieve any data from your URL, > then Pinterest may be timing out before we can create a Pin on your > site. Unfortunately, this isn't s...
We have the same issue. In our case this is being caused because the server has multiple SSL certificates and uses SNI so the client can get the certificate. However Pinterest is using curl on the back end which is NOT SNI aware. We have logged this with Pinterest
40,570,907
I have a pandas DataFrame `df` that looks like this: ``` A B 0 ['a','b'] 1 ['c','d'] 2 ['a','c'] 3 ['b','d'] 4 ['a','d'] ``` Now, I wish to subset `df` by only selecting those rows in which `'a'` belongs to the list in `B`, the desired output being: ``` A B 0 ['a','b'] 2 ['a','c'] 4 ['a','d'] ``...
2016/11/13
[ "https://Stackoverflow.com/questions/40570907", "https://Stackoverflow.com", "https://Stackoverflow.com/users/2556222/" ]
After debugging the issue, using <https://developers.pinterest.com/tools/url-debugger/>, the problem seems to stem from the server-side. > > If you're seeing We weren't able to retrieve any data from your URL, > then Pinterest may be timing out before we can create a Pin on your > site. Unfortunately, this isn't s...
For me the problem was a missing intermediate SSL certificate. By reinstalling my SSL certificate and this time including the intermediate SSL certificate, I was able to successfully validate with the Pinterest Rich Pins Validator.
40,570,907
I have a pandas DataFrame `df` that looks like this: ``` A B 0 ['a','b'] 1 ['c','d'] 2 ['a','c'] 3 ['b','d'] 4 ['a','d'] ``` Now, I wish to subset `df` by only selecting those rows in which `'a'` belongs to the list in `B`, the desired output being: ``` A B 0 ['a','b'] 2 ['a','c'] 4 ['a','d'] ``...
2016/11/13
[ "https://Stackoverflow.com/questions/40570907", "https://Stackoverflow.com", "https://Stackoverflow.com/users/2556222/" ]
After debugging the issue, using <https://developers.pinterest.com/tools/url-debugger/>, the problem seems to stem from the server-side. > > If you're seeing We weren't able to retrieve any data from your URL, > then Pinterest may be timing out before we can create a Pin on your > site. Unfortunately, this isn't s...
For me the problem was I was using "<http://example.com>". The validator wouldn't recognize my site. Not AT ALL. Not even the site name or the favicon. Then I switched to "<http://www.example.com>" and it worked perfectly.
40,570,907
I have a pandas DataFrame `df` that looks like this: ``` A B 0 ['a','b'] 1 ['c','d'] 2 ['a','c'] 3 ['b','d'] 4 ['a','d'] ``` Now, I wish to subset `df` by only selecting those rows in which `'a'` belongs to the list in `B`, the desired output being: ``` A B 0 ['a','b'] 2 ['a','c'] 4 ['a','d'] ``...
2016/11/13
[ "https://Stackoverflow.com/questions/40570907", "https://Stackoverflow.com", "https://Stackoverflow.com/users/2556222/" ]
We have the same issue. In our case this is being caused because the server has multiple SSL certificates and uses SNI so the client can get the certificate. However Pinterest is using curl on the back end which is NOT SNI aware. We have logged this with Pinterest
For me the problem was a missing intermediate SSL certificate. By reinstalling my SSL certificate and this time including the intermediate SSL certificate, I was able to successfully validate with the Pinterest Rich Pins Validator.
40,570,907
I have a pandas DataFrame `df` that looks like this: ``` A B 0 ['a','b'] 1 ['c','d'] 2 ['a','c'] 3 ['b','d'] 4 ['a','d'] ``` Now, I wish to subset `df` by only selecting those rows in which `'a'` belongs to the list in `B`, the desired output being: ``` A B 0 ['a','b'] 2 ['a','c'] 4 ['a','d'] ``...
2016/11/13
[ "https://Stackoverflow.com/questions/40570907", "https://Stackoverflow.com", "https://Stackoverflow.com/users/2556222/" ]
We have the same issue. In our case this is being caused because the server has multiple SSL certificates and uses SNI so the client can get the certificate. However Pinterest is using curl on the back end which is NOT SNI aware. We have logged this with Pinterest
For me the problem was I was using "<http://example.com>". The validator wouldn't recognize my site. Not AT ALL. Not even the site name or the favicon. Then I switched to "<http://www.example.com>" and it worked perfectly.
12,585,829
I'm thinking this isn't possible, but I'm not a CSS expert, so I thought I'd check. I've got a translucent div absolutely positioned over an image. That's good so far, but I'd like to force my translucent div to respect the box in which it and the image are contained. ``` <div class="parent"> <div class="title-bar">...
2012/09/25
[ "https://Stackoverflow.com/questions/12585829", "https://Stackoverflow.com", "https://Stackoverflow.com/users/1269310/" ]
To force the container expand with the child `img`, make it `float`. To force the overlay relate to container position and size, make the container `relative`. ``` .parent { float: left; position: relative; } ``` To force the overlay respect the bounds of the container, use percents. ``` .overlay { p...
It's [doable, but not quite beautiful](http://jsfiddle.net/G43tb/1/) : ``` <div id="parent"> <div id="abs">stuff fadsfasd fsad fasdsdaf </div> <img src="/img/logo.png" /> </div> #parent {width:auto; height:auto; border:1px solid blue; background-color:grey;position:relative; display:block;float:left;} #abs ...
6,435,409
I have develop a small asp.net MVC3 application in that i have upload a video files into Application server path.When i upload 2MB video file it is uploded .But when itry to upload 50mb file it is showing error like . ``` This webpage is not available The webpage at http://localhost:1318/Campaign/Advertises m...
2011/06/22
[ "https://Stackoverflow.com/questions/6435409", "https://Stackoverflow.com", "https://Stackoverflow.com/users/737497/" ]
``` <httpRuntime maxRequestLength="51200" executionTimeout="0"/> ``` Here ``` executionTimeout="0" takes unlimited time maxRequestLength="51200" for 1mb=1024 so for 50mb=51200 ```
Just to make the answer more complete for the next guy: httpRuntime goes in `<system.web>` executionTimeout value of 0 only works for some versions of IIS
5,635,255
I constantly detect OOM in PermGen for my environment: 1. java 6 2. jboss-4.2.3 3. Not a big web-application I know about String.intern() problem - but I don't have enough valuable usage of it. Increasing of MaxPermGen size didn't take a force (from 128 Mb to 256 Mb). What other reasons could invoke OOM for PermGen?...
2011/04/12
[ "https://Stackoverflow.com/questions/5635255", "https://Stackoverflow.com", "https://Stackoverflow.com/users/633935/" ]
[See this note](http://www.jroller.com/agileanswers/entry/preventing_java_s_java_lang) * Put JDBC driver in common/lib (as tomcat documentation says) and not in WEB-INF/lib * Don't put commons-logging into WEB-INF/lib since tomcat already bootstraps it new class objects get placed into the PermGen and thus occupy an ...
You typically get this error when redeploying an application while having a [classloader leak](http://blogs.oracle.com/fkieviet/entry/classloader_leaks_the_dreaded_java), because it means all your classes are loaded again while the old versions stay around. There are two solutions: * Restart the app server instead of...
7,920,269
I am new to Java and Android programming. The issue that I am having is that after surfing several books, forum and websites, I do not have clear understanding of what the @override annotation does. I understand it signifies when a method is being over ridden. but why is it needed in android. I see it rarely in source ...
2011/10/27
[ "https://Stackoverflow.com/questions/7920269", "https://Stackoverflow.com", "https://Stackoverflow.com/users/1017046/" ]
I know next to nothing about Android-programming, but the @Override-annotation is used to show that the method overrides a supeclass method (or implements an interface method in Java 1.6). Besides the purely documentational meaning of the annotation, at least Eclipse also warns you (or marks it an error, depending on y...
It is not needed for both java and android. You see it often in android programs because eclipse adds it automatically when you create a new activity, method, etc. If you delete the @Override annotation nothing will appen.
7,920,269
I am new to Java and Android programming. The issue that I am having is that after surfing several books, forum and websites, I do not have clear understanding of what the @override annotation does. I understand it signifies when a method is being over ridden. but why is it needed in android. I see it rarely in source ...
2011/10/27
[ "https://Stackoverflow.com/questions/7920269", "https://Stackoverflow.com", "https://Stackoverflow.com/users/1017046/" ]
``` out_marginLeft="50dp" android:layout_marginTop="50dp" android:layout_marginRight="50dp" android:gravity="center" android:orientation="vertical"> <ProgressBar android:id="@+id/progressBar" style="?android:attr/progressBarSty...
`@override` means you are borrowing methods from available class and are not defined by the programmer.
7,920,269
I am new to Java and Android programming. The issue that I am having is that after surfing several books, forum and websites, I do not have clear understanding of what the @override annotation does. I understand it signifies when a method is being over ridden. but why is it needed in android. I see it rarely in source ...
2011/10/27
[ "https://Stackoverflow.com/questions/7920269", "https://Stackoverflow.com", "https://Stackoverflow.com/users/1017046/" ]
because you override a lot of methods , example ;when you create your `Activity` ( which extends `Activity` ) you need to override the method `onCreate( Bundle savedInstanceState)` to initialize your `Activity` , and so on , **every time you override a method from a mother Class , eclipse add the annotation** `@overrid...
It is not needed for both java and android. You see it often in android programs because eclipse adds it automatically when you create a new activity, method, etc. If you delete the @Override annotation nothing will appen.
7,920,269
I am new to Java and Android programming. The issue that I am having is that after surfing several books, forum and websites, I do not have clear understanding of what the @override annotation does. I understand it signifies when a method is being over ridden. but why is it needed in android. I see it rarely in source ...
2011/10/27
[ "https://Stackoverflow.com/questions/7920269", "https://Stackoverflow.com", "https://Stackoverflow.com/users/1017046/" ]
Well if you understand the basic of @Override annotation it's simply metadata information that fill two purposes: * Describe that the method it's being override because it was defined in a interface or a extended class * Helps you identify correctly which method are locally declared and which are overriding since in a...
``` out_marginLeft="50dp" android:layout_marginTop="50dp" android:layout_marginRight="50dp" android:gravity="center" android:orientation="vertical"> <ProgressBar android:id="@+id/progressBar" style="?android:attr/progressBarSty...
7,920,269
I am new to Java and Android programming. The issue that I am having is that after surfing several books, forum and websites, I do not have clear understanding of what the @override annotation does. I understand it signifies when a method is being over ridden. but why is it needed in android. I see it rarely in source ...
2011/10/27
[ "https://Stackoverflow.com/questions/7920269", "https://Stackoverflow.com", "https://Stackoverflow.com/users/1017046/" ]
You may see it rarely in *old* Java source code, because it's a fairly recent innovation - whereas Android code is more recent pretty much by definition. It's a safety net, really - it tells the compiler that you're *trying* to override something - so please fail if the method *doesn't* override anything, e.g. due to ...
`@override` means you are borrowing methods from available class and are not defined by the programmer.
7,920,269
I am new to Java and Android programming. The issue that I am having is that after surfing several books, forum and websites, I do not have clear understanding of what the @override annotation does. I understand it signifies when a method is being over ridden. but why is it needed in android. I see it rarely in source ...
2011/10/27
[ "https://Stackoverflow.com/questions/7920269", "https://Stackoverflow.com", "https://Stackoverflow.com/users/1017046/" ]
You may see it rarely in *old* Java source code, because it's a fairly recent innovation - whereas Android code is more recent pretty much by definition. It's a safety net, really - it tells the compiler that you're *trying* to override something - so please fail if the method *doesn't* override anything, e.g. due to ...
`@Override` means that you want to re-define function from superclass in child class. Read more about abstract methods, classes, polymorphism.
7,920,269
I am new to Java and Android programming. The issue that I am having is that after surfing several books, forum and websites, I do not have clear understanding of what the @override annotation does. I understand it signifies when a method is being over ridden. but why is it needed in android. I see it rarely in source ...
2011/10/27
[ "https://Stackoverflow.com/questions/7920269", "https://Stackoverflow.com", "https://Stackoverflow.com/users/1017046/" ]
You may see it rarely in *old* Java source code, because it's a fairly recent innovation - whereas Android code is more recent pretty much by definition. It's a safety net, really - it tells the compiler that you're *trying* to override something - so please fail if the method *doesn't* override anything, e.g. due to ...
because you override a lot of methods , example ;when you create your `Activity` ( which extends `Activity` ) you need to override the method `onCreate( Bundle savedInstanceState)` to initialize your `Activity` , and so on , **every time you override a method from a mother Class , eclipse add the annotation** `@overrid...
7,920,269
I am new to Java and Android programming. The issue that I am having is that after surfing several books, forum and websites, I do not have clear understanding of what the @override annotation does. I understand it signifies when a method is being over ridden. but why is it needed in android. I see it rarely in source ...
2011/10/27
[ "https://Stackoverflow.com/questions/7920269", "https://Stackoverflow.com", "https://Stackoverflow.com/users/1017046/" ]
`@Override` means that you want to re-define function from superclass in child class. Read more about abstract methods, classes, polymorphism.
It is not needed for both java and android. You see it often in android programs because eclipse adds it automatically when you create a new activity, method, etc. If you delete the @Override annotation nothing will appen.
7,920,269
I am new to Java and Android programming. The issue that I am having is that after surfing several books, forum and websites, I do not have clear understanding of what the @override annotation does. I understand it signifies when a method is being over ridden. but why is it needed in android. I see it rarely in source ...
2011/10/27
[ "https://Stackoverflow.com/questions/7920269", "https://Stackoverflow.com", "https://Stackoverflow.com/users/1017046/" ]
because you override a lot of methods , example ;when you create your `Activity` ( which extends `Activity` ) you need to override the method `onCreate( Bundle savedInstanceState)` to initialize your `Activity` , and so on , **every time you override a method from a mother Class , eclipse add the annotation** `@overrid...
`@override` means you are borrowing methods from available class and are not defined by the programmer.
7,920,269
I am new to Java and Android programming. The issue that I am having is that after surfing several books, forum and websites, I do not have clear understanding of what the @override annotation does. I understand it signifies when a method is being over ridden. but why is it needed in android. I see it rarely in source ...
2011/10/27
[ "https://Stackoverflow.com/questions/7920269", "https://Stackoverflow.com", "https://Stackoverflow.com/users/1017046/" ]
You may see it rarely in *old* Java source code, because it's a fairly recent innovation - whereas Android code is more recent pretty much by definition. It's a safety net, really - it tells the compiler that you're *trying* to override something - so please fail if the method *doesn't* override anything, e.g. due to ...
@overide is something like a virtual method in c++, Oncreate method in android is more like the virtual bool Oninit() in wxWidget, this method is used by android (Oncreate) to build your GUI so because GUI is different from who is programming the code in Oncreate change too this is why we have to @overide it. We @overi...
156,328
In our project we have a population of 1000+ individuals. We picked a random sample of 107 individuals, but then we realized we needed more precision, so now we want to have a larger sample. The problem is that sampling is expensive in our case, so we were thinking about picking another random sample of about 50 indiv...
2015/06/10
[ "https://stats.stackexchange.com/questions/156328", "https://stats.stackexchange.com", "https://stats.stackexchange.com/users/78036/" ]
**Correction** I withdraw the previous answer (below) as wrong. @Glen\_b is correct, if the second sample is not based on any results in the first, then the overall probability of selection is $\dfrac{n}{N}$, the same as for a SRS (proof below). Further, you can treat the result as a SRS although the size was not fixe...
It depends on whether an assumption about same distribution between the remaining 900+ after the first sampling process and original 1000+ can be held. If possible you can perform an test about mean or heteroscedasticity of the parameter(s) of interested.
156,328
In our project we have a population of 1000+ individuals. We picked a random sample of 107 individuals, but then we realized we needed more precision, so now we want to have a larger sample. The problem is that sampling is expensive in our case, so we were thinking about picking another random sample of about 50 indiv...
2015/06/10
[ "https://stats.stackexchange.com/questions/156328", "https://stats.stackexchange.com", "https://stats.stackexchange.com/users/78036/" ]
**Correction** I withdraw the previous answer (below) as wrong. @Glen\_b is correct, if the second sample is not based on any results in the first, then the overall probability of selection is $\dfrac{n}{N}$, the same as for a SRS (proof below). Further, you can treat the result as a SRS although the size was not fixe...
I am not quite sure how random this sample could be considered. I don't have a great experience of statistics but the method you suggest doesn't sound very good to me. What I would do is put back the sample I took from the entire population, reorder them and take again a random sample from it. Or I would just take a ne...
251,171
In my text book they said that: > > 1. If no resultant force acts on an object, it will not accelerate; **it will remain at rest or it will** **continue to move at constant speed** > 2. If an object is at rest or is moving at a constant speed in a straight line ,we can say that there is no resultant force on it. > >...
2016/04/21
[ "https://physics.stackexchange.com/questions/251171", "https://physics.stackexchange.com", "https://physics.stackexchange.com/users/115057/" ]
Welcome to the Stack Exchange community Yusuf. The first thing that you need to understand before you understand forces and their effect on bodies is relative motion. Whenever you mention distance or speed of any object, you always mention it with reference to a fixed point. For example, if someone asks you how far awa...
Basically, if no \*\*net \*\* force is acting on a body, it's acceleration is zero... Now, acceleration is the change in velocity in unit time... So, if velocity is constant or zero, it's acceleration is zero... Hope this helps!!!
251,171
In my text book they said that: > > 1. If no resultant force acts on an object, it will not accelerate; **it will remain at rest or it will** **continue to move at constant speed** > 2. If an object is at rest or is moving at a constant speed in a straight line ,we can say that there is no resultant force on it. > >...
2016/04/21
[ "https://physics.stackexchange.com/questions/251171", "https://physics.stackexchange.com", "https://physics.stackexchange.com/users/115057/" ]
Welcome to the Stack Exchange community Yusuf. The first thing that you need to understand before you understand forces and their effect on bodies is relative motion. Whenever you mention distance or speed of any object, you always mention it with reference to a fixed point. For example, if someone asks you how far awa...
You might be confusing with pushing an object forward to maintain its motion. For example, we pushed a CART forward and we got to maintain pushing it to keep it moving forever. Then, when we let go it will stop. This is just because there is friction, this friction will cause the cart to stop, remove that and the car...
251,171
In my text book they said that: > > 1. If no resultant force acts on an object, it will not accelerate; **it will remain at rest or it will** **continue to move at constant speed** > 2. If an object is at rest or is moving at a constant speed in a straight line ,we can say that there is no resultant force on it. > >...
2016/04/21
[ "https://physics.stackexchange.com/questions/251171", "https://physics.stackexchange.com", "https://physics.stackexchange.com/users/115057/" ]
A small and simple analogy to get the basic insight: If each month, you spent as much as you earn, you will have constant savings. If you started without savings, you will continue to have zero savings. If you started with \$1000, it will remain \$1000. In short: with net revenue zero, your savings are constant. Chan...
For an object to change from its state of rest to motion needs some force. When a force is applied the velocity of the object changes from 0 to some velocity V (and it keeps increasing as long as the force is present). This change in velocity is termed as acceleration. Now if you remove the force, the object will move...
251,171
In my text book they said that: > > 1. If no resultant force acts on an object, it will not accelerate; **it will remain at rest or it will** **continue to move at constant speed** > 2. If an object is at rest or is moving at a constant speed in a straight line ,we can say that there is no resultant force on it. > >...
2016/04/21
[ "https://physics.stackexchange.com/questions/251171", "https://physics.stackexchange.com", "https://physics.stackexchange.com/users/115057/" ]
Recall Newton's Second Law, *F=ma* This means that resultant forces acting on an object will produce acceleration, which is a change in velocity. Remember that velocity is a vector, which includes both *speed* **and** *direction*. So if an object is accelerating, it has either its speed and/or direction of movement un...
A small and simple analogy to get the basic insight: If each month, you spent as much as you earn, you will have constant savings. If you started without savings, you will continue to have zero savings. If you started with \$1000, it will remain \$1000. In short: with net revenue zero, your savings are constant. Chan...
251,171
In my text book they said that: > > 1. If no resultant force acts on an object, it will not accelerate; **it will remain at rest or it will** **continue to move at constant speed** > 2. If an object is at rest or is moving at a constant speed in a straight line ,we can say that there is no resultant force on it. > >...
2016/04/21
[ "https://physics.stackexchange.com/questions/251171", "https://physics.stackexchange.com", "https://physics.stackexchange.com/users/115057/" ]
Recall Newton's Second Law, *F=ma* This means that resultant forces acting on an object will produce acceleration, which is a change in velocity. Remember that velocity is a vector, which includes both *speed* **and** *direction*. So if an object is accelerating, it has either its speed and/or direction of movement un...
Basically, if no \*\*net \*\* force is acting on a body, it's acceleration is zero... Now, acceleration is the change in velocity in unit time... So, if velocity is constant or zero, it's acceleration is zero... Hope this helps!!!
251,171
In my text book they said that: > > 1. If no resultant force acts on an object, it will not accelerate; **it will remain at rest or it will** **continue to move at constant speed** > 2. If an object is at rest or is moving at a constant speed in a straight line ,we can say that there is no resultant force on it. > >...
2016/04/21
[ "https://physics.stackexchange.com/questions/251171", "https://physics.stackexchange.com", "https://physics.stackexchange.com/users/115057/" ]
Recall Newton's Second Law, *F=ma* This means that resultant forces acting on an object will produce acceleration, which is a change in velocity. Remember that velocity is a vector, which includes both *speed* **and** *direction*. So if an object is accelerating, it has either its speed and/or direction of movement un...
Welcome to the Stack Exchange community Yusuf. The first thing that you need to understand before you understand forces and their effect on bodies is relative motion. Whenever you mention distance or speed of any object, you always mention it with reference to a fixed point. For example, if someone asks you how far awa...
251,171
In my text book they said that: > > 1. If no resultant force acts on an object, it will not accelerate; **it will remain at rest or it will** **continue to move at constant speed** > 2. If an object is at rest or is moving at a constant speed in a straight line ,we can say that there is no resultant force on it. > >...
2016/04/21
[ "https://physics.stackexchange.com/questions/251171", "https://physics.stackexchange.com", "https://physics.stackexchange.com/users/115057/" ]
A small and simple analogy to get the basic insight: If each month, you spent as much as you earn, you will have constant savings. If you started without savings, you will continue to have zero savings. If you started with \$1000, it will remain \$1000. In short: with net revenue zero, your savings are constant. Chan...
Basically, if no \*\*net \*\* force is acting on a body, it's acceleration is zero... Now, acceleration is the change in velocity in unit time... So, if velocity is constant or zero, it's acceleration is zero... Hope this helps!!!
251,171
In my text book they said that: > > 1. If no resultant force acts on an object, it will not accelerate; **it will remain at rest or it will** **continue to move at constant speed** > 2. If an object is at rest or is moving at a constant speed in a straight line ,we can say that there is no resultant force on it. > >...
2016/04/21
[ "https://physics.stackexchange.com/questions/251171", "https://physics.stackexchange.com", "https://physics.stackexchange.com/users/115057/" ]
Recall Newton's Second Law, *F=ma* This means that resultant forces acting on an object will produce acceleration, which is a change in velocity. Remember that velocity is a vector, which includes both *speed* **and** *direction*. So if an object is accelerating, it has either its speed and/or direction of movement un...
You might be confusing with pushing an object forward to maintain its motion. For example, we pushed a CART forward and we got to maintain pushing it to keep it moving forever. Then, when we let go it will stop. This is just because there is friction, this friction will cause the cart to stop, remove that and the car...
251,171
In my text book they said that: > > 1. If no resultant force acts on an object, it will not accelerate; **it will remain at rest or it will** **continue to move at constant speed** > 2. If an object is at rest or is moving at a constant speed in a straight line ,we can say that there is no resultant force on it. > >...
2016/04/21
[ "https://physics.stackexchange.com/questions/251171", "https://physics.stackexchange.com", "https://physics.stackexchange.com/users/115057/" ]
A small and simple analogy to get the basic insight: If each month, you spent as much as you earn, you will have constant savings. If you started without savings, you will continue to have zero savings. If you started with \$1000, it will remain \$1000. In short: with net revenue zero, your savings are constant. Chan...
You might be confusing with pushing an object forward to maintain its motion. For example, we pushed a CART forward and we got to maintain pushing it to keep it moving forever. Then, when we let go it will stop. This is just because there is friction, this friction will cause the cart to stop, remove that and the car...
251,171
In my text book they said that: > > 1. If no resultant force acts on an object, it will not accelerate; **it will remain at rest or it will** **continue to move at constant speed** > 2. If an object is at rest or is moving at a constant speed in a straight line ,we can say that there is no resultant force on it. > >...
2016/04/21
[ "https://physics.stackexchange.com/questions/251171", "https://physics.stackexchange.com", "https://physics.stackexchange.com/users/115057/" ]
Recall Newton's Second Law, *F=ma* This means that resultant forces acting on an object will produce acceleration, which is a change in velocity. Remember that velocity is a vector, which includes both *speed* **and** *direction*. So if an object is accelerating, it has either its speed and/or direction of movement un...
For an object to change from its state of rest to motion needs some force. When a force is applied the velocity of the object changes from 0 to some velocity V (and it keeps increasing as long as the force is present). This change in velocity is termed as acceleration. Now if you remove the force, the object will move...
55,991,820
After pressing a button in my application it crashes and I get the "FATAL EXCEPTION: main" error in the logcat. An event listener is attached to the button which should add + 1 to my scoreVar variable and then update the string on the screen. The code of MainActivity.kt ``` package com.nomiac.camera import android.s...
2019/05/05
[ "https://Stackoverflow.com/questions/55991820", "https://Stackoverflow.com", "https://Stackoverflow.com/users/11356638/" ]
Change this line ``` <string name="score">Score: % taps</string> ``` to this ``` <string name="score">Score: %s taps</string> ``` You must specify format of arg. for you its %s means string
Not really fluent in Kotlin but this line doesn't seem right. getString() should receive (at least in classic *Android Java*) the resource ID, so the stuff after the comma should be causing your problem. ``` val newScore = getString(R.string.score, scoreVar.toString() ``` Shouldn't it be `val newScore = getString(R...
96,989
**Agrippa's 5 tropes** 1. *Dissent*: For every thesis an anithesis 2. *Relation*: Point of view matters. 3. *Infinite Regress*: Justifications need justifications need justifications ... *ad infinitum* 4. *Axioms*: Assume something to be true *sans* justification. 5. *Circularity*: The conclusion appears in the premis...
2023/02/14
[ "https://philosophy.stackexchange.com/questions/96989", "https://philosophy.stackexchange.com", "https://philosophy.stackexchange.com/users/63423/" ]
[Is the concept of knowledge, or our use of the word *knowledge* (and our use of other such terms in the same and other languages), such as to be broken down into other concepts/uses of other words?](https://plato.stanford.edu/entries/knowledge-analysis/) Or, [on the contrary, John Cook Wilson reasoned that “we cannot ...
While [Mr. Klocking implies in his answer](https://philosophy.stackexchange.com/a/97077/40730) that [fallibilism (IEP)](https://iep.utm.edu/fallibil/) easily and consensually among professional philosophers overcomes the problem of skepticism, [contemporary skepticism (IEP)](https://iep.utm.edu/skepcont/) lives on, and...
96,989
**Agrippa's 5 tropes** 1. *Dissent*: For every thesis an anithesis 2. *Relation*: Point of view matters. 3. *Infinite Regress*: Justifications need justifications need justifications ... *ad infinitum* 4. *Axioms*: Assume something to be true *sans* justification. 5. *Circularity*: The conclusion appears in the premis...
2023/02/14
[ "https://philosophy.stackexchange.com/questions/96989", "https://philosophy.stackexchange.com", "https://philosophy.stackexchange.com/users/63423/" ]
You didn't explain why you think skepticism is self-refuting, but I've heard people say this would be because skepticism would demand skepticism of skepticism itself, so I'll address that. Yes, you should be skeptical of skepticism, but that doesn't make it self-refuting. This seems to conflate skepticism and what I ...
As per [my other answer](https://philosophy.stackexchange.com/a/92305/14508), **a skeptical argument is not different than an assertion of the presence or lack of presence of something**. For example: > > A: I see a boat out there. > > > B: How do you know you see a boat out there? > > > What B is doing is ass...
96,989
**Agrippa's 5 tropes** 1. *Dissent*: For every thesis an anithesis 2. *Relation*: Point of view matters. 3. *Infinite Regress*: Justifications need justifications need justifications ... *ad infinitum* 4. *Axioms*: Assume something to be true *sans* justification. 5. *Circularity*: The conclusion appears in the premis...
2023/02/14
[ "https://philosophy.stackexchange.com/questions/96989", "https://philosophy.stackexchange.com", "https://philosophy.stackexchange.com/users/63423/" ]
You didn't explain why you think skepticism is self-refuting, but I've heard people say this would be because skepticism would demand skepticism of skepticism itself, so I'll address that. Yes, you should be skeptical of skepticism, but that doesn't make it self-refuting. This seems to conflate skepticism and what I ...
Skeptism is self-refuting as noted by al-Ghazali which is why no major philosopher has been a sceptic. To do philosophy requires faith ... faith in truth as a category, faith also in our senses that they report the world faithfully.
96,989
**Agrippa's 5 tropes** 1. *Dissent*: For every thesis an anithesis 2. *Relation*: Point of view matters. 3. *Infinite Regress*: Justifications need justifications need justifications ... *ad infinitum* 4. *Axioms*: Assume something to be true *sans* justification. 5. *Circularity*: The conclusion appears in the premis...
2023/02/14
[ "https://philosophy.stackexchange.com/questions/96989", "https://philosophy.stackexchange.com", "https://philosophy.stackexchange.com/users/63423/" ]
The history of philosophy has many examples of people who think they have refuted scepticism - Descartes, Berkeley, Locke and Hume not to mention Russell, Ryle and Wittgenstein are all examples. And yet people keep returning to the issue. One would be justified in thinking that the problem is to understand why this is...
As of the titular question: No, it is not. Tim Button has formally shown in his book *The Limits of Realism* that **all famous historical arguments for skepticism are incoherent/self-contradictory**. For what it's worth, he does show the same for all famous historical arguments for realism, hence the title of the boo...
96,989
**Agrippa's 5 tropes** 1. *Dissent*: For every thesis an anithesis 2. *Relation*: Point of view matters. 3. *Infinite Regress*: Justifications need justifications need justifications ... *ad infinitum* 4. *Axioms*: Assume something to be true *sans* justification. 5. *Circularity*: The conclusion appears in the premis...
2023/02/14
[ "https://philosophy.stackexchange.com/questions/96989", "https://philosophy.stackexchange.com", "https://philosophy.stackexchange.com/users/63423/" ]
[Is the concept of knowledge, or our use of the word *knowledge* (and our use of other such terms in the same and other languages), such as to be broken down into other concepts/uses of other words?](https://plato.stanford.edu/entries/knowledge-analysis/) Or, [on the contrary, John Cook Wilson reasoned that “we cannot ...
As of the titular question: No, it is not. Tim Button has formally shown in his book *The Limits of Realism* that **all famous historical arguments for skepticism are incoherent/self-contradictory**. For what it's worth, he does show the same for all famous historical arguments for realism, hence the title of the boo...
96,989
**Agrippa's 5 tropes** 1. *Dissent*: For every thesis an anithesis 2. *Relation*: Point of view matters. 3. *Infinite Regress*: Justifications need justifications need justifications ... *ad infinitum* 4. *Axioms*: Assume something to be true *sans* justification. 5. *Circularity*: The conclusion appears in the premis...
2023/02/14
[ "https://philosophy.stackexchange.com/questions/96989", "https://philosophy.stackexchange.com", "https://philosophy.stackexchange.com/users/63423/" ]
The history of philosophy has many examples of people who think they have refuted scepticism - Descartes, Berkeley, Locke and Hume not to mention Russell, Ryle and Wittgenstein are all examples. And yet people keep returning to the issue. One would be justified in thinking that the problem is to understand why this is...
While [Mr. Klocking implies in his answer](https://philosophy.stackexchange.com/a/97077/40730) that [fallibilism (IEP)](https://iep.utm.edu/fallibil/) easily and consensually among professional philosophers overcomes the problem of skepticism, [contemporary skepticism (IEP)](https://iep.utm.edu/skepcont/) lives on, and...
96,989
**Agrippa's 5 tropes** 1. *Dissent*: For every thesis an anithesis 2. *Relation*: Point of view matters. 3. *Infinite Regress*: Justifications need justifications need justifications ... *ad infinitum* 4. *Axioms*: Assume something to be true *sans* justification. 5. *Circularity*: The conclusion appears in the premis...
2023/02/14
[ "https://philosophy.stackexchange.com/questions/96989", "https://philosophy.stackexchange.com", "https://philosophy.stackexchange.com/users/63423/" ]
The history of philosophy has many examples of people who think they have refuted scepticism - Descartes, Berkeley, Locke and Hume not to mention Russell, Ryle and Wittgenstein are all examples. And yet people keep returning to the issue. One would be justified in thinking that the problem is to understand why this is...
**Agrippa's 5 tropes resoleved** 1. *Dissent*: Trust an other as thyself and you won't need the theses. An other is not an alien or evil, don't be mad in faith. 2. *Relation*: Point of view doesn't matters for alitheya, be at skeptic's point. 3. *Infinite Regress*: Not needed an justification if you are not an other-I...
96,989
**Agrippa's 5 tropes** 1. *Dissent*: For every thesis an anithesis 2. *Relation*: Point of view matters. 3. *Infinite Regress*: Justifications need justifications need justifications ... *ad infinitum* 4. *Axioms*: Assume something to be true *sans* justification. 5. *Circularity*: The conclusion appears in the premis...
2023/02/14
[ "https://philosophy.stackexchange.com/questions/96989", "https://philosophy.stackexchange.com", "https://philosophy.stackexchange.com/users/63423/" ]
As per [my other answer](https://philosophy.stackexchange.com/a/92305/14508), **a skeptical argument is not different than an assertion of the presence or lack of presence of something**. For example: > > A: I see a boat out there. > > > B: How do you know you see a boat out there? > > > What B is doing is ass...
**Agrippa's 5 tropes resoleved** 1. *Dissent*: Trust an other as thyself and you won't need the theses. An other is not an alien or evil, don't be mad in faith. 2. *Relation*: Point of view doesn't matters for alitheya, be at skeptic's point. 3. *Infinite Regress*: Not needed an justification if you are not an other-I...
96,989
**Agrippa's 5 tropes** 1. *Dissent*: For every thesis an anithesis 2. *Relation*: Point of view matters. 3. *Infinite Regress*: Justifications need justifications need justifications ... *ad infinitum* 4. *Axioms*: Assume something to be true *sans* justification. 5. *Circularity*: The conclusion appears in the premis...
2023/02/14
[ "https://philosophy.stackexchange.com/questions/96989", "https://philosophy.stackexchange.com", "https://philosophy.stackexchange.com/users/63423/" ]
[Is the concept of knowledge, or our use of the word *knowledge* (and our use of other such terms in the same and other languages), such as to be broken down into other concepts/uses of other words?](https://plato.stanford.edu/entries/knowledge-analysis/) Or, [on the contrary, John Cook Wilson reasoned that “we cannot ...
Skeptism is self-refuting as noted by al-Ghazali which is why no major philosopher has been a sceptic. To do philosophy requires faith ... faith in truth as a category, faith also in our senses that they report the world faithfully.
96,989
**Agrippa's 5 tropes** 1. *Dissent*: For every thesis an anithesis 2. *Relation*: Point of view matters. 3. *Infinite Regress*: Justifications need justifications need justifications ... *ad infinitum* 4. *Axioms*: Assume something to be true *sans* justification. 5. *Circularity*: The conclusion appears in the premis...
2023/02/14
[ "https://philosophy.stackexchange.com/questions/96989", "https://philosophy.stackexchange.com", "https://philosophy.stackexchange.com/users/63423/" ]
As of the titular question: No, it is not. Tim Button has formally shown in his book *The Limits of Realism* that **all famous historical arguments for skepticism are incoherent/self-contradictory**. For what it's worth, he does show the same for all famous historical arguments for realism, hence the title of the boo...
**Agrippa's 5 tropes resoleved** 1. *Dissent*: Trust an other as thyself and you won't need the theses. An other is not an alien or evil, don't be mad in faith. 2. *Relation*: Point of view doesn't matters for alitheya, be at skeptic's point. 3. *Infinite Regress*: Not needed an justification if you are not an other-I...
73,166,712
I have SingleChildScrollView as a parent and in that, I have two listviews each list view is wrapped with SizedBox with a specific height (like 700), what I want is, when I scroll up all the views that are in the first list, the first Listview should scroll up and then I'll be able to scroll next Listview, Please have ...
2022/07/29
[ "https://Stackoverflow.com/questions/73166712", "https://Stackoverflow.com", "https://Stackoverflow.com/users/16283152/" ]
You Can Do something like this on the Controllers: ``` import 'dart:developer'; import 'package:flutter/material.dart'; import 'package:provider/provider.dart'; class ScrollingBehaviourInDart extends StatefulWidget { const ScrollingBehaviourInDart({Key? key}) : super(key: key); @override State<ScrollingBehavi...
maybe you can use [Stickyheader](https://pub.dev/packages/sticky_headers). ``` import 'package:sticky_headers/sticky_headers.dart'; ListView( shrinkwarp:true, children:[ StickyHeader( head: Text('List 1 '), content : ListView.builder( physics: const ClampingScrollPhysics(), // use this for clampin...
73,166,712
I have SingleChildScrollView as a parent and in that, I have two listviews each list view is wrapped with SizedBox with a specific height (like 700), what I want is, when I scroll up all the views that are in the first list, the first Listview should scroll up and then I'll be able to scroll next Listview, Please have ...
2022/07/29
[ "https://Stackoverflow.com/questions/73166712", "https://Stackoverflow.com", "https://Stackoverflow.com/users/16283152/" ]
You Can Do something like this on the Controllers: ``` import 'dart:developer'; import 'package:flutter/material.dart'; import 'package:provider/provider.dart'; class ScrollingBehaviourInDart extends StatefulWidget { const ScrollingBehaviourInDart({Key? key}) : super(key: key); @override State<ScrollingBehavi...
There are many easy ways to handle this situation as stated by many other developers. I have created an Example class with `ScrollController` and `AbsordPointer` classes to achieve the required behavior. Sample [![enter image description here](https://i.stack.imgur.com/LwGci.gif)](https://i.stack.imgur.com/LwGci.gif)...
73,166,712
I have SingleChildScrollView as a parent and in that, I have two listviews each list view is wrapped with SizedBox with a specific height (like 700), what I want is, when I scroll up all the views that are in the first list, the first Listview should scroll up and then I'll be able to scroll next Listview, Please have ...
2022/07/29
[ "https://Stackoverflow.com/questions/73166712", "https://Stackoverflow.com", "https://Stackoverflow.com/users/16283152/" ]
You Can Do something like this on the Controllers: ``` import 'dart:developer'; import 'package:flutter/material.dart'; import 'package:provider/provider.dart'; class ScrollingBehaviourInDart extends StatefulWidget { const ScrollingBehaviourInDart({Key? key}) : super(key: key); @override State<ScrollingBehavi...
``` class HomePage extends StatefulWidget { const HomePage({Key? key}) : super(key: key); @override _HomePageState createState() => _HomePageState(); } class _HomePageState extends State<HomePage> with TickerProviderStateMixin { // this variable determnines whether the back-to-top button is shown or not boo...
1,562,438
The US census bureau uses a special encoding called “soundex” to locate information about a person. The soundex is an encoding of surnames (last names) based on the way a surname sounds rather than the way it is spelled. Surnames that sound the same, but are spelled differently, like SMITH and SMYTH, have the same code...
2009/10/13
[ "https://Stackoverflow.com/questions/1562438", "https://Stackoverflow.com", "https://Stackoverflow.com/users/-1/" ]
Without seeing any of the code, try these steps: 1. Comment out the entire event handler to see how fast it runs with nothing attached to it. 2. Uncomment lines one at a time to see which ones are causing the most problems. 3. Analyze those method calls. 4. ... 5. Profit!
You could try a couple of things. Get rid of the DoEvents inside of the ChangedEvent. Call the doevents inside of a seperate function after maybe a period of time (thread.sleep() ?). I know doevents does cause issues but I rarely use it.
1,562,438
The US census bureau uses a special encoding called “soundex” to locate information about a person. The soundex is an encoding of surnames (last names) based on the way a surname sounds rather than the way it is spelled. Surnames that sound the same, but are spelled differently, like SMITH and SMYTH, have the same code...
2009/10/13
[ "https://Stackoverflow.com/questions/1562438", "https://Stackoverflow.com", "https://Stackoverflow.com/users/-1/" ]
I also have the same problem. In my case, instead of calling DoEvents I'm updating a Crystal Report view. The only workaround I found is to update my view upon the CloseUp event instead of ValueChanged or TextChanged. Scott, how did you finally corrected your problem ?
Without seeing any of the code, try these steps: 1. Comment out the entire event handler to see how fast it runs with nothing attached to it. 2. Uncomment lines one at a time to see which ones are causing the most problems. 3. Analyze those method calls. 4. ... 5. Profit!
1,562,438
The US census bureau uses a special encoding called “soundex” to locate information about a person. The soundex is an encoding of surnames (last names) based on the way a surname sounds rather than the way it is spelled. Surnames that sound the same, but are spelled differently, like SMITH and SMYTH, have the same code...
2009/10/13
[ "https://Stackoverflow.com/questions/1562438", "https://Stackoverflow.com", "https://Stackoverflow.com/users/-1/" ]
The DateTimePicker ValueChanged event is buggy. Per Microsoft Windows Forms Team on this page <https://connect.microsoft.com/VisualStudio/feedback/details/1290685/debugging-datetimepicker-event-hangs-vs>: "The DateTimePicker control installs a mouse hook as part of its functionality, but when the debugger has the Win...
Without seeing any of the code, try these steps: 1. Comment out the entire event handler to see how fast it runs with nothing attached to it. 2. Uncomment lines one at a time to see which ones are causing the most problems. 3. Analyze those method calls. 4. ... 5. Profit!
1,562,438
The US census bureau uses a special encoding called “soundex” to locate information about a person. The soundex is an encoding of surnames (last names) based on the way a surname sounds rather than the way it is spelled. Surnames that sound the same, but are spelled differently, like SMITH and SMYTH, have the same code...
2009/10/13
[ "https://Stackoverflow.com/questions/1562438", "https://Stackoverflow.com", "https://Stackoverflow.com/users/-1/" ]
Without seeing any of the code, try these steps: 1. Comment out the entire event handler to see how fast it runs with nothing attached to it. 2. Uncomment lines one at a time to see which ones are causing the most problems. 3. Analyze those method calls. 4. ... 5. Profit!
event procedure `ValueChanged` : set parameter in `sender.tag` enableTimer and execute parameter using sender.tag **example:** ``` private void DateTimePicker_ValueChanged(object sender, EventArgs e) { DateTimePicker ThisSender = (DateTimePicker)sender; Timer.Tag = ThisSender.Name.ToString() + "="...
1,562,438
The US census bureau uses a special encoding called “soundex” to locate information about a person. The soundex is an encoding of surnames (last names) based on the way a surname sounds rather than the way it is spelled. Surnames that sound the same, but are spelled differently, like SMITH and SMYTH, have the same code...
2009/10/13
[ "https://Stackoverflow.com/questions/1562438", "https://Stackoverflow.com", "https://Stackoverflow.com/users/-1/" ]
I also have the same problem. In my case, instead of calling DoEvents I'm updating a Crystal Report view. The only workaround I found is to update my view upon the CloseUp event instead of ValueChanged or TextChanged. Scott, how did you finally corrected your problem ?
You could try a couple of things. Get rid of the DoEvents inside of the ChangedEvent. Call the doevents inside of a seperate function after maybe a period of time (thread.sleep() ?). I know doevents does cause issues but I rarely use it.
1,562,438
The US census bureau uses a special encoding called “soundex” to locate information about a person. The soundex is an encoding of surnames (last names) based on the way a surname sounds rather than the way it is spelled. Surnames that sound the same, but are spelled differently, like SMITH and SMYTH, have the same code...
2009/10/13
[ "https://Stackoverflow.com/questions/1562438", "https://Stackoverflow.com", "https://Stackoverflow.com/users/-1/" ]
The DateTimePicker ValueChanged event is buggy. Per Microsoft Windows Forms Team on this page <https://connect.microsoft.com/VisualStudio/feedback/details/1290685/debugging-datetimepicker-event-hangs-vs>: "The DateTimePicker control installs a mouse hook as part of its functionality, but when the debugger has the Win...
You could try a couple of things. Get rid of the DoEvents inside of the ChangedEvent. Call the doevents inside of a seperate function after maybe a period of time (thread.sleep() ?). I know doevents does cause issues but I rarely use it.
1,562,438
The US census bureau uses a special encoding called “soundex” to locate information about a person. The soundex is an encoding of surnames (last names) based on the way a surname sounds rather than the way it is spelled. Surnames that sound the same, but are spelled differently, like SMITH and SMYTH, have the same code...
2009/10/13
[ "https://Stackoverflow.com/questions/1562438", "https://Stackoverflow.com", "https://Stackoverflow.com/users/-1/" ]
I also have the same problem. In my case, instead of calling DoEvents I'm updating a Crystal Report view. The only workaround I found is to update my view upon the CloseUp event instead of ValueChanged or TextChanged. Scott, how did you finally corrected your problem ?
The DateTimePicker ValueChanged event is buggy. Per Microsoft Windows Forms Team on this page <https://connect.microsoft.com/VisualStudio/feedback/details/1290685/debugging-datetimepicker-event-hangs-vs>: "The DateTimePicker control installs a mouse hook as part of its functionality, but when the debugger has the Win...
1,562,438
The US census bureau uses a special encoding called “soundex” to locate information about a person. The soundex is an encoding of surnames (last names) based on the way a surname sounds rather than the way it is spelled. Surnames that sound the same, but are spelled differently, like SMITH and SMYTH, have the same code...
2009/10/13
[ "https://Stackoverflow.com/questions/1562438", "https://Stackoverflow.com", "https://Stackoverflow.com/users/-1/" ]
I also have the same problem. In my case, instead of calling DoEvents I'm updating a Crystal Report view. The only workaround I found is to update my view upon the CloseUp event instead of ValueChanged or TextChanged. Scott, how did you finally corrected your problem ?
event procedure `ValueChanged` : set parameter in `sender.tag` enableTimer and execute parameter using sender.tag **example:** ``` private void DateTimePicker_ValueChanged(object sender, EventArgs e) { DateTimePicker ThisSender = (DateTimePicker)sender; Timer.Tag = ThisSender.Name.ToString() + "="...
1,562,438
The US census bureau uses a special encoding called “soundex” to locate information about a person. The soundex is an encoding of surnames (last names) based on the way a surname sounds rather than the way it is spelled. Surnames that sound the same, but are spelled differently, like SMITH and SMYTH, have the same code...
2009/10/13
[ "https://Stackoverflow.com/questions/1562438", "https://Stackoverflow.com", "https://Stackoverflow.com/users/-1/" ]
The DateTimePicker ValueChanged event is buggy. Per Microsoft Windows Forms Team on this page <https://connect.microsoft.com/VisualStudio/feedback/details/1290685/debugging-datetimepicker-event-hangs-vs>: "The DateTimePicker control installs a mouse hook as part of its functionality, but when the debugger has the Win...
event procedure `ValueChanged` : set parameter in `sender.tag` enableTimer and execute parameter using sender.tag **example:** ``` private void DateTimePicker_ValueChanged(object sender, EventArgs e) { DateTimePicker ThisSender = (DateTimePicker)sender; Timer.Tag = ThisSender.Name.ToString() + "="...
7,829,478
I have a class with a private static method with an optional parameter. How do I invoke it from another class via Reflection? There is a similar [question](https://stackoverflow.com/questions/135443/how-do-i-use-reflection-to-invoke-a-private-method-in-c), but it does not address static method or optional parameters. ...
2011/10/19
[ "https://Stackoverflow.com/questions/7829478", "https://Stackoverflow.com", "https://Stackoverflow.com/users/9382/" ]
Optional parameter values in C# are compiled by injection those values at the callsite. I.e. even though your code is ``` Foo.Bar() ``` The compiler actually generates a call like ``` Foo.Bar("") ``` When finding the method you need to treat the optional parameters as regular parameters. ``` var method = typeof(...
Using this class ``` public class Foo { private static void Bar(string key = "undefined key", string value = "undefined value") { Console.WriteLine(string.Format("The key is '{0}'", key)); Console.WriteLine(string.Format("The value is '{0}'", value)); } } ``` You can use the following c...
7,829,478
I have a class with a private static method with an optional parameter. How do I invoke it from another class via Reflection? There is a similar [question](https://stackoverflow.com/questions/135443/how-do-i-use-reflection-to-invoke-a-private-method-in-c), but it does not address static method or optional parameters. ...
2011/10/19
[ "https://Stackoverflow.com/questions/7829478", "https://Stackoverflow.com", "https://Stackoverflow.com/users/9382/" ]
Optional parameter values in C# are compiled by injection those values at the callsite. I.e. even though your code is ``` Foo.Bar() ``` The compiler actually generates a call like ``` Foo.Bar("") ``` When finding the method you need to treat the optional parameters as regular parameters. ``` var method = typeof(...
Something i wrote for my unit tests: ``` /// <summary> /// Attempts to execute a function and provide the result value against the provided source object even if it is private and/or static. Just make sure to provide the correct BindingFlags to correctly identify the function. /// </summary> /// <typep...
7,829,478
I have a class with a private static method with an optional parameter. How do I invoke it from another class via Reflection? There is a similar [question](https://stackoverflow.com/questions/135443/how-do-i-use-reflection-to-invoke-a-private-method-in-c), but it does not address static method or optional parameters. ...
2011/10/19
[ "https://Stackoverflow.com/questions/7829478", "https://Stackoverflow.com", "https://Stackoverflow.com/users/9382/" ]
Using this class ``` public class Foo { private static void Bar(string key = "undefined key", string value = "undefined value") { Console.WriteLine(string.Format("The key is '{0}'", key)); Console.WriteLine(string.Format("The value is '{0}'", value)); } } ``` You can use the following c...
Something i wrote for my unit tests: ``` /// <summary> /// Attempts to execute a function and provide the result value against the provided source object even if it is private and/or static. Just make sure to provide the correct BindingFlags to correctly identify the function. /// </summary> /// <typep...
47,132,181
I'm using a custom control to create joined buttons that display like this: ``` ******************************************** * * * * * One * Two * Three * * * * * ******************************************** ``` When I c...
2017/11/06
[ "https://Stackoverflow.com/questions/47132181", "https://Stackoverflow.com", "https://Stackoverflow.com/users/975566/" ]
Have you had a chance to look at this [plugin](https://github.com/alexrainman/SegmentedControl) - it seems perfectly suited for what you are trying to achieve. For being able to programmatically select a segment - i.e. `SelectedSegment` - you need to implement this at renderer level, and have them translate this sele...
Why not just set margins in shared xaml? ``` <local:SegmentedControl ValueChanged="OnValueChanged" SelectedSegment="{Binding CustomPointsSwitch}" x:Name="segControl" HorizontalOptions="End"> <local:SegmentedControl.Children> <local:SegmentedControlOption Text="Two" Margin="8,0,8,0" /> <local:Segmented...
114,254
Just tried Safari (got advised to save battery power over Chrome) and the "Save As" button is disabled! Can't save a single page! Any idea why this happens and what I can do against it? Thanks! EDIT. Safari version 6.1, MacOS 10.8.5
2013/12/18
[ "https://apple.stackexchange.com/questions/114254", "https://apple.stackexchange.com", "https://apple.stackexchange.com/users/56300/" ]
Ok, I found it - it does not let me save page until it is fully loaded! Which is painfully slow sometimes, comparing to Chrome. As far as I can see, Chrome still lets me save page even if it is not complete and even when I just started loading it still works with previous page! So I can still save the previous page af...
I'm not sure on the *why* but if you use `Cmd`+`S`, the **Export** dialog pops up as expected (After that, **Save As...** is once again available. Until you reload the page). I think it's a bug in Safari (I base this on the fact that it's also possible to reactivate **Save As...** by mousing over it in the menu, closi...
16,200,731
I am using the chosen jquery plugin which turns a multi slect box into a facebook style selector. I am filling it with UK postcodes as well as displaying selected postcodes as well. As my PHP request is retrieving a lot of data from my postcode database the page obviously runs quite slow, but I want to be able to only...
2013/04/24
[ "https://Stackoverflow.com/questions/16200731", "https://Stackoverflow.com", "https://Stackoverflow.com/users/2224798/" ]
Try [mechanize-js](https://github.com/srveit/mechanize-js) - the name says it all...
The closest tool I have found for now is [zombie](https://github.com/assaf/zombie). Apparently it is not exactly ready for production (and may never be) as it is a testing tool. Nevertheless it seems that it is the closest match for the functionality needed (and it supports JS!)
16,200,731
I am using the chosen jquery plugin which turns a multi slect box into a facebook style selector. I am filling it with UK postcodes as well as displaying selected postcodes as well. As my PHP request is retrieving a lot of data from my postcode database the page obviously runs quite slow, but I want to be able to only...
2013/04/24
[ "https://Stackoverflow.com/questions/16200731", "https://Stackoverflow.com", "https://Stackoverflow.com/users/2224798/" ]
What you're looking for is a scriptable/headless browser. In decreasing order of popularity, the options are: * [Google Puppeteer](https://github.com/GoogleChrome/puppeteer) - "Node library which provides a high-level API to control Chrome or Chromium" * [Zombie](https://github.com/assaf/zombie) - more lightweight; "I...
The closest tool I have found for now is [zombie](https://github.com/assaf/zombie). Apparently it is not exactly ready for production (and may never be) as it is a testing tool. Nevertheless it seems that it is the closest match for the functionality needed (and it supports JS!)
16,200,731
I am using the chosen jquery plugin which turns a multi slect box into a facebook style selector. I am filling it with UK postcodes as well as displaying selected postcodes as well. As my PHP request is retrieving a lot of data from my postcode database the page obviously runs quite slow, but I want to be able to only...
2013/04/24
[ "https://Stackoverflow.com/questions/16200731", "https://Stackoverflow.com", "https://Stackoverflow.com/users/2224798/" ]
What you're looking for is a scriptable/headless browser. In decreasing order of popularity, the options are: * [Google Puppeteer](https://github.com/GoogleChrome/puppeteer) - "Node library which provides a high-level API to control Chrome or Chromium" * [Zombie](https://github.com/assaf/zombie) - more lightweight; "I...
Try [mechanize-js](https://github.com/srveit/mechanize-js) - the name says it all...
16,200,731
I am using the chosen jquery plugin which turns a multi slect box into a facebook style selector. I am filling it with UK postcodes as well as displaying selected postcodes as well. As my PHP request is retrieving a lot of data from my postcode database the page obviously runs quite slow, but I want to be able to only...
2013/04/24
[ "https://Stackoverflow.com/questions/16200731", "https://Stackoverflow.com", "https://Stackoverflow.com/users/2224798/" ]
Try [mechanize-js](https://github.com/srveit/mechanize-js) - the name says it all...
you can embed perl script in node.js use: > > npm install exec\_perl > > > see: <https://github.com/tlqtangok/exec_perl>
16,200,731
I am using the chosen jquery plugin which turns a multi slect box into a facebook style selector. I am filling it with UK postcodes as well as displaying selected postcodes as well. As my PHP request is retrieving a lot of data from my postcode database the page obviously runs quite slow, but I want to be able to only...
2013/04/24
[ "https://Stackoverflow.com/questions/16200731", "https://Stackoverflow.com", "https://Stackoverflow.com/users/2224798/" ]
What you're looking for is a scriptable/headless browser. In decreasing order of popularity, the options are: * [Google Puppeteer](https://github.com/GoogleChrome/puppeteer) - "Node library which provides a high-level API to control Chrome or Chromium" * [Zombie](https://github.com/assaf/zombie) - more lightweight; "I...
you can embed perl script in node.js use: > > npm install exec\_perl > > > see: <https://github.com/tlqtangok/exec_perl>
11,785,720
So this is as much a theoretical question as a language-specific one, but consider this: I need PHP to execute a rather system-intensive process (using PHP `exec();`) that will be running in the background, but then when a user leaves that specific page, the process will be killed. I quickly realized that a dead man...
2012/08/02
[ "https://Stackoverflow.com/questions/11785720", "https://Stackoverflow.com", "https://Stackoverflow.com/users/1228754/" ]
Javascript is a lot easier, and about as safe (that is, not much). Just write a javascript ping function that, once every 10 seconds, posts something to ping.php (via ajax). This ping.php would log when the last ping was received in the user session (say in `$_SESSION['last_ping']`) You can check for user activity fr...
Implement a heartbeat in JS. If it stops for more than a certain time then kill the subprocess: * js sends a request * php/python start the subprocess in a background and return pid to js * js pings php/python with given pid * php/python signals the subprocess corresponding to pid via IPC e.g., by sending SIGUSR1 * if...
44,064,764
I need to get the ip address of client using my application in the request of hapijs node... we are using pm2 and Nginx for server to run live and we have used the request.info.address but it gives the server local ip as 127.0.0.1 but what i need was the client's IP who uses my application eg: 192.x.x.111 ...
2017/05/19
[ "https://Stackoverflow.com/questions/44064764", "https://Stackoverflow.com", "https://Stackoverflow.com/users/5018485/" ]
I always get client IP address with this function :) ``` return request.headers['x-forwarded-for'] || request.connection.remoteAddress || request.socket.remoteAddress || request.connection.socket.remoteAddress; ``` Hope it helps.
I'm running the same stack for my hapi apps with nginx and PM2. Proxying requests through nginx to a node app on the same host will always result in `127.0.0.1` for the remote address, because nginx forwards the request on the same host. **Solution:** there's a dedicated plugin [hapi-geo-locate](https://github.com/fs-...
44,064,764
I need to get the ip address of client using my application in the request of hapijs node... we are using pm2 and Nginx for server to run live and we have used the request.info.address but it gives the server local ip as 127.0.0.1 but what i need was the client's IP who uses my application eg: 192.x.x.111 ...
2017/05/19
[ "https://Stackoverflow.com/questions/44064764", "https://Stackoverflow.com", "https://Stackoverflow.com/users/5018485/" ]
In case if you are running the server behind a Nginx proxy server you would have to use ``` req.headers['x-real-ip'] ``` else you can use ``` req.info.remoteAddress ```
I'm running the same stack for my hapi apps with nginx and PM2. Proxying requests through nginx to a node app on the same host will always result in `127.0.0.1` for the remote address, because nginx forwards the request on the same host. **Solution:** there's a dedicated plugin [hapi-geo-locate](https://github.com/fs-...
44,064,764
I need to get the ip address of client using my application in the request of hapijs node... we are using pm2 and Nginx for server to run live and we have used the request.info.address but it gives the server local ip as 127.0.0.1 but what i need was the client's IP who uses my application eg: 192.x.x.111 ...
2017/05/19
[ "https://Stackoverflow.com/questions/44064764", "https://Stackoverflow.com", "https://Stackoverflow.com/users/5018485/" ]
You should check the configuration on the reverse proxy (nginx) and see if you are sending the ip and how you're doing it. For example (nginx conf): ``` server { listen 0.0.0.0:80; server_name [your_domain]; root /webroot/[your_domain or webapp name]; access_log /var/log/nginx/[your_domain or ...
I'm running the same stack for my hapi apps with nginx and PM2. Proxying requests through nginx to a node app on the same host will always result in `127.0.0.1` for the remote address, because nginx forwards the request on the same host. **Solution:** there's a dedicated plugin [hapi-geo-locate](https://github.com/fs-...
59,481,404
The footer space stands in the middle of the page at the inside pages and in the mobile and desktop view. Please refer to the inside pages. site: <http://psikologecealbayrak.com> ``` /* 10.0 ===== Footer ===== */ /* -- "Footer" section (These are the styles for the Footer section) -- */ .site-footer { ...
2019/12/25
[ "https://Stackoverflow.com/questions/59481404", "https://Stackoverflow.com", "https://Stackoverflow.com/users/9291233/" ]
You could try positioning the footer on the bottom of the page with absolute position. Add this to your css ``` body{ padding-bottom: 60px; } .site-footer{ position: absolute; bottom: 0; } ```
Try this ``` footer{ position: absolute; right: 0; bottom:0; left:0; background-color: black; color: #fff; padding:10px; font-size:16px; text-align: center; margin-top:0px ; } body { position: relative; min-height: 100vh; } ```
54,920,804
I use xgboost to train a classification model. GridCVSearch gives the best max\_depth=1. This means all my hundreds of trees are split at a single node. Does this mean that the problem/dataset that I work with is separable using simple models and I don't need to use complicated model such as xgboost? In general, if...
2019/02/28
[ "https://Stackoverflow.com/questions/54920804", "https://Stackoverflow.com", "https://Stackoverflow.com/users/1500645/" ]
You arrive at ADABoost not even close to regular decision trees ADABoost: Each tree has a depth of 1(weak learners) Its about the your features not necessarily model, if you have few features then it does not make sense to go so deep in each tree
If Depth is 1 means you arrived with a regular decision tree and losts the advantage of XGBOOST.
1,042,259
T is an bounded linear operator on a Banach space, X, and I'm given that it's adjoint $T'$ is invertible, I'm trying to show: $||Tx|| \ge \frac{||x||}{||(T')^{-1}||}$. I feel like this should be simple but I'm finding it very frustrating! My ideas so far: $T'$ is invertible so we have that for any $x \in X$, $(T')^{-1...
2014/11/28
[ "https://math.stackexchange.com/questions/1042259", "https://math.stackexchange.com", "https://math.stackexchange.com/users/78481/" ]
Fix $x\in X$. If $f\in X'$ then $|f(x)|=|[(T')^{-1}T'f](x)|=|(T')^{-1}f(Tx)|\leq\|(T')^{-1}\|\|f\|\|Tx\|$. Hence $$\|Tx\|\geq\frac{|f(x)|}{\|f\|}\cdot\frac1{\|(T')^{-1}\|}.$$ By a corollary to the Hahn-Banach theorem, there exists $f\in X'$ with $\|f\|=1$ and $f(x)=\|x\|$, completing the proof. This method manages to a...
Since $T'$ is invertible, $\operatorname{spec}(T')=\operatorname{spec}(T)$ is bounded away from zero, and we can define: $$\lambda^- = \min\_{\lambda\in\operatorname{spec}(T)}|\lambda|.$$ Obviously we have: $$ \| T x\| \geq \lambda^{-}\|x\|,$$ hence it is sufficient to check that: $$ \lambda^{-} = \frac{1}{\|T'^{-1}\|}...