text
stringlengths
36
35k
label
class label
2 classes
source
stringclasses
3 values
tokens_length
int64
128
4.1k
text_length
int64
36
35k
Geometric Meaning of Conditions on Curve Shortening. <p>The following shows the meaning of the notations. <a href="https://i.stack.imgur.com/c3k3o.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/c3k3o.png" alt="enter image description here" /></a></p> <p>Here is the definition of curve shortening. <a href="https://i.stack.imgur.com/d1qh2.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/d1qh2.png" alt="enter image description here" /></a></p> <p>I can understand the geometric meaning of (1) &amp; (2), but not (3) &amp; (4). Can someone explain more on the geometric meaning of (3) &amp; (4). Thanks!</p>
0non-cybersec
Stackexchange
224
646
How to Disable Apport Error Reporting in Ubuntu 16.04 LTS. <p>Well, I use ubuntu 16.04 LTS. Once I could not change input language. Tried to reboot, system failed into initramfs. Tried forced fsck, it fixes some issues, when reboot again always obtained apport report and failure to download updates. Again reboot, initramfs, forced fsck ... How to disable apport reports on ubuntu 16.04 LTS? Both methods from <a href="https://askubuntu.com/questions/615478/constant-startup-error-issue-what-is-com-ubuntu-apport-support-gtk-root">constant-startup-error-issue-what-is-com-ubuntu-apport-support-gtk-root</a> do not work for 16.04.</p>
0non-cybersec
Stackexchange
192
637
Recovering the SDE of Vasicek model.. <p>Suppose we have the solution to the ordinary Vasicek model:</p> <p><span class="math-container">$$r_t = r_0 e^{-a t} + b(1 - e^{-a t}) + \sigma \int^{t}_0 e^{-a (t-s) } dW_s$$</span></p> <p>How do I use the Ito's lemma to recover the SDE</p> <p><span class="math-container">$$dr_t = a(b - r_t)dt + \sigma dW_t$$</span></p> <p>Thank you for your help.</p>
0non-cybersec
Stackexchange
170
400
How to import node_modules in typescript using Vue CLI 3 created project?. <p>I have created a Vue.js project using Vue CLI 3 and enabled typescript and I'm trying to get Cesium working.</p> <p>I have performed the following:</p> <pre><code>npm install cesium npm install @types/cesium </code></pre> <p>But when I perform a,</p> <pre><code>npm run serve </code></pre> <p>I see the cesium globe fine, except that in VS Code, I get</p> <pre><code>Cannot find module cesium/Cesium </code></pre> <p>For all my imports of Cesium</p> <p>The relevant files can be found below.</p> <p>Cesium.vue:</p> <pre><code>&lt;template&gt; &lt;div id="cesiumContainer"&gt;&lt;/div&gt; &lt;/template&gt; &lt;script lang='ts'&gt; import Vue from 'vue'; import Cesium from 'cesium/Cesium'; export default Vue.extend({ name: 'Cesium', data() { return { // viewer: null, }; }, mounted() { let viewer = new Cesium.Viewer('cesiumContainer', { imageryProvider: Cesium.createTileMapServiceImageryProvider({ url: Cesium.buildModuleUrl('Assets/Textures/NaturalEarthII'), }), baseLayerPicker: false, geocoder: false, // requestRenderMode: true // skyBox: false }); }, }); &lt;/script&gt; &lt;style&gt; #cesiumContainer { /* width: 100%; */ /* height: 100%; */ width: 1024; height: 768; margin: 0; padding: 0; overflow: hidden; } &lt;/style&gt; </code></pre> <p>main.ts:</p> <pre><code>import Vue from 'vue'; import App from './App.vue'; import router from './router'; import store from './store'; import Cesium from 'cesium/Cesium'; // noinspection ES6UnusedImports import widget from 'cesium/Widgets/widgets.css'; Vue.use(Cesium); Vue.use(widget); Vue.config.productionTip = false; new Vue({ router, store, render: h =&gt; h(App), }).$mount('#app'); </code></pre> <p>vue.config.js:</p> <pre><code>const CopyWebpackPlugin = require('copy-webpack-plugin'); const webpack = require('webpack'); const path = require('path'); const debug = process.env.NODE_ENV !== 'production'; let cesiumSource = './node_modules/cesium/Source'; let cesiumWorkers = '../Build/Cesium/Workers'; module.exports = { baseUrl: '', devServer: { port: 8080, }, configureWebpack: { output: { sourcePrefix: ' ', }, amd: { toUrlUndefined: true, }, resolve: { alias: { vue$: 'vue/dist/vue.esm.js', '@': path.resolve('src'), cesium: path.resolve(__dirname, cesiumSource), }, }, plugins: [ new CopyWebpackPlugin([ { from: path.join(cesiumSource, cesiumWorkers), to: 'Workers' }, ]), new CopyWebpackPlugin([ { from: path.join(cesiumSource, 'Assets'), to: 'Assets' }, ]), new CopyWebpackPlugin([ { from: path.join(cesiumSource, 'Widgets'), to: 'Widgets' }, ]), new CopyWebpackPlugin([ { from: path.join(cesiumSource, 'ThirdParty/Workers'), to: 'ThirdParty/Workers', }, ]), new webpack.DefinePlugin({ CESIUM_BASE_URL: JSON.stringify('./'), }), ], module: { unknownContextCritical: /^.\/.*$/, unknownContextCritical: false, }, }, }; </code></pre> <p>my tsconfig.json includes:</p> <pre><code>{ "compilerOptions": { "types": ["cesium"], } </code></pre> <p>What am I doing wrong??</p>
0non-cybersec
Stackexchange
1,178
3,388
What happens when minmax is: minmax(auto, auto). <p>In the bottom of this article (<a href="https://bitsofco.de/how-the-minmax-function-works/" rel="nofollow noreferrer">How the minmax() Function Works</a>) it says for <code>minmax(auto, auto)</code>:</p> <blockquote> <p>If used as a maximum, the auto value is equivalent to the max-content value. If used as a minimum, the auto value represents the largest minimum size the cell can be. This “largest minimum size” is different from the min-content value, and specified by min-width/min-height.</p> </blockquote> <p>Would someone mind eleborating on the difference between <code>min-content</code> and the auto here that’s ‘specified by min-width/min-height’?</p> <p>I understand min-content to be smallest possible width the cell can be that does not lead to an overflow. What does ‘specified by min-width/min-height’ mean?</p> <p>Thanks</p>
0non-cybersec
Stackexchange
270
902
How to use spot instance with amazon elastic beanstalk?. <p>I have one infra that use amazon elastic beanstalk to deploy my application. I need to scale my app adding some spot instances that EB do not support.</p> <p>So I create a second autoscaling from a launch configuration with spot instances. The autoscaling use the same load balancer created by beanstalk.</p> <p>To up instances with the last version of my app, I copy the user data from the original launch configuration (created with beanstalk) to the launch configuration with spot instances (created by me).</p> <p>This work fine, but:</p> <ol> <li><p>how to update spot instances that have come up from the second autoscaling when the beanstalk update instances managed by him with a new version of the app?</p> </li> <li><p>is there another way so easy as, and elegant, to use spot instances and enjoy the benefits of beanstalk?</p> </li> </ol> <p><strong>UPDATE</strong></p> <p>Elastic Beanstalk add support to spot instance since 2019... see: <a href="https://docs.aws.amazon.com/elasticbeanstalk/latest/relnotes/release-2019-11-25-spot.html" rel="nofollow noreferrer">https://docs.aws.amazon.com/elasticbeanstalk/latest/relnotes/release-2019-11-25-spot.html</a></p>
0non-cybersec
Stackexchange
349
1,234
Does the working of sizeof operator different in c andd c++. <p>I have written a small printf statement which is working different in C and C++:</p> <pre><code> int i; printf ("%d %d %d %d %d \n", sizeof(i), sizeof('A'), sizeof(sizeof('A')), sizeof(float), sizeof(3.14)); </code></pre> <p>The output for the above program in c using gcc compiler is 4 4 8 4 8</p> <p>The output for the above program in c++ using g++ compiler is 4 1 8 4 8</p> <p>I expected 4 1 4 4 8 in c. But the result is not so. </p> <p>The third parameter in the printf sizeof(sizeof('A')) is giving 8</p> <p>Can anyone give me the reasoning for this </p>
0non-cybersec
Stackexchange
217
645
Solution to differential equation of function of two variables. <p>Very simple question about differential equations, but I couldn't find anything online. </p> <p>Let $f(x,z)$ be a function of two variables that satisfies:</p> <p>$af+bf_x+cf_z+df_{xx}+ef_{zz}+gf_{xz}=q(x,z)$</p> <p>where $q(x,z)$ is some known function, $a,b,c,d,e,g$ are constants. </p> <p>How can I solve this, i.e., find an expression for $f(x,z)$ (given boundary conditions)? </p> <p>Is there some reference where I can find general solution to differential equations of functions of two variables?</p>
0non-cybersec
Stackexchange
192
580
Use resources in unit tests with Swift Package Manager. <p>I'm trying to use a resource file in unit tests and access it with <code>Bundle.path</code>, but it returns nil.</p> <p>This call in MyProjectTests.swift returns nil:</p> <pre><code>Bundle(for: type(of: self)).path(forResource: "TestAudio", ofType: "m4a") </code></pre> <p>Here is my project hierarchy. I also tried moving <code>TestAudio.m4a</code> to a <code>Resources</code> folder:</p> <pre><code>├── Package.swift ├── Sources │   └── MyProject │   ├── ... └── Tests └── MyProjectTests ├── MyProjectTests.swift └── TestAudio.m4a </code></pre> <p>Here is my package description:</p> <pre><code>// swift-tools-version:4.0 import PackageDescription let package = Package( name: "MyProject", products: [ .library( name: "MyProject", targets: ["MyProject"]) ], targets: [ .target( name: "MyProject", dependencies: [] ), .testTarget( name: "MyProjectTests", dependencies: ["MyProject"] ), ] ) </code></pre> <p>I am using Swift 4 and the Swift Package Manager Description API version 4.</p>
0non-cybersec
Stackexchange
385
1,212
Linear system and subspaces. <p>Let $S $ be a subspace of $R^n$ with dimension k and $m = n-k.$ Show that </p> <p>$$\exists A \in R^{m\times n}, b\in R^m$$</p> <p>Such that</p> <p>$$S = \{ x \in R^n : Ax = b\}$$</p> <p>My attempt consist of getting m "free variables", ie, choose m rows of a vector in S and to create a linear system following it. But I am having difficults to organize it.</p> <p>Thanks!</p>
0non-cybersec
Stackexchange
159
416
Google chrome/chromium browser does not work with x2go client side. Fix needed?. <p>I am using x2go to access my Ubuntu system remotely. The x2go server is running on Ubuntu 18.04 and I using x2go client on Windows 10. Google chrome and chromium browsers both work fine when using the Ubuntu system, as well as Firefox. However, when I use the chrome/chromium browser using x2go, they do not work. I get the following error:</p> <p><a href="https://i.stack.imgur.com/b0m2K.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/b0m2K.png" alt="Site unreachable error"></a></p> <p>And then I redirected to the following error:</p> <p><a href="https://i.stack.imgur.com/iAb1U.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/iAb1U.png" alt="No internet - error message"></a></p> <p>Firefox works fine. <code>sudo apt-get package-name</code> works fine (under proxy). I am using proxy (password protected) and have used </p> <pre><code>export {http,https}_proxy=http://username:password@domain:port </code></pre> <p>but with no success. Also, I can not change the proxy settings of chrome from settings as it says that system proxy settings are used.</p> <p>Both Chrome and Firefox use system proxy settings but Firefox works while Chrome doesn't. Is there any fix for this?</p>
0non-cybersec
Stackexchange
402
1,313
Find basis and dimension of $V,W,V\cap W,V+W$ where $V=\{p\in\mathbb{R_4}(x):p&#39;(0) = p(1)=p(0)=p(-1)\},W=\{p\in\mathbb{R_4}(x):p(1)=0\}$. <p>Find basis and dimension of $V,W,V\cap W,V+W$ where $V=\{p\in\mathbb{R_4}(x):p'(0) =p(1)=p(0)=p(-1)\},W=\{p\in\mathbb{R_4}(x):p(1)=0\}$</p> <p>Could someone give a hint how to get general representation of a vector in $V$ and $W$?</p> <p>$\mathbb{R}_4(x)$ is the set of polynomials $p(x)=ax^3+bx^2+cx+d$. </p>
0non-cybersec
Stackexchange
227
457
Average size of the smallest piece for a bar broken in 3 pieces. <p>Frederick Mosteller , 'Fifty challenging problems in probability', Q.43:</p> <blockquote> a bar is broken at random in 2 places. Find the average size of the smallest, middle, and largest pieces</blockquote> <p>I would like to discuss the solution offered in the book for working out the avergae size of the smallest segment, which says (summarized):</p> <blockquote> We might as well work with a bar of unit length $1$. let $X$ and $Y$ be the positions of the 2 points dropped. For convenience let us suppose that $X \lt Y$. <br><br> If we want to get the distribution of the smallest piece, then either $X$, $Y-X$ or $1-Y$ is smallest. Let us suppose $X$ is smallest, then: $$X \lt Y-X \text{ ie } 2X \lt Y$$ and $$X \lt 1-Y \text{ ie } X+Y \lt 1$$ this corresponds to the triangle shown in the picture, therefore the mean of X over that area will correspond to the X-coordinate of the centroid of that triangle, which as we know from plane geometry is $1 \over 3$ of the way from the base to the opposite vertex, here the point $(\frac{1}{3},\frac {2}{3})$ , therefore $\frac{1}{3} * \frac{1}{3} = \frac{1}{9}$ <br><br> Therefore the mean of the smallest segment is $\frac{1}{9}$ </blockquote> <p><a href="https://i.stack.imgur.com/5BJA8.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/5BJA8.png" alt="enter image description here"></a></p> <p>My question is: even restricting ourselves to the area $X &lt; Y$, why don't we need to consider the cases where Y-X is smallest, and 1-Y is smallest ?</p>
0non-cybersec
Stackexchange
505
1,614
DVI KVM switch for a 30&quot; monitor?. <p>I have two machines to which I would like to attach a Dell 30" monitor via a KVM switch. Most KVM switches don't support the maximum resolution of the monitor (2550x1600). The only solution I have been able to find is the <a href="http://www.belkin.com/flip/" rel="nofollow noreferrer">Belkin Flip</a> that on a good day leaves strange artifacts in the signal, and at worst is useless.</p> <p>Is there a better KVM switch than the Flip for large displays?</p>
0non-cybersec
Stackexchange
146
504
java.lang.IllegalArgumentException: Can only use lower 16 bits for requestCode. <p>I am writing an application where <code>Activity A</code> launches <code>Activity B</code> using </p> <pre><code>startActivityForResult(intent, -101); </code></pre> <p>but when called, it responded back with following error log:</p> <pre><code>E/AndroidRuntime( 1708): java.lang.IllegalArgumentException: Can only use lower 16 bits for requestCode E/AndroidRuntime( 1708): at android.support.v4.app.FragmentActivity.startActivityForResult(FragmentActivity.java:837) </code></pre> <p>Probably it could be <strong>-101</strong> but I am not sure. Does any one have any idea on this?</p>
0non-cybersec
Stackexchange
199
675
The network connection in my Windows 10 parallels VM isn&#39;t working, what is causing this?. <p>I installed Parallels VM on my Mac and created a Windows 10 VM. I have a connection problem in the Windows 10 VM but not on my Mac. </p> <p>I get the following error: </p> <p><code>There is no network adapter on your Mac for the "Parallels Shared #0" virtual network. The network adapter 0 will be disconnected.</code></p> <p>What could cause this?</p>
0non-cybersec
Stackexchange
129
454
Tracking the time since last keystroke?. <p>This is my completed keylogger as of right now. I have already posted this question before but it was really hard to iterate myself. On_press and On_release are the two main functions in this. They both track one keystroke. I need to track the time it takes between keystrokes, and I am not totally sure how I would get this done. I had the thought that I could track to see the time in between the string appends. I need to be able to see the time in between keystrokes because if that is longer than a certain period of time (ten seconds), I want the string which houses the keystrokes (keys) to be cleared. Thank y'all!</p> <pre><code>import pynput import time import os, sys from pynput.keyboard import Key, Listener import psutil count = 0 keys = [] if (time.time() - lastKeystroke &gt; 10): keys =[] def on_press(key): global keys, count keys.append(str(key).replace(&quot;'&quot;,'').replace(&quot;Key.space&quot;, ' ').replace(&quot;Key.shift&quot;, &quot;&quot;).lower()) print(keys) count += 1 def on_release(key): if key == Key.esc: return False lastKeystroke = time.time() with Listener(on_press, on_release =on_release) as listener: listener.join() </code></pre>
0non-cybersec
Stackexchange
375
1,269
3 monitors on a GT 430?. <p>Will a card like the <a href="http://www.guru3d.com/article/geforce-gt-430-review/" rel="nofollow">GT 430</a> which has 1x dvi, 1x vga, and 1x hdmi ports allow me to connect 3 monitors to it giving me a large desktop spanning 3 screens?</p> <p>Assuming I have 3 vga monitors and get the following adapters for the graphics card:</p> <pre><code>dvi to vga hdmi to vga </code></pre>
0non-cybersec
Stackexchange
143
411
How to use spot instance with amazon elastic beanstalk?. <p>I have one infra that use amazon elastic beanstalk to deploy my application. I need to scale my app adding some spot instances that EB do not support.</p> <p>So I create a second autoscaling from a launch configuration with spot instances. The autoscaling use the same load balancer created by beanstalk.</p> <p>To up instances with the last version of my app, I copy the user data from the original launch configuration (created with beanstalk) to the launch configuration with spot instances (created by me).</p> <p>This work fine, but:</p> <ol> <li><p>how to update spot instances that have come up from the second autoscaling when the beanstalk update instances managed by him with a new version of the app?</p> </li> <li><p>is there another way so easy as, and elegant, to use spot instances and enjoy the benefits of beanstalk?</p> </li> </ol> <p><strong>UPDATE</strong></p> <p>Elastic Beanstalk add support to spot instance since 2019... see: <a href="https://docs.aws.amazon.com/elasticbeanstalk/latest/relnotes/release-2019-11-25-spot.html" rel="nofollow noreferrer">https://docs.aws.amazon.com/elasticbeanstalk/latest/relnotes/release-2019-11-25-spot.html</a></p>
0non-cybersec
Stackexchange
349
1,234
Embedding knitr tex files on a bigger latex file. <p>There are already some question about about how to use Knitr's latex output within a new knitr document, using Rstudio and include or input and declaring some chunks as child.</p> <p>But what if I want to use a simple knitr output (such as an R xtable) from within an external LaTeX program, such as TeXStudio to build a larger project?</p> <p>For example, I could create a mytable.rnw file and generate this simple table</p> <pre><code>\documentclass{article} \begin{document} &lt;&lt;r table2, results='asis', message=T, echo=F&gt;&gt;= library(xtable) print( xtable( head(iris), caption = 'Iris data' ), comment = FALSE, type = 'latex' ) @ \end{document} </code></pre> <p><a href="https://i.stack.imgur.com/eFzF0.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/eFzF0.png" alt="enter image description here"></a></p> <p>And now I want to grab the generated mytable.tex file and use it in a bigger document from TexStudio, in the same folder.</p> <pre><code>\documentclass{article} \begin{document} First table: \include{mytable} Second table: \include{mytable} \end{document} </code></pre> <p>(Maybe is better to use input)<br> When I try to compile it I get many errors:</p> <pre><code>Can be used only in preamble. \documentclass Can be used only in preamble. \documentclass{article}\usepackage Can be used only in preamble. ...ss{article}\usepackage[]{graphicx}\usepackage Undefined control sequence. \definecolor Can be used only in preamble. \usepackage Undefined control sequence. \definecolor Undefined control sequence. \definecolor Undefined control sequence. \definecolor Undefined control sequence. \definecolor Can be used only in preamble. \usepackage Can be used only in preamble. ...eExists{upquote.sty}{\usepackage{upquote}}{} Can be used only in preamble. \begin{document} </code></pre> <p>I guess the problem arises because knitr ouput includes a lot of preamble information that can't be included within the document body, not only usepackage directives but also a lot of fie-tune information about colors, tables...</p> <p>What's the proper way do it? How to force Rstudio's knitr to output only the proper information?<br> Or how to force my main latex document (from TexStudio) to correct the problem?</p> <p>If we have to do it many times is there any easy way to include that preamble in the main tex document without going manually one by one.<br> Or even worse, some genetared outputs may contain incompatible preambles.</p>
0non-cybersec
Stackexchange
762
2,561
RelativeSource and Popup. <p>The problem is that <code>RelativeSource</code> does not work in the following case. I use silverlight 5.</p> <pre><code>//From MainPage.xaml &lt;Grid x:Name="LayoutRoot" Background="White" Height="100" Width="200"&gt; &lt;Popup IsOpen="True"&gt; &lt;TextBlock Text="{Binding Path=DataContext, RelativeSource={RelativeSource AncestorType=Grid}}" /&gt; &lt;/Popup&gt; &lt;/Grid&gt; //From MainPage.xaml.cs public MainPage() { InitializeComponent(); DataContext = "ololo"; } </code></pre> <p>If I set a breakpoint on the binding, I'll get Error:</p> <blockquote> <p>System.Exception: BindingExpression_CannotFindAncestor.</p> </blockquote> <p>If I use <code>ElementName=LayoutRoot</code> instead of <code>RelativeSource</code>, everything will be OK.</p> <p>Why does the relative source binding not work?</p>
0non-cybersec
Stackexchange
294
868
How to use spot instance with amazon elastic beanstalk?. <p>I have one infra that use amazon elastic beanstalk to deploy my application. I need to scale my app adding some spot instances that EB do not support.</p> <p>So I create a second autoscaling from a launch configuration with spot instances. The autoscaling use the same load balancer created by beanstalk.</p> <p>To up instances with the last version of my app, I copy the user data from the original launch configuration (created with beanstalk) to the launch configuration with spot instances (created by me).</p> <p>This work fine, but:</p> <ol> <li><p>how to update spot instances that have come up from the second autoscaling when the beanstalk update instances managed by him with a new version of the app?</p> </li> <li><p>is there another way so easy as, and elegant, to use spot instances and enjoy the benefits of beanstalk?</p> </li> </ol> <p><strong>UPDATE</strong></p> <p>Elastic Beanstalk add support to spot instance since 2019... see: <a href="https://docs.aws.amazon.com/elasticbeanstalk/latest/relnotes/release-2019-11-25-spot.html" rel="nofollow noreferrer">https://docs.aws.amazon.com/elasticbeanstalk/latest/relnotes/release-2019-11-25-spot.html</a></p>
0non-cybersec
Stackexchange
349
1,234
CRM SDK OrganizationServiceContext null navigation properties on entity. <p>Trying to migrate an existing solution away from the deprecated Microsoft.Xrm.Client namespace to just use the generated service context from <code>CrmSvcUtil</code> using CrmSDK 9.0.0.5.</p> <p>Previously we were using <code>Microsoft.Xrm.Client.CodeGeneration.CodeCustomization</code> to get a lazily loaded context.</p> <p>I have two copies of the same solution and have been working through some of the API changes.</p> <p>I have enabled Proxy Types</p> <pre><code>client.OrganizationServiceProxy.EnableProxyTypes(); </code></pre> <p>Which to my understanding switched it to act in a lazily-loaded manner. However, none of the navigation properties are loading as expected.</p> <p>The few blog posts that I've found around this shift to <code>CrmServiceClient</code> etc suggest that even without lazy loading I should be able to load the property manually with a call to <code>Entity.LoadProperty()</code> which will either load the property or refresh the data. However, after doing that the navigation property is still null (specifically I'm trying to use a Contact navigation property). When I look through the <code>RelatedEntities</code> collection it is also empty.</p> <p>I know that the entity has a related contact item as if I use a context generated with <code>Microsoft.Xrm.Client.CodeGeneration.CodeCustomization</code> it returns it and I can also see it in CRM itself using an advanced search.</p> <pre><code>var connectionUri = ConfigurationManager.ConnectionStrings["Xrm"].ConnectionString; var client = new CrmServiceClient(connectionUri); client.OrganizationServiceProxy.EnableProxyTypes(); var context = new XrmServiceContext(client); var result = context.new_applicationSet.FirstOrDefault(x =&gt; x.new_applicantid.Id == CurrentUserId); //result.Contact is null context.LoadProperty(result, "Contact"); //result.Contact is still null //result.RelatedEntities is empty </code></pre>
0non-cybersec
Stackexchange
517
1,994
Find the limit of the sequence involving integral. <blockquote> <p>Let $f:[0,1] \rightarrow [0,1]$ increasing function and</p> <p>$a_n=\int_{0}^{1} \frac {1+(f(x)^n}{1+(f(x))^{n+1}} dx \tag 1$</p> <p>Prove $a_n$ is convergent and find the limit.</p> </blockquote> <hr> <p>It's easy to prove $a_n \ge 1$ and $a_n$ is decreasing, therefore is convergent. By taking $f$ identical zero, we get $a_n=1, \forall n$ hence the limit is $1$. If the limit is not dependent on $f$ then I have to prove the limit is $1$ for all functions, but I can't figure out how to do it. </p>
0non-cybersec
Stackexchange
220
583
Ubuntu has been replaced by UEFI ST200.... : Partition 1 in boot sequence. <p>I recently upgraded my Ubuntu 18.04 LTS to 20.04 on my dell laptop which has a dual boot with windows 10. After rebooting for the first time it led me to the GRUB menu and when I selected Ubuntu the screen blacked out. Then I tried using the Dell OS Recovery Assistant to fix any issues. I don't know whether it was because if this or any other issue , now the boot sequence is showing UEFI ST200.... : Partition 1 and Windows instead of Windows and Ubuntu. I can't even see the GRUB menu. The Ubuntu option has been replaced by this UEFI option in the boot seequence.Please help.</p>
0non-cybersec
Stackexchange
162
663
json formatting with moshi. <p>Does anyone know a way to get moshi to produce a multi-line json with indentation ( for human consumption in the context of a config.json ) so from:</p> <pre><code>{"max_additional_random_time_between_checks":180,"min_time_between_checks":60} </code></pre> <p>to something like this:</p> <pre><code>{ "max_additional_random_time_between_checks":180, "min_time_between_checks":60 } </code></pre> <p>I know other json-writer implementations can do so - but I would like to stick to moshi here for consistency </p>
0non-cybersec
Stackexchange
176
554
How to use spot instance with amazon elastic beanstalk?. <p>I have one infra that use amazon elastic beanstalk to deploy my application. I need to scale my app adding some spot instances that EB do not support.</p> <p>So I create a second autoscaling from a launch configuration with spot instances. The autoscaling use the same load balancer created by beanstalk.</p> <p>To up instances with the last version of my app, I copy the user data from the original launch configuration (created with beanstalk) to the launch configuration with spot instances (created by me).</p> <p>This work fine, but:</p> <ol> <li><p>how to update spot instances that have come up from the second autoscaling when the beanstalk update instances managed by him with a new version of the app?</p> </li> <li><p>is there another way so easy as, and elegant, to use spot instances and enjoy the benefits of beanstalk?</p> </li> </ol> <p><strong>UPDATE</strong></p> <p>Elastic Beanstalk add support to spot instance since 2019... see: <a href="https://docs.aws.amazon.com/elasticbeanstalk/latest/relnotes/release-2019-11-25-spot.html" rel="nofollow noreferrer">https://docs.aws.amazon.com/elasticbeanstalk/latest/relnotes/release-2019-11-25-spot.html</a></p>
0non-cybersec
Stackexchange
349
1,234
SBT Scala cross versions, with aggregation and dependencies. <p>I am struggling with how <code>crossScalaVersions</code> works with subprojects.</p> <p>I have a project that compiles with 2.10 (foo) and a project that compiles with 2.11 (bar). They share a cross compiled project (common).</p> <p>How can I compile projects foo and bar?</p> <hr> <p><strong>build.sbt</strong></p> <pre><code>lazy val root = (project in file(".")).aggregate(foo, bar).settings( crossScalaVersions := Seq("2.10.4", "2.11.4") ) lazy val foo = (project in file("foo")).dependsOn(common).settings( crossScalaVersions := Seq("2.10.4"), scalaVersion := "2.10.4" ) lazy val bar = (project in file("bar")).dependsOn(common).settings( crossScalaVersions := Seq("2.11.4"), scalaVersion := "2.11.4" ) lazy val common = (project in file("common")).settings( crossScalaVersions := Seq("2.10.4", "2.11.4") ) </code></pre> <p><strong>project/build.properties</strong></p> <pre><code>sbt.version=0.13.7 </code></pre> <p><strong>foo/src/main/scala/Foo.scala</strong></p> <pre><code>object Foo { &lt;xml&gt;{new C}&lt;/xml&gt; } </code></pre> <p><strong>bar/src/main/scala/Bar.scala</strong></p> <pre><code>case class Bar(a: C, b: C, c: C, d: C, e: C, f: C, g: C, h: C, i: C, j: C, k: C, l: C, m: C, n: C, o: C, p: C, q: C, r: C, s: C, t: C, u: C, v: C, w: C, x: C, y: C, z: C) </code></pre> <p><strong>common/src/main/scala/Common.scala</strong></p> <pre><code>class C {} </code></pre> <hr> <p><strong>Attempt 1</strong></p> <pre><code>$ sbt compile [info] Resolving jline#jline;2.12 ... [warn] :::::::::::::::::::::::::::::::::::::::::::::: [warn] :: UNRESOLVED DEPENDENCIES :: [warn] :::::::::::::::::::::::::::::::::::::::::::::: [warn] :: common#common_2.11;0.1-SNAPSHOT: not found [warn] :::::::::::::::::::::::::::::::::::::::::::::: [warn] [warn] Note: Unresolved dependencies path: [warn] common:common_2.11:0.1-SNAPSHOT [warn] +- bar:bar_2.11:0.1-SNAPSHOT sbt.ResolveException: unresolved dependency: common#common_2.11;0.1-SNAPSHOT: not found </code></pre> <p><strong>Attempt 2</strong></p> <pre><code>$ sbt +compile [error] /home/paul/test/bar/src/main/scala/Bar.scala:1: Implementation restriction: case classes cannot have more than 22 parameters. [error] case class Bar(a: C, b: C, c: C, d: C, e: C, f: C, g: C, [error] ^ [error] one error found [error] (bar/compile:compile) Compilation failed </code></pre> <p><strong>Attempt 3</strong></p> <pre><code>$ sbt foo/compile bar/compile [warn] :::::::::::::::::::::::::::::::::::::::::::::: [warn] :: UNRESOLVED DEPENDENCIES :: [warn] :::::::::::::::::::::::::::::::::::::::::::::: [warn] :: common#common_2.11;0.1-SNAPSHOT: not found [warn] :::::::::::::::::::::::::::::::::::::::::::::: [warn] [warn] Note: Unresolved dependencies path: [warn] common:common_2.11:0.1-SNAPSHOT [warn] +- bar:bar_2.11:0.1-SNAPSHOT sbt.ResolveException: unresolved dependency: common#common_2.11;0.1-SNAPSHOT: not found </code></pre> <p><strong>Attempt 4</strong></p> <pre><code>$ sbt +foo/compile +bar/compile [error] /home/paul/test3/foo/src/main/scala/Foo.scala:2: To compile XML syntax, the scala.xml package must be on the classpath. [error] Please see http://docs.scala-lang.org/overviews/core/scala-2.11.html#scala-xml. [error] &lt;xml&gt;{new C}&lt;/xml&gt; [error] ^ [error] one error found [error] (foo/compile:compile) Compilation failed </code></pre> <p><strong>Attempt 5</strong></p> <p>I even tried defining <code>common_2_10</code> and <code>common_2_11</code> projects with that same base directory but different scala versions. I recall reading that targets are namespaced by Scala version, but SBT says there is a conflict.</p> <pre><code>$ sbt [error] Overlapping output directories:/home/paul/test3/common/target: [error] ProjectRef(file:/home/paul/test3/,common_2_10) [error] ProjectRef(file:/home/paul/test3/,common_2_11) </code></pre> <hr> <p>The only thing I've gotten to work is manually specifying versions:</p> <pre><code>$ sbt ++2.10.4 foo/compile ++2.11.4 bar/compile </code></pre> <p>But this is a lot of commands, can never use parallelism, and obviates the whole use of (1) project aggregation and (2) cross building.</p> <p>Am I missing something fundamental about the intent of <code>crossScalaVersions</code>? Or is there a way to have it play well with the rest of SBT, and for me to compile my heterogeneous projects?</p>
0non-cybersec
Stackexchange
1,706
4,515
I just need everything to be better.. I foster for a rescue, and last week I pulled a ~12 week old shepherd mix puppy from the pound, who two days later tested positive for parvovirus. She has excellent vet care, but it's still touch and go at the moment. Firstly, I need her to be better. She's not bad enough to require full time hospitalization yet, but if she doesn't improve she will be soon. We caught it super early on Thursday, before she was even a little dehydrated, and while Friday was rough, she started perking up Saturday, and was almost back to normal yesterday. We thought the worst was over. Until last night when she started puking and couldn't stop. We're treating her as aggressively as possible. I'm with her around the clock, she's on iv fluids, meds, supplements. You name it, she's on it. But her tiny little body is tired, I don't know how much fight she has left in her. I just need her to be better. Second, I need the shelter she came from to be better. This puppy is one of now 4 we have pulled from there to test positive for parvo this week. They just don't give a fuck. When we called them after the second one tested positive, they just offered to put them down if we didn't want to try and save them. We're a rescue, of course we'll try to save them! They don't care. We found out that they switch dogs musical chairs style into different kennels while they clean. Might as well just throw them all in together then! In a place where dogs from all manner of backgrounds and medical history are housed together, there are much better ways to prevent the spread of disease. One of the dogs who tested positive sat in there for four fucking days with a leg so badly broken that it will require surgery. They were making him wait out his hold before letting us get him. They had him in a wire bottomed cage, so they didn't have to do anything but pull a tray out to clean, with his broken leg just dangling there. No help at all. Lastly, I need people to be better. I need people to be better to their dogs. Wherever this shepherd puppy came from, you can guarantee she didn't get any vaccinations because someone didn't want to spend the money. Then they took her to the sure death of the pound because they had changed their minds about her. The dog with the broken leg? Owner fucking surrendered. His owner didn't want to pay his vet bills, so he took him to the pound to die. Another dog we pulled this week has two tick diseases, heart worms, and is still lactating from giving birth. Where are the puppies? We don't know, the owner didn't bring them with her to the pound to die. The sheer amount of dogs that are waiting there hoping someone will save them makes me cry. Old dogs who've been with their family since puppyhood. Puppies that haven't even gotten a chance to live yet. Injured and sick dogs who's people have thrown them away like a broken toy. They all sit and wait for the person that they love more than anything on this earth to come save them, but they don't, and they die cold and alone with no understanding of why. I'm exhausted and I'm angry. I need everything to be better. In case anyone is wanting to see her, this is my little fighter [Stevie Nicks](http://imgur.com/vzxHXNQ). I name all my fosters after rock stars.
0non-cybersec
Reddit
773
3,296
Turn Off Object Caching in Entity Framework CTP5. <p>I am having trouble figuring out something with the Entity Framework Code First stuff in CTP 5. It is doing caching of objects and I don't want it to. For example, I load a page (working with an ASP.NET MVC site) which loads an object. I then go change the database. I re-load the page and the changes are not reflected. If I kill the site and rerun it then it obviously re-fetches. How do I, either generally for a type, or even for a particular query, tell it to always go get a new copy. I think it might have something to do with MergeOption but I'm having trouble finding examples that work with CTP 5. Thanks.</p>
0non-cybersec
Stackexchange
167
673
HTTP request for XML file. <p>I'm trying to use Flurry Analytics for my program on Android and I'm having trouble getting the xml file itself from the server.</p> <p>I'm getting close because in the Log Cat System.out tag I can get half of it for some reason and it says "XML Passing Exception = java.net.MalformedURLException: Protocol not found: ?xml version = 1.0 encoding="UTF-8" etc... until about half way through my xml code. Not sure what I'm doing wrong, I'm sending an HTTP get with the header requesting to accept the application/xml and it's not working properly. Any help is appreciated!</p> <pre><code>try { //HttpResponse response = client.execute(post); //HttpEntity r_entity = response.getEntity(); //String xmlString = EntityUtils.toString(r_entity); HttpClient client = new DefaultHttpClient(); String URL = "http://api.flurry.com/eventMetrics/Event?apiAccessCode=????&amp;apiKey=??????&amp;startDate=2011-2-28&amp;endDate=2011-3-1&amp;eventName=Tip%20Calculated"; HttpGet get = new HttpGet(URL); get.addHeader("Accept", "application/xml"); get.addHeader("Content-Type", "application/xml"); HttpResponse responsePost = client.execute(get); HttpEntity resEntity = responsePost.getEntity(); if (resEntity != null) { System.out.println("Not null!"); DocumentBuilderFactory dbf = DocumentBuilderFactory.newInstance(); DocumentBuilder db = dbf.newDocumentBuilder(); String responseXml = EntityUtils.toString(responsePost.getEntity()); Document doc = db.parse(responseXml); doc.getDocumentElement().normalize(); NodeList nodeList = doc.getElementsByTagName("eventMetrics"); for (int i = 0; i &lt; nodeList.getLength(); i++) { Node node = nodeList.item(i); Element fstElmnt = (Element) node; NodeList nameList = fstElmnt.getElementsByTagName("day"); Element dayElement = (Element) nameList.item(0); nameList = dayElement.getChildNodes(); countString = dayElement.getAttribute("totalCount"); System.out.println(countString); count = Integer.parseInt(countString); System.out.println(count); count += count; } } } catch (Exception e) { System.out.println("XML Passing Exception = " + e); } </code></pre>
0non-cybersec
Stackexchange
657
2,753
How to use spot instance with amazon elastic beanstalk?. <p>I have one infra that use amazon elastic beanstalk to deploy my application. I need to scale my app adding some spot instances that EB do not support.</p> <p>So I create a second autoscaling from a launch configuration with spot instances. The autoscaling use the same load balancer created by beanstalk.</p> <p>To up instances with the last version of my app, I copy the user data from the original launch configuration (created with beanstalk) to the launch configuration with spot instances (created by me).</p> <p>This work fine, but:</p> <ol> <li><p>how to update spot instances that have come up from the second autoscaling when the beanstalk update instances managed by him with a new version of the app?</p> </li> <li><p>is there another way so easy as, and elegant, to use spot instances and enjoy the benefits of beanstalk?</p> </li> </ol> <p><strong>UPDATE</strong></p> <p>Elastic Beanstalk add support to spot instance since 2019... see: <a href="https://docs.aws.amazon.com/elasticbeanstalk/latest/relnotes/release-2019-11-25-spot.html" rel="nofollow noreferrer">https://docs.aws.amazon.com/elasticbeanstalk/latest/relnotes/release-2019-11-25-spot.html</a></p>
0non-cybersec
Stackexchange
349
1,234
Can&#39;t access site over https using letsencrypt cert. <p>So we have <a href="http://m.site.perkelle.com/" rel="nofollow noreferrer">this</a> site (which is going to be replaced with a forum soon, therefore I need ssl) however when you <a href="https://m.site.perkelle.com/" rel="nofollow noreferrer">go to it using https</a> I time out. I am using apache2 on debian and have generated my SSL cert with getssl and letsencrypt. Here is my m.conf in my sites-enabled folder:</p> <pre><code>LoadModule ssl_module /usr/lib/apache2/modules/mod_ssl.so Listen 443 &lt;VirtualHost *:443&gt; ServerName m.site.perkelle.com ServerAdmin webmaster@localhost DocumentRoot /var/www/test/ ErrorLog ${APACHE_LOG_DIR}/mc.site.perkelle.com.error.log CustomLog ${APACHE_LOG_DIR}/mc.site.perkelle.com.access.log combined LogLevel warn SSLEngine on SSLCertificateFile /etc/ssl/mc.site.perkelle.com/mc.site.perkelle.com.crt SSLCertificateKeyFile /etc/ssl/mc.site.perkelle.com/mc.site.perkelle.com.key &lt;Directory /&gt; Options FollowSymLinks AllowOverride None &lt;/Directory&gt; &lt;Directory /var/www/test/&gt; Options Indexes FollowSymLinks MultiViews AllowOverride All Order allow,deny allow from all &lt;/Directory&gt; &lt;/VirtualHost&gt; </code></pre> <p>Thanks</p>
0non-cybersec
Stackexchange
465
1,387
What is best practice to use coroutine with fragment?. <p><strong>Description</strong> <br> I have TabLayout with multiple fragments. I want to save fragment data into Room DB on fragment change/swipe and display data to the user when it back to fragment.</p> <p><strong>Currently Using</strong> <br> Currently, I am using coroutine with <code>GlobalScope.launch</code> to save into a fragment and it is working fine.</p> <p><strong>Questions</strong> <br> 1. What is the best practice to use a coroutine with fragments to save data to DB on fragment change? <br> 2. It is good practice to use <code>GlobalScope.launch</code> on fragment change? <br> 3. if <code>GlobalScope.launch</code> is not good to use then what we can use instead of it?</p>
0non-cybersec
Stackexchange
212
752
How to use spot instance with amazon elastic beanstalk?. <p>I have one infra that use amazon elastic beanstalk to deploy my application. I need to scale my app adding some spot instances that EB do not support.</p> <p>So I create a second autoscaling from a launch configuration with spot instances. The autoscaling use the same load balancer created by beanstalk.</p> <p>To up instances with the last version of my app, I copy the user data from the original launch configuration (created with beanstalk) to the launch configuration with spot instances (created by me).</p> <p>This work fine, but:</p> <ol> <li><p>how to update spot instances that have come up from the second autoscaling when the beanstalk update instances managed by him with a new version of the app?</p> </li> <li><p>is there another way so easy as, and elegant, to use spot instances and enjoy the benefits of beanstalk?</p> </li> </ol> <p><strong>UPDATE</strong></p> <p>Elastic Beanstalk add support to spot instance since 2019... see: <a href="https://docs.aws.amazon.com/elasticbeanstalk/latest/relnotes/release-2019-11-25-spot.html" rel="nofollow noreferrer">https://docs.aws.amazon.com/elasticbeanstalk/latest/relnotes/release-2019-11-25-spot.html</a></p>
0non-cybersec
Stackexchange
349
1,234
How do I make my boyfriend smile again?. F (me, 21) and M (21) have been together 3.5 years. Up until two weeks ago, everything was great. Then I entered PMS she-devil mode. Violent mood swings, fits of crying for no apparent reason, constant anxiety and depression that often has me thinking suicidal thoughts. Unfortunately my periods aren't regular so PMS often lasts 2-3 weeks for me rather than a few days, and disappears once I get my actual period. I am kind of underweight and fucked up about food so that probably doesn't help. Anyway, our relationship is awesome for another 5 weeks and then repeat. I know it sounds very dramatic, but it's called PMDD and it sucks. So I know I have not been fun to be around. I've apologised and tried to keep my depression in, but about a week ago he said "he needed space" and "wanted time alone" because I was always around when he wasn't working and didn't have time to himself. It's the holidays so I don't have uni to distract me. I was hurt and upset because when I'm depressed I just want to sleep in his bed every night but I understood and we didn't see each other for 3 days. I thought it was good for him to see his friends and have fun but if he was just at home playing PS3 then I really wanted company. So after 3 days I caved and went over to his house but then the following days I exploded over something stupid and/or cried. I am so alone and tired and sick of feeling sad for the past few weeks. I feel like he is mean to suddenly want space just because I am no longer the perfect, put-together person I normally try my hardest to be. I've tried telling him that I need him and I just want to held but it seems like he just finds that pathetic and wants me even less. I wish I actually made him happy but it's so hard when I can't even be happy myself. I feel like a piece of furniture he doesn't even look at.
0non-cybersec
Reddit
442
1,879
How to use spot instance with amazon elastic beanstalk?. <p>I have one infra that use amazon elastic beanstalk to deploy my application. I need to scale my app adding some spot instances that EB do not support.</p> <p>So I create a second autoscaling from a launch configuration with spot instances. The autoscaling use the same load balancer created by beanstalk.</p> <p>To up instances with the last version of my app, I copy the user data from the original launch configuration (created with beanstalk) to the launch configuration with spot instances (created by me).</p> <p>This work fine, but:</p> <ol> <li><p>how to update spot instances that have come up from the second autoscaling when the beanstalk update instances managed by him with a new version of the app?</p> </li> <li><p>is there another way so easy as, and elegant, to use spot instances and enjoy the benefits of beanstalk?</p> </li> </ol> <p><strong>UPDATE</strong></p> <p>Elastic Beanstalk add support to spot instance since 2019... see: <a href="https://docs.aws.amazon.com/elasticbeanstalk/latest/relnotes/release-2019-11-25-spot.html" rel="nofollow noreferrer">https://docs.aws.amazon.com/elasticbeanstalk/latest/relnotes/release-2019-11-25-spot.html</a></p>
0non-cybersec
Stackexchange
349
1,234
Cassandra syndrome. I'll never forget her. She was found wandering aimlessly on the street in her white garment before collapsing, and eventually through a long chain of institutes that didn't know what to do with her, sent to my clinic. She didn't say much, nor did she want to speak at all. I decided to take a slow approach and allow her to come to her senses. I decided to do what I did with all my patients that didn't want to talk. I gave her a warm bed and treated her like a friend who was simply on a visit in my house. I went to the mall with her, bought her new clothes, and took her out for dinner. It was highly inapproriate perhaps, and definitely a breach in the standard of care, but it was the only method I saw to achieve what those before me couldn't do: Have her speak. She had the weirdest story I had ever heard in my career as a psychiatrist. She must have been a paranoid schizophrenic. It was insane, and I shouldn't have gone along with it, but I couldn't help myself. Her story didn't make sense. She claimed to have escaped from an underground building, where she had been kept her entire life. Kept in a sterile hospital-like room, she last saw her mother when she was a child, never knowing what happened to her. Numerous questions went through my head, looking for the one question that she couldn't answer. "So, how did you escape then?" I asked her. "I put a piece of paper in the ridge of locker where they kept all the keys in. When they were gone, I quickly opened the locker, grabbed a bunch of keys and headed out. I walked through a narrow corridor, found a large door, opened it and found myself in an underground metro tunnel, that I followed until I found a metro station and followed the people there. I then asked a truck driver to take me with him to the next city he stopped at." "Alright, but why did they keep you there?" I asked. "Experiments." She answered. "They explained to me that I have special gifts that allow me to predict things that others can't see." She must have been mixing fact with fiction, distorting her experiences in the mental care system, seeking to come up with an explanation for the things that didn't make sense to her. Perhaps she was a homeless woman, who suddenly became absorbed into the mental healthcare system, and didn't know what was happening so rapidly, being transferred from clinic to clinic. "So why do you have these special gifts?" I asked her. She was silent for a moment, before responding: "It's part of my heritage. My grandparents are Tibetan and Scandinavian. My parents are both of mixed race. They explained to me that I carried both the natural abilities found in people of Scandinavian and Tibetan ancestry. In both these people, the abilities manifest themselves in a minority, who do not seem out of the ordinary. They're the odd ones, and they tend to feel attracted to religion and the new age. In Tibet, they would become monks. In Scandinavia, you're most likely to find them doing Tarot card readings or following some neopagan movement. If you happen to inherit the abilities of both people, they theorized the effects would amplify each other." Her story seemed ridiculous. And yet her appearance was mesmerizing, and her beauty exceptional. Piercing dark blue eyes in a person who otherwise seemed hispanic. Could it be she was telling the truth about her ancestry? "So what do you know about the rest of your family then?" I asked her. "Not much. I had three older brothers according to my mother, but I have never met them. she claims they were removed from her after taking tests. She never saw them afterwards." "About these predictions, how does this happen?" I asked her. "I don't know. They tell me to lay down and relax, and to listen to their instructions. That's when I forgot everything, and the next thing I remember I wake up again." She answered. "Hypnotism." I thought to myself. It was worth a shot. I told her to lay down, relax, and listen to my instructions. Over the week I tried this multiple times, but nothing out of the ordinary happened. Until I decided to take another approach. "Visualize a large wooden door. When you open it, you enter a small room that looks like an elevator. It can be any room you like, decorated in any way you want. Visualize a room where you feel comfortable. And tell me when you are ready to go further." After her permission to continue I told her to visualize a calender hanging on the wall. "Tell me, what year does it state?" I asked. "2038..." She answered. I told her to leave the room when she feels ready to do so, and describe what she sees. She had clear visions, in which she could describe in great detail the streets she walked in, the clothes of the people, the scents she smelled and the vehicles she saw. The world she described seemed rich and pleasant, though the people were stressful and always in a hurry. I tried this method multiple times. And always, she would describe different worlds, in various years of the 21st century. Sometimes the world she entered would look like a peaceful medieval village, but on further inspection, there would be solar panels on the roofs, and computers and technical gadgets in people's houses. Sometimes the world would have giant skyscrapers, where billions of people would be housed. Once she described entering a dance club, where loud and harsh music was played. The people wore bright clothing, large shoes and strange makeup, and swallowed various pills. I laughed to myself and told myself I would hopefully be dead before that trend would become popular. And sometimes, her visions disturbed me. Sometimes she would describe a world that wasn't peaceful at all. A world with horrifically deformed children, and people who wore wigs as a result of being bald. People had gas masks, and food was grown from fungi in special water tanks, because the land was apparently barren. Impending rain was announced through speakers, and people would hurry inside before the rain would come. People were paid large amounts of money by government and private charities to have children, because most people didn't want to. This vision only happened once, and I carried on with the hypnotism, thinking it must have been the result of a bad mood, or her menstrual cycle, or something along those lines. My colleagues were insisting I was too obsessed with this patient, with one colleague arguing that I should take another patient from him. A young PHD student suffering from depression. He didn't know what to do with him, and wanted me to treat the patient instead. I didn't want to have another patient. "A depressed PHD student? Why should I care? Show me a PHD student who *isn't* depressed." I told him, cynically laughing about my own joke. My colleague had only recently started working here, and seemed insecure about his own abilties to deal with patients by himself. I didn't think he needed help with this man, but I was wrong. Last week, we found him hanging in his room. He didn't seem like a suicide risk, and so we were shocked. I didn't understand why he would kill himself. I felt guilt towards my collague for not helping him. The patient really didn't seem so difficult to me. The patient had a computer in his room in our clinic, and I looked at his work. Apparently, he was a theoretical physicist. He was engaged in fierce debates with his professor about an experimental new type of nuclear reactor that his professor believed could solve our energy crisis. He argued that the professor underestimated the potential fallout as a result of an accident by three orders of magnitude. Through long and difficult calculations in his emails he attempted to demonstrate that an accident could lead to the release of a large mass of radioactive material that would eat itself through the concrete and into the ground, releasing increasingly large amounts of radioactive material. The last email he received from his professor said that he would not have to show up on monday, and would need to find someone else to guide him in his PHD trajectory. The email was sent 2 hours before our personnel found him hanging. I'm a psychiatrist, not a physicist, and I don't know much about radiation. What I do know is that I've never managed to treat my own patient. After the PHD student had killed himself, I tried to bring my patient under hypnosis a few more times, but every time I had to stop. She would describe the same things she had described earlier. The people would always look different, and the cities would never be the same, but she always described the same things. Parents carrying deformed children. Bald people wearing wigs. Gas masks. If I asked her to go further, she would start crying uncontrollably, and I would release her out of her hypnosis. She was eventually taken away from me by a superior, who grew suspicious of my obsession. I have no idea where she is now. All I know is that this is the only time I have failed in my 42 year long career.
0non-cybersec
Reddit
1,973
9,028
How to compute gcd of two polynomials efficiently. <p>I have two polynomials <span class="math-container">$A=x^4+x^2+1$</span> And <span class="math-container">$B=x^4-x^2-2x-1$</span></p> <p>I need to compute the gcd of <span class="math-container">$A$</span> and <span class="math-container">$B$</span> but when I do the regular Euclidean way I get fractions and it gets confusing, are you somehow able to use a SylvesterMatrix to find the gcd or am I probably doing something wrong?</p> <p>I don’t know how to format properly yet so apologies </p>
0non-cybersec
Stackexchange
179
552
Cannot find entry file index.android.js in any of the roots React Native Navigation. <p>I'm new using React Native Navigation and I'm having a problem during the installation process for Android.</p> <p>So i installed the package, and followed instructions until step 5. Once there i add the code to MainApplication.java, but after doing that, i execute react-native run-android and i get the following error.</p> <p><a href="https://i.stack.imgur.com/joJCG.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/joJCG.png" alt="enter image description here"></a></p> <p>I read in other posts that the problem could be solved by executing <code>npm start -- --reset-cache</code> but that doesn't work for me.</p> <p>Im using react native navigation v1.1.298</p> <p>Any help will be appreciated.</p> <p>Thank you.</p>
0non-cybersec
Stackexchange
248
837
How to use spot instance with amazon elastic beanstalk?. <p>I have one infra that use amazon elastic beanstalk to deploy my application. I need to scale my app adding some spot instances that EB do not support.</p> <p>So I create a second autoscaling from a launch configuration with spot instances. The autoscaling use the same load balancer created by beanstalk.</p> <p>To up instances with the last version of my app, I copy the user data from the original launch configuration (created with beanstalk) to the launch configuration with spot instances (created by me).</p> <p>This work fine, but:</p> <ol> <li><p>how to update spot instances that have come up from the second autoscaling when the beanstalk update instances managed by him with a new version of the app?</p> </li> <li><p>is there another way so easy as, and elegant, to use spot instances and enjoy the benefits of beanstalk?</p> </li> </ol> <p><strong>UPDATE</strong></p> <p>Elastic Beanstalk add support to spot instance since 2019... see: <a href="https://docs.aws.amazon.com/elasticbeanstalk/latest/relnotes/release-2019-11-25-spot.html" rel="nofollow noreferrer">https://docs.aws.amazon.com/elasticbeanstalk/latest/relnotes/release-2019-11-25-spot.html</a></p>
0non-cybersec
Stackexchange
349
1,234
Run &quot;mvn clean install&quot; in Eclipse. <p>Title says it all.</p> <p>I want to run the console command <code>mvn clean install</code> on my project in question <em>directly</em> in Eclipse, not from the command line.</p> <p>It would just be more convenient for me to do this, as I already have the project open in Eclipse. It would save me time if I would not have to navigate to the folder in Windows Explorer.</p> <p>Not a big deal if I can't do this... but can I? And if so, how?</p> <p>It would be great if I could just right click my project, then click "mvn clean install" from the context menu.</p>
0non-cybersec
Stackexchange
185
618
Arrow keys don&#39;t work in a remote ssh shell on Juniper Junos switch through tmux - how to fix?. <p>In a Linux system when I connect to a Junos switch via SSH I am unable to use the arrow keys for navigation. Instead I have to use i.e. <kbd>Ctrl</kbd> + <kbd>P</kbd> instead of the up key.</p> <p>If I just use a pure SSH connection arrow keys work as expected i.e. not doing nothing. When SSH-ing into a Cisco switch or Linux system the problem doesn't occur.</p> <p>This is a very annoying behaviour. Why are these keys not working and how can I fix it?</p>
0non-cybersec
Stackexchange
168
565
How do I Moq the ApplicationDbContext in .NET Core. <p>I'm trying out .NET Core for the first time and seeing how Moq can be used in unit testing. Out of the box, the controllers are created where the ApplicationDbContext are parameters to the constructor like this:</p> <pre><code>public class MoviesController : Controller { private readonly ApplicationDbContext _context; public MoviesController(ApplicationDbContext context) { _context = context; } </code></pre> <p>Here is the unit test that I started with when testing the controller:</p> <pre><code>[TestClass] public class MvcMoviesControllerTests { [TestMethod] public async Task MoviesControllerIndex() { var mockContext = new Mock&lt;ApplicationDbContext&gt;(); var controller = new MoviesController(mockContext.Object); // Act var result = await controller.Index(); // Assert Assert.IsInstanceOfType(result, typeof(ViewResult)); } </code></pre> <p>But then I realized ApplicationDbContext is a concrete class AND it does not have a parameterless constructor so the test won't work. It gives me error: Could not find parameterless constructor.</p> <p>Perhaps this may be a question more aimed at Moq rather than it being related to .NET Core, but I'm also new to Moq so I'm not sure how to proceed. Here is how the ApplicationDbContext code was generated when I created the project:</p> <pre><code>public class ApplicationDbContext : IdentityDbContext&lt;ApplicationUser&gt; { public ApplicationDbContext(DbContextOptions&lt;ApplicationDbContext&gt; options) : base(options) { } protected override void OnModelCreating(ModelBuilder builder) { base.OnModelCreating(builder); // Customize the ASP.NET Identity model and override the defaults if needed. // For example, you can rename the ASP.NET Identity table names and more. // Add your customizations after calling base.OnModelCreating(builder); } public DbSet&lt;Movie&gt; Movie { get; set; } } </code></pre> <p>What do I need to change so that my unit test would succeed?</p> <p><strong>UPDATE:</strong></p> <p>I discovered from <a href="https://msdn.microsoft.com/en-us/magazine/mt703433.aspx" rel="noreferrer">https://msdn.microsoft.com/en-us/magazine/mt703433.aspx</a> that you can configure EF Core to use an in-memory database for unit testing. So I changed my unit test to look like this:</p> <pre><code> [TestMethod] public async Task MoviesControllerIndex() { var optionsBuilder = new DbContextOptionsBuilder&lt;ApplicationDbContext&gt;(); optionsBuilder.UseInMemoryDatabase(); var _dbContext = new ApplicationDbContext(optionsBuilder.Options); var controller = new MoviesController(_dbContext); // Act var result = await controller.Index(); // Assert Assert.IsInstanceOfType(result, typeof(ViewResult)); } </code></pre> <p>This test now succeeds. But is this the proper way of doing this? Obviously, I completely eliminated mocking the ApplicationDbContext with Moq! Or is there another solution to this problem using Moq.</p>
0non-cybersec
Stackexchange
849
3,228
Warning: Unnecessary HSTS header over HTTP. <p>I want to use <strong>https</strong>:// and <strong>non www.</strong> URL always. So I used the following code in my htaccess file. But i am getting an warning from <a href="https://hstspreload.org" rel="noreferrer">https://hstspreload.org</a></p> <pre><code>RewriteCond %{HTTPS} off RewriteRule .* https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301] RewriteCond %{HTTP_HOST} !^www\. RewriteRule .* https://www.%{HTTP_HOST}%{REQUEST_URI} [L,R=301] &lt;ifModule mod_headers.c&gt; Header always set Strict-Transport-Security "max-age=31536000; includeSubDomains; preload" &lt;/ifModule&gt; </code></pre> <p>Warning Message is given bellow : </p> <p><strong>Warning:</strong> Unnecessary HSTS header over HTTP<br/> The HTTP page at <a href="http://mysiteurl.com" rel="noreferrer">http://mysiteurl.com</a> sends an HSTS header. This has no effect over HTTP, and should be removed.</p> <p>Please help me to <strong>rid the above warning</strong>. I tried with the following code also but it does not work <a href="https://stackoverflow.com/questions/38235475/how-to-disable-hsts-header-with-http">#ref. topic</a> </p> <pre><code> Header always set Strict-Transport-Security "max-age=31536000; includeSubDomains; preload" env=HTTPS </code></pre>
0non-cybersec
Stackexchange
435
1,293
The distribution of a complex signal. <p>If I have a complex signal $$ y = h e^{j\phi} + n $$ where $ h \sim \mathcal C \mathcal N (0, \sigma_h^2) $ and $ n \sim \mathcal C \mathcal N (0, \sigma_n^2) $. </p> <p>With $ h = |h|e^{j\theta} = |h|\cos \theta + j|h|\sin \theta $ and $ n = n_r + j n_i $, I can rewrite $y$ as $$ y = |h| e^{j(\phi+\theta)} + n $$ and thus the real part of $y$ should be $$ y_r = |h| \cos(\phi + \theta) + n_r $$ </p> <p>Now my question is, how do I find the distribution (pdf) $ p(y_r; \theta)$ with these given information?<br> Should it be $ \mathcal N (0, \sigma_h^2 + \sigma_n^2) $ or $ \mathcal N (|h| \cos(\phi+\theta), \sigma_n^2)$ or anything else?</p> <p>note: 1. $h$ and $n$ are independent.</p>
0non-cybersec
Stackexchange
312
740
Exsitence of element of a certain order in an infinite abelian group. <p>I came up with the following question reading this(<a href="https://math.stackexchange.com/questions/1357205/finite-abelian-groups-question">Finite Abelian Groups question</a>).</p> <p>Let $G$ be an abelian group. Suppose there is an integer $n \ge 1$ such that $nG = 0$. Let $m$ be the smallest integer $\ge 1$ such that $m G = 0$.</p> <blockquote> <p>Is there an element in $G$ of the order $m$?</p> </blockquote>
0non-cybersec
Stackexchange
164
493
Perl for matching with regular expressions in Terminal?. <p>I'm trying to familiarize myself a little with <a href="http://en.wikipedia.org/wiki/Perl" rel="noreferrer">Perl</a> to use for <a href="http://en.wikipedia.org/wiki/Regular_expression" rel="noreferrer">regular expression</a> searches in <a href="https://en.wikipedia.org/wiki/Terminal_%28OS_X%29" rel="noreferrer">Terminal</a> (Mac). Now, I'm not really looking to learn Perl rigourously, just trying to find out how to do some simple regular expressions.</p> <p>But I can't figure out how to do this in Terminal:</p> <p>I'd like to be able to match expressions over several lines, and I'll take <a href="http://en.wikipedia.org/wiki/HTML" rel="noreferrer">HTML</a> tags as an example. PLEASE NOTE, that the HTML tag is just an example of something to match, and specifically something that goes over multiple lines. Whether matching HTML with regular expressionS is a good idea or not is not the issue. I just want to understand the syntax of matching with Perl on the command line!</p> <p>Say I want to match the entire <a href="http://en.wikipedia.org/wiki/HTML_element#Lists" rel="noreferrer">ul</a> tag here:</p> <pre><code>&lt;ul&gt; &lt;li&gt;item 1&lt;/li&gt; &lt;li&gt;item 2&lt;/li&gt; &lt;/ul&gt; </code></pre> <p>I would like to:</p> <ol> <li>Be able to match this in a file and output the match to the stdout (don't ask why, I would just want to to understand how it works :-))</li> <li>Be able to replace it with something else.</li> </ol> <p>For matching, I found something like this (using 'start' and 'end' as an example here from a simple text file when I was testing, but please give the example for the <code>ul</code> tag instead:</p> <pre><code>perl -wnE 'say $1 if /(start(.*?)end)/' test.txt </code></pre> <p>This matches a part, but only on one line. Surprisingly, adding the s at the end didn't work to make it "dotall" or "single-line mode", it still just matched one line...</p> <p>For replacing, I tried something like this:</p> <pre><code>perl -pe 's/start(.*?)end/replacement text/'s test.txt </code></pre> <p>This didn't work either...</p>
0non-cybersec
Stackexchange
681
2,148
Vue 2 hook ready. <p>Vue 2, Is there a lifecycle hook that actually refers to "finished rendering"? I want to put a loading screen when entering a page and it fades away and show the page content once Vue is finished loading everything, but I have tried most of the lifecycle hook but not working. Here is something I would try to do if <code>updated</code> refers to "finished rendering":</p> <pre><code>updated(){ this.loaded() }, methods:{ loaded(){ var vm = this; this.loading = false; } } </code></pre> <p>If there is not such a lifecycle hook, what would you suggest me to do instead? Thanks</p>
0non-cybersec
Stackexchange
176
618
Python HTTPS/SSL error:1407742E:SSL routines:SSL23_GET_SERVER_HELLO:tlsv1 alert protocol version. <p>I'm attempting to make a simple HTTPS connection to a REST API using python from CentOS 6.5. Installed is python-2.6.6-52.el6.x86_64 and openssl-1.0.1e-16.el6_5.7.x86_64. </p> <pre><code>#!/usr/bin/env python import httplib, json, urllib, urllib2 # Gets the session ID to host c = httplib.HTTPSConnection("10.10.1.1") c.request("GET", "/services/rest/V2/?method=authenticate&amp;username=myusername&amp;password=mypasswd&amp;format=json") response = c.getresponse() data = json.loads(response.read()) session_id = data['session_id'] print "Session Created. Session ID: " + session_id </code></pre> <p>However, its giving me this error:</p> <pre><code>Traceback (most recent call last): File "./test3.py", line 7, in &lt;module&gt; c.request("GET", "/services/rest/V2/?method=authenticate&amp;username=myusername&amp;password=mypasswd&amp;format=json") File "/usr/lib64/python2.6/httplib.py", line 914, in request self._send_request(method, url, body, headers) File "/usr/lib64/python2.6/httplib.py", line 951, in _send_request self.endheaders() File "/usr/lib64/python2.6/httplib.py", line 908, in endheaders self._send_output() File "/usr/lib64/python2.6/httplib.py", line 780, in _send_output self.send(msg) File "/usr/lib64/python2.6/httplib.py", line 739, in send self.connect() File "/usr/lib64/python2.6/httplib.py", line 1116, in connect self.sock = ssl.wrap_socket(sock, self.key_file, self.cert_file) File "/usr/lib64/python2.6/ssl.py", line 342, in wrap_socket suppress_ragged_eofs=suppress_ragged_eofs) File "/usr/lib64/python2.6/ssl.py", line 120, in __init__ self.do_handshake() File "/usr/lib64/python2.6/ssl.py", line 279, in do_handshake self._sslobj.do_handshake() ssl.SSLError: [Errno 1] _ssl.c:492: error:1407742E:SSL routines:SSL23_GET_SERVER_HELLO:tlsv1 alert protocol version </code></pre> <p>Is this an openssl/python compatibility issue? I've already got the latest python and openssl RPMs I can find and I'd rather not venture off the RPM reservation by compiling the latest tarball manually.</p>
0non-cybersec
Stackexchange
810
2,191
High kworker CPU usage on Ubuntu 18.04 (tried multiple things with no results). <p>A fresh 18.04 Ubuntu install on a Windows Surface Book 2 dual-booting Windows 10. The <code>kworker/0:0+kac</code> process never goes below 80% CPU. </p> <p><a href="https://i.stack.imgur.com/Wy37I.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/Wy37I.png" alt="enter image description here"></a></p> <p>I tried this <a href="https://askubuntu.com/questions/176565/why-does-kworker-cpu-usage-get-so-high">Why does kworker cpu usage get so high?</a> but I don't have any interrupts above 10, and when I disabled those ones it fixed nothing.</p>
0non-cybersec
Stackexchange
216
648
Why insist on rolling out an MSI package?. <p>I have created a program in Autohotkey, which creates a few shortcut keys that a whole company with 400 people wants to have installed permanently. The way I imagine the program to work is that a shortcut to the program is added to the Start menu under the Startup folder, so it is automatically and transparently started when the computer is started. The program will keep running all day.</p> <p>I am a freelancer with no access to the IT department, but indirectly I have seen emails that they insist on that I have to create an MSI file in order to roll the program out onto all these computers. The first issue I have with creating an MSI package is that I do not know how an MSI file can be created based on an .EXE file. The second is that they say that it is very costly for them to create such a file (I believe that means that it costs something like 20.000$ to get it done), therefore they do not want to make frequent updates, while I believe it is essential to be able to quickly adjust the program to new needs and fix bugs.</p> <p>On Wednesday, I will have a meeting with them, and I would therefore like to know what kind of arguments they might have for using MSI packages, and why they could not simply create a shortcut to my .EXE file on all these computers (this should not be too hard, should it?). The shortcut should point to the .EXE file, which is located on a file-server so one can simply replace it to update the program (the computers always have access to the file-servers, meaning that there are no laptops).</p> <p>What could their arguments be?</p>
0non-cybersec
Stackexchange
381
1,632
Why is height:auto not working on 2 floating elements?. <p>The <code>div#inner1</code> and <code>div#inner2</code> are inside the <code>div#outer</code>, but still the height of <code>div#outer</code> shows as 0px with <code>height:auto</code>.</p> <p>How do I get the height of the child elements for the outer div?</p> <p>This is my code:</p> <p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false"> <div class="snippet-code"> <pre class="snippet-code-css lang-css prettyprint-override"><code>#outer { width: 300px; height: auto; background: #ccc; } #inner1 { float: left; width: 100px; height: 100px; background: #f00; } #inner2 { float: left; width: 100px; height: 100px; background: #0f0; }</code></pre> <pre class="snippet-code-html lang-html prettyprint-override"><code>&lt;div id="outer"&gt; &lt;div id="inner1"&gt;&lt;/div&gt; &lt;div id="inner2"&gt;&lt;/div&gt; &lt;/div&gt;</code></pre> </div> </div> </p>
0non-cybersec
Stackexchange
391
1,015
Primefaces Chips Web Component. <p>I have a CRUD and I want to change the inputTexArea:</p> <pre><code>&lt;p:inputTextarea id="tags" value="#{myController.selected.tags}" /&gt; </code></pre> <p>To the new Primefaces <b>chips</b> component:</p> <pre><code>&lt;p:chips id="tags" value="#{myController.selected.tags}" /&gt; </code></pre> <p>An entity class excerpt:</p> <pre><code>@Lob @Size(max = 2147483647) @Column(name = "tags") private String tags; //GETTER AND SETTER OMITTED </code></pre> <p>The <strong>get</strong> method works fine, because the tags are displayed in the field as expected:</p> <pre><code>public List&lt;String&gt; getTags() { return Arrays.asList(tags.split(",")); } </code></pre> <p>But the <strong>set</strong> method is not, because when I click on Save, occurs an Exception:</p> <pre><code>public void setTags(List&lt;String&gt; tags) { this.tags = String.join(",", tags); } java.lang.ClassCastException: java.util.ArrayList cannot be cast to java.lang.CharSequence at org.hibernate.validator.internal.constraintvalidators.SizeValidatorForCharSequence.isValid(SizeValidatorForCharSequence.java:33) at org.hibernate.validator.internal.engine.constraintvalidation.ConstraintTree.validateSingleConstraint(ConstraintTree.java:281) </code></pre> <p>Can someone help me, please ?</p> <p>Thanks in advance.</p> <p>ps.: I've already asked this to Primefaces team (<a href="https://forum.primefaces.org/viewtopic.php?f=3&amp;t=51091" rel="nofollow noreferrer">https://forum.primefaces.org/viewtopic.php?f=3&amp;t=51091</a>), and a Primefaces core developer (Thomas Andraschko) orientated me to ask Hibernate validator team.</p>
0non-cybersec
Stackexchange
562
1,660
Death is never perfect. (Fan Art). http://imgur.com/a/QRoRa __________ "They were cursed, wicked, misguided, and violent. Some say the bullets that ended their lives cleansed away the darkness that had already consumed them. But every life is riddled with much complexity, and they were no exception. Despite this darkness, they have filled their lives with friends, rivals, family, and partners. Death, no matter how sparkly, cannot cleanse away darkness, only spread it. And so, Death may never be beautiful, and it may never be perfect." __________ #[Source](http://imalsoabignerd.tumblr.com/) [Higher Res!](http://imgur.com/a/5Ak6E#Lpl0Znm) ty /u/Gakioni ___________ Damn it I don't deserve gold! I cant even draw stick figures! Q_Q
0non-cybersec
Reddit
217
751
How to use spot instance with amazon elastic beanstalk?. <p>I have one infra that use amazon elastic beanstalk to deploy my application. I need to scale my app adding some spot instances that EB do not support.</p> <p>So I create a second autoscaling from a launch configuration with spot instances. The autoscaling use the same load balancer created by beanstalk.</p> <p>To up instances with the last version of my app, I copy the user data from the original launch configuration (created with beanstalk) to the launch configuration with spot instances (created by me).</p> <p>This work fine, but:</p> <ol> <li><p>how to update spot instances that have come up from the second autoscaling when the beanstalk update instances managed by him with a new version of the app?</p> </li> <li><p>is there another way so easy as, and elegant, to use spot instances and enjoy the benefits of beanstalk?</p> </li> </ol> <p><strong>UPDATE</strong></p> <p>Elastic Beanstalk add support to spot instance since 2019... see: <a href="https://docs.aws.amazon.com/elasticbeanstalk/latest/relnotes/release-2019-11-25-spot.html" rel="nofollow noreferrer">https://docs.aws.amazon.com/elasticbeanstalk/latest/relnotes/release-2019-11-25-spot.html</a></p>
0non-cybersec
Stackexchange
349
1,234
unmet dependencies with linux-tools-common. <p>When i try to install a (random) package i got the following error.</p> <pre><code>The following packages have unmet dependencies: linux-tools-3.2.0-24 : Depends: linux-tools-common but it is not going to be installed E: Unmet dependencies. Try 'apt-get -f install' with no packages (or specify a solution). </code></pre> <p>I tried :</p> <pre><code>apt-get -f install </code></pre> <p>And i got the following error message :</p> <pre><code>The following extra packages will be installed: linux-tools-common The following NEW packages will be installed: linux-tools-common 0 upgraded, 1 newly installed, 0 to remove and 36 not upgraded. 2 not fully installed or removed. Need to get 0 B/69.3 kB of archives. After this operation, 183 kB of additional disk space will be used. Do you want to continue [Y/n]? Y (Reading database ... 183468 files and directories currently installed.) Unpacking linux-tools-common (from .../linux-tools-common_3.2.0-25.40_all.deb) ... dpkg: error processing /var/cache/apt/archives/linux-tools-common_3.2.0-25.40_all.deb (--unpack): trying to overwrite '/usr/share/man/man1/perf.1.gz', which is also in package linux-base 3.4ubuntu2 Processing triggers for man-db ... Errors were encountered while processing: /var/cache/apt/archives/linux-tools-common_3.2.0-25.40_all.deb E: Sub-process /usr/bin/dpkg returned an error code (1) </code></pre> <p>What should I do next?</p> <hr> <p><strong>EDIT:</strong></p> <p><a href="https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1008713" rel="nofollow">https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1008713</a></p> <p><strong>EDIT2:</strong></p> <p>I manage to remove the error rebooting ubuntu in the recovery mode and i ran dpkg Repair broken Package</p>
0non-cybersec
Stackexchange
587
1,802
How to use spot instance with amazon elastic beanstalk?. <p>I have one infra that use amazon elastic beanstalk to deploy my application. I need to scale my app adding some spot instances that EB do not support.</p> <p>So I create a second autoscaling from a launch configuration with spot instances. The autoscaling use the same load balancer created by beanstalk.</p> <p>To up instances with the last version of my app, I copy the user data from the original launch configuration (created with beanstalk) to the launch configuration with spot instances (created by me).</p> <p>This work fine, but:</p> <ol> <li><p>how to update spot instances that have come up from the second autoscaling when the beanstalk update instances managed by him with a new version of the app?</p> </li> <li><p>is there another way so easy as, and elegant, to use spot instances and enjoy the benefits of beanstalk?</p> </li> </ol> <p><strong>UPDATE</strong></p> <p>Elastic Beanstalk add support to spot instance since 2019... see: <a href="https://docs.aws.amazon.com/elasticbeanstalk/latest/relnotes/release-2019-11-25-spot.html" rel="nofollow noreferrer">https://docs.aws.amazon.com/elasticbeanstalk/latest/relnotes/release-2019-11-25-spot.html</a></p>
0non-cybersec
Stackexchange
349
1,234
Cotangent sheaf of a blow up. <p>It's well known that for a nonsingular variety $X$ and a nonsingular subvariety $Y$ with $\text{codim}(Y,X) \ge 2$, we can compute the canonical sheaf of $\widetilde{X}$ (the blow up of $X$ along $Y$) as the pullback of $\omega_{X}$ tensored with a power of the invertible sheaf associated to the preimage of $Y$ under the blowup map. </p> <p>My question is the following: Are there situations where $\Omega^{1}_{\widetilde{X}}$ can be related to the pullback of $\Omega^{1}_{X}$ via a similar isomorphism, and if not, why?</p>
0non-cybersec
Stackexchange
170
562
show last number in x-axis data on pgfplot. <p>How can I get the last number on the x-axis (in this case 40^7) to show up on the plot also? </p> <p>Here is my code:</p> <pre><code>\documentclass[11pt]{book} \usepackage{graphicx} \usepackage{tikz} \usepackage{float} \usepackage{pgfplots,pgfplotstable, booktabs} \pgfplotsset{compat=1.8} \begin{filecontents*}{nano.csv} 100 -79.374 101.801 -79.858 103.634 -78.587 105.501 -79.077 107.401 -78.735 109.335 -81.799 111.304 -82.298 34884753.53 -150.333 38828202.58 -152.993 39527488.85 -154.021 40000000 -153.788 \end{filecontents*} \pgfplotsset{minor grid style={dashed,red}} \pgfplotsset{major grid style={dotted,green!50!black}} \begin{document} \begin{figure}[H] \begin{center} \begin{tikzpicture} \begin{semilogxaxis}[xmin = 100, xmax = 40e6, scale = .75, width=20cm,height=10cm, title = {\emph{(a) $P_{T}$ over different samples}}, x tick label style={ /pgf/number format/fixed, /tikz/.cd }, xlabel={\emph{Offset Frequency (Hz)}},ylabel={\emph{Phase Noise (dBc/Hz)}}] \addplot [blue]table[x index=0,y index=1,col sep=space] {nano.csv}; \end{semilogxaxis} \end{tikzpicture} \caption[Plot showing (a) position ${\mathbf{P_{T}}}$.]{Plot showing position ${\mathbf{P_{T}}}$.}\label{noise} \end{center} \end{figure} \end{document} </code></pre>
0non-cybersec
Stackexchange
520
1,325
How to set boolean variable on compile time using go build -ldflags. <p>I have a go program <code>test.go</code></p> <pre><code>package main import "fmt" var DEBUG_MODE bool = true func main() { fmt.Println(DEBUG_MODE) } </code></pre> <p>I want to set the <code>DEBUG_MODE</code> variable on the <a href="http://jaytaylor.com/notes/node/1373561889000.html" rel="noreferrer">compile</a> time to <code>false</code></p> <p>I've tried:</p> <pre><code>go build -ldflags "-X main.DEBUG_MODE 0" test.go &amp;&amp; ./test true kyz@s497:18:49:32:/tmp$ go build -ldflags "-X main.DEBUG_MODE false" test.go &amp;&amp; ./test true kyz@s497:18:49:41:/tmp$ go build -ldflags "-X main.DEBUG_MODE 0x000000000000" test.go &amp;&amp; ./test true </code></pre> <p>It doesn't work, but it works when <code>DEBUG_MODE</code> is a <code>string</code></p>
0non-cybersec
Stackexchange
355
1,500
Matrix congruence. <p>In the answer of to the question <a href="https://math.stackexchange.com/questions/811387/characterization-of-positive-definite-matrix-with-principal-minors#">Characterization of positive definite matrix with principal minors</a> I saw such assertion: <span class="math-container">$Ak=LkDkL∗k \implies Ak$</span> is congruent to Dk . Tell me please, why is it right? Matrices are similar when <span class="math-container">$A=LDL^-1$</span>, not <span class="math-container">$L*$</span>, isn't it? And, regarding to another answer, why "if hermitian matrix A is not positive definite, it must possess at least two(???) negative eigenvalues"? Why not only 1? It has some connection with complex field? </p>
0non-cybersec
Stackexchange
219
735
How to use spot instance with amazon elastic beanstalk?. <p>I have one infra that use amazon elastic beanstalk to deploy my application. I need to scale my app adding some spot instances that EB do not support.</p> <p>So I create a second autoscaling from a launch configuration with spot instances. The autoscaling use the same load balancer created by beanstalk.</p> <p>To up instances with the last version of my app, I copy the user data from the original launch configuration (created with beanstalk) to the launch configuration with spot instances (created by me).</p> <p>This work fine, but:</p> <ol> <li><p>how to update spot instances that have come up from the second autoscaling when the beanstalk update instances managed by him with a new version of the app?</p> </li> <li><p>is there another way so easy as, and elegant, to use spot instances and enjoy the benefits of beanstalk?</p> </li> </ol> <p><strong>UPDATE</strong></p> <p>Elastic Beanstalk add support to spot instance since 2019... see: <a href="https://docs.aws.amazon.com/elasticbeanstalk/latest/relnotes/release-2019-11-25-spot.html" rel="nofollow noreferrer">https://docs.aws.amazon.com/elasticbeanstalk/latest/relnotes/release-2019-11-25-spot.html</a></p>
0non-cybersec
Stackexchange
349
1,234
How to send characters to a virtual serial port in Windows 8.1. <p>Microsoft is very unhelpful, as per <a href="http://windows.microsoft.com/en-gb/windows/what-happened-hyperterminal#1TC=windows-7" rel="nofollow noreferrer">this link</a>.</p> <p>However one method is the command:</p> <pre><code>echo abcdefghijklmnopqrstuvwxyz &gt; COM3 </code></pre> <p>And as per a question here <a href="https://stackoverflow.com/questions/14870490/windows-prompt-read-and-send-text-by-com-port">here</a>, another option is:</p> <pre><code>SerialSend /baudrate 56000 "Send this text" </code></pre> <p>However I'm encountering a bug where not all the data is sent. By playing with the amount of text sent and the chosen baud rate, I've come to the conclusion that while the text is being added to a buffer/queue character by character, the buffer begins being emptied into the serial port, but once the buffer has been filled, the remaining un-sent characters in the buffer are discarded and the command returns.</p> <p>So I'd like some sort of hyper-terminal equivalent that can send data to the virtual serial port - which hopefully will not have this bug. Can anyone recommend any?</p> <p>Thanks </p> <p>Update: <code>Putty</code> works, but I cannot output a continuous stream of characters, rather it sends them as I type, one character at a time.</p>
0non-cybersec
Stackexchange
397
1,351
Entity Framework Code First - Defining Relationships/Keys. <p>I am designing my database using code first and I need a little help I think.</p> <p>I am getting this error:</p> <blockquote> <p>Introducing FOREIGN KEY constraint 'SalesOrder_Invoices' on table 'Invoices' may cause cycles or multiple cascade paths. Specify ON DELETE NO ACTION or ON UPDATE NO ACTION, or modify other FOREIGN KEY constraints.<br> Could not create constraint. See previous errors.</p> </blockquote> <p>I am trying to have the following relationships/keys:</p> <pre><code>--&gt; = 1 to Many Relationship </code></pre> <ol> <li>Customer --> CustomerLocation<br></li> <li>CustomerLocation --> SalesOrder<br></li> <li>SalesOrder --> Invoice<br></li> <li>SalesRep --> SalesOrder<br></li> <li>PaymentTerm --> Customer<br></li> <li>PaymentTerm --> SalesOrder<br></li> <li>PaymentTerm --> Invoice<br></li> </ol> <p>I am trying to define them by the standard of:</p> <pre><code>&lt;ClassName&gt;&lt;PrimaryKeyID&gt; </code></pre> <p>Example: <code>Customer</code> has <code>ID</code> property, so in <code>CustomerLocation</code> i define the foreign key like so:</p> <pre><code>Public Property CustomerID AS Integer </code></pre> <p>All I have to do is define the foreign key correct? Do I also have to have navigation properties for each key I define?</p> <p>And, can I not have multiple foreign keys on the same primary key of an object?</p> <p><strong>Updated</strong></p> <p>So to define a relationship, do you use the <code>ClassName.PrimaryKeyProperty</code>? or do you use navigation properties? Or both? Confused!!</p> <p><strong>Update 2</strong></p> <p>So to make a relationship work you have to define both sides... I think.</p> <pre><code>Public Class Customer Public Property ID AS Integer Public Overrideable Property Locations AS ICollection(OF CustomerLocation) End Class Public Class CustomerLocation Public Property ID AS Integer Public Property CustomerID AS Integer End Class </code></pre>
0non-cybersec
Stackexchange
607
2,020
A Trigonometric Equation with different frequencies. <p>I have come across a system of trigonometric equations in <span class="math-container">$t$</span>, with parameters <span class="math-container">$x$</span> and <span class="math-container">$y$</span>. Though I know the first is not analytically solvable, my hope was to solve the second, and then substitute into the first. However, I am unable to solve the second equation, though I think it may be possible. Without further ado, the equations are: <span class="math-container">$$\left\{\begin{array}{l}\sin(t)\cos(t)-y\sin(t)-t+x=0\\\cos(2t)-y\cos(t)-1=0\end{array}\right.$$</span> Indeed, if one considers the first and second left hand sides, one can observe that the second is the derivative of the first with respect to <span class="math-container">$t$</span>. Not sure if that helps.</p> <p>Thanks a lot, and any help is appreciated.</p>
0non-cybersec
Stackexchange
255
901
How to use spot instance with amazon elastic beanstalk?. <p>I have one infra that use amazon elastic beanstalk to deploy my application. I need to scale my app adding some spot instances that EB do not support.</p> <p>So I create a second autoscaling from a launch configuration with spot instances. The autoscaling use the same load balancer created by beanstalk.</p> <p>To up instances with the last version of my app, I copy the user data from the original launch configuration (created with beanstalk) to the launch configuration with spot instances (created by me).</p> <p>This work fine, but:</p> <ol> <li><p>how to update spot instances that have come up from the second autoscaling when the beanstalk update instances managed by him with a new version of the app?</p> </li> <li><p>is there another way so easy as, and elegant, to use spot instances and enjoy the benefits of beanstalk?</p> </li> </ol> <p><strong>UPDATE</strong></p> <p>Elastic Beanstalk add support to spot instance since 2019... see: <a href="https://docs.aws.amazon.com/elasticbeanstalk/latest/relnotes/release-2019-11-25-spot.html" rel="nofollow noreferrer">https://docs.aws.amazon.com/elasticbeanstalk/latest/relnotes/release-2019-11-25-spot.html</a></p>
0non-cybersec
Stackexchange
349
1,234
induced homomorphism. <p>I found the following in section 8.14 of Munkres <em>Topology, a first course</em>.</p> <p>"Now suppose we have a fixed path-connected space $B$ and a fixed base $b \in B$. Let $p: E \rightarrow B$ be a covering map, where $E$ is path connected. If we choose a point $e$ in $p^{-1}(b)$ as a base point for $E$, then we have an induced homomorphism $p_*: \pi_1(E,e) \rightarrow \pi(B,b)$."</p> <p>How is this homorphism induced? I can get a surjection between the first fundamental group of a base space space at a point to the fiber over that point, but since it might not be injective I can't necessarily invert it.</p>
0non-cybersec
Stackexchange
197
648
Is it a good practice to have an endpoint URL with path parameter accepting different type of values according to an indicator in the HTTP header?. <p>Assume a resource URL in the context of REST API:</p> <p><code>/sites/&lt;site id or site code&gt;/buildings/&lt;building id or building code&gt;</code></p> <p>The value of the two path parameters, <code>&lt;site id or site code&gt;</code> and <code>&lt;building id or building code&gt;</code>, can be either <em>id</em> or <em>code</em> as the name indicates. Implicitly it means:</p> <p>for instance, there is a building with <code>1</code> as building id and <code>rake</code> as building code, and it is located in the site with <code>5</code> as the site id and <code>SF</code> as the site code, then the following endpoint URL should retrieve the same result:</p> <ul> <li>/sites/5/buildings/1</li> <li>/sites/5/buildings/rake</li> <li>/sites/SF/buildings/1</li> <li>/sites/SF/buildings/rake</li> </ul> <p>In order to reduce the <em>ambiguity</em>, a hint is added into the <em>HTTP header</em>, e.g. <code>path-parameter-type</code> with value as <code>CODE</code> or <code>ID</code>, indicating the type of the given values of the <em>path parameters</em>. As a result, only two types of requests are allowed with the given example:</p> <ul> <li>/sites/5/buildings/1 with <code>CODE</code> as <code>path-parameter-type</code> in the http header</li> <li>/sites/SF/buildings/rake with <code>ID</code> as <code>path-parameter-type</code> in the http header</li> </ul> <p>Even though, the implementation of such resource endpoint contains a couple of <code>if</code> conditions due to two different type of <em>path parameters</em>. However, from the end-user's aspect, this seems to be handy.</p> <p>My <strong>question</strong> is <strong>whether such endpoint design is a good practice or a typical bad practice albeit the fact that there is a type indicator in the <em>HTTP header</em></strong>?</p>
0non-cybersec
Stackexchange
600
1,960
Program type already present: com.folder.servicehelper.BuildConfig. <p>I am developing an Android library. So, I have a module that will be the .aar file.</p> <p>This is the Graddle file of this module:</p> <pre><code>apply plugin: 'com.android.library' android { compileSdkVersion 28 defaultConfig { minSdkVersion 16 targetSdkVersion 28 versionCode 1 versionName "1.0" multiDexEnabled true testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner" } buildTypes { release { minifyEnabled false proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro' } } } dependencies { implementation fileTree(include: ['*.jar', '*.aar'], dir: 'libs') implementation 'com.esri.arcgis.android:arcgis-android:10.2.9' implementation 'com.squareup.okhttp3:okhttp:3.11.0' implementation 'com.android.support:appcompat-v7:28.0.0-rc02' implementation (name:'offending_library_2.0.0', ext:'aar') testImplementation 'junit:junit:4.12' androidTestImplementation 'com.android.support.test:runner:1.0.2' androidTestImplementation 'com.android.support.test.espresso:espresso-core:3.0.2' } </code></pre> <p>Aside, I have another module (app module) which I use to test this library, asa dummy app. I have that library loaded here too, since if I don`t have it it will not compile, This is the Graddle of the app module:</p> <pre><code>apply plugin: 'com.android.application' android { compileSdkVersion 28 defaultConfig { applicationId "com.my.company.domain" minSdkVersion 16 targetSdkVersion 28 versionCode 1 versionName "1.0" testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner" } packagingOptions{ exclude 'META-INF/LGPL2.1' exclude 'META-INF/LICENSE' exclude 'META-INF/NOTICE' } buildTypes { release { minifyEnabled false proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro' } } } dependencies { implementation fileTree(dir: 'libs', include: ['*.jar', '*.aar']) implementation 'com.esri.arcgis.android:arcgis-android:10.2.9' implementation 'com.squareup.okhttp3:okhttp:3.11.0' implementation 'com.android.support:appcompat-v7:28.0.0-rc02' implementation 'com.android.support.constraint:constraint-layout:1.1.3' implementation (name:'offending_library_2.0.0', ext:'aar') implementation project (':arcgislibrary')&lt;----- This is the other module testImplementation 'junit:junit:4.12' androidTestImplementation 'com.android.support.test:runner:1.0.2' androidTestImplementation 'com.android.support.test.espresso:espresso-core:3.0.2' } </code></pre> <p>This way, I am having the error Program type already present: com.folder.servicehelper.BuildConfig Message{kind=ERROR, text=Program type already present: com.folder.servicehelper.BuildConfig, sources=[Unknown source file], tool name=Optional.of(D8)}</p> <p>The BuildConfig class is inside the offending_library of my graddle files.</p> <p>I tried to delete the .aar file of the libs folder of the app module, but that way it doesn't compiles. Tried to do</p> <pre><code>implementation (name:'offending_library_2.0.0', ext:'aar'){ exclude group:'com.folder.servicehelper' } </code></pre> <p>but the result is the same.</p> <p>Any idea of how could I get rid of that error?</p> <p>Thank you.</p>
0non-cybersec
Stackexchange
1,097
3,351
GPU (Specifically NVidia) Cloud Computing Centres. <p>In the CPU computing world, you have giant cloud providers like Microsoft Azure, Amazon EC2 and Rackspace. You have also smaller companies that provide dedicated hosting services.</p> <p>Amazon EC2 has limited support for GPU computing with Tesla, as:</p> <ol> <li>They are using an old Tesla</li> <li>They only support that in one centre in US.</li> </ol> <p>Otherwise, they would have been a good choice for me.</p> <blockquote> <p>What I am looking for is a GPU hosting provider, located, in order of preference, in:</p> <pre><code>1 - UK 2 - West Europe 3 - USA </code></pre> <p>They should also have modern NVidia Tesla K20 or Tesla K20X GPUs and support Windows hosting and interested in a start up.</p> </blockquote>
0non-cybersec
Stackexchange
237
794
Important applications of the Uniform Boundedness Principle. <p>There's like three applications of the <a href="http://en.wikipedia.org/wiki/Uniform_boundedness_principle" rel="noreferrer">uniform boundedness principle</a> in wikipedia:</p> <p>1) If a sequence of bounded operators converges pointwise to an operator, then the limit operator is also bounded, and the convergence is uniform on compact sets.</p> <p>2) Any weakly bounded subset of a normed space is bounded.</p> <p>3) A result in pointwise convergence of Fourier series.</p> <p>I am just asking if there's more interesting applications of the uniform boundedness principle.</p>
0non-cybersec
Stackexchange
169
647
How to enable WPA/WPA2 in NetworkManager?. <p>I just reinstalled ArchLinux on my Thinkpad. I am a bit puzzled that the <code>network-manager-applet</code> only supports WEP encryption for wifi networks.</p> <p><a href="https://i.stack.imgur.com/suwIA.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/suwIA.png" alt="network-manager-applet"></a></p> <p>I already installed <code>wpa_supplicant</code> and <code>wireless_tools</code> as <a href="https://evilshit.wordpress.com/2012/09/15/how-to-make-networkmanager-and-network-manager-applet-work-on-arch-linux-with-gnome3/" rel="nofollow noreferrer">suggested elsewhere on the internet</a>.</p> <pre><code>0 ✓ user@alcor ~ $ pacaur -Qs network local/libnm-glib 1.4.4-1 NetworkManager library local/network-manager-applet 1.4.2-1 Applet for managing network connections local/networkmanager 1.4.4-1 Network connection manager and user applications local/nm-connection-editor 1.4.2-1 NetworkManager GUI connection editor and widgets </code></pre> <p>I'm running ArchLinux with kernel 4.8.13-1-ARCH and the classic Mate Desktop environment in GTK-2 version.</p> <p>How to enable WPA and WPA2 for the Network Manager Applet?</p>
0non-cybersec
Stackexchange
406
1,213
Faster Upload Speeds with AWS EC2 Instance. <p>I've got a t2.medium instance with an EBS volume and EFS in the U.S. West (Oregon) availability region.</p> <p>Users (often out of California) can upload image files using a javascript file uploader, but no matter how fast the user's connection is, they can't seem to upload any faster than ~500kb/s.</p> <p>For example, if a user speed-tests their upload rate at 5mb/s, and then uploads a 5MB image file, it will still take nearly 11 seconds to complete.</p> <p>I get similar results when using FTP to upload files.</p> <p>My initial thought was that I should change my instance to something with better Network Performance — but since I'm uploading directly to the EFS and not an amazon bucket or something else, I wasn't sure networking was my problem.</p> <p>How can I achieve faster upload rates? Is this a limitation of my instance?</p>
0non-cybersec
Stackexchange
244
895
Force Ubuntu Installer to use only MBR -- no EFI. <p>I have a UEFI-capable 64 bit system, but the existing Windows 7 is MBR. I want to dual-boot with either Ubuntu 18.04 or 19.10 (don't care which). The GUI install (bootable DVD) works fine in legacy mode, but installs Ubuntu such that it will boot only EFI.</p> <p>I bought AOMEI Partition Assistant Pro, hoping to convert the Windows 7 system to EFI non-destructively, as they claim it will do. The "non-destructive" conversion destroyed all boot capability. I had to restore from backup. (I do not have a W7 installation disk; The machine was bought "refurbished".)</p> <p>Can the Ubuntu installer be forced to install an MBR/legacy bootable version? If so, how? (I also have a support request in to AOMEI to see if I can actually make the W7 system EFI bootable.)</p>
0non-cybersec
Stackexchange
239
832
Recurrence Substitution Method of $T(n)=T(n/2)+T(n/3)+n$. <p>I need to prove $$T\Big(\frac{n}{2}\Big)+T\Big(\frac{n}{3}\Big)+n \leq cn,$$ by induction where $$T(n) \leq \frac{cn}{2} +\frac{cn}{3}+n=n\Big(\frac{c}{2}+\frac{c}{3}+1\Big).$$ Everything in the parenthesis is a constant, but I can't just ignore the constant in an induction proof. The book says: "Mathematical induction does not work unless we prove the exact form of the inductive hypothesis" (CLRS introduction to Algorithm, 3rd edition, page 85), so I can't say that $(c/2+c/3+1)$ is just a constant. What am I missing? I've tried to figure out the answer by looking at the subtracting constant technique on the same page of CLRS (<a href="https://math.stackexchange.com/questions/1867203/clrs-substitution-method-subtracting-constant-technique">CLRS substitution method &quot;subtracting constant&quot; technique</a>), but as far as I can see it only works with added constants and not multiplication.</p>
0non-cybersec
Stackexchange
301
972
How to manage my private key for signing .NET assemblies?. <p>I write open source .NET class libraries as a hobby and thought about signing them. I can get Visual Studio to generate me a password protected public/private key pair and save it as a .pfx file, but I don't think I should do this for <em>each and every</em> project. One key pair should be enough, right?</p> <p>Obviously I'm not going to put my .pfx file with the source code in my online public repository: only the assemblies I release should be signed with my key pair. Other people can use their own keys if they want.</p> <p>So I'm left with some .pfx file that supposedly contains my public/private key pair.</p> <ul> <li>How do I manage my key pair effectively?</li> <li>Where do I store it?</li> <li>Do I have to import it somewhere?</li> <li>How can I use it on both my PC and my laptop?</li> <li>How do I prevent the <a href="https://stackoverflow.com/q/2815366/146622">key pair hell</a> when switching from PC to laptop?</li> </ul>
0non-cybersec
Stackexchange
293
1,010
Unique values in Excel?. <blockquote> <p><strong>Possible Duplicate:</strong><br> <a href="https://superuser.com/questions/264949/how-can-i-display-only-the-unique-values-in-one-column-in-excel">How can I display only the unique values in one column in Excel?</a> </p> </blockquote> <p>I want remove equal words, not simply duplicate words, EQUAL words:</p> <p><img src="https://i.stack.imgur.com/yvtBh.png" alt="enter image description here"></p>
0non-cybersec
Stackexchange
156
457
std::set has duplicate entry. <p>I have a set of tuples of 3 integers and I don't want any duplicates. That is, I don't want 2 entries with the same 3 values.</p> <p>And here is my code.</p> <pre><code>struct Key{ unsigned a; unsigned b; unsigned c; public: Key(unsigned _a, unsigned _b, unsigned _c) : a(_a), b(_b), c(_c) {} bool operator&lt;(const Key&amp; rhs) const { if (a &lt; rhs.a) { return true; } if (b &lt; rhs.b) { return true; } if (c &lt; rhs.c) { return true; } return false; }; }; std::set&lt;Key&gt; myset; </code></pre> <p>But I see duplicates in <code>myset</code> sometimes. I can't catch exactly what sequence causes the duplicate entry to be added. It doesn't always happen. My question is this, is there something intrinsically wrong with my <code>operator&lt;</code> function? </p>
0non-cybersec
Stackexchange
306
955
Is it safe to make every resource public in a Google Cloud Storage bucket?. <p>I'm developing a business web application for my client, in which he can upload images (e.g. floor plans, photos of object etc.) and documents of different objects (word, excel etc.). The images should be displayed when someone logs in the website and selects an object.</p> <p>I'm using the Google Cloud Storage platform as the file storage and I made the bucket in what I'm storing the images available to the public Internet. The url is something like this:</p> <p><a href="https://storage.googleapis.com/mitulat-bati-bucket/%7Bguid%7D.jpg" rel="nofollow noreferrer">https://storage.googleapis.com/mitulat-bati-bucket/{guid}.jpg</a> (every file has a guid as the name)</p> <p>So it's only available if one knows the full URL including the GUID (the filename).</p> <p>My question is: is it safe enough and can go forward with this approach? And <strong>is there any potential hazard apart from guessing out the guid?</strong></p> <p>(the other approach would be to initiate a request from the client to my backend server that downloads the file from the cloud (with authentication) and sends back the image to the client that displays it)</p>
0non-cybersec
Stackexchange
315
1,224
How to use spot instance with amazon elastic beanstalk?. <p>I have one infra that use amazon elastic beanstalk to deploy my application. I need to scale my app adding some spot instances that EB do not support.</p> <p>So I create a second autoscaling from a launch configuration with spot instances. The autoscaling use the same load balancer created by beanstalk.</p> <p>To up instances with the last version of my app, I copy the user data from the original launch configuration (created with beanstalk) to the launch configuration with spot instances (created by me).</p> <p>This work fine, but:</p> <ol> <li><p>how to update spot instances that have come up from the second autoscaling when the beanstalk update instances managed by him with a new version of the app?</p> </li> <li><p>is there another way so easy as, and elegant, to use spot instances and enjoy the benefits of beanstalk?</p> </li> </ol> <p><strong>UPDATE</strong></p> <p>Elastic Beanstalk add support to spot instance since 2019... see: <a href="https://docs.aws.amazon.com/elasticbeanstalk/latest/relnotes/release-2019-11-25-spot.html" rel="nofollow noreferrer">https://docs.aws.amazon.com/elasticbeanstalk/latest/relnotes/release-2019-11-25-spot.html</a></p>
0non-cybersec
Stackexchange
349
1,234
Explain dating like I'm five. Seriously, get super basic.. So basically, I'm mildly autistic. I'm a totally normal guy otherwise; the issue here is that I have a hard time handling social interaction. Social cues are just naturally hard for me to read, which complicates things. I can handle a *normal* situation pretty well, but dating/relationships are a *COMPLETELY* different scenario, and I'm not sure how they work. The last couple dates I've been on have all gone pretty well. But I kind of get the feeling that they think I'm going for a "friend date" kind of thing, because I have no idea how to do it differently. I guess my question is, how do I show romantic intent, and/or other stuff that I should probably know how to do?
0non-cybersec
Reddit
179
740
BaronReplays 2.10 Camera Rotation Release. Hello everyone: We have released version 2.10. The main change is camera rotation. Watch the demo video below. [Demo Video](https://www.youtube.com/watch?v=auhTol9PRug) Other changes are listed below. **Added**: Camera rotation **Added**: Arabic language interface **Added**: Featured gamed mode display **Fixed**: Record when start with windows **Fixed**: Garena region custom game recording(CUSTOM GAME Only) Now, we are going to teach you how to use camera rotation system. Use move your mouse when right button down to rotate screen angle and use numeric keypad to control the camera movement numeric keypad 7, 9: look left or right numeric keypad 2, 4, 6, 8: move camera position numeric keypad 5: return to original perspective We also develop a special mode named "Spotlight mode". Set camera mode to a player when you watch a match. Press * on numeric keypad. The camera will sightly adjust angles to view. Just like watch an 3D movie. You can press / to disable Spotlight mode. Camera rotation enabled only when match start by BaronReplays, like: Replay matches, Featured games, Command analyzer Finally, we start a new plan try to let everyone can make their own montage. See the details on kickstarter. [BaronReplays at Kickstarter](https://www.kickstarter.com/projects/905284405/baronreplays)
0non-cybersec
Reddit
347
1,360
Is there a typical way to pass a password to a Systemd Unit file?. <p>I would like to start a service using a systemd unit file. This service requires a password to start. I don't want to store the password in plaintext in the systemd unit file, because it is world-readable. I also don't want to provide this password interactively. </p> <p>If I were writing a normal script for this, I would store the credentials in a file owned by root with restricted permissions (400 or 600), and then read the file as part of the script. Is there any particular systemd-style way to do this, or should I just follow the same process as I would in a regular shell script?</p>
0non-cybersec
Stackexchange
162
666
How use generic T inside a method in java?. <p>We can do this in C#:</p> <pre><code>private T getData&lt;T&gt;(Context context, String url, PostModel postModel) throws ApiException, IOException, ConnectionException { Response response = new CallApi&lt;T&gt;(Connection.getApiUrl(context)) .Post(url, postModel); if (response.code() != 200) throw new ApiException(context,response); Gson gson = new GsonBuilder() .setLenient() .create(); T obj = gson.fromJson(response.body().charStream(), new TypeToken&lt;T&gt;() { }.getType()); return obj; } </code></pre> <p>To call: </p> <pre><code>EmployeeModel model = getData&lt;EmployeeModel&gt;(context, url, null); </code></pre> <p>As you can see we declare <code>T</code> as in method signature and inside the method, it replaced with <code>EmployeeModel</code> in <code>CallApi&lt;T&gt;</code> and <code>new TypeToken&lt;T&gt;</code> and it will return <code>EmployeeModel</code> object as the result.</p> <p>In Java(Android) when I want to use this generic, I have:</p> <pre><code>private &lt;T&gt; T getData(Context context, String url, PostModel postModel){...} </code></pre> <p>But it returns me a <code>LinkedTreeMap</code> object and not an <code>EmployeeModel</code>! When I move &lt; T > from method signature to the class itself result is same too.</p> <p>I search the web and StackOverflow for finding this type of using but articles are just about how to cast <code>T</code> to a model or how to pass it as a parameter. </p> <blockquote> <p>Please consider that I don't pass <code>T</code> into a method as a parameter and I don't need to cast <code>T</code> to anything. T is used as the <strong>type</strong> on other generic methods type!</p> </blockquote> <p>So how can I implement this method in Java?</p>
0non-cybersec
Stackexchange
590
1,869
Name for property of mixed characteristic DVR: admits regular local homomorphism from DVR with finite residue field. <p>Does anybody happen to know if there is already a name in the literature for the following property of a mixed characteristic DVR: that there exists a local homomorphism that is regular into the specified DVR where the domain is a DVR whose residue field is a finite field? </p> <p>Since the fraction field has characteristic $0$, the "regular" hypothesis is equivalent to asking that the image of the maximal ideal of the source DVR (the one with finite residue field) in the target DVR generates the maximal ideal of the target DVR.</p>
0non-cybersec
Stackexchange
145
661
How to use spot instance with amazon elastic beanstalk?. <p>I have one infra that use amazon elastic beanstalk to deploy my application. I need to scale my app adding some spot instances that EB do not support.</p> <p>So I create a second autoscaling from a launch configuration with spot instances. The autoscaling use the same load balancer created by beanstalk.</p> <p>To up instances with the last version of my app, I copy the user data from the original launch configuration (created with beanstalk) to the launch configuration with spot instances (created by me).</p> <p>This work fine, but:</p> <ol> <li><p>how to update spot instances that have come up from the second autoscaling when the beanstalk update instances managed by him with a new version of the app?</p> </li> <li><p>is there another way so easy as, and elegant, to use spot instances and enjoy the benefits of beanstalk?</p> </li> </ol> <p><strong>UPDATE</strong></p> <p>Elastic Beanstalk add support to spot instance since 2019... see: <a href="https://docs.aws.amazon.com/elasticbeanstalk/latest/relnotes/release-2019-11-25-spot.html" rel="nofollow noreferrer">https://docs.aws.amazon.com/elasticbeanstalk/latest/relnotes/release-2019-11-25-spot.html</a></p>
0non-cybersec
Stackexchange
349
1,234
How to debug freezing Xorg?. <p>At the very beginning, I am aware that I can provide very little info on my problem (and actually I'm ashamed about it). Thus, although I'd like to fix it, I'm asking first on how to get to the root of said problem.</p> <p><strong>System</strong> is few years old PC with Debian (3.10-3-amd64) jessie/sid, X and xfce running. Graphics is Nvidia Geforce 8300.</p> <p><strong>Symptoms</strong> are: system freezes with good deal of randomness. Usually screen displays some quick shakes followed by lots of colorful horizontal lines, followed by full screen filled with single color. At this point keyboard and mouse are useless (tried ctrl-alt-f1234... to get console, num/caps lock LEDs stop reacting) and I'm forced to hard reset.</p> <p>I'm not entirely sure, but it looks it's connected to graphic acceleration: I can work for some time in xfce console and use opera without freezes, then freeze occurs at random moment when I'm using chromium or firefox, or after short time playing openarena. Glxgears didn't crash yet :)</p> <p><strong>Lately</strong> the system was upgraded via dist-upgrade, I've also done some cleanup in packages (perhaps I unknowingly deleted something important?). During upgrade both X packages and nvidia kernel were updated. <strong>[edit]</strong> the problem shown only after upgrade, previously everything was fine.</p> <p><strong>So far</strong> I've tried removing nvidia drivers, which seemingly helped (not entirely sure, freezes are random - system worked for quite short time, no freezes occured), but on default X config framerate drops on anything graphic intensive, so I tried to get nvidia back. Installed nvidia-kernel, settings, xconfig. Did not help, acceleration works, freezes still occur.</p> <p>[Edited] The problem seems not to occur on old Windows 7 installation on the same machine. It works less fluent and more HD-intensive than Debian, but haven't frozen while playing HD video from youtube and during benchmark test from <a href="http://novabench.com" rel="nofollow noreferrer">http://novabench.com</a> Therefore I doubt it is hardware related, but this is still possible, computer has his age.</p> <p>Also, to repeat, before upgrading Debian the problem didn't occur.</p> <p>What else should I try? What additional information might be useful and how to get it?</p>
0non-cybersec
Stackexchange
597
2,365
Integrating the bivariate normal distribution. <p>Let $X$ and $Y$ have the bivariate normal density function,</p> <p>$$ f(x, y) = \frac{1}{2 \pi \sqrt{1 - p^2}} \exp \left\{ - \frac{1}{2(1 - p^2)} (x^2 - 2pxy + y^2) \right\} $$</p> <p>for fixed $p \in (-1, 1)$. Let $Z = (Y - pX)/\sqrt{1 - p^2}$. I have already proven that $X$ and $Z$ are independent $N(0, 1)$ variables. Now I want to determine $\mathbb{P}(X &gt; 0, Y &gt; 0)$. I know that this can be written as $$ \mathbb{P} (X &gt; 0, Z &gt; -pX / \sqrt{1 - p^2} ) $$ I thought about using the Jacobian variable change thing, with $$ u = x^2 + z^2, v = x / (x^2 + z^2) $$ such that the inverses are given by $$ z = uv, ~~~ x = \sqrt{u - u^2v^2} $$ (note that $x &gt; 0$, so the $-\sqrt{\phantom{x}}$ solution of $x$ is irrelevant). However, the (double) integral I then get is an integral I still cannot compute. Also, I don't know to where $u$ and $v$ map the set $$ \{(x, z) \in \mathbb{R}^2 : x &gt; 0, z &gt; -px / \sqrt{1 - p^2} \} $$ which I need to know in order to know the boundaries for the new (double) integral.</p> <p>Is this even the right approach? If yes, how should I proceed? If no, what is the right approach?</p> <p>Thanks in advance!</p>
0non-cybersec
Stackexchange
466
1,220
How to use Task Scheduler to open an elevated Powershell window and run SFC and DISM in Windows 10. <p>I have a scheduled Task where an Admin Command Prompt opens up and runs SFC and DISM. Here are the actions I entered in the "Action" tab of Task Scheduler:</p> <p><strong>Program/script:</strong> <em>%windir%\system32\cmd.exe</em></p> <p><strong>Add Arguments (optional)</strong> <em>/k Dism.exe /online /Cleanup-Image /StartComponentCleanup&amp;&amp;sfc/scannow&amp;&amp;Dism /Online /Cleanup-Image /RestoreHealth&amp;&amp;sfc/scannow</em></p> <p>Below is the exported XML file from my scheduled task:</p> <p> 2015-08-13T22:47:14.859563 RAT-COMPUTER\RAT Performs a complete system file check with SFC and DISM twice. \System File Check &amp; Repair 2015-08-17T12:00:00 true 1 S-1-5-21-4275024122-2477020419-317910845-1001 InteractiveToken HighestAvailable IgnoreNew false true true true true true false true true false false false true true PT72H 7 PT5M 3 %windir%\system32\cmd.exe /k Dism.exe /online /Cleanup-Image /StartComponentCleanup&amp;&amp;sfc/scannow&amp;&amp;Dism /Online /Cleanup-Image /RestoreHealth&amp;&amp;sfc/scannow </p> <p>I tried to run exactly the same scheduled task now on Powershell but with no luck. What do I need to do to "translate" this from command prompt into powershell in the Task Scheduler?</p>
0non-cybersec
Stackexchange
552
1,612
For Sale or For Trade posts. Can we make it a rule to post pics with FS/FT and reminders that make sure they put a user tag in there and there's decent images of the actual item. This'll help because 1. Nobody will trust you if you don't post YOUR OWN image. 2. Nobody wants to have to google the damn item you're supposedly selling. edit: **[Look at this example](http://www.reddit.com/r/streetwear/comments/1x0k5o/looking_for_a_quick_sale_cheap_prices/)** for how it should look. Obviously much more simple if you're selling 1 or 2 items.
0non-cybersec
Reddit
154
543
Load balancing 2x IIS Webservers, across subnets. <p>Morning chaps,</p> <p>Currently we've got one virtual webserver, and if it goes down, nobody can login or access our Intranet.</p> <p>To resolve this I've installed two test servers (2012 R2), one on our first site (x.x.1.x) and one on our second site (x.x.2.x).</p> <p>I'd like to put in a solution whereby everything is pointed to an address of webcluster, which is shared between site1-webserver, and site2-webserver.</p> <p>Without purchasing hardware, I'm looking for the best way forward. NLB doesn't seem to quite fit the bill (due to multiple subnets), and while URL re-write in IIS does seem to fit the bill, it does look as if it'd require a third server in the mix, which would become a single point of failure.</p> <p>I was looking at IIS hosted on Azure, but I don't think Azure plays too nicely with AD integration just yet (please correct me if I'm wrong).</p> <p>Suggestions on the best way forward? </p> <p>Thanks, Ben.</p>
0non-cybersec
Stackexchange
298
1,001
Cauchy&#39;s Integral Formula and Delta Functions. <p>As we know from complex analysis, Cauchy's integral formula states:</p> <p>$f(z_o)=\frac{1}{2\pi i}\int_\gamma{\frac{f(z)}{z-z_o}dz}$ for a closed contour $\gamma$.</p> <p>However there is also the result from other areas of maths that states:</p> <p>$f(x_o)=\int_R{f(x)\delta(x-x_o)dx}$ for some region $R$</p> <p>Given the similarity in the results, is there any significance in comparing $\delta(x-x_o)$ to $\frac{1}{2 \pi i (x-x_o)}$ since basically integrating a function over them always gives the function's value at $x_o$</p> <p>(Apologies in advance if this question may seem silly but I haven't found any satisfactory answers in my search so I thought I'd ask)</p>
0non-cybersec
Stackexchange
243
734
Good but cheap cast iron skillet? . My aluminium & teflon pans suck, but I can't afford Creuset or anything. [Wal-Mart](http://www.walmart.com/catalog/product.do?product_id=5969628&sourceid=44444444440173849059) has a line of cheap cast iron from the Lodge, is it any good? Otherwise, what are reasonably priced options for a cast iron frying pan? edit: Hey I just wanted to thank everyone for their great replies! It'll be a few months before we're in garage sale-ing weather, so it looks like I'll stop by the Salvation Army and Goodwill, and if those come up empty, these Lodge pans look like a great value. Thanks, all! Next up, a good stock pot! My current pots aren't big enough for a proper tortilla soup!
0non-cybersec
Reddit
196
719
$\lim_{x\to c} f(x)=L$. <p>With regard to the question:<a href="https://math.stackexchange.com/questions/2170054/lim-x-to-a-fx-lim-x-to-a-fx-l">$\lim_{x\to a^{-}} f(x) =\lim_{x\to a^{+}} f(x) =L$</a></p> <blockquote> <p><strong>theorem</strong> :Suppose that $f : A \to \mathbb{R}$, where$ A ⊆ \mathbb{R}$, and $c \in \mathbb{R} $ is an accumulation point of $\{ x\in A : x &gt; c\}$ and $ c$ is not an accumulation point $\{ x\in A : x &lt; c\}$ Then: </p> <p>$$\lim_{x\to c} f(x)=L$$</p> <p>if and only if :</p> <p>$$\lim_{x\to c^+} f(x)=L$$</p> </blockquote> <p>is the theorem correct ? if correct . prove .</p>
0non-cybersec
Stackexchange
294
641
Issues with time sync with remote PC and robot. <p>Has anyone come across this error before?</p> <pre><code>[ WARN] [1587458925.300460191]: Failed to compute laser pose, aborting initialization (Lookup would require extrapolation into the future. Requested time 1587458925.315650008 but the latest data is at time 1587458925.289327081, when looking up transform from frame [odom] to frame [base_footprint]) </code></pre> <p>I have seen a lot of threads similarly related but most suggest to sync both the time on the PC and robot using NTP and Chrony, which I have done on numerous occasions.</p> <p>I am Using Ubuntu16.04 and working with the Turtlebot3 waffle_pi version.</p> <p>I was thinking I could maybe adjust the timing tolerance? But I am actually unsure on how to do this and if it will completely resolve the issue.</p> <p>Just on another note, I am using dual boot with Windows and have noticed that after I use Ubuntu and then start up Windows, the time is always incorrect (1 hour behind). I have manually adjusted this and automatically using time sync on Windows, but the issue still persists once I restart the system.</p> <p>I found that Linux gets it's time from BIOS assuming it is UTC while Windows does it assuming it is your regional time, so I found a solution on this forum: <a href="https://answers.microsoft.com/en-us/windows/forum/windows_10-other_settings/windows-10-time-always-wrong/75d9036d-9f43-4a06-9c34-ec9bdc8f4fd7" rel="nofollow noreferrer">https://answers.microsoft.com/en-us/windows/forum/windows_10-other_settings/windows-10-time-always-wrong/75d9036d-9f43-4a06-9c34-ec9bdc8f4fd7</a></p> <p>But when I go to edit this in <code>gedit /etc/default/rcS</code> I cannot find anything relating to UTC and I cannot save any changes as I am not root.</p> <p>Any advice would be very helpful.</p>
0non-cybersec
Stackexchange
546
1,837
How to use spot instance with amazon elastic beanstalk?. <p>I have one infra that use amazon elastic beanstalk to deploy my application. I need to scale my app adding some spot instances that EB do not support.</p> <p>So I create a second autoscaling from a launch configuration with spot instances. The autoscaling use the same load balancer created by beanstalk.</p> <p>To up instances with the last version of my app, I copy the user data from the original launch configuration (created with beanstalk) to the launch configuration with spot instances (created by me).</p> <p>This work fine, but:</p> <ol> <li><p>how to update spot instances that have come up from the second autoscaling when the beanstalk update instances managed by him with a new version of the app?</p> </li> <li><p>is there another way so easy as, and elegant, to use spot instances and enjoy the benefits of beanstalk?</p> </li> </ol> <p><strong>UPDATE</strong></p> <p>Elastic Beanstalk add support to spot instance since 2019... see: <a href="https://docs.aws.amazon.com/elasticbeanstalk/latest/relnotes/release-2019-11-25-spot.html" rel="nofollow noreferrer">https://docs.aws.amazon.com/elasticbeanstalk/latest/relnotes/release-2019-11-25-spot.html</a></p>
0non-cybersec
Stackexchange
349
1,234
How to allow just one site to use PHP&#39;s exec() function. <p>I have a simple Apache with mod_php server on CentOS 7. I've disabled the exec function in php.ini but I need to use it on one Vhost. Now obviously I know I can't use multiple php.ini files and I know I can't change the disable_functions setting outside of the php.ini file, so I tried toying with other ideas.</p> <p>Obviously my first option was to use fastcgi, or suPHP, etc. but I couldn't get them to work without breaking the server, and whilst I probably could eventually make them work, I'd rather find a different solution and stick with the simple mod_php.</p> <p>My second thought was to install Nginx and php-fpm and get it to listen on another port, but despite setting disable_functions to an empty value, it still read the php.ini file as well and thus disabled the php_exec function.</p> <p>So is there a relatively simple way of achieving this without having to reset up Apache with fastcgi?</p>
0non-cybersec
Stackexchange
252
980
Trying to Set up Web Server in CentOS on HyperV - FTP Not Working. <h1>Background</h1> <p>I am not a Linux or really even a command line person, but I've been tasked with setting up a Linux server for a company intranet.</p> <p>I've set up a CentOS 7 installation in HyperV on Windows 10. I then got the AMP stack set up inside, and I got internet from the network passing through Win10 into CentOS. And I got the CentOS web server have it's own IP address and be accessible from the outside network.</p> <p>I am now trying to get FTP working, so that when I move the VM to it's eventual real server, which isn't on my desktop, I can move files to it via FTP. I have followed numerous tutorials centered on <code>vsftp</code>. I have installed it, I have added FTP access to <code>firewall-cmd</code>. I have messed with <code>iptables</code>, and then found out that apparently CentOS uses <code>firewalld</code>, not <code>iptables</code>?</p> <h1>Settings</h1> <p>In <code>/etc/vsftp/vsftp.conf</code>:</p> <pre><code>anonymous_enable=NO local_enable=YES write_enable=YES local_umask=022 dirmessage_enable=YES xferlog_enable=YES connect_from_port_20=YES xferlog_file=/var/log/xferlog xferlog_std_format=YES chroot_local_user=YES allow_writeable_chroot=YES listen=NO listen_ipv6=YES pam_service_name=vsftpd userlist_enable=YES tcp_wrappers=YES userlist_deny=NO userlist_file=/etc/vsftpd.userlist </code></pre> <p>The contents of <code>/etc/vsftpd.userlist</code>:</p> <pre><code>tester </code></pre> <p>Status of <code>vsftpd</code>:</p> <p><a href="https://i.stack.imgur.com/mFQlH.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/mFQlH.png" alt="enter image description here" /></a></p> <h1>Problem</h1> <p>When I try to connect via FTP, I see:</p> <p><a href="https://i.stack.imgur.com/7qIAW.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/7qIAW.png" alt="enter image description here" /></a></p> <h1>Question</h1> <p>What am I doing wrong?</p>
0non-cybersec
Stackexchange
702
1,986
Confused about the two extra buttons on the Cyborg R.A.T. 5. <p>I got a RAT 5 today and it's working fine now. But there are two extra buttons I'm a little confused about. One is the one which switches profiles, and the other is by the scroll wheel and says "DPI" on it.</p> <p>1) Is there an easier way to see which mode you're in? The mode switch button is positioned such that my eyes don't meet it, and I have to move my head right over the mouse to see it. There are lights on the underside of that button, which I can see perfectly well; what do these mean? And is there a way to get them to reflect the mode you're in?</p> <p>2) What does the DPI button do? I can't seem to figure it out.</p>
0non-cybersec
Stackexchange
197
702