text
stringlengths
3
1.74M
label
class label
2 classes
source
stringclasses
3 values
Divergence theorem, Gauss&#39;s theorem. <p><span class="math-container">$$\mathbf F(x,y,z)=x\mathbf i + y\mathbf j+z\mathbf k$$</span> and <span class="math-container">$$ D=\left\{x,y,z\in \mathbf R^3 : 0\le z \le1-x^2-y^2\right\}.$$</span></p> <p>I want to calculate both</p> <p><span class="math-container">$$\iiint_D\nabla\cdot\mathbf F\,dV = \oint_{\delta D}\mathbf F \cdot\mathbf N\,dS.$$</span></p> <p>So far:</p> <p><span class="math-container">$$\nabla f=1+1+1=3$$</span></p> <p><span class="math-container">$$\oint_{\delta D}f\cdot n\,dS=\iiint_D=3\,dV$$</span></p> <p>and after that</p> <p><span class="math-container">$$v(D)=\int_0^\pi\int_0^{2\pi}\int_0^rr^2\sin(\phi)\,dr\,d\theta \,d\phi=\frac{4\pi r^3}{3}.$$</span></p> <p>But what is the <span class="math-container">$r$</span> in there? Is it <span class="math-container">$r=1$</span>?</p> <p><span class="math-container">$$\frac{4\pi1^3}{3}=\frac{4\pi}{3}?$$</span></p> <p>And after that:</p> <p><span class="math-container">$$\oint_D\mathbf F\cdot \mathbf N\,dS=\int_0^\pi\int_0^{2\pi}r(\theta,\phi)\cdot \mathbf n\,dS=\int_0^\pi\int_0^{2\pi}r^3\sin(\phi)\,d\theta\,d\phi=4\pi r^3,$$</span> and this <span class="math-container">$4\pi r^3$</span> should be equal to <span class="math-container">$\dfrac{4\pi}{3}$</span> but is it not. There must be some mistake somewhere but where?</p>
0non-cybersec
Stackexchange
Is $\sum _{n=1} ^ \infty \frac{1}{(x+\pi)^2 \cdot n^2 }$ uniformly convergent on $(-\pi , \pi)$?. <blockquote> <p>Is this series uniformly convergent on <span class="math-container">$(-\pi , \pi)$</span>: <span class="math-container">$$\sum _{n=1} ^ \infty \frac{1}{(x+\pi)^2 \cdot n^2 }\,?$$</span></p> </blockquote> <p>My Attempt:</p> <p>If the series were convergent we would have got a natural number <span class="math-container">$k$</span> for a fixed <span class="math-container">$\epsilon&gt;0$</span> such that <span class="math-container">$\sum _{n=k} ^ \infty \frac{1}{(x+\pi)^2 \cdot n^2 } &lt; \epsilon$</span> for all <span class="math-container">$x \in (-\pi , \pi)$</span>. But for this case we will get the term <span class="math-container">$f_n$</span> in the summation greater than <span class="math-container">$1$</span> for <span class="math-container">$-\pi + 1/n$</span>. So for every <span class="math-container">$n$</span> we will get a <span class="math-container">$x\in (-\pi , \pi) $</span> such that summation at <span class="math-container">$x$</span> is greater than <span class="math-container">$1$</span>.</p> <p>That's why the series is not uniformly convergent on <span class="math-container">$(-\pi , \pi)$</span>.</p> <p>Can somebody please tell me if I have gone wrong anywhere?</p>
0non-cybersec
Stackexchange
How to setup DHCP only on the wireless side of a router or AP?. <p>We are currently running a simple network with unmanaged switches. We already have a Internet feed with router and DHCP. Im looking to add in another separate internet feed, with a 2nd router (NO DHCP on it and competely separate IP Schema) and hard code a wireless access point back to the 2nd router. But would like DHCP to feed out only on the wireless side, without it flooding back up stream on the hard wired network lines and interfering with the current primary DHCP. All of the above devices would exist on the same physical (again unmanaged switches) network.</p> <p>Is this possible? Any model or devices suggested? The why of all of this is convoluted!</p>
0non-cybersec
Stackexchange
Find a program that could be in several different places with Ansible. <p>I'm ansibilizing a couple servers for a python application, some of which are CentOS, others are debian. </p> <p>Is there a convenient way to locate a program that could be installed in various places, without resorting to the example below, and without repeating the same command several times (with different <code>when:</code> clauses)? </p> <p>For example, on CentOS it's <code>/sbin/nologin</code>, on debian it's <code>/usr/sbin/nologin</code>. I have been trying to find and register the path in a variable, but it seems silly: </p> <pre><code>- name: Find nologin command: ls -1 /usr/sbin/nologin ignore_errors: yes register: nologin_command - name: Find nologin command: ls -1 /sbin/nologin register: nologin_command when: nologin_command.stdout == "" # nologin_command.stdout will be the path to one or the other </code></pre> <p>In my particular case, I'm actually trying to find the correct <code>virtualenv_command</code> for the <a href="http://docs.ansible.com/ansible/pip_module.html" rel="nofollow noreferrer">pip</a> module. I have to be specific or I'll get the wrong one (i.e., for Python 2) or a path that doesn't exist. </p> <p>My systems will have one of pyvenv, pyvenv-3.4, virtualenv, or virtualenv-3.4. At least one will be present, but, depending on the operating system and how python was installed, they are in different places or don't exist at all. </p>
0non-cybersec
Stackexchange
Naor Pinkas OT - senders security; reduction to DDH. <p>This question concerns the security of the sender in the Naor Pinkas OT. The protocol can be found <a href="https://crypto.stanford.edu/pbc/notes/crypto/ot.html" rel="nofollow noreferrer">here</a>.</p> <p>We can reduce the security to the DDH assumption. How exactly is this done? Can someone construct an adversary that shows this reduction?</p> <p>To simplify the question. Working with the simulation based definitions the real and simulated views leave us with the job of showing $(g^a, g^b, g^c, g^{a\cdot b})$ and $(g^a, g^b, g^{a\cdot b}, g^c)$ are indistinguishable. </p> <p>Let us assume that $D$ can distinguish these two distributions (can distinguish with probability that is non negligible).</p> <p>That is, $$|\mathsf{Pr}[(D (g^a, g^b, g^c, g^{a\cdot b}) = 1] - \mathsf{Pr}[(D (g^a, g^b, g^{a\cdot b}, g^c)) = 1]|$$ is non negligible.</p> <p>What adversary can be constructed that breaks the DDH assumption? That is we must construct $A(D)$ (it takes in $D$, as an input) such that $$|\mathsf{Pr}[(A(D) (g^a, g^b, g^{a\cdot b}) = 1] - \mathsf{Pr}[(A(D) (g^a, g^b, g^c) = 1]|$$ is non negligible.</p> <p>Thanks</p>
0non-cybersec
Stackexchange
ffmpeg: File not found, but obviously is accessible. <p>Either I'm doing some very stupid mistake, or I've stumbled upon a very strange bug here. I'm in bash, and I want to convert a .flac to a .mp3 using ffmpeg. Running</p> <pre><code>ffmpeg -i 3\ -\ Thirty\ Seconds\ to\ Mars\ -\ Rescue\ Me.flac 3\ -\ Thirty\ Seconds\ to\ Mars\ -\ Rescue\ Me.mp3 </code></pre> <p>results in <code>3 - Thirty Seconds to Mars - Rescue Me.flac: No such file or directory</code>, although <code>stat</code> and <code>ls</code> both show the file with read permissions for the current user, and I can even view its contents using <code>less</code>.</p> <p>I suspected a problem with the filename, so I renamed the file to <code>asdf.flac</code>, which worked, but <code>ffmpeg -i asdf.flac asdf.mp3</code> still gives me <code>asdf.flac: No such file or directory</code>.</p> <p>To exclude permission issues, I already did <code>chmod -R 777 .</code> to make the directory and all files world-readable and world-writable, still no chance.</p> <p>Any ideas what could cause ffmpeg to not find the file, although it's obviously there?</p>
0non-cybersec
Stackexchange
What runs first: the partitioner or the combiner?. <p>I was wondering between partitioner and combiner, which runs first?</p> <p>I was of the opinion it is the partitiner first and then combiner and then the keys are redirected to different reducers, which appears like the partitioner, and so I'm confused. Please help me understand.</p>
0non-cybersec
Stackexchange
Little girl meets a young deer.
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
phpexcel to download. <p>hello i am new to phpexcel, and i was wondering if there is some way send the excel i have created to the clients download without saving it on my server or to delete it right after he downloads it</p> <p>i am trying to create an "export button" on a page that will give the user a "pop-up" with the excel that he wants that i have just created.</p> <p>now after i create the table i do :</p> <pre><code>$objXLS-&gt;getActiveSheet()-&gt;getColumnDimension("A")-&gt;setAutoSize(true); $objXLS-&gt;getActiveSheet()-&gt;getColumnDimension("B")-&gt;setAutoSize(true); $objXLS-&gt;getActiveSheet()-&gt;setTitle('Test Stats'); $objXLS-&gt;setActiveSheetIndex(0); $objWriter = PHPExcel_IOFactory::createWriter($objXLS, 'Excel5'); $objWriter-&gt;save(__DIR__."/test1.xls"); </code></pre> <p>but that saves it to my server</p> <p>thank you</p>
0non-cybersec
Stackexchange
My (26F) student teacher (24M) went to dinner with my (high school) students and bad mouthed me. I’m not sure how to salvage my relationship with my students.. This isn’t the typical relationship advice post, but I’m hoping you guys can help me figure out where to go from here. I am a high school choir teacher who recently hosted a student teacher. Long story short, this guy was a disaster. He showed a lot of potential in terms of presentation. Funny guy, kids took to him quickly, good overall pacing, etc. But he missed a ton of days (more sick days than I get in a year) for reasons that were sketchy at best, refused to take any constructive feedback, always taught off the cuff without any preparation, and generally was very unprofessional and immature. For example, he missed 3 days due to a back injury (I found out later that he was doing manual labor during this time that he was “unable to teach”), and he told one of my classes a FULLY DETAILED story about how his ex had cheated on him with his best friend. It definitely seemed like he viewed himself as one of the students rather than a teacher. Any attempts I made to conference with him were met with arguing. Basically anything I asked him to do (prepare to teach a song, make copies, plan a lesson, etc.) was met with statements like “Whatever, I already do everything anyways.” I was incredibly frustrated with him but I worked hard to hide this from the students. In the last two weeks he told me he was going to be a realtor anyways so I just gave him a C and sent him on his way. Today, I found out that he met with some of my students for dinner. During this dinner, he told them that I “hate my job” and I tried to fail him because I’m “jealous” of him. He told them that I talk negatively about them behind their backs and that I didn’t understand his “style of teaching”. Three girls in my program brought this to me because they wanted to hear “my side” of things. I’m fuming. All my students really bonded with him, but my boys especially loved him, and he used this bond to try to drive a wedge between me and my students. This may be hard to explain, but as a choir director, my kids and my job mean EVERYTHING to me. I work 70+ hours a week prepping music, organizing field trips and fundraisers, running after school rehearsals, etc. I spend four years with them before they graduate and I help them through family troubles, boyfriends, anxiety, you name it! Now I feel that they are going to question me and my motives because this petulant child decided to knock me down a peg. I don’t know which students specifically were there when he went on his anti-me rant, but I got the impression it was quite a few. Should I address this with all my students? Just a few from the group? Let it go? I want to address this with him too, but I don’t know how to do it without dropping down to his level and being an unprofessional jerk. I want to set a good example for my kids but I really don’t know how. Any advice is appreciated.
0non-cybersec
Reddit
How can non-Coinbase customers pay to Coinbase from Android?. <p>Scenario: Say I want to create a shopping app on android. After filling the shopping cart, when the user wants to check out, he is asked to pay me the bitcoins.</p> <p>I have created an account on Coinbase.com.</p> <p>Questions: After adding the items in the app to the cart, the user is directed to the coinbase payment page. How is the user going to pay me, if he doesn't have a Coinbase account but some other wallet? If he pays me the required bitcoins, how will I relate the user's payment with the invoice of the order generated for him?</p>
0non-cybersec
Stackexchange
Destructoid giving away 5,000 RaiderZ beta codes.
0non-cybersec
Reddit
Merging 2 REST endpoints to a single GraphQL response. <p>New to graphQL, I'm Using the following schema:</p> <pre><code>type Item { id: String, valueA: Float, valueB: Float } type Query { items(ids: [String]!): [Item] } </code></pre> <p>My API can return multiple items on a single request of each type (A &amp; B) but not for both, i.e: </p> <p>REST Request for typeA : <code>api/a/items?id=[1,2]</code><br> Response: </p> <pre><code>[ {"id":1,"value":100}, {"id":2,"value":30} ] </code></pre> <p>REST Request for typeB : <code>api/b/items?id=[1,2]</code><br> Response: </p> <pre><code>[ {"id":1,"value":50}, {"id":2,"value":20} ] </code></pre> <p>I would like to merge those 2 api endpoints into a single graphQL Response like so:</p> <pre><code>[ { id: "1", valueA: 100, valueB: 50 }, { id: "2", valueA: 30, valueB: 20 } ] </code></pre> <hr> <p><strong>Q:</strong> How would one write a resolver that will run a <strong>single</strong> fetch for each type (getting multiple items response) making sure no unnecessary fetch is triggered when the query is lacking the type i.e:</p> <pre><code>{items(ids:["1","2"]) { id valueA }} </code></pre> <p>The above example should only fetch <code>api/a/items?id=[1,2]</code> and the graphQL response should be:</p> <pre><code>[ { id: "1", valueA: 100 }, { id: "2", valueA: 30 } ] </code></pre>
0non-cybersec
Stackexchange
Looking to purchase my first slow cooker. New to slow cooking, wanting something mix-up per mid range. Any recommendations?.
0non-cybersec
Reddit
Difference between Value Object pattern and Data Transfer pattern. <p>In which scenario can I use those design patterns in n-tier architecture?</p>
0non-cybersec
Stackexchange
Sony Develops Massive 16K, 17 Feet Tall TV.
0non-cybersec
Reddit
How do I create my own Ubuntu version?. <blockquote> <p><strong>Possible Duplicate:</strong><br> <a href="https://askubuntu.com/questions/48535/how-to-customize-live-ubuntu-cd">How to customize live Ubuntu CD?</a> </p> </blockquote> <p>I don't like unity and I don't like xubuntu or kubuntu that much, so I want to know how I can create my own Ubuntu distro! </p> <p>I want: </p> <ul> <li>a GUI </li> <li>only a terminal installed (no other unnecessary programs.)</li> </ul> <p>I don't want</p> <ul> <li><p>Unity</p></li> <li><p>no browser, games, text editors or video players.</p></li> </ul> <p>I basically want a distro that is easy to set up the way you want it. So as many ppa should be added as default. </p> <p>Is this at all possible?</p>
0non-cybersec
Stackexchange
Antoine Walker Sued for 5 Million Dollars For Stealing Kevin Jenkins’ Fiancee.
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
Good L shaped hutch desks?. Anyone know any good L shaped hutch desk? I want the non-hutch part to be for schoolwork, and the hutch part for my monitor and gaming setup. Not too expensive. Thanks guys
0non-cybersec
Reddit
[50/50] Jogger gets hit by a car so hard he loses a leg (NSFW/L) | Elemental tornado.
0non-cybersec
Reddit
The meat gods are looking down on us today boys [homemade].
0non-cybersec
Reddit
pandas: optimizing my code (groupby() / apply()). <p>I have a dataframe of shape (RxC) 1.5M x 128. I do the following:</p> <ol> <li>I do groupby() based on 6 columns. This creates ~8700 sub-groups each of shape 538 x 122.</li> <li>On each sub-group, I run apply(). This function computes the % frequency of each categorical value PER column (i.e., 122) in the sub-group.</li> </ol> <p>So my (pesudo) code:</p> <p><code>&lt;df = Read dataframe from file&gt; g = df.groupby(grp_cols) g[nongrp_cols].apply(lambda d: d.apply(lambda s: s.value_counts()) / len(d.index))</code></p> <p>The code is working OK for me so now I'm profiling it to improve performance. The apply() function takes about 20-25 minutes to run. I believe the problem is it is iterating over every column (122 times) for 8700 times (each subgroup) which may not be the best way (given the way I have coded it). </p> <p>Can anyone recommend ways I can try to speed this up? </p> <p>I tried using python multiprocessing pool (8 processes) to divide the subgroups into equal sets to process, but ended up getting some pickling error...</p> <p>Thanks.</p>
0non-cybersec
Stackexchange
Unable to install on a Samsung 305v5a. <p>Have used Ubuntu for years now. Bought a Samsung 305v5a-so2 laptop yesterday. It runs an AMD A8 quadcore. I have a CD of 10.04 and as I am not clear about whether to install 32 or 64 bit I thought I would run the trial of ubuntu from the cd to see it.</p> <p>After about 30m started getting Authentification Failure messages.</p> <p><code>Squashfs-error Unable to read fragment cash entry</code></p> <p>Then a zillion Buffer Logical error messages like 17,000+</p> <p>Should I go download 11.10, in 32bit or go and try the 64bit.</p> <p>Really don't want to screw the new laptop already but aint gonna wanna work with w7 either.</p> <p>Thanks for any help </p>
0non-cybersec
Stackexchange
Meteor last night from the Outback.
0non-cybersec
Reddit
Why is this a rational lattice?. <p>I've usually seen a rational lattice $\Gamma \subset \mathbb{R}^n$ defined like this:</p> <p>$$\displaystyle \Gamma = \{Ax : x \in \mathbb{Z}^n \},$$</p> <p>where $A \in \mathbb{Q}^{n \times n}$ is a matrix of full rank. However, some texts call $(2 \pi \mathbb{Z})^n$ a rational lattice, which does not seem to fit this definition. Is there an alternative definition of a rational lattice, or have I misunderstood the definition I've posted above? And if $(2\pi\mathbb{Z})^n$ is a rational lattice, then what distinguishes it from an irrational lattice?</p>
0non-cybersec
Stackexchange
Composition of Endomorphism and its matrix (Proof). <p>I need to show that if we have an endomorphism <span class="math-container">$\varphi$</span> defined in a vector space <span class="math-container">$V$</span> with a basis <span class="math-container">$B$</span>, the statement <span class="math-container">$M_B(\varphi))^k = M_B(\varphi^k)$</span>. I tried to proof it by using induction over <span class="math-container">$k$</span> but I feel like I missed something. My working is below:</p> <blockquote> <p>Let <span class="math-container">$V$</span> be a vector space with a basis <span class="math-container">$B =: b_1, \ldots, b_n$</span> and <span class="math-container">$\varphi$</span> an endomorphism in <span class="math-container">$V$</span> with the matrix <span class="math-container">$M_B(\varphi)$</span>.</p> <p>Show that <span class="math-container">$(M_B(\varphi))^k = M_B(\varphi^k)$</span> for <span class="math-container">$k = 1, \ldots, n$</span>.</p> <p>For <span class="math-container">$k = 1$</span>: <span class="math-container">$(M_B(\varphi))^1 = M_B(\varphi^1) \iff (M_B(\varphi)) = M_B(\varphi)$</span>, which is obviously true.</p> <p>Now we assume that <span class="math-container">$(M_B(\varphi))^{k+1} = M_B(\varphi^{k+1})$</span></p> <p>We see that <span class="math-container">$(M_B(\varphi))^{k+1} = M_B(\varphi)^k \cdot M_B(\varphi)$</span>. From induction hypothesis, we know that <span class="math-container">$(M_B(\varphi))^k = M_B(\varphi^k)$</span>, so we substitute and get:</p> <p><span class="math-container">$$(M_B(\varphi))^{k+1} = M_B(\varphi)^k \cdot M_B(\varphi) = M_B(\varphi^k) \cdot M_B(\varphi) = M_B(\varphi^{k+1})$$</span></p> </blockquote> <p>I'm thankful for any help ;)</p>
0non-cybersec
Stackexchange
How to judge website security?. <p>How can I know if visiting a website is safe? </p> <p>Is a scan with virus total good enough? If it says that the website is clean then can I be sure that I won't get hacked by visiting it? Could a website still be unsafe to visit even if virustotal says it is clean? Is it possible that a website has malicious code that is not present in virustotal database?</p> <p>What about addons like WOT (web of trust)? Can their assessment of websites be relied on?</p>
1cybersec
Stackexchange
I just want to be asked to prom. So that time of year is coming. Prom. I just wish I was asked to prom by someone (“promposed”). Almost every person has a date or a plus one to prom. Now I know that is isn’t a big deal and I should feel good to not have to worry about a date and figuring out arrangements but I wish at least someone was interested in me. I wish someone liked me or knew me enough to ask to go with me. Even if i don’t go with someone it would be nice if someone could ask to dance with me during the actual event. But there is still about two weeks until the dance so I guess i’ll see if anything changes.
0non-cybersec
Reddit
Horde webmail install - &#39;webmail-install not found&#39;. <p>I'm trying to install Horde Webmail on my Debian server, but I got stuck on error. I followed manual on <a href="http://www.horde.org/apps/webmail/docs/INSTALL" rel="nofollow noreferrer">http://www.horde.org/apps/webmail/docs/INSTALL</a>. After installing through pear, I'm supposed to run <code>webmail-install</code> script, but it's not found.</p> <p>Here's my install log </p> <pre><code>mailserver:/var/www/horde# pear run-scripts horde/horde_role Including external post-installation script "/usr/share/php/PEAR/Installer/Role/Horde/Role.php" - any errors are in this script Inclusion succeeded running post-install script "Horde_Role_postinstall-&gt;init()" init succeeded Filesystem location for the base Horde application : /var/www/horde/ Configuration successfully saved to PEAR config. Install scripts complete mailserver:/var/www/horde# pear install -a -B horde/webmail Package "pear.horde.org/horde" dependency "pear.horde.org/Horde_Rpc" has no releases WARNING: "pear/Console_Getopt" is deprecated in favor of "pear/Console_GetoptPlus" Failed to download pear/Date_Holidays within preferred state "stable", latest release is version 0.21.8, stability "alpha", use "channel://pear.php.net/Date_Holidays-0.21.8" to install Failed to download pear/Text_CAPTCHA within preferred state "stable", latest release is version 0.4.5, stability "alpha", use "channel://pear.php.net/Text_CAPTCHA-0.4.5" to install Failed to download pear/Text_LanguageDetect within preferred state "stable", latest release is version 0.3.0, stability "alpha", use "channel://pear.php.net/Text_LanguageDetect-0.3.0" to install Unknown remote channel: pear.phpunit.de horde/horde requires package "horde/Horde_Rpc" (version &gt;= 2.0.0, version &lt;= 3.0.0alpha1, excluded versions: 3.0.0alpha1) horde/webmail requires package "horde/horde" (version &gt;= 5.0.3, version &lt;= 6.0.0alpha1, excluded versions: 6.0.0alpha1) horde/imp requires package "horde/horde" (version &gt;= 5.0.0, version &lt;= 6.0.0alpha1, excluded versions: 6.0.0alpha1) horde/ingo requires package "horde/horde" (version &gt;= 5.0.0, version &lt;= 6.0.0alpha1, excluded versions: 6.0.0alpha1) horde/kronolith requires package "horde/horde" (version &gt;= 5.0.0, version &lt;= 6.0.0alpha1, excluded versions: 6.0.0alpha1) horde/kronolith can optionally use package "pear/Date_Holidays" (version &gt;= 0.21.0) horde/mnemo requires package "horde/horde" (version &gt;= 5.0.0, version &lt;= 6.0.0alpha1, excluded versions: 6.0.0alpha1) horde/nag requires package "horde/horde" (version &gt;= 5.0.0, version &lt;= 6.0.0alpha1, excluded versions: 6.0.0alpha1) horde/turba requires package "horde/horde" (version &gt;= 5.0.0, version &lt;= 6.0.0alpha1, excluded versions: 6.0.0alpha1) horde/Horde_Core can optionally use package "pear/Text_CAPTCHA" horde/Horde_Core can optionally use package "pear/Text_LanguageDetect" horde/Horde_Test requires package "channel://pear.phpunit.de/PHPUnit" (version &gt;= 3.5.0) downloading content-2.0.1.tgz ... Starting to download content-2.0.1.tgz (21,221 bytes) ........done: 21,221 bytes downloading timeobjects-2.0.2.tgz ... Starting to download timeobjects-2.0.2.tgz (297,260 bytes) ...done: 297,260 bytes downloading Horde_Core-2.1.7.tgz ... Starting to download Horde_Core-2.1.7.tgz (1,395,146 bytes) ...done: 1,395,146 bytes downloading Horde_Form-2.0.3.tgz ... Starting to download Horde_Form-2.0.3.tgz (191,659 bytes) ...done: 191,659 bytes downloading Horde_Timezone-1.0.2.tgz ... Starting to download Horde_Timezone-1.0.2.tgz (20,042 bytes) ...done: 20,042 bytes install ok: channel://pear.horde.org/Horde_Core-2.1.7 install ok: channel://pear.horde.org/Horde_Timezone-1.0.2 install ok: channel://pear.horde.org/content-2.0.1 install ok: channel://pear.horde.org/timeobjects-2.0.2 install ok: channel://pear.horde.org/Horde_Form-2.0.3 mailserver:/var/www/horde# webmail-install -bash: webmail-install: command not found </code></pre> <p>Does anyone know where the problem may be and how to resolve it? Thanks in advance.</p>
0non-cybersec
Stackexchange
Usage of nbf in json web tokens. <blockquote> <p>nbf: Defines the time before which the JWT MUST NOT be accepted for processing</p> </blockquote> <p>I found this definition about <code>nbf</code> in json web tokens. But still wondering what the usage of <code>nbf</code> is? Why we use this? Does it relate to the term of security?</p> <p>Any idea would be appreciated.</p>
0non-cybersec
Stackexchange
Why does there exists a self-adjoint operator $T$?. <p>In an inner product space $V$ with inner product $\langle\cdot,\cdot\rangle$ with a second inner product $g$ on $V$ , why does there exists an self-adjoint operator such that</p> <p>$$\langle x,y\rangle= g(T(x),y)$$</p> <p>for all $x,y\in V$?</p>
0non-cybersec
Stackexchange
Drogo and Dany in the comic book adaptation.
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
I want to put Ubuntu Linux on my Windows 8 laptop, but it only has 100 Gigabyte SSD, will it be viable?. <p>I have a Lenovo Yoga Pad i5. I use it for gaming, work, watching movies and coding. It is my main machine. However I am getting quite bored of Windows 8, and would like to install Ubuntu. </p> <p>How much space should I allocate for Ubuntu? I am not sure how I am going to be using it yet, but probably mostly for coding and just messing around. Also, would allocating more space hinder my gaming and other tasks on Windows? I usually just play LoL on this laptop, and I get a decent framerate of about 40-50fps. Would I see a framerate drop?</p>
0non-cybersec
Stackexchange
How do I prevent Maven from downloading artifacts every time?. <p>I’m using Maven 3.1.1. In one of my projects, I reference another one of my projects …</p> <pre><code> &lt;dependencies&gt; &lt;dependency&gt; &lt;groupId&gt;org.mainco.subco&lt;/groupId&gt; &lt;artifactId&gt;myprojectA&lt;/artifactId&gt; &lt;version&gt;${project.version}&lt;/version&gt; &lt;/dependency&gt; </code></pre> <p>The above is dependent on a couple other of my projects. However, when I run “mvn clean install,” Maven attempts to download these artifacts instead of just using what’s in my local repository. How do I get Maven to only download things if they do not exist in my local repository? Here’s the output of what I’m seeing …</p> <pre><code>davea$ mvn clean install [INFO] Scanning for projects... [INFO] [INFO] ------------------------------------------------------------------------ [INFO] Building subco admin Module 57.0.0-SNAPSHOT [INFO] ------------------------------------------------------------------------ Downloading: http://download.java.net/maven/2/org/mainco/subco/myprojectA/57.0.0-SNAPSHOT/maven-metadata.xml Downloading: http://download.java.net/maven/2/org/mainco/subco/subco/57.0.0-SNAPSHOT/maven-metadata.xml Downloading: http://download.java.net/maven/2/org/mainco/subco/projectB/57.0.0-SNAPSHOT/maven-metadata.xml Downloading: http://download.java.net/maven/2/org/mainco/subco/projectC/57.0.0-SNAPSHOT/maven-metadata.xml [INFO] </code></pre>
0non-cybersec
Stackexchange
Anti Aging Secrets.
0non-cybersec
Reddit
I know aww prefers cats and corgis, but can my Boston Terrier puppy get some lovin?.
0non-cybersec
Reddit
CRIKEY!! It's 49° DEGREES and this MAD LAD is wearing SHORTS!!! ABSOLUTELY MENTAL!!.
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
Drake and Jay Z confirmed as features on Justin Timberlake's 20/20 Experience pt 2.
0non-cybersec
Reddit
How to prevent automake from overwrting _DATA file. <p>In Makefile.am we have:</p> <pre><code>bin_PROGRAMS = sample sample_SOURCES = main.cpp sampleconfdir = $(sysconfdir)/sample sampleconf_DATA = sample.cfg </code></pre> <p>whenever I install the application using <code>make install</code>, the file sample.cfg gets overwritten. How to tell automake to skip copy if file is already present?</p>
0non-cybersec
Stackexchange
How do I enable locate and queue the database to be built?. <p>On a new Ubuntu 10.4 instance, I tried to use the <code>locate</code> command only to receive the error</p> <pre><code>locate: can not stat () `/var/lib/mlocate/mlocate.db': No such file or directory </code></pre> <p>from using this command on other systems I'm guessing that this means the database has not yet been built (it is a fresh install). I believe it is supposed to run daily, but how would I queue it up to run immediately?</p> <p>Also, how is "run daily" determined? If I have a box that I only turn on for an hour at a time will the database ever be built on it's own?</p>
0non-cybersec
Stackexchange
iPhone Core Data: Do Transformable Attributes have to Transform to only Data?. <p>I've been using transformable attributes in core data to transform complex objects like images and colors into raw data. I took <a href="http://developer.apple.com/iphone/library/documentation/cocoa/Conceptual/CoreData/Articles/cdNSAttributes.html#//apple_ref/doc/uid/TP40001919" rel="noreferrer">this</a>...</p> <blockquote> <p>The idea behind transformable attributes is that you access an attribute as a non-standard type, but behind the scenes Core Data uses an instance of NSValueTransformer to convert the attribute to and from an instance of NSData. Core Data then stores the data instance to the persistent store.</p> </blockquote> <p>... to mean that you could only convert things to and from data and not one of the other types of attributes such as strings.</p> <p>It just occurred to me that this might not be the case. The documentation might just be talking about the most common case. IIRC, in Cocoa bindings, the transforms can be largely arbitrary. It is possible to transform, say, a NSURL to a NSString for display and then reverse it. </p> <p>Before I waste time experimenting and possibly getting a confusing result, I wondered if someone knew for certain if the transform is only to and from data only.</p>
0non-cybersec
Stackexchange
This cloud looks like a person blowing smoke out of their mouth.
0non-cybersec
Reddit
It's gonna be a good ass night.
0non-cybersec
Reddit
TextView setTextColor() not working. <p>I programmatically create a list (no a ListView, just adding them to the parent) of such elements:</p> <pre><code> &lt;LinearLayout android:layout_width="wrap_content" android:layout_height="wrap_content" android:orientation="vertical" android:layout_weight="1"&gt; &lt;TextView android:id="@+id/filiale_name" android:layout_width="fill_parent" android:layout_height="wrap_content"/&gt; &lt;TextView android:id="@+id/lagerstand_text" android:layout_width="fill_parent" android:layout_height="wrap_content" android:textSize="10sp" android:textColor="@color/red"/&gt; &lt;/LinearLayout&gt; </code></pre> <p>Also, I have defined some colors in values/colors.xml. As you see, the TextView with id "lagerstand_text" has set it's color to red by default. That works.</p> <p>When creating the elements in Java, I do</p> <pre><code>lagerstandText.setText("bla"); </code></pre> <p>and for some elements also I do</p> <pre><code>lagerstandText.setTextColor(R.color.red); </code></pre> <p>and other colors. While the elements on which I don't call setTextColor() are red, all others are grey, no matter which color I chose (even if it's the same red again).</p> <p>Why is that?</p>
0non-cybersec
Stackexchange
Why is a proper, affine morphism finite?. <p>Can you tell me, how to prove that every proüper and affine morphism between locally Noetherian schemes is finite? Every help will be appreciated.</p>
0non-cybersec
Stackexchange
Heartwarming Father Daughter tattoo. Best dad in world. Nathan Mastrud, Addictions Tattoo, Fargo North Dakota.. What does a great dad do for his 8 year old daughter that is getting questions about her birthmark? He gets a matching tattoo! Now they can be proud together. Thanks for allowing me to do this, Wayne and family! http://imgur.com/DKdatM5 -Nate Mastrud Addictions Tattoo Fargo ND
0non-cybersec
Reddit
Lenin BLASTOFF!!!.
0non-cybersec
Reddit
Using a 2nd router most effectively. <p>Hope this question is in the right place. I have an AT&amp;T wireless modem &amp; router, and an Asus RT-AC68. I had been running two separate networks, one for upstairs &amp; one for downstairs. I've decided to switch to an access point/repeater model instead... First question, pros &amp; cons of access point vs. repeater?</p> <p>Second question, what do I need to do to use the same SSID on my Asus as I do for my AT&amp;T router? I currently have it setup in Access Point mode, using the same SSID, and I'm unable to connecting to the internet through it... I've read that maybe I should use different channels?</p> <p>Any guidance or feedback is appreciated!</p>
0non-cybersec
Stackexchange
Successful first attempt at homemade paneer..
0non-cybersec
Reddit
Please be joking.
0non-cybersec
Reddit
Ex-Navy commander who sounded alarm over coronavirus outbreak tests positive.
0non-cybersec
Reddit
$_FILE upload large file gives error 1 even though upload_max_size is bigger than the file size. <p>I have a simple upload form with:</p> <pre><code>enctype="multipart/form-data"/&gt; </code></pre> <p>and</p> <pre><code>input type="hidden" name="MAX_FILE_SIZE" value="5900000" /&gt; </code></pre> <p>And the following settings, that are applied (checked through phpini()) in php.ini:</p> <pre><code>upload_max_filesize = 7MB memory_limit = 64M post_max_size = 8MB </code></pre> <p>I try to upload a file that is small - 500k and it goes through</p> <p>I try to upload a file that is 5MB (smaller than both <code>upload_max_filesize</code> and <code>post_max_size</code> settings) and it fails with error code 1: which says is: </p> <blockquote> <p>UPLOAD_ERR_INI_SIZE Value: 1; The uploaded file exceeds the upload_max_filesize directive in php.ini.</p> </blockquote> <p>Anyone has a clue what is going on?</p>
0non-cybersec
Stackexchange
[Homemade]Dry cured garlic and star anise pancetta.
0non-cybersec
Reddit
How to change Postfix to IPv4 or IPv6. <p>I was trying to allow IPv4 or IPv6 in my postfix, but I keep getting error's no matter where I put...</p> <p>inet_protocols=ipv4</p> <p>Where do I put it?</p>
0non-cybersec
Stackexchange
Multiplying two inequalities. <p>Suppose we have two inequalities $$a\leq x\leq b\tag{1}$$ $$c\leq y\leq d\tag{2},$$ where $a,b,c,d&gt;0$. Then can I conclude that $$ac\leq xy\leq bd\quad ?$$</p> <p><strong>My attempt:</strong> Since $a,b,c,d&gt;0$ and $\log_e$ is monotonic then we can write $$\log a\leq \log x\leq\log b\tag{3}$$ $$\log c\leq \log y\leq\log d\tag{4}$$ Adding $(3)$ and $(4)$, $$\log a+\log c\leq \log x + \log y\leq \log b+\log d.$$ Combining logs gives $$\log(ac)\leq \log(xy)\leq \log(bd).$$ Exponentiating then gives $$ac\leq xy\leq bd.$$</p>
0non-cybersec
Stackexchange
How to exclude modules using AWS &quot;sam build&quot; for nodejs?. <p>Using the <code>sam build</code> command I was expecting not to include the <code>aws-sdk</code> package as the Node.js Lambda runtime already includes it.</p> <p>As I understood the <code>sam build</code> for nodejs is a port of <code>claudia pack</code> command from <code>claudiajs</code>, but I do not see any <code>--no-optional-dependencies</code> flag when I run <code>sam build --help</code>.</p> <p>I tried installing <code>aws-sdk</code> as an optional dependency but still included.</p> <p>Is there a way to exclude a dependency from the <code>node_modules</code> directory using the <code>sam build</code> command?</p>
0non-cybersec
Stackexchange
When is the line integral independent of parameterization?. <p>Let $\alpha: [a,b] \rightarrow \mathbb{R}^2$ be a smooth path (i.e. $\alpha'$ is continuous on $[a,b]$), and let $f$ be a continuous vector field. The line integral of $f$ along $\alpha$ is defined as $\int_a^b f[\alpha(t)]\cdot \alpha'(t) dt$. In a typical calculus textbook, it is written as $\int_C f_1 dx + f_2 dy$, suggesting that the line integral depends only on $C$ - the image of the path, not the actual parameterization $\alpha$. </p> <p>In general however, this is not true. For example, $\oint_C -ydx + x dy =2\pi$ when integrated along the path $\alpha: [0,2\pi]\rightarrow \mathbb{R}^2, \alpha(t) = (\cos(t), \sin(t))$. The value becomes $4\pi$ when integrated along $\beta: [0,4\pi]\rightarrow \mathbb{R}^2, \beta(t)= (\cos(t),\sin(t))$, even though $\alpha$ and $\beta$ have the same image.</p> <p>My question: what additional assumption is required to make the notation $\int_C f_1dx +f_2 dy$ unambiguous?</p>
0non-cybersec
Stackexchange
Does the Wikipedia API support searches for a specific template?. <p>Is it possible to query the Wikipedia API for articles that contain a specific template? <a href="http://en.wikipedia.org/w/api.php" rel="noreferrer">The documentation</a> does not describe any action that would filter search results to pages that contain a template. Specifically, I am after pages that contain <code>Template:Persondata</code>. After that, I am hoping to be able to retrieve just that specific template in order to populate genealogy data for the <a href="http://openancestry.org" rel="noreferrer">openancestry.org</a> project.</p> <p>The query below shows that the Albert Einstein page contains the Persondata Template, but it doesn't return the contents of the template, and I don't know how to get a list of page titles that contain the template. <a href="http://en.wikipedia.org/w/api.php?action=query&amp;prop=templates&amp;titles=Albert%20Einstein&amp;tlcontinue=736|10|ParmPart" rel="noreferrer">http://en.wikipedia.org/w/api.php?action=query&amp;prop=templates&amp;titles=Albert%20Einstein&amp;tlcontinue=736|10|ParmPart</a></p> <p>Returns:</p> <pre><code>&lt;api&gt; &lt;query&gt; &lt;pages&gt; &lt;page pageid="736" ns="0" title="Albert Einstein"&gt; &lt;templates&gt; ... &lt;tl ns="10" title="Template:Persondata"/&gt; ... &lt;/templates&gt; &lt;/page&gt; &lt;/pages&gt; &lt;/query&gt; &lt;query-continue&gt; &lt;templates tlcontinue="736|10|Reflist"/&gt; &lt;/query-continue&gt; &lt;/api&gt; </code></pre> <p>I suspect that I can't get what I need from the API, but I'm hoping I'm wrong and that someone has already blazed a trail down this path.</p>
0non-cybersec
Stackexchange
Took a children's super soaker toy and attempted to turn it into a more screen accurate DL-44 Blaster.
0non-cybersec
Reddit
Does HTTP:// to HTTPS:// redirection means strict HTTPS from server. <p>when I try to connect to some websites using <code>http://</code> (notice the absence of <code>s</code>) , my client end up with <code>https://</code>.</p> <p>I use python requests for this purpose, which simulate a client behavior. It performs the redirection and show me the final URL after redirection, if any.</p> <p>Example: when I input <code>http://facebook.com</code> the get requets end up at <code>https://facebook.com</code>.</p> <p>Does this mean the website DOES NOT accept <code>http://</code> requests? </p>
0non-cybersec
Stackexchange
Fuck you! You're narrow-minded, intolerant and even a bit prejudice if I may say so. you're flexible, have a sense of humor and an open mind cause you are a stoner(as I am)? Hell NO mofo! I was playing with the letters in your nickname, I'm a foreigner but I'll have you know I'm not illiterate and neologisms are a healthy part of a creative sense of humor. Fuck off if you are such a tyrant that I can't poke a little fun at Dogma or whatever the fucking movie it is you worship and STILL have to put up with you typing "if you have nothing to add to the thread, don't leave any comments there" well, those are not your exact words but DO I CARE? So, I have ONE account, it's not a throwaway and if I get traced I will assume who I am and you will know who you are. Fuck THIS I'm not here for karma, I want freedom of speech, asshole(s).
0non-cybersec
Reddit
How to use spot instance with amazon elastic beanstalk?. <p>I have one infra that use amazon elastic beanstalk to deploy my application. I need to scale my app adding some spot instances that EB do not support.</p> <p>So I create a second autoscaling from a launch configuration with spot instances. The autoscaling use the same load balancer created by beanstalk.</p> <p>To up instances with the last version of my app, I copy the user data from the original launch configuration (created with beanstalk) to the launch configuration with spot instances (created by me).</p> <p>This work fine, but:</p> <ol> <li><p>how to update spot instances that have come up from the second autoscaling when the beanstalk update instances managed by him with a new version of the app?</p> </li> <li><p>is there another way so easy as, and elegant, to use spot instances and enjoy the benefits of beanstalk?</p> </li> </ol> <p><strong>UPDATE</strong></p> <p>Elastic Beanstalk add support to spot instance since 2019... see: <a href="https://docs.aws.amazon.com/elasticbeanstalk/latest/relnotes/release-2019-11-25-spot.html" rel="nofollow noreferrer">https://docs.aws.amazon.com/elasticbeanstalk/latest/relnotes/release-2019-11-25-spot.html</a></p>
0non-cybersec
Stackexchange
How to use spot instance with amazon elastic beanstalk?. <p>I have one infra that use amazon elastic beanstalk to deploy my application. I need to scale my app adding some spot instances that EB do not support.</p> <p>So I create a second autoscaling from a launch configuration with spot instances. The autoscaling use the same load balancer created by beanstalk.</p> <p>To up instances with the last version of my app, I copy the user data from the original launch configuration (created with beanstalk) to the launch configuration with spot instances (created by me).</p> <p>This work fine, but:</p> <ol> <li><p>how to update spot instances that have come up from the second autoscaling when the beanstalk update instances managed by him with a new version of the app?</p> </li> <li><p>is there another way so easy as, and elegant, to use spot instances and enjoy the benefits of beanstalk?</p> </li> </ol> <p><strong>UPDATE</strong></p> <p>Elastic Beanstalk add support to spot instance since 2019... see: <a href="https://docs.aws.amazon.com/elasticbeanstalk/latest/relnotes/release-2019-11-25-spot.html" rel="nofollow noreferrer">https://docs.aws.amazon.com/elasticbeanstalk/latest/relnotes/release-2019-11-25-spot.html</a></p>
0non-cybersec
Stackexchange
How do I toggle a progress dialog between determinate and indeterminate?. <p>I have an AsyncTask to handle a reasonably long running update process, and I want a progress dialog that shows, in order:</p> <ol> <li>"Starting update" (for a brief second)</li> <li>"Downloading update" (no progress bar &mdash; I don't know how big the update will be before I download it)</li> <li>"Saving update data" (with a 0-100% progress bar)</li> <li>"Saving update images" (with a 0-100% progress bar)</li> <li>"Update finished" (for a brief second before the dialog disappears)</li> </ol> <p>I'm having problems toggling the progress dialog between determinate (progress bar shows up) and indeterminate (no progress bar).</p> <p>The code in my AsyncTask follows:</p> <pre><code>private final ProgressDialog progressDialog; public SynchronizeTask(Activity activity) { progressDialog = new ProgressDialog(activity); progressDialog.setProgressStyle(ProgressDialog.STYLE_HORIZONTAL); } protected void onPreExecute() { progressDialog.setMessage("Starting update..."); progressDialog.setCancelable(false); progressDialog.show(); } ...lots of code here... // all of these are set from doInBackground() private String progressMsg; private int progressTotal; private int progressProgress; protected void onProgressUpdate(Void... values) { progressDialog.setMessage(progressMsg); if (progressTotal &gt; 0) { progressDialog.setIndeterminate(false); progressDialog.setMax(progressTotal); progressDialog.setProgress(progressProgress); } else { progressDialog.setIndeterminate(true); progressDialog.setMax(0); progressDialog.setProgress(0); } } </code></pre> <p>I tried toggling determinate with <code>setIndeterminate()</code> &mdash; the problem here is that the progress dialog shows "NaN" and "0%" at the bottom of the dialog even though there's no "bar" left in indeterminate mode.</p> <p>Then I tried using <code>setProgressNumberFormat()</code> and <code>setProgressPercentFormat()</code> just to hide the numbers &mdash; but neither of these are supported in Android below 3.0.</p> <p>Then I tried using <code>setProgressStyle()</code> to toggle between STYLE_SPINNER and STYLE_HORIZONTAL &mdash; calling <code>setProgressStyle()</code> in my <code>onProgressUpdate()</code> seems to cause my app to crash.</p> <p>Is there any easy way to toggle a progress dialog between determinate and indeterminate mode?</p>
0non-cybersec
Stackexchange
How to limit number of workers in react native packager (android)(gradle)?. <p>Building an android react-native project using react.gradle on circleci runs out of the max 4GB memory. One of the issues leading to the memory pressure is the 30+ node workers spinned up by the packager each taking up nearly 80MB. See below for the sample output. Looking through the packager code it's not obvious to me how to control this number. It certainly not an option available through the <code>react-native bundle</code> command.</p> <p><code>PID RSS %CPU COMMAND 14799 60988 5.0 /home/ubuntu/nvm/versions/node/v5.0.0/bin/node /home/ubuntu/mobile_android_circleci/mobile/node_modules/react-native/node_modules/worker-farm/lib/child/index.js 14804 58696 4.2 /home/ubuntu/nvm/versions/node/v5.0.0/bin/node /home/ubuntu/mobile_android_circleci/mobile/node_modules/react-native/node_modules/worker-farm/lib/child/index.js 14709 58036 4.1 /home/ubuntu/nvm/versions/node/v5.0.0/bin/node /home/ubuntu/mobile_android_circleci/mobile/node_modules/react-native/node_modules/worker-farm/lib/child/index.js 14814 57832 4.4 /home/ubuntu/nvm/versions/node/v5.0.0/bin/node /home/ubuntu/mobile_android_circleci/mobile/node_modules/react-native/node_modules/worker-farm/lib/child/index.js 14764 57792 4.3 /home/ubuntu/nvm/versions/node/v5.0.0/bin/node /home/ubuntu/mobile_android_circleci/mobile/node_modules/react-native/node_modules/worker-farm/lib/child/index.js 14789 57720 4.2 /home/ubuntu/nvm/versions/node/v5.0.0/bin/node /home/ubuntu/mobile_android_circleci/mobile/node_modules/react-native/node_modules/worker-farm/lib/child/index.js 14734 57700 4.2 /home/ubuntu/nvm/versions/node/v5.0.0/bin/node /home/ubuntu/mobile_android_circleci/mobile/node_modules/react-native/node_modules/worker-farm/lib/child/index.js 14688 57576 4.2 /home/ubuntu/nvm/versions/node/v5.0.0/bin/node /home/ubuntu/mobile_android_circleci/mobile/node_modules/react-native/node_modules/worker-farm/lib/child/index.js 14809 57544 4.2 /home/ubuntu/nvm/versions/node/v5.0.0/bin/node /home/ubuntu/mobile_android_circleci/mobile/node_modules/react-native/node_modules/worker-farm/lib/child/index.js 14724 57504 4.1 /home/ubuntu/nvm/versions/node/v5.0.0/bin/node /home/ubuntu/mobile_android_circleci/mobile/node_modules/react-native/node_modules/worker-farm/lib/child/index.js 14719 57284 4.0 /home/ubuntu/nvm/versions/node/v5.0.0/bin/node /home/ubuntu/mobile_android_circleci/mobile/node_modules/react-native/node_modules/worker-farm/lib/child/index.js 14694 57260 4.0 /home/ubuntu/nvm/versions/node/v5.0.0/bin/node /home/ubuntu/mobile_android_circleci/mobile/node_modules/react-native/node_modules/worker-farm/lib/child/index.js ... + MANY MORE ROWS</code></p>
0non-cybersec
Stackexchange
Daily Q&A Post for Saturday, 02 December 2017 - No question too small!. **Got a question?** *We've got answers!* Do you have question but don't want to make a whole post? that's fine. **Ask right here!** What is on your mind? **Everyone is welcome** to ask questions or provide answers. No question is too minor or small. **TIPS**: * Include your stats if appropriate/relevant (or better yet, update your flair!) * Check the [FAQ](https://www.reddit.com/r/loseit/wiki/faq) and other resources in the sidebar!
0non-cybersec
Reddit
Life Expectancy in the United States (by state).
0non-cybersec
Reddit
From TikTok to tic-tac-toe: How Colts keep virtual program fresh.
0non-cybersec
Reddit
The Parallelogram Identity for an inner product space. <p>For a given inner product space $V$, I would like to prove the inequality $$\|\mathbf{x}+\mathbf{y}\|^2 + \|\mathbf{x}-\mathbf{y}\|^2 = 2(\|\mathbf{x}\|^2 + \|\mathbf{y}\|^2).$$</p> <p>We see that $$\|\mathbf{x}+\mathbf{y}\|^2 + \|\mathbf{x}-\mathbf{y}\|^2 = \langle\mathbf{x}+\mathbf{y},\mathbf{x}+\mathbf{y}\rangle + \langle\mathbf{x}-\mathbf{y},\mathbf{x}-\mathbf{y}\rangle,$$</p> <p>which by linearity $$=\langle\mathbf{x},\mathbf{x}+\mathbf{y}\rangle + \langle\mathbf{y},\mathbf{x}+\mathbf{y}\rangle + \langle\mathbf{x},\mathbf{x}-\mathbf{y}\rangle - \langle\mathbf{y},\mathbf{x}-\mathbf{y}\rangle.$$</p> <p>I've been trying to figure out how to go about this proof using linearity in the second argument of an inner product, but my textbook does not say that linearity necessarily holds in the second component. If it does, how would I go about the rest of this proof? If not, should I be potentially using some aspect of conjugate symmetry to prove this statement?</p>
0non-cybersec
Stackexchange
Mutt not sending email when specifying smtp server. <p>I am trying to use <code>mutt</code> as my email client, and it works fine for my gmail account. But when I use my work email, it does not send the emails. It doesn't give any error, it just doesn't send them. The line in my <code>.muttrc</code> file that causes this problem is:</p> <blockquote> <p>set smtp_url = "smtp://mail.my_work_email_server.com:587"</p> </blockquote> <p>The behaviour does not change when adding the <code>smtp_pass</code>, nor does it by altering the name of the email server (i.e. using a 'fictional' server address).</p>
0non-cybersec
Stackexchange
Would you say going through the "Composing Programs" course is wise. Someone on reddit gave me this: https://composingprograms.com/ It's an awesome retelling of SICP in Python, just the thing I need after I realized I can't really attach myself to SICP because, after all, it's an MIT textbook and I'm so far from having the intelligence of an MIT student, I'm in an MIT for dumb people (no kidding, the first semester starts in a few months and I'm applying!). So what do you guys think? Should I study this course, although I've just started learning C++? The good thing about SICP is that it teaches a language that's not very applicable anywhere else. This course teaches Python, the most applicable language there is. I don't want to switch between two languages willy-nilly. What do you recommend?
0non-cybersec
Reddit
Game Thread: New England Patriots vs. Miami Dolphins. ###[](/NE) New England Patriots (0-0) vs. [](/MIA) Miami Dolphins (0-0) *** **Time:** 7:00 PM Eastern 6:00 PM Central 5:00 PM Mountain 4:00 PM Pacific *** **Location:** [](/MIA) Sun Life Stadium, Miami *** **TV:** *Watch:* ESPN Team Subreddits [](/NE)[Patriots](http://www.reddit.com/r/Patriots) [Dolphins](Http://www.reddit.com/r/miamidolphins) *Stream:* [Firstrow](http://www.firstrowsports.eu/watch/83493/1/watch-miami-dolphins-vs-new-england-patriots.html)
0non-cybersec
Reddit
I did this in the middle of class give orange.
0non-cybersec
Reddit
How long are you willing to see a girl without having sex with her?. I'm a 22 year old female. When I was 16 I lost my virginity because I stopped saying no after having said no a hundred times and the guy thought that meant yes and did his thing while I was holding back tears. After that I kind of emotionally disconnected from sex and slept with around 10 guys over a period of three years. Then I had a wonderful boyfriend for two years and let myself be emotional and personal with someone I was sexual with. We broke up about 9 months ago, and since then I've not wanted to have sex with guys without really trusting them. How do I go about saying "I don't want to have sex but I really like you and would like to keep seeing you?" without him just walking away? I've shared a bed with a few guys since changing how I feel about sex, and I always told them beforehand I didn't want to sleep with them, but for some reason they thought I didn't mean it and were like "that's okay we can just cuddle", and then still tried it on for ages and made me feel bad for "being a tease". They'll ask if I'm a virgin, and when I say I'm not (and especially if I tell them how many guys I've slept with) they just don't get it, and if I try to explain why it's obvious they're not interested in a "sob story". I feel as though guys judge you if you've had too many partners, but then expect you to sleep with them straight off. They're not compatible. Do guys (not trying to generalise, but do some of you?) expect to sleep with loads of girls and in the end find some innocent fairy that you can marry?
0non-cybersec
Reddit
Converting macos dictionaries to portable format. <p>The best thing about macos is the dictionaries accessible from dictionary.app. Is there a way to convert them to a format that is usable on other platforms as well (such as the dict format or the stardict format)?</p> <p>Alternatively, is there a way to extract them into a plain text format? (How are they stored anyway and where?)</p> <p>PS There is this</p> <p><a href="https://gist.github.com/josephg/5e134adf70760ee7e49d" rel="nofollow noreferrer">https://gist.github.com/josephg/5e134adf70760ee7e49d</a></p> <p>for extracting word lists. Perhaps it could be changed to extract the whole dictionaries as well?</p>
0non-cybersec
Stackexchange
Boogiepop and Others PV2 (Eng Sub).
0non-cybersec
Reddit
What's a dumb argument you had with someone recently?. My boyfriend and I just had a argument about how long food stays in the freezer. What's a dumb argument you've had recently?
0non-cybersec
Reddit
C language portability. <p>How exactly is portability of a language like C is determined? I've learned that compilers are ISA specific. If this is true, how is C portable? Or is it that just the source code written in C is portable but not the executables? Aren't the executables ISA specific for examples applications for x86 are separate from the applications for Apple (assuming Apple uses Motorola/PowerPC microprocessor)?</p>
0non-cybersec
Stackexchange
Questions about the prequels. So I'm getting ready to GM a Star Wars rpg set between episodes 3 and 4 I've been watching the clone wars series and I'm liking it infinitely more than the prequels. For a long time I absolutely hated the prequels. After a time I have come around to appreciating them for their positives. While the stories and acting aren't my cup of tea, I really like how the movies flesh out the universe. However while watching the clone wars I keep feeling like I don't know who I should be rooting for. Can anyone give me a cliffs notes about what the hell is actually happening in the prequels. I mean I get the Anakin/Padme and the Anakin/Obi Wan aspect. What I'm trying to figure out is Palpatine's chess game. He makes a deal with the trade federation to attack Naboo with their droid army in episode 1. In episode 2 we find out that the trade federation is working with Dooku and the separatists, but they aren't really separatists, to attack who? Obi Wan finds out that the clone army is being made by the republic, based off of Jango... The same person that tried to kill Padme, (why was that again?) and he was also chummy at the end with the separatist in the gladiator arena and still no red flags about this clone army? In fact the Jedi counsel is just like... Well shit, we got 'em. We might as well use them. (Btw is the Jedi counsel just like an advisory board for the galactic republic? I'm confused by their active role in all of this). So in the clone wars we see the clone troops completely humanized and given personalities. They fight alongside these Jedi and then in episode 3 we just, I guess they were all hypnotized and order 66 was the code word that made them snap and become evil? A lot of this doesn't make sense to me. This isn't me wanting to start a prequel hate-jerk. I genuinely want someone to break this down for me, I know a lot of you guys love the prequels. Help me r/starwars you're my only hope.
0non-cybersec
Reddit
Is it legal to release GPL version project into FreeBSD?. <p>I could not differentiate between FreeBSD and GPL liecense. Can anyone tell me the in what respect these two liecense are different.</p> <p>Is it legal to use some source based on GPL license and release the new product as FreeBSD license?</p> <p>In particular, I have following scence:</p> <p>I would like to follow some of the implementation module of some implentation for my use. The implementation is standard algorithm implementation. So basically i am taking some reference to implement in my own way. I am not making use of verbatim copy, some module matches with the original one. The one which i am taking reference is in FreeGPL V3 license. The new product which i will release with FreeBSD license. Is it legal to do this or I should relase my product in FreeGPL license?</p> <p>[EDIT]</p> <p>Moreover, my case is, I am implementing some standard algorithm. Lets say here a data structure linked list. I think,whoever implements it, he/she will have same structure and similar kind of functions for search, delete and insert.Even the operations will be seen. I saw some code in internet and i got the influence of that of code my implementation which was so unavoidable. In this case how can a programmer can claim that the particular code is his own original code?</p>
0non-cybersec
Stackexchange
How to Transfer files(small) to mobile device over bluetooth 16.04. <p>ok, I am using <code>Ubuntu 16.04</code> and I have a <code>java</code> phone. Now my question is how can I transfer files to my phone over <code>bluetooth</code> connection?</p> <p>I searched, but all of the articles were about transferring to <code>android</code>.</p> <p>Is there any software to do that?</p> <p><strong>TIA</strong></p> <h2>EDIT</h2> <p>Sorry for mistake. It is actually <code>transfer files from my phone to ubuntu over </code>bluetooth<code> connection</code></p>
0non-cybersec
Stackexchange
Nundercover explains how to become CEO at a Fortune 500 company.
0non-cybersec
Reddit
Play a sound with VBA if an error is found. <p>I currently have this code:</p> <pre><code>Option Explicit Private Declare Function sndPlaySound32 Lib "winmm.dll" _ Alias "sndPlaySoundA" (ByVal lpszSoundName _ As String, ByVal uFlags As Long) As Long Private Sub Worksheet_Change(ByVal Target As Range) Dim Cell As Range Dim CheckRange As Range Dim PlaySound As Boolean Set CheckRange = Range("C:C") For Each Cell In CheckRange If Cell.Value = "#N/A" Then PlaySound = True End If Next If PlaySound Then Call sndPlaySound32("C:\windows\media\chord.wav", 1) End If End Sub </code></pre> <p>I am trying to get it so that if there is an error in column C, an audible sound is played, however it does not work, any ideas?</p>
0non-cybersec
Stackexchange
How to publish artifacts separately for each project in solution from VSTS CI pipeline?. <p>In my solution, I have two projects (a Asp.net MVC and a Windows Service). I want to create CI/CD pipeline to deploy web application and windows service on different VMs. But to achieve this my CI pipeline should be able to publish artifacts separately for both project and then I can feed these artifacts in CD pipeline for deployment. How artifacts for all projects can be published separately in a CI pipeline ?</p> <p>PS: If I create two solutions each with one project only and create CI/CD pipeline separately, all works fine. But I want to achieve it with solution having multiple project as mentioned above.</p>
0non-cybersec
Stackexchange
When opening a file, Word slowly counts the pages before it is ready to work. <p>When I open a file in Microsoft Word, Word does not open the whole file immediately, but loads one page after another. There is a small counter in the lower right corner of the file window in which the total number of pages slowly counts up (screenshot from the German version of Word):</p> <p><a href="https://i.stack.imgur.com/k1I81.png" rel="nofollow noreferrer">screenshot of the page counter from the German version of Word</a></p> <p>This is not a problem when I am working on files that are a handful of pages long, although even then it takes about ten seconds to load 50 pages of text, tables, and images, but when, as in this case, the file totals several hundred pages (631 KB of pure text, no tables, no images, no links etc.), it takes about a minute for Word to load the whole file – and while the file loads (and the page counter counts up), I cannot use the file, because whenever Word loads a new bunch of pages, the file window scrolls to a different place.</p> <p><strong>How can I avoid this slow loading?</strong></p> <p>Hardware: MacBook Air (mid 2012)<br> System: macOS 10.13.2<br> Version: Microsoft Word for Mac 15.41</p> <p><em>Please note that I have observed this behavior in all versions of Word since Word for Mac 2011 under all version of Mac OS X since 10.6 and that no other software on my computer opens files so slowly.</em></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 5 year old son doesn't like / can't stay in school long enough and I'm very worried.. My (F/35) son turned 5 last September and on Monday he started Kindergarten at a public school around the corner from our house. Since he was 5 months he went to childcare centre where he thrived well, he is very social and a very bright child. Like most children he went through phases where he tests his boundaries and refuses to do what his told particularly packing up toys but I though that was just normal for his age. This week since Monday he's been sent home for being disruptive in the classroom. He finds it overwhelming with so many children in class, he doesnt like the noise with all the children talking, he cant and refuse to sit at group time and throws a big tantrum when asked to put away toys during transitions. I have been staying with him the whole time with the request of the teachers so I can control him behaviour, the class begins at 9 and by just after 10 I had to take him home. Yesterday he knocked over a couple of cubby house and they fell on top of the teacher and some children although no one got hurt because they were light materials the teacher was not impressed and asked that I remove him because my son was just being too disruptive. Leading up to the start of the school I did all the preparation needed so my son can be ready for school. We did the school trip, fete, interviews and orientation. I involved him buying school uniforms, and supplies and shoes. Im feeling so lost at what to do and starting to doubt my parenting skills. I've spoken to the teacher and she seems to think my son is displaying abnormal behaviours so Ive booked for him to get checked next week. Its only been the fourth day of school but Im already worried sick that its not going to get better. Im after advise on how to help my son stay in school.
0non-cybersec
Reddit
Android SharedPreferences , how to save a simple int variable. <p>I am trying for the last hour to save an integer in my Android application. I read that this can be done using the SharedPreferences. However i dont understand why it seems so confusing to do so.</p> <p>How can i simply save an int variable ? And then when i run the application again , how can i interact with this variable again?</p>
0non-cybersec
Stackexchange
Do you Nazi what is in front of you?.
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
Can&#39;t find 68GB local backup folder (regular backups on an external hard drive). <p>A few days ago my local hard drive shows 68 GB of backups. <a href="https://i.stack.imgur.com/z9uby.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/z9uby.png" alt="screenShot"></a> I regularly backup with time machine on an external disk and even after running a backup these file stayed. I tired using SupaView and DaisyDisk to look at the files but both do not have access even while using then as an admin. Therefore I don't even know where this folder is or what i contains. I have OSX El Captain (10.11.6)</p> <p>Has anyone had the same issue or know what and where this folder is?</p>
0non-cybersec
Stackexchange
Woman impaled through buttocks after texting and driving accident.
0non-cybersec
Reddit
Spirograph..
0non-cybersec
Reddit
JavaFX textarea displaying big file. <p>I'm trying to show on screen a textfile content using <code>JavaFX textarea</code>. I success doing it with small files, but with big ones everything becomes too slow. File with size <code>64KB</code> was read in 1 second, and it takes 2 minutes to display it. There is code:</p> <pre><code>try (FileReader fileReader = new FileReader(file); BufferedReader reader = new BufferedReader(fileReader)) { char[] buf = new char[102400]; int haveRead; while ((haveRead = reader.read(buf)) != -1) { buf = Arrays.copyOf(buf, haveRead); String str = new String(buf); textArea.appendText(str); log.trace(str); } } catch (IOException e) { log.error("Error while reading file", e); } </code></pre> <p>Logging shows that even with multithreading almost all time program waiting for </p> <blockquote> <p>textArea.appendText(str);</p> </blockquote> <p>What to do? Is there faster implementation or mine faults in code? or the only way is to do buffer of displaying text, somehow overriding the behavior of textarea slider?</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
Android: Google Places Autocomplete- How can I use it to fill a RecyclerView rather than a Dropdown Menu?. <p>As you know, the Google Places API allows you to type into a search box and get suggested addresses in a dropdown menu.</p> <p>In most examples, I've seen people use the Google Places API with an AutoCompleteTextView so that it will display autocomplete suggestions in a dropdown. What I actually want is for the suggestions to fill in a RecyclerView. What is the proper way to do this?</p>
0non-cybersec
Stackexchange