text
stringlengths
3
1.74M
label
class label
2 classes
source
stringclasses
3 values
Staying fit while traveling: How do you do it?. I work in the event/tradeshow industry so I'm on the road a lot, sometimes for a few days in a row. Any tips/tricks on how to maintain your diet and workout?
0non-cybersec
Reddit
Bootstrap Datepicker with multiple months. <p>Is there any bootstrap datepicker available that supports displaying multiple months? There is an option in jquery-ui datepicker: <code>numberOfMonths</code>. </p> <p>I need something like this: <a href="http://jqueryui.com/resources/demos/datepicker/multiple-calendars.html">http://jqueryui.com/resources/demos/datepicker/multiple-calendars.html</a></p>
0non-cybersec
Stackexchange
Can someone help me identify these players?.
0non-cybersec
Reddit
Proving that a regular value of a smooth function isn&#39;t in the boundary of the counter-domain. <p>Suppose $X$ is a manifold without boundary and $Y$ is a manifold. </p> <p>Suppose there is a smooth function $f: X \rightarrow Y$ and we are given a $y \in Y$ such that $y$ is a regular value of $f$ and $f^{-1}(y) \neq \emptyset$.</p> <p>Then $y$ is not in the boundary of $Y$. </p> <p>I believe there would be some contradiction with the boundary of $X$ being void.</p> <p>This is somewhat weird because i can't seem to find any connection between these hypothesis.</p> <p>Any help would be appreciated.</p>
0non-cybersec
Stackexchange
Luxemburg's Little Switzerland [2400x1594].
0non-cybersec
Reddit
[Image] Came across this stone a few miles into my morning hike..
0non-cybersec
Reddit
What song that everybody around you loves do you hate?. For me, I cannot stand "Let it Be" by the Beatles.
0non-cybersec
Reddit
How insecure are 775 permissions on Joomla core folders?. <p>I recently uploaded a site with all folders set to -755 permissions and files to -644 permissions. But Joomla tells me "unwritable" for all folders listed under Directory Permissions. Now I changed some folders to -775 and this seems to have solved the problem for ones I changed so long, listing them "writable" rather than "unwritable", however, how bad is this in terms of security?</p> <p>Can folders like this be hacked in any way?</p>
0non-cybersec
Stackexchange
Check out my ice cubes 🍍.
0non-cybersec
Reddit
How to ping a Teams channel with @channel from a Flow?. <p>I am trying to use Microsoft Flow to post a daily message to a Microsoft Teams channel that will notify the users following that channel. When I create the Flow, the message that I write along with dynamic content does not get posted to the channel correctly.</p> <p>I've since figured out how to have a dynamic date with the guide here: <a href="https://flow.microsoft.com/en-us/blog/working-with-dates-and-times/" rel="nofollow noreferrer">https://flow.microsoft.com/en-us/blog/working-with-dates-and-times/</a></p> <p>The resulting Flow still does not notify the channel when posted. <img src="https://cdn.discordapp.com/attachments/286145374656397313/575326329864454159/Capture.PNG" alt="Updated Flow"></p> <p>Here is the resulting post in the channel from before I figured out the date issue: <img src="https://cdn.discordapp.com/attachments/286145374656397313/575318353414062083/Capture.PNG" alt="Results"></p> <p>The message does not notify the channel.</p> <p>I expect that the @channel mention would notify the channel. However, with Teams, when you type @channel, you need to pick the channel you want to mention. Is there a way to mention the channel in this way?</p>
0non-cybersec
Stackexchange
How do I add a local script file to the HTML of a WebBrowser control?. <p>This seems really dumb. I've tried a bunch of different ways and it's just not working. I have a WinForms app with a WebBrowser control. If I try with a raw html file on my desktop using the same src string, the src I put together works fine. But plugging the same stuff into the WebBrowser control won't work.</p> <p>Here's my code:</p> <pre><code>HtmlElementCollection head = this.wbPreview.Document.GetElementsByTagName( "head" ); if (head != null) { HtmlElement elm = this.webBrowserControl.Document.CreateElement("script"); string mySource = Environment.CurrentDirectory + @"\MyScriptFile.js"; elm.SetAttribute("src", mySource); elm.SetAttribute("type", "text/javascript"); ((HtmlElement)head[0]).AppendChild(elm); } </code></pre> <p>The WebBrowser doesn't get the script. However, if I change "mySource" to an external resource (via http://), it works fine!</p> <p>Help!</p>
0non-cybersec
Stackexchange
I want to learn how to use Linux, what is the best resource for me to get started?. Never used Linux beforeI downloaded Ubuntu through VM and tried to install Java using the terminal. I was sooooooo confused.... I want to start from the very basics. What is a good guide to get started? Any online courses or book recommendations?
0non-cybersec
Reddit
Why is it that my 2014 MacBook pro faster than my 2017 iMac. <p>My MacBook is old and overheats a lot, and my iMac is new, has 4k resolution, a quad core CPU, but it's slow.</p> <p>The main difference is that my new iMac has a 1TB HDD, and my old MacBook has a 128GB SSD.</p> <p>Why is the older computer faster than the new one? What can I do to speed it up?</p>
0non-cybersec
Stackexchange
need help for my parts in snapcraft.yaml. <p>Am trying to add these packages as parts for my snap :</p> <ul> <li><p>PHP7 (of course will need apache2) &amp;&amp; (libapache2-mod-php5 \ php7.0-mcrypt \ php7.0-curl \ php7.0-gd \ php7.0-cli \ php7.0-cgi \ php7.0-imagick \ php7.0-common \ php7.0-imap \ php7.0-json \ php7.0-readline \ php7.0-sqlite \ php7.0-xcache \ php7.0-mysql);</p></li> <li><p>openssh-server</p></li> <li>sendmail</li> <li>default-jdk</li> <li>maven2</li> <li>unzip</li> <li>mysql-client</li> <li>nagios-plugins</li> <li>nagios-nrpe-server</li> </ul> <p>If You can help me please what should i declare in parts of my snapcraft.yaml file (i mean source, sourcetype, plugin ...)</p>
0non-cybersec
Stackexchange
My mom and dad in the 80's.
0non-cybersec
Reddit
US attorney general says encryption creates security risk.
0non-cybersec
Reddit
Show that $lim \frac{n^{2}}{n!} =0$. <p>Please check my proof and point mistake </p> <p>Consider </p> <p>$$\frac{n^{2}}{n!} = \frac{n}{(n-1)!}$$</p> <p>$$\frac{n}{(n-1)!} &lt; \frac{n}{(n-2)!}$$</p> <p>Then</p> <p>$$ \frac{n}{(n-2)!} &lt;\epsilon for every n&gt;N$$</p> <p>$$ \frac{1}{\epsilon }&lt; \frac{(n-2)!}{n} for every n&gt;N$$</p> <p>We choose $N=\frac{1}{\epsilon }$</p> <p>Therefore</p> <p>$$ \frac{(n-2)!}{n}&gt;\frac{(N-2)!}{N}&gt;\frac{n^{2}}{n!}&gt;\frac{1}{\epsilon } $$</p> <p>therefore limit converge to 0</p>
0non-cybersec
Stackexchange
Coherence theorem for tetracategories, weak $n$-categories. <p>Is there a coherence theorem/conjecture for tetracategories (weak <span class="math-container">$4$</span>-categories)? </p> <p>Todd Trimble mentions in his <a href="http://math.ucr.edu/home/baez/trimble/tetracategories.html" rel="nofollow noreferrer">notes</a> on tetracategories that his pasting definitions are essentially unambiguous due to the tricategorical coherence theorem of Gordon-Power-Street, and more than a decade has passed since then. </p> <p>Does the current state of the art have a coherence conjecture/theorem for tetracategories, or even all weak <span class="math-container">$n$</span>-categories?</p>
0non-cybersec
Stackexchange
r/GetMotivatedBuddies . That is all..
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
Ace Attorney 5 is coming to 3DS, stars Phoenix Wright!.
0non-cybersec
Reddit
Best type of chair to while sitting at desk?. Hi there, for a long time the chair I have used at my desk has been one similar to [this](http://static.traderscity.com/board/userpix18/18256-recliner-sofa-chair-leather-solid-wood-frame-1.jpg) and I realize I need to get a chair better for my back and posture. I was just wondering what type of chair would be best for me to use to keep a good posture and to be the most beneficial for my health in the long-term future. Even if there was a possible chair which would somehow keep some muscles activated while sitting. Thanks!
0non-cybersec
Reddit
Where can I find the definition of &quot;eth0&quot; in my Ubuntu 14.04 OS?. <p>I cannot find the definition of <code>eth0</code> in either <code>/etc/network/interfaces</code> or <code>/etc/NetworkManager/NetworkManager.conf</code>, but <code>eth0</code> works perfectly.</p> <p>So who can tell me in which configuration file I can find the definition of <code>eth0</code>?</p>
0non-cybersec
Stackexchange
check whether the number is nearly equal javascript. <p>I want to know whether it is possible?</p> <p>Let Suppose:</p> <pre><code>var a = 2592; var b = 2584; if(a nearly equal to b) { // do something } </code></pre>
0non-cybersec
Stackexchange
Can Bitcoin-Qt be configured to trim the blockchain?. <p>I run <a href="https://en.bitcoin.it/wiki/Bitcoin-Qt">Bitcoin-Qt</a> and <a href="https://bitcoinarmory.com/">Bitcoin Armory</a> on a laptop. I don't have the space to store the whole 20&nbsp;GB (or however big it is now) blockchain.</p> <p>I understand the need to run through the entire thing for security, but I'd like it to only store relatively recent blocks + the summarized version (for example, the database of unused outputs / computed ledger). I'd like good security; I just don't have the space to store the whole thing.</p> <p>Is there some way to configure Bitcoin-Qt / bitcoind to trim its data to a more reasonable size after it's gone through and processed the chain?</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
ServiceStack - Year, Month, and Day parameters describe an un-representable DateTime even using JsConfig. <p>I have looked at multiple resources online, but whatever I try just doesn't seem to work. What am I doing wrong?</p> <p>using directives</p> <pre><code>using ServiceStack; using ServiceStack.Text; using System; using System.Collections.Generic; using System.Globalization; using System.IO; </code></pre> <p>Code</p> <pre><code>JsConfig&lt;DateTime&gt;.DeSerializeFn = str =&gt; DateTime.ParseExact(str, "dd/MM/yyyy hh:mm", CultureInfo.InvariantCulture); using (var fs = File.Open(@"C:\temp\data.csv", FileMode.Open, FileAccess.Read, FileShare.ReadWrite)) { var data = CsvSerializer.DeserializeFromStream&lt;List&lt;Class&gt;&gt;(fs); } </code></pre> <p>Also tried</p> <pre><code>JsConfig&lt;DateTime&gt;.DeSerializeFn = str =&gt; DateTime.ParseExact(str, "dd/MM/yyyy hh:mm", CultureInfo.InvariantCulture); var list = File.ReadAllText(@"C:\temp\data.csv").FromCsv&lt;List&lt;Class&gt;&gt;(); </code></pre> <p>And what is in the csv file?</p> <p>StartDate, FirstRedemptionDate, FirstSubscriptionDate</p> <p>01/08/2014 00:00, 31/08/2014 00:00, 01/08/2014 00:00</p> <p>30/09/2014 00:00, 01/08/2015 00:00, 30/09/2013 00:00</p>
0non-cybersec
Stackexchange
Amazon athena can&#39;t read S3 JSON Object files and Athena select query returns empty result sets for JSON key columns. <p>I create a table in Athena with below structure</p> <pre><code>CREATE EXTERNAL TABLE s3_json_objects ( devId string, type string, status string ) ROW FORMAT SERDE 'org.openx.data.jsonserde.JsonSerDe' WITH SERDEPROPERTIES ( 'ignore.malformed.json' = 'true') LOCATION 's3://mybucket/folder1/data/athena_test/'; </code></pre> <blockquote> <p>S3 bucket objects contains JSON structure like this</p> <pre><code>{ "devId": "00abcdef1122334401", "type": "lora", "status": "huihuhukiyg" } </code></pre> </blockquote> <p>However below SQL working correctly and return the correct result for only <strong><em>count</em></strong></p> <pre><code>SELECT count(*) as total_s3_objects FROM "athena_db"."s3_json_objects" </code></pre> <blockquote> <p>BUT whenever I query below SQL select statement to fetch the JSON values from S3, It's returns result sets with empty values for columns</p> <pre><code>SELECT devid FROM "athena_db"."s3_json_objects" SELECT json_extract(devid , '$.devid') as Id FROM "athena_db"."s3_json_objects" SELECT * FROM "athena_db"."s3_json_objects" </code></pre> <p><a href="https://i.stack.imgur.com/njDEl.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/njDEl.png" alt="enter image description here"></a></p> </blockquote> <p>Also, I review these links before post this question on StackOverflow and <a href="https://docs.aws.amazon.com/athena/latest/ug/extracting-data-from-JSON.html" rel="nofollow noreferrer">AWS Athena doc</a></p> <p><a href="https://stackoverflow.com/questions/45738821/cant-read-json-file-via-amazon-athena">Can&#39;t read json file via Amazon Athena</a></p> <p><a href="https://stackoverflow.com/questions/50906730/aws-athena-json-extract-query-from-string-field-returns-empty-values">AWS Athena json_extract query from string field returns empty values</a></p> <p>Any comments or suggestions would be much appreciated.</p>
0non-cybersec
Stackexchange
Question about biased estimator. <p>Assume $X$ is a random variable from a population with normal distribution. Using the likelihood function I get the expression below: $$\hat{\sigma}_X^2 = \sum_{i=1}^n \frac{(X_i-\mu)^2} n$$ for variance.</p> <p>I want prove that, $\operatorname{E}[\hat{\sigma}_X^2]=\frac{n-1} n \sigma_X^2$.</p> <p>I begin ...</p> <p>$$\operatorname{E}\left[\hat{\sigma}_X^2\right]=\dfrac 1 n \operatorname{E} \left[\sum_{i=1}^n (X_i-\mu)^2\right]$$</p> <p>$$\frac 1 n \left( \operatorname{E}\left[(X_1-\mu)^2\right] + \operatorname{E}\left[(X_2-\mu)^2\right] + \cdots + \operatorname{E} \left[ \left( X_n-\mu \right)^2 \right]\right)$$</p> <p>pdta: $\mu$ is a theorical mean (not estimator of mean)</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
My grandfather on base holding a brew and a dog ca. 1965.
0non-cybersec
Reddit
Windows Server as a Domain Controller without a static IP. <p>I'm quite new to networking with Windows Server so please bear with me. I have Windows 2008 Server machine that I want to use a a domain controller. I'm currently in a Regus shared office and we're using their network for internet. Their network uses DHCP to assign IP addresses so the Windows Server can't have a static IP which causes problems with it being a domain controller.</p> <p>Is there a way I can still make the domain controller work with a dynamic IP address? I'm using the Windows Server for file services, print services and active directory. </p> <p>Appreciate the help.</p>
0non-cybersec
Stackexchange
Ori and the Blind Forest: Definitive Edition - Launch Trailer.
0non-cybersec
Reddit
Moved DC Server and all FSMO Roles, Demoted old DC, but now it can&#39;t connect. <p><a href="https://i.stack.imgur.com/NNnIj.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/NNnIj.png" alt="enter image description here"></a>I moved the DC FSMO roles to a new DC (2012 R2) server, seemed like everything was fine, then I demoted the old one as I was having issues. Then once it was demoted, I can no longer connect to the AD services from within the DC controller. <a href="https://i.stack.imgur.com/RDR7g.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/RDR7g.png" alt="enter image description here"></a></p> <p>Here are the steps that I took to transfer from the old DC controller before I demoted it. <a href="https://blog.robseder.com/2015/09/01/switching-the-primary-domain-controller-in-active-directory-fsmo/" rel="nofollow noreferrer">https://blog.robseder.com/2015/09/01/switching-the-primary-domain-controller-in-active-directory-fsmo/</a></p> <p>How can I fix this? I have checked the services and everything seems to be running.</p>
0non-cybersec
Stackexchange
Google Cloud VPN with multiple on-premises networks. <p>I have a project on GCP and I want to setup site-to-site VPN between this project and multiple geographical branches.</p> <p>I successfully setup VPN between Cloud VPN and one of the branches.</p> <p>The problem is when I try to setup the VPN between the cloud VPN and the remaining branches ... Cloud VPN will not allow me to use the same Static IP address that I used in the first branch.</p> <p>Is there a way in Google Cloud VPN that will allow me to setup site-to-site VPN between each branch and Cloud VPN using only one Static IP?</p> <p>Thank you!</p>
0non-cybersec
Stackexchange
How to run subshell commands over SSH?. <p>I have a cluster of computers which are connected via passwordless SSH and I have written a utility which runs a command over the entire cluster. The way it does it is by picking up machines present in a file, looping over them while running the command specified via SSH.</p> <p>Now I want to run a kill command over the cluster. The way I do this is by <code>grep</code>'ing the process IDs and then running the kill command like this:</p> <pre><code>kill -9 $(ps -ef | grep service_name | awk '{print $2}') </code></pre> <p>But when I run this command, it loops over one machine, executes the command, loops over the second machine and just exits without even executing the command. So the command finally ends up executing on only one machine.</p> <p>I read about this a bit and found out that subshell commands <code>cmd1 $(cmd2)</code> run over SSH don't properly execute.</p> <p>Can anyone provide me a workaround.</p>
0non-cybersec
Stackexchange
Ubuntu-gnome now alone on harddrive, how to remove multiboot menu. <p>I want to remove all trace of multi-boot now and make Ubuntu boot up without grub that was installed when Windows 7 was there. Now Windows 7 is gone but not the boot menu. </p> <p><em>How do I remove this?</em> </p>
0non-cybersec
Stackexchange
Maven 3 does not update snapshot dependency from local repository. <p>I am trying to use external library inside my maven project. Since I want the project to build out of the box on any machine, I don't want to use <code>mvn install</code> solution. I have therefore defined local repository in my pom.xml:</p> <pre><code> &lt;dependency&gt; &lt;groupId&gt;com.test&lt;/groupId&gt; &lt;artifactId&gt;fooLib&lt;/artifactId&gt; &lt;version&gt;1.0-SNAPSHOT&lt;/version&gt; &lt;/dependency&gt; .... &lt;repository&gt; &lt;id&gt;in-project&lt;/id&gt; &lt;snapshots&gt; &lt;updatePolicy&gt;always&lt;/updatePolicy&gt; &lt;enabled&gt;true&lt;/enabled&gt; &lt;/snapshots&gt; &lt;name&gt;In Project Repo&lt;/name&gt; &lt;url&gt;file://${project.basedir}/libRepo&lt;/url&gt; &lt;/repository&gt; </code></pre> <p>The problem is when I replace the jar in <code>libRepo</code> (without updating version number since it is just another snapshot) that this updated jar is not used (old version from <code>.m2</code> directory is used instead) even for <code>mvn -U clean install</code> How to make maven to update this jar?</p> <p><strong>EDIT</strong>: According to <a href="https://stackoverflow.com/questions/5901378/what-exactly-is-a-maven-snapshot-and-why-do-we-need-it">What exactly is a Maven Snapshot and why do we need it?</a> maven shall try to find never version of SNAPSHOT dependency, "even if a version of this library is found on the local repository". What is wrong with my setting?</p> <p><strong>DIRTY SOLUTION</strong>: Based on answer from <a href="https://stackoverflow.com/questions/2065928/maven-2-assembly-with-dependencies-jar-under-scope-system-not-included">Maven 2 assembly with dependencies: jar under scope &quot;system&quot; not included</a> following extension of my original solution seems to work:</p> <pre><code> &lt;plugin&gt; &lt;groupId&gt;org.apache.maven.plugins&lt;/groupId&gt; &lt;artifactId&gt;maven-install-plugin&lt;/artifactId&gt; &lt;executions&gt; &lt;execution&gt; &lt;id&gt;hack-binary&lt;/id&gt; &lt;phase&gt;validate&lt;/phase&gt; &lt;configuration&gt; &lt;file&gt;${repo.path.to.jar}&lt;/file&gt; &lt;repositoryLayout&gt;default&lt;/repositoryLayout&gt; &lt;groupId&gt;com.test&lt;/groupId&gt; &lt;artifactId&gt;fooLib&lt;/artifactId&gt; &lt;version&gt;1.0-SNAPSHOT&lt;/version&gt; &lt;packaging&gt;jar&lt;/packaging&gt; &lt;generatePom&gt;true&lt;/generatePom&gt; &lt;/configuration&gt; &lt;goals&gt; &lt;goal&gt;install-file&lt;/goal&gt; &lt;/goals&gt; &lt;/execution&gt; &lt;/executions&gt; &lt;/plugin&gt; </code></pre> <p>As mentioned in comment to that solution, it does not work alone, thus it works in combination with <code>in-project</code> repository (which works when the dependency is not available in local <code>.m2</code> repository) and this second parts refreshes <code>.m2</code> during every build. </p> <p>However it is still not clear to me why ordinary "SNAPSHOT" mechanism does not work (i.e. current dirty solution would work also without SNAPSHOTs as local <code>.m2</code> repo is explicitly updated every time). Is there any cleaner way?</p> <p><strong>SOLUTION</strong> (based on Aaron's answer &amp; discussion): The problem was that I tried to install file into <code>libRepo</code> using <code>install-file</code>. The actual solution is that if library updates, use </p> <pre><code>mvn deploy:deploy-file -Dfile=fooLib.jar -DgroupId=com.test \ -DartifactId=fooLib -Dversion=1.0-SNAPSHOT -Dpackaging=jar \ -Durl=file://..\libRepo -DrepositoryId=in-project </code></pre> <p>to deployed it to repo. After proper deploy, maven correctly handles SNAPSHOTs.</p>
0non-cybersec
Stackexchange
When you practice social distancing but still want to look good.
0non-cybersec
Reddit
Proof of conditional expected value where Y is a function of $X_1, X_2, ... , X_n$. <p>This comes from a stochastic processes text, although it could possibly be found in many probability texts.</p> <p>If the knowledge of <span class="math-container">$X_1, ..., X_n$</span> determines <span class="math-container">$Y$</span> completely, then the conditional expectation of <span class="math-container">$Y$</span> given <span class="math-container">$X_1, ..., X_n$</span> is equal to <span class="math-container">$Y$</span> itself.</p> <p>Proposition: If <span class="math-container">$Y$</span> can be written as <span class="math-container">$$Y = f(X_1, ..., X_n)$$</span> for some function <span class="math-container">$f$</span>, then <span class="math-container">$$E[Y|X_1, ..., X_n] = Y$$</span></p> <p>The book claims that the proof is very easy and hence omitted, but it is not obvious to me.</p> <p>I tried working with an example, the sum of two rolls of a six sided die, where all rolls are equally likely. Then let <span class="math-container">$X_1 = 1, ..., 6, X_2 = 1, ..., 6,$</span> and <span class="math-container">$Y = X_1 + X_2$</span>. So in this case <span class="math-container">$f(X_1, X_2) = X_1 + X_2 = Y$</span>. Then <span class="math-container">$P(Y|X_1, X_2) = 1$</span> if <span class="math-container">$X_1 + X_2 = Y$</span> and 0 otherwise.</p> <p>Due to the symmetry in rolling twice, I would think that the expected value would be 7, or another constant. I don't understand what it means for the expected value to be Y: isn't Y variable? Please explain what it means and the proof.</p>
0non-cybersec
Stackexchange
iOS app submission - access to username/password. <blockquote> <p>Caveat - I am not the iOS developer but have been asked to research this</p> </blockquote> <p>We submit our native iOS financial app to the Apple store for review and the person who previously managed the submission process insisted we had to provide Apple with a username and password to be able to login to our app to review the pages</p> <p>The process to create and provide Apple with a username/password is very time consuming and alerts our security teams as our app holds sensitive data about people</p> <p>Is it the case that Apple requires to be able to login to review? If so, how do people with financial/banking apps manage this? We cannot really create dummy users as this will skew our stats and as mentioned before, our security team do not like it</p> <p>Many thanks</p>
0non-cybersec
Stackexchange
Weekly Album thread: Post an album from your photos, let reddit pick the best one out of the album! - May 1 edition.. This is your Weekly Album Thread, where you are invited to share an album that you would like feedback on. Before posting give some feedback on other people's albums too. Feedback can be as little as "I like this photo the best". You do not need to write a critique and make suggestions, although that would be very nice.~~ **Post an album, and comment on at least one other album or your post will be removed.** --- --- Join us in the r/photography [FLICKR GROUP!](http://www.flickr.com/groups/rphotography/) --- ^Please ^post ^"Albums" ^not ^"Here ^are ^200 ^photos ^from ^my ^trip ^to ^Japan" ^or ^"Here ^is ^my ^flickr ^photo-stream ^or ^website."
0non-cybersec
Reddit
How to replicate Cloud SQL for PostgreSQL data to an external on-premise PostgreSQL DB. <p>I've gotten a case that I need to replicate data from Cloud SQL for PostgreSQL to an external on-premise PostgreSQL DB. I've read the document and found that Cloud SQL for PostgreSQL does not support external replication yet. I've tried to search for a solution on the internet but was unlucky to find one. Does anyone have an idea on how to do this? 3rd party solution is also welcome.</p>
0non-cybersec
Stackexchange
Exercise Facts – Pilates | Love My Philly.
0non-cybersec
Reddit
Call 1-877-729-6626 to have the Kindle fire Contact Number.
0non-cybersec
Reddit
Send error message as JSON object. <p>I have two servlet: first servlet is similar to a client and creates an <code>HttpURLConnection</code> to call the second servlet.</p> <p>I would like send a special error, formatted like a JSON object, so I call sendError method in this way: </p> <pre><code>response.sendError(code, "{json-object}") </code></pre> <p>But in the first servlet when I read error with <code>getResponseMessage</code> method I just get standard HTTP message and not my json object as a string.</p> <p>How I can get my json string?</p>
0non-cybersec
Stackexchange
Soldier Had Black Eye, Broken Nose, and Burned Genιtalia: Army Ruled it a Suicide.
0non-cybersec
Reddit
Expected travel time for regularly departing trains. <p>I'm going to ask a very simple practical question, but I believe it has some interesting mathematical properties.</p> <p>The simple variant is: trains depart every $x$ minutes and take $y$ minutes to arrive at the destination. How long should a rider expect his journey to take (waiting plus travel)?</p> <p>The more complex variant is: $n$ train lines service the stop. Each of the $i \in \{1, 2, ... n\}$ lines has trains departing every $x_{i}$ minutes and takes $y_{i}$ minutes to arrive at the destination. Assume arrival times are uncorrelated and random across lines. If the rider takes the first train on any line, what is the expected journey time?</p> <p>The final, <strong>most</strong> complex variant: it may be the case that taking the first train on any line is not optimal. (For example, if one of the train lines takes $y_{j} = 30$ minutes to arrive at the next stop while others take 20 minutes, <em>and</em> the waiting times are such that it doesn't make sense to take the slower train anyway.) Unfortunately I'm at a total loss for how to compute this, practically speaking. Mathematically it's minimizing the expectation over all subsets of $\{1, 2, ... n\}$, but I need to actually compute it so any tips would be helpful. This is more of a CS question so perhaps I'll cross-post to another site.</p>
0non-cybersec
Stackexchange
Azure Cosmos DB SDK v3 query for multiple documents fails: Gateway Failed to Retrieve Query Plan. <p>Using the Cosmos DB SQL API in the Cosmos SDK v3, I'm attempting to query the <code>projects</code> container, which has an <code>/organization</code> partition key.</p> <pre class="lang-cs prettyprint-override"><code> var cosmosDb = await Storage.GetCosmosDb(); var queryDefinition = new QueryDefinition($"SELECT * FROM projects project WHERE project.organization = '{CurrentUser.Organization}'"); var queryRequestOptions = new QueryRequestOptions { PartitionKey = new PartitionKey("organization"), }; var projectsQuery = cosmosDb.Containers[typeof(Project)] .GetItemQueryIterator&lt;Project&gt;(queryDefinition, null, queryRequestOptions); var projects = new List&lt;Project&gt;(); while (projectsQuery.HasMoreResults) { projects.AddRange(await projectsQuery.ReadNextAsync()); } </code></pre> <p>The result of this is an error:</p> <blockquote> <p>Response status code does not indicate success: 400 Substatus: 0 Reason: (Response status code does not indicate success: 400 Substatus: 0 Reason: (Gateway Failed to Retrieve Query Plan: Unknown QueryFeatures: NonValueAggregateActivityId: ceb5a509-36a0-4e20-87cd-32b6425dc757, Microsoft.Azure.Documents.Common/2.4.0.0, Windows/10.0.18362 cosmos-netstandard-sdk/3.2.1).).</p> </blockquote> <p>Am I missing something obvious? What does this error mean?</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
Pre-Cata events are live. GO GO GO.. To war, my brothers.
0non-cybersec
Reddit
Exec Python code with nonlocals. <p>Say I have three dictionaries <code>a</code>, <code>b</code> and <code>c</code>. I want to <code>exec()</code> a code snippet where <code>a</code> is the globals, <code>b</code> is the nonlocals and <code>c</code> is the locals. That is no problem for the globals and locals, as I just have to use <code>exec(code, a, c)</code> -- but what about <code>b</code>? How can I make the values in <code>b</code> visible to the code snippet as nonlocal variables?</p> <p>I think this clarifies the concept:</p> <pre><code>assert globals() == a and locals() == a def foo(): assert globals() == a and locals() == b def bar(): assert globals() == a and locals() == c exec(code) </code></pre>
0non-cybersec
Stackexchange
I am a sad PC Technician...
0non-cybersec
Reddit
Funfetti cake batter cookies.
0non-cybersec
Reddit
Lower bound of Hecke eigenvalues of Maass form. <p>If $f$ is a Maass form and $p$-Hecke eigenvalue (i.e. Hecke eigenvalue of usual Hecke operator $T_p$) of $f$ is $\lambda_f(p)$, do we know anything about lower bound of the sum$$S(x) = \sum_{x\le p\le 2x}|\lambda_f(p)|^2?$$</p> <p>To avoid Confusion $$(T_pf)(z)=\frac{1}{\sqrt{p}}\left[\sum_{b=0}^{p-1}f\left(\frac{z+b}{p}\right)+f(pz)\right]$$ Any referecne would be highly helpful.</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
$[\mathbb{Q}(A,B): \mathbb{Q}(A)]=[\mathbb{Q}(B):\mathbb{Q}]$?. <p>Suppose that I have $A,B \not \in \mathbb{Q}$ and $A \neq B$. Is it always true that $[\mathbb{Q}(A,B): \mathbb{Q}(A)]=[\mathbb{Q}(B):\mathbb{Q}]$? Example: $[\mathbb{Q}(5^{1/6},\zeta_6): \mathbb{Q}(\zeta_6)]=[\mathbb{Q}(5^{1/6}):\mathbb{Q}]=6$</p> <p>My intuition is that it is the case, but Im not sure why.</p>
0non-cybersec
Stackexchange
multicol list spacing before and after section titles. <p>How can I get consistent spacing before and after an <code>itemize</code> environment inside a <code>multicols</code> environment when the list is immediately after or immediately before the start of a section?</p> <p><img src="https://i.stack.imgur.com/JFIyT.png" alt="enter image description here"></p> <p>The list in Foo2 is an <code>enumitem</code> list and the spacing before and after the list seems to match the spacing before and after the text in Foo1.</p> <p>The list in Foo3 is the same <code>enumitem</code> list but enclosed in a <code>multicols</code> environment. There is way too much vertical space before and after the two-column list.</p> <p>The list in Foo4 is the same as Foo3 except <code>\multicolsep</code> is set to 0pt. The space before is still too much but not as bad, and there is now too little space after the list. </p> <p>How do I fix this to get consistent spacing?</p> <p>Here's the code:</p> <pre><code>\documentclass{article} \usepackage{calc} \usepackage[vmargin=1em,hmargin=0.25in+1em,papersize={2in,2.7in}]{geometry} \usepackage{titlesec} \titleformat{\section}[block]{\normalfont\large\scshape}{}{0pt}{}[\titlerule] \titlespacing*{\section}{-0.25in}{*0.25}{*0.25}[-0.25in] \usepackage{multicol} \usepackage{enumitem} \SetEnumitemKey{twocol}{ before=\raggedcolumns\begin{multicols}{2}, after=\end{multicols}, } \SetEnumitemKey{twocol0}{ before=\raggedcolumns\setlength{\multicolsep}{0pt}\begin{multicols}{2}, after=\end{multicols}, } \setlist[itemize]{leftmargin=*,nosep,} \begin{document}% \section{Foo1}Aj% \section{Foo2}\begin{itemize}\item{}Aj\end{itemize}% \section{Foo3}\begin{itemize}[twocol,]\item{}Aj\item{}Aj\end{itemize}% \section{Foo4}\begin{itemize}[twocol0,]\item{}Aj\item{}Aj\end{itemize}% \section{Foo5}Aj% \end{document} </code></pre> <p>Versions:</p> <ul> <li><code>multicol 2014/08/24 v1.8g multicolumn formatting (FMi)</code></li> <li><code>enumitem 2011/09/28 v3.5.2 Customized lists</code></li> </ul>
0non-cybersec
Stackexchange
Science this week: why bacon smells so good, a breath test for lung cancer, how to reduce global malnutrition, artificial lungs the size of sugar cubes, and more!.
0non-cybersec
Reddit
My mother has been stuck in her house and we decided to gift her a copy of Fallout 4. It has been a week and she has played every day. Today she got out of the vault. She cried the whole ride up..
0non-cybersec
Reddit
Every player on Oklahoma and Texas gets unsportsmanlike conduct penalty before kickoff.
0non-cybersec
Reddit
Have you ever heard people say that Marilyn Monroe was a robust size 12 or size 14? Turns out, that's a myth. Average measurements of her dresses show a very slim 22 inch waist..
0non-cybersec
Reddit
For those who see fitness as a lifestyle, what are the specific details of your attitudes towards things like food, exercise routines, sleep schedules etc.. Just curious, from someone who understands the importance of that kind of mindset but isn't really living by it yet. EDIT: Thank you all for taking the time to answer my question - it's been a very interesting read!
0non-cybersec
Reddit
Finding the lim inf and lim sup of a sequence. <p>I'm working on the following problem:</p> <p>Find <span class="math-container">$\lim \sup_n a_n$</span> and <span class="math-container">$\lim\inf_n a_n$</span> of the sequence given by <span class="math-container">$a_n = 1 + (-1)^n\frac{2n+3}n.$</span> </p> <p>I've done the following work so far:</p> <p>Let <span class="math-container">$\{i_n\}_n$</span> be the sequence given by <span class="math-container">$i_n = \inf\{a_k:k\ge n\}.$</span> Then, <span class="math-container">$i_n = \{-4, -2, \frac {-8}5, \frac{-10}7,\cdots\}.$</span> </p> <p>I know that the <span class="math-container">$\lim \inf_na_n = \lim_n i_n$</span>, but I can't figure out how to take the limit of <span class="math-container">$i_n$</span>. </p>
0non-cybersec
Stackexchange
Identifying unknown chip - markings erased. <p>There seems to be a (relatively) easy way to <a href="https://www.youtube.com/watch?v=4yGWuUFiFEI" rel="nofollow noreferrer">remove the markings on a chip via laser</a>. When reverse engineering a device with such a chip, what would be some methods of identifying it.</p> <p>It seems that package type and number of pins can help, are there any other methods that can be used?</p> <p>Is it possible to image the chip in some way that would reveal what was erased?</p>
1cybersec
Stackexchange
Poincar&#233; Lemma problems and computing contractions in an economical way. <p>Let $x=(A,B,C,D)$ be coordinates on $\mathbb{R}^4$.</p> <p>$\displaystyle \beta = \frac{(AdB-BdA)\wedge(dC \wedge dD)+(dA \wedge dB)\wedge(CdD-DdC)}{(A^2+B^2+C^2+D^2)^2}$</p> <p>I would like to compute $\alpha=\int_0^1 \Phi_t^* (i_{\mathbb{X}_t}\beta)dt$ as it can be shown that the conditions for the Poincaré Lemma are satisfied. It has come to my attention in a previous question that I do not attempt these question at all economically and this causes error to creep into my (potential) solutions. </p> <p>I would like to compute $i_{\mathbb{X}_t}\beta$ but</p> <p>$\displaystyle i_{\mathbb{X}_t} [ \frac{(AdB-BdA)\wedge(dC \wedge dD)+(dA \wedge dB)\wedge(CdD-DdC)}{(A^2+B^2+C^2+D^2)^2}]$</p> <p>but it is very overwhelming. How would everyone approach this question?</p> <p>$i_{\mathbb{X}_t}\beta(w_{(1)},\dots,w_{(k-1)})=\beta(\mathbb{X}_t,w_{(1)},\dots,w_{(k-1)})$is my definiton of contraction in this case.</p>
0non-cybersec
Stackexchange
login page not showing text and labels ubuntu 18.04. <p>I recently upgraded from <code>ubuntu 17.10</code> to <code>ubuntu 18.04</code>. now every time I want to log in, all labels are missing. log in button has no label, username is not showing and etc. how can I fix this?</p>
0non-cybersec
Stackexchange
What is the difference between a MonoDevelop solution file and a Visual Studio Solution file?. <p>MonoDevelop allows you to save your solution in either MonoDevelop format or Visual Studio format. What is the difference between these two formats? Are they different ways or storing the same thing? If not, what does one store that the other does not?</p>
0non-cybersec
Stackexchange
Linux Subsystem for Windows: Atom and Visual Studio Code close immediately. <p>There is a couple of guides out there on how to get GUI applications running in Linux Subsystem for Windows (WSL).</p> <p>I tried to follow a handful of them, but each of them had something in common: Both Linux native Github Atom and Linux native Visual Studio Code refused to open.</p> <p>In my last approach, following <a href="https://www.howtogeek.com/261575/how-to-run-graphical-linux-desktop-applications-from-windows-10s-bash-shell/" rel="nofollow noreferrer">this</a> overly simple guide, I don't get any error messages. Running <code>atom</code> or <code>code</code> just doesn't do anything and instantly returns.</p> <p>To put that into perspective, running <code>gvim</code> works without a problem:</p> <p><a href="https://i.stack.imgur.com/hRard.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/hRard.png" alt="enter image description here"></a></p> <p>What could be the issue here?</p> <p><strong>Edit:</strong> Some details:</p> <ul> <li>I am using Windows 10 Pro build 17134. (I am not able to join Insiders).</li> <li>I am using the default Ubuntu distribution for WSL.</li> <li>I tried using xfce4, but got the following error when trying to start Atom:</li> </ul> <p><code>assertion 'pthread_mutex_unlock(&amp;m-&gt;mutex) == 0' failed at pulsecore/mutex-posix.c:108, function pa_mutex_unlock(). aborting.</code></p> <p>This could be resolved when running <code>sudo apt remove --purge libpulse0</code> but <code>xfce4</code> depends on it.</p> <p>Or one could use Windows 10 build 17627 which was never released as far as I can tell.</p> <p>So in my latest test I am not using any desktop environment, but instead start the applications directly into <code>DISPLAY=:0.0</code> so Xming could pick it up, which it does for <code>gvim</code>. (I am using <code>LIBGL_ALWAYS_INDIRECT=1</code> too)</p> <p><strong>Edit 2:</strong></p> <p>I tried 18.04, using latest Atom release and both with and without xfce4. Neither was successful.</p>
0non-cybersec
Stackexchange
How BIG is Amazon? (2016) (They Help Power the CIA and Netflix!) [16:27].
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
What are the budgets of various space programs around the world?. NASA = ~$18 billion Russian Federal Space Agency = ? Indian Space Research Organization = ? Chinese National Space Administration = ? European Space Agency = ?
0non-cybersec
Reddit
Samsung Electronics said Monday it Galaxy S6 and S6 Edge are hot-sellers at home and abroad, and gaining momentum.
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
[MacMahon] Two things perhaps worth noting: 1) Joe Ingles was Gordon Hayward's best friend on Jazz; 2) They are represented by the same agent..
0non-cybersec
Reddit
Substitution question $\int_{-1}^{1}\frac{1}{(1+x^2)^2}\,\mathrm{d}x\ne\int_{-1}^{1}\frac{-t^2}{(1+t^2)^2}\,\mathrm{d}t$. <p>$$\int_{-1}^{1}\frac{1}{(1+x^2)^2}\,\mathrm{d}x=\frac{1}{2}+\frac{\pi}{4}$$</p> <p>Using the substitution $x=\dfrac{1}{t}$ we get $$\int_{-1}^{1}\frac{-t^2}{(1+t^2)^2}\,\mathrm{d}t=\frac{1}{2}-\frac{\pi}{4}$$</p> <p>But the integrals are not equal. Why exactly does this substitution not work?</p>
0non-cybersec
Stackexchange
Representable functions on System T. <p>In Proof and Types by Girard et alii. Section 7.4.2, I think that the authors want to show that:</p> <p>(1) <em>The set of functions definable in System T coincides with the set of recursive functions whose termination is provable in Peano arithmetic</em> </p> <p>I don't understand the arguments given to support this thesis.</p> <blockquote> <p>In particular, if t is a closed term of type $Int \to Int$ of <strong>T</strong>, it induces a function $|t|:\mathbb{N} \to \mathbb{N}$ defined by:</p> <p>$|t|(n) = m$ iff $t \overline{n} \leadsto \overline{m}$ $[\ldots]$ </p> <p>The functions $|t|$ are clearly calculable: the normalization algorithm gives $|t|(n)$ as a function of $n$. So those functions representable in <strong>T</strong> are recursive. Can we characterize the class of such functions?</p> </blockquote> <p>This is how I read this parragraph:</p> <ol> <li><p>Regarding calculability of $|t|$: using the iff one computes $|t|(n)$ by computing $t \overline{n} \leadsto \overline{m}$. Then $\overline{m}$ syntax can be more complex that an integer and in order to obtain $m$ one has to rewrite it into a normal form (which should be an integer by the term's type).</p></li> <li><p>Regarding recursivity: I believe that they stress that the normalization begins with term $t \overline{n}$ and thus $|t|$ is indirectly "recursive" in its argument.</p></li> </ol> <p>The next parragraph seems to confirm this view:</p> <blockquote> <p>$[\ldots]$ Seen as a partial algorithm, $|t|$ amounts to looking for the normal form, and, in the case where this succeeds, writing it. The normalization theorem is thus a proof of program guaranteeing termination of all algorithms obtained from $T$.</p> </blockquote> <p>From here I get the idea that every function written in $T$ is terminating. The next parragraph comes as a surprise though:</p> <blockquote> <p>Now, what are the mathematical principles necessary to prove the reducibility of a fixed term t?</p> <ul> <li><p>to be able to express the reducibility of t and of its subterms: one must be able to write a finite number of reducibilities, which can be done in Peano arithmetic (PA)</p></li> <li><p>to be able to reason by mathematical induction on this finite number of reduciblity predicates; that can again be done in PA, modulo some awful coding without significant interest (Godel numbering).</p></li> </ul> <p>Summing up, the termination is provable in arithmetic: we say that $|t|$ is provably total in PA.</p> </blockquote> <p>If every function was terminating in System T why would one want to prove in PA specifically? </p> <p>My question is if you can solve the doubts I presented or if you have your own way of showing statement (1)?</p>
0non-cybersec
Stackexchange
Measurable function. <p>Let <span class="math-container">$S$</span> be a countable set. Consider <span class="math-container">$X=S^{\mathbb{N}\cup\{0\}}$</span> the topological Markov shift equipped with the topology generated by the collection of cylinders.</p> <p>Denoted <span class="math-container">$\mathcal{B}$</span> as the Borel <span class="math-container">$\sigma$</span>-algebra of <span class="math-container">$X$</span> this is also the minimal <span class="math-container">$\sigma$</span>-algebra with respect to which all coordinate function <span class="math-container">$x\mapsto x_k$</span>, <span class="math-container">$k\geq 0$</span>, are measurable. Let <span class="math-container">$\mathcal{B}^{-n}$</span> denote the smallest sigma algebra with respect to which all the coordinate maps <span class="math-container">$x\mapsto x_k$</span> with <span class="math-container">$k\geq n$</span> are measurable.</p> <p>Let <span class="math-container">$\phi:X\to\mathbb{R}$</span> be a continuous function. When <span class="math-container">$\phi$</span> depends only on the coordinates <span class="math-container">$x_k$</span> for <span class="math-container">$k\geq n$</span>, this is, <span class="math-container">$$\phi(x)=\phi(x_n,x_{n+1},x_{n+2},\ldots)\quad\mbox{for }x\in X$$</span> we have that <span class="math-container">$\phi$</span> be <span class="math-container">$\mathcal{B}^{-n}$</span>-measurable. </p> <p>My question is, If <span class="math-container">$$\phi(x)=\phi(x_n,x_{n+1},x_{n+2},\ldots)\quad\nu-a.s\mbox{ for }x\in X,$$</span> where <span class="math-container">$\nu$</span> is a measure on <span class="math-container">$X$</span>, then <span class="math-container">$\phi$</span> be <span class="math-container">$\mathcal{B}^{-n}$</span>-measurable<span class="math-container">$\mbox{?}$</span></p>
0non-cybersec
Stackexchange
Sending email using SMTP (Gmail) from Hudson CI. <p>How can I set up Hudson CI so that I can send out emails from the server following a build failure? At the moment all I get is the following error:</p> <pre><code>com.sun.mail.smtp.SMTPSendFailedException: 530 5.7.0 Must issue a STARTTLS command first </code></pre> <p>One solution is to start Hudson as follows:</p> <pre><code>java -Dmail.smtp.starttls.enable="true" -jar /usr/share/hudson/hudson.war </code></pre> <p>However, I am already using the following to start Hudson:</p> <pre><code>sudo /etc/init.d/hudson start </code></pre> <p>I am thinking the solution is to somehow set the system property mail.smtp.starttls.enable in a property file somewhere, but I have no idea how to do that. What are my options?</p> <p>Thank you all in advance!</p>
0non-cybersec
Stackexchange
TIFU by getting a good night's sleep.. I have worked the same dead-end job for a year and a half, and recently hired on as a work-from-home tech for some DSL company. I turned in my resignation, left the old company on good terms, blah blah. Set up everything for the new job, and I was excited beyond words. This was going to be my foot in the door for advancement, this was going to be my chance to better myself, to get into the IT industry. I was due to sign on at 8:45. I woke up at 10:00. They have a strict zero-tolerance policy for tardiness, so I lost my job before I started. Good news: my manager gave me my old job back. I couldn't kick my own ass any harder right now.
0non-cybersec
Reddit
If joining a war is worth half a country's debt, then moving from a military dictatorship to trying to become a democratic country should be worth just as much..
0non-cybersec
Reddit
Getting started with game development using js/html5. <p>Anyone have experience with game development using javascript and the html5 canvas element?</p> <p>So far I have found two libraries, are either of these worth using?</p> <p><a href="http://tommysmind.com/" rel="noreferrer">http://tommysmind.com/</a> (XNA Port)</p> <p><a href="http://gamequery.onaluf.org/" rel="noreferrer">http://gamequery.onaluf.org/</a> (jquery plugin)</p> <p>Does anyone have any other resources?</p>
0non-cybersec
Stackexchange
Find $\dfrac{\Gamma(κ+m/2)}{\Gamma(2κ+m)}$ knowing that $κ$ and $m$ are real numbers?. <p>Find <span class="math-container">$\dfrac{\Gamma(κ+m/2)}{\Gamma(2κ+m)}$</span> knowing that <span class="math-container">$κ$</span> and <span class="math-container">$m$</span> are real numbers?</p>
0non-cybersec
Stackexchange
How can I remove the &quot;Waiting to install&quot; icon from the Unity sidebar?. <p>The following icon got stuck in my sidebar after installing a software from the software center and stays there infinitely.</p> <p>How can I remove the icon from the Unity sidebar?</p> <p><a href="https://i.stack.imgur.com/RKfUR.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/RKfUR.png" alt="enter image description here"></a></p> <p><a href="https://i.stack.imgur.com/N6sgO.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/N6sgO.png" alt="enter image description here"></a></p>
0non-cybersec
Stackexchange
Gran Sabana - Angel Falls, Venezuela 1024x1544] .
0non-cybersec
Reddit
I’m Bill Gates, co-chair of the Bill & Melinda Gates Foundation. Ask Me Anything.. I’m excited to be back for my fourth AMA. &nbsp; I already answered a few of the questions I get asked a lot: https://www.youtube.com/watch?v=GTXt0hq_yQU. But I’m excited to hear what you’re interested in. &nbsp; Melinda and I recently published our eighth Annual Letter. This year, we talk about the two superpowers we wish we had (spoiler alert: I picked more energy). Check it out here: http://www.gatesletter.com and let me know what you think. &nbsp; For my verification photo I recreated my high school yearbook photo: http://i.imgur.com/j9j4L7E.jpg &nbsp; **EDIT:** I’ve got to sign off. Thanks for another great AMA: https://www.youtube.com/watch?v=ZiFFOOcElLg &nbsp;
0non-cybersec
Reddit
AITA For blowing up on my friends repeatedly?. So me and a group of friends play league of legends very frequently and sometimes I get harassed and complained at for complaining about how the game we are in is going but then one of them, lets call him bob, complains about the same issue in the same manner as me but the others in the group laugh at it and back him up. Every time I've called bob out on this, I get harassed for being a dick and ruining their game. After this has happened, I end up just muting myself in Skype to try and alleviate some of the tension but then they get mad at me for not communicating the "better" way. Am I being an asshole or are my friends being assholes and playing favorites? Edit: The blowing up part comes when I get mad enough to just yell at them about it and start insulting them. Edit2: A recent example of the complaints was when there was a very fed lee sin on the other team and he kept killing everyone on our team. I would say "Man, I hate lee sin" or "This lee sin is getting really irritating to deal with" 3-5 times throughout the game and my friends including bob would tell me to stop but then a few minutes later bob would continue complaining and start blaming the person who fed the lee sin and then the others would chime in and start blaming and harassing the feeder as well.
0non-cybersec
Reddit
Battle derp mode engaged..
0non-cybersec
Reddit
Is anybody here still on Dial-Up internet?. I figure that as a mostly text-only site (comments), reddit would be a last safe haven for dial-up users.
0non-cybersec
Reddit
Capture Output of Spawned Process to string. <p><strong>Background:</strong></p> <hr> <p>I'm working on a program that needs to be able to capture the <code>stdout</code>, <code>stderr</code> and return values of a program. Ideally, I would like to capture these in a string that I store inside of my object that holds details of the process. I currently have some code that works by saving the output into a file using some (in my opinion) archaic C file handle magic. Any time I want to output the results, I open up that file and I print the contents. </p> <p>Sometimes (when a process I spawn is left running) the next execution of my executable will break down because it cannot open the file for writing. </p> <p><strong>Problem Statement:</strong></p> <hr> <p>I'm looking for a way to save the output from <code>stdout</code> of a created process in windows to one string and the <code>stderr</code> to another in a safer, more modern fashion. That way I could print those contents any time I feel like outputting the result of each created process.</p> <p><strong>My ugly code:</strong></p> <hr> <p><strong>main chunk-</strong></p> <pre><code> int stdoutold = _dup(_fileno(stdout)); //make a copy of stdout int stderrold = _dup(_fileno(stdout)); //make a copy of stderr FILE *f; if(!fopen_s(&amp;f, "name_of_my_file", "w")){ //make sure I can write to the file _dup2(_fileno(f), _fileno(stdout)); //make stdout point to f _dup2(_fileno(f), _fileno(stderr)); //make stderr point to f fork("command_I_want_to_run", &amp;pi); //run my fake fork (see below) } else{ ...//error handling } _close(_fileno(stdout)); //close tainted stdout _close(_fileno(stderr)); //close tainted stderr _close(_fileno(f)); //close f _dup2(stdoutold, _fileno(stdout)); //fix stdout _dup2(stderrold, _fileno(stderr)); //fix stderr </code></pre> <p><strong>fork-</strong> (you can think of this as just CreateProcess, but just in case anyone needs to see what happens here)</p> <pre><code>int fork(std::string s, PROCESS_INFORMATION* pi){ char infoBuf[INFO_BUFFER_SIZE]; int bufCharCount = ExpandEnvironmentStrings(s.c_str(), infoBuf, INFO_BUFFER_SIZE ); ... STARTUPINFO si; ZeroMemory( &amp;si, sizeof(si) ); si.cb = sizeof(si); ZeroMemory( pi, sizeof(*pi) ); LPSTR str = const_cast&lt;char *&gt;(infoBuf); if(!CreateProcess(NULL, str, NULL, NULL, TRUE, 0, NULL, NULL, &amp;si, pi) ){ int err = GetLastError(); printf("CreateProcess failed (%d).\n", err); CloseHandle((*pi).hProcess); CloseHandle((*pi).hThread); return err; } return 0; } </code></pre> <p><strong>Notes:</strong></p> <hr> <ul> <li>I'm using VS 2010</li> <li>I want to remain using multiple processes, not threads because I need what I run to have the freedom of its own process</li> </ul> <p><strong>Edit:</strong></p> <hr> <p>An extra note: I also try to wait for the process to finish right after calling the function that runs the code given, so the results of <code>stdout</code> and <code>stderr</code> are available to me at that time.</p>
0non-cybersec
Stackexchange
Proof of conditional expectation. <p>Suppose that we have three integrable random variables $x,y,z$ on a probability space $(X,\Sigma, \mathbb{P})$ such that $x$ and $z$ are independent, and $y$ and $z$ are also independent. Show that for any $A\in \sigma(y)$ and $B\in\sigma(z)$, we have $$\int_{A\cap B}\mathbb{E}(x\,|\,y)\,\mathrm{d} \mathbb{P}=\int_{A\cap B}x\,\mathrm{d}\mathbb{P}.$$</p> <p>My partial proof is as follows: $$\int_{A\cap B}\mathbb{E}(x\,|\,y)\,\mathrm{d} \mathbb{P}=\int_X\mathbb{E}(x\,|\,y) \cdot \mathbb{1}_{A\cap B}\,\mathrm{d} \mathbb{P}=\int_X [\mathbb{E}(x\,|\,y)\cdot \mathbb{1}_A]\cdot \mathbb{1}_B\,\mathrm{d} \mathbb{P}=\int_B\mathbb{E}(x\cdot \mathbb{1}_A\,|\,y) \,\mathrm{d} \mathbb{P}=\int_X\mathbb{E}(x\cdot \mathbb{1}_A\,|\,y)\cdot\mathbb{1}_B\,\mathrm{d}\mathbb{P}=\mathbb{E}[\mathbb{E}(x\cdot\mathbb{1}_A\,|\,y)\cdot \mathbb{1}_B]=\mathbb{E}(\mathbb{E}(x\cdot\mathbb{1}_A\,|\,y))\cdot \mathbb{E}(\mathbb{1}_B)=\mathbb{E}(x\cdot\mathbb{1}_A)\cdot \mathbb{E}(\mathbb{1}_B),$$ where the third equation follows from the $\sigma(y)$-measurability of $\mathbb{1}_A$; the sixth equation follows from the independence between $\sigma(y)$ and $\sigma(z)$, since we know that $\mathbb{E}(x\cdot \mathbb{1}_A\,|\,y)$ is $\sigma(y)$-measurable; and the seventh equation is due to the Iterated Expectation Law. </p> <p>But I cannot proceed. I want to show that $\mathbb{E}(x\cdot\mathbb{1}_A)\cdot \mathbb{E}(\mathbb{1}_B)=\mathbb{E}(x\cdot\mathbb{1}_A\cdot \mathbb{1}_B)$, and after that the desired result follows. However, even we know that $x$ and $\mathbb{1}_B$ are independent, and $\mathbb{1}_A$ and $\mathbb{1}_B$ are independent, in general we do not have that $x\cdot \mathbb{1}_A$ is independent to $\mathbb{1}_B$. Is my proof above flawed, or how to proceed? Any reply and hints are highly appreciated!!</p>
0non-cybersec
Stackexchange
Does $\tan x\cdot \cos x$ equal $\sin x$?. <p>Is it true that $\tan x\cdot \cos x = \sin x$? If I put $x=30$ in my calculator then I don't get the same answer as $\sin 30$, why is this? Don't the two cosines cancel out? I'm probably missing something really stupid here.</p>
0non-cybersec
Stackexchange
How do you create textfield padding in Swift 4?. <p>I have a textfield called </p> <pre><code>nameTextField </code></pre> <p>I rounded the corners with the </p> <pre><code>nameTexfield.layer.cornerRadius = 5 </code></pre> <p>Now, the text within the textfield is touching the left side. I want to create padding between the text and border. Every post I find uses cgRect, but Swift no longer supports that. Please provide the correct code if you can figure it out and please explain the answer if you can. I appreciate the help! I also need to know where to put the code if there is any.</p>
0non-cybersec
Stackexchange
Scientists Warn of Perilous Climate Shift Within Decades, Not Centuries.
0non-cybersec
Reddit
Is there any (uncommon) things you do daily that makes you look better?. Looking to hear tips on little things that make you look like you go the extra mile. My only one is that I let hair conditioner sit in my hair for a few min before rincing. I know this is what you are supposed to do, but even when gelling my hair, the difference is pretty significant.
0non-cybersec
Reddit
Tennis Deuce probability to win. <p>Suppose you're at a "deuce" in the game of tennis. This means that to win the match, you need to be two points ahead of the other player (i.e. you need to score two points in a row).</p> <p>The probability that you win a point at any given time is 0.25. What is the probability that you win the match?</p> <p>-- Find the error in the following solution:</p> <p>Let p be the probability that we win the match. Then we can write: <span class="math-container">$ p = 0.25\cdot[0.25 + 0.75\cdot p] + 0.75\cdot [0.25\cdot p + 0.75\cdot 0]$</span> p = 1/10 (this is incorrect, correct answer is 1/12)</p>
0non-cybersec
Stackexchange
Show that a next polynomial function sequence converges uniformly to $\sqrt{x}$. <p>Show that polynomial function sequence <span class="math-container">$(P_n)$</span> define recursively as <span class="math-container">$P_0(x)=0$</span> and <span class="math-container">$P_{n+1}(x)=P_n(x)+\frac{1}{2}(x-P_n^2(x))$</span> converges uniformly in <span class="math-container">$[0,1]$</span> to the function <span class="math-container">$f(x)=\sqrt x$</span>.</p> <p>I've tried to show that is a Cauchy's sequence but I've not got something. Because I don't know how to explain that <span class="math-container">$|P_n^2(x)-x|$</span> is a small quantity.</p>
0non-cybersec
Stackexchange
Owl slaughters 70 fools of the animal kingdom, and then designs a lovely home with their fuzzy carcasses..
0non-cybersec
Reddit
3D linear transport equation solution. <p>If we consider the following transport equation with <span class="math-container">$t&gt;0$</span> and <span class="math-container">$x\in \mathbb{R^3}$</span>: <span class="math-container">$$\begin{cases} \partial_t f(t,x) + v(t,x). \nabla f(t,x)=0\\ f(0,x)=g(x) \end{cases}$$</span> And if we define the follwing function <span class="math-container">$X$</span> defined on <span class="math-container">$(s,t,x)\in\mathbb{R^+}\times\mathbb{R^+}\times\mathbb{R^3}$</span>: <span class="math-container">$$\begin{cases} \frac{d}{ds}X(s,t,x)=v(t,X(s,t,x))\\ X(t,t,x)=x \end{cases}$$</span></p> <p>I want to prove that the function: <span class="math-container">$f(t,x)=g(X(0,t,x))$</span> is a solution the firt PDE (transport equation).</p> <p>My idea:</p> <p>I tried to calculate <span class="math-container">$$\partial_t f(t,x) + v(t,x). \nabla f(t,x)=\partial_t g(X(0,t,x)) + v(t,x). \nabla g(X(0,t,x))$$</span> <span class="math-container">$$\partial_t f(t,x) + v(t,x). \nabla f(t,x)=\partial_t X(0,t,x) \nabla g(X(0,t,x)) + v(t,x). \nabla g(X(0,t,x))$$</span> <span class="math-container">$$\partial_t f(t,x) + v(t,x). \nabla f(t,x)=[\partial_t X(0,t,x) + v(t,x)] \nabla g(X(0,t,x))$$</span> But i dont what to do next to show that it equals to zero.</p>
0non-cybersec
Stackexchange
Finniegan got some lumps removed from his tummy, and now he has to wear heckin pajamas until he heals.
0non-cybersec
Reddit