text
stringlengths
3
1.74M
label
class label
2 classes
source
stringclasses
3 values
This battery-free cellphone runs on light and radio waves.
0non-cybersec
Reddit
How to navigate to a web page from within a flutter app? (OAuth). <p>I am trying to build a Flutter app that uses OAuth to connect to a user's account on another website. This requires navigating to the site's OAuth page where the user can enter their credentials, and then parsing the code that's sent back to the app when the user returns.</p> <p>So my questions are:</p> <p>1) How can I navigate to the OAuth web page?</p> <p>I have figured out that I can navigate to an internal route like this:</p> <pre><code>Navigator.of(context).pushNamed('/some_page'); </code></pre> <p>But what if I want to go to an external page like <code>https://coolsite.com/oauth/authorize</code>?</p> <p>How can I do this (a) by opening the URL in the local web browser, and (b) with an in-app web view?</p> <p>2) What URL should I redirect the user to after authenticating so that they go back to the app, and how do I parse the response?</p> <p>It seems there are 2 ways:</p> <p>(a) Let the user be redirected to a blank page with the authorization code in the URL and title of the page. If this method - how do I parse the page or URL?</p> <p>(b) Redirect the user to some kind of scheme, like <code>my-dart-app://coolsite-oauth?code=xyz". If this method - how do I register the scheme, and would</code>cool site-OAuth<code>map to a route that I specify when calling</code>new MaterialApp`, or somewhere else? And how would I parse the query param?</p>
0non-cybersec
Stackexchange
default.realm file is not display in the chrome browser. <p>I follow : <a href="https://facebook.github.io/react-native/docs/debugging.html" rel="nofollow noreferrer">This is from Facebook documentation.</a> </p> <p>Debugging with <code>Stetho</code> on Android.</p> <p><a href="https://i.stack.imgur.com/qaT29.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/qaT29.png" alt="Debugging with Stetho on Android"></a></p> <p>I run <code>react-native run-android</code> via terminal.</p> <p>Then, Inspect with <code>Chrome Developer Tools</code> and then <code>Developer Tools</code></p> <p><a href="https://i.stack.imgur.com/h1LBc.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/h1LBc.png" alt="enter image description here"></a></p> <p>After i inspect, <code>Resources/Web Sql/</code> display empty.</p> <p>My realm file is in : <code>path: /data/data/com.demo/files/default.realm</code>. </p> <p>What can be done to view my <code>default.realm</code> file in chrome browser? </p>
0non-cybersec
Stackexchange
Mouse Wheel Speed Problem. <p>When the mouse wheel scrolls up or down very fastly, I can fix this problem by using "Pointing devices" software which takes part in Ubuntu Software Center. But this problem sometimes can again occur after fixing. I mean this solution is not permanent solution. It can want me an intervention to fix again. Is there any <strong>permanent</strong> solution to solve mouse wheel speed problem?</p>
0non-cybersec
Stackexchange
First Stages of Tissue Production in Human Embryonic Stem Cells Discovered.
0non-cybersec
Reddit
Javascript - Get position of the element of the array. <p>For instance, a variable named arrayElements of array type contains [1,2,3,4].</p> <p>How do i get the position of which that has the value "3" in the array variable besides using loop?</p> <p>thanks.</p>
0non-cybersec
Stackexchange
How to run a SQL query on an Excel table?. <p>I'm trying to create a sub-table from another table of all the last name fields sorted A-Z which have a phone number field that isn't null. I could do this pretty easy with SQL, but I have no clue how to go about running a SQL query within Excel. I'm tempted to import the data into postgresql and just query it there, but that seems a little excessive. </p> <p>For what I'm trying to do, the SQL query <code>SELECT lastname, firstname, phonenumber WHERE phonenumber IS NOT NULL ORDER BY lastname</code> would do the trick. It seems too simple for it to be something that Excel can't do natively. How can I run a SQL query like this from within Excel?</p>
0non-cybersec
Stackexchange
NodePort not working with AWS EKS server endpoint. <p>eks server endpoint is <strong>xxxxxxxxxxx.xxx.eks.amazonaws.com</strong> and I've created a yml file with a deployment and service object. </p> <pre><code>[ec2-user@ip-]$ kubectl get svc NAME TYPE CLUSTER-IP EXTERNAL-IP PORT(S) AGE fakeserver NodePort 10.100.235.246 &lt;none&gt; 6311:30002/TCP 1h kubernetes ClusterIP 10.100.0.1 &lt;none&gt; 443/TCP 1d </code></pre> <p>When I browse <strong>xxxxxxxxxxx.xxx.eks.amazonaws.com:30002</strong> returns too long to respond. security groups have all traffic in inbound rules. </p>
0non-cybersec
Stackexchange
same label along MPLS label switched path, is it possible?. <p>I am a true beginner as far as MPLS is concerned and I was wondering if this would be possible; To be more specific assume a LSP (Label Switched Path) from </p> <blockquote> <p><code>Host A -&gt; Router 1-&gt; Router 2 -&gt; Router 3 -&gt; Host B</code></p> </blockquote> <p>Each of the above routers would be a LSR (label switched router) of course having its own LIB (label information base). Now assume that Host A would like to send a packet to B, and assume that the label distribution would take place using plain LDP (Label Distribution Protocol).</p> <p>If I am correct, after signaling has taken place between them, router 3 will decide upon a label, suppose <code>Label 1</code>, to accept in its particular interface with router 2 that if a packet has will be forwarded to host B. Similarly, router 2 will set up in its LIB that for this LSP every packet forwarded to router 3 has to leave interface x with a label <code>Label 1</code>, and has to let router 1 know that in order to forward a packet in this LSP it has to send it over to it with <code>Label 2</code>. Finally, router 1 sets up its LIB in the way that when a packet going to host B enters the MPLS cloud from the interface with Host A,it will be assigned label <code>Label</code> 2 by Router 1. </p> <p>Therfore, the label path would be </p> <blockquote> <p><code>---(No label) -&gt; Label 2 -&gt; Label 1 -&gt; ---(No label)</code></p> </blockquote> <p>So, my actual question is could Label 1 be the same as Label 2, thus making the most efficient use of labels (using as less as possible)? I am perfectly aware of the fact that you can use 2^20 labels (correct me if I am wrong), but assume that you have to be as efficient as possible for the sake of an exercise. I also know that you can use the same label in the same LIB for different input interfaces (i.e. it is not the label itself that matters but the pair Input Interface &amp; Label that will define how the packet will be forwarded).</p> <p>Any feedback would be very much appreciated. Thank you all for your time.</p>
0non-cybersec
Stackexchange
search string using grep or sed from two files. <p>I have two text files. Using sed or grep, how can i find matching string and then replace the string from text2.txt?</p> <p>It should search anything under name=" ". If found, replace it what is under path=" ". output.txt has desired output data.</p> <p>test1.txt</p> <pre><code>domain merge_requests abc frameworks merge_requests dvc frame-test merge_requests </code></pre> <p>test2.txt</p> <pre><code>&lt;project path="test/domain" name="device/common" /&gt; &lt;project path="test1/frameworks " name="test/frameworks" /&gt; &lt;name="test/frame-test" project path="test3/frame-test" /&gt; </code></pre> <p>output.txt</p> <pre><code>test/domain merge_requests test1/frameworks merge_requests test/frame-test merge_requests </code></pre>
0non-cybersec
Stackexchange
[US] 13 Sins (2014) - A cryptic phone call sets off a dangerous game of risks for Elliot, a down-on-his luck salesman. The game promises increasing rewards for completing 13 tasks, each more sinister than the last..
0non-cybersec
Reddit
You can rent sleeping cabins at this airport.
0non-cybersec
Reddit
Fourth of July makeup - messy star freckles!.
0non-cybersec
Reddit
how to refer to a parent method in python?. <p>Suppose I have two classes (one a parent and one a subclass). How do I refer to a method in the parent class if the method is also defined in the subclass different?</p> <p>Here is the code:</p> <pre><code>class A: def __init__(self, num): self.value=num def f(self, num): return self.value+2 class B(A): def f(self, num): return 7*self.f(num) </code></pre> <p>In the very last line, I want to refer to the parent class A with the "self.f(num)" command, not the method itself in B which would create an infinite recursion. Thank you 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
Problem based on probability. <p>Let E,F and G be three events such that E and F are mutually exclusive and $P(E\cup F)=1$, $P(G)=\frac{7}{12}$, $P(E \cap G)=\frac{1}{4}$. Then probability that $P(F \cap G)$ is:</p> <p><strong>My approach</strong></p> <p>To obtain the part of G which does not contain E, we can subtract $\frac{1}{4}$ from $\frac{7}{12}$ which will yield $\frac{1}{3}$. The book is showing this $\frac{1}{3}$ as answer but I am not able to understand why since there can be some part of G alone left in this value and we have to calculate the probability of simultaneously occurrence of F and G. Please throw light on how this will be an answer. </p>
0non-cybersec
Stackexchange
Spiderman has probably the most realistic first reaction to having super powers... Becoming a pro wrestler.
0non-cybersec
Reddit
Residues of a meromorphic differential on some particular points. <p>Let <span class="math-container">$X$</span> be a compact Riemann surface, <span class="math-container">$\omega$</span> a meromorphic differential on <span class="math-container">$X$</span> and <span class="math-container">$f$</span> a meromorphic function on <span class="math-container">$X$</span> with poles only over the points <span class="math-container">$P_1,\dots,P_d$</span>. The product <span class="math-container">$\;f\cdot\omega\;$</span> is still a meromorphic differential, so by the residue theorem we know that <span class="math-container">$$ \sum_{P\in X} res_P(\omega) = \sum_{P\in X} res_P(\;f\cdot\omega) = 0. $$</span></p> <h2>My question is:</h2> <p>what can we say about <span class="math-container">$ \sum_{i=1}^{d} res_{P_i}(\;f\cdot\omega)$</span> ?</p> <p>Is this sum also zero, or is it there any condition on <span class="math-container">$\omega$</span> that forces it to be zero?</p> <h2><span class="math-container">$$\circ\circ\circ\circ\circ\circ\circ\circ\circ\circ\circ\circ\circ\circ\circ\circ\circ\circ\circ\circ\circ\circ\circ\circ\circ\circ\circ\circ\circ\circ\circ\circ\circ\circ\circ$$</span></h2> <p><span class="math-container">$$ \heartsuit \quad \heartsuit \quad \heartsuit $$</span></p> <h2><span class="math-container">$$\circ\circ\circ\circ\circ\circ\circ\circ\circ\circ\circ\circ\circ\circ\circ\circ\circ\circ\circ\circ\circ\circ\circ\circ\circ\circ\circ\circ\circ\circ\circ\circ\circ\circ\circ$$</span></h2> <h2>Remark (to make it more interesting)</h2> <p>If we think of <span class="math-container">$X$</span> as an algebraic curve over <span class="math-container">$\mathbb{C}$</span> and we set <span class="math-container">$D=P_1+\dots+ P_d$</span>, we can consider the exact sequence <span class="math-container">$$ H^0(\mathcal{O}_X(D)) \to H^0(\mathcal{O}_X(D)\otimes \mathcal{O}_D)\to H^1(\mathcal{O}_X) $$</span> where the first map is the restriction map <span class="math-container">$\alpha$</span> and the second one is the coboundary <span class="math-container">$\delta$</span> coming from the Mittag-Leffler sequence of invertible sheaves <span class="math-container">$$ \mathcal{O}_X \to \mathcal{O}_X(D)\to \mathcal{O}_X(D)\otimes \mathcal{O}_D\;. $$</span></p> <p>In this language the above meromorphic <span class="math-container">$f$</span> is an element of <span class="math-container">$\mathcal{O}_X(D)$</span> and, if <span class="math-container">$v\in H^0(\mathcal{O}_X(D)\otimes \mathcal{O}_D)$</span> is such that <span class="math-container">$\alpha(f)=v$</span>, then we have <span class="math-container">$\delta v = 0$</span>.</p> <p>One can define a perfect pairing <span class="math-container">$$ \langle \bullet, \bullet \rangle : H^1(\mathcal{O}_X) \otimes H^0(K) \to \mathbb{C} $$</span> by setting <span class="math-container">$$ \langle \delta v, \omega \rangle := \sum_{P\in D} res_P (\omega\cdot v_P). $$</span></p> <p>My question arises from the fact that I would expect <span class="math-container">$\delta v = 0$</span> to imply that <span class="math-container">$\langle \delta v, \omega \rangle = 0$</span> for every differential <span class="math-container">$\omega$</span>.</p>
0non-cybersec
Stackexchange
Conditionally convergent - limit of series&#39;. <blockquote> <p>Let <span class="math-container">$\sum_{n=1}^\infty a_n$</span> be conditionally convergent.</p> <p>Let <span class="math-container">$k_n:= \max(a_n,0),l_n:=-\min(a_n,0)$</span> for <span class="math-container">$n\in \mathbb{N}$</span> and show that</p> <p><span class="math-container">$\sum_{n=1}^\infty k_n =\infty $</span> and <span class="math-container">$\sum_{n=1}^\infty l_n=\infty$</span>.</p> </blockquote> <p>I found this exercise on some german math forum and the corresponding post was closed for the lack of answers.</p> <p>Now I tried myself to it and I can visualize that the limits of those series' is <span class="math-container">$\infty$</span> because, since it's not absolutely convergent it is <span class="math-container">$&gt;0$</span> in case of <span class="math-container">$k_n$</span> and also in case of <span class="math-container">$l_n$</span> because <span class="math-container">$\min(a_n,0)&lt;0$</span> and the <span class="math-container">$(-)$</span> would make it positive again.</p> <p>But how can I prove that mathematically? Or is the argumentation that I gave enough?</p>
0non-cybersec
Stackexchange
calling data-onsuccess method for Google sign-in. <p>I am trying to integrate <a href="https://developers.google.com/identity/sign-in/web/sign-in" rel="noreferrer">Google Sign In</a> into my web app.</p> <p>My page has the Google button:</p> <pre><code>ModalDialogue.cshtml: &lt;a class="google g-signin2" data-onsuccess="onSignIn"&gt;Sign up with Google+&lt;/a&gt; </code></pre> <p>I'm trying to trigger that method in my js:</p> <pre><code>ModalDialogue.js: function onSignIn(googleUser) { var profile = googleUser.getBasicProfile(); console.log('ID: ' + profile.getId()); // Do not send to your backend! Use an ID token instead. console.log('Name: ' + profile.getName()); console.log('Image URL: ' + profile.getImageUrl()); console.log('Email: ' + profile.getEmail()); } </code></pre> <p>I know that</p> <p>a] the JavaScript is in the scope of the page, since my other functions - for opening and closing the dialogue - DO work.</p> <p>b] the button is communicating with Google, since clicking on it DOES open the 'sign-in with Google' dialogue - and then once done - changes the button to 'Sign In' afterward.</p> <p>How do I trigger the onSignIn method? Or at least how do I determine whether onsuccess is being triggered?</p>
0non-cybersec
Stackexchange
How to alt tab to &#39;about this mac&#39;?. <p>This window does not have a tab, so once you alt tab away you can't alt tab back. Is there actually a way that I do not know?</p>
0non-cybersec
Stackexchange
Yao&#39;s Garbled Circuit- Why does Alice need to rearrange the circuit?. <p>My understanding of Yao's Garbled Circuit (based mostly on <a href="http://www.math.ucla.edu/~tdokos/notes_files/garbledCircuits.pdf" rel="nofollow noreferrer">this summary</a>) is as follows: </p> <p>Alice creates a garbled circuit based on the function f to be computed. She then hard-codes her input into the circuit and rearranges the gates in such a way that Bob will not be able to figure out what the circuit does. She then assigns a pair of random keys, $K^0_i, K^1_i$ to each wire $w_i$. She sends Bob four (unlabeled, shuffled) values $X_s^a,X_s^b,X_s^c,X_s^d$ for each gate $g_s$. These $X_s$ values are chosen such that if Bob knows the keys $K_i^{v_i}$ and $K_j^{v_j}$ for the two input wires of $g_s$ with values $v_i$ and $v_j$ then he can calculate the key $K_k^{v_k}$. Specifically, he does this by taking the XOR of $K_i^{v_i}$ and $K_j^{v_j}$ and each $X_s$ value. One of these four results will be $K_k^{v_k}$, the others will be meaningless random bits. Alice gives Bob the values $AUTH(K_k^0),AUTH(K_k^1)$ for some one-way trapdoor hash function AUTH. Thus, Bob can figure out which of the four values is not random bits.</p> <p>I don't understand why Alice needed to hard-code her input and rearrange the gates. Could she not have just given Bob the circuit as is and the keys to her inputs? Except for his own input wires and wires determined from them, Bob does not know whether the key on a wire represents the wire being in the state 0 or the state 1. So even if he knows the function he is computing (what the circuit does) he should not be able to figure out what the values are of this function.</p> <p>I also realize from <a href="https://crypto.stackexchange.com/questions/19703/why-cant-garbled-circuits-be-reused">this question</a> that the keys as well as the X values would have to be generated again for a second computation. But I don't see why the structure of the circuit itself needs to change.</p>
0non-cybersec
Stackexchange
mac become no sound when after mac sleep. <p>Sometime, I close lid, and open again, The sound not available.</p> <p>When I restart my mac, The sound back.</p> <p>Is this a bug?</p>
0non-cybersec
Stackexchange
Fans celebrate lives of Carrie Fisher and mother Debbie Reynolds at joint memorial service.
0non-cybersec
Reddit
Little bit of graffiti-esk abstract. "Lilith" Spray paint, paint marker, house paint 24"x48".
0non-cybersec
Reddit
Subnet vs. Subsequence. <p>I'm looking for an example of a topological space $X$, a sequence $(x_n)_{n \in \mathbb{N}}$ in $X$ and a converging subnet $(x_i)_{i\in I}$ of $(x_n)$, but with the property that $x_n$ does not have any converging subsequence.</p> <p>I have an examples of $X$ and $(x_n)$ such that there is converging subnets $(x_i)$ and no converging subsequence of $(x_n)$, but I like to a explicit example of such a subnet $(x_i)$. (I still can't imagine how such subnets could look like...).</p> <p>Thank you very much in advance</p>
0non-cybersec
Stackexchange
Tried my new markers on a glass plate i found.
0non-cybersec
Reddit
Godot - how can I load 7,500,000 tiles without it taking so long?. <p>I have a world that has 7,500,000 tiles in it. The world is 1500x5000 and each tile is 16x16 pixels. If I want to load a game and I just loaded all the tiles that would take a long time. Is there a way just to load the tiles near the player? Like how terraria renders all its tiles.</p>
0non-cybersec
Stackexchange
About to fight the enderdragon on hardcore for the first time! Wish me luck!.
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
Girlfriend told me to save my cum for her while shes away. I feel like Im gonna explode. My lover has been away for about two months, so I was masturbating daily to ease the withdrawals. A few weeks ago, she told me to stop for the last two weeks that she is gone. I see her in 2 days. I have never been hornier in my life, I feel almost ill. Is this like unhealthy or am I good and should I continue saving for the grand reunion?
0non-cybersec
Reddit
How significant is the genetic difference between the Northern and the Southern White Rhino?. With the last male Northern White Rhino dying today, and only two females left, chances for survival of the northern 'half' of this species is pretty much 0. Apperently they have enough sperm to keep the two remaining ladies getting pregnant, but it is not that straight forward of course. To my surprise however, I read that there are thousands of their Southern counterparts left. I don't have a clue about the differences between the two though. Although the reasons they are still around might be really interesting, I am more interested in the biological difference between north and south. Could 'we' rejuvinate the northern species by using their southern brethren? How different are they?
0non-cybersec
Reddit
Kali Linux Hacking Lab for Beginners.
1cybersec
Reddit
"I'd like to eat you up like a tasty treat".
0non-cybersec
Reddit
I read my son the Bible. He's four, and started talking about God, and repeating what our friends kids told him. I asked if he wanted to know more, and cracked open my bible. I went through the creation story, stopping at each point to go over what humans have discovered; and he quickly got the point that it was just a fantasy story. When I got to the part about God threatening Adam and Eve with death, he told me he thought God was stupid. I think he recognised that God was a bully. At dinner, he told my father-in-law that we had read the Bible. "How did that go?" he was asked. "Not good". I've never heard my FIL laugh so hard.
0non-cybersec
Reddit
Fully furnished mouse hole..
0non-cybersec
Reddit
New environment (with nested environments, i.e. tcolorbox and tabularx). <p>This is my code:</p> <pre><code>% XeLaTeX \documentclass[a4paper,12pt]{article} \usepackage[utf8]{inputenc} \usepackage{tcolorbox} \usepackage{environ} \setlength\parindent{0pt} \usepackage{array} \usepackage{tabularx} \newenvironment{solution} { \begin{tcolorbox} \begin{tabularx}{\textwidth}{p{0.7cm}X} } { \end{tabularx} \end{tcolorbox} } \def\fakta#1{\stepcounter{fakta} F{\arabic{fakta}}: &amp; #1 \\} \def\contoh#1{\stepcounter{contoh} C{\arabic{fakta}}{\alph{contoh}}: &amp; #1 \\} \def\huraian#1{\stepcounter{huraian} H{\arabic{fakta}}{\alph{huraian}}: &amp; #1 \\} </code></pre> <p>and I'm trying to do something like</p> <pre><code>\begin{solution} \fakta{blablabla} \end{solution} </code></pre> <p>but it doesn't work and errors keep coming out. Why?</p> <p>UPDATE:</p> <pre><code>\newenvironment{solution} { \tabularx{\textwidth}{lX} } { \endtabularx } </code></pre> <p>^this works, but not this:</p> <pre><code>\newenvironment{solution} { \begin{tcolorbox} \tabularx{\textwidth}{lX} } { \endtabularx \end{tcolorbox} } </code></pre>
0non-cybersec
Stackexchange
Surface Laptop keyboard not working. <p>Is there any update on if there is a fix to get the keyboard to working. I have tried install the latest kernel?</p>
0non-cybersec
Stackexchange
Ahmedabad Call Girl Number For Escort Services.
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
Why does decltype not see the member declaration?. <p>Trying to compile this simple class:</p> <pre><code>#include &lt;vector&gt; struct M { // interface auto begin() -&gt; decltype(identities.begin()) { return identities.begin(); } // implementation private: std::vector&lt;int&gt; identities; }; </code></pre> <p>results in an error:</p> <pre><code>$ g++-510 where.cpp -std=c++11 where.cpp:57:35: error: ‘struct M’ has no member named ‘identities’ auto begin() -&gt;decltype(this-&gt;identities.begin()) ^ where.cpp:57:35: error: ‘struct M’ has no member named ‘identities’ $ clang++ where.cpp -std=c++11 -Wall -pedantic -Wextra where.cpp:57:35: error: no member named 'identities' in 'M' auto begin() -&gt;decltype(this-&gt;identities.begin()) ~~~~ ^ </code></pre> <p>Why doesn't <code>decltype</code> see the class member?</p>
0non-cybersec
Stackexchange
nodejs net sockets + websocket without socket.io. <p>I'm trying to create something like chat using nodejs. I'm a newbie in nodejs and i want to create it without socket.io (i want to learn how it works). Here is the code i'm using.</p> <pre><code>var http = require('http'); var net = require('net'); var server = http.createServer(function(req,res){ res.writeHead(200,{'content-type' : 'text/html'}); res.write('&lt;a href="./lol/"&gt;lol&lt;/a&gt;&lt;br&gt;'); res.end('hello world: '+req.url); var client = new net.Socket(); client.connect('7001', '127.0.0.1', function() { console.log('CONNECTED TO: '); // Write a message to the socket as soon as the client is connected, the server will receive it as message from the client client.write('I am Chuck Norris!'); }); // Add a 'data' event handler for the client socket // data is what the server sent to this socket client.on('data', function(data) { console.log('DATA: ' + data); // Close the client socket completely client.destroy(); }); // Add a 'close' event handler for the client socket client.on('close', function() { console.log('Connection closed'); }); //req. }); server.listen(7000); require('net').createServer(function (socket) { console.log("connected"); socket.on('data', function (data) { console.log(data.toString()); }); }).listen(7001); </code></pre> <p>And all works fine, (i think). When i open localhost:7000 i'm getting in node CMD messages about "CONNECTED TO:" and "connected" and "I am Chack Norris". After that i'm trying to write in the browser console:</p> <pre><code>var conn = new WebSocket('ws://localhost:7001/'); </code></pre> <p>Also no errors, but when i try this line:</p> <pre><code>conn.send('lol'); </code></pre> <p>I'm getting an error: "Uncaught DOMException: Failed to execute 'send' on 'WebSocket': Still in CONNECTING state.(…)"</p> <p>And after some time i get one more error: "WebSocket connection to 'ws://localhost:7001/' failed: WebSocket opening handshake timed out"</p> <p>maybe this code is wrong, but i have tried everything that i found through google. Can someone help me with this?</p>
0non-cybersec
Stackexchange
THIS THAT KIND OF BEAT THAT GO.
0non-cybersec
Reddit
I (26/f) recently called off my wedding, jumped into a new relationship with someone (40/m) and my family is furious.. I was engaged to a wonderful man, also 26-years-old, for a year. We were living together, things were great, but I always had a nagging feeling that something was missing. I don't know if it's because NONE of my other friends are even close to the marriage stage in their lives, but the overwhelming feeling that our relationship didn't have "spark" anymore was eating away at me. I broke up with him and moved out. Within a few weeks I was very casually dating an older man I met at work. We've taken things incredibly slowly due to my situation and see each other maybe once or twice per week. Most of my friends tell me, "You're crazy but we still love you." However, my parents are taking a different route. I've always been incredibly close with them and have never done anything they disapprove of. It is very clear they disapprove of this. My mother has resorted to immature tactics, telling me I'm an embarrassment to the family, looking up the new guy on the Internet and then making snarky comments, asking me how "grandpa" is doing, etc. My father hasn't said a word to me at all. Now, I am stubborn. I want to see where things go with this person because I feel a spark I haven't felt before. Yet every time I talk with my mother, I feel like I should just end this new relationship in order to keep the relationship with my parents. Am I crazy? Or are my parents crazy? tl;dr: Broke off engagement, got into new relationship with man 15 years older. Parents freaking out and trying to convince me not to do it. edit: Thank you for all of your responses. They remind me not to get too serious about the new "relationship" and treat it as a fling. I have been clear with the older man that if someone who seems interesting asks me on a date, that I am keeping my options open and will say yes. As for living life as a single person, I live alone, see friends every night, feel no dependance whatsoever on this new person, and am confident in my ability to be independent.
0non-cybersec
Reddit
Water athletes in Rio.
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
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
General Topology - Proving that the Slinky Line is Hausdorff but not first countable.. <p>Consider <span class="math-container">$\mathbb{R}$</span> with the usual topology. Prove that <span class="math-container">$\mathbb{R} / \mathbb{N}$</span> is Hausdorff but not first countable.</p> <p>I am not sure how to start this proof.</p> <p>Some relevant information that is helpful: </p> <p>The diagonal relation on the set <span class="math-container">$\mathbb{R}$</span> is a relation <span class="math-container">$\Delta_\mathbb{R}$</span> on <span class="math-container">$\mathbb{R}$</span> st: <span class="math-container">$$\Delta_\mathbb{R} = \{(x,x) : x \in \mathbb{R}\} \subseteq \mathbb{R} \times \mathbb{R}$$</span></p> <p>Let <span class="math-container">$\mathbb{R}$</span> be a space and <span class="math-container">$\mathbb{N} \subseteq \mathbb{R}$</span>. The set <span class="math-container">$R = (\mathbb{N} \times \mathbb{N}) \cup \Delta_\mathbb{R}$</span> is an equivalence relation on <span class="math-container">$\mathbb{R}$</span>. <span class="math-container">$X / R$</span> is denoted by <span class="math-container">$X / \mathbb{N}$</span> and <span class="math-container">$p_R$</span> is denoted by <span class="math-container">$p_\mathbb{N}$</span>. So, <span class="math-container">$X / \mathbb{N}$</span> has the quotient topology coinduced by <span class="math-container">$p_\mathbb{N}$</span>. Also, <span class="math-container">$R = (\mathbb{N} \times \mathbb{N}) \cup \{(x,x) : x \in \mathbb{R}\}$</span> and <span class="math-container">$p_\mathbb{N} : \mathbb{R} \rightarrow \mathbb{R} / \mathbb{N}$</span> is the natural projection. </p> <p>To prove that <span class="math-container">$\mathbb{R} / \mathbb{N}$</span> is Hausdorff we must show that for any two unique elements in <span class="math-container">$\mathbb{R} / \mathbb{N}$</span> there exist disjoint open sets in the topology such that each open set contains a unique element. </p> <p>To show that <span class="math-container">$\mathbb{R} / \mathbb{N}$</span> is not first countable we must show that there is not a countable neighborhood base at some element in the space. </p>
0non-cybersec
Stackexchange
I was handed a Windows 10 image to deploy that has all "Run as" options disabled while logged in as a user. How do I re-enable this? Google searches have yet to provide a fix.. [SOLVED] Nevermind everyone, I found it. It's a custom ADMX template configured on a local GPO. Hey everyone! I've got a corporate image of Windows 10 Enterprise x64 handed to me from a higher department to deploy across my OU via SCCM. The trouble is, while a user is logged in, Run as Administrator has been blocked and when I hold shift+right click, the run as a different user option does not show. If I right click a program from the start menu, click more, and then click on Run as a Different user, there is no dialogue box that comes up to enter credentials. In GPresult, the only configuration that is obviously related has the run as a different user from the start menu option enabled. Various registry settings I found on tenforums.com have not been successful in re-enabling this option. At present, the only way I or my help desk can run elevated programs and install applications is to completely log off the user account and then log back on using administrator credentials. The higher department is not answering my calls or emails, I've been instructed to find a fix for this by my manager. Am I missing something?
0non-cybersec
Reddit
British children in one of the tunnels of the London Underground, used as a bomb shelter on Christmas Eve, 1940.
0non-cybersec
Reddit
Does PDFTK respect PDF security flags?. <p>I have a PDF File which says that document security is enabled. It says that the only things allowed are: Printing, Content Copying or Extraction, and Content Extraction for Accessibility.</p> <p>I'm trying to use <a href="http://www.pdflabs.com/tools/pdftk-the-pdf-toolkit/" rel="noreferrer">PDF Toolkit (PDFTK)</a> to create a smaller version of this PDF file so that it takes up less hard drive space. When I try running PDFTK on the file, though, it says that the owner password is required. If I open up the file in a Adobe Reader, it doesn't ask for a password and opens up fine.</p> <p>I'm not familiar with PDF encryption, and so I was wondering what's going on here and why I can read the file in Reader but not PDFTK.</p> <p>It seems to me that there are three options:</p> <ol> <li>It's easy to read the data which is supposedly encrypted, but PDFTK respects the permissions flag and won't allow you to modify a file if you don't provide the owner's password.</li> <li>While it's possible to decrypt the data in a protected PDF (since it's not really secure), it's not a simple task and PDFTK didn't implement the logic needed to do this.</li> <li>The data is actually encrypted, and you need the owner password in order to read its contents.</li> </ol> <p>Which of the three is correct?</p> <p>It seems that #3 is unlikely since I am able to read the contents of the file in Acrobat without providing a password.</p>
0non-cybersec
Stackexchange
[vent][discussion] There is a leash law for a reason!. I just came back from taking my rescue dog for a quick walk. She’s pretty much scared of everything. For quick walks I like to go down a circle street that comes out at two different ends. I was walking with her and this old man is outside. In the far background I can see a black dog and I can see a tan dog coming up to the old man. I think ‘Should I go back?’ Fuck yes I should have, but didn’t. The black dog comes running up to us with the old man yelling that she likes to play. Before I could even get a word out that dog is next to mine sniffing her butt. She did seem like a nice dog but I get very nervous. My dog has her tail between her legs and I don’t know if she gonna go off. I tried to pull my dog away with the black dog following suit. That’s when I started to yell stop. This continues for a few a second till I start yelling at the old man (who btw is a few house ahead of us so its not like he could anything) to tell his dog to stop. I think I hear him say something like run ( Im not 100% sure tho) and that she just wants to play. Luckily she stopped and I turned around and walked away fast as hell. Like wtf? Dogs are great but you never know if there’s something about another person or dog that they just don’t like. Add to that my screaming it sure didn’t help. I nearly had a heart attack. Gonna report cause wtf. Only problem is the circular street has three different street name within it 😒😒
0non-cybersec
Reddit
My serious girlfriend [18] of 12 months doesn't think that I [18] am attractive, but says it doesn't matter.. My girlfriend always makes comments about how good other guys look, and when ever I ask if I am better looking, she says something like "looks don't matter to me, and I wouldn't be with them anyway cause they are assholes." This really bothers me because to me, she is the most beautiful woman on earth, and the feeling isn't mutual. We do have sex, so she must not think I'm repulsive. /r/relationship how should I handle this? Should I just not care about it? **TL;DR: Girlfriend doesn't find me very attractive, but says it doesn't matter. It bothers me.**
0non-cybersec
Reddit
Can I programmatically clear my app&#39;s notifications from the iOS 5 Notification Center?. <p>I would like to remove old notifications that my app has made from the iOS 5 Notification Center. Can I do this? If so, how?</p>
0non-cybersec
Stackexchange
Post Match Thread: Manchester United 3-1 Paris Saint-Germain [3-3 agg.] [UEFA Champions League]. # Manchester United advance to the QF! &#x200B; 2nd Leg Goals: * 0-1 [Lukaku](https://streamja.com/X25N) * 1-1 [Bernat](https://streamja.com/B5pN) * 1-2 [Lukaku](https://streamja.com/dZZ5) * 1-3 [Rashford](https://www.clippituser.tv/c/apqazm) &#x200B; **Venue: Parc des Princes** &#x200B; **LINE-UPS** Paris Saint-Germain Gianluigi Buffon, Thiago Silva, Presnel Kimpembe, Thilo Kehrer, Marco Verratti, Marquinhos, Juan Bernat, Dani Alves, Kylian Mbappé, Ángel Di María, Julian Draxler. Subs: Edinson Cavani, Eric Maxim Choupo-Moting, Alphonse Areola, Layvin Kurzawa, Leandro Paredes, Thomas Meunier, Colin Dagba. &#x200B; Manchester United David De Gea, Victor Lindelöf, Chris Smalling, Luke Shaw, Eric Bailly (Diogo Dalot), Fred, Scott McTominay, Andreas Pereira, Ashley Young, Marcus Rashford, Romelu Lukaku. Subs: Sergio Romero, Marcos Rojo, Angel Gomes, Tahith Chong, James Garner, Mason Greenwood. &#x200B; **MATCH EVENTS | via ESPN** **2' Goal! Paris Saint Germain 0, Manchester United 1. Romelu Lukaku (Manchester United) left footed shot from the left side of the six yard box to the bottom right corner.** **12' Goal! Paris Saint Germain 1, Manchester United 1. Juan Bernat (Paris Saint Germain) left footed shot from the left side of the six yard box to the bottom left corner. Assisted by Kylian Mbappé.** **30' Goal! Paris Saint Germain 1, Manchester United 2. Romelu Lukaku (Manchester United) left footed shot from very close range to the centre of the goal.** 34' Ángel Di María (Paris Saint Germain) is shown the yellow card for a bad foul. 36' Substitution, Manchester United. Diogo Dalot replaces Eric Bailly. 55' Ángel Di María (Paris Saint Germain) Goal ruled out for offside. 70' Substitution, Paris Saint Germain. Leandro Paredes replaces Thilo Kehrer. 70' Substitution, Paris Saint Germain. Thomas Meunier replaces Julian Draxler because of an injury. 75' Leandro Paredes (Paris Saint Germain) is shown the yellow card for a bad foul. 80' Substitution, Manchester United. Tahith Chong replaces Andreas Pereira. 87' Substitution, Manchester United. Mason Greenwood replaces Ashley Young. **90'+4' Goal! Paris Saint Germain 1, Manchester United 3. Marcus Rashford (Manchester United) converts the penalty with a right footed shot to the high centre of the goal.** 90'+5' Substitution, Paris Saint Germain. Edinson Cavani replaces Dani Alves. 90'+9' Luke Shaw (Manchester United) is shown the yellow card for a bad foul.
0non-cybersec
Reddit
Apache mapping URL to CGI script. <p>In Apache I would like a URL "/myscript" or "/myscript?param=myparam" to execute a CGI script located at:</p> <pre><code>/usr/local/scripts/custom.pl </code></pre> <p>I have tried:</p> <pre><code>Action custom-action /usr/local/scripts/custom.pl &lt;Location "/myscript"&gt; SetHandler custom-action &lt;/Location&gt; </code></pre> <p>but this isn't working.</p> <p>Any ideas how I can achieve the mapping of URL to script?</p>
0non-cybersec
Stackexchange
Measuring dispersion. <p>I am trying to define a proper metric for characterizing dispersion of a set of $k \in \mathbb N$ points distributed over different spatial grids. </p> <p>Formally, </p> <p>given different 2-dimensional grids shapes $(A,B,...)$ not necessarily square but connex (see figure for a basic illustration). Cells are labeled $ [1,2,...,N_X]$ , $N_X$ being the total number of cells in grid $(X)$ and $N_X \neq N_Y$ in general. Given also a set $\{x_1,x_2,...,x_k\}$ of $k \in \mathbb N$ elements that are distributed over each grids, i.e. they occupy some cell centers. It is however possible for a single cell to host up to $k$ elements. A specific distribution over grid $(X)$ is named an $M_X$ map. All maps host exactly k elements but can differ by (1) the grid shape (2) the configuration of elements. </p> <p>Is it possible to construct a dispersion metric in order to compare configurations between all different maps?</p> <p>I have thought at this definition:</p> <p>\begin{equation} \delta_{M_X} := \frac{\sum\limits_{i &lt; j\leq k} d(x_i,x_j)}{\max\limits_{all\ M_X}(\sum\limits_{p &lt; q\leq k}d(x_p,x_q))} \end{equation}</p> <p>where $d(x_i,x_j)$ represents the shortest path distance (e.g. Manhattan distance) between elements $x_i$ and $x_j$. If it is not clear from syntax the normalizing factor correspond to the maximal possible dispersion of k elements on the same grid shape that the actual (i,j indexed) configuration being measured. $\delta_{M_X}$ is thus constructed to take values between 0, when all elements are concentrated on a same cell, to 1 when elements are maximally spread. The first problem is that I don't know how to derive the normalization factor for arbitrarily large grids other than using brute force algorithm (that is testing all possibilities). The second problem is that I am not sure of the validity of this definition. Thirdly I am quite confident that something better exists.</p> <p>As a non-mathematician I don't even know in which field of mathematics I should try to find informations about this, any advice would be greatly welcome.</p> <p><img src="https://i.stack.imgur.com/CgqpF.png" alt="Illustration of maps"></p>
0non-cybersec
Stackexchange
Bring you dog for a boat ride, they said... It will be fun, they said....
0non-cybersec
Reddit
Do crawlers add page views on a forum?. <p>I have a MyBB forum and I get multiple page views on new threads within 3-5 minutes of posting. I manually submit new URLs through Google Webmaster Tools which should if anything account for 1 page view, but not multiple. I don't have active members at the moment. Research leads me to believe my 100+ members who never post or respond to Admin emails are actually registration bots. So are these page views on my new content from real people or from web crawlers? </p>
1cybersec
Stackexchange
Vincero Kairos Series Watch in Rose/White Gold Review - Should you buy? - No you shouldn't.. Hi r/malefashionadvice You might remember me from my latest review entries in the past couple of months. If you want to check them out, they are here: [Loake 1880 Chatsworth Brown Chelsea Boots](https://www.reddit.com/r/malefashionadvice/comments/9czclr/review_loake_1880_chatsworth_chelsea_boots_in/) [Tuscany Leather Parma Briefcase](https://www.reddit.com/r/malefashionadvice/comments/99c5nn/review_parma_2_compartment_full_grain_vegetable/) Today I am going to bring you something different, because honestly I have been pretty pissed off by those "influencers" around the web that recommend products, giving them high grades, calling them revolutionary etc. when they are not even close to what is advertised. Take a look at Vincero Collective. A brand that has over 7500 "real" reviews that are mostly 5 star. Do some research on google, you will find heaps of praise about them. Articles about how amazing they are, luxurious and incredible quality. All for 139$. That should raise some red flags already right? You can read the whole article [I wrote here on Misiu Academy](https://www.misiuacademy.com/vincero-watch-review-kairos-series/) (My own blog about fashion). This post however is completely new though as I can speak a bit more freely and casually. &#x200B; [For those wondering, this is a Suitsupply DB custom suit.](https://preview.redd.it/jqck9fg06vn11.jpg?width=2992&format=pjpg&auto=webp&s=a977c38483181f227c80132afe276677e39ed320) **BACKGROUND OF PURCHASE** Before I Started my fashion blog, I was quite a newbie when it came to watches and frankly, I still am. I started watching Real Men Real Style and these kinds of YouTubers because I wanted to grasp the basics. I then realised that it is all a commercial farce and that they try to make money, so let's skip that. Oh and those "seduction" videos...man I want to gouge my eyes out with a pitchfork. I saw Antonio advertising these Vincero Watches on every try and frankly, I thought they looked pretty and at the moment I believed I should support the channel and fill the last void in my wardrobe. So what did I do? I went online and bought the Vincero Kairos in Rose/White Gold with the RMRS code thinking I will save some $. **QUICK INFO ABOUT VINCERO** Three friends woke up one day and decided to fly to Asia and make their dreams come true. They failed for 4 years then made Vincero Collective. They slapped some Italian Marble on the back, wrote a few fancy words in Latin "*Veni Vidi Vici*" and told you to go chase your dream and live your legend. I challenge you to live your legend on 139$. Not only that, they said they have reinvented the dress watch and they have bold designs. Well gentlemen of MFA, the only bold thing here is their outlandish claim. Tales of luxury and quality for affordability, dragons and dwarves mining gold in the mines of Moria. You get the point. **SPECIFICATIONS** &#x200B; [Looks alright on paper honestly.](https://preview.redd.it/21fb1jn46vn11.jpg?width=1887&format=pjpg&auto=webp&s=5b01e8f15650b7389742ecc6576c0d5c09d36568) **ORDERING AND SHIPMENT - 5/10 (For European Orders)** The fun began here already. Navigation in the website is smooth, fast and easy. Very easy to spot where to put discount code, input your shipping details etc. They give free shipping even internationally which is good. Delivery time in EU is 3-5 business days. Great, I thought. I placed my order, received a nice email telling me "fire in the hole" and my order was being processed. Fast forward 2 weeks and I have no clue where the watch is. I dig around and find out that my package has stuck in the Swedish customs. I have to find out a way to pay the import fee, which Vincero advertised that the watch comes with no additional fees. Silly me, but hey. I pay the fee of about 25$ and then after 2 more weeks I finally received my watch. Not a good start if you are in Europe. Then why would you buy this in Europe? I guess to write a review about it! Not only that, I have heard that the Vincero Customer Service is as bad as the Greek Economy (I am from Greece, I had to throw it in there). **UNBOXING - 7/10** Nothing to see here gentlemen! Sturdy black box with the Vincero Logo and a smooth textured inside. You will find a Refer a friend and win 30$ for your next purchase leaflet and some information on how to use the watch and set the time and date. &#x200B; [Live your legacy gentlemen.](https://preview.redd.it/458plhf76vn11.jpg?width=4032&format=pjpg&auto=webp&s=31c9d97870f7943fc47d028d01b35a39210d8251) The watch is folded and fits snugly in the box. At first glance it looks pretty and I like the texture and pattern of the strap. Nothing mind-blowing here though. **DESIGN - 7/10** What I wanted was a dress watch that can fit every occasion and look minimalist and as "clean" as possible. That is why I liked this one. It has a big case (maybe too big) without hour marks and the only numbers are small ones and count every 5 seconds. There is your classic dial for hours, minutes and seconds and a date counter which is too close to the centre hand and also reveals movements too small for the case as a watch aficionado friend of mine said. &#x200B; [A closer look.](https://preview.redd.it/ohjsyox96vn11.jpg?width=3024&format=pjpg&auto=webp&s=df732f17457095ff0334ddc3dabdb27c1ef80007) Casing is 42mm wide and 10mm thick which fits nicely on my wrist but is a little too big sometimes for the cuffs of my shirts. The crown bears the Vincero Logo and is placed at 3 o'clock. The Kairos Series has a variety of different colours. Blue, Black, White, Rose/White Gold and you can also choose or change easily the leather strap. Antonio calls this "*Like having a new watch*". Bullshito. The leather strap is brown in this occasion and has some nice pattern on it. On the back you can find the Italian Marble and the Latin proverbs which is a nice touch but who is really gonna see the back of your watch? After re-writing this article here on Reddit I dropped the score down to 7/10 from 8/10. **QUALITY - 4/10** Grab some popcorn lads. Let's start with the good stuff. The watch tells you the time. Quite accurately too. I have not noticed any problems with water and there are no scratches on the casing or the glass which is advertised as anti-scratch. This is actually good for 6 months wear. The crown is easy to use, makes a distinctive sound when you pull it to change time and date. The movement is the Miyota Quartz and in general people say that it is quite reliable. Problem with this though is that it triggers my OCD every time I notice the problem I am about to describe. The subdial that points to the seconds is not accurate. Instead of pointing to 0, 1, 2 seconds etc. it goes like 0.1, 1.1, 2.1 etc. Now this is supposed to be a general issue with the Quartz movement but is eliminated in higher quality watches such as Grand Seiko for example. You will not notice this until you look at the watch up-close and it will not have any impact on your life, but if you have OCD like me you will be triggered. Up next, we find the Date issue. You want your watch to tell you the correct time and...."*drum roll*" the correct date! In this case, the watch comes from the US and I think it is set to the US time. Which means that the date changes at random times during the day. So at the time of writing the watch will show 23 of September instead. At least 5-7 good hours behind in total. Lastly, on today's show we have.....the leather strap. It has bent creating an S line, it is incredibly stiff and hard to bend and feels like it's going to break eventually every time you try to pull it through the loops. &#x200B; [Is it a snake? Is it a worm? No! It's the Vincero Leather Strap.](https://preview.redd.it/lgafrq8c6vn11.jpg?width=4032&format=pjpg&auto=webp&s=4bc20e5c45f9c4f1eb1f1ec9b0a9d40eb10a93c2) Not only that, but the strap has began to fray in many places and the leather is rubbing off around the holes. Some of them have been enlarged too. Woohoo! &#x200B; [This is like bad wine, it gets worse with time \(I promise I just came up with this one!\).](https://preview.redd.it/1g3xtugf6vn11.jpg?width=3024&format=pjpg&auto=webp&s=0b9db1d308d806d565a4f75f1a1fbc2ba103dd65) **FINAL VERDICT - A GENEROUS 5/10** Let's sum up with Pros and Cons: **Pros**: * Classy and elegant look * Casing is good though a bit on the thick side * Not expensive at 139$ with many discount codes flying around the web * Renowned Quartz movement * Easy to use crown * I guess it tells you the time? **Cons:** * Disappointing leather strap that bends and holes have enlarged * Late delivery due to customs (for outside the US) * Seconds dial not pointing correctly * Every couple of days I have to correct the date * Strap has began to show signs of wear **CONCLUDING REMARKS** This is not a terrible watch. It looks ok, it tells you the time and has a durable casing. It costs 139$ for the love of god. What pissed me off though is the whole influencer thing. Antonio says "*You will get compliments on this watch*". 6 months in I have not had a single compliment about it and I will never receive one I promise. It is by far the weakest part of my wardrobe. The lengths that people go to for a commission or a paid promotion are incredible and have become blatantly apparent to me now. Would I tell you to buy this? **Absolutely NO**. Save more for a better watch that will be an investment for the future and you can pass it to your children. Go with an established brand instead of a brand with bad customer service, terrible quality and anyone that is related to your run-of-the-mill YouTuber with mass followings. Rather watch the Gentleman's Gazette. Live your legacy with a watch that means "weather" in Greek, be bold with a bold-less simple watch and live your legacy backpacking with 139$. I see what they try to do there, but re-inventing the classic dress watch? Not in a million years. &#x200B; https://preview.redd.it/98z089wj6vn11.jpg?width=2000&format=pjpg&auto=webp&s=a7ba017726ad59e7cd156ec7658e3bc79a84237e For 139$ this watch is ok. But not something that should be your first priority. You can do much better and you should. I didn't expect them to tell me to live my legacy. I am making it. Thanks everyone. I hope you found this honest (one could say scathing) and humorous review about the Vincero Kairos in Rose/White Gold. Do you have one? I would love to engage with you down in the comments. The next review will be in about a month's time about the Carlos Santos Double Monk Straps in Wine Shadow Patina. I hope you are as excited to read about them as much as I want to write about them. Best, Kostas
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
Frobenius Series Solution of $x^{2}y&#39;&#39;+xy&#39;+5y=0$. <p>The equation $x^{2}y''+xy'+5y=0$ is equidimensional and has the general solution</p> <p>$$y(x) = c_{1}\cos(\sqrt{5}\log x) + c_{2}\sin(\sqrt{5}\log x)$$</p> <p>But this differential equation also has a regular singular point around $x = 0$ and hence we can use the Frobenius method to find $a_{n}$ such that </p> <p>$$y(x) = \sum_{n = 0}^{\infty} a_{n}x^{n + s}$$</p> <p>But wouldn't this imply that $\sin(\sqrt{5}\log x)$ has a series expansion around $x = 0$? Also when I use the indicial equation to find $s$, I get $s = \pm i\sqrt{5}$ which doesn't seem right?</p>
0non-cybersec
Stackexchange
mysql create user if not exists. <p>I have a query to check mysql users list for create new user.</p> <pre><code>IF (SELECT EXISTS(SELECT 1 FROM `mysql`.`user` WHERE `user` = '{{ title }}')) = 0 THEN CREATE USER '{{ title }}'@'localhost' IDENTIFIED BY '{{ password }}' END IF; </code></pre> <p>But i get this error:</p> <pre><code>ERROR 1064 (42000) at line 3: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'IF (SELECT EXISTS(SELECT 1 FROM `mysql`.`user` WHERE `user` = 'cms_localhost')) = 0 ' at line 1 </code></pre>
0non-cybersec
Stackexchange
How to take physical backup of MYSQL database. <p>I am trying to find out some tool which can take physical backup of <code>MYSQL</code> database. Like <code>mysqlbackup</code> but it is not open source. There is <code>mysqldump</code> but i want to take physical backup. Can someone please suggest me some tool to take backup of MYSQL db on <code>windows</code>. And i am using <code>Innodb</code> as my database engine.</p>
0non-cybersec
Stackexchange
Double wrap infant/toddler beds for nighttime convenience. This tip was given to us when stocking the room for our first, and it has saved us a few times. When putting sheets on the crib or toddler mattress, put the mattress protector down, then the fitted sheet, another protector, and another sheet. This way, when your little one has any form of accident out of either end, all you have to do is strip the first set and the bed is ready to go again. It is nice to skip the need to find a new sheet/protector and put them on when you are most likely already doing the same with pajamas for your little one. If it happens again in the same night, well you probably won't be getting much sleep anyway, so good luck.
0non-cybersec
Reddit
How to add custom application to context menu of all folders in Windows 7 to run with folder&#39;s path as parameter?. <p>I made an application that zips and puts any folder dropped onto it into backup folder on my disk. I'd like to be able to launch it with a parameter of a folder's full path via context menu.</p> <p>How do I add my application to all folders' context menu and use the folder's path as a parameter in the command line?</p>
0non-cybersec
Stackexchange
How to make jQueryUI tooltip apply only on focus. <p>How can I make the new JqueryUI tooltip visible only on <code>focus</code>: At the moment its on <code>focus</code> and on <code>hover</code>. I believe this is since JqueryUI 1.9</p>
0non-cybersec
Stackexchange
Ms Sql Server Table Design question. <p><strong>Background</strong></p> <p>I'm designing a table which will serve as a repository of payment information to be used for research purposes. This table will have around 4.5 million records initially and will grow at a rate of around 400k annually. The PaymentReference column would be the only unique column in the table on an on going basis meaning after the initial historical load of data which would contain nulls. </p> <p>Table example:</p> <pre><code> CREATE TABLE [dbo].[Bil_ReturnsRepository]( [ID] [bigint] IDENTITY(1,1) NOT NULL, [PolicyNumber] [nvarchar](32) NOT NULL, [PaymentReference] [nvarchar](32) NULL, [AccountingDate] [datetime] NOT NULL, [ReturnDate] [datetime] NOT NULL, [PaymentAmount] [decimal](19, 2) NOT NULL, [RegionCode] [nvarchar](5) NULL, [PolicyStateCode] [nvarchar] (3) NULL, [CompanyCode] [nvarchar](4) NULL, [LineOfBusiness] [nvarchar](4) NULL, [ReturnReasonCode] [nvarchar](3) NULL, [PaymentType] [nvarchar](20) NULL, [PaymentPlan] [nvarchar](20) NULL, [EntryUserId] [nvarchar](20) NULL, [PolicyTermId] [bigint] NULL, [PaymentDate] [datetime] NULL, [DateOfFirstReturn] [datetime] NULL, [BankId] [nvarchar](9) NULL, [EquityDateOfPolicy] [datetime] NULL, [OrginalStartDateOfPolicy] [datetime] NULL, [PaymentSource] [nvarchar](20) NULL, [DBTransactionTimeStamp] DATETIME NOT NULL DEFAULT(GETDATE())) </code></pre> <p><strong>Access to Data</strong></p> <p>Business users will enter search criteria on a front end UI screen. The available options to use as search criteria will be every column located on the table except ID and DBTransactionTimeStamp. Every column of the table will have an associated text box that the user will have the ability to enter the necessary value for that column to use for the search. The only field that is not optional for the search is the ReturnDate field. For example, a search could be performed with just ReturnDate and PolicyNumber. ReturnDate, PaymentReference. ReturnDate, PolicyNumber, PaymentReference, AccountingDate. ReturnDate only. etc.... </p> <p>A stored procedure will be created to actually perform the read of the table and will use the parameters passed by the front end UI when querying the table. </p> <p><strong>Question</strong> </p> <p>Since this is a new design I'm not currently experiencing any performance issues but I would like to be proactive and prevent any of those possible issues from occurring. I would imagine that with so many records on the table and the ability to search on all fields there would be table space scans that would occur. That would result in a slow response time for the output to be returned to the front end UI. So with that being said would it be beneficial to add any indexes and or keys to this table ? If so what Keys ? What indexes ?</p>
0non-cybersec
Stackexchange
Camel ActiveMQ Performance Tuning. <h3>Situation</h3> <p>At present, we use some custom code on top of ActiveMQ libraries for JMS messaging. I have been looking at switching to Camel, for ease of use, ease of maintenance, and reliability.</p> <h3>Problem</h3> <p>With my present configuration, Camel's ActiveMQ implementation is substantially slower than our old implementation, both in terms of delay per message sent and received, and time taken to send and receive a large flood of messages. I've tried tweaking some configuration (e.g. maximum connections), to no avail.</p> <h3>Test Approach</h3> <p>I have two applications, one using our old implementation, one using a Camel implementation. Each application sends JMS messages to a topic on local ActiveMQ server, and also listens for messages on that topic. This is used to test two Scenarios: - Sending 100,000 messages to the topic in a loop, and seen how long it takes from start of sending to end of handling all of them. - Sending a message every 100 ms and measuring the delay (in ns) from sending to handling each message.</p> <h3>Question</h3> <p>Can I improve upon the implementation below, in terms of time sent to time processed for both floods of messages, and individual messages? Ideally, improvements would involve tweaking some config that I have missed, or suggesting a better way to do it, and not be too hacky. Explanations of improvements would be appreciated.</p> <p><strong>Edit:</strong> Now that I am sending messages asyncronously, I appear to have a concurrency issue. <code>receivedCount</code> does not reach 100,000. Looking at the ActiveMQ web interface, 100,000 messages are enqueued, and 100,000 dequeued, so it's probably a problem on the message processing side. I've altered <code>receivedCount</code> to be an <code>AtomicInteger</code> and added some logging to aid debugging. Could this be a problem with Camel itself (or the ActiveMQ components), or is there something wrong with the message processing code? As far as I can tell, only ~99,876 messages are making it through to <code>floodProcessor.process</code>.</p> <h3>Test Implementation</h3> <p><strong>Edit:</strong> Updated with async sending and logging for concurrency issue.</p> <pre><code>import java.util.Arrays; import java.util.List; import java.util.concurrent.Executors; import java.util.concurrent.TimeUnit; import java.util.concurrent.atomic.AtomicInteger; import org.apache.activemq.ActiveMQConnectionFactory; import org.apache.activemq.camel.component.ActiveMQComponent; import org.apache.activemq.pool.PooledConnectionFactory; import org.apache.camel.CamelContext; import org.apache.camel.Exchange; import org.apache.camel.Processor; import org.apache.camel.ProducerTemplate; import org.apache.camel.builder.RouteBuilder; import org.apache.camel.component.jms.JmsConfiguration; import org.apache.camel.impl.DefaultCamelContext; import org.apache.log4j.Logger; public class CamelJmsTest{ private static final Logger logger = Logger.getLogger(CamelJmsTest.class); private static final boolean flood = true; private static final int NUM_MESSAGES = 100000; private final CamelContext context; private final ProducerTemplate producerTemplate; private long timeSent = 0; private final AtomicInteger sendCount = new AtomicInteger(0); private final AtomicInteger receivedCount = new AtomicInteger(0); public CamelJmsTest() throws Exception { context = new DefaultCamelContext(); ActiveMQConnectionFactory connectionFactory = new ActiveMQConnectionFactory("tcp://localhost:61616"); PooledConnectionFactory pooledConnectionFactory = new PooledConnectionFactory(connectionFactory); JmsConfiguration jmsConfiguration = new JmsConfiguration(pooledConnectionFactory); logger.info(jmsConfiguration.isTransacted()); ActiveMQComponent activeMQComponent = ActiveMQComponent.activeMQComponent(); activeMQComponent.setConfiguration(jmsConfiguration); context.addComponent("activemq", activeMQComponent); RouteBuilder builder = new RouteBuilder() { @Override public void configure() { Processor floodProcessor = new Processor() { @Override public void process(Exchange exchange) throws Exception { int newCount = receivedCount.incrementAndGet(); //TODO: Why doesn't newCount hit 100,000? Remove this logging once fixed logger.info(newCount + ":" + exchange.getIn().getBody()); if(newCount == NUM_MESSAGES){ logger.info("all messages received at " + System.currentTimeMillis()); } } }; Processor spamProcessor = new Processor() { @Override public void process(Exchange exchange) throws Exception { long delay = System.nanoTime() - timeSent; logger.info("Message received: " + exchange.getIn().getBody(List.class) + " delay: " + delay); } }; from("activemq:topic:test?exchangePattern=InOnly")//.threads(8) // Having 8 threads processing appears to make things marginally worse .choice() .when(body().isInstanceOf(List.class)).process(flood ? floodProcessor : spamProcessor) .otherwise().process(new Processor() { @Override public void process(Exchange exchange) throws Exception { logger.info("Unknown message type received: " + exchange.getIn().getBody()); } }); } }; context.addRoutes(builder); producerTemplate = context.createProducerTemplate(); // For some reason, producerTemplate.asyncSendBody requires an Endpoint to be passed in, so the below is redundant: // producerTemplate.setDefaultEndpointUri("activemq:topic:test?exchangePattern=InOnly"); } public void send(){ int newCount = sendCount.incrementAndGet(); producerTemplate.asyncSendBody("activemq:topic:test?exchangePattern=InOnly", Arrays.asList(newCount)); } public void spam(){ Executors.newSingleThreadScheduledExecutor().scheduleWithFixedDelay(new Runnable() { @Override public void run() { timeSent = System.nanoTime(); send(); } }, 1000, 100, TimeUnit.MILLISECONDS); } public void flood(){ logger.info("starting flood at " + System.currentTimeMillis()); for (int i = 0; i &lt; NUM_MESSAGES; i++) { send(); } logger.info("flooded at " + System.currentTimeMillis()); } public static void main(String... args) throws Exception { CamelJmsTest camelJmsTest = new CamelJmsTest(); camelJmsTest.context.start(); if(flood){ camelJmsTest.flood(); }else{ camelJmsTest.spam(); } } } </code></pre>
0non-cybersec
Stackexchange
My wife [37 F] had a revenge affair and i [38 M] can't get over it.. My wife and i have been married for ten years and have two kids, a boy (8) and a girl (6). We went through a rough patch In our marriage where we were barely communicating or having sex and i had a three month affair with a co-worker which she found out about by reading our texts. she kicked me out of the house for a few weeks but later let me back in and we've been in couples therapy. Our therapist greatly stressed us being honest in order to save our marriage and during a session, she confessed that while we were separated, she hooked up with someone. We had a loud argument about it where she called me a hypocrite and said it wasn't fair of me to expect her to forgive what i wouldn't forgive. When i was calmer, i asked who it was and there the problem got worse. Apparently, the person she hooked up with was her longtime friend (lets call him Adam). She and Adam (37 M) have been friends for 17 years now (they met in college and are very close). She confided in me many years ago that Adam once confessed while in college that he liked her but she said that they've always been nothing but best friends. Another round of arguing came up. This man was at our wedding and is frequently around our family. Hell, our kids call him 'Uncle' and he and my wife are inseparable. I guess he was the one 'comforting' her when i was out of the house. I absolutely cannot get over the fact that my wife slept with another man, much less *him* of all people. The times we've talked about it, we yell the crazies things. The last time was the most brutal. My wife actually said that it was the 'best sex i've ever had' and that the only reasons she isn't in bed with him now is because of our children. I absolutely do not know what to do and fear that my marriage is over. **tl;dr**: My wife slept with her bestfriend while i was in the doghouse for an affair and i can't get over it. Edit : I've read your numerous replies (didn't expect this many) and I've decided to accept my own fault and give therapy one last go. I'm now looking into another job and will try to repair what has been broken. I won't be responding to any more comments but I thank you all for you time and effort in responding.
0non-cybersec
Reddit
Page Number of Middle references in Multiple References not listed. <p>When I have multiple references:</p> <pre><code>blah blah \cite{ref1, ref2, ref3} </code></pre> <p>then ref2 will not be listed on this page in my bibliography. Instead it just has</p> <blockquote> <p>-> pages</p> </blockquote> <p>with no page listed if I did not cite that reference anywhere else. In the PDF text it will show up as</p> <blockquote> <p>[1-3]</p> </blockquote>
0non-cybersec
Stackexchange
Cooking butter chicken with rice and a premade sauce?. I found a cheap premade sauce for butter chicken (the Indian dish) at the grocery store and decided I wanted to make it in my slowcooker. It also helps that decision that the stove is not currently working. However, I don't want the butter chicken sauce to get runny or diluted because of the amount of water that would go into cooking the rice. Does anyone have any tips for cooking rice, chicken, and butter chicken sauce all together in a slowcooker? I've looked for recipes online but the only slowcooker recipes I've found involve combining your own ingredients whereas I have the premade sauce.
0non-cybersec
Reddit
a coruña vigo.
0non-cybersec
Reddit
I cried when I saw this webpage..
0non-cybersec
Reddit
Weddings really do bring out the worst in Family...
0non-cybersec
Reddit
Sublime Text 3 insert tab character manually. <p>When using Sublime Text 3, most of my files are set to be indented using spaces. However I sometimes wish to insert a literal tab. When I was using vim I'd use &lt;Ctrl&gt;+v &lt;Tab&gt; but that doesn't work with Sublime Text 3.</p> <p>I've been searching and searching and cannot find anything. Please help!</p>
0non-cybersec
Stackexchange
Federal Court Orders DOJ To Release Fast And Furious Information - Yahoo News.
0non-cybersec
Reddit
SQL INSERT INTO SELECT and Return the SELECT data to Create Row View Counts. <p>So I'm creating a system that will be pulling 50-150 records at a time from a table and display them to the user, and I'm trying to keep a view count for each record.</p> <p>I figured the most efficient way would be to create a MEMORY table that I use an INSERT INTO to pull the IDs of the rows into and then have a cron function that runs regularly to aggregate the view ID counts and clears out the memory table, updating the original one with the latest view counts. This avoids constantly updating the table that'll likely be getting accessed the most, so I'm not locking 150 rows at a time with each query(or the whole table if I'm using MyISAM).</p> <p>Basically, the method explained <a href="http://www.the-art-of-web.com/sql/counting-article-views/">here</a>.</p> <p>However, I would of course like to do this at the same time as I pull the records information for viewing, and I'd like to avoid running a second, separate query just to get the same set of data for its counts.</p> <p>Is there any way to SELECT a dataset, return that dataset, and simultaneously insert a single column from that dataset into another table?</p> <p>It looks like PostgreSQL might have something similar to what I want with the RETURNING keyword, but I'm using MySQL.</p>
0non-cybersec
Stackexchange
Slow-Cooked Korean Beef Tacos.
0non-cybersec
Reddit
Simple vector word problem: a $100$-dimensional vector $x$, where $x_i$ denotes the number of $i-1$-year-olds in a population. <p>I'm given this word problem as part of an ungraded homework assignment for my numerical analysis class. I was hoping someone could review my answers and also help me with (c):</p> <blockquote> <p>1.13 Average age in a population: Suppose the <span class="math-container">$100$</span>-vector <span class="math-container">$x$</span> represents the distribution of ages in some population of people, with <span class="math-container">$x_i$</span> being the number of <span class="math-container">$i - 1$</span> year olds, for <span class="math-container">$i = 1, ..., 100$</span> (You can assume that <span class="math-container">$x \neq 0$</span>, and that there is no one in the population over age <span class="math-container">$99$</span>.) Find expressions, using vector notation, for the following quantities.</p> <p>(a) The total number of people in the population.</p> <p>(b) The total number of people in the population age <span class="math-container">$65$</span> and over.</p> <p>(c) The average age of the population. (You can use ordinary division of numbers in your expression)</p> </blockquote> <p><strong>Part (a)</strong></p> <p>This is <span class="math-container">$x_1 + x_2 + ... + x_{100} = 1^Tx$</span>, i.e. the <span class="math-container">$1$</span>-vector transposed and multiplied with <span class="math-container">$x$</span>. I'm wondering if there's a simpler way to express this.</p> <p><strong>Part (b)</strong></p> <p>For this one, I basically did the same as above except with a subscript: <span class="math-container">$1^Tx_{66:100}$</span>.</p> <p><strong>Part (c)</strong></p> <p>Here's the one I'm stuck on.</p> <p>The average age of the population is the total age of the population divided by the number of people in the population. We got the answer for the denominator in part (a), so it's time to find the numerator.</p> <p>The total age of the population is <span class="math-container">$x_1$</span> times the number of <span class="math-container">$0$</span>-year olds plus <span class="math-container">$x_2$</span> times the number of <span class="math-container">$1$</span>-year-olds plus ...:</p> <p><span class="math-container">$$x_1(0) + x_2(1) + x_3(2) + ... + x_{100}(99)$$</span></p> <p>Which simplifies to:</p> <p><span class="math-container">$$x_2 + 2x_3 + ... + 99x_{100}$$</span></p> <p>Now, I'm wondering if I'm missing something obvious that's simpler than this:</p> <p><span class="math-container">$$\frac{\sum_{i=1}^{100}(i-1)(x_i)}{1^Tx}$$</span></p>
0non-cybersec
Stackexchange
Sweet potato noodles (yay!) and pig intestine (hmm?) noodle soup..
0non-cybersec
Reddit
Proving $ \left\{\frac{y^2+z^2+2}{yz}\ \mid\ y,z\in\mathbb{N}\right\}\cap\mathbb{N}=\{4\} $. <p>I conjecture that: $$ \left\{\frac{y^2+z^2+2}{yz}\ \mid\ y,z\in\mathbb{N}\right\}\cap\mathbb{N}=\{4\} $$ Is this true? If yes, how to prove it?</p>
0non-cybersec
Stackexchange
Home after a walk in the rain.
0non-cybersec
Reddit
Official: Inter sign Miranda from Atletico Madrd.
0non-cybersec
Reddit
Enslaved: Odyssey to the West has been released on Steam.
0non-cybersec
Reddit
Bane's original scar design for TDKR.
0non-cybersec
Reddit
Handling SSL_shutdown correctly. <p>The OpenSSL documentation on <code>SSL_shutdown</code> states that:</p> <blockquote> <p>It is therefore recommended, to check the return value of <code>SSL_shutdown()</code> and call <code>SSL_shutdown()</code> again, if the bidirectional shutdown is not yet complete (return value of the first call is 0).</p> </blockquote> <p><a href="https://www.openssl.org/docs/ssl/SSL_shutdown.html" rel="nofollow noreferrer">https://www.openssl.org/docs/ssl/SSL_shutdown.html</a></p> <p>I have a code snippet below where I check for return value 0 from <code>SSL_shutdown</code> and call it again, which I have been using. My question is, is it okay to disregard the return value of <code>SSL_shutdown</code> on the second call or we should keep retrying <code>SSL_shutdown</code> until a 1 (bidirectional shutdown complete) is returned.</p> <pre><code>int r = SSL_shutdown(ssl); //error handling here if r &lt; 0 if(!r) { shutdown(fd,1); SSL_shutdown(ssl); //how should I handle return value and error handling here is it required?? } SSL_free(ssl); SSLMap.erase(fd); shutdown(fd,2); close(fd); </code></pre>
0non-cybersec
Stackexchange
SQL statement to remove part of a string. <blockquote> <p><strong>Possible Duplicate:</strong><br> <a href="https://stackoverflow.com/questions/3944000/str-replace-in-sql-update">str_replace in SQL UPDATE?</a><br> <a href="https://stackoverflow.com/questions/7481361/how-to-remove-part-of-string-in-mysql">How to remove part of string in mysql?</a><br> <a href="https://stackoverflow.com/questions/10153852/sql-find-replace-part-of-a-string">SQL Find &amp; Replace part of a string</a> </p> </blockquote> <p>I have a database table with a list of website urls e.g. <code>http://website.com/</code> and I want to remove all the <code>http://</code> and <code>https://</code> from them. Is their a simple SQL statement I could run on a column to remove it?</p> <p>I've had a search around, but I can't find what I need. I'm presuming I need to use both REPLACE and UPDATE but I'm struggling.</p> <p>So far I have:</p> <pre><code>UPDATE list SET website WHERE website LIKE 'http://%'; </code></pre> <p>Is that correct? I'm using MySQL and the table is list, and column is website and I want to remove the <code>http://</code> so a url like: <code>http://website.com/</code> becomes just: <code>website.com</code></p> <p><strong>EDIT: Is it also possible to remove a trailing slash as well?</strong></p>
0non-cybersec
Stackexchange
Bastion Has Better Healing Than Roadhog. Bastion: * Heals for 300 * In 4 seconds * Full recharge in 8 seconds (1 second before it starts recharging after a heal and 7 seconds recharging process) * Fully mobile during the heal process Roadhog: * Heals for 300 * In 2 seconds * Full recharge in 8 seconds * Fully stationary during the heal process &nbsp; Now, if this didn't convince you, give bastion heal to roadhog and vice versa, who got nerfed? that's right. &nbsp; Bastion is not forced to go all in on his heals as roadhog is, bastion can sip as much health as he needs, whenever he needs. On demand, as much as he needs, no more. Again, let that sink in. Bastion, a defense hero(which is actually a dps hero recommended to be played on the defense side by blizz, that's all that defense means, all defense heroes are DPS role essentially), has: * better healing than a tank * is more durable than a tank due to his passive * has 53% increased effective healing applied to his health due to his passive * has 207% increased effective healing applied to his armor if faced with low damage(<15 dmg) per pellet heroes(read tracer/reaper/dva/zarya/symmetra/sombra/hog/winston/ana/mercy) * but with lower health pool(which is not that lower with his passive, being at 461 ehp) &nbsp; *sigh* Just... just let that sink in.
0non-cybersec
Reddit
What does it mean if a flatpack app is appears in /var/lib/flatpak/app but not in `flatpak list --app`. <p>I recently installed and uninstalled org.gnome.FeedReader but due to some confusion involving GNOME Software I think I might have ended simultaneously installing the flatpak and non-flatpak versions of the package. Or something else, I don't really know what I actually did here.</p> <p>Anyway, I'm now trying to clean up my mess by uninstalling FeedReader. <code>flatpak list --app</code> tells me that the flatpak version of FeedReader has been uninstalled but <code>locate feedreader</code> tells me that there are stil a bunch of FeedReader files living under <code>/var/lib/flatpak/app/org.gnome.FeedReader/</code>. What gives?</p> <ul> <li>Is this a flatpak bug or normal behavior (aka my fault)?</li> <li>Can I <code>rm -rf</code> that directory inside /var/lib/flatpak or is there a better way to clean this up?</li> </ul> <p>I'm currently running Fedora Workstation 30 and flatpak 1.4.2</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
How to specify image size in HTML Doxygen?. <p>I am trying to manually specify the image size in the HTML generated by Doxygen. However, as I read in the <a href="http://www.doxygen.nl/manual/commands.html#cmdimage" rel="nofollow noreferrer">documentation</a>, this can only happen if using LaTeX output. Anybody here knows any workaround?</p> <p>As an example, I would like to do something like this:</p> <pre><code>\image html example.png "Caption" width=10px </code></pre> <p>Thank you!</p>
0non-cybersec
Stackexchange
This toothbrush was packaged with no head..
0non-cybersec
Reddit
deleted ubuntu 14.04 partition error: unknown filesystem. <p>By mistake I have deleted the Ubuntu 14.04 OS which is on dual boot with Windows 7.</p> <p>After rebooting, following error message is displayed.</p> <pre><code>error: unknown filesystem Entering rescue mode .. grub rescue &gt; </code></pre> <p>I tried to fix the issue by performing the following steps:</p> <pre><code>ls set root=(hd0,msdos6) set path=(hd0,msdos6)/boot/grub instmod normal </code></pre> <p>but nothing works.</p> <p>Please let me know the steps for resolving this issue.</p>
0non-cybersec
Stackexchange
[REQUEST] What's a funny movie that I can watch with my dad.
0non-cybersec
Reddit
Pegasus drive not connecting with Mac. <p>My Mac is not recognizing my Pegasus 2 R4 harddrive.<br> I have tried going into the terminal and typing <code>promiseutil</code> but it comes back with "command not found".</p>
0non-cybersec
Stackexchange
Can a &quot;const T*&quot; match a pointer to free function?. <p>In a <a href="https://stackoverflow.com/questions/10145693/what-is-meaning-of-a-pointer-to-a-constant-function">related question</a> it's said that there's no such thing as a pointer to non-member const function. In addition, C++11 8.3.5/6 says</p> <blockquote> <p>The effect of a cv-qualifier-seq in a function declarator is not the same as adding cv-qualification on top of the function type. In the latter case, the cv-qualifiers are ignored. [ Note: a function type that has a cv-qualifier-seq is not a cv-qualified type; <strong>there are no cv-qualified function types</strong>. —end note ]</p> </blockquote> <p>If I understand it correctly, this means that there's no such thing as a non-member const function. (Although such functions are not const, they cannot be modified as per 3.10/6). In particular, pointers to const function are meaningless.</p> <p>However, it seems that some compilers do create pointers to const function in type deduction contexts. For instance, consider the code:</p> <pre><code>#include &lt;iostream&gt; void f() {} template &lt;typename T&gt; void g( T*) { std::cout &lt;&lt; "non const" &lt;&lt; std::endl; } template &lt;typename T&gt; void g(const T*) { std::cout &lt;&lt; "const " &lt;&lt; std::endl; } int main() { g(f); } </code></pre> <p>When compiled with GCC and Intel the code outputs "non const" as I would expect from the quote above. However, the output is "const" when compiled with Clang and Visual Studio.</p> <p>Is my interpretation correct?</p> <p><strong>Update:</strong></p> <p>Following the comments, I'm trying to clarify that I'm <strong>not</strong> talking about const member functions. I'm interested in non-member functions (but the same arguments probably apply to non-static member functions as well). I've also changed the question title to make it more precise.</p> <p>Consistent with the resolution of <code>g(f)</code> mentioned above, the line below is ilegal for GCC and Intel but not for Clang and Visual Studio</p> <pre><code>const auto* ptr = &amp;f; </code></pre> <p><strong>Update 2:</strong></p> <p>I agree with Andy Prowl's interpretation and have selected his answer. However, after that, I was made aware that this question is a CWG <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/cwg_active.html#1584" rel="nofollow noreferrer">open issue</a>.</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
OMG Ichiro Suzuki caught the ball in my lap and touched me!.
0non-cybersec
Reddit
I was asked to photograph local restaurants for their website, and for a local radio station/paper. I have never taken these type of photos though. May I ask here for tips?. I have a decent camera (Nikon D3100) and have never been officially hired for a job like this. I will be taking photos of restaurants/cafes interiors, and food. I haven't however done this before. I have strayed away from these photos, because the cliche "I'm taking photos of my food lawlz" thing. I realize though it is photography despite instagram cliches and a job like this is a great foot in the door. I am just looking for tips, and hope this is the right place. I am browsing google for tips, but am trying every resource at my fingertips. Thank you.
0non-cybersec
Reddit