text
stringlengths
3
1.74M
label
class label
2 classes
source
stringclasses
3 values
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
How to tell if a thread is the main thread in C#. <p>I know there are other posts that say you can create a control and then check the <code>InvokeRequired</code> property to see if the current thread is the main thread or not.</p> <p>The problem is that you have no way of knowing if that control itself was created on the main thread.</p> <p>I am using the following code to tell if a thread is the main thread (the thread that started the process):</p> <pre><code>if (Thread.CurrentThread.GetApartmentState() != ApartmentState.STA || Thread.CurrentThread.ManagedThreadId != 1 || Thread.CurrentThread.IsBackground || Thread.CurrentThread.IsThreadPoolThread) { // not the main thread } </code></pre> <p>Does anyone know a better way? It seems like this way might be prone to errors or break in future versions of the runtime.</p>
0non-cybersec
Stackexchange
Cramers Theorem for sum of Mixed Random Variables. <p>I have a sequence of random variables <span class="math-container">$$X_{1},...,X_{n}$$</span> that are iid Exp(1) and <span class="math-container">$$Y_{1},...,Y_{n}$$</span> that are iid Poisson(1). All are mutually independent.</p> <p>We define: <span class="math-container">$$S_{n} = \sum_{k=1}^{n}W_{i}$$</span> such that</p> <p><span class="math-container">\begin{align} W_{i} = \left\{ \begin{array}{cc} X_{i} &amp; \hspace{5mm} wp=1/2 \\ Y_{i} &amp; \hspace{5mm} wp=1/2 \\ \end{array} \right. \end{align}</span></p> <p>I want to find <span class="math-container">$$P(\frac{S_{n}}{n}\gt c)$$</span></p> <p>My Attempt:</p> <p><span class="math-container">$$M_{W}(t) = \frac{1}{2}M_{X}(t) + \frac{1}{2}M_{X}(t) = \frac{1}{2}\frac{1}{1-t} + \frac{1}{2}e^{e^{t}-1}$$</span> <span class="math-container">$$\Lambda_{W}(t)=log(M_{W}(t)) = log(\frac{1}{2(1-t)})+log(2) + e^{t}-1$$</span> <span class="math-container">$$\Lambda_{W}^{*}(t) = sup_{t}[tx-\Lambda_{W}(t)]\implies\frac{\partial}{\partial t}(tx-\Lambda_{W}(t)) = 0$$</span> <span class="math-container">$$\frac{\partial}{\partial t}(tx-\Lambda_{W}(t))=x-e^{t}+\frac{1}{t-1} = 0$$</span></p> <p>Now I am stuck. I cannot solve for max t.</p> <p>I would then need to plug this into <span class="math-container">$$\Lambda_{W}^{*}(t_{max})$$</span> to get the result <span class="math-container">$$P(\frac{S_{n}}{n}\gt c)\leq e^{-n \Lambda_{W}^{*}(c)}$$</span></p>
0non-cybersec
Stackexchange
Determinant of a generalized Vandermonde matrix. <p>Moore matrix is similar to Vandermonde matrix but has a slightly modified definition. <a href="http://en.wikipedia.org/wiki/Moore_matrix" rel="nofollow noreferrer">http://en.wikipedia.org/wiki/Moore_matrix</a></p> <p>What is the complexity of computing the determinant of a given $n \times n$ full rank Moore matrix modulo some integer? </p> <p>Can Moore determinant be reduced from $O(n^{3})$ using FFT techniques to $O(n\log^{a}n)$ for some $a \in \mathbb{R}_{+} \cup \{0\}$?</p> <p>Is complexity of Moore det modulo an integer and Vandermonde det the same? Complexity of Vandermonde determinant is $O(n\log^{2}n)$ (Page 644 in Handbook of Theoretical Computer Science: Algorithms and complexity By Jan Leeuwen)</p> <p>Post similar to the current one: <a href="https://cstheory.stackexchange.com/questions/10393/determinant-modulo-m">Determinant modulo m</a></p>
0non-cybersec
Stackexchange
1 GB Ram - Force Windows to use it. <p>I am wondering how to make Windows use all the ram. I have 4GB total ram, 3.67 GB available, but when I reach 1GB free in task manager, it complains about low memory. There is sometimes more than 1GB left over in free, and 400M in cached. Is there any way to disable Windows' low memory warning, and stop it from closing programs?</p>
0non-cybersec
Stackexchange
mdadm trying to resync/rebuild array automatically. <p>Previously I had setup a ubuntu server using mdadm with 4x 2TB drives. One of my drives died and since this was my backups of my data on different servers I didn't care about losing it.</p> <p>Since then, I've purchased a replacement drive and some new server hardware. I completely reinstalled ubuntu on my SSD, then I deleted the partition table and volumes on all 4 of the 2TB drives. Then I went to create a brand new array but when I do, it immediately says degraded and it is trying to resync my new drive with the old array I had setup.</p> <p>How do I just get it to create a new array so I can format the entire array and create a new empty volume?</p> <p>Note: I was doing this in the Ubuntu desktop in the unity GUI with the disk utility.</p> <p>Since then I've changed over to a full headless server install, but I still want to create this array so it doesn't try to resync the replacement disk.</p>
0non-cybersec
Stackexchange
How do I disable the touch screen on Windows 8.1 for a Lenovo X220?. <p>I would like to try disabling the touch screen on my Lenovo X220 to diagnose odd mouse jumps. Looking at Lenovo forum answers the way to do this is to 'Go to Control Panel "Pen and Touch" and uncheck "Use your finger for input" on the Touch tab'. However I do not see such a check-box:</p> <p><img src="https://i.stack.imgur.com/bJKX2.png" alt="screenshot of touch control panel"></p> <p>How do I disable touch?</p>
0non-cybersec
Stackexchange
Can TeX tell me where it is breaking the lines and pages?. <p>I am looking for TeX to tell me where in the TeX file it has broken the lines and pages. I put \label in every word or even character and then it does tell me something but sometimes it is still thinking when it is answering. I know that it is difficult to do this in all possible TeX inputs but is there a reasonable solution to a reasonable TeX input?</p>
0non-cybersec
Stackexchange
The Many Benefits of Buying a Used Car.
0non-cybersec
Reddit
Everyday Practical Trick Shots..
0non-cybersec
Reddit
I Am Tristam...a musician? AMA. Well well well... Here you are.... I'm [Tristam](https://www.facebook.com/Theofficialtristam), a 17 year old musician and producer based out of earth. I have never really opened up about my life and I saw this new release as a good opportunity for people to have a peak into my world. I have been putting a lot of time into my passion over the past 6 months and I have learned soooo much. I'm here to answer any question you might have about me or my craft. If you were wondering about my new single you can hear it ["here"](http://youtu.be/OVMuwa-HRCQ) and if you would like to support me even more with a purchase ["here"](http://www.beatport.com/release/flight/1042438). Thanks to /r/Monstercat for arranging everything. Let's do this!
0non-cybersec
Reddit
Morning dog sketch came out pretty good today..
0non-cybersec
Reddit
New bubble wrap can no longer be popped.
0non-cybersec
Reddit
Restore boot parameters to default value. <p>It feels like my system is getting slower and slower. I am using Ubuntu and my machine is an HP ProBook 450 i7 4x2.0GHz, 8GB RAM and an ordinary HDD. Still it takes ~2 minutes to boot, which in my opinion is way too much. </p> <p>I was thinking on reinstalling the OS from scratch, but that is way too tedious since I have a lot of custom C++ libraries which would take ages to set-up again. Also, I expected Linux not to lose performance in such a way so quickly (I have this laptop for a year now).</p> <p>My question is, is there any way to restore the boot options to default? Or anything else I could do to clean-up whatever is clogging the performance? I know SSD would help here, so please don't give me such answers, since there is obviously something wrong with the software.</p> <p>Here is my <a href="http://pastebin.com/3xVSK5Ym" rel="nofollow noreferrer">dmesg log</a> and <a href="https://i.imgur.com/RxQxbha.png?1" rel="nofollow noreferrer">bootchart</a> if that could help as well.</p>
0non-cybersec
Stackexchange
Derive the bias and MSE of the estimator $\hat{\beta}$. <p>Let $Y_1, Y_2, \ldots, Y_n$ denote a random sample of size $n$ from a population whose density is given by $$ f(y)= \begin{cases} 3\beta^3 y^{-4} &amp; \beta \leq y \\ 0 &amp; \text{elsewhere} \end{cases} $$ where $\beta &gt; 0$ is unknown. (This is a Pareto distribution) Consider the estimator $\hat{\beta} = \min(Y_1, Y_2, \ldots, Y_n)$.</p> <p>a. Derive the bias of the estimator $\hat{\beta}$.</p> <p>b. Derive MSE($\hat{\beta}$).</p> <p><strong><em>For part a</em></strong></p> <p>Since this is an estimator that is dealing with random variables, and I only need the minimum, then I can represent this as ordered statistics. Namely, $\hat{\beta} = Y_{(1)}$.</p> <p>Using the formula for ordered statistics, the pdf is: $$ g_{(1)}(Y_{(1)}) = n(1-F(y))^{n-1}f(y) $$ <strong>My first question arises here, I am not sure how I am supposed to find $F(y)$ (and I am assuming that $f(y)$ is the given distribution above).</strong> </p> <p>Checking against the solution, I know that the pdf is supposed to be: $$ g_{(1)}(Y_{(1)}) = 3n\beta^{3n}y^{(-3n-1)} $$</p> <p>After solving getting the pdf of $Y_{(1)}$, I can then use it in the bias formula.</p> <p>$$ Bias(\hat{\beta}) = E[\hat{\beta}] - \beta \\ Bias(\hat{\beta}) = E[3n\beta^{3n}y^{(-3n-1)}] - \beta $$ <strong>My second question arises here. I'm not really sure how I am supposed to find the expectation. Namely, I don't know how I am supposed to treat the $y$ variable. I think that the $\beta$ variable is supposed to be treated the same way as a random variable, and that $n$ is supposed to be treated as a constant.</strong></p> <p>After solving for the expectation, I should be able to get the Bias.</p> <p><strong><em>For part b</em></strong> $$ MSE(\hat{\beta}) = Bias(\hat{\beta})^2 + Var(\hat{\beta}) $$ The bias part of this formula should follow from part a. This would leave just the variance to calculate. I would expect to use the variance formula: $$ Var(\hat{\beta}) = E[\hat{\beta}^2] - E[\hat{\beta}]^2 $$ And I would also expect that both expectations in this formula could be calculated using the same methods in part a. Is this correct?</p>
0non-cybersec
Stackexchange
Iterating Random Matrix Operations. <p>Consider the following probability measure on the integers concentrated around $0$: the probability of drawing $0$ is $\frac{1}{2}$, of drawing ($1$ or $-1$) is $\frac{1}{4}$ split evenly among the two choices, of drawing ($2$ or $-2$) is $\frac{1}{8}$ and so forth. Call this measure $\mu$.</p> <p>Now consider an $n \times n$ matrix $M$ whose entries have been drawn in a $\mu$-iid fashion. Define a $\mu$-random row operation on $M$ as follows: pick two numbers $p,q$ randomly according to the uniform distribution on $\lbrace 1,2,\ldots,n \rbrace$ and also pick an integer $m$ according to $\mu$. Then, we perform the row operation that replaces the $p$-th row of $M$ by itself plus $m$ times the $q$-th row. Similarly define a $\mu$-random column operation.</p> <blockquote> <p>What does the distribution of entries in $M$ look like as the number of $\mu$-random row and column operations goes to $\infty$?</p> </blockquote> <h2>Background</h2> <p>I should confess that this question does not arise from my own research, but rather from watching the progress of some undergraduates taking linear algebra who have not quite mastered the Gaussian elimination algorithm yet. Their strategy for row reduction seemed to involve blindly performing row operations without caring for pivots or GCD's or anything of the sort. In order to incur a minimal computational burden, they seemed to prefer small scalar multiples of rows, so I chose $\mu$ to be concentrated on the small integers. What are the odds that they will get lucky with this blind strategy and end up with a matrix largely populated with zeros?</p>
0non-cybersec
Stackexchange
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
Rag and Bone is offering $150 off of any orders $350+ (on top of their sale prices) - email code! (Unsure if code is a universal one).
0non-cybersec
Reddit
Made this giant cake to celebrate myself..
0non-cybersec
Reddit
Solving differential equations of the form $f&#39;(x)=f(x+1)$. <p>How to solve differential equations of the following form: </p> <p><span class="math-container">$\frac{df}{dx} = f(x+1)$</span></p>
0non-cybersec
Stackexchange
What was THE top story of your day?.
0non-cybersec
Reddit
Absolutness of $\Pi_1^1$ statements. <p>Shoenfield absoluteness is well known for $\Pi_2^1$-statements, but it does not hold between a countable transitive model of ZFC and the universe. But it is also known that $\Pi_1^1$ statements are absolute between a countable transitive model of set theory and the universe.</p> <p>My question is: </p> <p>Where can I find a good reference for the last fact?</p>
0non-cybersec
Stackexchange
Entrance to death row at San Quentin prison.
0non-cybersec
Reddit
Minkowski sum of two disks. <p>An open disk with radius $r$ centered at $\mathbf{p}$ is $D(\mathbf{p}, r)=\{\mathbf{q} \mid d(\mathbf p, \mathbf q) &lt; r\}$, and the Minkowski sum of two sets $A$ and $B$ is $A \oplus B=\{\mathbf p + \mathbf q \mid \mathbf p \in A, \mathbf q \in B \}$.</p> <p>How can you show that $D(\mathbf{a}, r_a) \oplus D(\mathbf{b}, r_b) = D(\mathbf{a} + \mathbf{b}, r_a + r_b)$?</p> <p><em>Attempt:</em></p> <p>\begin{align} D(\mathbf{a}, r_a) \oplus D(\mathbf{b}, r_b) &amp;= \{\mathbf p + \mathbf q \mid \mathbf p \in D(\mathbf{a}, r_a), \mathbf q \in D(\mathbf{b}, r_b) \} \\&amp;= \{\mathbf p + \mathbf q \mid \mathbf p \in \{\mathbf{x} \mid d(\mathbf a, \mathbf x) &lt; r_a\}, \mathbf q \in \{\mathbf{y} \mid d(\mathbf b, \mathbf y) &lt; r_b\} \\&amp;= \{\mathbf p + \mathbf q \mid d(\mathbf a, \mathbf p) &lt; r_a, d(\mathbf b, \mathbf q) &lt; r_b \} \end{align}</p> <p>And here I got stuck. As best as I can tell, now I would need to prove that $$d(\mathbf a, \mathbf p) &lt; r_a, d(\mathbf b, \mathbf q) &lt; r_b \iff d(\mathbf a + \mathbf b, \mathbf p + \mathbf q) &lt; r_a + r_b$$ but this seems false to me. I tried adding the two inequalities together, but that doesn't seem to give me that condition unless $\mathbf a - \mathbf p$ and $\mathbf b - \mathbf q$ are parallel.</p>
0non-cybersec
Stackexchange
How to set logo for an repository/image on docker hub. <p>I'm publishing our product image to the docker hub. We created the docker hub account, organization and push our docker image to a repository. Now we specified the avatar to the docker hub account successfully. It works.</p> <p>I cannot specify a logo to my docker image/repository. I see many docker images have dedicated logo. But I didn't find any place to specify the logo.</p> <p>I search for the solution on the internet. But I still didn't find it. I'm not sure if we have to join the DTP(Docker Technology Partner) or put the logo file in dockerfile or other places that docker hub can get it.</p>
0non-cybersec
Stackexchange
Kodama (a.k.a tree spirits) from Princess Mononoke found in Tree City, USA.
0non-cybersec
Reddit
Is variance taken into account when algorithm analysis is performed?. <p>Silly question. I was wondering if the measure of "variance" is taken into account when the analysis of an algorithm is performed (asymptotic). In general best-case,worst-case,average-case are taken into account, even for more complicated analysis. However is the variance actually used sometimes?</p> <p>I can imagine that in theory you can perform the analysis, but at my knowledge no-one seems actually to use such measure, and I wonder why.</p>
0non-cybersec
Stackexchange
Ubuntu virtual terminals hotkey problem. <p>This problem appears from at least 11.04 till at least 12.04.</p> <p>Usually if you want to open one of six virtual terminals, you press hotkeys <kbd>Ctrl</kbd>+<kbd>Alt</kbd>+<kbd>F[1-6]</kbd> (or <kbd>Ctrl</kbd>+<kbd>Alt</kbd>+<kbd>F7</kbd> to go back to <code>X</code>).</p> <p>But I have a problem on every build I've tested that virtual terminals which are opened with <kbd>Alt</kbd>+<kbd>F[1-6]</kbd> (<kbd>Ctrl</kbd> is not used). So if you want just to close an application (<kbd>Alt</kbd>+<kbd>F4</kbd>) or to open an "Execute" dialog (<kbd>Alt</kbd>+<kbd>F2</kbd>), you firstly get <code>#4</code> or <code>#2</code> virtual terminal and after that when you come back to <code>#7</code> (<code>X</code>), the requested action is executed.</p> <p>The only solution for now I've found by experiment is restarting the <code>X</code> user session. So every time I boot in Ubuntu, I have to re-login to cure this bug till my next boot.</p> <p>I've looked for solutions in the Internet, but my question formulations have been luring me to other problems, very far from mine.</p> <p>Hardware info:<pre></p> <blockquote> <h1>dmidecode 2.11</h1> <p>SMBIOS 2.6 present. 63 structures occupying 2519 bytes. Table at 0x000E0850.</p> <p>Handle 0x0000, DMI type 0, 24 bytes BIOS Information Vendor: Phoenix Technologies Ltd. Version: 05FI Release Date: 10/12/2011 Address: 0xE0000 Runtime Size: 128 kB ROM Size: 2560 kB Characteristics: PCI is supported BIOS is upgradeable BIOS shadowing is allowed Boot from CD is supported Selectable boot is supported EDD is supported Print screen service is supported (int 5h) 8042 keyboard services are supported (int 9h) Serial services are supported (int 14h) Printer services are supported (int 17h) CGA/mono video services are supported (int 10h) NEC PC-98 ACPI is supported USB legacy is supported BIOS boot specification is supported Function key-initiated network boot is supported Targeted content distribution is supported BIOS Revision: 0.1</p> <p>Handle 0x0001, DMI type 1, 27 bytes System Information Manufacturer: SAMSUNG ELECTRONICS CO., LTD. Product Name: 300V3A/300V4A/300V5A/200A4B/200A5B Version: 0.1 Serial Number: HN6B93QBC00323 UUID: 1FA57720-1DD2-11B2-8000-B933AB406D0D Wake-up Type: Other SKU Number: System SKUNumber Family: HuronRiver System</p> <p>Handle 0x0002, DMI type 2, 15 bytes Base Board Information Manufacturer: SAMSUNG ELECTRONICS CO., LTD. Product Name: 300V3A/300V4A/300V5A/200A4B/200A5B Version: FAB1 Serial Number: 123490EN400015 Asset Tag: Base Board Asset Tag Features: Board is a hosting board Board is replaceable Location In Chassis: Part Component Chassis Handle: 0x0000 Type: Motherboard Contained Object Handles: 0</p> <p>Handle 0x0003, DMI type 3, 21 bytes Chassis Information Manufacturer: SAMSUNG ELECTRONICS CO., LTD. Type: Laptop Lock: Not Present Version: 0.1 Serial Number: 123490EN400015 Asset Tag: Asset Tag Boot-up State: Safe Power Supply State: Safe Thermal State: Other Security Status: Other OEM Information: 0x00000000 Height: Unspecified Number Of Power Cords: 1 Contained Elements: 0</p> <p>Handle 0x0004, DMI type 8, 9 bytes Port Connector Information Internal Reference Designator: None Internal Connector Type: None External Reference Designator: Keyboard External Connector Type: PS/2 Port Type: Keyboard Port</p> <p>Handle 0x0005, DMI type 8, 9 bytes Port Connector Information Internal Reference Designator: None Internal Connector Type: None External Reference Designator: Mouse External Connector Type: PS/2 Port Type: Mouse Port</p> <p>Handle 0x0006, DMI type 8, 9 bytes Port Connector Information Internal Reference Designator: None Internal Connector Type: Other External Reference Designator: COM 1 External Connector Type: None Port Type: Serial Port 16550A Compatible</p> <p>Handle 0x0007, DMI type 8, 9 bytes Port Connector Information Internal Reference Designator: None Internal Connector Type: None External Reference Designator: USB2.0 - 1# External Connector Type: Access Bus (USB) Port Type: USB</p> <p>Handle 0x0008, DMI type 8, 9 bytes Port Connector Information Internal Reference Designator: None Internal Connector Type: None External Reference Designator: USB2.0 - 2# External Connector Type: Access Bus (USB) Port Type: USB</p> <p>Handle 0x0009, DMI type 8, 9 bytes Port Connector Information Internal Reference Designator: None Internal Connector Type: None External Reference Designator: USB2.0 - 3# External Connector Type: Access Bus (USB) Port Type: USB</p> <p>Handle 0x000A, DMI type 8, 9 bytes Port Connector Information Internal Reference Designator: None Internal Connector Type: None External Reference Designator: USB2.0 - 4# External Connector Type: Access Bus (USB) Port Type: USB</p> <p>Handle 0x000B, DMI type 8, 9 bytes Port Connector Information Internal Reference Designator: None Internal Connector Type: None External Reference Designator: USB2.0 - 5# External Connector Type: Access Bus (USB) Port Type: USB</p> <p>Handle 0x000C, DMI type 8, 9 bytes Port Connector Information Internal Reference Designator: None Internal Connector Type: None External Reference Designator: USB2.0 - 6# External Connector Type: Access Bus (USB) Port Type: USB</p> <p>Handle 0x000D, DMI type 8, 9 bytes Port Connector Information Internal Reference Designator: None Internal Connector Type: None External Reference Designator: USB2.0 - 7# External Connector Type: Access Bus (USB) Port Type: USB</p> <p>Handle 0x000E, DMI type 8, 9 bytes Port Connector Information Internal Reference Designator: None Internal Connector Type: None External Reference Designator: USB2.0 - 8# External Connector Type: Access Bus (USB) Port Type: USB</p> <p>Handle 0x000F, DMI type 8, 9 bytes Port Connector Information Internal Reference Designator: None Internal Connector Type: None External Reference Designator: USB2.0 - 9# External Connector Type: Access Bus (USB) Port Type: USB</p> <p>Handle 0x0010, DMI type 8, 9 bytes Port Connector Information Internal Reference Designator: None Internal Connector Type: None External Reference Designator: USB2.0 - 10# External Connector Type: Access Bus (USB) Port Type: USB</p> <p>Handle 0x0011, DMI type 8, 9 bytes Port Connector Information Internal Reference Designator: None Internal Connector Type: None External Reference Designator: USB2.0 - 11# External Connector Type: Access Bus (USB) Port Type: USB</p> <p>Handle 0x0012, DMI type 8, 9 bytes Port Connector Information Internal Reference Designator: None Internal Connector Type: None External Reference Designator: USB2.0 - 12# External Connector Type: Access Bus (USB) Port Type: USB</p> <p>Handle 0x0013, DMI type 8, 9 bytes Port Connector Information Internal Reference Designator: None Internal Connector Type: None External Reference Designator: USB2.0 - 13# External Connector Type: Access Bus (USB) Port Type: USB</p> <p>Handle 0x0014, DMI type 8, 9 bytes Port Connector Information Internal Reference Designator: None Internal Connector Type: None External Reference Designator: USB2.0 - 14# External Connector Type: Access Bus (USB) Port Type: USB</p> <p>Handle 0x0015, DMI type 8, 9 bytes Port Connector Information Internal Reference Designator: None Internal Connector Type: None External Reference Designator: Ethernet External Connector Type: RJ-45 Port Type: Network Port</p> <p>Handle 0x0016, DMI type 8, 9 bytes Port Connector Information Internal Reference Designator: SATA Port 1 J8J1 Internal Connector Type: SAS/SATA Plug Receptacle External Reference Designator: None External Connector Type: None Port Type: SATA</p> <p>Handle 0x0017, DMI type 8, 9 bytes Port Connector Information Internal Reference Designator: SATA Port 2 J7G1 Internal Connector Type: SAS/SATA Plug Receptacle External Reference Designator: None External Connector Type: None Port Type: SATA</p> <p>Handle 0x0018, DMI type 8, 9 bytes Port Connector Information Internal Reference Designator: SATA Port 3(ODD) J9E7 Internal Connector Type: SAS/SATA Plug Receptacle External Reference Designator: None External Connector Type: None Port Type: SATA</p> <p>Handle 0x0019, DMI type 8, 9 bytes Port Connector Information Internal Reference Designator: None Internal Connector Type: None External Reference Designator: eSATA Port 1 J6J1 External Connector Type: SAS/SATA Plug Receptacle Port Type: SATA</p> <p>Handle 0x001A, DMI type 8, 9 bytes Port Connector Information Internal Reference Designator: None Internal Connector Type: None External Reference Designator: eSATA Port 2 J7J1 External Connector Type: SAS/SATA Plug Receptacle Port Type: SATA</p> <p>Handle 0x001B, DMI type 8, 9 bytes Port Connector Information Internal Reference Designator: None Internal Connector Type: None External Reference Designator: SATA Port 6(Docking) External Connector Type: SAS/SATA Plug Receptacle Port Type: SATA</p> <p>Handle 0x001C, DMI type 9, 17 bytes System Slot Information Designation: PEG Gen1/Gen2 X16 Type: x16 PCI Express x16 Current Usage: In Use Length: Long ID: 0 Characteristics: 3.3 V is provided Opening is shared PME signal is supported Bus Address: 0000:00:00.0</p> <p>Handle 0x001D, DMI type 9, 17 bytes System Slot Information Designation: PCI-Express 1 X1 Type: x1 PCI Express Current Usage: In Use Length: Short ID: 1 Characteristics: 3.3 V is provided Opening is shared PME signal is supported Bus Address: 0000:00:00.0</p> <p>Handle 0x001E, DMI type 9, 17 bytes System Slot Information Designation: PCI-Express 2 X1 Type: x1 PCI Express Current Usage: Available Length: Short ID: 2 Characteristics: 3.3 V is provided Opening is shared PME signal is supported Bus Address: 0000:00:00.0</p> <p>Handle 0x001F, DMI type 9, 17 bytes System Slot Information Designation: PCI-Express 3 X1 Type: x1 PCI Express Current Usage: Available Length: Short ID: 3 Characteristics: 3.3 V is provided Opening is shared PME signal is supported Bus Address: 0000:00:00.0</p> <p>Handle 0x0020, DMI type 9, 17 bytes System Slot Information Designation: PCI-Express 4 X1 Type: x1 PCI Express Current Usage: In Use Length: Short ID: 4 Characteristics: 3.3 V is provided Opening is shared PME signal is supported Bus Address: 0000:00:00.0</p> <p>Handle 0x0021, DMI type 9, 17 bytes System Slot Information Designation: PCI-Express 5 X1 Type: x1 PCI Express Current Usage: Available Length: Short ID: 5 Characteristics: 3.3 V is provided Opening is shared PME signal is supported Bus Address: 0000:00:00.0</p> <p>Handle 0x0022, DMI type 10, 6 bytes On Board Device Information Type: Video Status: Enabled Description: Intel(R) Extreme Graphics 3 Controller</p> <p>Handle 0x0023, DMI type 10, 6 bytes On Board Device Information Type: Sound Status: Enabled Description: Intel(R) Azalia Audio Device</p> <p>Handle 0x0024, DMI type 11, 5 bytes OEM Strings String 1: AAABAAAAAAAA String 2: 2012/02/22</p> <p>Handle 0x0025, DMI type 12, 5 bytes System Configuration Options</p> <p>Handle 0x0026, DMI type 13, 22 bytes BIOS Language Information Language Description Format: Abbreviated Installable Languages: 4 en-US fr-FR ja-JP ko-KR Currently Installed Language: en-US</p> <p>Handle 0x0027, DMI type 22, 26 bytes Portable Battery Location: Rear Manufacturer: Intel Corp. Manufacture Date: 2008 Serial Number: 1.0 Name: Smart Battery Design Capacity: Unknown Design Voltage: Unknown SBDS Version: V1.0 Maximum Error: Unknown SBDS Chemistry: Lithium-Ion OEM-specific Information: 0x00000000</p> <p>Handle 0x0028, DMI type 32, 11 bytes System Boot Information Status: No errors detected</p> <p>Handle 0x0029, DMI type 18, 23 bytes 32-bit Memory Error Information Type: OK Granularity: Unknown Operation: Unknown Vendor Syndrome: Unknown Memory Array Address: Unknown Device Address: Unknown Resolution: Unknown</p> <p>Handle 0x002A, DMI type 21, 7 bytes Built-in Pointing Device Type: Mouse Interface: PS/2 Buttons: 2</p> <p>Handle 0x002B, DMI type 23, 13 bytes System Reset Status: Disabled Watchdog Timer: Present Boot Option: Do Not Reboot Boot Option On Limit: Do Not Reboot Reset Count: Unknown Reset Limit: Unknown Timer Interval: Unknown Timeout: Unknown</p> <p>Handle 0x002C, DMI type 24, 5 bytes Hardware Security Power-On Password Status: Unknown Keyboard Password Status: Unknown Administrator Password Status: Unknown Front Panel Reset Status: Unknown</p> <p>Handle 0x002D, DMI type 27, 14 bytes Cooling Device Type: Unknown Status: Unknown OEM-specific Information: 0x00000090 Nominal Speed: Unknown Or Non-rotating</p> <p>Handle 0x002E, DMI type 39, 22 bytes System Power Supply Location: TBD by ODM Name: TBD by ODM Manufacturer: TBD by ODM Serial Number: TBD by ODM Asset Tag: TBD by ODM Model Part Number: TBD by ODM Revision: 1.0 Max Power Capacity: Unknown Status: Present, OK Type: Battery Input Voltage Range Switching: Other Plugged: Yes Hot Replaceable: Yes</p> <p>Handle 0x002F, DMI type 4, 42 bytes Processor Information Socket Designation: CPU Type: Central Processor Family: Core i7 Manufacturer: Intel(R) Corporation ID: A7 06 02 00 FF FB EB BF Signature: Type 0, Family 6, Model 42, Stepping 7 Flags: FPU (Floating-point unit on-chip) VME (Virtual mode extension) DE (Debugging extension) PSE (Page size extension) TSC (Time stamp counter) MSR (Model specific registers) PAE (Physical address extension) MCE (Machine check exception) CX8 (CMPXCHG8 instruction supported) APIC (On-chip APIC hardware supported) SEP (Fast system call) MTRR (Memory type range registers) PGE (Page global enable) MCA (Machine check architecture) CMOV (Conditional move instruction supported) PAT (Page attribute table) PSE-36 (36-bit page size extension) CLFSH (CLFLUSH instruction supported) DS (Debug store) ACPI (ACPI supported) MMX (MMX technology supported) FXSR (FXSAVE and FXSTOR instructions supported) SSE (Streaming SIMD extensions) SSE2 (Streaming SIMD extensions 2) SS (Self-snoop) HTT (Multi-threading) TM (Thermal monitor supported) PBE (Pending break enabled) Version: Intel(R) Core(TM) i5-2450M CPU @ 2.50GHz Voltage: 1.2 V External Clock: 100 MHz Max Speed: 2500 MHz Current Speed: 2500 MHz Status: Populated, Enabled Upgrade: ZIF Socket L1 Cache Handle: 0x0030 L2 Cache Handle: 0x0031 L3 Cache Handle: 0x0032 Serial Number: Not Supported by CPU Asset Tag: TBD By OEM Part Number: TBD By OEM Core Count: 2 Core Enabled: 2 Thread Count: 4 Characteristics: 64-bit capable</p> <p>Handle 0x0030, DMI type 7, 19 bytes Cache Information Socket Designation: L1-Cache Configuration: Enabled, Not Socketed, Level 1 Operational Mode: Write Through Location: Internal Installed Size: 64 kB Maximum Size: 64 kB Supported SRAM Types: Synchronous Installed SRAM Type: Synchronous Speed: Unknown Error Correction Type: Single-bit ECC System Type: Data Associativity: 8-way Set-associative</p> <p>Handle 0x0031, DMI type 7, 19 bytes Cache Information Socket Designation: L2-Cache Configuration: Enabled, Not Socketed, Level 2 Operational Mode: Write Through Location: Internal Installed Size: 256 kB Maximum Size: 256 kB Supported SRAM Types: Synchronous Installed SRAM Type: Synchronous Speed: Unknown Error Correction Type: Single-bit ECC System Type: Data Associativity: 8-way Set-associative</p> <p>Handle 0x0032, DMI type 7, 19 bytes Cache Information Socket Designation: L3-Cache Configuration: Enabled, Not Socketed, Level 3 Operational Mode: Write Back Location: Internal Installed Size: 3072 kB Maximum Size: 3072 kB Supported SRAM Types: Synchronous Installed SRAM Type: Synchronous Speed: Unknown Error Correction Type: Single-bit ECC System Type: Unified Associativity: 12-way Set-associative</p> <p>Handle 0x0033, DMI type 16, 15 bytes Physical Memory Array Location: System Board Or Motherboard Use: System Memory Error Correction Type: None Maximum Capacity: 16 GB Error Information Handle: Not Provided Number Of Devices: 4</p> <p>Handle 0x0034, DMI type 17, 28 bytes Memory Device Array Handle: 0x0033 Error Information Handle: Not Provided Total Width: 64 bits Data Width: 64 bits Size: 2048 MB Form Factor: SODIMM Set: None Locator: ChannelA-DIMM0 Bank Locator: BANK 0 Type: DDR3 Type Detail: Synchronous Speed: 1333 MHz Manufacturer: Samsung Serial Number: B41CC40D Asset Tag: 9876543210 Part Number: M471B5773CHS-CH9<br> Rank: Unknown</p> <p>Handle 0x0035, DMI type 20, 19 bytes Memory Device Mapped Address Starting Address: 0x00000000000 Ending Address: 0x0007FFFFFFF Range Size: 2 GB Physical Device Handle: 0x0034 Memory Array Mapped Address Handle: 0x003A Partition Row Position: Unknown Interleave Position: 1 Interleaved Data Depth: 2</p> <p>Handle 0x0036, DMI type 17, 28 bytes Memory Device Array Handle: 0x0033 Error Information Handle: Not Provided Total Width: Unknown Data Width: Unknown Size: No Module Installed Form Factor: DIMM Set: None Locator: ChannelA-DIMM1 Bank Locator: BANK 1 Type: Unknown Type Detail: None Speed: Unknown Manufacturer: Not Specified Serial Number: Not Specified Asset Tag: 9876543210 Part Number: Not Specified Rank: Unknown</p> <p>Handle 0x0037, DMI type 17, 28 bytes Memory Device Array Handle: 0x0033 Error Information Handle: Not Provided Total Width: 64 bits Data Width: 64 bits Size: 4096 MB Form Factor: SODIMM Set: None Locator: ChannelB-DIMM0 Bank Locator: BANK 2 Type: DDR3 Type Detail: Synchronous Speed: 1333 MHz Manufacturer: Samsung Serial Number: 01190CD6 Asset Tag: 9876543210 Part Number: M471B5273CM0-CH9<br> Rank: Unknown</p> <p>Handle 0x0038, DMI type 20, 19 bytes Memory Device Mapped Address Starting Address: 0x00080000000 Ending Address: 0x0017FFFFFFF Range Size: 4 GB Physical Device Handle: 0x0037 Memory Array Mapped Address Handle: 0x003A Partition Row Position: Unknown Interleave Position: 2 Interleaved Data Depth: 2</p> <p>Handle 0x0039, DMI type 17, 28 bytes Memory Device Array Handle: 0x0033 Error Information Handle: Not Provided Total Width: Unknown Data Width: Unknown Size: No Module Installed Form Factor: DIMM Set: None Locator: ChannelB-DIMM1 Bank Locator: BANK 3 Type: Unknown Type Detail: None Speed: Unknown Manufacturer: Not Specified Serial Number: Not Specified Asset Tag: 9876543210 Part Number: Not Specified Rank: Unknown</p> <p>Handle 0x003A, DMI type 19, 15 bytes Memory Array Mapped Address Starting Address: 0x00000000000 Ending Address: 0x0017FFFFFFF Range Size: 6 GB Physical Array Handle: 0x0033 Partition Width: 4</p> <p>Handle 0x003B, DMI type 129, 8 bytes OEM-specific Type Header and Data: 81 08 3B 00 01 01 02 01 Strings: Intel_ASF Intel_ASF_001</p> <p>Handle 0x003C, DMI type 131, 64 bytes OEM-specific Type Header and Data: 83 40 3C 00 31 00 00 00 00 00 00 00 00 00 00 00 F8 00 49 1C FF FF FF FF 09 C0 00 00 01 00 07 00 40 04 0D 00 00 00 00 00 C8 00 FF FF 00 00 00 00 00 00 00 00 36 00 00 00 76 50 72 6F 00 00 00 00</p> <p>Handle 0x003D, DMI type 15, 29 bytes System Event Log Area Length: 18 bytes Header Start Offset: 0x0000 Header Length: 16 bytes Data Start Offset: 0x0010 Access Method: General-purpose non-volatile data functions Access Address: 0x00F0 Status: Valid, Not Full Change Token: 0x00000000 Header Format: Type 1 Supported Log Type Descriptors: 3 Descriptor 1: POST error Data Format 1: POST results bitmap Descriptor 2: Single-bit ECC memory error Data Format 2: Multiple-event Descriptor 3: Multi-bit ECC memory error Data Format 3: Multiple-event</p> <p>Handle 0x003E, DMI type 127, 4 bytes End Of Table</p> <p></pre></p> </blockquote>
0non-cybersec
Stackexchange
[GIF] MRW no leaked nudes of shrek....
0non-cybersec
Reddit
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
Thanks Evga!. 2 years and a week ago I bought a evga gts 250 superclocked (which was a bad call in of itself, at the time I could have done better). Well 3 days before my warranty expired I put together a new rig: new mobo, ram, and case and the vid card failed. Checked the 2 year warranty **OMFG** 3 days from expiring**!!** and I never registered it. Well I RMA'd it and they sent me a GTS 250, **WTF**, they sent me an inferior card! Well I posted on their forum and within minutes they told me they'd send me the right one. Well they're out of 250 SC, so they're sending me a 460 SE, gratis!. Thanks EVGA!
0non-cybersec
Reddit
Show google maps on mobile website. <p>Is it possible to add google maps on a site designed specifically for the iPhone? I have never integrated maps in my websites before, so this question really goes more because of my inexperience. Using basic html and javascript at the moment.</p>
0non-cybersec
Stackexchange
Zone parsing for GMT0. <p>I have GMT0 as the default timezone in a system and it causes problem when I'm serializing it and deserializing it just after that.</p> <pre><code>System.setProperty("user.timezone","GMT0"); DateTimeFormatter zoneFormatter = new DateTimeFormatterBuilder() .appendZoneOrOffsetId() .toFormatter(); String formatted = zoneFormatter.format(ZonedDateTime.now()); System.out.println(formatted); System.out.println(zoneFormatter.parse(formatted)); </code></pre> <p>The first <code>System.out.println</code> prints <code>GMT0</code> while the second throws the following problem.</p> <pre><code>Exception in thread "main" java.time.format.DateTimeParseException: Text 'GMT0' could not be parsed, unparsed text found at index 3 at java.time.format.DateTimeFormatter.parseResolved0(DateTimeFormatter.java:1952) at java.time.format.DateTimeFormatter.parse(DateTimeFormatter.java:1777) </code></pre> <p>is it an expected behavior? Is there a way to do that in a safe manner?</p>
0non-cybersec
Stackexchange
Looking to rename a batch of cab files to lowercase as well as adding their SHA1 Hash. <p>I need a batch script to rename all the files in a folder their lowercase equivalent, with their SHA1 hash added at the end after an underscore.</p> <p>Example:</p> <p>I have a file called: "Windows8.1-KB2862152-x86.cab" it's hash is "bc44b5c4daca0fb2a7b596bafb3d751231983c0e" so I need it renamed to: windows8.1-kb2862152-x86_bc44b5c4daca0fb2a7b596bafb3d751231983c0e.cab where the W is now lowercase and the KB are also lowercase.</p> <p>I have a MASSIVE amount of these files that I need in this format.</p> <p>I should also mention that I have the SHA1 tool from IBM Endpoint Manager(sha1.exe) usage is as follows: </p> <pre><code>sha1 [-r|-s|-m|-b] &lt;filename&gt; [-c] -r: Calculate Size/Sha1 and print out a prefetch style statement for 6.0+ style downloads (use this normally). -s: Sha1 only. -m: Sha1 in MIME format (hex-encoded and base-64). -b: Calculate Size/sha1 and print out a prefetch block statment for 7.2+ style downloads. -c: Puts the result string into you paste buffer so you don't need to copy/paste out of the command window. </code></pre> <p>I have the following script which I found on this site, but get "The syntax of the command is incorrect"</p> <pre><code>@ECHO OFF SET FULLNAME=%~f1 for /f "delims=" %%a in ('sha1.exe -s %FULLNAME%') do SET hash=%%a ren %FULLNAME% %FULLNAME%_%hash% </code></pre> <p>apparently it's called by: for %A IN (C:\PathToFolder*) DO C:\SomeFolder\hasher.bat "%A" however this also won't help with the lowercase renaming, and I think it would lose the file extension.</p>
0non-cybersec
Stackexchange
How do I add JavaScript to every non-index page on my Tumblr blog?. <p>I want to add JavaScript code to every individual post page on my <a href="http://en.wikipedia.org/wiki/Tumblr" rel="nofollow">Tumblr</a> blog. I have the following, but it seems to never show up on any page let alone <em>just</em> the permalink or individual post pages. I've tried many variations here with removing the <em>Posts</em> block or the <em>PermalinkPage</em> block to no avail. What am I doing wrong here?</p> <pre><code>&lt;!-- Start JS --&gt; {block:Posts} {block:PermalinkPage} &lt;script type='text/javascript'&gt; __config = { {block:Date},date:'{Year}-{MonthNumberWithZero}-{DayOfMonthWithZero} {24HourWithZero}:{Minutes}:{Seconds}'{/block:Date} {block:PostSummary},title:{JSPlaintextPostSummary}{/block:PostSummary} {block:HasTags},tags:[{block:Tags}'{Tag}', {/block:Tags}],{/block:HasTags} ,url:'{URLEncodedPermalink}' }; (function(){ var s = document.createElement('script'); s.type = 'text/javascript'; s.src = document.location.protocol + '//example.com/example.js'; (document.getElementsByTagName('head')[0] || document.getElementsByTagName('body')[0]).appendChild(s); })(); &lt;/script&gt; {/block:PermalinkPage} {/block:Posts} &lt;!-- END JS --&gt; </code></pre>
0non-cybersec
Stackexchange
$W^*$-algebras: Canonical choice of an isometric isomorphism $d: M \to ((M^*)_\sigma)^*$?. <p>Let $M$ be a $W^*$-algebra, i.e. a $C^*$-algebra which is isometrically isomorphic to the dual of a Banach space $M_*$. One can then show that $M_*$ is isometrically isomorphic to $(M^*)_\sigma$, the weak* continuous linear functionals on $M$. This allows a canonical choice of the predual, as $(M^*)_\sigma$ is determined entirely by the algebraic structure of $M$. However, I wondered if it is also possible to give the accompanying isometric isomorphism $d: M \to ((M^*)_\sigma)^*$ in a canonical way. The former arguments show that such an isomorphism must exist, however, it is not clear what $d$ exactly looks like. My guess was that one can choose $d$ as the dual pairing $A \mapsto \langle \cdot , A \rangle$, but I don't know how to show/disprove whether this $d$ is actually surjective. Does this work? If not, are there any other ways to give an isometric isomorphism $d$ in a canonical/explixit way?</p> <p><em>Edit</em>: <a href="https://ncatlab.org/nlab/show/von+Neumann+algebra#preduals" rel="nofollow noreferrer">This article</a> (last paragraph of section 4) states my exact claim, sadly, there is no proof/justification that goes along with it.</p>
0non-cybersec
Stackexchange
Spring Data CrudRepository @Query With LIKE and IgnoreCase. <p>I need to retrieve some Entity fields from CrudRepository:</p> <pre><code>public class User { private String name; // getters and setters } public interface UserRepository extends CrudRepository&lt;User, Long&gt; { @Query("SELECT U.name FROM User U WHERE LOWER(U.name) LIKE LOWER(?1)") List&lt;String&gt; findByName(String matchPhrase); } </code></pre> <p>Basically, I want to get equivalent of SQL query:</p> <pre><code>SELECT u.name FROM user u WHERE LOWER(u.name) LIKE LOWER('match%') </code></pre> <p>The problem is that @Query doesn't works (empty list returned), hibernate generates log:</p> <blockquote> <p>Hibernate: select user0_.name as col_0_0_ from user user0_ where lower(user0_.name) like lower(?)</p> </blockquote> <p>I actually didn't get how to specify a parameter bound with appended %.</p> <pre><code>// also fails at compile-time @Query("SELECT U.name FROM User U WHERE LOWER(U.name) LIKE LOWER(?1%)") </code></pre> <blockquote> <p>org.hibernate.hql.internal.ast.QuerySyntaxException: unexpected token: null near line ...</p> </blockquote> <p>This works fine but returns whole Entity, what may produce long response because I need retrieve only specific fields:</p> <pre><code>List&lt;User&gt; findByNameStartingWithIgnoreCase(String match); </code></pre>
0non-cybersec
Stackexchange
Simple exercise on linear transformations - confused. <p>A Linear transformation $L$ in $\mathbb R^3$ with matrix $$ L_b^b = \left(\begin{matrix} 1 &amp; 0 &amp; 5 \\ 0 &amp; -2 &amp; 2 \\ 1 &amp; -2 &amp; 7 \end{matrix}\right)$$ and basis $b = \{ (1,0,2), (0,2,1), (1,3,1) \}$ find $L(2,0,5)$ </p> <p>my first guess was $L * \left(\begin{matrix}2\\0\\5\end{matrix}\right)$ which would be $\left(\begin{matrix}27\\10\\37\end{matrix}\right)$ but I'm confused since I did not use the basis anywhere... is it given as extra info to confuse me, or did I mess up?</p>
0non-cybersec
Stackexchange
Can Visual Studio editor convert from all-caps to camel case?. <p>Is there a command or an addin in Visual Studio 2012 that would convert a selected piece of C# source code from <code>SOME_NAME</code> to <code>SomeName</code>?</p>
0non-cybersec
Stackexchange
wittgenstein's photographs.
0non-cybersec
Reddit
Configuring htaccess/mod_rewrite to serve static files with question mark in the URL. <p>I've just taken on hosting of an ancient site that was converted from asp to static html, consisting of about 6,000 files. However, my server doesn't like the filenames, giving a 404 error. The URLs are all of the form:</p> <pre><code>filename.asp?id=123&amp;a=something.html </code></pre> <p>where <code>id</code> is always an integer and <code>a</code> is always a string of characters &amp; numbers.</p> <p>Is there any way I can use htaccess and mod_rewrite to tell it that the question mark is part of the URL rather than signifying a query string?</p>
0non-cybersec
Stackexchange
How is key length of feistel cipher calculated?. <p>In Feitsel Algorithim</p> <p>If our block size is n, then our key length would be n x 2^n .</p> <p>But this does not make sense for me. For example: Let's assume that we have 4 bit block size. If our block size is 4, how can the key length be 64 bit?</p>
0non-cybersec
Stackexchange
A POC Remote Desktop (RDP) session hijack utility for disconnected sessions.
1cybersec
Reddit
[request] what are your favourite low carb recipes?. I'm looking for inspiration for tonight's dinner. Thanks in advance!
0non-cybersec
Reddit
Curvature of parallel curve for a regular plane curve. <p>Let $\gamma$ be a regular plane curve and let $\lambda$ be a constant. The <strong>parallel</strong> curve $\gamma^\lambda$ of $\gamma$ is defined as $$\gamma^\lambda(t)=\gamma(t)+\lambda n_s(t)$$ where $n_s$ is the <strong>normal</strong> of the tangent line.</p> <p><strong>Question:</strong> </p> <blockquote> <p>Let $\kappa_s(t)$ be the signed curvature of $\gamma$ at $t$.</p> <p>Show that if $\lambda\kappa_s(t)\neq1$ then $\gamma$ is a regular curve and its signed curvature is $\frac{\kappa_s}{|1-\lambda\kappa_s(t)|}$.</p> </blockquote> <p><strong>My work so far:</strong></p> <p>$\gamma^\lambda(t)=\gamma(t)+\lambda n_s(t)$ $\implies$ $\frac{d\gamma^\lambda(t)}{d s^\lambda}\frac{ds^\lambda}{dt} = \frac{d\gamma(t)}{ds}\frac{ds}{dt}+\lambda\frac{dn_s(t)}{ds}\frac{ds}{dt}$. </p> <p>Let $T_\gamma(t)$ denote the tangent vector of $\gamma$ at $t$. Since $n_s'=-\kappa_sT$ we have:</p> <p>$T_{\gamma^\lambda}\frac{ds^\lambda}{dt} = T_\gamma\frac{ds}{dt}+\lambda(-\kappa_sT_\gamma)\frac{ds}{dt}$ $\implies$ $T_{\gamma^\lambda}\frac{ds^\lambda}{dt} = (1-\lambda\kappa_s)T_\gamma\frac{ds}{dt}$.</p> <p>I think that implies that $\frac{ds^\lambda}{dt} = |(1-\lambda\kappa_s)|\frac{ds}{dt}$, since $T_{\gamma^\lambda}$ and $T_\gamma$ are co-linear, and the variance of one is described in relation to the other. </p> <p>I don't know where to go from here, but this feels like the right direction. Also, I'm not really sure what the geometric sense of what I'm proving is. So any advice is much appreciated. Thanks.</p>
0non-cybersec
Stackexchange
In case of a given graph , Is that possible to build trapezoidal map in linear time. <p>[This regarding to Computational geometry in CS]</p> <p>Let's say that I have a graph G which contains v vectices and e edges, For instance a veronoi diagram VD(G).</p> <p>I'd like to build a <a href="http://www.ti.inf.ethz.ch/ew/lehre/CG12/lecture/Chapter%209.pdf" rel="nofollow">trapezodial map</a> out of my given graph, </p> <p>Is that possible to build trapezodial map in linear time for a given graph, Instead of O(nlogn) regular construction time ? </p> <p>I have been thinking about sweep line trapezoidal map construction where for each edge during the sweep line would construct the upper and lower sites. </p> <p>Thanks in advanced</p>
0non-cybersec
Stackexchange
I'm an asshole..
0non-cybersec
Reddit
Kahler differentials of a Hopf Algebra. <p>Let <span class="math-container">$A$</span> be a <span class="math-container">$k$</span>-Hopf Algebra over some ring <span class="math-container">$k$</span>, with augmentation ideal <span class="math-container">$J_A=$</span> ker <span class="math-container">$(\epsilon:A\rightarrow k)$</span> </p> <p>I would like to prove that the module of Khaler Differentials <span class="math-container">$\Omega_A$</span> of <span class="math-container">$A$</span> over <span class="math-container">$k$</span> is isomorphic to the tensor product <span class="math-container">$A\otimes_k J/J^2$</span>.</p> <p>I found this theorem in W.C. Waterhouse Intro to Aff. Group Schemes (11.3 pag 85), but I don't get his proof.</p> <p>Related question: <a href="https://math.stackexchange.com/questions/3190731/kernel-of-an-algebra-map-and-module-of-kahler-differentials">Kernel of an algebra map and module of Kahler Differentials</a></p>
0non-cybersec
Stackexchange
SSH AND Telnet Libraries to use in same Python Script?. I'm fairly new to scripting so please bear with me. I built a script that uses Netmiko to go out and check firmware on our devices. I wanted to incorporate telnet into this as well. We have a shop of mixed vendors as well as a mix of SSH/Telnet (don't ask) and i'm having trouble trying to do this. I don't think there's a way to load a json file to use with Telnet like there is with Netmiko correct? If that's the case, what's the best way to load a list of devices, where I could only call one file, rather than make two separate files. Sorry if this is vague. If you need more info, please let me know. Thanks.
1cybersec
Reddit
Saudi Arabia reveals plans to be powered entirely by renewable energy.
0non-cybersec
Reddit
Force Java stream to execute part of a pipeline early to submit blocking tasks to a thread pool. <p>I have a list of objects that I want to process and Java8 stream API looks the most clean and readable way to do it.</p> <p>But some operations I need to do on these objects include blocking IO (like reading a database) – so I’d like to submit those operations to a threadpool with a couple dozens threads.</p> <p>At first I thought about doing something along the lines of:</p> <pre><code>myObjectList .stream() .filter(wrapPredicate(obj -&gt; threadPoolExecutor.submit( () -&gt; longQuery(obj) // returns boolean ).get()) // wait for future &amp; unwrap boolean .map(filtered -&gt; threadPoolExecutor.submit( () -&gt; anotherQuery(filtered) // returns Optional )) .map(wrapFunction(Future::get)) .filter(Optional::isPresent) .map(Optional::get) .collect(toList()); </code></pre> <p>The <code>wrapPredicate</code> and <code>wrapFunction</code> are just for checked exception rethrowing.</p> <p>But, obviously, calls to <code>Future.get()</code> will block the stream’s thread until the query finishes for a given object and the stream won’t progress until then. So only one object is processed at a time and the threadpool doesn’t make sense.</p> <p>I could use a parallel stream, but then I’d need to hope that the default <code>ForkJoinPool</code> is enough for this. Or just increase <code>"java.util.concurrent.ForkJoinPool.common.parallelism"</code>, but I do not want to change the whole application’s settings for the sake of that stream. I could create the stream in a custom <code>ForkJoinPool</code>, but I see <a href="https://stackoverflow.com/a/29272776/359949">it does not guarantee that level of parallelism</a>.</p> <p>So I ended up with something like that, just to guarantee that all needed tasks are submitted to the threadPool before waiting for futures to be finished:</p> <pre><code>myObjectList .stream() .map(obj -&gt; Pair.of(obj, threadPoolExecutor.submit( () -&gt; longQuery(obj) // returns boolean )) ) .collect(toList()).stream() // terminate stream to actually submit tasks to the pool .filter(wrapPredicate(p -&gt; p.getRight().get())) // wait &amp; unwrap future after all tasks are submitted .map(Pair::getLeft) .map(filtered -&gt; threadPoolExecutor.submit( () -&gt; anotherQuery(filtered) // returns Optional )) .collect(toList()).stream() // terminate stream to actually submit tasks to the pool .map(wrapFunction(Future::get)) // wait &amp; unwrap futures after all submitted .filter(Optional::isPresent) .map(Optional::get) .collect(toList()); </code></pre> <p>Is there any obviously better way to achieve this?</p> <p>A more elegant way to tell the stream “execute the pipelined steps until now for every object in the stream now” and then keep processing other than <code>.collect(toList()).stream()</code> and a better way to filter on the effect of a <code>Future</code> than packing it into Apache Commons <code>Pair</code> to filter on <code>Pair::getRight</code> later? Or perhaps a totally different approach to the problem?</p>
0non-cybersec
Stackexchange
HELP! Paid in cash. Long time lurker, first time poster so bear with me. I'm 16 and recently got a job at a local supermarket during the weekends. I was asked to bring in my Social Security Card, my birth certificate, and a transcript. I got the job, but found out my employer was planning on paying me in cash. He made fill out a W-4 form, but have no idea what this is. Anyways, does this belong in the TIFU subreddit, or am I in good standing? Any help would really help me out.
0non-cybersec
Reddit
How to insert arabic characters into sql database?. <p>How can I insert arabic characters into sql database? I tried to insert arabic data into a table and the arabic characters in the insert script were inserted as <code>'??????'</code> in the table.</p> <p>I tried to directly paste the data into the table through sql management studio and the arabic characters was successfully and accurately inserted.</p> <p>I looked around for resolutions for this problems and some threads suggested changing the datatype to <code>nvarchar</code> instead of <code>varchar</code>. I tried this as well but without any luck.</p> <p>How can we insert arabic characters into sql database?</p>
0non-cybersec
Stackexchange
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
Ubuntu 14.04 Bluetooth not working on Lenovo Laptop. <p>I am running ubuntu 14.04 on my lenovo g510 laptop. I have issues with the bluetooth.</p> <p>Here is what i did: I installed the bluetooth and bluez and all other bluez packages using apt-get. Then, I was unsuccessful in my efforts and then I copied the .hex file from windows and used <a href="https://github.com/jessesung/hex2hcd/" rel="nofollow noreferrer">hex2hcd</a> tool to convert it to hcd and copied the same to /lib/firmware/. I was then able to connect to the bluetooth, but the audio quality of my JBL bluetooth earphones was worse. I then updated the bluez and downloaded a bunch of bluez packages.</p> <pre><code>sudo apt-get install bluez bluez-alsa bluez-audio bluez-btsco bluez-compat bluez-cups bluez-dbg bluez-gstreamer bluez-hcidump bluez-pcmcia-support bluez-tools bluez-utils python-bluez bluewho indicator-bluetooth libbluetooth-dev libgnome-bluetooth11 libbluetooth3 </code></pre> <p>Since then, I am not able to even start the bluetooth device. If i try to restart the bluetooth service (sudo /etc/init.d/bluetooth restart), it will freeze. I am now unable to turn on or turn off the bluetooth. When i open the "Bluetooth" from "System Settings", It shows, "Bluetooth is Disabled" beneath the bluetooth turn on/off switch. I am unable to enable the bluetooth.</p> <p>In addition, when i try to shutdown, i see <a href="https://i.stack.imgur.com/krTZU.jpg" rel="nofollow noreferrer">this</a> screen and ubuntu freezes at this point. </p> <p>Additional Info: This is the output of the command <strong>lspci -knn | grep Net -A2; lsusb</strong></p> <pre><code>02:00.0 Network controller [0280]: Broadcom Corporation BCM43142 802.11b/g/n [14e4:4365] (rev 01) Subsystem: Lenovo Device [17aa:0611] Kernel driver in use: wl Bus 002 Device 002: ID 8087:8000 Intel Corp. Bus 002 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub Bus 001 Device 002: ID 8087:8008 Intel Corp. Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub Bus 004 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub Bus 003 Device 005: ID 0bda:0129 Realtek Semiconductor Corp. RTS5129 Card Reader Controller Bus 003 Device 004: ID 105b:e065 Foxconn International, Inc. BCM43142A0 Bluetooth module Bus 003 Device 002: ID 174f:114f Syntek Bus 003 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub </code></pre> <p>This is the output of <strong>dmesg</strong></p> <pre><code>[ 25.142394] Bluetooth: Core ver 2.17 [ 25.144424] Bluetooth: HCI device and connection manager initialized [ 25.144433] Bluetooth: HCI socket layer initialized [ 25.144436] Bluetooth: L2CAP socket layer initialized [ 25.144442] Bluetooth: SCO socket layer initialized [ 25.501897] Bluetooth: BNEP (Ethernet Emulation) ver 1.3 [ 25.501898] Bluetooth: BNEP filters: protocol multicast [ 25.501905] Bluetooth: BNEP socket layer initialized [ 27.100960] Bluetooth: firmware loaded [ 48.821537] Bluetooth: RFCOMM TTY layer initialized [ 48.821549] Bluetooth: RFCOMM socket layer initialized [ 48.821555] Bluetooth: RFCOMM ver 1.11 </code></pre> <p>here is the firmware: </p> <pre><code>:~$ ls /lib/firmware/brcm/*.hcd /lib/firmware/brcm/BCM43142A0-105b-e065.hcd </code></pre> <p>I am looking forward to overcome the 3 issues as mentioned above, i.e bluetooth not able to be turned on/off, bluetooth service hangs when attempted to start/stop and ubuntu not shutting down. Any help is greatly appreciated. Thank you very much in advance.</p> <p><strong>EDIT 1</strong>: in the syslog, i notice the following,</p> <pre><code>Aug 21 09:47:44 ubuntu-user bluetoothd[421]: Failed to obtain handles for "Service Changed" characteristic Aug 21 09:47:44 ubuntu-user bluetoothd[421]: hci0 Load Connection Parameters failed: Unknown Command (0x01) Aug 21 09:47:47 ubuntu-user NetworkManager[794]: &lt;warn&gt; bluez error getting default adapter: Method "DefaultAdapter" with signature "" on interface "org.bluez.Manager" doesn't exist Aug 21 09:48:01 ubuntu-user pulseaudio[2018]: [pulseaudio] bluetooth-util.c: org.bluez.Manager.GetProperties() failed: org.freedesktop.DBus.Error.UnknownMethod: Method "GetProperties" with signature "" on interface "org.bluez.Manager" doesn't exist Aug 21 09:48:04 ubuntu-user blueproximity[2328]: started. Aug 21 09:48:05 ubuntu-user dbus[412]: [system] Activating service name='org.blueman.Mechanism' (using servicehelper) Aug 21 09:48:05 ubuntu-user blueman-mechanism: Starting blueman-mechanism Aug 21 09:48:05 ubuntu-user dbus[412]: [system] Successfully activated service 'org.blueman.Mechanism' Aug 21 09:48:05 ubuntu-user blueman-mechanism: loading RfKill Aug 21 09:48:05 ubuntu-user blueman-mechanism: loading Config Aug 21 09:48:05 ubuntu-user blueman-mechanism: loading Ppp Aug 21 09:48:05 ubuntu-user blueman-mechanism: loading Network Aug 21 09:48:05 ubuntu-user kernel: [ 46.871717] Bluetooth: RFCOMM TTY layer initialized Aug 21 09:48:05 ubuntu-user kernel: [ 46.871728] Bluetooth: RFCOMM socket layer initialized Aug 21 09:48:05 ubuntu-user kernel: [ 46.871733] Bluetooth: RFCOMM ver 1.11 Aug 21 09:48:35 ubuntu-user blueman-mechanism: Exiting </code></pre>
0non-cybersec
Stackexchange
Accounting Firms: Traditional or Online?.
0non-cybersec
Reddit
Multiple search and find in sql. <p>I'm new to SQL and I'm stuck on a multiple find in SQL.</p> <p>Here I'm trying to search table1 in the three columns. But I'm stuch in trying to find two phrases. I'm trying with an OR statement. </p> <p>If I remove OR LIKE '%paris%' it works but how do I find multiple words/phrases. And would this statement be case sensitive?</p> <p>I'm also using MySQL to run the above.</p> <pre><code>SELECT * FROM `table1` WHERE CONCAT_WS('|',`target_1`,`target_2`,`target_3`) LIKE '%london%' OR LIKE '%paris%' </code></pre>
0non-cybersec
Stackexchange
Daisy chaining not working anymore after running update. <p>I'm running a Dell Precision 5530 with Ubuntu 18.04 which is connected to a 24" Dell monitor through a mini-display-port to display-port cable, which is connected to a 24" Dell monitor through a display-port to mini-display-port cable using daisy chaning.</p> <p>Until yesterday, everything worked as expected, however, I did an <code>sudo apt update; sudo apt upgrade</code> and after that the daisy chaining doesn't work anymore.</p> <p>So, in general I have three monitors</p> <ol> <li>Built-in</li> <li>24" connected from Laptop (1) to this monitor (2)</li> <li>24" connected from monitor (2) to this monitor (3).</li> </ol> <p>If 3 is turned off, 1 and 2 work as expected, however, as soon as I turn on 3, not even 2 works anymore. 2 is always shown in the settings under displays, but is black when 3 is on. 3 is never in the settings.</p> <p>This is the update log from this morning </p> <pre><code>Start-Date: 2018-11-05 08:04:34 Commandline: aptdaemon role='role-commit-packages' sender=':1.113' Install: linux-headers-4.15.0-38-generic:amd64 (4.15.0-38.41, automatic), linux-modules-extra-4.15.0-38-generic:amd64 (4.15.0-38.41, automatic), linux-modules-4.15.0-38-generic:amd64 (4.15.0-38.41, automatic), linux-headers-4.15.0-38:amd64 (4.15.0-38.41, automatic), linux-image-4.15.0-38-generic:amd64 (4.15.0-38.41, automatic) Upgrade: libpackagekit-glib2-18:amd64 (1.1.9-1ubuntu2.18.04.1, 1.1.9-1ubuntu2.18.04.3), update-manager-core:amd64 (1:18.04.11.5, 1:18.04.11.6), networkd-dispatcher:amd64 (1.7-0ubuntu3.2, 1.7-0ubuntu3.3), linux-headers-generic:amd64 (4.15.0.36.38, 4.15.0.38.40), friendly-recovery:amd64 (0.2.38, 0.2.38ubuntu1), linux-libc-dev:amd64 (4.15.0-36.39, 4.15.0-38.41), libapt-inst2.0:amd64 (1.6.3ubuntu0.1, 1.6.6), yarn:amd64 (1.10.1-1, 1.12.1-1), grub-common:amd64 (2.02-2ubuntu8.6, 2.02-2ubuntu8.7), linux-image-generic:amd64 (4.15.0.36.38, 4.15.0.38.40), apt:amd64 (1.6.3ubuntu0.1, 1.6.6), libparted2:amd64 (3.2-20, 3.2-20ubuntu0.1), update-manager:amd64 (1:18.04.11.5, 1:18.04.11.6), google-chrome-stable:amd64 (70.0.3538.67-1, 70.0.3538.77-1), python-apt-common:amd64 (1.6.2, 1.6.3), grub2-common:amd64 (2.02-2ubuntu8.6, 2.02-2ubuntu8.7), gdm3:amd64 (3.28.3-0ubuntu18.04.1, 3.28.3-0ubuntu18.04.3), libapt-pkg5.0:amd64 (1.6.3ubuntu0.1, 1.6.6), packagekit-tools:amd64 (1.1.9-1ubuntu2.18.04.1, 1.1.9-1ubuntu2.18.04.3), grub-pc:amd64 (2.02-2ubuntu8.6, 2.02-2ubuntu8.7), libparted-fs-resize0:amd64 (3.2-20, 3.2-20ubuntu0.1), linux-signed-generic:amd64 (4.15.0.36.38, 4.15.0.38.40), gir1.2-gdm-1.0:amd64 (3.28.3-0ubuntu18.04.1, 3.28.3-0ubuntu18.04.3), grub-pc-bin:amd64 (2.02-2ubuntu8.6, 2.02-2ubuntu8.7), libgdm1:amd64 (3.28.3-0ubuntu18.04.1, 3.28.3-0ubuntu18.04.3), dpkg:amd64 (1.19.0.5ubuntu2, 1.19.0.5ubuntu2.1), nautilus:amd64 (1:3.26.4-0~ubuntu18.04.1, 1:3.26.4-0~ubuntu18.04.2), libnautilus-extension1a:amd64 (1:3.26.4-0~ubuntu18.04.1, 1:3.26.4-0~ubuntu18.04.2), grub-efi-amd64-bin:amd64 (2.02-2ubuntu8.6, 2.02-2ubuntu8.7), python3-distupgrade:amd64 (1:18.04.26, 1:18.04.27), man-db:amd64 (2.8.3-2, 2.8.3-2ubuntu0.1), python3-update-manager:amd64 (1:18.04.11.5, 1:18.04.11.6), gir1.2-snapd-1:amd64 (1.41-0ubuntu0.18.04.1, 1.43-0ubuntu0.18.04.1), ubuntu-release-upgrader-core:amd64 (1:18.04.26, 1:18.04.27), gitlab-runner:amd64 (11.3.1, 11.4.2), parted:amd64 (3.2-20, 3.2-20ubuntu0.1), packagekit:amd64 (1.1.9-1ubuntu2.18.04.1, 1.1.9-1ubuntu2.18.04.3), apt-utils:amd64 (1.6.3ubuntu0.1, 1.6.6), mokutil:amd64 (0.3.0-0ubuntu5, 0.3.0+1538710437.fb6250f-0ubuntu2~18.04.1), light-themes:amd64 (16.10+18.04.20180421.1-0ubuntu1, 16.10+18.04.20181005-0ubuntu1), ubuntu-artwork:amd64 (1:16.10+18.04.20180421.1-0ubuntu1, 1:16.10+18.04.20181005-0ubuntu1), ubuntu-release-upgrader-gtk:amd64 (1:18.04.26, 1:18.04.27), grub-efi-amd64-signed:amd64 (1.93.7+2.02-2ubuntu8.6, 1.93.8+2.02-2ubuntu8.7), gir1.2-packagekitglib-1.0:amd64 (1.1.9-1ubuntu2.18.04.1, 1.1.9-1ubuntu2.18.04.3), nautilus-data:amd64 (1:3.26.4-0~ubuntu18.04.1, 1:3.26.4-0~ubuntu18.04.2), apt-transport-https:amd64 (1.6.3ubuntu0.1, 1.6.6), libsnapd-glib1:amd64 (1.41-0ubuntu0.18.04.1, 1.43-0ubuntu0.18.04.1), gstreamer1.0-packagekit:amd64 (1.1.9-1ubuntu2.18.04.1, 1.1.9-1ubuntu2.18.04.3), libdpkg-perl:amd64 (1.19.0.5ubuntu2, 1.19.0.5ubuntu2.1), secureboot-db:amd64 (1.1, 1.4~ubuntu0.18.04.1), linux-generic:amd64 (4.15.0.36.38, 4.15.0.38.40), ubuntu-mono:amd64 (16.10+18.04.20180421.1-0ubuntu1, 16.10+18.04.20181005-0ubuntu1), python3-apt:amd64 (1.6.2, 1.6.3), dpkg-dev:amd64 (1.19.0.5ubuntu2, 1.19.0.5ubuntu2.1) End-Date: 2018-11-05 08:05:28 Start-Date: 2018-11-05 08:06:19 Commandline: apt upgrade Requested-By: tzfrs (1000) Upgrade: gnome-software-plugin-snap:amd64 (3.28.1-0ubuntu4.18.04.3, 3.28.1-0ubuntu4.18.04.4), gnome-software:amd64 (3.28.1-0ubuntu4.18.04.3, 3.28.1-0ubuntu4.18.04.4), ubuntu-software:amd64 (3.28.1-0ubuntu4.18.04.3, 3.28.1-0ubuntu4.18.04.4), unattended-upgrades:amd64 (1.1ubuntu1.18.04.5, 1.1ubuntu1.18.04.6), gnome-software-common:amd64 (3.28.1-0ubuntu4.18.04.3, 3.28.1-0ubuntu4.18.04.4) End-Date: 2018-11-05 08:06:23 </code></pre> <p>This is both on X11 and Wayland. Steps I did</p> <ul> <li>Re-plug the cable</li> <li>Turn off/on monitors</li> <li>Restart</li> <li>Log out</li> </ul> <p>Update: I just upgraded to Ubuntu 18.10, hoping this would solve the issue, however, the issue still exists.</p>
0non-cybersec
Stackexchange
Camino a Worlds 2018: 31 Días - Resumen del día. Viernes de League of Legends y un día lleno de series cortas, un resumen de los matches del día de hoy en las ligas que definen quien estará en Korea! ​ # EU LCS Primero tenemos en Europa la primer semifinal del split de verano, dónde el merito del resultado se lo lleva los errores de **Team Vitality,** con desiciones muy dudables y throws monumentales se define el primer finalista. [TEAM VITALITY: 1 - 3 :F FC SCHALKE 04 ESPORTS](https://preview.redd.it/j2r34groajj11.png?width=2100&format=png&auto=webp&s=7a208aea190212b8fc4e1a2aa2961aa618022ed7) Los cuadros quedan de la siguiente manera con una semifinal por definir y **Schalke** ya en la final. https://preview.redd.it/gifxbybsbjj11.jpg?width=533&format=pjpg&auto=webp&s=d087a2a0497430e5e99dd4b7f0139df85d66d52a &#x200B; # CLS En América Latina terminan los cuartos de final, las calaveras les dan una lección de League of Legends a los rookies y pasan sin problemas a las semis que se jugarán mañana. [FURIOUS GAMING: 3 - 0 :LEGATUM](https://preview.redd.it/j3t7cjbbcjj11.png?width=2100&format=png&auto=webp&s=67e8fda1ac2b45842618d86dc27a4c169952d241) Los cuadros de final lucen así y Furious Gaming tendrá que enfrentarse al campeón actual de la CLS. https://preview.redd.it/4hza6h85djj11.jpg?width=542&format=pjpg&auto=webp&s=651125b0aafbdd4eb57b72cd1f12d07cdb3f9d7d &#x200B; # LLN En el norte al igual terminan los cuartos de final, con un enfrentamiento dónde se deja clara la experiencia y el nivel de los jugadores del sub campeón de la región. [6 SENSE: 0 - 3 :INFINITY ESPORTS CR](https://preview.redd.it/gn37p7vldjj11.png?width=2100&format=png&auto=webp&s=1018c3804e3fd5412870d9a31117ceadd6f83e7f) Los cuadros de la liga de LAN se asoma un doble clásico para las semis. https://preview.redd.it/oyap979wdjj11.jpg?width=538&format=pjpg&auto=webp&s=b697a40e37e32bf0bc96efb122c0a5905cd86925
0non-cybersec
Reddit
Is this alternative definition of manifolds correct?. <p>This question is related to <a href="https://mathoverflow.net/questions/56275/is-a-connected-separable-locally-euclidean-hausdorff-topological-space-second-co">this one</a> on MathOverflow, although somewhat different. It is also clearly related to a <a href="https://math.stackexchange.com/questions/2117058/is-this-hierarchy-of-manifolds-correct">previous question</a> of mine, although hopefully not a duplicate.</p> <p><strong>Question:</strong> The "usual" definition of manifold is (1) locally Euclidean, (2) Hausdorff, (3) second countable. Another commonly used, but weaker, definition is (1) locally Euclidean, (2) metrizable.</p> <p>Is the following definition equivalent to the "usual" definition?</p> <blockquote> <p>$$\text{(1) locally Euclidean (2) metrizable (3) separable}\iff \\ \text{(1) locally Euclidean (2) Hausdorff (3) second countable} ?$$</p> </blockquote> <p><strong>Attempt:</strong> </p> <p>$\implies$ Obviously metrizable implies Hausdorff. Moreover, for metrizable spaces, <a href="https://en.wikipedia.org/wiki/Separable_space#Separability_versus_second_countability" rel="nofollow noreferrer">separability and second countability</a> are equivalent, so metrizable+separable implies second countable.</p> <p>$\impliedby$ Locally Euclidean implies locally metrizable (since Euclidean space is metrizable). Locally Euclidean implies locally compact, and as in <a href="https://math.stackexchange.com/questions/527642/the-equivalence-between-paracompactness-and-second-countablity-in-a-locally-eucl">this question</a> on Math.SE, locally compact+Hausdorff+second countable implies paracompact. Then a <a href="https://en.wikipedia.org/wiki/Metrization_theorem#Metrization_theorems" rel="nofollow noreferrer">theorem of Smirnov</a> says that locally metrizable+Hausdorff+paracompact implies metrizable. </p> <p><a href="https://en.wikipedia.org/wiki/Separable_space#Separability_versus_second_countability" rel="nofollow noreferrer">Second countable always implies separable</a>.</p> <p><strong>Note:</strong> This result doesn't really seem useful to me. It popped in my head the other day and I figured it would make sense to double-check and/or to let anyone else see it who might be interested.</p> <p>Also, the above is also equivalent to: </p> <blockquote> <p>$$\text{(1) locally Euclidean (2) metrizable (3) Lindelöf} $$</p> </blockquote> <p>since, <a href="https://en.wikipedia.org/wiki/Separable_space#Separability_versus_second_countability" rel="nofollow noreferrer">for metrizable spaces</a>, separable $\iff$ second countable $\iff$ Lindelöf.</p> <p>Also worth mentioning: the above is also equivalent to:</p> <blockquote> <p>$$\text{(1) locally Euclidean (2) embeddable in some Euclidean space} $$</p> </blockquote> <p>This follows in one direction from the fact that <a href="https://math.stackexchange.com/questions/220843/is-every-subset-of-a-metric-space-a-metric-subspace">every subspace of a metrizable space is metrizable</a>, and <a href="https://en.wikipedia.org/wiki/Separable_space#Separability_versus_second_countability" rel="nofollow noreferrer">every subspace of a second countable space is second countable</a>. The other direction is nontrivial, the <a href="https://en.wikipedia.org/wiki/Whitney_embedding_theorem" rel="nofollow noreferrer">Whitney embedding theorem</a>.</p>
0non-cybersec
Stackexchange
Server (Win2008) has correct time, but all workstations (Win7) are ahead one hour. <p>Thanks for reading.</p> <p>The network in question has one DC, which is a Windows 2008 R2 Server. All workstations are Windows 7 Pro.</p> <p>This last Monday (9/22) I noticed the time was suddenly ahead by an hour on all the workstations in my domain. Not sure if it happened Monday or over the weekend.</p> <p>I checked the server, and it was also off by an hour, so I updated the time on the server, and updated the time on the workstations.</p> <p>Now the time is correct on the server, but the time on all the workstations keeps resetting to be an hour ahead. I've restarted the time service on the server and workstations, rebooted the workstations (not the server yet, though I may be able to late tonight if necessary), and tried manually changing the time on the workstations. I've also verified everything has the correct time zone, which is Pacific.</p> <p>I don't know much about network time sync, but it seems like the server is pushing the wrong time or zone to the workstations even though it's using the correct time and zone for itself. It also seems like to big a coincidence that this happened just before the first day of Fall.</p> <p>Any ideas?</p>
0non-cybersec
Stackexchange
What if the Marvel Cinematic Universe was made in the 90s.
0non-cybersec
Reddit
Add ellipses to overflowing text in SVG?. <p>I'm using <code>D3.js</code>. I'd like to find an SVG equivalent to this CSS class, which adds ellipses if text flows out of its containing div:</p> <pre class="lang-css prettyprint-override"><code>.ai-ellipsis { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; -o-text-overflow: ellipsis; -moz-binding: url(&lt;q&gt;assets/xml/ellipsis.xml#ellipsis&lt;/q&gt;); } </code></pre> <p>This is my SVG: </p> <pre><code>&lt;g class="bar" transform="translate(0,39)"&gt; &lt;text class="label" x="-3" y="6.5" dy=".35em" text-anchor="start"&gt;Construction&lt;/text&gt; &lt;rect height="13" width="123"&gt;&lt;/rect&gt; &lt;/g&gt; </code></pre> <p>It's generated as follows: </p> <pre><code>barEnter.append("text").attr("class", "label") .attr("x", -3).attr("y", function() { return y.rangeBand() / 2}) .attr("dy", ".35em").attr("text-anchor", "start") .text(function(d) { return d.Name; }); </code></pre> <p>Currently the text is overflowing and overlapping the rect element. </p> <p>Is there any way I can say "if text is more than a certain width, crop it and add ellipses"?</p>
0non-cybersec
Stackexchange
Ok.
0non-cybersec
Reddit
Instant Date - YouTube.
0non-cybersec
Reddit
A question about Johnson&#39;s theorem on the first and second cohomology of commutative amenable algebras. <p>Johnson in cohomology of Banach algebra proved the following proposition. I need to some guidance for the bold part of the following proof. Do you know any papers or book with more details for this part of the proof?</p> <p>Proposition 8.2. Let <span class="math-container">$A$</span> be a commutative amenable Banach algebra and <span class="math-container">$X$</span> a commutative Banach <span class="math-container">$A$</span>-module. Then <span class="math-container">$H^1(A, X) = 0 = H^2(A, X)$</span>.</p> <p>Proof. Let <span class="math-container">$D \in Z^1(A, X)$</span>; then <span class="math-container">$D \in Z^1(A, X^{∗∗})$</span> so that <span class="math-container">$D \in N^1(A, X^{∗∗})$</span> where this last set is 0 because <span class="math-container">$X^{∗∗}$</span> is a commutative <span class="math-container">$A$</span>-module. Thus <span class="math-container">$D = 0 \in N^1(A, X)$</span> and <span class="math-container">$H^1(A, X) = 0$</span>. If <span class="math-container">$T \in Z^2(A, X)\subseteq Z^2(A, X^{∗∗}) = N^2(A, X^{∗∗})$</span> then there is <span class="math-container">$S \in L^1(A,X^{∗∗})$</span> with <span class="math-container">$T = δS$</span>. Let <span class="math-container">$q$</span> be the quotient map <span class="math-container">$X^{∗∗} → X^{∗∗}/X$</span>. </p> <p><strong>??<em>We then have <span class="math-container">$δqS = qδS = q(δS − T ) = 0$</span> so that <span class="math-container">$qS \in Z^1(A, X^{∗∗}/X) = 0$</span> by the result already proved. This shows that <span class="math-container">$S$</span> maps into <span class="math-container">$X$</span></strong>??</em></p> <p>and so <span class="math-container">$T = δS \in N^2(A, X)$</span>.</p>
0non-cybersec
Stackexchange
Attacking a woman:.
0non-cybersec
Reddit
National Intelligence Director "apologizes" for lying to congress when asked if the NSA collects data of millions of Americans. Says it was a "miscommunication"..
0non-cybersec
Reddit
Hope y’all having a good day..
0non-cybersec
Reddit
These Clever Photos Combine Objects, Shadows, and Drawings.
0non-cybersec
Reddit
How to Calculate number of steps needed in model.predict_generator(). <p>So I am trying to figure out this issue of getting less length of Numpy array when I run my model. I have a total of 2000 images which is divided into 2 categories of 1000 each. Now when I pass these images through my vgg16 model for feature extraction it passes me only 1998 images back. Following is my code.</p> <p>VGG16 model</p> <pre><code>def load_vgg16(weights_path='vgg16.h5'): if K.image_data_format() == 'channels_first': inputShape = (3, 256, 256) else: inputShape = (256, 256, 3) model = Sequential() model.add(ZeroPadding2D((1,1),input_shape = inputShape)) model.add(Convolution2D(64, (3, 3), activation='relu')) model.add(ZeroPadding2D((1,1))) model.add(Convolution2D(64, (3, 3), activation='relu')) model.add(MaxPooling2D((2,2), strides=(2,2))) model.add(ZeroPadding2D((1,1))) model.add(Convolution2D(128, (3, 3), activation='relu')) model.add(ZeroPadding2D((1,1))) model.add(Convolution2D(128, (3, 3), activation='relu')) model.add(MaxPooling2D((2,2), strides=(2,2))) model.add(ZeroPadding2D((1,1))) model.add(Convolution2D(256, (3, 3), activation='relu')) model.add(ZeroPadding2D((1,1))) model.add(Convolution2D(256, (3, 3), activation='relu')) model.add(ZeroPadding2D((1,1))) model.add(Convolution2D(256, (3, 3), activation='relu')) model.add(MaxPooling2D((2,2), strides=(2,2))) model.add(ZeroPadding2D((1,1))) model.add(Convolution2D(512, (3, 3), activation='relu')) model.add(ZeroPadding2D((1,1))) model.add(Convolution2D(512, (3, 3), activation='relu')) model.add(ZeroPadding2D((1,1))) model.add(Convolution2D(512, (3, 3), activation='relu')) model.add(MaxPooling2D((2,2), strides=(2,2))) model.add(ZeroPadding2D((1,1))) model.add(Convolution2D(512, (3, 3), activation='relu')) model.add(ZeroPadding2D((1,1))) model.add(Convolution2D(512, (3, 3), activation='relu')) model.add(ZeroPadding2D((1,1))) model.add(Convolution2D(512, (3, 3), activation='relu')) model.add(MaxPooling2D((2,2), strides=(2,2))) if weights_path: model.load_weights(weights_path, by_name= True) return model </code></pre> <p>Feature extraction through bottleneck feature:</p> <pre><code>def save_bottleneck_features(location): batch_size = 16 datagen = ImageDataGenerator(rescale= 1./255) model = load_vgg16() generator = datagen.flow_from_directory(location+'/training-data/', target_size=(image_width, image_height), batch_size = 16, class_mode = None, shuffle = False) bottleneck_features_train = model.predict_generator( generator, nb_training_samples / batch_size) np.save(open(location+'/bottleneck_features_train.npy', 'wb'), bottleneck_features_train) # repeat with the validation data generator = datagen.flow_from_directory(location+'/validation-data/', target_size=(image_width, image_height), batch_size=16, class_mode=None, shuffle=False) bottleneck_features_validation = model.predict_generator( generator, nb_validation_samples / batch_size) np.save(open(location+'/bottleneck_features_validation.npy', 'wb'), bottleneck_features_validation) </code></pre> <p>running the above functions:</p> <pre><code>top_model_weights_path='/top_model_weights.h5' location = 'newdata' nb_epoch = 50 training_samples= [len(os.listdir('newdata/training-data'+'/'+i)) for i in sorted(os.listdir('newdata/training-data/'))] nb_training_samples = sum(training_samples) #Calucalating number of data prsent in the folders or damage and whole cars in validation folder validation_samples = [len(os.listdir('newdata/validation-data/' + i)) for i in sorted(os.listdir('newdata/validation-data/'))] nb_validation_samples = sum(validation_samples) print(training_samples) print(validation_samples) save_bottleneck_features('newdata') </code></pre> <p>So when I run the above code, I am expecting the total length of the array <code>bottleneck_features_train</code> to be 2000 but I am getting 1998 only. Similarly, the total length of <code>bottleneck_features_validation</code> comes 1840 but I am expecting to get 1840 (927+909). The output for <code>training_samples</code> and <code>validation_samples</code> is below.</p> <pre><code>[1000, 1000] [927, 909] </code></pre> <p>I think I am passing the wrong number of steps required in <code>model.predict_generator()</code>. When I am trying to label these images by using this code.</p> <pre><code>training_data = np.load(open(location+'/bottleneck_features_train.npy','rb')) training_label = np.array([0] * training_samples[0] + [1] * training_samples[1]) validation_data = np.load(open(location+'/bottleneck_features_validation.npy','rb')) validation_label = np.array([0] * validation_samples[0] + [1] * validation_samples[1]) </code></pre> <p>and try to fit the model then I receive this error about training data and training labels are n not of the same length.</p> <p>How can I fix this problem and start fitting my model? Thanks for any help. Cheers!</p>
0non-cybersec
Stackexchange
Misspelled MX record. Thank you DNS Registrar for causing me to probably be fired.... This is more of a warning and venting session, but I've flared it as a rant. &#x200B; Friday after-hours, I called our DNS registrar and had them change the MX record to a new hosting service. The plan was to monitor our new mailboxes over night to confirm the change over, then come in and make local changes the next morning (today/saturday). Apparently, the info I was instructed by my lead to give them was incorrect, and the change over never happened. (No worries! I'll call them first thing in the morning! ) Fast forward to this morning when I'm on the phone with the registrar. After several on-holds and technician transfers, I'm able to give them the correct location to point the MX record to and have them change it. I asked the tech if he could email a screenshot of the record to my personal email once it was changed. He did, but I didn't receive the email until moments after the call ended. I checked the email...... The tech misspelled the location...... I immediately call back. After several more on-holds and transfers, I reach a tech who attempts to change the MX record to the properly spelled location. Instead, their system "glitches", deletes our current record, and errors out anytime there's an attempt to create a new record. A ticket has been placed with their engineering team to resolve the issue. They won't be in until Monday. I've called back twice throughout the day to check on the ticket and see if another technician would be able to have a successful attempt, but to no avail. So, Monday they'll attempt to correct the issue. If solved Monday, MX gets changed to right location. Emails start flowing by Tuesday. The company has been without email since Friday evening. Won't be back until Monday night/early AM Tuesday. I don't even want to think about the amount of lost emails.... &#x200B; Wish me luck come Monday morning, sysadmins, jr. sysadmins, or fellow "IT Support" staff tasked with sysadmin roles. Any advice on covering my ass / saving my job is appreciated. &#x200B; tl;dr DNS Registrar changed mx record to wrong record then their system took a shit and won't accept changes. Escalated to team who won't be in-office until local business hours Monday, when company needs email the most. RIP my job. &#x200B; &#x200B; Edit: Forgot to mention why I had to call the registrar instead of just using a web portal. 10-15 years ago, previous IT Director set up domain/web hosting, email hosting, and DNS management all with different companies. We have no administrative access, but were given authorization to change via phone. Edit #2: thank you to everyone who responded. You've made my sleepless nights easier. Yes, this is a super outdated way of doing DNS (and anything in general), which is why we we're attempting to consolidate to one service. For those wondering, the registrar is Time Warner/Spectrum. This was setup decades ago prior to modern practices. If you're wondering what our "solution" is/was: Set up all local PC email clients to the new email host (manually if I may add...), and sit on our hands waiting for the registrar to fix things on their end.... Wait for Monday to role around where my boss can attempt to sugar coat the ordeal. Wasn't my call, unfortunately... Someone here said "learn how NOT to do things. In the future do the exact opposite of what this company would do" (sorry. paraphrasing. On mobile). Starting to think that's going to come in handy pretty soon. If anyone is interested, I'll probably post an update on how much fun I've had at work tomorrow...
0non-cybersec
Reddit
What is the systemd-networkd equivalent of post-up? (dynamic bridge MAC configuration). <p>In Linux distributions that use <code>/etc/network/interfaces</code> (such as Debian) I could get a (kernel) bridge to use the MAC48 address of one of its static bridge slave interfaces, such as a built in <code>wlan0</code>, using <code>post-up</code>, as in:</p> <pre><code> post-up ip link set br0 address `cat /sys/class/net/wlan0/address` </code></pre> <p>This ensured that both 1) each cloned system used its very own unique MAC48 (the one from the unique wlan0), and 2) the bridge MAC kept stable even when hot-plugging further bridge interfaces with lower MAC48's.</p> <p>Does systemd-networkd support any kind of <code>post-up</code> commands that can be run after a network (or netdev) has been brought up? I've tried to find such a thing, but may have missed it.</p> <p>Or is the correct way in systemd completely different, i.e. to have a device unit, and a service that wraps the <code>ip link...</code> command and depends on the device unit? If so, how would the device unit and the service unit files look like?</p>
0non-cybersec
Stackexchange
Every time I get paid.
0non-cybersec
Reddit
No space between three-digit table number and title in List of Tables (KOMA-script). <p>I have KOMA script report in LyX (2.0.6 on Mac OS X 10.9.3) where there are more than 100 tables per chapter. For all the tables with more than thee digits (numbered chapter number dot table number) there is no space between the table number and the table caption in the List of Tables. </p> <p><img src="https://i.stack.imgur.com/Mk1yU.png" alt="tableof table space"> Unfortunately the example I give is not-so-minimal because the problem only occurs after table 100. </p> <pre><code> %% LyX 2.0.6 created this file. For more info, see http://www.lyx.org/. \documentclass[english]{scrreprt} \usepackage[T1]{fontenc} \usepackage[latin9]{inputenc} \setcounter{secnumdepth}{3} \setcounter{tocdepth}{3} \usepackage{float} \makeatletter %%%%%%%%%%%%%%%%%%%%%%%%%%%%%% LyX specific LaTeX commands. %% Because html converters don't know tabularnewline \providecommand{\tabularnewline}{\\} \makeatother \usepackage{babel} \begin{document} \title{report title} \maketitle \listoftables \begin{table}[H] \caption{A table} \begin{tabular}{|c|c|} \hline &amp; \tabularnewline \hline \end{tabular} \end{table} \begin{table}[H] \caption{A table} \begin{tabular}{|c|c|} \hline &amp; \tabularnewline \hline \end{tabular} \end{table} \begin{table}[H] \caption{A table} \begin{tabular}{|c|c|} \hline &amp; \tabularnewline \hline \end{tabular} \end{table} \begin{table}[H] \caption{A table} \begin{tabular}{|c|c|} \hline &amp; \tabularnewline \hline \end{tabular} \end{table} \begin{table}[H] \caption{A table} \begin{tabular}{|c|c|} \hline &amp; \tabularnewline \hline \end{tabular} \end{table} \begin{table}[H] \caption{A table} \begin{tabular}{|c|c|} \hline &amp; \tabularnewline \hline \end{tabular} \end{table} \begin{table}[H] \caption{A table} \begin{tabular}{|c|c|} \hline &amp; \tabularnewline \hline \end{tabular} \end{table} \begin{table}[H] \caption{A table} \begin{tabular}{|c|c|} \hline &amp; \tabularnewline \hline \end{tabular} \end{table} \begin{table}[H] \caption{A table} \begin{tabular}{|c|c|} \hline &amp; \tabularnewline \hline \end{tabular} \end{table} \begin{table}[H] \caption{A table} \begin{tabular}{|c|c|} \hline &amp; \tabularnewline \hline \end{tabular} \end{table} \begin{table}[H] \caption{A table} \begin{tabular}{|c|c|} \hline &amp; \tabularnewline \hline \end{tabular} \end{table} \begin{table}[H] \caption{A table} \begin{tabular}{|c|c|} \hline &amp; \tabularnewline \hline \end{tabular} \end{table} \begin{table}[H] \caption{A table} \begin{tabular}{|c|c|} \hline &amp; \tabularnewline \hline \end{tabular} \end{table} \begin{table}[H] \caption{A table} \begin{tabular}{|c|c|} \hline &amp; \tabularnewline \hline \end{tabular} \end{table} \begin{table}[H] \caption{A table} \begin{tabular}{|c|c|} \hline &amp; \tabularnewline \hline \end{tabular} \end{table} \begin{table}[H] \caption{A table} \begin{tabular}{|c|c|} \hline &amp; \tabularnewline \hline \end{tabular} \end{table} \begin{table}[H] \caption{A table} \begin{tabular}{|c|c|} \hline &amp; \tabularnewline \hline \end{tabular} \end{table} \begin{table}[H] \caption{A table} \begin{tabular}{|c|c|} \hline &amp; \tabularnewline \hline \end{tabular} \end{table} \begin{table}[H] \caption{A table} \begin{tabular}{|c|c|} \hline &amp; \tabularnewline \hline \end{tabular} \end{table} \begin{table}[H] \caption{A table} \begin{tabular}{|c|c|} \hline &amp; \tabularnewline \hline \end{tabular} \end{table} \begin{table}[H] \caption{A table} \begin{tabular}{|c|c|} \hline &amp; \tabularnewline \hline \end{tabular} \end{table} \begin{table}[H] \caption{A table} \begin{tabular}{|c|c|} \hline &amp; \tabularnewline \hline \end{tabular} \end{table} \begin{table}[H] \caption{A table} \begin{tabular}{|c|c|} \hline &amp; \tabularnewline \hline \end{tabular} \end{table} \begin{table}[H] \caption{A table} \begin{tabular}{|c|c|} \hline &amp; \tabularnewline \hline \end{tabular} \end{table} \begin{table}[H] \caption{A table} \begin{tabular}{|c|c|} \hline &amp; \tabularnewline \hline \end{tabular} \end{table} \begin{table}[H] \caption{A table} \begin{tabular}{|c|c|} \hline &amp; \tabularnewline \hline \end{tabular} \end{table} \begin{table}[H] \caption{A table} \begin{tabular}{|c|c|} \hline &amp; \tabularnewline \hline \end{tabular} \end{table} \begin{table}[H] \caption{A table} \begin{tabular}{|c|c|} \hline &amp; \tabularnewline \hline \end{tabular} \end{table} \begin{table}[H] \caption{A table} \begin{tabular}{|c|c|} \hline &amp; \tabularnewline \hline \end{tabular} \end{table} \begin{table}[H] \caption{A table} \begin{tabular}{|c|c|} \hline &amp; \tabularnewline \hline \end{tabular} \end{table} \begin{table}[H] \caption{A table} \begin{tabular}{|c|c|} \hline &amp; \tabularnewline \hline \end{tabular} \end{table} \begin{table}[H] \caption{A table} \begin{tabular}{|c|c|} \hline &amp; \tabularnewline \hline \end{tabular} \end{table} \begin{table}[H] \caption{A table} \begin{tabular}{|c|c|} \hline &amp; \tabularnewline \hline \end{tabular} \end{table} \begin{table}[H] \caption{A table} \begin{tabular}{|c|c|} \hline &amp; \tabularnewline \hline \end{tabular} \end{table} \begin{table}[H] \caption{A table} \begin{tabular}{|c|c|} \hline &amp; \tabularnewline \hline \end{tabular} \end{table} \begin{table}[H] \caption{A table} \begin{tabular}{|c|c|} \hline &amp; \tabularnewline \hline \end{tabular} \end{table} \begin{table}[H] \caption{A table} \begin{tabular}{|c|c|} \hline &amp; \tabularnewline \hline \end{tabular} \end{table} \begin{table}[H] \caption{A table} \begin{tabular}{|c|c|} \hline &amp; \tabularnewline \hline \end{tabular} \end{table} \begin{table}[H] \caption{A table} \begin{tabular}{|c|c|} \hline &amp; \tabularnewline \hline \end{tabular} \end{table} \begin{table}[H] \caption{A table} \begin{tabular}{|c|c|} \hline &amp; \tabularnewline \hline \end{tabular} \end{table} \begin{table}[H] \caption{A table} \begin{tabular}{|c|c|} \hline &amp; \tabularnewline \hline \end{tabular} \end{table} \begin{table}[H] \caption{A table} \begin{tabular}{|c|c|} \hline &amp; \tabularnewline \hline \end{tabular} \end{table} \begin{table}[H] \caption{A table} \begin{tabular}{|c|c|} \hline &amp; \tabularnewline \hline \end{tabular} \end{table} \begin{table}[H] \caption{A table} \begin{tabular}{|c|c|} \hline &amp; \tabularnewline \hline \end{tabular} \end{table} \begin{table}[H] \caption{A table} \begin{tabular}{|c|c|} \hline &amp; \tabularnewline \hline \end{tabular} \end{table} \begin{table}[H] \caption{A table} \begin{tabular}{|c|c|} \hline &amp; \tabularnewline \hline \end{tabular} \end{table} \begin{table}[H] \caption{A table} \begin{tabular}{|c|c|} \hline &amp; \tabularnewline \hline \end{tabular} \end{table} \begin{table}[H] \caption{A table} \begin{tabular}{|c|c|} \hline &amp; \tabularnewline \hline \end{tabular} \end{table} \begin{table}[H] \caption{A table} \begin{tabular}{|c|c|} \hline &amp; \tabularnewline \hline \end{tabular} \end{table} \begin{table}[H] \caption{A table} \begin{tabular}{|c|c|} \hline &amp; \tabularnewline \hline \end{tabular} \end{table} \begin{table}[H] \caption{A table} \begin{tabular}{|c|c|} \hline &amp; \tabularnewline \hline \end{tabular} \end{table} \begin{table}[H] \caption{A table} \begin{tabular}{|c|c|} \hline &amp; \tabularnewline \hline \end{tabular} \end{table} \begin{table}[H] \caption{A table} \begin{tabular}{|c|c|} \hline &amp; \tabularnewline \hline \end{tabular} \end{table} \begin{table}[H] \caption{A table} \begin{tabular}{|c|c|} \hline &amp; \tabularnewline \hline \end{tabular} \end{table} \begin{table}[H] \caption{A table} \begin{tabular}{|c|c|} \hline &amp; \tabularnewline \hline \end{tabular} \end{table} \begin{table}[H] \caption{A table} \begin{tabular}{|c|c|} \hline &amp; \tabularnewline \hline \end{tabular} \end{table} \begin{table}[H] \caption{A table} \begin{tabular}{|c|c|} \hline &amp; \tabularnewline \hline \end{tabular} \end{table} \begin{table}[H] \caption{A table} \begin{tabular}{|c|c|} \hline &amp; \tabularnewline \hline \end{tabular} \end{table} \begin{table}[H] \caption{A table} \begin{tabular}{|c|c|} \hline &amp; \tabularnewline \hline \end{tabular} \end{table} \begin{table}[H] \caption{A table} \begin{tabular}{|c|c|} \hline &amp; \tabularnewline \hline \end{tabular} \end{table} \begin{table}[H] \caption{A table} \begin{tabular}{|c|c|} \hline &amp; \tabularnewline \hline \end{tabular} \end{table} \begin{table}[H] \caption{A table} \begin{tabular}{|c|c|} \hline &amp; \tabularnewline \hline \end{tabular} \end{table} \begin{table}[H] \caption{A table} \begin{tabular}{|c|c|} \hline &amp; \tabularnewline \hline \end{tabular} \end{table} \begin{table}[H] \caption{A table} \begin{tabular}{|c|c|} \hline &amp; \tabularnewline \hline \end{tabular} \end{table} \begin{table}[H] \caption{A table} \begin{tabular}{|c|c|} \hline &amp; \tabularnewline \hline \end{tabular} \end{table} \begin{table}[H] \caption{A table} \begin{tabular}{|c|c|} \hline &amp; \tabularnewline \hline \end{tabular} \end{table} \begin{table}[H] \caption{A table} \begin{tabular}{|c|c|} \hline &amp; \tabularnewline \hline \end{tabular} \end{table} \begin{table}[H] \caption{A table} \begin{tabular}{|c|c|} \hline &amp; \tabularnewline \hline \end{tabular} \end{table} \begin{table}[H] \caption{A table} \begin{tabular}{|c|c|} \hline &amp; \tabularnewline \hline \end{tabular} \end{table} \begin{table}[H] \caption{A table} \begin{tabular}{|c|c|} \hline &amp; \tabularnewline \hline \end{tabular} \end{table} \begin{table}[H] \caption{A table} \begin{tabular}{|c|c|} \hline &amp; \tabularnewline \hline \end{tabular} \end{table} \begin{table}[H] \caption{A table} \begin{tabular}{|c|c|} \hline &amp; \tabularnewline \hline \end{tabular} \end{table} \begin{table}[H] \caption{A table} \begin{tabular}{|c|c|} \hline &amp; \tabularnewline \hline \end{tabular} \end{table} \begin{table}[H] \caption{A table} \begin{tabular}{|c|c|} \hline &amp; \tabularnewline \hline \end{tabular} \end{table} \begin{table}[H] \caption{A table} \begin{tabular}{|c|c|} \hline &amp; \tabularnewline \hline \end{tabular} \end{table} \begin{table}[H] \caption{A table} \begin{tabular}{|c|c|} \hline &amp; \tabularnewline \hline \end{tabular} \end{table} \begin{table}[H] \caption{A table} \begin{tabular}{|c|c|} \hline &amp; \tabularnewline \hline \end{tabular} \end{table} \begin{table}[H] \caption{A table} \begin{tabular}{|c|c|} \hline &amp; \tabularnewline \hline \end{tabular} \end{table} \begin{table}[H] \caption{A table} \begin{tabular}{|c|c|} \hline &amp; \tabularnewline \hline \end{tabular} \end{table} \begin{table}[H] \caption{A table} \begin{tabular}{|c|c|} \hline &amp; \tabularnewline \hline \end{tabular} \end{table} \begin{table}[H] \caption{A table} \begin{tabular}{|c|c|} \hline &amp; \tabularnewline \hline \end{tabular} \end{table} \begin{table}[H] \caption{A table} \begin{tabular}{|c|c|} \hline &amp; \tabularnewline \hline \end{tabular} \end{table} \begin{table}[H] \caption{A table} \begin{tabular}{|c|c|} \hline &amp; \tabularnewline \hline \end{tabular} \end{table} \begin{table}[H] \caption{A table} \begin{tabular}{|c|c|} \hline &amp; \tabularnewline \hline \end{tabular} \end{table} \begin{table}[H] \caption{A table} \begin{tabular}{|c|c|} \hline &amp; \tabularnewline \hline \end{tabular} \end{table} \begin{table}[H] \caption{A table} \begin{tabular}{|c|c|} \hline &amp; \tabularnewline \hline \end{tabular} \end{table} \begin{table}[H] \caption{A table} \begin{tabular}{|c|c|} \hline &amp; \tabularnewline \hline \end{tabular} \end{table} \begin{table}[H] \caption{A table} \begin{tabular}{|c|c|} \hline &amp; \tabularnewline \hline \end{tabular} \end{table} \begin{table}[H] \caption{A table} \begin{tabular}{|c|c|} \hline &amp; \tabularnewline \hline \end{tabular} \end{table} \begin{table}[H] \caption{A table} \begin{tabular}{|c|c|} \hline &amp; \tabularnewline \hline \end{tabular} \end{table} \begin{table}[H] \caption{A table} \begin{tabular}{|c|c|} \hline &amp; \tabularnewline \hline \end{tabular} \end{table} \begin{table}[H] \caption{A table} \begin{tabular}{|c|c|} \hline &amp; \tabularnewline \hline \end{tabular} \end{table} \begin{table}[H] \caption{A table} \begin{tabular}{|c|c|} \hline &amp; \tabularnewline \hline \end{tabular} \end{table} \begin{table}[H] \caption{A table} \begin{tabular}{|c|c|} \hline &amp; \tabularnewline \hline \end{tabular} \end{table} \begin{table}[H] \caption{A table} \begin{tabular}{|c|c|} \hline &amp; \tabularnewline \hline \end{tabular} \end{table} \begin{table}[H] \caption{A table} \begin{tabular}{|c|c|} \hline &amp; \tabularnewline \hline \end{tabular} \end{table} \begin{table}[H] \caption{A table} \begin{tabular}{|c|c|} \hline &amp; \tabularnewline \hline \end{tabular} \end{table} \begin{table}[H] \caption{A table} \begin{tabular}{|c|c|} \hline &amp; \tabularnewline \hline \end{tabular} \end{table} \begin{table}[H] \caption{A table} \begin{tabular}{|c|c|} \hline &amp; \tabularnewline \hline \end{tabular} \end{table} \begin{table}[H] \caption{A table} \begin{tabular}{|c|c|} \hline &amp; \tabularnewline \hline \end{tabular} \end{table} \begin{table}[H] \caption{A table} \begin{tabular}{|c|c|} \hline &amp; \tabularnewline \hline \end{tabular} \end{table} \begin{table}[H] \caption{A table} \begin{tabular}{|c|c|} \hline &amp; \tabularnewline \hline \end{tabular} \end{table} \end{document} </code></pre>
0non-cybersec
Stackexchange
Second derivative of likelihood function. <p>Let <span class="math-container">$f_{\delta}(y) = \frac{y}{\delta^2}*e^(\frac{-y^2}{2*\delta^2})$</span></p> <p>with <span class="math-container">$y\geq 0$</span></p> <p>I set up the Likelihood function as <span class="math-container">$$L(\delta) = (\frac{y}{\delta^2})^n *e^(\frac{-\sum y^2}{2*\delta^2})$$</span></p> <p>and the log likelihood as <span class="math-container">$$l(\delta) = n*ln(\frac{y}{\delta^2})+\frac{\sum y^2}{2*\delta^2}$$</span></p> <p>Taking first derivative <span class="math-container">$$l'(\delta) = -\frac{2*n}{\delta}-\frac{\sum y^2}{\delta^3}$$</span></p> <p>Second derivative <span class="math-container">$$l''(\delta) = \frac{2*n}{\delta^3}+\frac{3*\sum y^2}{\delta^4}$$</span></p> <p>But this second derivative seems incorrect, but where do I go wrong?</p> <p>I want to calculate the Fisher Information with the second derivative and calculate a confidence interval.</p>
0non-cybersec
Stackexchange
After being stuck in a van for 13 hours..
0non-cybersec
Reddit
Getting http 403 error when accessing website from remote client. <p>I have created an asp.net website that is to be accessed from client browsers running on the same domain.</p> <p>I've hosted the site on IIS 7.5</p> <p>I have disabled Anonymous Authentication and Enabled Windows Authentication from the Features View under the IIS section.</p> <p>I have added the following in the web.config for the site:</p> <pre><code>&lt;authorization&gt; &lt;allow users="group\BizTalk Application Users" /&gt; &lt;deny users="?" /&gt; &lt;/authorization&gt; </code></pre> <p>I am able to open the website from a browser when running on the server that is hosting the site. However, if I then logon to a different server in the same domain, using the same credentials, when I try to browse to the site I get an http 403 error.</p> <p>After getting no joy with the above I tried disabling all security to the site. I disabled Windows Authentication and enabled anonymous authentication but still I get the same error. I checked the IIS log on the server and can see that the sub code for the 403 is 18.</p> <p>I've run fiddler on the client and see the following request / response:</p> <p><strong>Request</strong></p> <pre><code>GET http://tst-bts01/Vasanta.Int.SEOPSupportApp/Orders.aspx HTTP/1.1 Accept: image/jpeg, image/gif, image/pjpeg, application/x-ms-application, application/xaml+xml, application/x-ms-xbap, application/vnd.ms-excel, application/vnd.ms- powerpoint, application/msword, */* Accept-Language: en-GB User-Agent: Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.1; WOW64; Trident/4.0; SLCC2; .NET CLR 2.0.50727; .NET CLR 3.5.30729; .NET CLR 3.0.30729; .NET4.0C; .NET4.0E) Accept-Encoding: gzip, deflate Connection: Keep-Alive Host: tst-bts01 </code></pre> <p><strong>Response</strong></p> <pre><code>HTTP/1.1 403 Forbidden Server: Microsoft-IIS/7.5 X-Powered-By: ASP.NET Date: Tue, 29 Jan 2013 10:24:34 GMT Content-Length: 0 </code></pre> <p>I've tried changing the app pool that hosts the site. I've tried disabling the call the corporate proxy (isa server), running out of ideas now.</p> <p>Can anyone tell me what I've done wrong?</p> <p>Thanks, Rob.</p>
0non-cybersec
Stackexchange
Question about identifying a brand. No one else could help.. Hey guys, so I hear you are the best. I was recently out of state and I saw a polo that is exactly what I have been looking for. I can't find a picture but the brand logo was a red moped or a scooter or some sort. Kind of leads me to believe that the brand may be European. But anyways, when my trip was over I came back home and saw someone else wearing the shirt! Anyways if you guys can give me the brand name or any clues as to finding it. I would really appreciate it. I hope I didn't break any MFA rules. Thanks a lot!
0non-cybersec
Reddit
What are the scope restrictions for setting shopt extglob. and other options?. <p>My non-interactive bash shell has <code>extglob off</code>. I would like to turn it on in the statement immediately before a command, but I have noticed that when <code>shopt -s extglob</code> is within an <code>if .. then .. else</code> block, it somehow does not register. </p> <p>The following <em>extglob-dependant</em> command is not valid: <code>syntax error near unexpected token '('</code>. </p> <p>Where can <code>extglob</code> be set, and why is there a restriction, at all? Does this apply to other options? ... <em>GNU bash 4.1.5</em> </p> <p>This works: </p> <pre><code>shopt -s extglob if true ;then touch a.bcd; ls a.@(bcd) fi </code></pre> <p>This fails: </p> <pre><code>if true ;then shopt -s extglob touch a.bcd; ls a.@(bcd) fi ... line 17: syntax error near unexpected token `(' ... line 17: `touch a.bcd; ls a.@(bcd)' </code></pre>
0non-cybersec
Stackexchange
Integral test and the gamma function. <p>Suppose you are given a series with a factorial, is it appropriate to replace $n!$ with $\Gamma(n+1)$ and apply the integral test? It seems like even if there are other methods that work to show convergence better, this still might be potentially a good technique for approximating a series that doesn't fit into the category of trivial to evaluate.</p>
0non-cybersec
Stackexchange
Saw the post about Kraftwerk earlier... What about this guy?.
0non-cybersec
Reddit
delete a line if same line exists in the previous line. <p>I want to remove lines which exist already in the previous line from the command line in UNIX. I have the following data in a file.</p> <pre><code> &lt;xref id="gi_525506931_ref_NP_001266519.1__brain_aromatase"/&gt; &lt;entry ac="IPR002401" desc="Cytochrome P450, E-class, group I" name="Cyt_P450_E_grp-I" type="FAMILY"&gt; &lt;entry ac="IPR001128" desc="Cytochrome P450" name="Cyt_P450" type="FAMILY"&gt; &lt;entry ac="IPR001128" desc="Cytochrome P450" name="Cyt_P450" type="FAMILY"&gt; &lt;entry ac="IPR001128" desc="Cytochrome P450" name="Cyt_P450" type="FAMILY"&gt; </code></pre> <p>So, it should look like this:</p> <pre><code> &lt;xref id="gi_525506931_ref_NP_001266519.1__brain_aromatase"/&gt; &lt;entry ac="IPR002401" desc="Cytochrome P450, E-class, group I" name="Cyt_P450_E_grp-I" type="FAMILY"&gt; &lt;entry ac="IPR001128" desc="Cytochrome P450" name="Cyt_P450" type="FAMILY"&gt; </code></pre>
0non-cybersec
Stackexchange
Angular, Disable submit button using [disabled] to check form validity. <p>I'm trying to disable a submit button using <code>[disable]=form.controls[...].invalid</code> condition checking. The submit button should be disabled if there is an input fields is empty or <code>invalid</code>. But looks like i'm doing it wrong. The button is disabled when i fill some fields and left some fields empty, except for the first input field . When i filled the first input field, the button become enabled (while the other input fields are still empty or <code>invalid</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-js lang-js prettyprint-override"><code>//component.ts form01: FormGroup; public myDatePickerOptions: IMyDpOptions = { dateFormat: 'dd-mmm-yyyy', }; setDate(): void { let date = new Date(); this.form01.patchValue({ DoB: { date: { year: date.getFullYear(), month: date.getMonth() + 1, day: date.getDate() } } }); } clearDate(): void { this.form01.patchValue({ DoB: null }); } constructor(public builder: FormBuilder) { this.form01 = this.builder.group({ email: [null, Validators.required], //text DoB: [null, Validators.required], //radio button gender: [null, Validators.required], //date picker }); } results: object = new Object(); functionForm01() { this.results = [{ { "email": this.form01.controls.email.value }, { "DoB": this.form01.controls.DoB.value }, { "gender": this.form01.controls.gender.value } }] console.log(this.result); this.form01.reset(); }</code></pre> <pre class="snippet-code-html lang-html prettyprint-override"><code>&lt;!--component.html--&gt; &lt;div&gt; &lt;form [formGroup]="form01"&gt; email:&lt;input type="text" name="email" formControlName="email" required/&gt; gender: &lt;input type="radio" name="gender" formControlName="gender" value="male"&gt; male&lt;br&gt; &lt;input type="radio" name="gender" formControlName="gender" value="female"&gt; female&lt;br&gt; DoB: &lt;my-date-picker name="DoB" [options]="myDatePickerOptions" formControlName="DoB" required&gt;&lt;/my-date-picker&gt; &lt;button type="submit" [disabled]="form01.controls['email' || 'DoB' || 'gender'].invalid" (click)="functionForm01()"&gt;Click&lt;/button&gt; &lt;/form&gt; &lt;/div&gt;</code></pre> </div> </div> </p> <p>I'm using Angular typescript and <code>myDatePicker</code> package from <a href="https://github.com/kekeh/mydatepicker" rel="noreferrer">this link</a>. Can anyone help me please?</p>
0non-cybersec
Stackexchange
DMZ on user pc. If my router doesn't have the option to open ports or disable firewall if I set a DMZ for a PC where I need to open some ports does this affect much in security? Thanks
1cybersec
Reddit
Old Train Track, Taiwan.
0non-cybersec
Reddit
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
Solving 2 unknown using vectors. <p><a href="https://i.stack.imgur.com/FaZpV.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/FaZpV.jpg" alt="enter image description here"></a></p> <p>ABCDEF is a regular hexagon and O is the centre of the regular hexagon . </p> <p>Vector OB = $b$ , Vector OC = $c$ . The side FA is produced to a point G such that FA : AG = 1 : 2.</p> <p>The line DG meets OC at point X such that </p> <p>vector DX = $h$ DG , where h is a constant . Express vector DX in terms of $h$, $b$, $c$, </p> <p>Given also that vector OX = $k$ OC , where k is a constant , express vector OX in terms of $k$ and $c$, </p> <p>hence find the value of $h$ and of $k$ </p> <p>I found : Vector DX = $2h ( -c + 2b ) $ </p> <p>Vector OX = $ kc$ </p> <p>Now I have 2 unknowns , I'm not sure on how to start to find unknowns $k$ and $h$, I thought of simultaneous equations but I don't know how to start. Can I get a hint ? Thanks in advance ! </p>
0non-cybersec
Stackexchange
🔥 the Chicago River is actually 🥶.
0non-cybersec
Reddit
How many ways to arrange $2n$ people in two lines. <blockquote> <p>There are $2n$ people, each with a unique height. I am to place them in two rows of $n$ people in each row such that the person in the front row is shorter than the one directly behind. How many ways can I do this?</p> </blockquote> <p>I am assuming that order of how the people are placed matters (for example, row one: 1,2,3 is different from 2,3,1). I'm thinking about this problem as the number of ways to place the $2n$ people in pairs, such that the order of picking pairs matters. Thus, my answer should be $${2n \choose 2} \cdot {2n-2 \choose 2}\cdot \cdots\cdot {2 \choose 2}.$$</p> <p>Is this method of thinking correct? I've tried to see if this works for $n=1,2$ and it seems to hold up.</p>
0non-cybersec
Stackexchange
Scrumptious Latin Chicken... (nom nom nom).
0non-cybersec
Reddit
AcDisplay Receives Major Update to v2.1 – New UI and New Features.
0non-cybersec
Reddit
Can anyone explain this weird sound-card glitch? (already fixed, but not explained). <p>I have a recent (AMD Athlon II X4 645 based) PC. Although the motherboard has integrated sound, I use an ancient-but-still-pretty-good Creative Soundblaster Audigy Platinum Ex. I dual boot Windows 7 and Windows XP at the moment.</p> <p>Today, about an hour ago, using Windows 7, I noticed that I wasn't getting any sound when I started a game of Oolite. I know the sound was working around an hour before that. Not sure if I rebooted in-between or not, but I had the speakers switched off for a lot of that time, so didn't notice exactly when the noises stopped.</p> <p>At that point, I had only used Windows 7 all day (I haven't allowed XP on the internet for a few years now). There were no driver updates in this time, nor any settings changes. The most recent drivers for this card were released in 2010 IIRC. About all I've done today is browse a few web sites, watch a couple of videos in VLC, and update some backups on an external hard drive.</p> <p>I checked the speakers and cable, and the state of the sound card and drive in the device manager, and of course the volume control. Everything seemed fine. I thought maybe the old card had failed.</p> <p>But when I rebooted from Windows 7 to XP as a final check, all the sound was fine. I rebooted back to Windows 7 again and the sound was dead again.</p> <p>The fix was simple enough in the end. The driver executable for the sound card (SBAX_PCDRV_LB_2_18_0017.exe) offers to remove existing drivers if they're found, so I ran it once to remove the drivers, rebooted, then ran it again to reinstall them and rebooted again. All sound is now fine.</p> <p>But this isn't very satisfying. Obviously reinstalling (the exact same version of) the driver has reset some setting that had got broken, but ideally I'd like to know what the cause was so that I can prevent it happening again.</p> <p>Any ideas?</p> <p><strong>EDIT</strong></p> <p>The most recent drivers for this soundcard have turned out to be a bit buggy. I only got this particular glitch a couple of times, but I found a much bigger problem when I tried to use a microphone in Windows 7 64-bit. Basically, chunks were missing from the audio waveform, giving the impression of one of three or four buffers being wiped to all zeros every time it's used, which is several times per second recording 48KHz.</p> <p>My final solution was to give up on that soundcard. I'm currently mostly using motherboard HD audio, though I also have a USB SoundBlaster Audigy 2 NX which is slightly less obsolete and doesn't have the same driver issues (but also doesn't have MIDI or firewire ports).</p>
0non-cybersec
Stackexchange
A tool like pdfcrop2 that only *reduces margins from original* --- as opposed to cropping and then allowing the addition of extra margins. <p>I have a tool called <code>pdfcrop2</code> that I've had for a while now. It's a perl script that fully crops PDF files to the actual content (removing all surrounding whitespace), and then allowing the addition of extra margins if one wants them.</p> <p>However, does there exist a tool similar to this one that does <em>not</em> perform the initial crop, but rather limits itself to reducing the margins by a specified amount from the left, right, top and bottom?</p> <p>This will be useful in cases where all of my one-page PDF files are all A4-sized but are not exactly of the same format. (Examples would be the initial pages of chapters vs. all other pages in a document with a book format. In these cases, it would be nice to get the same “predictable” effect on all pages.)</p>
0non-cybersec
Stackexchange
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
Baked Eggs in Bread Bowls.
0non-cybersec
Reddit
People who don’t comment on posts, why not?.
0non-cybersec
Reddit
Ansible text file busy error. <p>I have a Vagrant / Ansible set up on my Windows host. Ansible is set up to run on the Ubuntu guest, as <code>Vagrant up</code> executes a shell script which copies the <code>provisioning yml</code> files onto the guest and installs Ansible also on the guest.</p> <p>The script runs the Ansible set up on the guest with the following command:</p> <pre><code># Ansible installations sudo apt-get install -y ansible # Copy all Ansible scripts to the ubuntu guest sudo cp -rf -v /vagrant/provisioning /home/vagrant/ # cp /vagrant/hosts /home/vagrant/ sudo chmod 666 /home/vagrant/provisioning/hosts # Install roles sudo ansible-playbook /home/vagrant/provisioning/local.yml -i /home/vagrant/provisioning/hosts --connection=local </code></pre> <p>One of the steps in the Ansible configuration process is setting up a fresh copy of Laravel in the <code>/var/www</code> directory. After pulling in Laravel, my script then copies and then edits the <code>.env</code> file in document root (<code>/var/www</code>).</p> <p>But therein is the problem, it fails with <code>text file busy</code> message. This is a copy that is happening on the guest as source and destination, so I guess nothing to do with VBox. I have a feeling it has to do with the file name being so unusual, but I have not found an answer.</p> <p>My <code>task.yml</code> file for Laravel is:</p> <pre><code>--- - name: Clone git repository git: &gt; dest=/var/www repo=https://github.com/laravel/laravel.git update=no sudo: yes sudo_user: www-data register: cloned - name: copy .env file copy: src=env.j2 dest={{ conf_file }} - name: set APP_DOMAIN={{ server_name }} lineinfile: dest=/var/www/.env regexp='^APP_DOMAIN=' line=APP_DOMAIN={{ server_name }} </code></pre> <p>I have also tried using the template method with the same error:</p> <pre><code>- name: copy .env file template: src=env.j2 dest={{ conf_file }} </code></pre> <p>My conf file contains:</p> <pre><code>conf_file: /var/www/.env </code></pre> <p>It fails at the copy step as follows:</p> <pre><code>==&gt; default: TASK: [laravel | copy .env file] ********************************************** ==&gt; default: failed: [10.0.1.10] =&gt; {"failed": true, "md5sum": "a380715fa81750708f7b9b6fea1a48fe"} ==&gt; default: msg: Could not replace file: /root/.ansible/tmp/ansible-tmp-1441176559.19-197929606462535/source to /var/www/.env: [Errno 26] Text file busy ==&gt; default: ==&gt; default: FATAL: all hosts have already failed -- aborting ==&gt; default: ==&gt; default: PLAY RECAP ******************************************************************** ==&gt; default: to retry, use: --limit @/root/local.retry ==&gt; default: ==&gt; default: 10.0.1.10 : ok=21 changed=18 unreachable=0 failed=1 The SSH command responded with a non-zero exit status. Vagrant assumes that this means the command failed. The output for this command should be in the log above. Please read the output to determine what went wrong. </code></pre> <p>The <code>.env</code> source file is in a folder called <code>files</code> off the Laravel task folder, same as other items I configure which work OK. The file <code>.env</code> is not found in the <code>www</code> folder after it fails so it does not copy it.</p>
0non-cybersec
Stackexchange
Favorite projects of the third quarter (July-September) in 2013?. And WHY I'm gonna do quarterly reports, long enough of a gap to not get repetitive but also short enough variety from each part of the year. Check out projects you might've slept on. Only Mixtapes/Albums/EPs from July 1st - September 30th 2013 should be in your answer. Discuss why those projects are your favorites because lists are boring
0non-cybersec
Reddit
hpux: ipmon on syslog.log. <p>I have configured firewall for log,i want to write in a separate file log for ipmon. Reading on net they suggest to use local0.* or local0.debug on /etc/syslog.conf file. I make this</p> <pre><code>local0.notice /var/adm/syslog/ipmon.log local0.info /var/adm/syslog/ipmon.log local0.err /var/adm/syslog/ipmon.log local0.warning /var/adm/syslog/ipmon.log </code></pre> <p>I have try also local0.debug and local0.* But instead of write on only ipmon.log,it continue to write on syslog.log and ipmon.log. Why? Of course i have restarted ipmon and syslogd</p>
0non-cybersec
Stackexchange