text
stringlengths
3
1.74M
label
class label
2 classes
source
stringclasses
3 values
Modify existing column or link to what the change is?. <p>I am making a game. In this game people can modify a value of an object. Let's picture it like so.</p> <p>House is the object</p> <p>price is the value</p> <p>Mold is the modifier</p> <p>Should I reflect changes to the price of the house in the database by directly altering a size column.</p> <pre><code>UPDATE house SET price = price - 2 WHERE id = 1; </code></pre> <p>Or should I link the modifier with a modifier table so that I can keep record of why a price is what it is.</p> <pre><code>-- Psuedo Sql house.price = abstract.house_price - modifier.mold </code></pre> <p>On the one hand, just altering the column is simple to do and will have faster queries if I have a ton of modifiers, which I will.</p> <p>On the other hand, if something goes wrong with my math, I'll have a lot of difficulty fixing prices to be what they are suppose to be.</p> <p>Is it a bad idea to do both?</p>
0non-cybersec
Stackexchange
[WP] You find yourself in a room with all of your past and future selves. Most of your past selves are pissed upon learning about what you've done and will do, while the majority of your future selves try to justify your actions. You need to remind them about the true problem. Why are you all here?.
0non-cybersec
Reddit
Right angle bracket in HTML. <p>For obvious reasons, the left angle bracket cannot be used literally in HTML text. The status of the right angle bracket is not quite so clear. It does work when I try it, but of course browsers are notoriously forgiving of constructs that are not strictly valid HTML.</p> <p><a href="http://www.w3.org/TR/html4/charset.html#h-5.4" rel="noreferrer">http://www.w3.org/TR/html4/charset.html#h-5.4</a> seems to be saying it's valid, though may not be supported by older browsers, but also makes specific mention of quoted attribute values. <a href="https://stackoverflow.com/questions/7389867/is-it-necessary-to-html-encode-right-angle-brackets">Is it necessary to html encode right angle brackets?</a> also says it's valid but again specifically talks about quoted attribute values.</p> <p>What's the answer for plain chunks of text (contents of a <code>&lt;pre&gt;</code> Element happens to be the case I'm looking at), and does it differ in any way?</p>
0non-cybersec
Stackexchange
Showing the sum of binomial independent variables follows a binomial distribution using moment generating functions. <p>So I'm trying to solve the following problem:</p> <p>Show that if <span class="math-container">$X_i$</span> follows a binomial distribution with <span class="math-container">$n_i$</span> trials, and probability of <span class="math-container">$p_i=p$</span> for <span class="math-container">$i = 1,2,3...n$</span>, and the <span class="math-container">$X_i$</span> are independent, then <span class="math-container">$\sum_{i=1}^{n}{X_i}$</span> follows a binomial distribution using moment generating functions.</p> <p>Here's what I've tried so far:</p> <p><span class="math-container">$M_{\sum_{i=1}^{n}}(t) = \prod_{i=0}^{n}M_{X_i}(t) = \prod_{i=0}^{n}(pe^t + 1 -p)^{n_i}$</span></p> <p>I'm not sure where to go from here, or if I've even done everything correctly until this point. Any help will be greatly appreciated. Thanks!</p>
0non-cybersec
Stackexchange
What do you guys think of my theme?.
0non-cybersec
Reddit
Dad opened credit cards in my mother's name and ran up a large sum of debt. She is in about $14,000 of debt now and does not know what to do. On top of all that, my dad has left the country and we have no way of contacting him. Is there anything we can do to remove this debt from my mom's name?
0non-cybersec
Reddit
Good kid spots neighbor's dropped wallet in driveway, returns it..
0non-cybersec
Reddit
I drew Snoop Dogg today (i hope he likes it).
0non-cybersec
Reddit
CSS: center element within a &lt;div&gt; element. <p>To center an HTML element I can use the CSS <code>left: 50%;</code>. However, this centers the element with respect to the whole window.</p> <p>I have an element which is a child of a <code>&lt;div&gt;</code> element and I want to center the child with respect to this parent <code>&lt;div&gt;</code>, not the whole window.</p> <p>I do not want the container <code>&lt;div&gt;</code> to have <em>all</em> its content centered, just the one specific child.</p>
0non-cybersec
Stackexchange
People who moved from 3x per week to 5-6x per week routines. How did it go?. Kind of self-explanatory but just wondering what experiences people had when moving from a 3 day full body routine to some kind of split over 5-6 days. I’m still at beginner levels strength but will have a lot of time during the summer (off season) that I could commit more time to the gym.
0non-cybersec
Reddit
What is your secret ingredient for various dishes?.
0non-cybersec
Reddit
We made pot stickers..
0non-cybersec
Reddit
Truncated Normal Distribution: Example of Integrate by Parts. <p>In Vershynin's <a href="https://www.math.uci.edu/~rvershyn/papers/HDP-book/HDP-book.html#" rel="nofollow noreferrer">book</a> High Dimensional Probability, there is an easy exercise I am doing for self-study:</p> <p>Let $g \sim N(0,1)$. Show that for all $t\geq 1$, we have</p> <p>$$\mathbb E g^2 \mathbb 1_{\{g&gt;t\}} = t \cdot \frac{1}{\sqrt{2\pi}}e^{-t^2/2} + \mathbb P \{g &gt; t\}.$$</p> <p>The left hand side is the integral</p> <p>$$\frac{1}{\sqrt{2\pi}} \int_t^\infty x^2 e^{-x^2/2}dx$$</p> <p>So, I integrate by parts:</p> <p>$$ u= x^2 \qquad du = 2x dx$$ $$ v= \frac{e^{-x\frac{x^2}{2}}}{-x} \qquad dv =e^{-x^2/2}dx$$</p> <p>\begin{align*} \frac{1}{\sqrt{2\pi}} \int_t^\infty x^2 e^{-x^2/2}dx &amp;= \frac{1}{\sqrt{2\pi}} \int u dv \\ &amp;=\frac{1}{\sqrt{2\pi}} \left( uv - \int v du \right) \\ &amp;= \frac{1}{\sqrt{2\pi}} \left(te^{-\frac{t^2}{2}}+ 2\int_t^\infty e^{-x^2/2} dx\right) \\ &amp;=\frac{1}{\sqrt{2\pi}} te^{\frac{-t^2}{2}}+2 \mathbb P\{ g&gt;t\} \end{align*}</p> <p>I can't figure out how to get rid of the 2 in that second term. Is the book mistaken? Or did I make some stupid error somewhere?</p>
0non-cybersec
Stackexchange
Looking for help with a new problem arisen in cat owndership. Hello reddit! I’ve been a cat owner for about the last year since moving in with my girlfriend. She has had this cat for about 4 years prior, and it’s the sweetest girl I’ve ever met. It’s been great until recently. She’s an indoor cat, and has never minded; perfectly house trained, uses scratching posts instead of furniture, etc. The problem is that for the past couple weeks, we’ve found her actually trying to open the door to exit the apartment! It’s a simple twist and pull doorknob, and my gf and I have no idea how/why she has started to do this. Normally she can’t get it, but we’ll hear sounds from the hallway and peek out to see her trying, but as soon as she sees us she runs away, as if she knows she’s doing something wrong. We put a shoe on the door handle for a bit, but now she’s starting knocking it off. The door only leads to an enclosed hallway in the building, so a couple times I’ve tried to leave it open while watching her to see if maybe it’s just curiosity getting the best of her, but she’s deadly scared of it! She doesn’t want to leave the apartment. At the end of the day, we have no idea how/why she is doing this, and are worried that we may find the door open after coming home from work, or even while we sleep. For the record, our door stays locked from the outside but it does not lock the handle on the inside, so without a new doorknob we wouldn’t be able to simply lock it and stop it from twisting. Any advice on why she may be doing this/how to get her to stop?
0non-cybersec
Reddit
Shoot for the moon.
0non-cybersec
Reddit
Looper Should Have at Least Been Nominated for an Oscar for Best Makeup.
0non-cybersec
Reddit
Example of differential equation with two general solutions. <p>This is a teaching-related question.</p> <p>When teaching ordinary differential equations, we typically distinguish between the general solution (which includes unspecified integration constants) and particular solutions (where the integration constants are fixed by, say, initial values).</p> <p>This makes sense for linear ordinary differential equations. But I can imagine that some nonlinear ordinary differential equations have two different solutions that look nothing like each other, that is, their difference is not an integration constant.</p> <p>Do you know an example for such differential equations (and solutions)?</p>
0non-cybersec
Stackexchange
Isomorphic Hadwiger graphs. <p>Let $G$ be a graph, then we define its <em>Hadwiger graph</em> $\textrm{Hadw}(G)$ in the following way:</p> <ul> <li>$V(\textrm{Hadw}(G)) = \{S\subseteq (V(G): S\neq \emptyset\textrm{ and } S \textrm{ is connected}\}$;</li> <li>$E(\textrm{Hadw}(G)) = \{\{S,T\}\subseteq V(\textrm{Hadw}(G)): S\cap T = \emptyset \textrm{ and } (\exists s\in S, t\in T): \{s,t\}\in E(G) \}.$</li> </ul> <p>$G$ embeds to $\textrm{Hadw}(G)$ by $v\mapsto \{v\}$, and the Hadwiger conjecture states $\chi(G) \leq \omega(\textrm{Hadw}(G))$.</p> <p><strong>Question</strong>: If $G, H$ are (finite or infinite) graphs, does $\textrm{Hadw}(G) \cong \textrm{Hadw}(H)$ imply $G\cong H$?</p>
0non-cybersec
Stackexchange
gnome installed, but gives segmentation fault every time. <p>I've installed gnome through Ubuntu Software Center but when I choose it from the login menu and login then there is only my desktop background, when I try running it from the terminal I get Segmentation fault (core dumped)</p> <p>I tried installing it from terminal and no result.</p> <p>my graphic card is nvidia 330m and I also tried removing the xorg config file and removing all the gnome config files and no result.</p> <p>any ideas on how to fix this?</p>
0non-cybersec
Stackexchange
In a commutative ring with identity, if $p$ is irreducible, is ($p$) a maximal ideal?. <p>In a Euclidean Domain, $D$, if we mod out by an irreducible, $p$, we get the field $D/(p)$. I can see that this follows since we are going to be able to write $1$ as a linear combination of $p$ and some $q \in D$. Same reason $\mathbb Z/(5)$ is a field.</p> <p>Now suppose we are not in a Euclidean Domain. Suppose we just have a commutative ring with identity, $R$. </p> <p><strong>Question $1$: Is the ideal generated by an irreducible element $p$ always maximal?</strong></p> <p>If so, then if we mod out by $p$, since $(p)$ is maximal, then $R/(p)$ is a field.</p> <p>Assuming question one is true:</p> <p><strong>Question $2$: What's the reasoning behind $R/(p)$ being a field? Will we be able to write $1$ as a linear combination of $p$ and some $q$ in a non-Euclidean Domain?</strong></p>
0non-cybersec
Stackexchange
Japanese white-collar workers are already being replaced by artificial intelligence - "Fukoku Mutual Life Insurance, is reportedly replacing 34 human insurance claim workers with “IBM Watson Explorer,” starting by January 2017.".
0non-cybersec
Reddit
Axiom of choice, non-measurable sets, countable unions. <p>I have been looking through several mathoverflow posts, especially these ones <a href="https://mathoverflow.net/questions/32720/non-borel-sets-without-axiom-of-choice">https://mathoverflow.net/questions/32720/non-borel-sets-without-axiom-of-choice</a> , <a href="https://mathoverflow.net/questions/73902/axiom-of-choice-and-non-measurable-set">https://mathoverflow.net/questions/73902/axiom-of-choice-and-non-measurable-set</a> and there still are many questions I would like to ask:</p> <p>1) According to the first answer of the first post "It is consistent with ZF without choice that the reals are the countable union of countable sets" (and therefore all sets are borel, and hence measurable), however this seems in contrast with the answer to the second post which states that "the existence of a non-Lebesgue measurable set does not imply the axiom of choice" (and therefore it is possible to construct a ZF model without choice where there exists a non-Lebesgue-measurable set). How can these two statements be both right?</p> <p>2) I can't understand why the axiom of (countable) choice is necessary to prove that a countable union of countable sets is countable. By saying that the sets are countable, I have already assumed the existence of a bijection from every set to the set of natural numbers, in other words, I have indexed the elements of each set. So what is the problem in chosing elements from each set? This relates to the above topic in that if the AC weren't necessary to prove that countable union of countable sets is countable, then "It is consistent with ZF without choice that the reals are the countable union of countable sets" can no longer be correct, since this would imply that in ZF without choice the reals are countable.</p> <p>I am only a third year math student with no background in set theory (only naive), so please excuse the ignorance. I hope someone can answer me, thank you!</p>
0non-cybersec
Stackexchange
With wavesurfer.js, how can I create an AudioContext AFTER loading the waveform?. <p>I have:</p> <pre><code> this.wavesurfer = WaveSurfer.create({ container: "#wavesurfer-player", height: 60, barWidth: 2, barHeight: 1, // the height of the wave barGap: null, scrollParent: false }); this.wavesurfer.load(this.url); this.wavesurfer.on( "loading", progress =&gt; (this.loadingProgress = progress) ); this.wavesurfer.on("ready", () =&gt; { let progressBarContainer = document.querySelector( ".progress-bar-container" ); progressBarContainer.classList.add("animated", "fadeOut"); this.loadingProgress = 100; this.wavesurfer.un("ready"); progressBarContainer.addEventListener("animationend", () =&gt; { this.hideProgressBar = true; }); }); this.wavesurfer.on("audioprocess", this.audioprocess); </code></pre> <p>On <code>iOS safari</code>, this won't play. Apparently, I need to create an AudioContext AFTER a user action. So I can add a button with a <code>click</code> event to trigger this. But I want the waveform to show on load. </p>
0non-cybersec
Stackexchange
What is the coolest, most impressive piece of futuristic technology that I can buy and have in my hands by the end of the year?. Or early 2015, if applicable.
0non-cybersec
Reddit
How to send custom headers in a Scrapy Splash request?. <p>My spider.py file is as so:</p> <pre><code>def start_requests(self): for url in self.start_urls: yield scrapy.Request( url, self.parse, headers={'My-Custom-Header':'Custom-Header-Content'}, meta={ 'splash': { 'args': { 'html': 1, 'wait': 5, }, } }, ) </code></pre> <p>And my parse def is as below:</p> <pre><code>def parse(self, response): print(response.request.headers) </code></pre> <p>When I run my spider, below line gets printed as the header:</p> <pre><code>{ b'Content-Type': [b'application/json'], b'Accept': [b'text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8'], b'Accept-Language': [b'en'], b'User-Agent': [b'Mozilla/5.0 (Windows NT 5.1) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/35.0.2309.372 Safari/537.36'], b'Accept-Encoding': [b'gzip,deflate'] } </code></pre> <p>AS you can see, this does not have the custom header I added to the Scrapy request. </p> <p>Can anybody help me with adding a custom header values for this request?</p> <p>Thanks in advance.</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
Anybody else remember this book and the nightmares it caused?.
0non-cybersec
Reddit
How to call jQuery function in angularjs function. <p>I want to know that how can I call a jQuery function in my angular function, like I've a jquery function like: </p> <pre><code>function testData(){ // code } </code></pre> <p>and I've a angular function like:</p> <pre><code>myApp.controller(AppCtrl,['$scope', function($scope) { $scope.imagesData = function(){ //here I need to call the function: testData() } }]); </code></pre> <p>so, Please let me know that how can I call my testData() inside the angularjs function($scope.imagesData()). Thanks in advance.</p>
0non-cybersec
Stackexchange
Sp00k time in comin..
0non-cybersec
Reddit
Not Spaghettios [Homemade].
0non-cybersec
Reddit
Compounding interest monthly with a deposit. <p>I want to compound interest on a weekly/fortnightly/monthly/annual basis.</p> <p>I also want an option to have a deposit amount that can be added in. </p> <p>I have already tried the standard formula of calculating the final amount accrued, as seen here: </p> <p><img src="https://encrypted-tbn0.gstatic.com/images?q=tbn:ANd9GcQxXp8OrXqBGn161piBwu-GExFUjfswrSWEvrAzPcoEQapQ98eM" alt="formula"></p> <p>For example here is my method for calculating the interest compounding weekly: </p> <pre><code>function calculateWeekly(state: any) { const { savings, deposit ,interest, timePeriodSelector, timePeriodLength } = state; let numberOfYears = 0; if (timePeriodSelector === "weekly") { numberOfYears = timePeriodLength / weeksInAYear; } else if (timePeriodSelector === "fortnightly") { numberOfYears = (timePeriodLength / weeksInAYear) * 2; } else if (timePeriodSelector === "monthly") { numberOfYears = (timePeriodLength / weeksInAYear) * weeksInAMonth; } else if (timePeriodSelector === "annually") { numberOfYears = (timePeriodLength / weeksInAYear) * weeksInAYear; } const weeklyRate = interest / 100 / weeksInAYear; const lengthOfCompunding = numberOfYears * weeksInAYear; let startingFigure = parseInt(savings) + parseInt(deposit); //total gets added on for every time cycle of week let total = (startingFigure * (Math.pow(1 + weeklyRate, lengthOfCompunding) - 1)) / weeklyRate; return roundToTwoDP(total); } </code></pre> <p>The issue with the above code is that the deposit gets added into the calculation every time the interest accrues. So a deposit of $10 weekly for 10 weeks will actually get added up to $100. </p> <p>I attempted a method to accrue the interest using a loop for each week here: </p> <pre><code> // loops how many times to compound the interest for(let i = numberOfYears - (1/weeksInAYear); i &gt; 0; i-= (1/weeksInAYear)){ let interestGained = (total * (Math.pow((1 + weeklyRate), lengthOfCompunding))) - total; total += interestGained + savings; } </code></pre> <p>Thanks for any help!</p>
0non-cybersec
Stackexchange
The hidden power of moss.
0non-cybersec
Reddit
Scalable way to manage aggregated statistics over time in hierarchy?. <p>I'm using a closure table (Postgres through Django) to roll up stats through a hierarchical tree. When a node that is 10 layers deep has a value that increases, each parent's sum total of that value can also be easily calculated at any given time, thanks to the closure table.</p> <p>Let's say our parent node has 4 children, each of which have 4 children, each of which have 4, etc to the point of 5 layers of depth. </p> <p>Each node has a <code>node score</code> table in which we update their score with new entries that can change a couple times per day, and a calculated column called <code>family score</code> that is the sum of its sum of that value for all descendent nodes. </p> <p>So here's my challenge: In this example, the very top parent has 1363 children whose changing scores influence it's own <code>family score</code> calculated value, along with the <code>family score</code> of every parent between that one and the one who's <code>node score</code> just changed.</p> <p>I need a way to be able to map any node's <code>family score</code> over time. I've come up with two solution, neither of which I think are likely to scale well:</p> <ol> <li><p>Add a <code>family score</code> table, and store a new static value for each ancestor node any time a node's score changes. Thus each write is multiplied by the depth of the node whose score is changing. The structure could easily get to 150-300 in depth.</p></li> <li><p>When loading the data for the yearly score chart, first get an array of timestamps for each <code>node score</code> row within the date range specified and with the given parent specified, and then for each timestamp, find the latest <code>node score</code> row for every descendent and sum the values.</p></li> </ol> <p>Option 1 seems like its less likely to break, but I'm guessing there's a best practice for this type of thing? Searching hasn't produce anything that quite addresses this use case. Any insights would be massively appreciated!!</p>
0non-cybersec
Stackexchange
What is with the obsession with shimapan (striped panties) in anime and hentai?. Why the blue striped pattern specifically? What is so attractive or sexy about them? It's not like thongs or laced panties which have a shape and tightness which accentuates the ass, so what is so attractive about putting blue stripes on regular panties?
0non-cybersec
Reddit
How to Ask a Question.
0non-cybersec
Reddit
Show $\int_{-\infty}^\infty dx \sin(ax) \log\Big(\Big| \frac{x+1}{x-1} \Big|\Big) = \frac{2 \pi \sin(a)}{a}$. <p>I'm interested in integrals of the form $\int_{-\infty}^\infty dx f(x) \log(\big| \frac{x+1}{x-1} \big|)$. It's particularly nice when f(x) has definite parity, since $\log(\big| \frac{x+1}{x-1} \big|)$ is odd. </p> <p>My question is how to show</p> <p>$$I \equiv \int_{-\infty}^\infty dx \sin(ax) \log\Big(\Big| \frac{x+1}{x-1} \Big|\Big) = \frac{2 \pi \sin(a)}{a}$$ for $a&gt;0$.</p> <hr> <p>I'm trying to use complex methods to solve the integral, but I keep finding an answer of 0 owing to the lack of residues. I suspect that I'm not being careful enough about divergences and phase, and please point out if you see a mistake in the comments. Here's my work so far:</p> <p>$$I = \Re \Big(\int_{-\infty}^\infty dx \sin(ax) \log\Big(\frac{x+1}{x-1} \Big) \Big)$$</p> <p>I justify this line since removing the absolute value bars merely adds a finite imaginary component from the integral between $-1 &lt; x &lt; 1$. </p> <p>Next, $$I = -\frac{1}{2}\Re \Big(i\int_{-\infty}^\infty dx\, e^{iax} \log\Big(\frac{x+1}{x-1} \Big) -i\int_{-\infty}^\infty dx\, e^{-iax} \log\Big(\frac{x+1}{x-1} \Big) \Big).$$ I believe it's kosher to split the integral into two, because each split integral converges on its own by Dirichlet's test for $|x|&gt;1$ . </p> <p>Next, I substitute $x \rightarrow -x$ in the second integral, and I find</p> <p>$$I = -\frac{1}{2}\Re \Big(i\int_{-\infty}^\infty dx\, e^{iax}\, \Big(\log\Big(\frac{x+1}{x-1}\Big)-\log\Big(\frac{-x+1}{-x-1} \Big) \Big).$$</p> <p>Combining the logarithms yields </p> <p>$$I = -\Re \Big(i\int_{-\infty}^\infty dx\, e^{iax} \log\Big(\frac{x+1}{x-1}\Big) \Big).$$ The line above is where I wonder if some subtlety of the phase of the arguments of the logarithm was lost on me. In particular, I find that if I should have an extra '$\pi i $' added onto the logarithm, I would have the anticipated result. Continuing nonetheless, to evaluate the integral $J \equiv \int_{-\infty}^\infty dx\, e^{iax} \log\Big(\frac{x+1}{x-1}\Big)$, I choose to evaluate</p> <p>$$K \equiv \oint dz\, e^{iaz} \log\Big(\frac{z+1}{z-1}\Big) $$</p> <p>on the semicircle contour in the UHP, pictured below. I do not believe the branch cut I chose matters too much, since I chose the cut along the x-axis, but it could be that this choice of branch was somehow inconsistent with how I handled merging the logarithms above. </p> <p><a href="https://i.stack.imgur.com/qb7CQ.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/qb7CQ.jpg" alt="enter image description here"></a></p> <p>The shrinking semi-circles about -1 and 1 contribute nothing. There aren't any residues inside, so $K=0$. Thus my integral $J$ must be equal to the upper arc as $R$ goes to infinity.</p> <p>Along the upper arc, note that taking the radius $R$ of the arc outward sends $\log\Big(\frac{z+1}{z-1}\Big) \rightarrow 0 $ as $\frac{1}{R}$. This, coupled with Jordan's lemma, kills the upper arc as the radius goes to infinity.</p> <p>Thus we find that $J=0$ and hence $I=0$, in contradiction to what we wished to show. I'll be looking over my steps to find a mistake.</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
[Update] Neighbors sue man to stop auto repairs at his home. Judge DENIES all claims & rules in favor of Defendant Williams.. A few weeks ago we caught wind of a few nosy and pesky neighbors who brought a disabled auto enthusiast for working out of his own garage to court. [Here's the original thread.](https://www.reddit.com/r/cars/comments/57ceq3/neighbors_sue_man_to_stop_auto_repairs_at_his_own/) & [Williams's IAmA.](https://www.reddit.com/r/IAmA/comments/57e1sm/i_am_charles_williams_and_my_neighbors_are_suing/) Case went to court on Sept. 27 and was decided yesterday. The Judge ruled in favor of Williams! Here's the [actual court document.](http://courts.delaware.gov/Opinions/Download.aspx?id=248440) Skip to P.18 where the judge DENIES all the plantiffs requests. According to the ruling, "This matter has been,unfortunately, heavily litigated and it has undoubtedly consumed more of the parties’ resources than a neutral observer might think efficient or reasonable.The matter and what I consider to be the primary issue...was resolved in a Memo Opinion of June 23, 2016 (“Walker I”)." * Plaintiffs’ request for an injunction to remove Defendant’s Pole Building is DENIED. * Plaintiffs’ request to enjoin the use of that building for the non-commercial enjoyment of the Defendant, by its use for hobby auto maintenance and repair, is DENIED. * Plaintiffs’ request that I order the Defendant to remove the ornamental signs on his property is DENIED. * The Plaintiffs have failed to establish that the Defendant has created a nuisance per se, and no relief under that theory is available to the Plaintiffs. * Plaintiffs’ request that the Defendant pay their legal fees is DENIED. Also noteworthy is the fact that $57K was raised so far via their [G0Fundme](http://i.imgur.com/0GBJBCK.png) out of the $40K goal to help with court fees.
0non-cybersec
Reddit
Can I disable this Dell PremierColor feature?. <p>Is it possible to turn these blue boxes off?</p> <p>They pop up whenever I drag a browser window.</p> <p><a href="https://i.stack.imgur.com/Cjx4u.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/Cjx4u.png" alt="enter image description here"></a></p>
1cybersec
Stackexchange
Ubuntu doesn&#39;t give the correct keycodes for some media keys. <p>I've just installed Ubuntu 16.04 on my ThinkPad T450s and for some reason the media keys for volume and screen brightness are not giving any keycodes or keysyms (ie. XF86AudioRaiseVolume). But all the other media keys give the correct values.</p> <p>What's weird is that the media keys still work fine in unity and gnome, it's just a problem when I use i3 because I can't map the volume keys to change the volume.</p> <p>This is what <code>xev</code> returns for the volume down, volume up and volume mute keys:</p> <p>Volume down:</p> <pre><code>FocusOut event, serial 33, synthetic NO, window 0x1a00001, mode NotifyUngrab, detail NotifyPointer FocusIn event, serial 33, synthetic NO, window 0x1a00001, mode NotifyUngrab, detail NotifyAncestor KeymapNotify event, serial 33, synthetic NO, window 0x0, keys: 2 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 </code></pre> <p>Volume Up:</p> <pre><code>FocusOut event, serial 33, synthetic NO, window 0x1a00001, mode NotifyGrab, detail NotifyAncestor FocusIn event, serial 33, synthetic NO, window 0x1a00001, mode NotifyUngrab, detail NotifyAncestor KeymapNotify event, serial 33, synthetic NO, window 0x0, keys: 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 </code></pre> <p>Volume mute:</p> <pre><code>FocusOut event, serial 33, synthetic NO, window 0x1a00001, mode NotifyUngrab, detail NotifyPointer FocusIn event, serial 33, synthetic NO, window 0x1a00001, mode NotifyUngrab, detail NotifyAncestor KeymapNotify event, serial 33, synthetic NO, window 0x0, keys: 2 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 </code></pre> <p>As you can see, they are all the same. So I have no idea how unity or gnome can tell them apart. Just for reference I'll show the output for the mic off and wifi off media keys from <code>xev</code>:</p> <pre><code>KeyRelease event, serial 33, synthetic NO, window 0x1a00001, root 0xf6, subw 0x0, time 3107820, (-19,759), root:(625,798), state 0x0, keycode 198 (keysym 0x1008ffb2, XF86AudioMicMute), same_screen YES, XLookupString gives 0 bytes: XFilterEvent returns: False KeyPress event, serial 34, synthetic NO, window 0x1a00001, root 0xf6, subw 0x0, time 3112189, (-19,759), root:(625,798), state 0x0, keycode 246 (keysym 0x1008ff95, XF86WLAN), same_screen YES, XLookupString gives 0 bytes: XmbLookupString gives 0 bytes: XFilterEvent returns: False </code></pre> <p>And I used to get similar results for the volume keys before installing ubuntu as well (I was using Arch).</p> <p>The brightness keys don't work either, are these being overridden at some low level? Is there a way I can fix it so they return the correct value or is there some other way I can get the media keys working for ubuntu?</p> <p><strong>Update</strong>: This is what <code>xev</code> gives for the volume up and down keys while I'm running unity.</p> <pre><code>FocusOut event, serial 47, synthetic NO, window 0x4800001, mode NotifyGrab, detail NotifyAncestor FocusIn event, serial 47, synthetic NO, window 0x4800001, mode NotifyUngrab, detail NotifyAncestor KeymapNotify event, serial 47, synthetic NO, window 0x0, keys: 2 0 0 0 0 0 0 0 0 0 0 0 0 0 0 4 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 KeyRelease event, serial 47, synthetic NO, window 0x4800001, root 0xf7, subw 0x0, time 2182026, (-1217,972), root:(525,2104), state 0x0, keycode 122 (keysym 0x1008ff11, XF86AudioLowerVolume), same_screen YES, XLookupString gives 0 bytes: XFilterEvent returns: False FocusOut event, serial 47, synthetic NO, window 0x4800001, mode NotifyGrab, detail NotifyAncestor FocusIn event, serial 47, synthetic NO, window 0x4800001, mode NotifyUngrab, detail NotifyAncestor KeymapNotify event, serial 47, synthetic NO, window 0x0, keys: 2 0 0 0 0 0 0 0 0 0 0 0 0 0 0 8 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 KeyRelease event, serial 47, synthetic NO, window 0x4800001, root 0xf7, subw 0x0, time 2185429, (-1217,972), root:(525,2104), state 0x0, keycode 123 (keysym 0x1008ff13, XF86AudioRaiseVolume), same_screen YES, XLookupString gives 0 bytes: XFilterEvent returns: False </code></pre> <p>When running unity, I also have <code>unity-settings-daemon</code>, <code>unity-panel-service</code> and <code>unity-fallback-mount-helper</code>. Could one of these be catching the event and adding the <code>XF86</code> keysyms? None of these are running in i3.</p> <p>In response to @Adaephon I have this in my i3 config:</p> <pre><code># volume controls bindsym XF86AudioRaiseVolume exec amixer -q set Master playback 2%+ unmute bindsym XF86AudioLowerVolume exec amixer -q set Master playback 2%- unmute bindsym XF86AudioMute exec amixer -q set Master mute </code></pre>
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
Linux adds the wrong default route. <p>For some reason my Centos 5.9 Linux 2.6.18 x86_64 wants me to have two default routes.</p> <p>Whenever I reboot the server, my routing table looks like this:</p> <pre><code>[root@server1 ~]# route -n Kernel IP routing table Destination Gateway Genmask Flags Metric Ref Use Iface 255.255.255.255 0.0.0.0 255.255.255.255 UH 0 0 0 bond0 192.168.0.0 0.0.0.0 255.255.255.0 U 0 0 0 bond1 192.168.10.0 0.0.0.0 255.255.255.0 U 0 0 0 bond0 169.254.0.0 0.0.0.0 255.255.0.0 U 0 0 0 bond1 0.0.0.0 192.168.10.1 0.0.0.0 UG 0 0 0 bond0 0.0.0.0 192.168.0.254 0.0.0.0 UG 0 0 0 bond1 </code></pre> <p>bond1 is a local network, so having a last default route pointing to this network makes all internet requests fail.</p> <p>It is easily fixed by executing <code>route del default gw 192.168.0.254</code> and I could possibly add that command to some startup script. I would however like to understand what's going on and get to the root of the problem.</p> <p>I hope anyone can tell me, why this happens. My research confirm that there should always be only one default gateway, but I can find no answer to why there would automatically be two of them.</p> <p>Here is some config files:</p> <pre><code>[root@server1 ~]# cat /etc/sysconfig/network NETWORKING=yes NETWORKING_IPV6=no HOSTNAME=myhostname.com [root@server1 ~]# cat /etc/sysconfig/network-scripts/ifcfg-bond0 DEVICE=bond0 IPADDR=192.168.10.11 NETMASK=255.255.255.0 NETWORK=192.168.10.0 BROADCAST=192.168.10.255 GATEWAY=192.168.10.1 ONBOOT=yes BOOTPROTO=none USERCTL=no [root@server1 ~]# cat /etc/sysconfig/network-scripts/ifcfg-bond1 DEVICE=bond1 IPADDR=192.168.0.15 NETMASK=255.255.255.0 NETWORK=192.168.0.0 BROADCAST=192.168.0.255 GATEWAY=192.168.0.254 ONBOOT=yes BOOTPROTO=none USERCTL=no </code></pre> <p>I understand that swapping bond0 and bond1 would make the two default routes switch place as well, effectively giving me internet access on boot. But I still think it's not the good solution.</p> <p>Around the internet people are talking about files at <code>/etc/sysconfig/network-scripts/route-X</code>, I don't have any of those though.</p> <p>Thanks for your time.</p>
0non-cybersec
Stackexchange
Please park in between the lines..
0non-cybersec
Reddit
Does it make sense to talk about smooth bundles of Hilbert spaces?. <p>Is there a notion of <i>&quot;smooth bundle of Hilbert spaces&quot;</i> (the base is a smooth finite dimensional manifold, and the fibers are Hilbert spaces) such that:</p> <blockquote> <p><b>1•</b> A smooth bundle of Hilbert spaces over a point is the same thing as a Hilbert space.</p> <p><b>2•</b> If <span class="math-container">$E\to M$</span> is a smooth fiber bundle of orientable manifolds (say with compact fibers) equipped with a vertical volume form, then taking fiberwise <span class="math-container">$L^2$</span>-functions produces a smooth bundle of Hilbert spaces over <span class="math-container">$M$</span>.</p> <p><b>3•</b> If the Hilbert space is finite dimensional, then this specializes to the usual notion of smooth vector bundle (with fiberwise inner product).</p> </blockquote> <p>I suspect that the answer is &quot;no&quot;, because I couldn't figure out how it might work...<br> If the answer is indeed no, then what is/are the best notion/s of smooth bundle of Hilbert spaces?</p>
0non-cybersec
Stackexchange
An option for haptic feed back on lock and volume buttons would be nice. On the iPhone 7 and 8 the home button isn’t an actual button and has haptic feedback. What would be nice is if they made it so you could turn on haptic feed back for lock and volume buttons in iOS 13. The reason I thought of this is because my lock button no longer clicks. It still works, but it’s extremely mushy and doesn’t have a satisfying click when I press it. Haptic feedback would at least remedy this issue. Some people may also like it overall, even if their buttons still function correctly.
0non-cybersec
Reddit
Help with ECC on curve B233. Hello I'm trying to check the values given for the curve B233 ( from [FIPS 186-3](https://csrc.nist.gov/csrc/media/publications/fips/186/3/archive/2009-06-25/documents/fips_186-3.pdf) ) but can't seem to get the value. If we take a simple key of k=2 then according to [this calculator](http://extranet.cryptomathic.com/elliptic/index) and [these vectors](http://point-at-infinity.org/ecc/nisttv) you should get x = 0x00845FD61638BAC7D9E109A67A1F7047DC0FD9A5488A8468364BDC592AAD y = 0x001B1420774ABBA2587C83900984765A8A85D776325FC39CC7823D734660 through taking a scalar of 2\*P where P are the points defined in FIPS 186-3 and taking it modulo x^(233)\+x^(74)\+1 (or 2\^233+2\^74+1 to convert to binary) but that is not the value that I get instead I get x = 0x1f593bf97590627764273e376eabfdecb78723f166df1f1d6e6e3faab16 which is obviously not correct. &#x200B; Thanks for any help you can give in advance for helping me better understand my error! Sorry for the messy post I wasn't sure the best way to condense the information. &#x200B; (For convenience I'm putting the FIPS 186-3 values here) For curve y^(2)\+xy = x^(3)\+ax^(2)\+1 where: a = 1 b = 0x066647ede6c332c7f8c0923bb58213b333b20e9ce4281fe115f7d8f90ad xbase = 0x0fac9dfcbac8313bb2139f1bb755fef65bc391f8b36f8f8eb7371fd558b ybase = 0x1006a08a41903350678e58528bebf8a0beff867a7ca36716f7e01f81052 &#x200B; Edit: A few people stated that I did not show how I did my calculations so I'm adding it here. My calculation was basically to take the base point and multiply it by 2 2 \* xbase = 0x1f593bf97590627764273e376eabfdecb78723f166df1f1d6e6e3faab16 2\* ybase = 0x200d4114832066a0cf1cb0a517d7f1417dff0cf4f946ce2defc03f020a4 I then take these values modulo the prime polynomial mod = 2\^233 + 2\^74 + 1 xbase % mod = 0x1f593bf97590627764273e376eabfdecb78723f166df1f1d6e6e3faab16 ybase % mod = 0xd4114832066a0cf1cb0a517d7f1417dff0cf4b946ce2defc03f020a3 &#x200B; OR in python: x = int("0fac9dfcbac8313bb2139f1bb755fef65bc391f8b36f8f8eb7371fd558b",16) y = int("1006a08a41903350678e58528bebf8a0beff867a7ca36716f7e01f81052",16) primpol = 2**233+2**74+1 k = 2 ans1 = (k*x) % primpol ans2 = (k*y) % primpol print(hex(ans1)) print(hex(ans2)) I understand that this is likely a dumb and incorrect way but I'd just like to learn thanks!
1cybersec
Reddit
Update all rows. <p>I want to know the most efficient manner to update every row in an extremely large Oracle table for a single column. For example:</p> <pre><code>update mytable set mycolumn=null; </code></pre> <p>or:</p> <pre><code>update mytable set mycolumn=42; </code></pre> <p>My knowledge may very well be stale. What I do is alter the table to drop the column. Then, I alter the table to add the column with a default value of the new value that I want to use. Then, I alter the table to remove the default value for the column. I find this to be much faster than just running an update, but I have a feeling that there is a better method.</p>
0non-cybersec
Stackexchange
LlabTooFeR on Twitter: Lollipop for HTC One M8 nearly complete, ETA is 1-2 weeks..
0non-cybersec
Reddit
All The Boys Love Mandy Lane.
0non-cybersec
Reddit
Error:Execution failed for task &#39;:app:packageDebug&#39; - Java heap space. <p>I am getting this error in Android Studio logs when I am trying to build an APK.</p> <p><strong>Error:Execution failed for task ':app:packageDebug'. Java heap space</strong></p> <p>This issue is coming when I am trying to build an APK with 350 MB size of .sqlite in assets directory. When I removed the .sqlite file then issue is gone.</p> <p>My studio64.exe.vmoptions file for studio:</p> <pre><code>-Xms2048m -Xmx3840m -XX:ReservedCodeCacheSize=960m -XX:+UseConcMarkSweepGC -XX:SoftRefLRUPolicyMSPerMB=250 -da -Djna.nosys=true -Djna.boot.library.path= -Djna.debug_load=true -Djna.debug_load.jna=true -Dsun.io.useCanonCaches=false -Djava.net.preferIPv4Stack=true -Didea.paths.selector=AndroidStudio2.3 -Didea.platform.prefix=AndroidStudio -Didea.jre.check=true </code></pre> <p><a href="https://i.stack.imgur.com/hclxk.png" rel="noreferrer"><img src="https://i.stack.imgur.com/hclxk.png" alt="enter image description here"></a></p>
0non-cybersec
Stackexchange
Is this a superharmonic function?. <p>Hi everyone: Let $ \Omega $ be a bounded open set of $ \mathbb{R}^{N} $, $ N\geq2 $, and $ F\subset \Omega $ with empty interior. Suppose there exists a superharmonic function $ u $ on $ \Omega\setminus F $ such that $$ \lim_{x\rightarrow y}u(x)=+\infty $$ for all $ y\in F $. Now, we define $ w(x) $ to be equal to $ u(x) $ for $ x\in \Omega\setminus F $, and $ +\infty $ for $ x\in F $. Is $ w $ a superharmonic function on $ \Omega $?</p>
0non-cybersec
Stackexchange
Cannot see anything in the viewport. <p>Whenever I open blender I cannot see anything in the viewport: no grid, no objects, nothing. It was suggested that it might be a hardware issue, if so how do I fix it?</p> <p>This is what I see:</p> <p><img src="https://i.stack.imgur.com/tCmEL.png" alt="viewport"></p>
0non-cybersec
Stackexchange
In the beginning, what was your reason or motivation to start lifting/excising?. Also is it still the thing that drives you? I started getting my act together after the love of my life left me. I used to look pretty good but as I went through college I got fat and lazy. I've only been lifting and eating right for a few months now but I feel incredible. I started off doing it for her but eventually realized I need to do it for myself. I want to see how far I can go, how hard I can push myself.
0non-cybersec
Reddit
convulotion associative between vectors. <p>We learnt that convolution is commutative, meaning that:</p> <p>$$xh = hx.$$</p> <p>However if I take:</p> <p>$$h=[-1,0,1] \mbox{ and } x=[1,1,1]^T $$ </p> <p>($T$ is transpose)</p> <p>I get that $xh$ is not equal to $hx$.</p> <p>Could someone explain this please?</p> <p>Many thanks.</p>
0non-cybersec
Stackexchange
Teaching Encryption Soon to Be Illegal in Australia.
0non-cybersec
Reddit
How much are the world's best beaches really worth?.
0non-cybersec
Reddit
Upcoming youtuber (Insights to Prosper) - launching first video tomorrow.
0non-cybersec
Reddit
Breaking Bad inspires parents to name their children after drug dealers instead of royals.
0non-cybersec
Reddit
Showing that $F=\frac{1}{x^2+y^2}\langle-y,x\rangle$ is not path independent.. <p>I thought that path independence and being conservative were tied together so using $\displaystyle F=\left\langle{\frac{-y}{x^2+y^2}, \frac{x}{x^2+y^2}}\right\rangle$ I found $\dfrac{\partial Q}{\partial x} = \dfrac{y^2-x^2}{(x^2-y^2)^2}$ and then $\dfrac{\partial P}{\partial y} = \dfrac{y^2-x^2}{(x^2-y^2)^2}$, also. But they're the same so that means its is conservative, which doesn't show that it's not path independent. Put them into symbolab to be sure I wasn't making a mistake doing the partial derivatives and got the same. </p>
0non-cybersec
Stackexchange
Find world space coordinate for pixel in OpenCV. <p>I need to find the world coordinate of a pixel using OpenCV. So when I take pixel (0,0) in my image (that's the upper-left corner), I want to know to what 3D world space coordinate this pixel corresponds to on my image plane. I know that a single pixel corresponds to a line of 3D points in world space, but I want specific the one that lies on the image plane itself.</p> <p>This is the formula of the OpenCV Pinhole model of which I have the first (intrinsics) and second (extrinsics) matrices. I know that I have u and v, but I don't know how to get from this u and v to the correct X, Y and Z coordinate.</p> <p><img src="https://i.stack.imgur.com/cRTbF.png" alt="Pinhole Model Opencv"></p> <p>What I've tried already:</p> <ul> <li>I thought to just set s to 1 and make a homogeneous coordinate from [u v 1]^T by adding a 1, like so: [u v 1 1]^T. Then I multiplied the intrinsics with the extrinsics and made it into a 4x4 matrix by adding the following row: [0 0 0 1]. This was then inverted and multiplied with [u v 1 1]^T to get my X, Y and Z. But when I checked if four pixels calculated like that lay on the same plane (the image plane), this was wrong.</li> </ul> <p>So, any ideas? </p>
0non-cybersec
Stackexchange
Breaching her ASBO....
0non-cybersec
Reddit
locus of $z=w - \frac{1}{w}$. <p>If <span class="math-container">$|w|=2$</span> , then set of points <span class="math-container">$z=w -\frac{1}{w}$</span> is equal to ?</p> <p>One of my friend helped me like this:</p> <p><span class="math-container">$$|z| = \left| w - \frac{1}{w}\right| \leq |w| + \frac{1}{|w|} = 2 + 0.5 = 2.5 \\ \implies |z| \le 2.5$$</span></p> <p>After that I am unable to proceed. Can anybody help me?</p>
0non-cybersec
Stackexchange
Bought some notebooks from a Russian shop..
0non-cybersec
Reddit
Gear Option for Faraday containers www.MTDFE.com. Tossing this out there for those looking. Helping to spread the word regarding a small LEO owned business. [www.MTDFE.com](https://www.MTDFE.com) is a solid source for Faraday containers for cellphone and forensics. Only been around for about a year but the products and price are about right.
1cybersec
Reddit
Happy 69th birthday to Bruce Springsteen. Here's The Boss back in 1975.
0non-cybersec
Reddit
20% off at Serie Noire with code WELCOMESUN20.
0non-cybersec
Reddit
Windows DHCP client and DNS suffix search list (option 119). <p>I'm trying to supply the dns search list to my windows clients to make the internal DNS naming scheme usable. Windows AD is not used so no GPO available.</p> <p>The ideal way would be to supply the dns search list via DHCP option 119. Windows DHCP clients tragically don't seem to support that.</p> <p>Is there an alternative way of achieving this beside GPO?</p> <p>Related:</p> <p><a href="https://serverfault.com/questions/37417/which-dhcp-client-os-support-dhcp-option-119-domain-suffix-search">Which DHCP Client OS Support DHCP Option 119 Domain Suffix Search?</a></p>
0non-cybersec
Stackexchange
Ants can accidentally misinterpret the chemical trails left by other ants and start walking in circles. If too many members of the colony join in, it can kill the whole colony in what is sometimes known as the "Death Spiral"..
0non-cybersec
Reddit
War Mod. Do we have a mod that likes you set a point and groups of mutants (up to you which mutants and time) will spawn and a point that they will attack? It's like DotA or LoL that creep waves spawns at each lane and go at the lane to reach enemy ancient.
0non-cybersec
Reddit
How to read Google Analytics events data?. <p>My question is about Android application button press tracking, but I believe there is no big difference with button press on the web page, so I ask the question here.</p> <p>I would like to track user actions and user settings in my Android app, so I've added the following code (executed when user presses particular button):</p> <pre><code>if (user_name != "") has_name = 1; ... easyTracker.send(MapBuilder.createEvent("ui_action", "send_mail", "has_name", (long) has_name).build()); easyTracker.send(MapBuilder.createEvent("ui_action", "send_mail", "has_address", (long) has_address).build()); easyTracker.send(MapBuilder.createEvent("ui_action", "send_mail", "has_operator", (long) has_operator).build()); easyTracker.send(MapBuilder.createEvent("ui_action", "send_mail", "has_passport", (long) has_passport).build()); easyTracker.send(MapBuilder.createEvent("ui_action", "send_mail", "has_phonenumber", (long) has_phonenumber).build()); easyTracker.send(MapBuilder.createEvent("ui_action", "send_mail", "has_mo_consent", (long) has_mo_consent).build()); easyTracker.send(MapBuilder.createEvent("ui_action", "send_mail", "has_other_docs", (long) has_other_docs).build()); easyTracker.send(MapBuilder.createEvent("ui_action", "send_mail", "has_screenshot", (long) has_screenshot).build()); easyTracker.send(MapBuilder.createEvent("ui_action", "complaint_region", email_to, null).build()); </code></pre> <p>See <a href="https://developers.google.com/analytics/devguides/collection/android/v3/events" rel="nofollow noreferrer">createEvent</a> description - it sends <code>Event category</code>, <code>Event action</code>, <code>Event label</code>, Event value accordingly.</p> <p>Now I see the following results for particular date - </p> <p><em>EVENT ACTION: send_mail » EVENT CATEGORY: ui_action</em></p> <p><a href="https://i.stack.imgur.com/Y5CGD.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/Y5CGD.png" alt="ea:send_mail-ec:ui_action"></a></p> <p>EVENT CATEGORY: ui_action » EVENT ACTION: complaint_region <a href="https://i.stack.imgur.com/gBoXm.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/gBoXm.png" alt="ec:ui_action_ea:complaint_region"></a></p> <p>I can not understand - should not be total number of events <code>complaint_region</code> multiplied by 8 (number of event labels for <code>send_mail</code>) be equal to <code>send_mail</code> total events? <code>76*8 != 1038</code>.</p> <p>And, the main question - how many times all users pressed the button <code>76</code>?</p>
0non-cybersec
Stackexchange
Tried to take a nice picture of the cats and this happened.
0non-cybersec
Reddit
Cauchy-Riemann conditions for complex differentiability. <p>The Cauchy-Riemann conditions for the differentiability of $f(z) = f(x + iy) = u(x, y) + iv(x, y)$ in $(x_0, y_0)$ are</p> <p>$$\displaystyle \frac{\partial u (x_0, y_0)}{\partial x} = \frac{\partial v (x_0, y_0)}{\partial y}$$</p> <p>$$\displaystyle \frac{\partial u (x_0, y_0)}{\partial y} = - \frac{\partial v (x_0, y_0)}{\partial x}$$</p> <p>These conditions are derived when $z = x + iy$ approaches $z_0 = x_0 + iy_0$ along the $x$-axis and the $y$-axis respectively. If the first derivative of $f(z)$ with respect to $z_0$ does exist, it must be not dependent on the pattern followed by $z$ approaching $z_0$. </p> <p>So, how can the computation along just <em>two</em> possible patterns ($x$-axis and $y$-axis) be sufficient? How are (implicitly) considered <em>all</em> the other possible patterns while we obtain the Cauchy-Riemann conditions?</p> <p>I know that they are sufficient conditions, but up to now, they appear to be not general and relative to only two specific cases of "approach" between infinite possibilities.</p>
0non-cybersec
Stackexchange
[Fun] Was rewatching A New Hope for the umpteenth time, noticed something odd about Vader's mask in this shot.
0non-cybersec
Reddit
Clouds.
0non-cybersec
Reddit
WAYWT - May 25th. WAYWT = What Are You Wearing Today (or a different day, whatever). Think of this as your chance to share your personal taste in fashion with the community. Most users enjoy knowing where you bought your pieces, so please consider including those in your post. Want to know how to take better WAYWT pictures? Read the guide [here](http://www.reddit.com/r/malefashionadvice/comments/16rwft/how_to_take_better_self_pics_for_mfa/). If you're looking for feedback on an outfit instead of just looking to share, consider using Outfit Feedback & Fit Check thread instead. **Important: Downvotes are strongly discouraged in this thread. Sorting by new is strongly encouraged.**
0non-cybersec
Reddit
TIL Mark Hamill created his own backstory for Luke Skywalker that involves Luke marrying and his young child accidentally killing himself with his lightsaber..
0non-cybersec
Reddit
Men (or women) of askmen, how have you given back to a wealthier SO?. As the title says. At the moment, the wonderful woman I'm involved with is in a much better place financially than I am, and insists on spoiling me rotten. I won't go into too many details because I don't want to make this too specific, and I figured this situation can't be too unheard of. What are some great ways you've found to consistently show appreciation, or some pleasant surprises you've cooked up?
0non-cybersec
Reddit
Skype for Business Conferencing Room setup(s). Mornin'! The executive team had made the executive decision to not renew our maintenance agreement with our existing video conferencing solution and we've been having issues (edit for clarity). So we are going to replace it with a solution which can utilize our existing Skype for Business implementation (via 365 Online). I'm wondering if any of you have recently undergone a similar effort? I'm seeing a lot of hardware out there for purchase (Surface Hub amongst others) but not a lot of traditional "meeting room PCs". I've already got 2 good Sharp displays, a good 1080p Lifesize Camera and Lifesize phone. Am I searching for a unicorn? Would it be simpler to simply rip all that out and buy a package like Logitech's GROUP with an intel NUC? Our existing implementation was by a company called Vidyo. Definitely venturing into uncharted territory for myself here so appreciate the input as always.
0non-cybersec
Reddit
“I violate Article 27, Sec. 553-4 of the Maryland Annotated Code safely, often, and extremely well”.
0non-cybersec
Reddit
I'm just going to hold this watermelon with my hand and chop it in half with a sword WCGW?.
0non-cybersec
Reddit
PHP redirect - (SNI) misdirected request the client needs a new connection - host does not match the server name indication. <p>I am redirecting clients to another domain - after receiving a paypal payment. I am using this PHP code :</p> <pre><code>&lt;?php header("Location: https://www.domain_example_2.com"); ?&gt; </code></pre> <p>It seems to work fine on most devices. But a few people on iPhones have reported this error:</p> <p>"<strong>misdirected request the client needs a new connection for this request as the requested host does not match the server name indication (SNI) in use for this connection</strong>"</p> <p>The domain receiving the paypal transaction confirmation PDT is <strong>www.domain_example_1.com</strong> it takes the details then sends the user to another domain <strong>www.domain_example_2.com</strong> to log in.</p> <p>It works fine on other devices.</p> <p>The domains are hosted on godaddy both domains under the same multi SANS.</p> <hr> <p><strong>1) what is causing this error?</strong></p> <p><strong>2) what is the easiest solution?</strong></p> <hr> <p>I have read a few ideas about it being the multi SANS as a problem and to get a separate certificate for the domain. To also having settings changed on godaddy's side.</p> <p>If it is the PHP redirect - is there some other method that will not trigger this error?</p> <p>I want to use the one domain to handle the PDT transaction - and I expect to be sending customer to multiple other domains after transactions.</p> <p>I do not want to have multiple paypal accounts - as paypal only allows for one PDT URL.</p> <p>I do not think this error has anything to do with paypal. But is does seem to effect only iphone.</p>
0non-cybersec
Stackexchange
[Rumor] PS5 Pro Set to release alongside Regular PS5.
0non-cybersec
Reddit
Java Update Push to non-admin users. <p>I would like to Push Java Update to many different PCs that are used by non-admin users on an internal network. </p> <p>Is this possible without purchasing of third-party software? </p> <p>PCs are mostly on Windows 7 Enterprise and some are XP Enterprise.</p> <p>Java version are different from 7.11 to 7.17.</p> <p>Hardware is all Dell (OptiPlex 7010 , 755, 7xx) - Processors, Core 2 Duo to new i3, i5, so some PCs have Ivy Bridge. </p> <p>BIOS version are different, I know that the newest one is DELL A09. </p> <p>PCs are on the same domain. </p>
0non-cybersec
Stackexchange
Setting up Konico Minolta 1400w printer on Windows Vista 32-bit. <p>One of my neighbors asked me to help them setup this old printer on their computer (their other printer is broken) so after fighting with it for about an hour but to no avail. Every time I try to install it, Windows just recognizes it as a "print to file printer" as in it will only print to an output file.</p>
0non-cybersec
Stackexchange
Consider the following set in the dictionary order.?. <blockquote> <p>Consider the following set in the dictionary order. Which are linear continua?</p> <p>(1) <span class="math-container">$\mathbb{Z_+}\times [0,1)$</span></p> <p>(2) <span class="math-container">$[0,1)\times \mathbb{Z_+}$</span></p> </blockquote> <p>my answer :<span class="math-container">$1) $</span>is true since, for <span class="math-container">$x\neq y$</span>, (<span class="math-container">$n\times x,m\times y$</span>) always contains the points <span class="math-container">$n\times (\dfrac{x+y}{2})$</span> and <span class="math-container">$m\times (\dfrac{x+y}{2})$</span>.</p> <p>for answer <span class="math-container">$2)$</span>:is true since, for <span class="math-container">$x\neq y$</span>, (<span class="math-container">$x\times n,y\times m$</span>) always contains the points <span class="math-container">$(\dfrac{x+y}{2})\times n $</span> and <span class="math-container">$(\dfrac{x+y}{2})\times m$</span></p> <p>Is my answer is correct ?</p> <p>pliz verify its</p>
0non-cybersec
Stackexchange
Need Help Finding this Blanket. We were given this blanket second hand. We have seen a couple in pictures and out in public. But for the life of us we cannot find a brand or a place to buy it. I was hoping that maybe some of you have gotten it or seen it and could direct us to where we could get a new one. I have searched google and google images high and low with every term I could think of, as well as all the stores in the area. Here are a couple pictures: http://imgur.com/a/eGacx It's blue, light one one side (its more "cottony") and dark blue on another smooth side. Has brown satin trim with dots. Some of the dots have white dots inside of them as a pattern. It has three larger pattern dots sewn on to the blanket on the other side.
0non-cybersec
Reddit
Ubuntu Can`t Boot After Failing To Install. <p>This is my situation:</p> <ol> <li><p>I had in my hard drive two operating systems: <strong>Windows 8.1</strong> and <strong>Ubuntu 12.04 LTS Precise Pangolin</strong>.</p></li> <li><p>Using a bootable USB stick, I created another partition to install in it the newer <strong>Ubuntu <em>MATE</em> 16.04 LTS Xenial Xerus</strong> (the operating system in the bootable USB stick).</p></li> <li><p>After creating the partition and trying to install <strong>Ubuntu <em>MATE</em> 16.04 LTS Xenial Xerus</strong> in it, I got some error messages that I cant remember right now. The result was that I couldn`t boot my computer anymore and, when booting my machine, I was sent to a black screen with the words "<strong>grub rescue</strong>" on it.</p></li> <li><p>Then, I decided to completely erase my entire hard disk and install <strong>Ubuntu 12.04 LTS Precise Pangoling</strong> in it once again. I used a bootable USB stick with Precise in it and used the entire hard disk in the install.</p></li> <li><p>The install was running smooth and by the numbers until I got this message in the end:</p></li> </ol> <blockquote> <p><strong>grub-efi-amd64-signed failed to install into /target/. Without GRUB boot loader, the installed system will not boot</strong></p> </blockquote> <ol start="6"> <li><p>I ran <strong>boot repair</strong> and got no solutions at all. Only a black screen with the words <strong>grub rescue</strong> on it.</p></li> <li><p>I asked <strong>boot repair</strong> to create a <a href="http://paste.ubuntu.com/16184588/" rel="nofollow">report</a> (<a href="http://paste.ubuntu.com/16184588/" rel="nofollow">http://paste.ubuntu.com/16184588/</a>) about the boot conditions in my machine. I don`t know how to read that report. Sorry for that. :-)</p></li> <li><p>My hard disk partitions are this way right now:</p></li> </ol> <p>Partition File-System Size Used Unused Flags</p> <p>/dev/sda1 fat-32 94.00-MiB 1.46-MiB 92.54-MiB boot</p> <p>/dev/sda2 ext4 927.48-MiB 17.75-GiB 909.73-GiB</p> <p>/dev/sda3 (key image) linux-swap 3.94-GiB</p> <p>StackOverflow doesn`t support tables. Sorry for the mess above.</p> <p><strong>Some additional informations:</strong></p> <p>I think something went wrong when trying to configure UEFI, Secure Boot, Fast Boot and all those stuffs of "modern" computer systems. The BIOS was so easy to use. The fact is that I did something wrong, since my computer is a useless pile of metal right now. I cant boot it and I cant install anything in it.</p> <p>By the way, all I want right now is to install <strong>Ubuntu 12.04 LTS Precise Pangoling</strong> in my computer. I have a bootable USB stick with it and I don`t mind using the entire hard disk for that.</p> <p>Best regards.</p>
0non-cybersec
Stackexchange
bonus question on quaternions. <p>I have this asterisk question, I know its hard to do and I know no one would get it in my class. Just wondering if any of you guys could give me good hints in how to do this. It would be appreciated.</p> <p>Thank you</p> <p>Question</p> <p>The quaternions extend the complex numbers and give non-commutative products on points of $\mathbb{R^4}$. They satisfy every field axiom except for the commutativity of multipication. Show that there is no commutative product making $\mathbb{R^n}$ a field for $n \geq 3$. For $n=2$ the field is the complex numbers.</p>
0non-cybersec
Stackexchange
When a central bank or federal reserve 'prints money' as a matter of policy, e.g. to stimulate a stagnating economy, who gets the cash?. How does this money find its way into the economy in order to do what it's meant to do? It seems like a tricky one as whatever organisation gets the money will be temporarily (and maybe unjustifiably) wealthier all of a sudden before currency devaluation kicks in via the market.
0non-cybersec
Reddit
How do I fix GUI Miner stuck at connecting?. <p>GUI Miner v2011-08-24 just shows "connecting..." when trying to connect to slush's pool. The console shows:</p> <pre><code>2011-12-31 14:00:49: Running command: poclbm.exe [email protected]:[email protected]:8332 --device=0 --platform=0 --verbose 2011-12-31 14:00:49: Listener for "Default" started 2011-12-31 14:06:53: Listener for "Default": api2.bitcoin.cz:8332 31/12/2011 14:06:53, long poll: new block 0000028fd540f91b 2011-12-31 14:07:33: Listener for "Default": api2.bitcoin.cz:8332 31/12/2011 14:07:33, long poll: new block 0000079641b6608b </code></pre> <p>where xxxxxx is my correct password.</p> <p>I've tried uninstalling (removing the directory, ensuring the process isn't running, and unzipping again) as suggested in this post: <a href="https://bitcointalk.org/index.php?action=printpage;topic=28886.0" rel="nofollow">https://bitcointalk.org/index.php?action=printpage;topic=28886.0</a> but it hasn't worked.</p>
0non-cybersec
Stackexchange
Computing the order of $dx$ at the infinity point of an elliptic curve. <p>I am having trouble to figure out the order of the differential form $dx$ is on the infinity point $P=[0:1:0]$ of the elliptic curve $C$: $$y^2 = (x-e_1)(x-e_2)(x-e_3)$$</p> <p>I want to compute this straight from the definitions instead of using any theorem. My first step was to find a uniformizer. For that, I computed</p> <p>$$\mathfrak m_{[0:1:0]}/\mathfrak m^2_{[0:1:0]} = (x,z)/(x^2,xz,z^2)$$</p> <p>From homogenizing the equation of the elliptic curve and expanding the left hand side, one sees that $zy^2= x^3 +... \in \mathfrak m^2_{[0:1:0]}$. Since $y^2$ doesn't vanish at $P=[0:1:0]$, it is a unit in the local ring $C_P$. Hence $z\in \mathfrak m^2_{[0:1:0]}$ and $x$ is a uniformizer, which we name '$t$'.</p> <p>Now, by definition $\operatorname{ord}_P(dx) = \operatorname{ord}_P(dx/dt) = 0$. I know that I made a mistake, for according to my reference this should be $=-3$. But where was it?</p>
0non-cybersec
Stackexchange
Our Country.
0non-cybersec
Reddit
Boundary values of harmonic $u$ are $ u(e^{it}) = 5- 4 \cos t $; find $u(1/2)$ and $v(1/2)$.. <p>My problem is the following:</p> <hr> <p>Let $u$ be a continuous real-valued function in the closure of the unit disk $\mathbb{D}$ that is harmonic in $\mathbb{D}$. Assume that the boundary values of $u$ are given by $$ u(e^{it}) = 5- 4 \cos t. $$ Furthermore, let $v$ be a harmonic conjugate of $u$ in $\mathbb{D}$ such that $v(0) = 1$. Find $u(1/2)$ and $v(1/2)$. </p> <hr> <p>It's easy to find $u(1/2)$ using the Poisson integral formula: $$u(z) = \frac{1}{2\pi} \int_0 ^{2\pi} \frac{1-|z|^2}{|e^{i\theta}-z|^2} u(e^{i\theta}) d\theta$$ yields $$u(1/2) = \frac{1}{2 \pi} \int_0^{2\pi} \frac{3/4}{5/4-\cos \theta} (5-4\cos \theta) d\theta = \frac{1}{2\pi} \int_0^{2\pi} 3 d\theta = 3.$$ </p> <p>I get stuck trying to find the value for $v$. I know that $$ 1 = v(0) = \frac{1}{2\pi} \int_0^{2\pi} v(e^{i\theta}) d\theta.$$ Also, $$ v(1/2) = \frac{1}{2\pi} \int_0^{2\pi} \frac{3/4}{5/4 - \cos \theta} v(e^{i\theta}) d\theta = \frac{1}{2\pi} \int_0^{2\pi} \frac{3v(e^{i\theta})}{u(e^{i\theta})} d\theta, $$ and in general, the harmonic conjugate is given by the line integral $$ v(z) = \mathcal{Im} \int_0^z f'(w) dw + C.$$ I don't know how to proceed with this information to find the $v$-value. </p>
0non-cybersec
Stackexchange
cron not running bash commands. <p>I am using the <code>whenever</code> <a href="https://github.com/javan/whenever" rel="nofollow noreferrer">gem</a> to generate cron commands. I can check these commands with <code>crontab -l</code>. The generated commands are</p> <pre><code>24 15 * * * /bin/bash -l -c 'cd /Users/Chris/Sites/covid_tracker &amp;&amp; RAILS_ENV=development bundle exec rake countries:temp --silent &gt;&gt; log/cron.log 2&gt;&amp;1' 24 15 * * * /bin/bash -l -c 'echo '\''should see this in the log'\'' &gt;&gt; log/cron.log 2&gt;&amp;1' </code></pre> <p>The first command (bundle exec rake) runs and I can see the ouptut in the cron.log. However, I see no output for the second command (echo) in the cron.log.</p> <p>I want the echo command (and other bash commands I want to use) to run in the same directory as the <code>bundle exec rake</code> command, and the permissions to be same as if I had issue the command from that directory. How do I do this?</p>
0non-cybersec
Stackexchange
convert datetime to date format dd/mm/yyyy. <p>I have a DateTime object <code>2/19/2011 12:00:00 AM</code>. I want to convert this object to a string <code>19/2/2011</code>. </p> <p>Please help me to convert DateTime to string format.</p>
0non-cybersec
Stackexchange
Cannot make a Call even after purchasing Skype Credit.
0non-cybersec
Reddit
A limerick for a strong and independent woman.
0non-cybersec
Reddit
Moving partitioned dual boot to separate drives. <p>I would like to dual boot Windows 10 with Ubuntu and have each on separate drives. Simple right? Well, the problem is that I already have Windows 10 and Ubuntu dual booted onto a single drive. Ideally I would like to move Ubuntu to the second drive rather than doing a clean install since I have a lot of important programs installed on there that would be a pain to do again. What is the safest way for me to do this?</p>
0non-cybersec
Stackexchange
What an unemployed engineer does between job applications and Reddit..
0non-cybersec
Reddit
Establishing a real time event trace consumer in Windows 10. <p>I am trying to use software like "Message Analyzer" and "TraceView" to receive event from "Microsoft-Windows-Security-Auditing" or "Microsoft-Windows-Eventlog" Providers, but I had no luck with receiving any events.</p> <p>What I have done:</p> <ul> <li>I tested these software in Windows 10 and 7</li> <li>software executed as administrator</li> <li>also as SYSTEM account</li> </ul> <p>Other observation and input:</p> <ul> <li><p>I could get other events for example kernel events or NDIS events but not the mentioned providers which I specifically configured to receive.</p></li> <li><p>I am interested in the approach which the mentioned software using (making a real-time trace session) and no other solution like querying the events ...</p></li> </ul> <p><strong>UPDATE 1</strong></p> <p>The provider GUIDs I used in the mentioned software</p> <pre><code>Microsoft-Windows-Security-Auditing: {54849625-5478-4994-A5BA-3E3B0328C30D} Microsoft-Windows-Eventlog: {fc65ddd8-d6ef-4962-83d5-6e5cfe9ce148} </code></pre> <p><strong>UPDATE 2</strong></p> <p>I also did more investigation with <a href="https://www.nirsoft.net/utils/event_log_channels_view.html" rel="nofollow noreferrer">EventLogChannelsView</a> from NirSoft and some other tools, I realized there are some Channels and Providers/Publishers. Providers notify any Consumers who want to know about new events on the channels. </p> <p>Interestingly the EventLogChannelsView didn't event list the name of some of the Providers which probably mean there are not active at all (like the one I mentioned). And also there are channels which don't have any Provider.</p> <p>I was curious how Event Viewer become aware of new events because it instantly show the message 'New events available'. Well I find out Event Viewer using EvtSubscribe API to receive events on channels instead of providers.</p> <p>I don't know why software like 'Message Analyzer' and 'TraceView' which both created by Microsoft are act very numb about the state of Providers.</p>
0non-cybersec
Stackexchange