text
stringlengths
3
1.74M
label
class label
2 classes
source
stringclasses
3 values
Galio, Orianna, Kennen deleted enemy team and they surrendered.
0non-cybersec
Reddit
What does &quot;the choice of open in the right&quot; in Durrett&#39;s book mean?. <p>I am reading Rick Durrett's Probability: Theory and Examples 5th Ed.<br> In <a href="https://services.math.duke.edu/~rtd/PTE/PTE5_011119.pdf" rel="nofollow noreferrer">page 3 of the book</a>, Durrett says that the choice of “closed on the right” in <span class="math-container">$(a, b]$</span> is dictated by the fact that if <span class="math-container">$b_n \downarrow b$</span> then we have <span class="math-container">$$\bigcap_n (a, b_n] = (a, b].$$</span> And he says that the next definition will explain the choice of “open on the left.” The next definition is a definition of semialgebra (when I interpreted literary "next").</p> <p>I have two questions;<br> 1) what he did want to say "the choice of closed on the right"? Did he just want to say that you can write <span class="math-container">$(a, b]$</span> as an intersection of a half-open intervals?<br> 2) Why "the next definition" gives the definition(meaning) of the choice open on the left?</p> <p>A picture of the book in question: <a href="https://i.stack.imgur.com/HDo2j.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/HDo2j.png" alt="enter image description here"></a></p>
0non-cybersec
Stackexchange
Seeing only local variables debugging C++ in VSCode. <p>I am using Visual Studio Code and when I debug (I am debugging C++ code compiled with Clang) I see only local variables. I do not see any global variables list.</p> <p>How can I see all variables?</p> <p><a href="https://i.stack.imgur.com/MU22r.png" rel="noreferrer"><img src="https://i.stack.imgur.com/MU22r.png" alt="enter image description here"></a></p> <p>In this case I am inside a loop and I see only all the variables defined inside the loop, not the one defined outside.</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
Horror Movie Tournament - need more votes!. Hey fellow horror fans! A bunch of people from work and I are doing a horror movie tournament, and we need your help! Down below is a link to a google form where you can vote between your favorite horror movies. We’re doing this tournament to see if we can predict what the majority think the best horror movie is! The form doesn’t show the seeding, but I composed the brackets based on the time period and the seeding based on Letterboxd and Rotten Tomatoes scores. If you all have time, I would greatly appreciate it! And if it’s okay, I’ll post the rest of the rounds here too! Thank you all and have a fantastic day! EDIT: All movies listed are the original first films! No sequels, remakes, or reboots! Thank you to u/diceman89 for bringing this up (except for The Fly) https://docs.google.com/forms/d/1cHhajJmyZ-Wp_rI93YwgxDY1CoZcf8cWrhE29GP-92w/edit VOTING IS CLOSED FOR ROUND 1 Thank you to everyone who voted! We got a whopping 468 votes! I cannot believe the turn out this got. You all are wonderful people and this is such a great community. I’ll have the results and next poll by this weekend (hopefully by today, Saturday, if I can).
0non-cybersec
Reddit
I'm a straight guy, but the one blowjob I've received from a gay dude is still the best I've ever received from a technical standpoint.. Yeah, I'm not attracted to dudes at all, but gay dudes just rock at blowjobs. Posted this with my main account, even, it's nothing to be ashamed of. I still wouldn't repeat the experience. Give me a subpar blowjob from a hot girl over an incredible one from a gay guy every day of the week.
0non-cybersec
Reddit
How can I prove that derivations in Chomsky Normal Form require 2n - 1 steps?. <p>I'm trying to prove the following:</p> <blockquote> <p>If G is a Context Free Grammar in the Chomsky Normal Form, then for any string w belongs L(G) of length n &ge; 1, it requires exactly 2n-1 steps to make any derivation of w.</p> </blockquote> <p>How would I go about proving this?</p>
0non-cybersec
Stackexchange
Moonset.
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
Panda splashing water on itself.
0non-cybersec
Reddit
Why Alice's Adventures In Wonderland Is A Steampunk Masterpiece.
0non-cybersec
Reddit
df and lvdisplay huge difference. <p>I have a partition /dev/mapper/datavg-lv_data.</p> <p>df -h results shows</p> <p><a href="https://i.stack.imgur.com/WxvHv.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/WxvHv.jpg" alt="enter image description here"></a></p> <p>while lvdisplay shows</p> <p><a href="https://i.stack.imgur.com/0jl09.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/0jl09.jpg" alt="enter image description here"></a></p> <p>why is there a huge difference between lv size, filesystem size and available size while there is no data on mount point? where does the space go?</p>
0non-cybersec
Stackexchange
104 dead in Taliban suicide attack on a school in Peshwar. 84 confirmed as children..
0non-cybersec
Reddit
Different background images in Conemu tabs. <p>Is it possible to assign different background images to tabs in Conemu?</p> <p>Console2 supports custom backgrounds per tab, and I'd like something similar to the functionality it provides.</p> <p>Perhaps I can set this in <em>Startup -> Tasks</em> or via the command line of a running tab, but I can't find any information on it.</p> <p>e.g.</p> <pre><code>Tab1 cmd "cmd.png" Tab2 powershell "ps.png" Tab3 Visual Studio Command Prompt "vs.png" Tab4 Admin:cmd "warning.png" </code></pre>
0non-cybersec
Stackexchange
Path-connected and locally connected space that is not locally path-connected. <p>I'm trying to classify the various topological concepts about connectedness. According to 3 assertions ((Locally) path-connectedness implies (locally) connectedness. Connectedness together with locally path-connectedness implies path-connectedness.), we can draw this diagram:</p> <pre><code>+--------------------------+ |Connected | | 1 +-----+----------------------------+ | | 3 | Locally connected| | +----------------+-----+ 6 | | |Path-connected | 4 | | | | +-----+------------------------+ | | | 2 | 5 | Locally path-connected| | +---+----------------+-----+ | | 8 | 7 | | +------------------------------+---| </code></pre> <p>So, I want to find examples of all these 8 categories, but I can't find an example for 4.</p> <ol> <li><a href="http://en.wikipedia.org/wiki/Topologist%27s_sine_curve" rel="noreferrer">The topologist's sine curve</a></li> <li><a href="http://en.wikipedia.org/wiki/Comb_space" rel="noreferrer">The comb space</a></li> <li><a href="http://en.wikipedia.org/wiki/Lexicographic_order_topology_on_the_unit_square" rel="noreferrer">The ordered square</a></li> <li>See below</li> <li>The real line</li> <li>The <a href="http://en.wikipedia.org/wiki/Disjoint_union_%28topology%29" rel="noreferrer">disjoint union</a> of two spaces of the 3rd type</li> <li>$[0,1] \cup [2,3]$</li> <li>The rationals</li> </ol> <p>Actually there is an <a href="https://math.stackexchange.com/questions/588677/does-locally-connected-and-path-connected-imply-locally-path-connected#answer-588698">answer</a> that gives an example of type 4, but there isn't any explanation. Can anyone please explain it (why it is not locally path-connected, to be specific) or give another example?</p>
0non-cybersec
Stackexchange
How can I track outbound links with Google Analytics?. <p>I currently have a WordPress website, where I would like to be able to create an Event which tracks when visitors click through to a 3rd party web page (outbound link).</p> <p>At present, my website has 3 Google Analytics Tracking Codes. Each Tracking Code looks as follows:</p> <pre><code>&lt;script async src="https://www.googletagmanager.com/gtag/js?id=UA-xxxxxxxx-x"&gt;&lt;/script&gt; &lt;script&gt; window.dataLayer = window.dataLayer || []; function gtag(){dataLayer.push(arguments);} gtag('js', new Date()); gtag('config', 'UA-xxxxxxxx-x'); setTimeout("gtag('event', 'adjusted bounce rate', {'event_label':'more than 30 sec'})",30000 ); &lt;/script&gt; </code></pre> <p>As you can see, I already have an Event integrated as to track visitors who spend at least 30 seconds on the page. </p> <p>I have read through this <a href="https://support.google.com/analytics/answer/1136920?hl=en" rel="nofollow noreferrer">Google Support</a> page, where I can see that I would need to paste in:</p> <pre><code>&lt;script&gt; var trackOutboundLink = function(url) { ga('send', 'event', 'outbound', 'click', url, { 'transport': 'beacon', 'hitCallback': function(){document.location = url;} }); } &lt;/script&gt; </code></pre> <p>and ...</p> <pre><code>&lt;a href="http://www.example.com" onclick="trackOutboundLink('http://www.example.com'); return false;"&gt;Check out example.com&lt;/a&gt; </code></pre> <p>Now I know I would need to insert the above snippets into the <code>header.php</code> files but where I am uncertain, is:</p> <ol> <li>How could I integrate the above snippets so that they are 'assigned' to each of the 3 Google Analytics Tracking Accounts?</li> <li>Have I understood that the <code>onclick</code> attribute is only for use with the links we want to track on the page and not part of the Analytics Snippet, within the <code>header.php</code> file?</li> </ol>
0non-cybersec
Stackexchange
Is our use case suitable for a NoSQL Database solution?. <p>We are currently running a Python web app querying a SQL MariaDB (through SQLAlchemy). Unfortunately we have run into some hard limitations of MariaDB (number of joins are <a href="https://dev.mysql.com/doc/refman/5.7/en/joins-limits.html" rel="nofollow noreferrer">limited to 61</a>) and are looking for alternatives. Our database is not very large (generally under 2GB and growing slowly) and the entries could actually very well be broken down to simple json objects, which made us look at a NoSQL solution.</p> <p>Initially this seemed like a great solution. Queries were super fast (as the DB fit into RAM) and we were happy (for a few days).</p> <p><strong>I came here to seek advice if the NoSQL DB is a recommended solution for our needs, though.</strong> So let's talk about the data:</p> <p>The nature of our data is that multiple group of entries / rows generally reference back to the same object, pretty much as if you had multiple versions that relate to a single object.</p> <p>Assume a document entry could look like this:</p> <pre><code>_id: 5a31... description: Object location: "XYZ" name: "ABC" status: "A" m_nr: null k_nr: null city: "QWE" high_value: 17 right_value: 71 more_data: Object number: 101 interval: 1 next_date: "2016-01-16T00:00:00Z" last_date: null status: null classification: Object priority_value: "?" redundancy_value: "?" active_value: "0" </code></pre> <p>Imagine the <code>description.location</code> will often need to be grouped and sorted so that I can only display the <code>$last</code> entry for each of these grouped entries. A common query may look like this (in <code>MongoDB</code>):</p> <pre><code>db.getCollection('a').aggregate( [{ $sort: {"description.location": 1} }, { $group: {_id: "$description.location"} }] ) </code></pre> <p>I have unfortunately found that this particular query takes very long, when the DB does not fit into memory - even <strong>with an index</strong> for <code>description.location</code> present in the MongoDB. (For some reason the <code>$group</code> aggregation operation never appears to be using the available index, while <code>$sort</code> actually does use it).</p> <p>Either way, is this data / layout / query strategy something that resonates well with a NoSQL DB ?</p>
0non-cybersec
Stackexchange
How is the $H^{1/2}$ norm of function defined on a subset of the boundary?. <p>Let $\Omega\subset \Omega^d$, $d\in \{2,3\}$, be a bounded $d$-polyhedron with $n$ faces. Denote the faces of $\partial\Omega$ as $\{e_i\}_{i=1}^n$. Let $u\in H^{1/2}(\partial\Omega)$ Taking the definition of the $H^{1/2}$ norm as</p> <p>$$\| v\|_{H^{1/2}(\partial\Omega)} = \inf_{p\in H^1(\Omega)} \|p\|_{H^1(\Omega)}, $$ where in the infinum we require $p\big|_{x\in \partial\Omega} = v$. </p> <p>How does one extend this definition to $\|v\|_{H^{1/2}(e_i)}$? A seemingly natural way would be to define a new function that is the value of $v$ on $e_i$ and the value of zero everywhere else. And define the norm of $v$ on $e_i$ to be the norm of this new function over all of $\partial\Omega$. Unfortunately we have no guarantees that this new function is in $H^{1/2}(\partial\Omega)$. </p> <p>So my question is, how do we define the $H^{1/2}(e_i)$ norm. I know that we can use the Fourier Transform definition of this norm but I am wondering if there is way analogous to the above.</p>
0non-cybersec
Stackexchange
How to add an import to the file with Babel. <p>Say you have a file with:</p> <pre><code>AddReactImport(); </code></pre> <p>And the plugin:</p> <pre><code>export default function ({types: t }) { return { visitor: { CallExpression(p) { if (p.node.callee.name === "AddReactImport") { // add import if it's not there } } } }; } </code></pre> <p>How do you add <code>import React from 'react';</code> at the top of the file/tree if it's not there already.</p> <p>I think more important than the answer is how you find out how to do it. Please tell me because I'm having a hard time finding info sources on how to develop Babel plugins. My sources right now are: <a href="https://github.com/thejameskyle/babel-handbook/blob/master/translations/en/plugin-handbook.md" rel="noreferrer">Plugin Handbook</a>,<a href="https://github.com/babel/babel/tree/master/packages/babel-types" rel="noreferrer">Babel Types</a>, <a href="https://github.com/babel/babel/blob/master/doc/ast/spec.md" rel="noreferrer">AST Spec</a>, <a href="http://shuheikagawa.com/blog/2015/09/13/lets-create-a-babel-plugin/" rel="noreferrer">this blog post</a>, and the <a href="https://astexplorer.net/" rel="noreferrer">AST explorer</a>. It feels like using an English-German dictionary to try to speak German.</p>
0non-cybersec
Stackexchange
Is $\dfrac{1}{2}$ in the set of real numbers containing the digit 5?. <p>Let <span class="math-container">$F = \{x\in[0,1]: x \text{ does not contain the digit 5}\}$</span></p> <p>At first it's obvious that <span class="math-container">$1/2=0.5\in F$</span>, but the problem arises when you write <span class="math-container">$1/2=0.499...\notin F$</span>, which leads to a contradiction.</p> <p>How do you measure such a set <span class="math-container">$F$</span> with this ambiguity? (This can be done as seen in <a href="https://math.stackexchange.com/questions/2154298/measure-of-set-of-numbers-in-0-1-with-their-decimal-expansions-not-containin">this</a> question). Is it because the set of numbers that can be represented in such a non-unique way has measure <span class="math-container">$0$</span>?</p>
0non-cybersec
Stackexchange
7 day free trial for anybody that wants it..
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
Wife found this at a local estate sale; suspect Emma wasn't happy.
0non-cybersec
Reddit
Portrait Made From a Single Thread Wrapped Around Thousands of Nails By Kumi Yamashita.
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
Nightwatch.js without Java. <p>Is it possible to use <a href="http://nightwatchjs.org/" rel="noreferrer">Nightwatch.js</a> without installing Java? There are official Selenium JavaScript bindings (<a href="https://github.com/SeleniumHQ/selenium/wiki/WebDriverJs" rel="noreferrer">WebDriverJS</a>, <a href="https://www.npmjs.com/package/selenium-webdriver" rel="noreferrer">selenium-webdriver</a>). Is there a reason Java is required?</p>
0non-cybersec
Stackexchange
How to Choose an Employer: Lessons from LeBron James.
0non-cybersec
Reddit
find closed form of integal $\int \frac{a e^{-i(a-2)x}}{2(a+2)(1+e^{2ix})}dx$, where $a\in R$. <p>$$\int \frac{a e^{-i(a-2)x}}{2(a+2)(1+e^{2ix})}dx \text{ and }a\in R$$ </p> <p>Here is what I done:</p> <p>$$\int \frac{a e^{-i(a-2)x}}{2(a+2)(1+e^{2ix})}dx = \int \frac{a e^{-i(a-2)x}}{2(a+2)} (1+e^{2ix})^{-1}dx = \int \frac{a e^{-i(a-2)x}}{2(a+2)} \sum_{k=0}^\infty (-1)^ke^{2ikx}dx \\= \int \frac{a }{2(a+2)} \sum_{k=0}^\infty (-1)^ke^{(2k-a+2)xi} dx= \frac{a }{2(a+2)} \sum_{k=0}^\infty \int(-1)^ke^{(2k-a+2)xi}dx \\= \frac{a }{2(a+2)} \sum_{k=0}^\infty\frac{1}{(2k-a+2)i} (-1)^ke^{(2k-a+2)xi}dx$$</p> <p>Then I do not know how to process the summation. Any help I will sincerely appreciate.</p>
0non-cybersec
Stackexchange
Pope Francis’ associates compare right-wing US Christians with jihadists.
0non-cybersec
Reddit
Band shows. Are there any good shows about bands? I feel like that would be a cool topic for an anime, but I’ve never heard anything about one before.
0non-cybersec
Reddit
How to compute the mean 2D slice of a 3D set of data in MPI. <p>I have a 3D set of data <code>v(i,j,k)</code>, and I want to compute the mean 2D slice <code>vmean(i,j)</code> summing up the <code>nz</code> slices of the <code>v(i,j,k)</code> set along its third dimension. I wrote down this piece of FORTRAN90 code but it does not produce the correct results. Anyone can suggest me the solution? Thanks in advance</p> <pre><code>gbl_sum = 0.0 do j = mystarty,myendy do i = mystartx,myendy lcl_sum = sum(v(i,j,mystartz:myendz)) call MPI_REDUCE(lcl_sum, gbl_sum(i,j), &amp; 1, real, mpi_sum, root,mpi_comm_world,err) gbl_sum(i,j) = lcl_sum enddo enddo call mpi_BCAST(gbl_sum,gbl_sumSize,real,root,&amp; mpi_comm_world,err) do j = mystarty,myendy do i = mystartx,myendy vmean(i,j) = gbl_sum(i,j)/real(nz) enddo enddo </code></pre>
0non-cybersec
Stackexchange
Family of large deviation principles. <p>The following question may be a bit imprecise in its formulation, I guess however the problem I have in mind is clear. Although to me it looks like a fairly standard question, I couldn't find any reference approaching it so far and hope someone here can help.<br/></p> <p>Assume that for every $\epsilon&gt;0$, $\lbrace X^{\epsilon}_{n}\rbrace_{n}$ satisfies a LDP with rate function $I^{\epsilon}$. Also, suppose that for every $n\in\mathbb{N}$ we have tightness for $\lbrace X_{n}^{\epsilon}\rbrace_{\epsilon}$ and let $\lbrace X_{n}\rbrace_{n}$ be a family of limit points. Does convergence of the $I^{\epsilon}$ to some rate function $I$ in a reasonable sense (say $\Gamma$ or Mosco), already imply a LDP for $\lbrace X_{n}\rbrace_{n}$ with rate function $I$? What more is needed?<br/> Remark: I'm here particularly interested in Schilder-type LDPs.</p>
0non-cybersec
Stackexchange
SQL Server Backups in Parallel. <p>Currently I am using ola hallengren backup and maintenance scripts.</p> <p>I have a question:</p> <p>I have 5 big databases in one server. It's taking approximate 10+ hours everyday to complete full backups. Currently it's writing in sequentially into disk. </p> <p>I want to write all backups parallel to reduce time. Is there any way I can write backups parallel?</p> <p>I am taking compressed and verify only backups to network location </p>
0non-cybersec
Stackexchange
How to get the logical right binary shift in python. <p>As revealed by the title, in JavaScript there is a specific operator <code>&gt;&gt;&gt;</code>. For example, in JavaScript we will have the following result:</p> <pre><code>(-1000) &gt;&gt;&gt; 3 = 536870787 (-1000) &gt;&gt; 3 = -125 1000 &gt;&gt;&gt; 3 = 125 1000 &gt;&gt; 3 = 125 </code></pre> <p>So is there a certain method or operator representing this <code>&gt;&gt;&gt;</code>?</p>
0non-cybersec
Stackexchange
This is smokey, I've had him since he was 2 weeks old. He's a happy little guy.
0non-cybersec
Reddit
Trigger Jenkins job from Bitbucket Pull Request. <p>There are various ways to trigger a Jenkins job from an SCM like Bitbucket, but what I want to do specifically is trigger a build using the branch that is the source of the Pull Request.</p> <p>Up to now, we have used the Bitbucket Pull Request Builder, but it is very flaky and unreliable, and not supported well.</p> <p><a href="https://wiki.jenkins-ci.org/display/JENKINS/Bitbucket+pullrequest+builder+plugin" rel="nofollow noreferrer">https://wiki.jenkins-ci.org/display/JENKINS/Bitbucket+pullrequest+builder+plugin</a></p> <p>Bitbucket do supply quite good features in terms of Webhooks, which when used with the Jenkins Git Plugin, do allow for triggering of builds based on various Bitbucket events (eg a Pull Request update).</p> <p>There is also the Bitbucket Webhook plugin, but again that doesn't offer much in terms of dynamically choosing the branch you want to build.</p> <p><a href="https://wiki.jenkins-ci.org/display/JENKINS/BitBucket+Plugin" rel="nofollow noreferrer">https://wiki.jenkins-ci.org/display/JENKINS/BitBucket+Plugin</a></p> <p>However, what this seems to do is trigger a poll of the repo, where is then tries to build any branch that is different from the main branch.</p> <p>Our use case is that we allow developers create their own branches, for which they then create Pull Requests to the development branch.</p> <p>There doesn't seem to be any way to trigger a build that uses the developer created branch as the build branch (other than the aforementioned Bitbucket Pull Request Builder).</p> <p>Am I right or wrong in this?</p>
0non-cybersec
Stackexchange
Convert integer of mixed radix to standard positional numeral system and vice versa. <p>I have multiple numbers (e.g. <code>[1, 4, 2]</code>) where each number can be one of a specified range of numbers (e.g. <code>[0-1, 0-5, 0-3]</code>). I think one can represent my so chosen numbers by seeing them as digits of a number in the <a href="https://en.wikipedia.org/wiki/Mixed_radix" rel="nofollow">mixed radix numeral system</a> with different bases for each position. In the above example, the bases would be <code>[2, 6, 4]</code> and the number would be <code>1 4 2</code>.</p> <p>With the bases given in this example one could specify <code>48</code> different numbers (<code>2 * 6 * 4</code>). If I know the bases, how can I construct an algorithm that converts such a number to another number in a standard positional numeral system (like e.g. decimal, binary or hexadecimal) without just building a big generated lookup table? The conversion has to be bijective and there should not be any gaps - so for this example the mixed radix numbers should be represented by the integers from <code>0</code> to (inclusive) <code>47</code> in the decimal system.</p> <p>Actually I want to encode these mixed radix numbers in binary data, so a gapless and bijective conversion to the binary system would be sufficient.</p>
0non-cybersec
Stackexchange
This is what happens if you drill for oil in a lake with a salt mine underneath.
0non-cybersec
Reddit
[USA] Pickup truck says no to Ford Focus.
0non-cybersec
Reddit
Wrong dictionary in spotlight for macOS. <p>I have a 2016 MacBook Pro with macOS 10.12 Sierra. I can hit <code>cmd+space</code> and type a word that I would like to look up in the dictionary. If the word is Danish (my native language) it shows me the Danish definitions—that is fine. When I look up a English word, it shows me the translation from English to Dutch, which is really annoying.</p> <p>Does anybody have a solution to that?</p> <p>The dictionary works fine, if I just right click a word, and look it up.</p> <hr /> <p>I have the following dictionaries enables under the dictionary preferences: <a href="https://i.stack.imgur.com/v9AG6.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/v9AG6.png" alt="Dictionary settings" /></a></p> <p>And the following Language and Region settings under system preferences: <a href="https://i.stack.imgur.com/TIBFb.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/TIBFb.png" alt="System settings" /></a></p> <p>And lastly, my keyboard input language is Danish.</p> <hr /> <h1>Update</h1> <p>I don't know what happen but suddenly the spotlight dictionary works again. After reindexing spotlight several times, disable and enable definitions in spotlight preferences several times I gave up, and disabled it for good. However, yesterday I enabled spotlight definitions again to state my point to a friend and it works. Strange, but nice.</p>
0non-cybersec
Stackexchange
Lovers-tarotcard,me,pencil+ink,a4,2019.
0non-cybersec
Reddit
Search and Tags for robots.txt. <p>After setting up a blog at blogspot.com I added the site to my webmasters tools of google. </p> <p>I noticed an error: "Restricted by robots.txt" and looked a little into the matter. I found in the robots.txt of blogspot that Google prevents the /search directory by default in order to avoid duplicate entries in their search engine. As tags can be found under /search/label/SOME_TAG, these are not indexed too.</p> <p>I run different sites, especially one is an important e-commerce site for me. For each product, we use tags. Each tags leads to a separate site like /tags/tag1/ and lists all products that are linked to this tag. </p> <p>And this leads me to my question:</p> <p><strong>Should I also block search and/or tag pages on my sites by using robots.txt?</strong></p> <p>I feel google might punish my pagerank/results for using this "low-quality" content. However I think they are quite useful. We provide a short description of each tag and how the listed products can be used for the problem the tag describes.</p> <p>Moreover users landing on tags-pages have very high bounce rates (>90%), which is far above the average bounce rate.</p> <p>So, what is the best practice?</p>
0non-cybersec
Stackexchange
It's Ramendan!. I celebrated by watching The Ramen Girl on NetFlix. What pasta will you be partaking in this holiest of seasons?
0non-cybersec
Reddit
Seems like socialist propaganda to me.....
0non-cybersec
Reddit
Cant insert string to database because of single quote. <p>I am trying to insert this json's content to my database.</p> <p>But I get null result on Summary because the text is like that:</p> <pre><code>summary":"One of the oldest cities in the United States, Boston definitely has an \"old city\" feel to it. Home to great architecture and historical buildings, the city is also a great place to visit with younger ones, as it also plays host to LEGOLAND and many more children's attractions." </code></pre> <p>I think that this is due to the single quote and my PHP query <code>'{$summary}'</code>.</p> <pre><code>$url = file_get_contents("urlcontent/api.json"); $arr = json_decode($url, true); for($i=0;$i &lt; count($arr);$i++){ $id = $arr[$i]['id']; $location = $arr[$i]['location']; $summary = $arr[$i]['summary']; $query = "INSERT INTO [databasename].[dbo].[table]( id , summary, location)"; $query .= "VALUES ('{$id}', '{$summary}', '{$location}' )"; $update_query = sqlsrv_query($con, $query); if(!$update_query){ die("There was an error" .print_r( sqlsrv_errors($con), true)); } } </code></pre> <p>I tried to fix that with:</p> <pre><code>$summary = preg_replace("'", "", $arr[$i]['summary']); $summary = str_replace("'", "", $arr[$i]['summary']); REPLACE('{$summary}','''','''') //MSSQL Database command </code></pre> <p>But still can't insert that text and get NULL result. I can <code>echo</code> it and <code>var_dump</code> and text is OK just cant insert it to my table.</p> <p>My summary is as <code>text</code> in my database.</p> <p>Whats the way to make it work? Cheers</p>
0non-cybersec
Stackexchange
Animate a color periodically in flutter. <p>I have a container widget that I try to animate from Colors.blue to Colors.blueGrey and back periodically every 2 seconds.</p> <p>How can I most easily tackle this in Flutter?</p>
0non-cybersec
Stackexchange
Pretty much anyone would do this..
0non-cybersec
Reddit
Fedora 21 - Gem: change EXECUTABLE DIRECTORY. <p>I am using some locally installed gems in my environment and I would like to change the <code>EXECUTABLE DIRECTORY</code> path to <code>~/.gem/bin</code></p> <p>How could I achieve this?</p> <pre><code>$gem env - RUBYGEMS VERSION: 2.2.2 - RUBY VERSION: 2.1.5 (2014-11-13 patchlevel 273) [x86_64-linux] - INSTALLATION DIRECTORY: /home/flyer/.gem/ruby - RUBY EXECUTABLE: /usr/bin/ruby - EXECUTABLE DIRECTORY: /home/flyer/bin - SPEC CACHE DIRECTORY: /home/flyer/.gem/specs - RUBYGEMS PLATFORMS: - ruby - x86_64-linux - GEM PATHS: - /home/flyer/.gem/ruby - /usr/share/gems - /usr/local/share/gems - GEM CONFIGURATION: - :update_sources =&gt; true - :verbose =&gt; true - :backtrace =&gt; false - :bulk_threshold =&gt; 1000 - REMOTE SOURCES: - https://rubygems.org/ - SHELL PATH: - /usr/local/bin - /usr/local/sbin - /usr/bin - /usr/sbin - /bin - /sbin - /home/flyer/.local/bin - /home/flyer/bin - /home/flyer/.local/bin - /home/flyer/bin </code></pre>
0non-cybersec
Stackexchange
Why is my Apple TV returning errors when I watch movies rented from Apple?. <p>Movies start, but a few times per movie, returns an error: "An error occurred while loading this content". It will allow me to start it again, but it's really frustrating. Internet connection seems solid enough- movies in hd start almost instantly, and nothing else on the network hiccups when it occurs.</p> <p>Any ideas?</p>
0non-cybersec
Stackexchange
Meet Phoebe, the polydactyl Highland Lynx complete with curled ears and a bobtail.
0non-cybersec
Reddit
Troublesome neighbor is unhappy that police were called, doesn't want to be on camera.
0non-cybersec
Reddit
AWS API Gateway endpoint gives CORS error when POST from static site on S3. <p>I have created an API endpoint with Serverless(serverless.com) which I expose through API Gateway. I'm getting following error though I have enabled CORS from the </p> <blockquote> <p>XMLHttpRequest cannot load <a href="https://xxxxxxxxx.execute-api.us-west-2.amazonaws.com/development/signup" rel="noreferrer">https://xxxxxxxxx.execute-api.us-west-2.amazonaws.com/development/signup</a>. No 'Access-Control-Allow-Origin' header is present on the requested resource. Origin '<a href="http://yyyyyyyyy.com.s3-website-us-east-1.amazonaws.com" rel="noreferrer">http://yyyyyyyyy.com.s3-website-us-east-1.amazonaws.com</a>' is therefore not allowed access.</p> </blockquote> <p><a href="https://i.stack.imgur.com/pezUG.png" rel="noreferrer"><img src="https://i.stack.imgur.com/pezUG.png" alt="AWS API Gateway settings for the endpoint"></a></p> <p>I don't get any errors when I use Postman to make requests, despite I have set <code>origin</code> header or not. How can I fix this problem?</p>
0non-cybersec
Stackexchange
I forgot what I was going to write about... [9]. Oh, wait! I remember! I was going to end my tolerance break at 4:20 today. I started smoking earlier than that. When I looked down at the time, it was 2:40. Also, when I closed my eyes I went through a rainbow tunnel and ended up in space... It was intense. This is the best fucking high ever. Aww yea.
0non-cybersec
Reddit
Detecting iPhone movement on a flat surface. <p>I'm a coremotion beginner.</p> <p>I need to detect iPhone movement on a flat surface like table - so far, I made it to detect its sideways movement by accessing the yaw of the gyro, but I can't think of a way to detect the up/down changes. I tried using the accelerometer, but it detects more of a device tilt than movement. Also, there is a counterforce when the movement stops. </p> <p>Do you have any idea to do it so that it would be possible to have the movement data with fair precision? I need it for something like air-hockey game. </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
As a Brit, this is what I feel every professional American Football game is like.
0non-cybersec
Reddit
vue v-for loop, add class individual. <p>I am using v-for to loop through a list and display that list.</p> <p>Now after rendering, each list has a title and hidden content, and I want to be able, once I select one title of that list, to have its content to be shown and not all content.</p> <p>So far I am doing this (thanks to <a href="https://stackoverflow.com/users/2678454/thanksd">@thanksd</a>):</p> <pre><code>&lt;div class="link"&gt; &lt;p @click="show = true"&gt; Click here to show the content &lt;/p&gt; &lt;div v-show="show" class="content"&gt; &lt;p&gt;This is the hidden content&lt;/p&gt; &lt;/div&gt; &lt;/div&gt; &lt;div class="link"&gt; &lt;p @click="show = true"&gt; Click here to show the content &lt;/p&gt; &lt;div v-show="show" class="content"&gt; &lt;p&gt;This is the hidden content&lt;/p&gt; &lt;/div&gt; &lt;/div&gt; data() { return { show: false, }; } </code></pre>
0non-cybersec
Stackexchange
How to use spot instance with amazon elastic beanstalk?. <p>I have one infra that use amazon elastic beanstalk to deploy my application. I need to scale my app adding some spot instances that EB do not support.</p> <p>So I create a second autoscaling from a launch configuration with spot instances. The autoscaling use the same load balancer created by beanstalk.</p> <p>To up instances with the last version of my app, I copy the user data from the original launch configuration (created with beanstalk) to the launch configuration with spot instances (created by me).</p> <p>This work fine, but:</p> <ol> <li><p>how to update spot instances that have come up from the second autoscaling when the beanstalk update instances managed by him with a new version of the app?</p> </li> <li><p>is there another way so easy as, and elegant, to use spot instances and enjoy the benefits of beanstalk?</p> </li> </ol> <p><strong>UPDATE</strong></p> <p>Elastic Beanstalk add support to spot instance since 2019... see: <a href="https://docs.aws.amazon.com/elasticbeanstalk/latest/relnotes/release-2019-11-25-spot.html" rel="nofollow noreferrer">https://docs.aws.amazon.com/elasticbeanstalk/latest/relnotes/release-2019-11-25-spot.html</a></p>
0non-cybersec
Stackexchange
Bi-Monthly Surveys and studies - September 2018. This is a thread for researchers to publish their surveys, polls or studies that they'd like parent's to participate. Moderators from /r/parenting are *not* verifying the sources of these surveys, so answer at your own will and don't hesitate to ask for more information from the original poster. If you want to publish a survey that isn't relevant to a parenting subreddit, please try /r/SampleSize.
0non-cybersec
Reddit
Ooo fancy.
0non-cybersec
Reddit
Learn how to activate AVG 2018 in easy steps by dialing 1-888-455-5589.
1cybersec
Reddit
Found these multi-use codes online, I entered them all and they worked. Not exactly sure what they unlock though.... NOTE: these are NOT Beta codes, only in-game bonus codes! CODE 1: YKA-RJG-MH9 (WARLOCK) CODE 2: 3DA-P4X-F6A (HUNTER) CODE 3: MVD-4N3-NKH (TITAN) CODE 4: TCN-HCD-TGY (RIXIS) CODE 5: HDX-ALM-V4K (OLD RUSSIA) CODE 6: 473-MXR-3X9 (HIVE) CODE 7: JMR-LFN-4A3 (MOON) CODE 8: HC3-H44-DKC (GJALLARHORN) CODE 9: 69P-KRM-JJA (Duke MK.44) CODE 10: 69P-VCH-337 (The Tower) CODE 11: 69R-CKD-X7L (The Hive) CODE 12: 69R-DDD-FCP (Valley of the kings, Mars) CODE 13: 69R-F99-AXG (The Fallen) CODE 14: 69R-VL7-J6A (Red Death) CODE 15: 69X-DJN-74V (Los Cabal) CODE 16: 6A7-7NP-3X7 (La costa devastada, Venus) CODE 17: 6A9-DTG-YGN (Vex: Minotauro) Codes are redeemed here: http://www.bungie.net/en/User/coderedemption These codes gave me "Destiny Collector's Cards", whatever those may be. Multi-use so they can be used several times by anyone. Don't know how much longer these will be active, so use them while you can!
0non-cybersec
Reddit
Why do we run into this almost every damn time? Or how two seemingly unrelated events are often actually related. Despite what you tell yourself.. This is a sort-of TIFU, but technically I didn't FU personally but was more of a willing accessory. At least at the beginning... It's also a bit of a rant. Anyway: Last Saturday, my co-worker moved a syslog-server (two actually) to new hardware (the old hardware is well past due-date). Immediately, it begins bombing out (which is apparently/hopefully a firmware issue that I later learned can be fixed with a hardware-update). On Sunday, I get to work with upgrading the OS on those syslog-servers, from home. Immediately drawing ire from my GF. While doing that, I see that our mail system is also having problems. At about 10:30pm, I get a message that he doesn't know what to do about the mail-system anymore and that it's completely down now. The servers are just slow, unresponsive and don't work anymore. Even login is slow, which should have really rang a few alarm bells.... So, after a couple of hours of messing with it (which was already too late, with hindsight - again), we open a ticket with the vendor which doesn't actually go anywhere until the next morning. I take a couple of hours sleep to come into Office at about 4 PM and it' still down and nobody is any wiser. Various VM-restores had been run (each taking way too much time), to no avail. More Webex-sessions with the vendor follow, we re-install the ldap-server, the vendor suspects a problem with the storage array that the VMs run on. Minute by minute, hour by hour, time passes by. Still at the office (with my co-worker and somebody from helpdesk), there's a call at about 2 AM with the boss and the project-manager and we mull re-installing more servers. We can't provision new VMs and the guy who can is not picking up his damn phone. This is the moment I realize that we are missing something because it was getting more and more absurd. Also, I couldn't really see myself doing another all-nighter with barely no sleep. Not to mention our customers are without email for a good while now. Or make that a bad while. I had cloned all the VMs about two weeks earlier for preparing a test-environment and we booted up one just for kicks - it was fast at the beginning and then slowed down quickly. We see that there's something else at play and because the application itself is mostly java (and thus horribly difficult to debug), I settle for the one thing that is also slow and rather easy to troubleshoot: su(1). I google it a bit and find that this is a common problem, with various reasons and none applies to us. So, I just decide to strace it. strace'ing su quickly halts at a point where it wants to write to a socket. I look at the line for about 30 seconds until I realize that is the point where it tries to send a message to the syslog-server (that is still acting up). I can't believe what I'm seeing. For a short moment, I feel like I'm fainting. So, I disable remote logging (it was configured to log via TCP) to that server for the platform and bang - everything starts working immediately. Holy moly. We empty the inbound queue of about 30k mails that get delivered quickly. After confirming that actually everything works as before, we take a little nap at the office before heading off for breakfast, waiting for the rest of the company coming to work. We leave at about 10am, I go home and sleep until the evening. Somewhere along that, we also moved syslog back to the old hardware. Needless to say that more than one person had suggested that the syslog-server was the culprit pretty much at the beginning. One of them being the boss. But it was dismissed, and I myself also didn't think it was the cause - until I saw it with my own, bleary eyes. The problem is that once there is such a big problem, often actionism takes over completely and trying to find the root-cause for something then gets almost impossible because you look at the problem from the wrong angle. Also, going two days with barely any sleep like my co-worker really doesn't help.
0non-cybersec
Reddit
According to Marca, Andres Iniesta has payed 240.000 Euros worth of wages to the players of his previous club, Albacete, so as to have them avoid relegation to the 4th division..
0non-cybersec
Reddit
Localizing a web-app. <p>I'm just having a debate about the best <em>(future-proof, safe, user-friendly, developer-friendly, technologically nice)</em> approach to localization of a web-application. We are using basically processing on the server, prepare pages there and use some JS, also use Syncfusion (who offer "<a href="http://help.syncfusion.com/js/localization" rel="nofollow">something</a>" with their latest release), but I am having mixed emotions about handling that via JS (<em>on the (possibly thin) client</em>) - I can't exactly name it, but my concerns seem to be about about language/culture-dependencies in the data being presented. And also, this would imply that the client would handle the localization of the UI, whereas otherwise we could deliver an already localized page to the client...</p> <p>I've read the few questions that I found here, but was wondering if you could share some experiences/comments on the subject: would you rather localize by building localized pages or return generic pages and translate on-the-fly via JS?</p>
0non-cybersec
Stackexchange
Apple needs to sell a computer with a good GPU for $1,000, not $5,000.
0non-cybersec
Reddit
Number of possible states of a $3 \times 3 \times 3$ Tic Tac Toe board. <p>How many possible game states are there for a $3 \times 3 \times 3$ tic tac toe game? Assuming the rules are that player X and O alternate one move at a time.</p>
0non-cybersec
Stackexchange
different fillStyle colors for arc in canvas. <p>I imagine the solution to this is very simple, and apologize in advance if this is painfully obvious, but I can't seem to figure out how to set two different fillStyles for two different arcs ...I just wanna be able to draw different color circles. Below I have how I would normally do it with other shapes/drawing methods in canvas, but for some reason with arcs it sets both arcs to the last fillStyle.</p> <pre><code>ctx.fillStyle = "#c82124"; //red ctx.arc(15,15,15,0,Math.PI*2,true); ctx.fill(); ctx.fillStyle = "#3370d4"; //blue ctx.arc(580,15,15,0,Math.PI*2,true); ctx.fill(); </code></pre>
0non-cybersec
Stackexchange
Is the Haar measure on the orthogonal group uniform on preimages of balls in orbits?. <p>Let $G$ be the orthogonal group on $\mathbb{R}^n$. The norm on $G$ is the operator norm. $G$ is a compact (Lie) group, so it has a unique Haar measure $\mu$ of total measure 1 which is both left and right invariant. </p> <p>Fix a unit vector $x_0 \in \mathbb{R}^n$. The orbit of $x_0$ is $Gx_0 = S^{n-1} \subseteq \mathbb{R}^n$. The map $\alpha: g \mapsto g x_0$ is a surjection from $G$ to $S^{n-1} \subseteq \mathbb{R}^n$. </p> <p>Cover $S^{n-1}$ by balls $B_i$ in $\mathbb{R}^n$ of radius $r$ whose centers lie on $S^{n-1}$. </p> <p>I think the preimages $\alpha^{-1}(B_i)$ of the balls should all have the same measure (say up to a constant factor).</p> <p>How can I prove (or disprove) this?</p> <p>EDIT: </p> <p><a href="https://en.wikipedia.org/wiki/Spherical_measure#Relationship_with_other_measures" rel="nofollow noreferrer">https://en.wikipedia.org/wiki/Spherical_measure#Relationship_with_other_measures</a></p> <p>According to that wikipedia article, the image measure of the Haar measure $\mu$ on $G$ through $\alpha$ is exactly the uniform measure $\sigma$ on the sphere: $$ \sigma(A)=\mu(\{ g: \alpha(g)=gx_0 \in A\}) = \mu(\alpha^{-1}(A)) $$ In particular, $$ \sigma(B_i \cap S^{n-1}) = \sigma(B_i) = \mu(\alpha^{-1}(B_i \cap S^{n-1})) $$ Since $\sigma$ is uniform and since the balls have the same radius with centers on the sphere, $\sigma(B_i \cap S^{n-1})=\sigma(B_j \cap S^{n-1})$ for all $i,j$.</p> <p>Thus my question <strong>can</strong> be reduced to:</p> <p>Why is the image measure $\mu(\alpha^{-1}( \; \cdot \; ))$ exactly the uniform measure $\sigma$ on the sphere? </p>
0non-cybersec
Stackexchange
kitty choke slam.
0non-cybersec
Reddit
Check if MySQL configuration was applied. <p>I'm performing some heavy MySQL operations at my VM and constantly getting the following error:</p> <blockquote> <p>SQLSTATE[HY000]: General error: 1206 The total number of locks exceeds the lock table size</p> </blockquote> <p>I googled that increasing <code>innodb_buffer_pool_size</code> option in <code>my.cnf</code> may solve the issue. The only <code>my.conf</code> I found at my VM is located at <code>/etc/mysql/my.cnf</code>. There was no <code>innodb_buffer_pool_size</code> setting there at all so I added:</p> <blockquote> <p>innodb_buffer_pool_size = 1G</p> </blockquote> <p>and then increased it to 2G but still the error is there. After each altering of the <code>my.cnf</code> file I restarted my VM completely.</p> <p>The question is if there any chance to check if <code>innodb_buffer_pool_size</code> parameter was taken into consideration and I'm modifying correct file?</p> <p>My <code>my.cnf</code> has <code>root:root</code> owner but permissions are <code>-rw-r--r--</code> so I guess MySQL should be able to read it.</p>
0non-cybersec
Stackexchange
Got hand made Daenerys and Drogo dolls in the Reddit secret santa!.
0non-cybersec
Reddit
Exponential Inequality. <p>I was working on a problem and reduced it to showing the following inequality:</p> <p>$$2x e^{x^2/6} \ge e^x - e^{-x} \text{ for $x \ge 0$}$$</p> <p>I tried expanding everything in Taylor series to no avail. I also tried defining the function $f(x):= 2xe^{x^2/6} - e^x + e^{-x}$, showing $f(0) = 0$ and trying to show $f'(x) \ge 0$ for $x \ge 0$, but I couldn't show the last part.</p> <p>Is there something easy I'm missing?</p>
0non-cybersec
Stackexchange
Wyclef Jean - Sweetest Girl (Dolla Bill) ft. Akon, Lil Wayne & Niia.
0non-cybersec
Reddit
Russia's response to COVID19.
0non-cybersec
Reddit
Is it possible to consider a single optional parameter among three in node declaration?. <p>Please consider the following dummy MWE:</p> <pre><code>\documentclass[border=3mm,tikz,preview]{standalone} \usetikzlibrary{arrows,positioning,shadows,shapes} \tikzset{test/.style = {% &gt; = angle 90, YY/.style args = {##1/##2/##3}{ % changed in each use of shape name=n##1, % different in each picture fill=##2,% color text width=##3, % common in each picture shape=rectangle, draw, inner sep=1mm, minimum height=9mm, align=flush center, drop shadow}, } } \begin{document} \begin{tikzpicture}[test, node distance = 12mm, ] \node[YY=1/white/12mm] {node A}; \node[YY=2/white/12mm,right=of n1] {node B}; \draw[-&gt;] (n1) -- (n2); \end{tikzpicture} \end{document} </code></pre> <p>Is it possible to set optional parameters <code>#2</code> and <code>#3</code> as default in some picture and then change only parameter <code>#1</code> on the following way:</p> <pre><code>\node[YY=1] {node A}; \node[YY=2,right=of n1] {node B}; \draw[-&gt;] (n1) -- (n2); </code></pre> <p>I'm aware of possibilities of `YY/.default = 1/white/12mm, but it has sense only if the all nodes have the same name (in considered dummy case). Then ones can write:</p> <pre><code>\node[YY] {node A}; \node[YY,right=of n1] {node B}; </code></pre> <p>In this case the names can be put in <code>(...)</code> after node declaration, but this in the case, that node has defined <code>node contents</code> is not possible ...</p> <p><strong>Edit:</strong> My main intention is to make node description (determining parameters) as well presets in each TikZ picture as short as possible and for one, who aware of defined presets, make it intuitive. In this I wonder, if it is possible to define optional parameters on similar way as can be defined for example <code>\newcommand</code> in LaTeX:</p> <pre><code>\newcommand{maycomand}[2][optional parameter] {command definition}; </code></pre> <p>In sense of my (dummy) example in the case, that node use preset parameters, the node declaration is </p> <pre><code>\node[YY=1] {node content}; </code></pre> <p>and in the case, when I like to change default optional values, I can simple write:</p> <pre><code>\node[YY=1/red!20/22mm] {node content}; </code></pre> <p>So far (for simplified case of given MWE) I can do the following:</p> <ul> <li><p>as say @cfr in his comment (and I was not aware before) in node preset determine only option <code>#2</code> and <code>#3</code> and name of node write in braces like: <code>\node (name) [YY] {node contents};</code> when I use default values for optional parameters, and <code>\node (name) [YY=red!20/22mm] {node contents};</code> when I change default values.</p></li> <li><p>not use optional arguments in node preset and in each picture add in its preamble <code>YY/.append style = {fill=white, text width=12mm}</code> and in case, that I like to have different color and width, this locally overwrite as <code>\node[YY=name,fill=red!20,text width=22mm] {node content};</code></p></li> </ul>
0non-cybersec
Stackexchange
Halo: MCC update live (103 MB).
0non-cybersec
Reddit
Big Oh from function. <p>I'm having a lot of trouble finding big oh for the function:</p> <blockquote> <p>$$f(i)=i+2i+\cdots+i\cdot i,$$</p> </blockquote> <p>where $f(i)$ is the steps to run this function. Could you give me a hint as how to find it?</p> <p>Much appreciated. </p>
0non-cybersec
Stackexchange
Cybercriminals earning $25k a day through Malware infected Advertisements.
1cybersec
Reddit
Loading local data google colab. <p>I have a npy file, (largeFIle.npy) saved in the same "colab notebooks" folder on my google drive that I have my google colab notebook saved in. I'm trying to load the data into my notebook with the code below but I'm getting the error below. This code works fine when I run it locally on my laptop with the notebook in the same folder as the file. Is there something different I need to do when loading data with notebooks in google colab? I'm very new to colab.</p> <pre><code>code: dataset_name = 'largeFIle.npy' dataset = np.load(dataset_name, encoding='bytes') Error: FileNotFoundError Traceback (most recent call last) &lt;ipython-input-6-db02a0bfcf1d&gt; in &lt;module&gt;() ----&gt; 1 dataset = np.load(dataset_name, encoding='bytes') /usr/local/lib/python3.6/dist-packages/numpy/lib/npyio.py in load(file, mmap_mode, allow_pickle, fix_imports, encoding) 370 own_fid = False 371 if isinstance(file, basestring): --&gt; 372 fid = open(file, "rb") 373 own_fid = True 374 elif is_pathlib_path(file): FileNotFoundError: [Errno 2] No such file or directory: 'largeFIle.npy' </code></pre>
0non-cybersec
Stackexchange
Do you ever get off days?. I've been training all summer for an olympic triathlon in September and, until today, thought I was pretty on track for the swim. Last week I was doing up to 60 laps straight but today I could barely even finish 10. It feels like I've regressed and it's really frustrating. Was going to post on tri but I wanted to ask for all other fitness types. Do you ever get off days? Is it normal? and how could I prevent them? Gonna get right back to it and work harder but really hope I don't get more of these, especially on the day of the race!
0non-cybersec
Reddit
Super Mario 3D World ★ Super Bell Hill (World 1-1) [1080p 60fps] ★ Super Mario 3D.
0non-cybersec
Reddit
External hard drive question. So I just got my new rMBP. The thing is, I hooked up my external hard drive filled with movies and TV shows and wanted to try out playing those in my Macbook. But when I plug it in, nothing happens. It doesn't appear in Disk Utility either. What should I do? Thanks in advance.
0non-cybersec
Reddit
Example of divergent series whose associated &quot;squared&quot; series converges. <p>I am trying to find a non-trivial example of a series with positive terms $a_n$ that satisfies the following two conditions:</p> <p>$$ \sum_{n = 1}^{+\infty} a_n = +\infty \qquad \text{and} \qquad \sum_{n = 1}^{+\infty} a_n^2 &lt; +\infty. $$</p> <p>The obvious example is of course $a_n = \frac{1}{n}$ for all $n \in \mathbb{N}\setminus \{0\}$, but could you help me finding another one? Thank you very much for your answers.</p>
0non-cybersec
Stackexchange
Mendeley is crashing on MacBook Pro. <p>I have a problem starting Mendeley on MacBook Pro (10.13 (High Sierra)). It used to work before, but after the last update, i.e., 1.19.4.OSX.Universal, it pops up the following window every time I start it.<a href="https://i.stack.imgur.com/SgUlo.png" rel="nofollow noreferrer">enter image description here</a></p> <p>I appreciate your help. In the meantime, I am contacting Mendeley.</p> <p>Cheers, /Nas</p>
0non-cybersec
Stackexchange
Can anyone ID these vines? Kiwi maybe? I can provide more info if needed..
0non-cybersec
Reddit
Automation Will Make Us Rethink What a “Job” Really Is | Harvard Business Review http://j.mp/2dKtoci.
1cybersec
Reddit
Not For Everyone.
0non-cybersec
Reddit
Jdbi - how to bind a list parameter in Java?. <p>We have an SQL statement which is executed by Jdbi (<code>org.skife.jdbi.v2</code>). For binding parameters we use Jdbi's <code>bind</code> method:</p> <pre><code>Handle handle = ... Query&lt;Map&lt;String, Object&gt;&gt; sqlQuery = handle.createQuery(query); sqlQuery.bind(...) </code></pre> <p>However we have a problem with in-lists and currently we are using <code>String.format</code> for this. So our query can look like this:</p> <pre><code>SELECT DISTINCT tableOne.columnOne, tableTwo.columnTwo, tableTwo.columnThree FROM tableOne JOIN tableTwo ON tableOne.columnOne = tableTwo.columnOne WHERE tableTwo.columnTwo = :parameterOne AND tableTwo.columnThree IN (%s) </code></pre> <p><code>%s</code> is replaced by <code>String.format</code> so we have to generate a proper string in java code. Then after all <code>%s</code> are replaced we are using jdbi's <code>bind</code> method to replace all other parameters (<code>:parameterOne</code> or <code>?</code>).</p> <p>Is there a way to replace <code>String.format</code> with jdbi? There is a method <code>bind(String, Object)</code> but it doesn't handle lists/arrays by default. I have found <a href="http://skife.org/jdbi/java/2011/12/21/jdbi_in_clauses.html" rel="noreferrer">this article</a> which explains how to write our own factory for binding custom objects but it looks like a lot of effort, especially for something that should be already supported.</p>
0non-cybersec
Stackexchange
missing row if sales did not occur in one year vs other. <p>Given below is the table definition and data:</p> <pre><code>CREATE TABLE bike ( id INTEGER, name VARCHAR(50), price INTEGER ); CREATE TABLE country ( id INTEGER, country VARCHAR(50) ); create table bike_sales ( bike_id int, country_id int, quantity int, sales_date DATE ); </code></pre> <pre><code>INSERT INTO bike VALUES(1,'XYZ',50000); INSERT INTO bike VALUES(2,'ABC',70000); INSERT INTO bike VALUES(3,'PQR',70000); INSERT INTO country VALUES(1,'US'); INSERT INTO country VALUES(2,'Canada'); INSERT INTO country VALUES(3,'UK'); INSERT INTO bike_sales VALUES(1, 1, 5, '2018-01-01'); INSERT INTO bike_sales VALUES(1, 2, 10, '2018-02-01'); INSERT INTO bike_sales VALUES(1, 3, 7, '2018-03-01'); INSERT INTO bike_sales VALUES(2, 1, 9, '2018-04-01'); INSERT INTO bike_sales VALUES(2, 2, 8, '2018-05-01'); INSERT INTO bike_sales VALUES(2, 3, 4, '2018-06-01'); INSERT INTO bike_sales VALUES(3, 3, 4, '2019-06-01'); </code></pre> <p>When I run this query:</p> <pre><code>SELECT c.country, b.name, (bs.quantity* b.price) as revenue FROM bike_sales bs LEFT JOIN country c ON c.id = bs.country_id LEFT JOIN bike b ON b.id = bs.bike_id WHERE year(bs.sales_date) = '2018' order by c.country, b.name </code></pre> <p>i get this output</p> <pre><code>+---------+------+---------+ | country | name | revenue | +---------+------+---------+ | Canada | ABC | 560000 | | Canada | XYZ | 500000 | | UK | ABC | 280000 | | UK | PQR | 280000 | | UK | XYZ | 350000 | | US | ABC | 630000 | | US | XYZ | 250000 +---------+------+---------+ </code></pre> <p>I am calculating the country wide sales for 2018. I also want my result to display bikes that were sold in 2019 even though they were not sold in 2018.For example : There were no sales for 'PQR' in 'UK' in 2018 although it was sold in UK in 2019 hence I need that row as well in the output with 0 as revenue since there was no sales in 2018. How do I get this missing row ? </p> <pre><code>| UK | ABC | 0 | </code></pre>
0non-cybersec
Stackexchange
Why am I getting a 422 error code?. <p>I am making a POST request, but unable to get anything besides a 422 response.</p> <p><strong>Vue.js client code:</strong></p> <pre><code>new Vue({ el: '#app', data: { form: { companyName: '', street: '', city: '', state: '', zip: '', contactName: '', phone: '', email: '', numberOfOffices: 0, numberOfEmployees: 0, } }, methods: { register: function() { this.$http.post('/office-depot-register', this.form).then(function (response) { // success callback console.log(response); }, function (response) { // error callback console.log(response); }); } } }); </code></pre> <p><strong>Laravel Routes:</strong></p> <pre><code>Route::post('/office-depot-register', ['uses' =&gt; 'OfficeDepotController@register', 'as' =&gt; 'office-depot-register']); </code></pre> <p><strong>Laravel Controller:</strong></p> <pre><code>public function register(Request $request) { $this-&gt;validate($request, [ 'companyName' =&gt; 'required', // ... ]); // ... } </code></pre>
0non-cybersec
Stackexchange
Game Thread - Fourth Quarter: Green Bay Packers (12-4) at Seattle Seahawks (12-4). ---- [Green Bay Packers](/r/greenbaypackers#away) [at](#at) [Seattle Seahawks](/r/seahawks#home) ---- * CenturyLink Field * Seattle, Washington ---- ######[](#start-box-score) | | | | | | | | | :-- | :-- | :-- | :-- | :-- | :-- | :-- | | |**First**|**Second**|**Third**|**Fourth**|**Overtime**|**Final**| |**Packers**|13|3|0|6|0|**22**| |**Seahawks**|0|0|7|15|6|**28**| ######[](#end-box-score) ---- * General information * ---- | | | | | | | | :-- | :-- | :-- | :-- | --: | --: | | **Coverage** | | | **Game Insight** | | **Odds** | | FOX | | | [Statmilk](http://www.statmilk.com/NFL/MatchUp/15227/9062/) | | Green Bay O/U | | | |:---| | [48°F/Wind 15mph/Rain showers/1mm precipitation expected](http://www.yr.no/place/United_States/Washington/Seattle/#weather-5 "Weather forecast from yr.no, delivered by the Norwegian Meteorological Institute and the NRK") | ---- | | | | :-- | --: | | **Headlines** | **Communities** | | [Report: Colts planning big-money deal for Andrew Luck](http://profootballtalk.nbcsports.com/2015/01/18/report-colts-planning-big-money-deal-for-luck/) | /r/seahawks | | [Richard Sherman unhappy with Rodgers avoiding him](http://www.nfl.com/news/story/0ap3000000459879/article/richard-sherman-unhappy-with-rodgers-avoiding-him) | /r/greenbaypackers | | | | ---- * Game Stats * ---- ######[](#start-game-stats) | | | | | | | | :-- | :-- | :-- | :-- | :-- | :-- | | **Passing** | | **Cmp/Att** | **Yds** | **Ints** | **Tds** | |R.Wilson|[](/r/seahawks)|14/29|209|4|1| |A.Rodgers|[](/r/greenbaypackers)|19/34|178|2|1| | **Rushing** | | **Car** | **Yds** | **Lng** | **Tds** | |M.Lynch|[](/r/seahawks)|25|157|24|1| |E.Lacy|[](/r/greenbaypackers)|21|73|13|0| | **Receiving** | | **Rec** | **Yds** | **Lng** | **Tds** | |D.Baldwin|[](/r/seahawks)|6|106|35|0| |J.Nelson|[](/r/greenbaypackers)|5|71|23|0| ######[](#end-game-stats) ---- * Thread Notes * [Message The Moderators](http://www.reddit.com/message/compose?to=%2Fr%2Fnfl) ---- | | | :-- | | Discuss whatever you wish. You can trash talk, but keep it civil. | | Turning comment sort to ['new'](https://www.reddit.com/r/nfl/comments/2sve04/game_thread_fourth_quarter_green_bay_packers_124/?sort=new) will help you see the newest comments. | | Try Chrome Refresh or Firefox's ReloadEvery to auto-refresh this tab. | | Use [reddit-stream.com](http://reddit-stream.com/comments/2sve04) to get an autorefreshing version of this page | | Check in on the r/nfl chat: **#reddit-nfl** on FreeNode ([open in browser](http://webchat.freenode.net/?channels=reddit-nfl)). | | Show your team affiliation - pick your team's logo in the sidebar. |
0non-cybersec
Reddit
Switch audio output from tray (headphone or speaker). <p>Installed Ubuntu 18.10 and I'm very happy.</p> <p>The only function i'm missing is <strong>quick switching audio output profiles</strong> of my soundcard.<br> In tray menu only <strong><em>volume control</em></strong> is possible, therefore I tried GNOME Shell Extension: <strong><em>Audio output selector,</em></strong> but it only switches between soundcards (internal speakers &amp; USB soundcard) from the tray menu. </p> <p><strong>I need to switch between the USB soundcard outputs (headphones &amp; 3,5mm audio-out).</strong> These are shown as Output profiles "<strong><em>Speaker</em></strong>" &amp; "<strong><em>Headphone</em></strong>".</p> <p>How can I enable a quick way to switch between these profiles? It's strange Ubuntu doesn't support any quick way to switch audio output from tray. :(</p> <p><img src="https://i.stack.imgur.com/Gmsg7.png" alt="Audio output profile settings ubuntu"></p> <p>thanks Pappl</p>
0non-cybersec
Stackexchange
I'm heading to the US from UK for a few days. What purchase should I make that are unique to the US?.
0non-cybersec
Reddit
Forensics Tidbits of the Mayhem Botnet.
1cybersec
Reddit
Induction with two unknown variables. <p>I have been at this problem for a while now, and I cannot wrap my head around it. Any kind of help would be greatly appreciated!</p> <p>The runtime for a sorting algorithm can be described by <span class="math-container">$a_{1} = 3$</span> and </p> <p><a href="https://i.stack.imgur.com/oohno.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/oohno.png" alt="enter image description here"></a></p> <p>I need to prove, that </p> <p><a href="https://i.stack.imgur.com/0erOk.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/0erOk.png" alt="enter image description here"></a></p> <p>For all <span class="math-container">$n, k \in Z^{+}$</span></p> <p>I've tried to do the basestep, but even here I'm not sure if it's correct. I hope someone can help with the induction step as well.</p> <p><strong>Basecase:</strong> </p> <p><span class="math-container">$n, k = 2$</span></p> <p><span class="math-container">$a_{2} =a_{2/2} + a_{2/2} + 3*2+1 = 13 $</span></p> <p><span class="math-container">$3* 2 * 2^2 + 4 * 2^2 -1 = 39$</span></p> <p><span class="math-container">$a_n \leq 3 * k * 2^k + 4 * 2^k - 1$</span> applies for the basebase, since <span class="math-container">$13 \leq 39$</span> is true. </p> <p><strong>Inductionstep:</strong></p> <p>?</p>
0non-cybersec
Stackexchange
Show that function $f$ need not be uniformly continuous on $A ∪ B$ If $A∩B=\emptyset$ and $A$ is not compact. <p>Show that function $f$ need not be uniformly continuous on $A ∪ B$</p> <p>If $A∩B=\emptyset$ and $A$ is not compact and $A$ and $B$ are closed sets.</p> <p>And $f$ is uniformly continuous on both $A$ and $B$</p> <p>I believe I need to use the distance between these two sets when trying to solve this question , because I proved a similar one (opposite) using the fact that if $A$ was compact, distance between these two sets would be positive.</p> <p>Here $A$ is not compact, but both sets are disjoint and closed. I couldn't come up with an argument about their distances this time.</p> <p>I tried thinking about a subsequence converging. Since neither of $A$ and $B$ are bounded, not all sequences $a_n$ and $b_n$ where $a_n\epsilon A$ for all $n$ and $b_n\epsilon B$ for all $n$ have a limit point. Maybe an argument from here could be derived but couldn't think of any again.</p> <p>Could someone help me out? Thanks,</p>
0non-cybersec
Stackexchange
How to re-enable Chrome Developer Tools?. <p>I'm on Windows 7 running Google Chrome 41 and somehow my developer tools are disabled. <code>Inspect Element</code> in the context menu is grayed out, all the Developer options under the hamburger and More Tools are also grayed, and there doesn't seem to be anyway around it.</p> <p>I've found <a href="https://stackoverflow.com/questions/5692006/how-to-uninstall-remove-developer-tools-from-google-chrome">this SO question</a> but I couldn't find <code>"disabled": true</code> in my Preferences file. I've checked and Chrome isn't starting with the <code>--disable-dev-tools</code> flag either. I've wandered through the registry looking for an entry that might be causing this but so far I've found no way to re-enable devtools. I am a developer, I need them.</p> <p>How can I re-enable Chrome's Developer Tools?</p>
0non-cybersec
Stackexchange
Installing an older version of Kazam. <p>I do not like the new version of kazam &amp; was wandering if there is any way to install the previous version in Ubuntu 12.04 (I know the previous version runs in 12.04 as I recently upgraded it). Anyone know if this is possible and how to do it?</p>
0non-cybersec
Stackexchange
is it a single variable probability density function?. <p>is it a single variable probability density function? <span class="math-container">$$f(x)=\left\{ \begin{array}{ll} e^{3x} , &amp;\rm{~~if~~} x \leq 0\\ 1 - \frac{2}{3}x ,&amp;\rm{~~if~~} 0 &lt; x \leq 1\\ 0, &amp;\rm{~~if~~} x &gt; 1\\ \end{array}\right.$$</span></p> <p>I checked, the definite integral of f(x) from -infinity to infinity is 0. <span class="math-container">$f(x)\geq 0$</span></p> <p>it's limits to infinity and -infinity equal to 0. It is continuous from left.</p> <p>There is a 'bump' in the function, because <span class="math-container">$f(1)=1/3$</span> and <span class="math-container">$f(x&gt;1)=0$</span> So is it not a problem, because it only has to be continuous from the left, is it correct?</p> <p>Thank you</p>
0non-cybersec
Stackexchange