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
336,920
I built this computer back in June and this has been an issue ever since I first built it. What happens is that my computer will POST just fine and then go to the black screen where it states "Loading Windows". Usually it sits there for a second and then it the pulsing Windows logo will appear, and after a few seconds,...
2011/09/18
[ "https://superuser.com/questions/336920", "https://superuser.com", "https://superuser.com/users/33595/" ]
You may have already tried this but, as no one else has suggested it... Disable **ALL** overclocking features and next update **ALL** the drivers you can - never use the versions that come on disk and take a look at the AMD website and your motherboard company. As it is happening at such an early stage, I believe th...
One of my external USB hard drives apparently was failing. Some weeks ago I found I couldn't access it anymore, so I had to run `chkdsk`, and about 1/3 of the drive was bad sectors. I believe that Windows may have been hanging because it was running into them while scanning the drive at boot. Since recovering the data ...
4,615,401
Consider the following statement: > > The king of France is bald. > > > We know that France does not currently have a king, so what is the truth value of this statement? If it is true, then its negation must be false, so the king of France is **not** bald is false, But when France does not have a king, does it ma...
2023/01/10
[ "https://math.stackexchange.com/questions/4615401", "https://math.stackexchange.com", "https://math.stackexchange.com/users/1010242/" ]
Insofar as this is not just a question about linguistics, the way this sort of issue is handled in mathematics is that to even use the word "the" to refer to a mathematical object is to make an implicit claim that that object both exists and is unique, e.g. when we speak of "*the* cyclic group of order $n$" and so fort...
(Updated screenshot from proof checker) [![enter image description here](https://i.stack.imgur.com/vUyI7.png)](https://i.stack.imgur.com/vUyI7.png) [![enter image description here](https://i.stack.imgur.com/6FKEd.png)](https://i.stack.imgur.com/6FKEd.png)
1,852,655
I don't know when it is and when it is not okay to simply take the anti-derivative of a square root function when I'm trying to find the integral. Could someone explain to me when and when it is not appropriate? (Examples below of what I mean since my question sounds a bit unclear) Example 1: $\int x^{1/2}~dx = \frac{...
2016/07/08
[ "https://math.stackexchange.com/questions/1852655", "https://math.stackexchange.com", "https://math.stackexchange.com/users/352770/" ]
The main difference between your two groups of examples is that in the first two, the stuff under the square root is just a linear polynomial; in the second two, it has more complicated functions. When you have higher polynomials under the square roots, regular substitution won't suffice (even though it did in your sec...
If you think about these exercises in terms of substitutions, perhaps it will be clearer. For example 2, if you set $u = 2x+1$, then $du = 2\,dx$, or $dx = \frac{1}{2}\,du$, so that $$\int (2x+1)^{1/2}\,dx = \frac{1}{2}\int u^{1/2}\,du = \frac{1}{3}u^{3/2}+C = \frac{1}{3}(2x+1)^{3/2}+C.$$ But try that with example 3: i...
486,632
Is inequality $$\Big (1+\frac{1}{k(k+1)}\Big )^k \geq 1+\frac{1}{k+1}$$ is true for all $k \in \mathbb{N}$ ? I am proving this using binomial theorem on the right side but I don't know what to do in the middle since there are many terms and there is an exponent of $k$. Is there a better way to prove this one? Thanks. I...
2013/09/07
[ "https://math.stackexchange.com/questions/486632", "https://math.stackexchange.com", "https://math.stackexchange.com/users/20067/" ]
$$ \left(1+\frac{1}{k(k+1)}\right)^k=\sum\_{i=0}^k{k\choose i}\frac{1}{(k(k+1))^i}=1+\frac{1}{k+1}+\text{ something nonnegative} \ge 1+\frac{1}{k+1}. $$
**Hint** Bernoulli inequality and see Calvin`s comment...... You need the stronger version of Bernoulli, namely the one which says "*with equality if and only if...*"
486,632
Is inequality $$\Big (1+\frac{1}{k(k+1)}\Big )^k \geq 1+\frac{1}{k+1}$$ is true for all $k \in \mathbb{N}$ ? I am proving this using binomial theorem on the right side but I don't know what to do in the middle since there are many terms and there is an exponent of $k$. Is there a better way to prove this one? Thanks. I...
2013/09/07
[ "https://math.stackexchange.com/questions/486632", "https://math.stackexchange.com", "https://math.stackexchange.com/users/20067/" ]
$$ \left(1+\frac{1}{k(k+1)}\right)^k=\sum\_{i=0}^k{k\choose i}\frac{1}{(k(k+1))^i}=1+\frac{1}{k+1}+\text{ something nonnegative} \ge 1+\frac{1}{k+1}. $$
First, note that $$f(x)=\left(1+\frac{1}{x}\right)^x$$ is a strictly increasing function on $(0,+\infty)$, by taking its derivative, which is $$\frac{(1+1/x)^x(-1+(1+x)\ln (1+1/x))}{1+x}$$ Hence, $f(k(k+1))>f(k+1)$. Now, take the $(k+1)$-th root of each side and you're done.
4,549
A few years ago, Peter Schiff and a few other Austrians (not all Austrians, as Mish was stating the opposite) were adamant about hyperinflation and Paul Krugman stated that it was like talking about fire problems during a flood, which made sense because of the credit crunch (the inverse problem). However, Schiff kept p...
2015/02/26
[ "https://economics.stackexchange.com/questions/4549", "https://economics.stackexchange.com", "https://economics.stackexchange.com/users/2746/" ]
To address the first part of your question: > > "By July 10, Germany's free gold reserve had fallen to the equivalent of £35 million pounds, and all the Bank was doing had produced precisely the effect it was hoped to avoid. Another loss of 50 million gold marks was suffered during the week which ended on July 14 — t...
It´s an historical side note at this point, but it´s not entirely clear that the Weimar authorities fully understood what they were kicking off. The first public acknowledgement of the multiplier problem in the banking system - that is the way changes to reserve holdings could multiply the amount of money in deposit a...
15,827,649
![enter image description here](https://i.stack.imgur.com/vXHw9.jpg) ``` <div id="div1"> <label class="someClass1">Price 1</label> <label class="someClass1">Price 2</label> <label class="someClass1">Price 3</label> <label class="someClass1">Price 4</label> </div> <div id="div2"> <input type="te...
2013/04/05
[ "https://Stackoverflow.com/questions/15827649", "https://Stackoverflow.com", "https://Stackoverflow.com/users/1158189/" ]
**Short answer**, try this CSS ``` #div1 label.someClass1 { display: inline-block; margin: 0 5px; } #div1 label.someClass1, #div2 input.someClass2 { width: 100px; } #div2 input.someClass2 { margin: 0 0 0 10px; } ``` --- **Long answer**, to make the exact look you pictured in your question, use HTML5 placeholder att...
To get the divs on same row with inputs below them, use below css ``` #div1 label { display: inline-block; } #div1 label, #div2 input { width: 100px; } ``` Check Demo here <http://jsfiddle.net/2wdUT/>
15,827,649
![enter image description here](https://i.stack.imgur.com/vXHw9.jpg) ``` <div id="div1"> <label class="someClass1">Price 1</label> <label class="someClass1">Price 2</label> <label class="someClass1">Price 3</label> <label class="someClass1">Price 4</label> </div> <div id="div2"> <input type="te...
2013/04/05
[ "https://Stackoverflow.com/questions/15827649", "https://Stackoverflow.com", "https://Stackoverflow.com/users/1158189/" ]
**Short answer**, try this CSS ``` #div1 label.someClass1 { display: inline-block; margin: 0 5px; } #div1 label.someClass1, #div2 input.someClass2 { width: 100px; } #div2 input.someClass2 { margin: 0 0 0 10px; } ``` --- **Long answer**, to make the exact look you pictured in your question, use HTML5 placeholder att...
Without css you can achieve it by using such an HTML structure - ``` <div id="div1"> <label class="someClass1">Price 1</label> <div><input type="text" class="someClass2"/></div> </div> <div id="div2"> <label class="someClass1">Price 2</label> <div><input type="text" class="someClas...
15,827,649
![enter image description here](https://i.stack.imgur.com/vXHw9.jpg) ``` <div id="div1"> <label class="someClass1">Price 1</label> <label class="someClass1">Price 2</label> <label class="someClass1">Price 3</label> <label class="someClass1">Price 4</label> </div> <div id="div2"> <input type="te...
2013/04/05
[ "https://Stackoverflow.com/questions/15827649", "https://Stackoverflow.com", "https://Stackoverflow.com/users/1158189/" ]
To get the divs on same row with inputs below them, use below css ``` #div1 label { display: inline-block; } #div1 label, #div2 input { width: 100px; } ``` Check Demo here <http://jsfiddle.net/2wdUT/>
Without css you can achieve it by using such an HTML structure - ``` <div id="div1"> <label class="someClass1">Price 1</label> <div><input type="text" class="someClass2"/></div> </div> <div id="div2"> <label class="someClass1">Price 2</label> <div><input type="text" class="someClas...
20,462,487
I have been struggling with the scanner class. I just can't seem to rap my head around it's methods. I'm trying to run set of code which seems right to me. I've tried a few tweaks but still nothing. Any hints of why i am receiving this error > > "Exception in thread "main" java.util.InputMismatchException at > java...
2013/12/09
[ "https://Stackoverflow.com/questions/20462487", "https://Stackoverflow.com", "https://Stackoverflow.com/users/2628581/" ]
Why dont you you create a Class that holds the Statement, the count and handles all the addBatching plus other miscellaneous activities. ``` class BatchPreparedStatementHolder { private int batchCount; private PreparedStatement ps; public BatchPreparedStatementHolder(PreparedStatement statement){ ...
The class suggestion is pretty good but a little heavy weight if you just need something simple. I would use something like a **HashMap**. (other languages call these "dictionaries"). I don't have time to read all your code, but it looks like you may be using Maps? Anyways, you could make the key the auto-incremented ...
20,462,487
I have been struggling with the scanner class. I just can't seem to rap my head around it's methods. I'm trying to run set of code which seems right to me. I've tried a few tweaks but still nothing. Any hints of why i am receiving this error > > "Exception in thread "main" java.util.InputMismatchException at > java...
2013/12/09
[ "https://Stackoverflow.com/questions/20462487", "https://Stackoverflow.com", "https://Stackoverflow.com/users/2628581/" ]
Why dont you you create a Class that holds the Statement, the count and handles all the addBatching plus other miscellaneous activities. ``` class BatchPreparedStatementHolder { private int batchCount; private PreparedStatement ps; public BatchPreparedStatementHolder(PreparedStatement statement){ ...
Rather than keeping the Map.Entry in the map you can keep the nested class .. which will be easy to handle.. something like that .. ``` class Transaction implements AutoCloseable { private final Connection conn; class MapValue { PreparedStatement p; int index ;...
23,708,320
In my project I have JSP pages that should print PDF documents
2014/05/17
[ "https://Stackoverflow.com/questions/23708320", "https://Stackoverflow.com", "https://Stackoverflow.com/users/2293345/" ]
The method `add` should return boolean value, so all what you need to do is ``` public boolean add(MyObject newvalue) { boolean retVal = super.add(newvalue); Result = Double.NaN; return retVal ; } ```
This is a good example as to when [composition over inheritance](http://en.wikipedia.org/wiki/Composition_over_inheritance) really makes sense for code design. Your class will become cluttered with unnecessary operations, when it only really needs to have an instance of a `List` of some kind floating around. It also me...
14,496,615
I have a test database with 1 table having some 50 million records. The table initially had 50 columns. The table has no indexes. When I execute the "sp\_spaceused" procedure I get "24733.88 MB" as result. Now to reduce the size of this database, I remove 15 columns (mostly int columns) and run the "sp\_spaceused", I s...
2013/01/24
[ "https://Stackoverflow.com/questions/14496615", "https://Stackoverflow.com", "https://Stackoverflow.com/users/419556/" ]
Try running the following command: ``` DBCC CLEANTABLE ('dbname', 'yourTable', 0) ``` It will free space from dropped variable-length columns in tables or indexed views. More information here [DBCC CLEANTABLE](http://msdn.microsoft.com/en-us/library/ms174418.aspx) and here [Space used does not get changed after drop...
The database size will not shrink simply because you have deleted objects. The database server usually holds the reclaimed space to be used for subsequent data inserts or new objects. To reclaim the space freed, you have to shrink the database file. See [How do I shrink my SQL Server Database?](https://stackoverflow.c...
14,496,615
I have a test database with 1 table having some 50 million records. The table initially had 50 columns. The table has no indexes. When I execute the "sp\_spaceused" procedure I get "24733.88 MB" as result. Now to reduce the size of this database, I remove 15 columns (mostly int columns) and run the "sp\_spaceused", I s...
2013/01/24
[ "https://Stackoverflow.com/questions/14496615", "https://Stackoverflow.com", "https://Stackoverflow.com/users/419556/" ]
When any variable length column is dropped from table, it does not reduce the size of table. Table size stays the same till Indexes are reorganized or rebuild. There is also DBCC command DBCC CLEANTABLE, which can be used to reclaim any space previously occupied with variable length columns. Here is the syntax: ``` ...
The database size will not shrink simply because you have deleted objects. The database server usually holds the reclaimed space to be used for subsequent data inserts or new objects. To reclaim the space freed, you have to shrink the database file. See [How do I shrink my SQL Server Database?](https://stackoverflow.c...
14,496,615
I have a test database with 1 table having some 50 million records. The table initially had 50 columns. The table has no indexes. When I execute the "sp\_spaceused" procedure I get "24733.88 MB" as result. Now to reduce the size of this database, I remove 15 columns (mostly int columns) and run the "sp\_spaceused", I s...
2013/01/24
[ "https://Stackoverflow.com/questions/14496615", "https://Stackoverflow.com", "https://Stackoverflow.com/users/419556/" ]
Try running the following command: ``` DBCC CLEANTABLE ('dbname', 'yourTable', 0) ``` It will free space from dropped variable-length columns in tables or indexed views. More information here [DBCC CLEANTABLE](http://msdn.microsoft.com/en-us/library/ms174418.aspx) and here [Space used does not get changed after drop...
When any variable length column is dropped from table, it does not reduce the size of table. Table size stays the same till Indexes are reorganized or rebuild. There is also DBCC command DBCC CLEANTABLE, which can be used to reclaim any space previously occupied with variable length columns. Here is the syntax: ``` ...
39,229,347
So I used the default Registration Form Laravel. Made copy of the Registration Form to make a slightly different one. Basically there is two sign up forms 1. Starter - original 2. Bronze - Copy **--My Routing List--** ``` Auth::routes(); Route::get('/register', function(){ return View::make('auth.register'); })...
2016/08/30
[ "https://Stackoverflow.com/questions/39229347", "https://Stackoverflow.com", "https://Stackoverflow.com/users/6099413/" ]
Change your routes like this: ``` const appRoutes: Routes = [ { path: '', redirectTo: HomeComponent, pathMatch: 'full'}, //(redirectTo or component) {path:'intro',component: IntroComponent}, {path:'login',component: LoginComponent}, {path:'register', component: RegisterComponent} ]; ``` the default `pathMatch` strat...
This happens because initial navigation is not completed when calling `this.router.navigate(['/intro'])` from `ngOnInit`. There are two ways to solve this: **Solution #1** In `app.module.ts` you disable initial navigation ``` RouterModule.forRoot(appRoutes, { initialNavigation: false }) ``` Ref: [router.navigate...
49,554,222
Examples for implementing the directive's `link` method in typescript use as the fourth parameter instance of `ng.INgModelController` ``` public link($scope: ng.IScope, el: JQuery, attrs: ng.IAttributes, ngModel: ng.INgModelController) ``` but this does not compile for me (I have the latest angularjs.TypeScript.Defi...
2018/03/29
[ "https://Stackoverflow.com/questions/49554222", "https://Stackoverflow.com", "https://Stackoverflow.com/users/1882699/" ]
Since [INgModelController](https://github.com/DefinitelyTyped/DefinitelyTyped/blob/628cbd69e1213d8b3f83950e2034e790b37d206a/types/angular/index.d.ts#L382) doesn't extend [IController](https://github.com/DefinitelyTyped/DefinitelyTyped/blob/628cbd69e1213d8b3f83950e2034e790b37d206a/types/angular/index.d.ts#L1862) and isn...
Do you have @types declarations installed ? For example, in `"@types/angular": "^1.6.43"`, in `IController` type you will find the next options: ``` // IController implementations frequently do not implement any of its methods. // A string indexer indicates to TypeScript not to issue a weak type error in this case. [s...
46,038
I want to be able to get a drop-down list of partial matches to Elisp function names (installed or those already defined in the buffer) as shown in the screen-shot below from the YouTube video: <https://youtu.be/QaX3AaK3_Lk?t=332> How do I achieve this? Is there a standard library for this? [![enter image descripti...
2018/11/16
[ "https://emacs.stackexchange.com/questions/46038", "https://emacs.stackexchange.com", "https://emacs.stackexchange.com/users/10896/" ]
I'd like to recommend the package [company-mode](http://company-mode.github.io). I found it easier to setup and config. For beginners, using the following configuration will enable the autocomplete out of box. ``` (use-package company :ensure t :config (progn (add-hook 'after-init-hook 'global-company-mode))...
Without using external packages you can get autocompletion visible in minibuffer. Add this to config: ``` (setq tab-always-indent 'complete) ```
53,017,518
Here is the simplified form of my intention: [Sketch](http://sketch.paperjs.org/#S/nZRNb9swDIb/CuFD4wCG4KbJxUAu63UFhnXADnEOik0namzJkOW0RZH/PsqWP1NsQwXkQyRFPXxJ+8OTvEAv8p7PaJKTF3iJSu3+wjW8wRYkvsIPbk7su5Dof8QSaGVaFRHs7sMwAPraB63ZKDKuZsbKaHXGR5UrHcFCY7qYOH6L1JwiWIWxvC5j+cZ4mj7jsUBp/N0D5aLPnhyxtESpMmOmR6GTvKdK6AzSJbu1RXgYE...
2018/10/26
[ "https://Stackoverflow.com/questions/53017518", "https://Stackoverflow.com", "https://Stackoverflow.com/users/1952991/" ]
I came up with "trial and error" approach: [Full example](https://github.com/ceremcem/paperjs-collision-test/blob/master/demo.js) ```js // Returns item.position at the moment of collision // and the collided object. function collisionTest(item, curr){ var prev = item.position; var point = curr.clone(); var...
You can use [`Path.getIntersections()`](http://paperjs.org/reference/path/#getintersections-path) or [`Path.intersects()`](http://paperjs.org/reference/path/#intersects-item).
53,017,518
Here is the simplified form of my intention: [Sketch](http://sketch.paperjs.org/#S/nZRNb9swDIb/CuFD4wCG4KbJxUAu63UFhnXADnEOik0namzJkOW0RZH/PsqWP1NsQwXkQyRFPXxJ+8OTvEAv8p7PaJKTF3iJSu3+wjW8wRYkvsIPbk7su5Dof8QSaGVaFRHs7sMwAPraB63ZKDKuZsbKaHXGR5UrHcFCY7qYOH6L1JwiWIWxvC5j+cZ4mj7jsUBp/N0D5aLPnhyxtESpMmOmR6GTvKdK6AzSJbu1RXgYE...
2018/10/26
[ "https://Stackoverflow.com/questions/53017518", "https://Stackoverflow.com", "https://Stackoverflow.com/users/1952991/" ]
You can use [`Path.getIntersections()`](http://paperjs.org/reference/path/#getintersections-path) or [`Path.intersects()`](http://paperjs.org/reference/path/#intersects-item).
Instead of attempting to find the direct intersections, you can instead find the [*nearest point*](http://paperjs.org/reference/path/#getnearestpoint-point) on the path from the position of the moving dot. If the distance between the dot and that nearest point drops below a threshold (equal to the `strokeWidth` of the...
53,017,518
Here is the simplified form of my intention: [Sketch](http://sketch.paperjs.org/#S/nZRNb9swDIb/CuFD4wCG4KbJxUAu63UFhnXADnEOik0namzJkOW0RZH/PsqWP1NsQwXkQyRFPXxJ+8OTvEAv8p7PaJKTF3iJSu3+wjW8wRYkvsIPbk7su5Dof8QSaGVaFRHs7sMwAPraB63ZKDKuZsbKaHXGR5UrHcFCY7qYOH6L1JwiWIWxvC5j+cZ4mj7jsUBp/N0D5aLPnhyxtESpMmOmR6GTvKdK6AzSJbu1RXgYE...
2018/10/26
[ "https://Stackoverflow.com/questions/53017518", "https://Stackoverflow.com", "https://Stackoverflow.com/users/1952991/" ]
I came up with "trial and error" approach: [Full example](https://github.com/ceremcem/paperjs-collision-test/blob/master/demo.js) ```js // Returns item.position at the moment of collision // and the collided object. function collisionTest(item, curr){ var prev = item.position; var point = curr.clone(); var...
Instead of attempting to find the direct intersections, you can instead find the [*nearest point*](http://paperjs.org/reference/path/#getnearestpoint-point) on the path from the position of the moving dot. If the distance between the dot and that nearest point drops below a threshold (equal to the `strokeWidth` of the...
22,730,033
I want to make the logo at the bottom of the picture so it will look like a watermarked picture with a logo. Now the problem is that the absolute position is going outside the border and goes to the bottom of the page. I'm quite sure that a small tweak can change the picture here (double meaning). The jsFiddle : <h...
2014/03/29
[ "https://Stackoverflow.com/questions/22730033", "https://Stackoverflow.com", "https://Stackoverflow.com/users/3447293/" ]
If a GPIO isn't working on a PIC then it is often because one of the peripherals is using it. Many of the pins are multi purpose and if one of the peripherals is using it then it will not work as a GPIO. The data sheet has this for the pin on the pinout diagram (for the PDIP20 package, double check for whichever pack...
I just ran into this problem with a PIC24FV32KA301. The list of peripherals on this pin for my device is almost exactly the same as yours, namely: PGEC3/SOSCO/SCLKI/U2CTS/CN0/RA4 The problem was in the SOSCSRC fuse of the FOSCSEL configuration word, which switches between, according to the data sheet: "analog crystal...
22,730,033
I want to make the logo at the bottom of the picture so it will look like a watermarked picture with a logo. Now the problem is that the absolute position is going outside the border and goes to the bottom of the page. I'm quite sure that a small tweak can change the picture here (double meaning). The jsFiddle : <h...
2014/03/29
[ "https://Stackoverflow.com/questions/22730033", "https://Stackoverflow.com", "https://Stackoverflow.com/users/3447293/" ]
If a GPIO isn't working on a PIC then it is often because one of the peripherals is using it. Many of the pins are multi purpose and if one of the peripherals is using it then it will not work as a GPIO. The data sheet has this for the pin on the pinout diagram (for the PDIP20 package, double check for whichever pack...
This is because probably Second Oscillator (SOSC) is enabled, you can disable it from bit SOSCEN in OSCCON register; the code would be: OSCCONbits.SOSCEN = 0; Then you can configure your pin as output with TRIS register as usual...
22,730,033
I want to make the logo at the bottom of the picture so it will look like a watermarked picture with a logo. Now the problem is that the absolute position is going outside the border and goes to the bottom of the page. I'm quite sure that a small tweak can change the picture here (double meaning). The jsFiddle : <h...
2014/03/29
[ "https://Stackoverflow.com/questions/22730033", "https://Stackoverflow.com", "https://Stackoverflow.com/users/3447293/" ]
If a GPIO isn't working on a PIC then it is often because one of the peripherals is using it. Many of the pins are multi purpose and if one of the peripherals is using it then it will not work as a GPIO. The data sheet has this for the pin on the pinout diagram (for the PDIP20 package, double check for whichever pack...
Note the SOSC pins might be general purpose input pins (if not used as secondary oscillator), so you might not be able to use it as output pin
592,161
My internet connection is working fine, but when I go to <http://www.google.com/> in Internet Explorer I get the following error: ``` No site configured at this address ``` Cutting and pasting the exact address into another browser gets to the site just fine. How can I get this working again in IE?
2013/05/06
[ "https://superuser.com/questions/592161", "https://superuser.com", "https://superuser.com/users/105147/" ]
Using IE's Developer Tools, delete the cache for the specific domain like so: 1. Open Internet Explorer 10 2. Press `F12` (or click the settings gear icon in the upper-right corner and click "F12 developer tools") 3. Press `Ctrl` + `D` (or in the menu bar that appears on the lower portion of the screen, click Cache ->...
First off I'd try setting your internet's settings to default, that normally fixes these kind of problems. If that doesn't work, try installing Firefox or Chrome then uninstalling IE then using Chrome or Firefox re-install IE. If that doesn't work it might be as simple as clearing the browser cache or deleting cook...
592,161
My internet connection is working fine, but when I go to <http://www.google.com/> in Internet Explorer I get the following error: ``` No site configured at this address ``` Cutting and pasting the exact address into another browser gets to the site just fine. How can I get this working again in IE?
2013/05/06
[ "https://superuser.com/questions/592161", "https://superuser.com", "https://superuser.com/users/105147/" ]
Using IE's Developer Tools, delete the cache for the specific domain like so: 1. Open Internet Explorer 10 2. Press `F12` (or click the settings gear icon in the upper-right corner and click "F12 developer tools") 3. Press `Ctrl` + `D` (or in the menu bar that appears on the lower portion of the screen, click Cache ->...
Try Settings ->Internet Options -> Advanced (TAB) -> Reset...(button) And Settings ->Internet Options -> Advanced (TAB) -> Restore advanced settings
592,161
My internet connection is working fine, but when I go to <http://www.google.com/> in Internet Explorer I get the following error: ``` No site configured at this address ``` Cutting and pasting the exact address into another browser gets to the site just fine. How can I get this working again in IE?
2013/05/06
[ "https://superuser.com/questions/592161", "https://superuser.com", "https://superuser.com/users/105147/" ]
Using IE's Developer Tools, delete the cache for the specific domain like so: 1. Open Internet Explorer 10 2. Press `F12` (or click the settings gear icon in the upper-right corner and click "F12 developer tools") 3. Press `Ctrl` + `D` (or in the menu bar that appears on the lower portion of the screen, click Cache ->...
I have experienced this issue. Click `Tools` and click `Delete Browsing History`. Then it should open.
592,161
My internet connection is working fine, but when I go to <http://www.google.com/> in Internet Explorer I get the following error: ``` No site configured at this address ``` Cutting and pasting the exact address into another browser gets to the site just fine. How can I get this working again in IE?
2013/05/06
[ "https://superuser.com/questions/592161", "https://superuser.com", "https://superuser.com/users/105147/" ]
Using IE's Developer Tools, delete the cache for the specific domain like so: 1. Open Internet Explorer 10 2. Press `F12` (or click the settings gear icon in the upper-right corner and click "F12 developer tools") 3. Press `Ctrl` + `D` (or in the menu bar that appears on the lower portion of the screen, click Cache ->...
I had the same problem recently. The only change that occurred was that Microsoft had upgraded Windows Internet Explorer to version 10. My internet banking website was also affected. I tried clearing caches, deleting cookies and explorer history to no avail. In desperation I uninstalled Windows Internet Explorer 10 and...
69,477
I create PDF files from my Adobe Illustrator files by saving as. I would prefer it to create the pdf file and retain the AI file but sometimes it converts the ai file to a pdf. Not all the time, only sometimes. Why is this? Is there a way to create PDF files without having it convert your current artboard to a PDF file...
2016/04/05
[ "https://graphicdesign.stackexchange.com/questions/69477", "https://graphicdesign.stackexchange.com", "https://graphicdesign.stackexchange.com/users/64031/" ]
When you Save As, it may "replace" your file in Illustrator but your original file will still exist (and you can open it back up). So if your file is AI and you save as PDF the AI file will still exist. You can always use "Save A Copy..." instead if you prefer to keep the original open while saving the other format. ...
You may need to save/name it in different format one for viewing .pdf type & another for editing .ai type. Hope this helps. Thanks
73,143,890
I have reviews ,users and airlines this is how to association is set up ``` class Airline < ApplicationRecord has_many :reviews has_many :users,through: :reviews end class Review < ApplicationRecord belongs_to :user belongs_to :airline end class User < ApplicationRecord has_secure_password has_m...
2022/07/27
[ "https://Stackoverflow.com/questions/73143890", "https://Stackoverflow.com", "https://Stackoverflow.com/users/-1/" ]
It seems you just need to create the review: ``` u = User.find_by(name: 'Max') a = Airline.find_by(name: 'Poop Airlines') r = Review.create(review: 'This airline smells.', user: u, airline: a) ```
I think you are on the right track. Since a review is created by a user for an airline, a review needs both user\_id and airline\_id. In your code you have grabbed the user, now get the airline for which you want to create a record and then create a review ``` u1=User.find_by_name("Max") a1 = Airline.find_by_name("Ai...
27,764,249
Given a sample formula `'y=2x+1`' we can get y when we know x with a defined '`function`', for example in python ``` def y(x): return 2*x + 1 x : 1 2 3 4 5 ... y : 3 5 7 9 11 ... ``` Can I do it reversed? Given data samples and get the approximate formula? ``` x : 1.001 ...
2015/01/04
[ "https://Stackoverflow.com/questions/27764249", "https://Stackoverflow.com", "https://Stackoverflow.com/users/353374/" ]
To make sure I understood your question, you want to retrieve the equation of the line that fits your data, right? In case this is your question, you can use `polyfit` from the package `numpy`. ``` import numpy as np x = [1.001, 2.12, 3.1, 4.001, 5.021] y = [3.002, 5.23, 7.2, 9.002, 11.32] np.polyfit(x, y, 1) ``` ...
Probably you need NumPy and SciPy packages. For example, see `Linear Regression` docs for SciPy: <http://docs.scipy.org/doc/scipy-0.14.0/reference/generated/scipy.stats.linregress.html>
27,764,249
Given a sample formula `'y=2x+1`' we can get y when we know x with a defined '`function`', for example in python ``` def y(x): return 2*x + 1 x : 1 2 3 4 5 ... y : 3 5 7 9 11 ... ``` Can I do it reversed? Given data samples and get the approximate formula? ``` x : 1.001 ...
2015/01/04
[ "https://Stackoverflow.com/questions/27764249", "https://Stackoverflow.com", "https://Stackoverflow.com/users/353374/" ]
Here i would say the problem looks more like [polynomial interpolation](http://en.wikipedia.org/wiki/Polynomial_interpolation) In python you have many libs dealing with that, for example high level [scipy.interpolate](http://docs.scipy.org/doc/scipy-0.14.0/reference/interpolate.html) or you can do it "by hand" like [th...
Probably you need NumPy and SciPy packages. For example, see `Linear Regression` docs for SciPy: <http://docs.scipy.org/doc/scipy-0.14.0/reference/generated/scipy.stats.linregress.html>
27,764,249
Given a sample formula `'y=2x+1`' we can get y when we know x with a defined '`function`', for example in python ``` def y(x): return 2*x + 1 x : 1 2 3 4 5 ... y : 3 5 7 9 11 ... ``` Can I do it reversed? Given data samples and get the approximate formula? ``` x : 1.001 ...
2015/01/04
[ "https://Stackoverflow.com/questions/27764249", "https://Stackoverflow.com", "https://Stackoverflow.com/users/353374/" ]
Here i would say the problem looks more like [polynomial interpolation](http://en.wikipedia.org/wiki/Polynomial_interpolation) In python you have many libs dealing with that, for example high level [scipy.interpolate](http://docs.scipy.org/doc/scipy-0.14.0/reference/interpolate.html) or you can do it "by hand" like [th...
To make sure I understood your question, you want to retrieve the equation of the line that fits your data, right? In case this is your question, you can use `polyfit` from the package `numpy`. ``` import numpy as np x = [1.001, 2.12, 3.1, 4.001, 5.021] y = [3.002, 5.23, 7.2, 9.002, 11.32] np.polyfit(x, y, 1) ``` ...
1,168,905
**Theorem:** $$\lim\_{x \to a} f(x) = L$$ $$\lim\_{x \to a} g(x) = M$$ Then: $$\lim\_{x \to a} f(x) g(x) = LM$$ Obviously, $$|f(x) - L| < \epsilon$$ $$|g(x) - M| < \epsilon$$ But multiplying these together doesnt get the desired: $$|f(x)g(x) - LM| < \epsilon$$ **Please, HINTS only!**
2015/02/28
[ "https://math.stackexchange.com/questions/1168905", "https://math.stackexchange.com", "https://math.stackexchange.com/users/178248/" ]
Hint: $$\begin{align}|f(x)g(x)-LM|&=|f(x)g(x)-Lg(x)+Lg(x)-LM|\\&=|g(x)(f(x)-L)+L(g(x)-M)|\\&\le|g(x)||f(x)-L|+|L||g(x)-M|\end{align}$$
Prove it for the special case where the two functions are infinitesimal as $x\to a$ that is $\lim\_{x\to a}f(x)=0$ Prove the theorem for such special functions then deduce the theorem.
1,168,905
**Theorem:** $$\lim\_{x \to a} f(x) = L$$ $$\lim\_{x \to a} g(x) = M$$ Then: $$\lim\_{x \to a} f(x) g(x) = LM$$ Obviously, $$|f(x) - L| < \epsilon$$ $$|g(x) - M| < \epsilon$$ But multiplying these together doesnt get the desired: $$|f(x)g(x) - LM| < \epsilon$$ **Please, HINTS only!**
2015/02/28
[ "https://math.stackexchange.com/questions/1168905", "https://math.stackexchange.com", "https://math.stackexchange.com/users/178248/" ]
Hint: $$\begin{align}|f(x)g(x)-LM|&=|f(x)g(x)-Lg(x)+Lg(x)-LM|\\&=|g(x)(f(x)-L)+L(g(x)-M)|\\&\le|g(x)||f(x)-L|+|L||g(x)-M|\end{align}$$
**Theorem 1:** Denote $f(x)=L+\alpha(x)$. $$\lim\_{x\to a}f(x)=L\iff \lim\_{x\to a}\alpha(x)=0$$ **Proof 1:** Denote $f(x)=L+\alpha(x)$. $$\lim\_{x\to a}f(x)=L\iff \forall\epsilon >0(\exists\delta>0(0<|x-a|<\delta\implies |f(x)-L|<\epsilon)$$ $$\iff \forall\epsilon >0(\exists\delta>0(0<|x-a|<\delta\implies |\alph...
11,529
I would like to change the image next to the search box to a styled input button. Do I need to create a new delegate control to do this? Can I do this with css, if so how? This is the standard search UI ![enter image description here](https://i.stack.imgur.com/bRp3m.jpg) This is the desired css button look ![e...
2011/04/20
[ "https://sharepoint.stackexchange.com/questions/11529", "https://sharepoint.stackexchange.com", "https://sharepoint.stackexchange.com/users/3083/" ]
You can either replace the `DelegateControl` (if you have farm access) <http://msdn.microsoft.com/en-us/library/ms463169.aspx> ``` <asp:ContentPlaceHolder id="PlaceHolderSearchArea" runat="server"> <SharePoint:DelegateControl runat="server" ControlId="SmallSearchInputBox" Version="4"/> </asp:ContentPlaceHolder> ...
I don't think this quite answered the original question. The author asked how to change the OOB image and script click event, with a styled INPUT TYPE=BUTTON. The options/suggestions given relied on simply changing the image and not the actual markup rendered by the SearchBoxEx control (which is the underlying SP serv...
11,529
I would like to change the image next to the search box to a styled input button. Do I need to create a new delegate control to do this? Can I do this with css, if so how? This is the standard search UI ![enter image description here](https://i.stack.imgur.com/bRp3m.jpg) This is the desired css button look ![e...
2011/04/20
[ "https://sharepoint.stackexchange.com/questions/11529", "https://sharepoint.stackexchange.com", "https://sharepoint.stackexchange.com/users/3083/" ]
``` /*Search Box Styles*/ .s4-search input.ms-sbplain{margin-top:5px!important; background:url(../images/search_left.png) no-repeat; border:0 none !important; height:16px; padding:4px 2px 2px 9px; color:#666; font-size:.85em; font-style:normal;} .s4-search .ms-sbgo{padding-top:5px;} .s4-search .ms-sbgo a{margin-top:5px...
Just throwing this into the discussion... Erik Swenson did 2 great blog posts regarding how to change the way the OOTB search box looks like: <http://erikswenson.blogspot.com/2011/02/sharepoint-2010-large-search-box-scopes.html> and <http://erikswenson.blogspot.com/2011/02/sharepoint-2010-large-search-box.html> Seems t...
11,529
I would like to change the image next to the search box to a styled input button. Do I need to create a new delegate control to do this? Can I do this with css, if so how? This is the standard search UI ![enter image description here](https://i.stack.imgur.com/bRp3m.jpg) This is the desired css button look ![e...
2011/04/20
[ "https://sharepoint.stackexchange.com/questions/11529", "https://sharepoint.stackexchange.com", "https://sharepoint.stackexchange.com/users/3083/" ]
The image is rendered using an tag which you cannot modify using just CSS. You could either * A - Use some jQuery to modify the HTML for the searchbox. You can target the srch-gosearchimg CSS class to modify the image tag and point it to another source image. * B - Use a delegate control to replace the entire searchbo...
You can either replace the `DelegateControl` (if you have farm access) <http://msdn.microsoft.com/en-us/library/ms463169.aspx> ``` <asp:ContentPlaceHolder id="PlaceHolderSearchArea" runat="server"> <SharePoint:DelegateControl runat="server" ControlId="SmallSearchInputBox" Version="4"/> </asp:ContentPlaceHolder> ...
11,529
I would like to change the image next to the search box to a styled input button. Do I need to create a new delegate control to do this? Can I do this with css, if so how? This is the standard search UI ![enter image description here](https://i.stack.imgur.com/bRp3m.jpg) This is the desired css button look ![e...
2011/04/20
[ "https://sharepoint.stackexchange.com/questions/11529", "https://sharepoint.stackexchange.com", "https://sharepoint.stackexchange.com/users/3083/" ]
You can either replace the `DelegateControl` (if you have farm access) <http://msdn.microsoft.com/en-us/library/ms463169.aspx> ``` <asp:ContentPlaceHolder id="PlaceHolderSearchArea" runat="server"> <SharePoint:DelegateControl runat="server" ControlId="SmallSearchInputBox" Version="4"/> </asp:ContentPlaceHolder> ...
Just throwing this into the discussion... Erik Swenson did 2 great blog posts regarding how to change the way the OOTB search box looks like: <http://erikswenson.blogspot.com/2011/02/sharepoint-2010-large-search-box-scopes.html> and <http://erikswenson.blogspot.com/2011/02/sharepoint-2010-large-search-box.html> Seems t...
11,529
I would like to change the image next to the search box to a styled input button. Do I need to create a new delegate control to do this? Can I do this with css, if so how? This is the standard search UI ![enter image description here](https://i.stack.imgur.com/bRp3m.jpg) This is the desired css button look ![e...
2011/04/20
[ "https://sharepoint.stackexchange.com/questions/11529", "https://sharepoint.stackexchange.com", "https://sharepoint.stackexchange.com/users/3083/" ]
``` /*Search Box Styles*/ .s4-search input.ms-sbplain{margin-top:5px!important; background:url(../images/search_left.png) no-repeat; border:0 none !important; height:16px; padding:4px 2px 2px 9px; color:#666; font-size:.85em; font-style:normal;} .s4-search .ms-sbgo{padding-top:5px;} .s4-search .ms-sbgo a{margin-top:5px...
I don't think this quite answered the original question. The author asked how to change the OOB image and script click event, with a styled INPUT TYPE=BUTTON. The options/suggestions given relied on simply changing the image and not the actual markup rendered by the SearchBoxEx control (which is the underlying SP serv...
11,529
I would like to change the image next to the search box to a styled input button. Do I need to create a new delegate control to do this? Can I do this with css, if so how? This is the standard search UI ![enter image description here](https://i.stack.imgur.com/bRp3m.jpg) This is the desired css button look ![e...
2011/04/20
[ "https://sharepoint.stackexchange.com/questions/11529", "https://sharepoint.stackexchange.com", "https://sharepoint.stackexchange.com/users/3083/" ]
The image is rendered using an tag which you cannot modify using just CSS. You could either * A - Use some jQuery to modify the HTML for the searchbox. You can target the srch-gosearchimg CSS class to modify the image tag and point it to another source image. * B - Use a delegate control to replace the entire searchbo...
I don't think this quite answered the original question. The author asked how to change the OOB image and script click event, with a styled INPUT TYPE=BUTTON. The options/suggestions given relied on simply changing the image and not the actual markup rendered by the SearchBoxEx control (which is the underlying SP serv...
11,529
I would like to change the image next to the search box to a styled input button. Do I need to create a new delegate control to do this? Can I do this with css, if so how? This is the standard search UI ![enter image description here](https://i.stack.imgur.com/bRp3m.jpg) This is the desired css button look ![e...
2011/04/20
[ "https://sharepoint.stackexchange.com/questions/11529", "https://sharepoint.stackexchange.com", "https://sharepoint.stackexchange.com/users/3083/" ]
The image is rendered using an tag which you cannot modify using just CSS. You could either * A - Use some jQuery to modify the HTML for the searchbox. You can target the srch-gosearchimg CSS class to modify the image tag and point it to another source image. * B - Use a delegate control to replace the entire searchbo...
Just throwing this into the discussion... Erik Swenson did 2 great blog posts regarding how to change the way the OOTB search box looks like: <http://erikswenson.blogspot.com/2011/02/sharepoint-2010-large-search-box-scopes.html> and <http://erikswenson.blogspot.com/2011/02/sharepoint-2010-large-search-box.html> Seems t...
11,529
I would like to change the image next to the search box to a styled input button. Do I need to create a new delegate control to do this? Can I do this with css, if so how? This is the standard search UI ![enter image description here](https://i.stack.imgur.com/bRp3m.jpg) This is the desired css button look ![e...
2011/04/20
[ "https://sharepoint.stackexchange.com/questions/11529", "https://sharepoint.stackexchange.com", "https://sharepoint.stackexchange.com/users/3083/" ]
``` /*Search Box Styles*/ .s4-search input.ms-sbplain{margin-top:5px!important; background:url(../images/search_left.png) no-repeat; border:0 none !important; height:16px; padding:4px 2px 2px 9px; color:#666; font-size:.85em; font-style:normal;} .s4-search .ms-sbgo{padding-top:5px;} .s4-search .ms-sbgo a{margin-top:5px...
You can simple modify these CSS class and IDs to bring changes to your SharePoint 2013 Search Textbox. you can modify it according to your needs:![enter image description here](https://i.stack.imgur.com/XOaRw.png) ``` /*######################--Sharepoint 2013 Search Box--############################*/ #searchInputBo...
11,529
I would like to change the image next to the search box to a styled input button. Do I need to create a new delegate control to do this? Can I do this with css, if so how? This is the standard search UI ![enter image description here](https://i.stack.imgur.com/bRp3m.jpg) This is the desired css button look ![e...
2011/04/20
[ "https://sharepoint.stackexchange.com/questions/11529", "https://sharepoint.stackexchange.com", "https://sharepoint.stackexchange.com/users/3083/" ]
The image is rendered using an tag which you cannot modify using just CSS. You could either * A - Use some jQuery to modify the HTML for the searchbox. You can target the srch-gosearchimg CSS class to modify the image tag and point it to another source image. * B - Use a delegate control to replace the entire searchbo...
You can simple modify these CSS class and IDs to bring changes to your SharePoint 2013 Search Textbox. you can modify it according to your needs:![enter image description here](https://i.stack.imgur.com/XOaRw.png) ``` /*######################--Sharepoint 2013 Search Box--############################*/ #searchInputBo...
11,529
I would like to change the image next to the search box to a styled input button. Do I need to create a new delegate control to do this? Can I do this with css, if so how? This is the standard search UI ![enter image description here](https://i.stack.imgur.com/bRp3m.jpg) This is the desired css button look ![e...
2011/04/20
[ "https://sharepoint.stackexchange.com/questions/11529", "https://sharepoint.stackexchange.com", "https://sharepoint.stackexchange.com/users/3083/" ]
You can either replace the `DelegateControl` (if you have farm access) <http://msdn.microsoft.com/en-us/library/ms463169.aspx> ``` <asp:ContentPlaceHolder id="PlaceHolderSearchArea" runat="server"> <SharePoint:DelegateControl runat="server" ControlId="SmallSearchInputBox" Version="4"/> </asp:ContentPlaceHolder> ...
``` /*Search Box Styles*/ .s4-search input.ms-sbplain{margin-top:5px!important; background:url(../images/search_left.png) no-repeat; border:0 none !important; height:16px; padding:4px 2px 2px 9px; color:#666; font-size:.85em; font-style:normal;} .s4-search .ms-sbgo{padding-top:5px;} .s4-search .ms-sbgo a{margin-top:5px...
2,388,772
> > Find the incentre of the triangle in the $xy-$plane whose sides are given > by the lines $x = 0, y = 0$ and $x/3 + y/4 = 1$ > > > I was trying this question many times but i could not get the solution. From my point of view, my incentre coordinate $(0+3+0/3 ,4+0+)/3) =(1,4/3)$ I don't know whether my answer ...
2017/08/10
[ "https://math.stackexchange.com/questions/2388772", "https://math.stackexchange.com", "https://math.stackexchange.com/users/557708/" ]
Let $A(3,0)$, $B(0,4)$ and $O(0,0)$. Now, let the incircle touches to $OA$, $OB$ and $AB$ in the points $K$, $M$ and $N$ respectively. Also, let $r$ be a radius of the incircle and $D$ be a center of the the incircle. Thus, easy to see that $DMOK$ is square with side-length $r$ and $AK=AN$, $BM=BN$. Now, since $A...
It is well know that in triangle with some angle $90^{\circ}$ and sides $a,b,c$ and $r$ as radius of incircle we have $$r = {a+b-c\over 2}$$ if $c$ is hypotenuse. Thus $r = 1$ and so $(1,1)$ is the answer.
2,388,772
> > Find the incentre of the triangle in the $xy-$plane whose sides are given > by the lines $x = 0, y = 0$ and $x/3 + y/4 = 1$ > > > I was trying this question many times but i could not get the solution. From my point of view, my incentre coordinate $(0+3+0/3 ,4+0+)/3) =(1,4/3)$ I don't know whether my answer ...
2017/08/10
[ "https://math.stackexchange.com/questions/2388772", "https://math.stackexchange.com", "https://math.stackexchange.com/users/557708/" ]
It is well know that in triangle with some angle $90^{\circ}$ and sides $a,b,c$ and $r$ as radius of incircle we have $$r = {a+b-c\over 2}$$ if $c$ is hypotenuse. Thus $r = 1$ and so $(1,1)$ is the answer.
The inradius of a right triangle with side lengths $3,4,5$ clearly is $1$, from $(a+b+c)r=2\Delta$. Since the incenter has to lie on the $x=y$ line, it is located at $\color{blue}{I\left(1,1\right)}$.
2,388,772
> > Find the incentre of the triangle in the $xy-$plane whose sides are given > by the lines $x = 0, y = 0$ and $x/3 + y/4 = 1$ > > > I was trying this question many times but i could not get the solution. From my point of view, my incentre coordinate $(0+3+0/3 ,4+0+)/3) =(1,4/3)$ I don't know whether my answer ...
2017/08/10
[ "https://math.stackexchange.com/questions/2388772", "https://math.stackexchange.com", "https://math.stackexchange.com/users/557708/" ]
Let $A(3,0)$, $B(0,4)$ and $O(0,0)$. Now, let the incircle touches to $OA$, $OB$ and $AB$ in the points $K$, $M$ and $N$ respectively. Also, let $r$ be a radius of the incircle and $D$ be a center of the the incircle. Thus, easy to see that $DMOK$ is square with side-length $r$ and $AK=AN$, $BM=BN$. Now, since $A...
Hint: with the vertices at $(0,0), (0,4), (3,0)$ the incentre must lie on the bisector of the angle at the origin i.e. $x=y$. The inradius $r$ satisfies area of triangle $=rs$ where $s$ is half the sum of the sides. To see this connect the incentre to the three vertices, and drop perpendiculars to each of the sides. T...
2,388,772
> > Find the incentre of the triangle in the $xy-$plane whose sides are given > by the lines $x = 0, y = 0$ and $x/3 + y/4 = 1$ > > > I was trying this question many times but i could not get the solution. From my point of view, my incentre coordinate $(0+3+0/3 ,4+0+)/3) =(1,4/3)$ I don't know whether my answer ...
2017/08/10
[ "https://math.stackexchange.com/questions/2388772", "https://math.stackexchange.com", "https://math.stackexchange.com/users/557708/" ]
Hint: with the vertices at $(0,0), (0,4), (3,0)$ the incentre must lie on the bisector of the angle at the origin i.e. $x=y$. The inradius $r$ satisfies area of triangle $=rs$ where $s$ is half the sum of the sides. To see this connect the incentre to the three vertices, and drop perpendiculars to each of the sides. T...
The inradius of a right triangle with side lengths $3,4,5$ clearly is $1$, from $(a+b+c)r=2\Delta$. Since the incenter has to lie on the $x=y$ line, it is located at $\color{blue}{I\left(1,1\right)}$.
2,388,772
> > Find the incentre of the triangle in the $xy-$plane whose sides are given > by the lines $x = 0, y = 0$ and $x/3 + y/4 = 1$ > > > I was trying this question many times but i could not get the solution. From my point of view, my incentre coordinate $(0+3+0/3 ,4+0+)/3) =(1,4/3)$ I don't know whether my answer ...
2017/08/10
[ "https://math.stackexchange.com/questions/2388772", "https://math.stackexchange.com", "https://math.stackexchange.com/users/557708/" ]
Let $A(3,0)$, $B(0,4)$ and $O(0,0)$. Now, let the incircle touches to $OA$, $OB$ and $AB$ in the points $K$, $M$ and $N$ respectively. Also, let $r$ be a radius of the incircle and $D$ be a center of the the incircle. Thus, easy to see that $DMOK$ is square with side-length $r$ and $AK=AN$, $BM=BN$. Now, since $A...
The bisector of the right angle is $y=x$ A point of this bisector has coordinates $P(t;\;t)$ its distance from the angle sides is $|t|$ This distance must be equal to the distance from the line $x/3+y/4=1$ The formula of the distance $d$ from a point $(x\_P;\;y\_P)$ to a line $ax+by+c=0$ is $$d=\dfrac{\left|ax\_p+by...
2,388,772
> > Find the incentre of the triangle in the $xy-$plane whose sides are given > by the lines $x = 0, y = 0$ and $x/3 + y/4 = 1$ > > > I was trying this question many times but i could not get the solution. From my point of view, my incentre coordinate $(0+3+0/3 ,4+0+)/3) =(1,4/3)$ I don't know whether my answer ...
2017/08/10
[ "https://math.stackexchange.com/questions/2388772", "https://math.stackexchange.com", "https://math.stackexchange.com/users/557708/" ]
The bisector of the right angle is $y=x$ A point of this bisector has coordinates $P(t;\;t)$ its distance from the angle sides is $|t|$ This distance must be equal to the distance from the line $x/3+y/4=1$ The formula of the distance $d$ from a point $(x\_P;\;y\_P)$ to a line $ax+by+c=0$ is $$d=\dfrac{\left|ax\_p+by...
The inradius of a right triangle with side lengths $3,4,5$ clearly is $1$, from $(a+b+c)r=2\Delta$. Since the incenter has to lie on the $x=y$ line, it is located at $\color{blue}{I\left(1,1\right)}$.
2,388,772
> > Find the incentre of the triangle in the $xy-$plane whose sides are given > by the lines $x = 0, y = 0$ and $x/3 + y/4 = 1$ > > > I was trying this question many times but i could not get the solution. From my point of view, my incentre coordinate $(0+3+0/3 ,4+0+)/3) =(1,4/3)$ I don't know whether my answer ...
2017/08/10
[ "https://math.stackexchange.com/questions/2388772", "https://math.stackexchange.com", "https://math.stackexchange.com/users/557708/" ]
Let $A(3,0)$, $B(0,4)$ and $O(0,0)$. Now, let the incircle touches to $OA$, $OB$ and $AB$ in the points $K$, $M$ and $N$ respectively. Also, let $r$ be a radius of the incircle and $D$ be a center of the the incircle. Thus, easy to see that $DMOK$ is square with side-length $r$ and $AK=AN$, $BM=BN$. Now, since $A...
The inradius of a right triangle with side lengths $3,4,5$ clearly is $1$, from $(a+b+c)r=2\Delta$. Since the incenter has to lie on the $x=y$ line, it is located at $\color{blue}{I\left(1,1\right)}$.
47,861,287
I am trying to create a "add to string if condition" is met function, here's my actual code: ``` if ( ! function_exists( '_s_posted_on' ) ) : function _s_posted_on( $params = array() ) { $output = 's'; /** Holds the string of the code output by the arguments. */ if ( in_array('time', $params) ) ...
2017/12/18
[ "https://Stackoverflow.com/questions/47861287", "https://Stackoverflow.com", "https://Stackoverflow.com/users/9111477/" ]
You can try multiple `ifs` with flag for `else` ``` $flag = false; if (string_exists_in_params($string, $params)): add_to_my_string --> $string2; $flag = true; if (string_exists_in_params($string1, $params)): add_to_string --> $string1; $flag = true; if (string_exists_in_params($string2, $params)): ...
`elseif` means, if the previous condition did not pass, and this permission do pass, then do it. It sounds like you just want to have multiple `if` statements after one another, which is completely normal and fine to do. So you can do ``` if($a == true) { // Execute this if $a is true. } if($b == true) { // Exec...
47,861,287
I am trying to create a "add to string if condition" is met function, here's my actual code: ``` if ( ! function_exists( '_s_posted_on' ) ) : function _s_posted_on( $params = array() ) { $output = 's'; /** Holds the string of the code output by the arguments. */ if ( in_array('time', $params) ) ...
2017/12/18
[ "https://Stackoverflow.com/questions/47861287", "https://Stackoverflow.com", "https://Stackoverflow.com/users/9111477/" ]
`elseif` means, if the previous condition did not pass, and this permission do pass, then do it. It sounds like you just want to have multiple `if` statements after one another, which is completely normal and fine to do. So you can do ``` if($a == true) { // Execute this if $a is true. } if($b == true) { // Exec...
Suggested Code: ``` if(!function_exists('_s_posted_on')){ function _s_posted_on($params=array()){ $params=array_intersect(array('time','author','category'),$params); // filter and sort if(empty($params)){ // this provides a shortcut whereby NO additional conditions or function calls are require...
47,861,287
I am trying to create a "add to string if condition" is met function, here's my actual code: ``` if ( ! function_exists( '_s_posted_on' ) ) : function _s_posted_on( $params = array() ) { $output = 's'; /** Holds the string of the code output by the arguments. */ if ( in_array('time', $params) ) ...
2017/12/18
[ "https://Stackoverflow.com/questions/47861287", "https://Stackoverflow.com", "https://Stackoverflow.com/users/9111477/" ]
You can try multiple `ifs` with flag for `else` ``` $flag = false; if (string_exists_in_params($string, $params)): add_to_my_string --> $string2; $flag = true; if (string_exists_in_params($string1, $params)): add_to_string --> $string1; $flag = true; if (string_exists_in_params($string2, $params)): ...
Suggested Code: ``` if(!function_exists('_s_posted_on')){ function _s_posted_on($params=array()){ $params=array_intersect(array('time','author','category'),$params); // filter and sort if(empty($params)){ // this provides a shortcut whereby NO additional conditions or function calls are require...
378,109
How do I check for remaining days of Remote Desktop Services grace period if the server is also a Domain Controller (so I cannot logon as local admin)?
2012/04/10
[ "https://serverfault.com/questions/378109", "https://serverfault.com", "https://serverfault.com/users/41450/" ]
I've discovered this is an error due to PLESK (and the user), and because there isn't much documentation on it, I think this post is worth keeping. Because I had the vhost domain of the email address I was sending to established in PLESK, it tried to revert to a local Postfix search when it recognized the tail end of ...
> > Apr 10 10:26:29 ######### postfix-local[8331]: postfix-local: > from=my.valid.email@myserver.com, to=name@company.com, > dirname=/var/qmail/mailnames Apr 10 10:26:29 ######### > postfix-local[8331]: cannot chdir to mailname dir name: No such file > or directory Apr 10 10:26:29 ######### postfix-local[8331]: U...
378,109
How do I check for remaining days of Remote Desktop Services grace period if the server is also a Domain Controller (so I cannot logon as local admin)?
2012/04/10
[ "https://serverfault.com/questions/378109", "https://serverfault.com", "https://serverfault.com/users/41450/" ]
I've discovered this is an error due to PLESK (and the user), and because there isn't much documentation on it, I think this post is worth keeping. Because I had the vhost domain of the email address I was sending to established in PLESK, it tried to revert to a local Postfix search when it recognized the tail end of ...
I had this issue too. Any email being sent to my company domain was being sent locally. This is (I believe) because in Plesk (yes it's a Plesk issue). So basically it's going oh soandso@company.com is the registered user lets send any @company.com emails locally or something like that. Anyway, I have had to fix thi...
22,640
Does anyone make a single fiber cwdm 10g sfp or xfp that will do 10g over a single fiber using a single 1510nm wavelength?
2015/09/18
[ "https://networkengineering.stackexchange.com/questions/22640", "https://networkengineering.stackexchange.com", "https://networkengineering.stackexchange.com/users/19145/" ]
Single fiber **and** single wavelength are **fundamentally incompatible.** You either need two fibers (send at each end connected to receive at the other end) and one wavelength is fine, or you need two different wavelengths so that data can travel both ways over the same fiber without conflict. 10Gb does not include...
As Ecnerwal states, you can't transmit signal with the same wavelength in both directions. I'm pretty sure you know how one-eyed SFPs work, but here (<http://www.cisco.com/c/en/us/products/collateral/interfaces-modules/transceiver-modules/data_sheet_c78-455693.pdf>) you can find a diagram explaining it on page 3. If...
22,640
Does anyone make a single fiber cwdm 10g sfp or xfp that will do 10g over a single fiber using a single 1510nm wavelength?
2015/09/18
[ "https://networkengineering.stackexchange.com/questions/22640", "https://networkengineering.stackexchange.com", "https://networkengineering.stackexchange.com/users/19145/" ]
Single fiber **and** single wavelength are **fundamentally incompatible.** You either need two fibers (send at each end connected to receive at the other end) and one wavelength is fine, or you need two different wavelengths so that data can travel both ways over the same fiber without conflict. 10Gb does not include...
Single Fiber, Single Wavelength,CWDM Transceivers have been commercially available for years, some with built-in Micro-OTDR Fast Fiber Fault Finder technology, but so far only for 1 Gbps to 3 Gbps applications.
22,640
Does anyone make a single fiber cwdm 10g sfp or xfp that will do 10g over a single fiber using a single 1510nm wavelength?
2015/09/18
[ "https://networkengineering.stackexchange.com/questions/22640", "https://networkengineering.stackexchange.com", "https://networkengineering.stackexchange.com/users/19145/" ]
Single fiber **and** single wavelength are **fundamentally incompatible.** You either need two fibers (send at each end connected to receive at the other end) and one wavelength is fine, or you need two different wavelengths so that data can travel both ways over the same fiber without conflict. 10Gb does not include...
They're called BiDi optical transceivers. [I see some](http://connect.physicsworld.com/sfp-plus-10gsrlrmlrerzrcwdmdwdmbidi-transceivers/2003609.article) 1270nm / 1330nm Bi-Directional 40km Single Mode but I don't see any 1510nm. ### [Cisco SFP-10G-BX40D-I and SFP-10G-BX40U-I (for 40Km Single-Fiber Bidirectional Applic...
22,640
Does anyone make a single fiber cwdm 10g sfp or xfp that will do 10g over a single fiber using a single 1510nm wavelength?
2015/09/18
[ "https://networkengineering.stackexchange.com/questions/22640", "https://networkengineering.stackexchange.com", "https://networkengineering.stackexchange.com/users/19145/" ]
They're called BiDi optical transceivers. [I see some](http://connect.physicsworld.com/sfp-plus-10gsrlrmlrerzrcwdmdwdmbidi-transceivers/2003609.article) 1270nm / 1330nm Bi-Directional 40km Single Mode but I don't see any 1510nm. ### [Cisco SFP-10G-BX40D-I and SFP-10G-BX40U-I (for 40Km Single-Fiber Bidirectional Applic...
As Ecnerwal states, you can't transmit signal with the same wavelength in both directions. I'm pretty sure you know how one-eyed SFPs work, but here (<http://www.cisco.com/c/en/us/products/collateral/interfaces-modules/transceiver-modules/data_sheet_c78-455693.pdf>) you can find a diagram explaining it on page 3. If...
22,640
Does anyone make a single fiber cwdm 10g sfp or xfp that will do 10g over a single fiber using a single 1510nm wavelength?
2015/09/18
[ "https://networkengineering.stackexchange.com/questions/22640", "https://networkengineering.stackexchange.com", "https://networkengineering.stackexchange.com/users/19145/" ]
They're called BiDi optical transceivers. [I see some](http://connect.physicsworld.com/sfp-plus-10gsrlrmlrerzrcwdmdwdmbidi-transceivers/2003609.article) 1270nm / 1330nm Bi-Directional 40km Single Mode but I don't see any 1510nm. ### [Cisco SFP-10G-BX40D-I and SFP-10G-BX40U-I (for 40Km Single-Fiber Bidirectional Applic...
Single Fiber, Single Wavelength,CWDM Transceivers have been commercially available for years, some with built-in Micro-OTDR Fast Fiber Fault Finder technology, but so far only for 1 Gbps to 3 Gbps applications.
5,230,747
I have a jTable which currently displays and allows editing of a database table, I am now trying to sort adding tuples. I am trying to get it to automatically add a row on downarrow at the bottom. So if I am at the bottom on the table and click my down arrow a new row will appear below. I just can't figure out how to...
2011/03/08
[ "https://Stackoverflow.com/questions/5230747", "https://Stackoverflow.com", "https://Stackoverflow.com/users/513546/" ]
Action handling of `JTable` happens in `javax.swing.plaf.basic.BasicTableUI`. In your case, you probably need to register a new action for `SCROLL_DOWN_CHANGE_SELECTION`. In the action, check whether the current selection == last row of the table. If that doesn't work, set a breakpoint in `javax.swing.plaf.basic.Basic...
You'll need to create a KeyListener and add this to your table: ``` public void keyReleased(KeyEvent e) { int keyCode = e.getKeyCode(); if (keyCode == KeyEvent.VK_DOWN) // check if selected table row = last row and if so: add new row to table model } ``` greetz, Stijn
5,230,747
I have a jTable which currently displays and allows editing of a database table, I am now trying to sort adding tuples. I am trying to get it to automatically add a row on downarrow at the bottom. So if I am at the bottom on the table and click my down arrow a new row will appear below. I just can't figure out how to...
2011/03/08
[ "https://Stackoverflow.com/questions/5230747", "https://Stackoverflow.com", "https://Stackoverflow.com/users/513546/" ]
JTable has a default Action for the down arrow key. If you want to change this behaviour then you need to create a custom Action. You can do this easily by using the [Wrapping Actions](http://tips4java.wordpress.com/2008/11/03/wrapping-actions/) concept to leverage the default code. You can also look at [Table Tabbing...
You'll need to create a KeyListener and add this to your table: ``` public void keyReleased(KeyEvent e) { int keyCode = e.getKeyCode(); if (keyCode == KeyEvent.VK_DOWN) // check if selected table row = last row and if so: add new row to table model } ``` greetz, Stijn
5,230,747
I have a jTable which currently displays and allows editing of a database table, I am now trying to sort adding tuples. I am trying to get it to automatically add a row on downarrow at the bottom. So if I am at the bottom on the table and click my down arrow a new row will appear below. I just can't figure out how to...
2011/03/08
[ "https://Stackoverflow.com/questions/5230747", "https://Stackoverflow.com", "https://Stackoverflow.com/users/513546/" ]
Action handling of `JTable` happens in `javax.swing.plaf.basic.BasicTableUI`. In your case, you probably need to register a new action for `SCROLL_DOWN_CHANGE_SELECTION`. In the action, check whether the current selection == last row of the table. If that doesn't work, set a breakpoint in `javax.swing.plaf.basic.Basic...
JTable has a default Action for the down arrow key. If you want to change this behaviour then you need to create a custom Action. You can do this easily by using the [Wrapping Actions](http://tips4java.wordpress.com/2008/11/03/wrapping-actions/) concept to leverage the default code. You can also look at [Table Tabbing...
308,928
Simple use case for ApexMocks of a Service layer class, something I've done a 100 times ``` fflib_ApexMocks mocks = new fflib_ApexMocks(); OpportunitiesServiceImpl mockOpportunitiesService = (OpportunitiesServiceImpl) mocks.mock(OpportunitiesServiceImpl.class); ``` At runtime, I get this error: ``` Class.System.Te...
2020/06/09
[ "https://salesforce.stackexchange.com/questions/308928", "https://salesforce.stackexchange.com", "https://salesforce.stackexchange.com/users/2602/" ]
Note the following: * `OpportunitiesServiceImpl` is at V48.0 * `fflib_ApexMocks` is at V39 (this issues the call to `System.Test.createStub`) So, I can't explain why this fixes the issue but it does: The offending method indicated in the error message does not have an annotation of either `public` or `private`. Addi...
If you are trying to mock a method within a class, like calling some mock for `someMethod` instead of actual method `someMethod` in `OpportunitiesServiceImpl` implementation ``` OpportunitiesServiceImpl mockOpportunitiesService = (OpportunitiesServiceImpl) mocks.mock(OpportunitiesServiceImpl.class); mockOpportunitiesS...
141,704
One may find this question a duplicate, but my search through CrossValidated did not give satisfactory result. So I am posting this question and explaining what I want. I need a book such that if one studies it - one knows he has no "white spots" in basic stats. On modern probability, in my opinion, the book of Olav K...
2015/03/14
[ "https://stats.stackexchange.com/questions/141704", "https://stats.stackexchange.com", "https://stats.stackexchange.com/users/71150/" ]
Presumably the person who asked this question is long gone, but for future reference I will mention a book here. Note: I have not read this book. *Theoretical Statistics: Topics for a Core Course*, by Robert W. Keener. Amazon: [link.](https://rads.stackoverflow.com/amzn/click/com/B00DGER7WG) I quote the last three li...
Peter Bickel and Kjell Doksum wrote *Mathematical Statistics* [*Volume 1*](http://rads.stackoverflow.com/amzn/click/1498723802) and [*Volume 2.*](http://rads.stackoverflow.com/amzn/click/1498722687) The two books form a comprehensive guide to modern (frequentist) statistical methods at a level of mathematical sophistic...
33,369,206
i want to get all the records in particular record type , but i got 1000 only. This is the code I used. ``` function getRecords() { return nlapiSearchRecord('contact', null, null, null); } ``` I need two codes. 1) Get whole records at a single time 2) Get the records page wise by passing pageindex as an argume...
2015/10/27
[ "https://Stackoverflow.com/questions/33369206", "https://Stackoverflow.com", "https://Stackoverflow.com/users/5040685/" ]
you can't get whole records at a time. However, you can sort results by internalid, and remember the last internalId of 1st search result and use an additional filter in your next search result. ``` var totalResults = []; var res = nlapiSearchRecord('contact', null, null, new nlobjSearchColumn('internalid').setSort())...
Here is another way to get more than 1000 results on a search: ``` function getItems() { var columns = ['internalid', 'itemid', 'salesdescription', 'baseprice', 'lastpurchaseprice', 'upccode', 'quantityonhand', 'vendorcode']; var searchcolumns = []; for(var col in columns) { searchcolumns.push(ne...
171,843
I have handed in my resignation to a Dutch company which I am currently working for, however, I misunderstood the contractual notice period. In the contract it says I must provide "one calendar month" of notice. I took this to mean that if I hand in my notice on the 20th of April, I would continue to work until the 20t...
2021/04/26
[ "https://workplace.stackexchange.com/questions/171843", "https://workplace.stackexchange.com", "https://workplace.stackexchange.com/users/125595/" ]
You won't lose your vacation days. You must take your required minimal number of yearly vacation days within 6 months (so, before *July* 1), which, for a 40 hour/week contract is 20 vacation days. (For vacation days above legal, it depends on the company; for the company I work for, that's 5 years). But that's irreleva...
> > Is the company allowed to deny my use of those holidays during the leaving period? > > > No. See for example: <https://www.legalexpatdesk.nl/holidays/> However that doesn't mean they won't try anyway and the key question for you is "What to do if they deny it ". 1. Read through your employee handbook and you...
33,854,058
The following program isn't supposed to be executing sequentially but it is still doing so. ``` class A extends Thread { public void run() { for(int i=0; i<=5; i++) { System.out.println("Thread A : "+i); } System.out.println("exit from A"); } } class B extends ...
2015/11/22
[ "https://Stackoverflow.com/questions/33854058", "https://Stackoverflow.com", "https://Stackoverflow.com/users/5378299/" ]
Creating and starting a thread have a cost in performance, it is not a simple light operation. In consequence, it consumes some resources. In your example, your run methods are very simple (a loop over 5 int for printing). This code is very light and execution is very quick. I think that the execution of each loop e...
The threads do so little work that they finish before the switch to the next thread. Try increasing the loops to 100000 or more.
33,854,058
The following program isn't supposed to be executing sequentially but it is still doing so. ``` class A extends Thread { public void run() { for(int i=0; i<=5; i++) { System.out.println("Thread A : "+i); } System.out.println("exit from A"); } } class B extends ...
2015/11/22
[ "https://Stackoverflow.com/questions/33854058", "https://Stackoverflow.com", "https://Stackoverflow.com/users/5378299/" ]
Creating and starting a thread have a cost in performance, it is not a simple light operation. In consequence, it consumes some resources. In your example, your run methods are very simple (a loop over 5 int for printing). This code is very light and execution is very quick. I think that the execution of each loop e...
When new A().start() is called, a new thread is created and starts execution. Then new A().start() returns. When new B().start() is called a thread is being created. Within this time thread A will finish up execution and return because new Thread creation is a costly and blocking call. The same thing happens to thread ...
14,053,630
I want to let the user choose and open multiple texts and perform a search for exact matches in the texts. I want the encoding to be unicode. If I search for "cat" I want it to find "cat", "cat,", ".cat" but not "catalogue". I don't know how to let the user search for two words ("cat" OR "dog") in all of the texts at...
2012/12/27
[ "https://Stackoverflow.com/questions/14053630", "https://Stackoverflow.com", "https://Stackoverflow.com/users/1921937/" ]
Regular expressions are appropriate tool in this case. > > I want it to find "cat", "cat,", ".cat" but not "catalogue". > > > Pattern: `r'\bcat\b'` `\b` matches at a word boundary. > > how to let the user search for two words ("cat" OR "dog") in all of the texts at the same time > > > Pattern: `r'\bcat\b|\...
You need to split the text in each file on whitespace and punctuation. Once that's done you can simply look for the words you are searching for in the remaining list. You also need to convert everything to lowercase, unless you also want case sensitive search.
14,053,630
I want to let the user choose and open multiple texts and perform a search for exact matches in the texts. I want the encoding to be unicode. If I search for "cat" I want it to find "cat", "cat,", ".cat" but not "catalogue". I don't know how to let the user search for two words ("cat" OR "dog") in all of the texts at...
2012/12/27
[ "https://Stackoverflow.com/questions/14053630", "https://Stackoverflow.com", "https://Stackoverflow.com/users/1921937/" ]
Regular expressions are appropriate tool in this case. > > I want it to find "cat", "cat,", ".cat" but not "catalogue". > > > Pattern: `r'\bcat\b'` `\b` matches at a word boundary. > > how to let the user search for two words ("cat" OR "dog") in all of the texts at the same time > > > Pattern: `r'\bcat\b|\...
Some (maybe useful) information in addition to the existing answers: You should be aware that what the user means when he thinks of a "character" (=grapheme) is not always the same as a Unicode character, and some graphemes can be represented by Unicode characters in more than one unique way (e.g. composite character ...
37,575,274
I have a container that is 100vh (minus the fixed nav height). ``` <section class="container"> ``` Inside this container I have some text: ``` <div class="text"> <p>title</p> </div> ``` Which can be of any length as the content is dynamic. Below this text I have an image: ``` <div class="image"> <img...
2016/06/01
[ "https://Stackoverflow.com/questions/37575274", "https://Stackoverflow.com", "https://Stackoverflow.com/users/1013512/" ]
Make the image container (`.image`) a flex container with `height: 100%`. You can then fine-tune the image's aspect ratio and alignment with `object-fit` / `object-position`. ```css nav { position:fixed; background:grey; width:100%; height: 100px; } main { padding-top: 100px; } .container...
Maybe not exactly what you wanted, but if you move the image to a div and use it as a background, you can get the desired effect. [Fiddle](https://jsfiddle.net/7a5trtrz/1/) HTML: Nav title ``` <section class="container"> <div class="text"> <p>hello</p> </div> <div class="imageWrap"> <div class="i...
10,178
[I asked this question here](https://gaming.stackexchange.com/questions/197833/find-recommended-system-requirements-for-all-owned-games) about trying to locate a summary of hardware requirements for all of my steam games. It eventually got closed as a recommendation question. I don't feel that I'm looking for any hardw...
2015/01/01
[ "https://gaming.meta.stackexchange.com/questions/10178", "https://gaming.meta.stackexchange.com", "https://gaming.meta.stackexchange.com/users/39471/" ]
IMO, No - It shouldn't have been closed. (It's not off-topic) ------------------------------------------------------------- *I have no idea why it was voted to be closed for "recommendations", even though it's a question about finding information; basically what the developer recommends using.* Your question was (in ...
It was completely on-topic. Your question was not a recommendation, it was: > > Can Steam do this thing? If so, how? > > > Questions about using Steam are completely on-topic here (it's gaming related). Unfortunately, casually skimming the question and the title does give the impression that you're looking for a...
266,839
A few minutes ago, a [question about *"double compilation"*](https://stackoverflow.com/q/24965167/2344584) was posted. The OP read an article claiming that passing an already compiled executable through GCC for a second time results in a 2x speed boost and asked how that was possible. Double compilation is clearly imp...
2014/07/25
[ "https://meta.stackoverflow.com/questions/266839", "https://meta.stackoverflow.com", "https://meta.stackoverflow.com/users/2344584/" ]
If such an article actually *exists*, then you should probably answer the question and point out why it's bunk (assuming it is). If the article *doesn't* exist, then it's not a real question. Either close it as unclear and note that such an article should be linked to / cited so that folks can effectively answer the q...
Whether or not the article exists the hoax/mistake is circulating. Otherwise the person asking the question would not have heard it. It's worth debunking such obviously false claims, whether backed by an article or not...as we don't know how far the false information may have spread. (Obviously something as ludicrous...
266,839
A few minutes ago, a [question about *"double compilation"*](https://stackoverflow.com/q/24965167/2344584) was posted. The OP read an article claiming that passing an already compiled executable through GCC for a second time results in a 2x speed boost and asked how that was possible. Double compilation is clearly imp...
2014/07/25
[ "https://meta.stackoverflow.com/questions/266839", "https://meta.stackoverflow.com", "https://meta.stackoverflow.com/users/2344584/" ]
If such an article actually *exists*, then you should probably answer the question and point out why it's bunk (assuming it is). If the article *doesn't* exist, then it's not a real question. Either close it as unclear and note that such an article should be linked to / cited so that folks can effectively answer the q...
It's a similar case to [Which is faster: while(1) or while(2)?](https://stackoverflow.com/questions/24848359/which-is-faster-while1-or-while2) Such questions should exist on SO, just to provide the reference to the future visitors that it's a hoax. A hoax must be demented publicly, because otherwise anyone googling fo...
266,839
A few minutes ago, a [question about *"double compilation"*](https://stackoverflow.com/q/24965167/2344584) was posted. The OP read an article claiming that passing an already compiled executable through GCC for a second time results in a 2x speed boost and asked how that was possible. Double compilation is clearly imp...
2014/07/25
[ "https://meta.stackoverflow.com/questions/266839", "https://meta.stackoverflow.com", "https://meta.stackoverflow.com/users/2344584/" ]
Whether or not the article exists the hoax/mistake is circulating. Otherwise the person asking the question would not have heard it. It's worth debunking such obviously false claims, whether backed by an article or not...as we don't know how far the false information may have spread. (Obviously something as ludicrous...
It's a similar case to [Which is faster: while(1) or while(2)?](https://stackoverflow.com/questions/24848359/which-is-faster-while1-or-while2) Such questions should exist on SO, just to provide the reference to the future visitors that it's a hoax. A hoax must be demented publicly, because otherwise anyone googling fo...
74,400
**Edit:** In response to the comments, the question has been edited to include the MWE. The accepted answer (by Gonzalo) is still valid. Here's my code: ``` \documentclass{article} % *** MISC UTILITY PACKAGES *** \usepackage{graphicx} \usepackage[caption=false]{subfig}%The caption option has been disabled %to avoid ...
2012/09/27
[ "https://tex.stackexchange.com/questions/74400", "https://tex.stackexchange.com", "https://tex.stackexchange.com/users/8303/" ]
You can use the `evaluate=<variable> as <macro> using <formula>` syntax: ``` \documentclass{scrartcl} \usepackage{tikz,pgf} \usepackage{graphicx} \begin{document} \begin{tikzpicture} \node[anchor=south west, inner sep = 0] (image) at (0,0) {\includegraphics[width=8cm]{cat}}; \begin {scope}[x={(image.south east)},y=...
Answer to the modified question: ``` \documentclass{article} % *** MISC UTILITY PACKAGES *** \usepackage{graphicx} \usepackage[caption=false]{subfig}%The caption option has been disabled %to avoid conflict with the IEEEtran class file. \usepackage{tikz} % *** MATH PACKAGES *** \usepackage[cmex10]{amsmath} \usepackag...
49,341
I'm wondering why some people release software as freeware, yet they don't release the source code. Why is that? I can think of some reasons, yet most of them don't make very much sense. Why would you want to keep the source closed but let the program be freely available (free of charge, not free as in freedom)?
2011/02/18
[ "https://softwareengineering.stackexchange.com/questions/49341", "https://softwareengineering.stackexchange.com", "https://softwareengineering.stackexchange.com/users/12750/" ]
One I don't see here yet - because the source code has value in itself, separate from the application as a whole. If you have useful libraries that you've written, you're likely to use them even in projects that you intend to give away. That doesn't mean you're willing to give that library source code away. And withou...
Despite the general bad idea that security-through-obscurity is, in the malware removal field, its a constant cat and mouse game between those of us who write analysis/removal tools, and those writing cleverer and cleverer malware. Sometimes we release a tool freely to users to use, but try to obfuscate the tool's oper...
49,341
I'm wondering why some people release software as freeware, yet they don't release the source code. Why is that? I can think of some reasons, yet most of them don't make very much sense. Why would you want to keep the source closed but let the program be freely available (free of charge, not free as in freedom)?
2011/02/18
[ "https://softwareengineering.stackexchange.com/questions/49341", "https://softwareengineering.stackexchange.com", "https://softwareengineering.stackexchange.com/users/12750/" ]
One of my favorite productivity tools is freeware. I asked the author about the source one time, and he said he couldn't release it because it contains a lot of proprietary code that belongs to his employer. So I suppose that his employer doesn't mind it being used in a free tool, but that it's also being used in their...
One I don't see here yet - because the source code has value in itself, separate from the application as a whole. If you have useful libraries that you've written, you're likely to use them even in projects that you intend to give away. That doesn't mean you're willing to give that library source code away. And withou...
49,341
I'm wondering why some people release software as freeware, yet they don't release the source code. Why is that? I can think of some reasons, yet most of them don't make very much sense. Why would you want to keep the source closed but let the program be freely available (free of charge, not free as in freedom)?
2011/02/18
[ "https://softwareengineering.stackexchange.com/questions/49341", "https://softwareengineering.stackexchange.com", "https://softwareengineering.stackexchange.com/users/12750/" ]
One of my favorite productivity tools is freeware. I asked the author about the source one time, and he said he couldn't release it because it contains a lot of proprietary code that belongs to his employer. So I suppose that his employer doesn't mind it being used in a free tool, but that it's also being used in their...
I have several freeware apps for which I wont provide source code. The main reason is because they share large amounts of code with commercial applications. Consider something like a document viewer... that still needs the rendering system of its commercial cousin, a document creator. Another reason is some of the apps...
49,341
I'm wondering why some people release software as freeware, yet they don't release the source code. Why is that? I can think of some reasons, yet most of them don't make very much sense. Why would you want to keep the source closed but let the program be freely available (free of charge, not free as in freedom)?
2011/02/18
[ "https://softwareengineering.stackexchange.com/questions/49341", "https://softwareengineering.stackexchange.com", "https://softwareengineering.stackexchange.com/users/12750/" ]
There have been 2 great answers so far but here are my reasons that I can see: 1. It is more trouble than it is worth. 2. They use the freemium model 3. Don't feel they should For #1, if the product is free and the person isn't seeing any profits from it, they may not feel like having to deal with hosting the source ...
Despite the general bad idea that security-through-obscurity is, in the malware removal field, its a constant cat and mouse game between those of us who write analysis/removal tools, and those writing cleverer and cleverer malware. Sometimes we release a tool freely to users to use, but try to obfuscate the tool's oper...
49,341
I'm wondering why some people release software as freeware, yet they don't release the source code. Why is that? I can think of some reasons, yet most of them don't make very much sense. Why would you want to keep the source closed but let the program be freely available (free of charge, not free as in freedom)?
2011/02/18
[ "https://softwareengineering.stackexchange.com/questions/49341", "https://softwareengineering.stackexchange.com", "https://softwareengineering.stackexchange.com/users/12750/" ]
Hmm, what comes to my mind is * Because you want to retain some measure of control over the product * Because you want to reserve the possibility / right to charge for the product in the future * Because you're ashamed of your source code * Because you want to make sure you are credited for the product, and it doesn't...
I provide open source code as sort of a community service idea, and as a portfolio idea. If I was selling software directly - I don't, I'm employed in a position where the company sells the product, not me - I would *more* than happy to sell my software as closed source. Allowing competitors to look over my code and ...
49,341
I'm wondering why some people release software as freeware, yet they don't release the source code. Why is that? I can think of some reasons, yet most of them don't make very much sense. Why would you want to keep the source closed but let the program be freely available (free of charge, not free as in freedom)?
2011/02/18
[ "https://softwareengineering.stackexchange.com/questions/49341", "https://softwareengineering.stackexchange.com", "https://softwareengineering.stackexchange.com/users/12750/" ]
I have several freeware apps for which I wont provide source code. The main reason is because they share large amounts of code with commercial applications. Consider something like a document viewer... that still needs the rendering system of its commercial cousin, a document creator. Another reason is some of the apps...
Despite the general bad idea that security-through-obscurity is, in the malware removal field, its a constant cat and mouse game between those of us who write analysis/removal tools, and those writing cleverer and cleverer malware. Sometimes we release a tool freely to users to use, but try to obfuscate the tool's oper...
49,341
I'm wondering why some people release software as freeware, yet they don't release the source code. Why is that? I can think of some reasons, yet most of them don't make very much sense. Why would you want to keep the source closed but let the program be freely available (free of charge, not free as in freedom)?
2011/02/18
[ "https://softwareengineering.stackexchange.com/questions/49341", "https://softwareengineering.stackexchange.com", "https://softwareengineering.stackexchange.com/users/12750/" ]
One I don't see here yet - because the source code has value in itself, separate from the application as a whole. If you have useful libraries that you've written, you're likely to use them even in projects that you intend to give away. That doesn't mean you're willing to give that library source code away. And withou...
I have several freeware apps for which I wont provide source code. The main reason is because they share large amounts of code with commercial applications. Consider something like a document viewer... that still needs the rendering system of its commercial cousin, a document creator. Another reason is some of the apps...
49,341
I'm wondering why some people release software as freeware, yet they don't release the source code. Why is that? I can think of some reasons, yet most of them don't make very much sense. Why would you want to keep the source closed but let the program be freely available (free of charge, not free as in freedom)?
2011/02/18
[ "https://softwareengineering.stackexchange.com/questions/49341", "https://softwareengineering.stackexchange.com", "https://softwareengineering.stackexchange.com/users/12750/" ]
One of my favorite productivity tools is freeware. I asked the author about the source one time, and he said he couldn't release it because it contains a lot of proprietary code that belongs to his employer. So I suppose that his employer doesn't mind it being used in a free tool, but that it's also being used in their...
There have been 2 great answers so far but here are my reasons that I can see: 1. It is more trouble than it is worth. 2. They use the freemium model 3. Don't feel they should For #1, if the product is free and the person isn't seeing any profits from it, they may not feel like having to deal with hosting the source ...
49,341
I'm wondering why some people release software as freeware, yet they don't release the source code. Why is that? I can think of some reasons, yet most of them don't make very much sense. Why would you want to keep the source closed but let the program be freely available (free of charge, not free as in freedom)?
2011/02/18
[ "https://softwareengineering.stackexchange.com/questions/49341", "https://softwareengineering.stackexchange.com", "https://softwareengineering.stackexchange.com/users/12750/" ]
One I don't see here yet - because the source code has value in itself, separate from the application as a whole. If you have useful libraries that you've written, you're likely to use them even in projects that you intend to give away. That doesn't mean you're willing to give that library source code away. And withou...
I provide open source code as sort of a community service idea, and as a portfolio idea. If I was selling software directly - I don't, I'm employed in a position where the company sells the product, not me - I would *more* than happy to sell my software as closed source. Allowing competitors to look over my code and ...
49,341
I'm wondering why some people release software as freeware, yet they don't release the source code. Why is that? I can think of some reasons, yet most of them don't make very much sense. Why would you want to keep the source closed but let the program be freely available (free of charge, not free as in freedom)?
2011/02/18
[ "https://softwareengineering.stackexchange.com/questions/49341", "https://softwareengineering.stackexchange.com", "https://softwareengineering.stackexchange.com/users/12750/" ]
I provide open source code as sort of a community service idea, and as a portfolio idea. If I was selling software directly - I don't, I'm employed in a position where the company sells the product, not me - I would *more* than happy to sell my software as closed source. Allowing competitors to look over my code and ...
Despite the general bad idea that security-through-obscurity is, in the malware removal field, its a constant cat and mouse game between those of us who write analysis/removal tools, and those writing cleverer and cleverer malware. Sometimes we release a tool freely to users to use, but try to obfuscate the tool's oper...
55,317,727
This implementation seems to be working fine ([Stackblitz](https://stackblitz.com/edit/typescript-distinct)): ``` /** * Returns all the elements that are distinct by the * `property` value. Note that the implementation uses a `Map<string, E>` to * index the entities by key. Therefore the more rec...
2019/03/23
[ "https://Stackoverflow.com/questions/55317727", "https://Stackoverflow.com", "https://Stackoverflow.com/users/1684269/" ]
The Error message is a bit misleading. His problem is, that it can not ensure that `e[property]` is of type `string` as you've defined the `Map`. Make the key in the Map of type `any` as with so much flexibility you can not determine the type of the value either. Additionally I'd type the `property` parameter as `key...
Based on [Thomas](https://stackoverflow.com/users/6567275/thomas)' answer, we can simplify both: * JavaScript code: constructing the `Map` at once; * TypeScript typing: adding the `K extends keyof E`, we can cast the tuples (`[E[K], E]`) used as `Map` constructor input parameter and remove the `any` type use. Here th...
17,354
I am making a donation page in wordpress using civicrm (latest version for wordpress). For someone who comes to the page for the first time I would like to give them the option of signing up for a newsletter. The issue is that at this stage they have not signed up yet so they are not in the database. I have a profile...
2017/02/22
[ "https://civicrm.stackexchange.com/questions/17354", "https://civicrm.stackexchange.com", "https://civicrm.stackexchange.com/users/4344/" ]
I have a fully working donation page set up in civicrm where: * there is a Financial Type "Donations" set up in Administer/civicontribute/financial type. * Financial Type is set up in the relevant Contribution Page as "Donations". * A Profile is attached to the contribution page that collects information in fields suc...
The answer peterb gives is correct. One other possible reason you're seeing this is because the URL you're using has "&cid=0" at the end, which is a special parameter meant to cause the behavior you're seeing. Try removing that parameter if it exists AND accessing the page while not logged in; that should fix you up.
81,014
For example: [![screen capture](https://i.imgur.com/YnInEl3.gif)](https://i.imgur.com/YnInEl3.gif) My explanation of what's happening in the gif: When a title has been hovered for a short amount of time, that title expands, pushing other content off the screen and grabbing the user's attention. I've read that taking...
2015/07/05
[ "https://ux.stackexchange.com/questions/81014", "https://ux.stackexchange.com", "https://ux.stackexchange.com/users/68212/" ]
As always it depends. The reason it's not a best practice is because a hover state can be attained in multiple unintended ways, including scrolling as in the example you listed. In the case of Netflix, they undoubtedly knew the consequences. That's likely why the hover state has such a short timer before activating, ...
Dark patterns FTW? ================== The problem with moving things around on hover is that the targets jump. This isn't really a problem for the item being expanded. As Jamezrp pointed out, that may be intentional. Maybe Netflix is using a dark pattern to try to increase engagement. I say *dark* because it's not an ...
81,014
For example: [![screen capture](https://i.imgur.com/YnInEl3.gif)](https://i.imgur.com/YnInEl3.gif) My explanation of what's happening in the gif: When a title has been hovered for a short amount of time, that title expands, pushing other content off the screen and grabbing the user's attention. I've read that taking...
2015/07/05
[ "https://ux.stackexchange.com/questions/81014", "https://ux.stackexchange.com", "https://ux.stackexchange.com/users/68212/" ]
Is hover the *only* way you can find out that information? Would someone on a tablet, or someone using keyboard without a mouse be able to find that full information without having to select that item fully? If hover is just one way to display it - an enhancement, so to speak - then it is OK. But if you *have* to use...
Dark patterns FTW? ================== The problem with moving things around on hover is that the targets jump. This isn't really a problem for the item being expanded. As Jamezrp pointed out, that may be intentional. Maybe Netflix is using a dark pattern to try to increase engagement. I say *dark* because it's not an ...
10,986,968
We are doing UI screens for WPF application on Laptop But we are planing to give demo on 22"inch Monitor. Here Dimensions are getting changed when we see UI screens on 22"inch Monitor. How can I make same UI screen apperance on both Laptop and 22" inch Monitor? please help me here....
2012/06/11
[ "https://Stackoverflow.com/questions/10986968", "https://Stackoverflow.com", "https://Stackoverflow.com/users/1420601/" ]
Are you using an absolute layout, where specific X/Y/Height/Width is being defined for every control? If you use other types of layouts, they are more relative to window height/width and automatically handle these issues.
Wrap your entire application in the [Viewbox](http://msdn.microsoft.com/en-us/library/system.windows.controls.viewbox.aspx) control. As long as you don't have rasterized images, nothing will look stretched.
4,103,432
I am a bit confused on how to create a overloaded constructor. Below is my assignment: > > Include the following: > > i) A default constructor and an overloaded constructor. > > ii) Accessor and mutator methods for each attribute. > > > Below is my pseudocode. From what I created so far I assume a OVERL...
2010/11/05
[ "https://Stackoverflow.com/questions/4103432", "https://Stackoverflow.com", "https://Stackoverflow.com/users/485217/" ]
I always hated psudocode *in classroom settings* for this very reason. How much do you write? What am I allowed to leave off, or in other words, what are we taking for granted here? As far as the overloaded function, it looks as though you understand it just fine. Here is your default constructor that doesn't take an...
Yes. You code looks like its on the right lines. However shouldn't the methods/functions be part of the class? * An overload X is an X with different set of parameters. * An Accessor is a function (sometimes called a property) that gets something from the object. * A mutator is a function (sometimes called a property)...
35,920,448
`$table->text('company_logo')->nullable();` I'm trying to create a migration to store Base 64 Encoded image in my My SQL database. I'm not if what I have is good enough. Is what I have good enough ? How do I know it ?
2016/03/10
[ "https://Stackoverflow.com/questions/35920448", "https://Stackoverflow.com", "https://Stackoverflow.com/users/4480164/" ]
You can also use the `dplyr` package to aggregate the data: ``` library(dplyr) mean_data <- group_by(data, gender, week) %>% summarise(motivation = mean(motivation, na.rm = TRUE)) ``` You can use `na.omit()` to get rid of the `NA` values as follows: ``` library(ggplot2) ggplot(na.omit(mean_data), aes(x...
You almost certainly have to make sure those grouping variables are factors. I'm not quite sure what you want, but here's a shot... ``` library("ggplot2") df <- read.table(textConnection("ID gender week class motivation 1 male 0 1 100 1 male 6 1 120 1 male 10 1 130 2 ...
35,920,448
`$table->text('company_logo')->nullable();` I'm trying to create a migration to store Base 64 Encoded image in my My SQL database. I'm not if what I have is good enough. Is what I have good enough ? How do I know it ?
2016/03/10
[ "https://Stackoverflow.com/questions/35920448", "https://Stackoverflow.com", "https://Stackoverflow.com/users/4480164/" ]
You can also use the `dplyr` package to aggregate the data: ``` library(dplyr) mean_data <- group_by(data, gender, week) %>% summarise(motivation = mean(motivation, na.rm = TRUE)) ``` You can use `na.omit()` to get rid of the `NA` values as follows: ``` library(ggplot2) ggplot(na.omit(mean_data), aes(x...
Another possibility is using `stat_summary`, so you can do it only with **ggplot**. ``` ggplot(data = DataRlong, aes(x = week, y = motivation, group = gender)) + stat_summary(geom = "line", fun.y = mean) ```
13,279,303
Spent quite some time on this forum looking at answers similar to my problem but couldn't find the one that matched my case. I have an HTML form that I am submitting via javascript to my aspx page. ``` function Submit() { document.MyFormName.action = 'StreamPDF.aspx' document.MyFormName.submit(); } ``` The Stre...
2012/11/07
[ "https://Stackoverflow.com/questions/13279303", "https://Stackoverflow.com", "https://Stackoverflow.com/users/1040648/" ]
can you give a try with `blockui` <http://forums.asp.net/p/1620326/4457438.aspx/1?Re+Show+wait+message+on+submit>
After several attempts to get this working, I realized that the only non-intrusive approach to fix this is the suggestion in the link I posted. Have the server notify the client that the file is streamed by setting a cookie which is deleted by the client script. Thanks for all your responses.
2,376,430
My application is raising an unauthorized access error. While running my application, I try to access a directory in the following location: Application.UserAppDataPath. The Problem: It says I do not have permission to access the Application.UserAppDataPath directory Is there a way to set permissions within my applic...
2010/03/04
[ "https://Stackoverflow.com/questions/2376430", "https://Stackoverflow.com", "https://Stackoverflow.com/users/210200/" ]
Looking at your comment, you say this is your code: ``` StreamReader sr = new StreamReader(Application.UserAppDataPath); ``` `Application.UserAppDataPath` is a **directory**, not a *file*. If you try to open that directly, it's the same as trying to open a file one level *below* the AppData folder, which you really ...
Its probably a UAC issue, Try running your application as an elevated process, and see if the error persists
112,464
I have SharePoint list with more than 1000 items(ID's). I'm dumping list with *BASH* script to my server with *curl*: `curl --ntlm -u $curl_account $SITE -o $output_file 2>/dev/null` and I get only 1000 ID's to my *$output\_file*. Is there are some limits or smth to do, that I could get all items? Thanks for any in...
2014/08/20
[ "https://sharepoint.stackexchange.com/questions/112464", "https://sharepoint.stackexchange.com", "https://sharepoint.stackexchange.com/users/31504/" ]
I dont see any limitation on data retrieving using curl. is it get only 1st 1000 items only? Do you have any filter on your default view in list. also check this blog, he used curl to print the list data. <http://blog.vgrem.com/tag/curl/> <http://justinlee.sg/2011/01/05/crud-operations-on-microsoft-sharepoint-2010-o...
Try and do it in a loop, record the last id retrieved after each 1000, then add a filter to the call i.e. where ID > lastid. do this until the number of items retrieved is < 1000