text
stringlengths
3
1.74M
label
class label
2 classes
source
stringclasses
3 values
Zimbabwe ruling ZANU-PF party wins elections: Electoral body.
0non-cybersec
Reddit
Conditional and iterators in ruby. <p>I'm trying to translate the following code into ruby:</p> <pre><code>public void discardWeapon(Weapon w){ if(!weapons.isEmpty()){ boolean discarded = false; Iterator&lt;WeaponType&gt; it = weapons.iterator(); while(it.hasNext() &amp;&amp; !discarded){ WeaponType wtaux = it.next(); if(wtaux == w.getWeaponType()){ it.remove(); discarded = true; } } } } </code></pre> <p>But, when it comes to the while loop, I can't really find a practical way to do it in ruby. I've got the following structure so far:</p> <pre><code>def discardWeapon(w) if([email protected]?) discarded = false @weapons.each do |wtaux| end end end </code></pre> <p>But, how can I check my condition is met when using the .each iterator? Thanks in advance.</p>
0non-cybersec
Stackexchange
Reason why arbitrator ruled Graham a TE: Four yards save Saints more than $5 million.
0non-cybersec
Reddit
Kayaking in Lofoten, Norway..
0non-cybersec
Reddit
Google Self-Driving Car Hits A Bus In Los Angeles And It's At Fault: Here's What Happened.
0non-cybersec
Reddit
Wedgie sandwich with a John Daly to drink.
0non-cybersec
Reddit
Prove vector spaces dimensions equality. <blockquote> <p>Let $V$ a finite vector space over $F$, and $W$ a vector space over $F$ with the dimension of $1$. $S:V\rightarrow V, T:V\rightarrow W$ two linear transformations. It is given that $\ker S$ is not a subset of $\ker T$. Prove $\dim (\ker T \cap \ker S) = \dim (\ker S) - 1$</p> </blockquote> <p>My Work:<br> using the Dimensions Thm we know that: $\def\Im{\operatorname{Im}}\dim V = \dim\ker T + \dim\Im T$. We know that $\ker S$ is not a subset of $\ker T$, Therefore there must be $S(x)=0$ and $T(x)\ne 0$. Therefore, the dimension of $\Im T$ isn't $0$, so it must be that $\dim\Im T=1$. </p> <p>I tried to develop it further, but without much success.<br> I'll be glad for help. </p> <h2>EDIT:</h2> <p>following Marc guidelines:<br> $$\begin{array}{l} U: = \ker S \\ {T_U}:V \to V \\ \dim U = \dim Ker{T_U} + \dim {\mathop{\rm Im}\nolimits} {T_U} \\ \dim U = \dim Ker{T_U} + 1 \\ \dim U - 1 = \dim Ker{T_U} \\ \dim KerS - 1 = \dim Ker{T_U} \\ \dim KerS - 1 = \dim KerT \cap \dim KerS \\ \end{array}$$</p>
0non-cybersec
Stackexchange
“compute launch button tooltip” error in eclipse. <p>I'm trying to run Android SDK with Eclipse for the first time. I have never used Eclipse before and I'm running into the following error message over and over again, with no specific trigger: "compute launch button tooltip has encountered a problem"</p> <p>I tried to Google it but I can't find a solution. It's driving me crazy, please help. I'm using Ubuntu 12.04 LTS. I tried re-installing Eclipse, same thing.</p>
0non-cybersec
Stackexchange
Prove $f(x)=a*x*a^{-1}$ Group Homomorphism. <p>If $f:(G,*) \to (G,*)$ , $a$ in $G$</p> <p>Prove that $f$ is a group homomorphism , where </p> <p>$$f(x)=a*x*a^{-1},\ \ \ \ x\in G.$$</p> <hr> <p><strong>My answer:</strong></p> <p>We should to prove this :</p> <p>$$f(x*y)=f(x)*f(y).$$</p> <p>And from definition in the question:</p> <p>$$\tag{1}f(x*y)=a*x*y*a^{-1}$$ and $$\tag{2}f(x)=a*x*a^{-1}$$ and $$\tag{3}f(y)=a*y*a^{-1}.$$</p> <p>But How can I prove $(1)=(2)*(3)$?</p>
0non-cybersec
Stackexchange
President Trump Escaped the D.C. Cold to Play Golf With Pros Tiger Woods and Jack Nicklaus.
0non-cybersec
Reddit
How do I find a file with a name which depends on the current date (and a random component)?. <p>I have to check a particular path every day and find the file with a name of the form:</p> <pre><code>StaticData_Sets_yyyymmdd-232550.txt </code></pre> <p>The date in the name after the string <code>StaticData_Sets_</code> is updated every day depending on the system date. The number after the date is random.</p> <p>How can I find the file for the current date in Unix?</p>
0non-cybersec
Stackexchange
Define Patterns in Crunch. <p>I am trying to achieve a very specific pattern with crunch. The Wireless Router I use has a very specific Pattern used for the default Password generated by my Provider. I want to create a wordlist or at least Pipe it through to aircrack-ng with the following pattern:</p> <p>xxxx-xxxx-xxxx-xxxx</p> <p>The x's represent 4 multialpha-numeric characters spaced by dashes. I read through several help sites and the manpage of Crunch but just can't figure out to get to this pattern. Is it even possible? It is very confusing. </p> <p>I tried using -t ++++-++++-++++-++++ which gave me one result.</p>
1cybersec
Stackexchange
Robbie Muirhead (Hearts) 2nd Goal v Rangers (2-0).
0non-cybersec
Reddit
"As president of the United States, I would pray. I would pray and ask the Lord for guidance." - Michele Bachmann.
0non-cybersec
Reddit
Pizza Sim.
0non-cybersec
Reddit
My Dad is Such a... WHAT?!.
0non-cybersec
Reddit
Guy (who makes great travel videos) Interrupts a Paris scam with nothing but a camera..
0non-cybersec
Reddit
My Cpu Temperature shows higher temperature than normal. Why?. <p>I built a AMD Ryzen 5 2400g. for first year it works fine. then it starts to create problem. My CPU fan stops working. instead of installing new CPU fan i install my old DC fan. so every time i boot my system it shows CPU fan not running. its ok for me every time time to boot from bios. But there's problem started. During BIOS Login i noticed that, the temperature of the CPU was 75 deg-celcius. but i checked using 3rd part software and Ryzen Master it shows 40-50 deg-celcius. is there any problem in my motherboard, or due to aging factor this problem appears.</p> <p>so i started to test my CPU with userbench mark. during load my CPU temperature shoots to 99 deg-celcius. Mostly my system crashed during this bench mark test. while rendering also my system continuously crashed. i dont know what to do. can any one suggest me a solution.</p> <p>Details<br /> CPU : AMD Ryzen 2400g<br /> iGPU: vega 11<br /> Mother Board : Asus B450-a<br /> Ram : corsair 8GBx2</p>
0non-cybersec
Stackexchange
This little guy discovered my boston terrier this afternoon and started digging his way over.
0non-cybersec
Reddit
power series solutions for ordinary differential equations - references. <p>Hello </p> <p>I'm having a hard time finding some references on series solutions for "nonlinear" ODE's, the most I could find was a small excert on wikipedia. </p> <p><a href="http://en.wikipedia.org/wiki/Power_series_solution_of_differential_equations" rel="nofollow">http://en.wikipedia.org/wiki/Power_series_solution_of_differential_equations</a></p> <p>Most books just say something along the lines of ... and the method is applicable to nonlinear ODE's. But none i've seen go into detail let alone an example. Can anyone suggest me a good book or reference (in particular for 2nd order nonlinear ODEs)?</p> <p>Thanks </p>
0non-cybersec
Stackexchange
EXCEL: How to jump to first (or next) duplicate value in a sorted column?. <p>I have a sheet with hundreds of thousands of rows. There are a few duplicates on the ID column. The technique to highlight duplicates does not work, as using the scroll bar shoots past them so fast that you can't identify them (it is skipping many hundreds of records at a time).</p> <p>How do I get Excel to place the cursor on the first, or next, duplicate value in a sorted column?</p> <p>Windows 10; MS Excel 2016</p>
0non-cybersec
Stackexchange
A question about odd perfect numbers. <p>Edit [in response to a comment from <a href="https://math.stackexchange.com/users/11763/anon">anon</a>]: Hereinafter, $N$ is a positive integer, $\sigma(N)$ is the sum-of-divisors of $N$, $\omega(N)$ is the number of distinct prime factors of $N$, and $\Omega(N)$ is the number of prime factors of $N$ (counting multiplicities).</p> <p>Thus, $N$ is a perfect number if $\sigma(N) = 2N$.</p> <p><a href="http://math.byu.edu/~pace/BestBound_web.pdf" rel="nofollow noreferrer">A 2013 preprint by Nielsen</a> claims to have proved that $\omega(N) \geq 10$ if $N$ is an odd perfect number. <a href="http://www2.lirmm.fr/~ochem/opn/opnf.pdf" rel="nofollow noreferrer">A paper by Ochem and Rao</a> containing inequalities relating $\Omega(N)$ and $\omega(N)$ for $N$ an odd perfect number has been recently accepted in the <a href="http://www.ams.org/cgi-bin/mstrack/accepted_papers/mcom" rel="nofollow noreferrer">Mathematics of Computation</a>. The state-of-the-art result for $\Omega(N)$ remains to be <a href="http://www.ams.org/journals/mcom/2007-76-260/S0025-5718-07-02033-9/" rel="nofollow noreferrer">Hare's $\Omega(N) \geq 75$</a>.</p> <p>[Edit - August 29] The state-of-the-art result for $\Omega(N)$ (where $N$ is an odd perfect number) is now <a href="http://www.lirmm.fr/~ochem/opn/opn.pdf" rel="nofollow noreferrer">Ochem and Rao's $\Omega(N) \geq 101$</a>. [End edit]</p> <p>[End edit - July 30 2013]</p> <p>If there exists an $i \in \left[1,\omega(N)\right]$ such that</p> <p>$$N \leq \frac{3}{2}{p_i}^{\alpha_i}\sigma({p_i}^{\alpha_i}),$$</p> <p>then $$N = \prod_{i=1}^{\omega(N)}{{p_i}^{\alpha_i}}$$ (where the $p_i$'s are primes ordered in increasing magnitude and the $\alpha_i$'s are all positive)</p> <p>is ${\it not}$ an odd perfect number. (See Theorem 4.2.5, page 112 in this <a href="http://arxiv.org/pdf/1204.1450v1.pdf" rel="nofollow noreferrer">M.Sc. thesis</a>.)</p> <p>In particular, suppose $i = 1$. (That is, let $p_1$ be the smallest prime factor of $N$.) Then we have</p> <p>$${{p_1}^{\alpha_1}}\prod_{i=2}^{\omega(N)}{{p_i}^{\alpha_i}} = N = \prod_{i=1}^{\omega(N)}{{p_i}^{\alpha_i}} \leq \frac{3}{2}{p_i}^{\alpha_i}\sigma({p_i}^{\alpha_i}) &lt; \frac{9}{4}{{p_1}^{2\alpha_1}},$$</p> <p>from which it follows that</p> <p>$$\prod_{i=2}^{\omega(N)}{{p_2}^{\alpha_i}} \leq \prod_{i=2}^{\omega(N)}{{p_i}^{\alpha_i}} &lt; \frac{9}{4}{{p_1}^{\alpha_1}}.$$</p> <p>But we also have</p> <p>$${p_2}^{\Omega(N) - {\alpha_1}} = \prod_{i=2}^{\omega(N)}{{p_2}^{\alpha_i}} \leq \prod_{i=2}^{\omega(N)}{{p_i}^{\alpha_i}} &lt; \frac{9}{4}{{p_1}^{\alpha_1}} &lt; \frac{9}{4}{{p_2}^{\alpha_1}} &lt; {{p_2}^{\alpha_1 + 1}},$$</p> <p>from which we obtain</p> <p>$$\frac{\Omega(N) - 1}{2} &lt; \alpha_1.$$</p> <p>Note that we have obtained the result:</p> <p>"If $$N = {p_1}^{2\alpha_1}{q^k}\prod_{i=2}^{\omega(N) - 1}{{p_i}^{\alpha_i}}$$ is an odd (positive integer) with $\frac{\Omega(N) - 1}{2} &lt; \alpha_1,$ then $N$ is ${\it not}$ perfect."</p> <p>Taking the contrapositive of the result we have obtained, we have: "If $$N = {p_1}^{2\alpha_1}{q^k}\prod_{i=2}^{\omega(N) - 1}{{p_i}^{\alpha_i}}$$ is an odd perfect number with smallest prime factor $p_1$ and Euler prime $q$, then $\alpha_1 \leq \frac{\Omega(N) - 1}{2}$."</p> <p>Somebody, please tell me that I ${\it did}$ make a logical error somewhere -- I am finding it increasingly hard to spot my own mistakes these days. =(</p> <p>Thank you!</p>
0non-cybersec
Stackexchange
Nintendo president publishes plans for 2016 in Japanese newspaper. Plans include release of NX details, mobile apps, anime, and more. (Translation in comments).
0non-cybersec
Reddit
Clicking Notification Center Button Makes Dock Hang. <p>I'm experiencing a very strange issue on my Mid 2012 Retina MacBook Pro with OS X 10.8.5. All of the sudden I discovered that I was unable to command-tab between open applications, the dock would not unhide, I could not open notification center, and I could not three-finger-swipe between desktops. I discovered that force quitting Dock from the Activity Monitor would remedy the problem, but if I click the Notification Center button, the problem returns until I force quit Dock again. The Notification Center does not slide out when I press the button.</p> <p>I don't click the Notification Center button often, and I know that this problem has started without me clicking the Notification Center button at least twice. However, I did notice that it seemed like this started when I received a Mail notification this morning.</p> <p>Does anyone know of a solution to this problem?</p>
0non-cybersec
Stackexchange
Unlike their onscreen counterparts, Stevie and Bucky are NOT friends. They do like to team up to spy on me though....
0non-cybersec
Reddit
Mount SMB/CIFS share within a Docker container. <p>I have a web application running in a Docker container. This application needs to access some files on our corporate file server (Windows Server with an Active Directory domain controller). The files I'm trying to access are image files created for our clients and the web application displays them as part of the client's portfolio.</p> <p>On my development machine I have the appropriate folders mounted via entries in <code>/etc/fstab</code> and the host mount points are mounted in the Docker container via the <code>--volume</code> argument. This works perfectly.</p> <p>Now I'm trying to put together a production container which will be run on a different server and which doesn't rely on the CIFS share being mounted on the host. So I tried to add the appropriate entries to the <code>/etc/fstab</code> file in the container &amp; mounting them with <code>mount -a</code>. I get <code>mount error(13): Permission denied</code>.</p> <p>A little research online led me to <a href="http://opensource.com/business/14/9/security-for-docker" rel="noreferrer">this article about Docker security</a>. If I'm reading this correctly, it appears that Docker explicitly denies the ability to mount filesystems within a container. I tried mounting the shares read-only, but this (unsurprisingly) also failed.</p> <p>So, I have two questions:</p> <ol> <li><p>Am I correct in understanding that Docker prevents any use of <code>mount</code> inside containers?</p></li> <li><p>Can anyone think of another way to accomplish this <strong>without</strong> mounting a CIFS share on the host and then mounting the host folder in the Docker container?</p></li> </ol>
0non-cybersec
Stackexchange
Gas build up inside vaccum sealed bag..
0non-cybersec
Reddit
join a server ... see THIS!.
0non-cybersec
Reddit
Two Solutions to Watch Netflix Movies on iPod touch.
0non-cybersec
Reddit
Java toString - ToStringBuilder not sufficient; won&#39;t traverse. <p>I need to be able to traverse through my entire object graph and log all contents of all member fields. </p> <p>For example: Object A has a collection of Object B's which has a collection of Object C's and A, B, C have additional fields on them, etc. </p> <p>Apache Commons <a href="https://commons.apache.org/lang/api-3.0.1/org/apache/commons/lang3/builder/ToStringBuilder.html" rel="nofollow noreferrer">ToStringBuilder</a> is not sufficient since it won't traverse down an object graph or output contents of a collection.</p> <p>Does anyone know of another library that will do this or have a code snippet that does this?</p>
0non-cybersec
Stackexchange
How does Facebook notify and instantly shows new comments or how does Stackoverflow do it?. <p>I am a PHP developer and the title basically says it all. However I was hoping on some more in-depth information as I am starting to get confused about how the flow for the project I work on should go.</p> <p>For an (web) application I need to implement a feature like Facebook does it with notifying users about replies/comments and instantly showing these.</p> <p>I figured I could use long-polling with ajax requests but this does not seem to be a nice solution as the notifications never really are instant and it is resource heavy.</p> <p>So I should use some form of sockets if I understand correctly, and Node.Js would be a good choice. So based on the last assumption I now get confused about the work flow.</p> <p>I thought about two possible solutions:</p> <p>1) It seems to me, that if I would use Node.Js I could skip using PHP at all and base the application on Node.js only.</p> <p>2) Or I could use PHP as a base and only use Node.js for notifying users and instantly showing messages but saving the data using PHP and Mysql.</p> <p>These two possibilities confuse me and I can't make up my mind about what would be the "best" and cleanest way.</p> <p>I do not have much experience in Node.js, played with it for a while. But managing and saving data seems to be hard in Node.js so that is why I came up with option 2. </p> <p>I know Facebook is build on PHP so I am assuming that they save the data via PHP and notify / instantly show replies and comments via Node.</p> <p>Could someone help me out on this? </p> <p>Thanks in advance!</p> <p><strong>EDIT:</strong> I just noticed, Stackoverflow does something similar. I get a notification in the upper left, and below my question a box with "new answer to this question". I am really interested in the technologie(s) used.</p>
0non-cybersec
Stackexchange
Is encryption possible for simplex (one-directional) TCP/IP, and if so, how?. <p>As explained in <a href="http://tcpipguide.com/free/t_SimplexFullDuplexandHalfDuplexOperation.htm" rel="nofollow noreferrer">the TCP/IP Guide</a>, it is possible to configure TCP/IP to operate in simplex mode and this mode is utilized, among other things, in communication from satellites.</p> <p>One consideration with TCP/IP is however that, in itself, it "lacks even the most basic mechanisms for security, such as authentication or encryption", as <a href="http://www.linuxsecurity.com/resource_files/documentation/tcpip-security.html" rel="nofollow noreferrer">explained in this article</a>.</p> <p>According <a href="https://security.stackexchange.com/questions/39109/is-there-an-alternative-to-tcp-ip-that-encrypts-end-to-end">to this other question</a>, IPSec can be used to provide encryption for IP, but as can be read <a href="https://en.wikipedia.org/wiki/IPsec" rel="nofollow noreferrer">at Wikipedia</a>, IPSec is used to establish <strong>mutual</strong> authentication and <strong>exchange</strong> of encryption keys.</p> <p>Neither mutual authentication nor an exchange of keys should be possible in fully simplex mode (or maybe it is but I am missing something?).</p> <p>Anyway, the question I wanted to ask is: if TCP/IP is actually ever operated in simplex mode, what are the options for encrypting the data?</p>
0non-cybersec
Stackexchange
Recaptured Passion. A Journey With DJI’s Camera Drones.
0non-cybersec
Reddit
PRTG - Windows IIS Application sensor fault. <p>I have two sensors that are giving me the same alarm. </p> <blockquote> <p>WMI: No result set (code: PE016) -- PerfCounter: No data to return. (Performance Counter error 0x800007D5)</p> </blockquote> <p>I can't for the life of me figure out what is causing this or how to resolve it. I have checked the PRTG Knowledge base and have tried the fixes on here.</p> <p>It points towards being some kind of WMI fault.</p> <p><a href="https://kb.paessler.com/en/topic/3713-i-have-tried-a-lot-of-things-to-fix-my-wmi-what-else-can-i-try-to-avoid-reinstalling-windows" rel="nofollow noreferrer">https://kb.paessler.com/en/topic/3713-i-have-tried-a-lot-of-things-to-fix-my-wmi-what-else-can-i-try-to-avoid-reinstalling-windows</a></p> <p>I've checked and restarted the WMI service and all the dependencies. I'm at a bit of a loss. I've been googling hard but can't seem to find anything that works.</p> <p>If anyone has any ideas I would love to hear them.</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
Watching Dead Snow. Zombie Nazis vs snow bunnies. It's pretty cool so far, not much gore, but it keeps you on your toes.
0non-cybersec
Reddit
Kill Symbian Now, Please.
0non-cybersec
Reddit
Adding space between divs in flexbox. <p>I want to ask about good practive in making spacing between two divs which have flexbox. For example: </p> <p><a href="https://i.stack.imgur.com/OZ8cp.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/OZ8cp.png" alt="enter image description here"></a></p> <p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false"> <div class="snippet-code"> <pre class="snippet-code-css lang-css prettyprint-override"><code>header { background-image: radial-gradient(circle, #72d6c9, #54d1ed, #7ac5ff, #bcb2fe, #f29cd9); height: 80px; } .menu-section { display: flex; } .nav-logo { color: #e00986; font-size: 25px; margin: 0; padding-left: 15px; line-height: 80px; } nav ul { list-style-type: none; padding: 0; margin: 0; text-align: center; } nav ul li { display: inline-block; width: 150px; position: relative; } nav ul li a { text-decoration: none; line-height: 80px; padding: 0 10px; display: block; color: #e00986; } nav ul li a:hover { color: #FFF; transition-duration: 2s; }</code></pre> <pre class="snippet-code-html lang-html prettyprint-override"><code>&lt;header&gt; &lt;nav class="menu-section"&gt; &lt;h1 class="nav-logo"&gt;Love &amp;#9825 Cookies&lt;/h1&gt; &lt;ul&gt; &lt;li&gt;&lt;a href="#"&gt;Strona główna&lt;/a&gt;&lt;/li&gt; &lt;li&gt;&lt;a href="#"&gt;Ciastka&lt;/a&gt; &lt;ul&gt; &lt;li&gt;&lt;a href="#"&gt;Torty&lt;/a&gt;&lt;/li&gt; &lt;li&gt;&lt;a href="#"&gt;Babeczki&lt;/a&gt;&lt;/li&gt; &lt;li&gt;&lt;a href="#"&gt;Bezy&lt;/a&gt;&lt;/li&gt; &lt;li&gt;&lt;a href="#"&gt;Ciasta&lt;/a&gt;&lt;/li&gt; &lt;/ul&gt; &lt;/li&gt; &lt;li&gt;&lt;a href="#"&gt;Kontakt&lt;/a&gt;&lt;/li&gt; &lt;/ul&gt; &lt;/nav&gt; &lt;/header&gt;</code></pre> </div> </div> </p> <p>Of course I can give margin-left: 550px to nav ul and it will be okay, but I don't think so that is the good practice. What's your opinion in this topic?</p>
0non-cybersec
Stackexchange
MAIL DBCC CHECKDB RESULTS. <p>I want to regularly run DBCC CHECKDB on my production database. My database is real-time and DBCC CHECKDB is very expensive query, that`s why I want to write a maintenance plan to execute the query on nights when the activity is low. I want to set the query results to be sent as mail in order to check it when I am able. My question is, how can I set the query results to be sent to my e-mail when it is executed ?</p>
0non-cybersec
Stackexchange
ITAP of my favorite bar tender.
0non-cybersec
Reddit
Meet my new friend, Baxter.
0non-cybersec
Reddit
Closed Form for Factorial Sum. <p>I came across this question in some extracurricular problem sets my professor gave me: what is the closed form notation for the following sum:</p> <p>$$S_n = 1\cdot1!+2\cdot2!+ ...+n \cdot n!$$</p> <p>I tried computing some terms, and the only "vague" thing I noticed was that maybe I should be subtracting a term, but I'm really not sure. I went around looking on StackExchange's archives for a closed form of $S_n = 1!+2!+ ...+ n!$ but that didn't help me with my problem much. </p> <p>Any pointers?</p>
0non-cybersec
Stackexchange
Retrieving Data from database within the last 7 days using linq. <p>I have a <code>view</code> with data and I need to retrieve data only from the last 7 days. I know there is a function for this if I was using sql query. but I'm using Linq. </p> <p>here is my code:</p> <pre><code> try { var query = (from bwl in mg.BarcodeWithLocation select new { RequestID = bwl.RequestID, Barcode = bwl.Barcode, adrid = bwl.AdrID, name = bwl.Name, street = bwl.Street, houseno = bwl.HouseNo, postal = bwl.Postal, city = bwl.City, country = bwl.Country, latitudetxt = bwl.Latitude == "" ? "Location Unknown" : "View Map Location", latitude = bwl.Latitude, longitude = bwl.Longitude, date = bwl.ReceivedDate }); this.Grid.DataSource = query; this.Grid.DataBind(); } catch (Exception exception) { Console.WriteLine("ERROR in GetNoLocationScan() method. Error Message : " + exception.Message); } </code></pre> <p>can anyone tell me how I do this in Linq ?</p>
0non-cybersec
Stackexchange
How can I get a file copied from one location to another location on the same server without the echo. <p>Is it possible to copy a file from one location to another location on the same server without the file traveling from the server to the workstation and then back to the server. The scenario is the Microsoft Windows vista Peer to Peer network.</p>
0non-cybersec
Stackexchange
There’s Going to be a ‘Gilmore Girls’ Fall Fan Fest in Connecticut and You Can Go.
0non-cybersec
Reddit
How to assign from a function with multiple outputs?. <p>Is there a way to output e.g. 2 objects without using <code>list()</code>?</p> <pre><code>my.fun=function(vector, index) { a=fun.a(vector, index) b=fun.b(vector, index) output=list(a,b) } </code></pre> <p>Or to output 2 lists of objects? Considering that I could also have:</p> <pre><code> c=fun.a(vector, index) d=fun.b(vector, index) </code></pre> <p>And wanted <code>list(a,b)</code> and another <code>list(c,d)</code> for the same function.</p> <p>This is just a small example for what I am looking for, my function is applied to large objects and I export them as a list, however I would like to export also an intermidiate calculation. One option would be to merge all in the same list, but I would like to know if there is another solution to this.</p>
0non-cybersec
Stackexchange
How to troubleshoot &quot;CancellationTokenSource has been disposed&quot; error?. <p>I am seeing a number of these errors in the logs for a .NET Core 2.2.x web app:</p> <pre><code>Connection ID ""13546832108852449106"", Request ID ""80018f57-0407-bc00-b63f-84710c7967bb"": An unhandled exception was thrown by the application. System.ObjectDisposedException: The CancellationTokenSource has been disposed. at System.Threading.CancellationTokenSource.ThrowObjectDisposedException() at Microsoft.AspNetCore.Server.IIS.Core.IISHttpContext.&lt;&gt;c__DisplayClass314_0.&lt;AbortIO&gt;b__0(Object t) </code></pre> <p>As you can see, the error occurs in the .net core framework rather than my code. </p> <p>I looked up the specific Request Id mentioned in the error and it seems to have processed just fine. The error appears in the log about a second after the request has processed and returned data. I also checked the Event Viewer and there wasn't anything suspicious around the time frame of the error.</p> <p>How can I troubleshoot this issue?</p> <p>The Windows 2016 server has .NET Core 2.2.6 runtime installed. </p>
0non-cybersec
Stackexchange
Trying to decide what to learn that I could potentially do freelance one day. I've ready the sidebar and I'm still not sure.. Hey all. I'm 30 years old and I work in IT, however I'm not happy with the direction my career is going or with life in general, and I've always wanted to learn to program, but never took the plunge outside of learning some basic HTML and JS in a college course. The two langues I've narrowed it down to that I may want to learn (and maybe learn both eventually, but to start out with and try to master) is Java and the necessary things for making websites and such (HTML, JS, CSS, etc). I'm not saying I'm opposed to working for a company, but I'd like to one day work for myself and do freelance coding. I know there are a TON of Java jobs out there, but is it possible to work for yourself doing Java coding? As far as web development goes, I'm pretty sure it's possible to freelance and work for yourself by building websites and such. Does anyone here do this, and do you have any advice? I appreciate any advice! Edit: ~~getting downvoted. Ouch :(~~ You guys are fucking awesome. Thank you for all of the advice and information!
0non-cybersec
Reddit
How do setup DHCP in in Linux?. <p>I can't change the default ip address of my linux box. I tried</p> <pre><code>dhcpcd -k </code></pre> <p>I got a dhcpcd: command not found</p> <p>I tried to do a:</p> <pre><code>install dhcpcd </code></pre> <p>but I can't install dhcpcd because I don't have internet at the moment. The device I'm working with starts with a default static IP.</p> <p>I also tried </p> <pre><code>dhclient eth1 -v </code></pre> <p>I get Internet Systems Consortium DHCP Client 4.3.5 Copyright 2004-2016 Internet Systems Consortium. All rights reserved. For info, please visit <a href="https://www.isc.org/software/dhcp/" rel="nofollow noreferrer">https://www.isc.org/software/dhcp/</a></p> <pre><code>Listening on LPF/eth1/00:90:e8:00:f9:d7 Sending on LPF/eth1/00:90:e8:00:f9:d7 Sending on Socket/fallback DHCPREQUEST of 10.13.2.109 on eth1 to 255.255.255.255 port 67 DHCPACK of 10.13.2.109 from 10.13.1.1 RTNETLINK answers: File exists bound to 10.13.2.109 -- renewal in 42817 seconds. </code></pre> <p>I type in {ifconfig}</p> <p>and I still get:</p> <pre><code> eth1: flags=4163&lt;UP,BROADCAST,RUNNING,MULTICAST&gt; mtu 1500 inet 192.168.4.127 netmask 255.255.255.0 broadcast 192.168.4.255 inet6 fe80::290:e8ff:fe00:f9d7 prefixlen 64 scopeid 0x20&lt;link&gt; ether 00:90:e8:00:f9:d7 txqueuelen 1000 (Ethernet) RX packets 134834 bytes 17025152 (16.2 MiB) RX errors 0 dropped 0 overruns 0 frame 0 TX packets 2265 bytes 140834 (137.5 KiB) </code></pre> <p>How do I install dhcp if I have no internet?</p> <p>PSsst...I'm a newb when it comes to linux. </p> <p>I'm on debian 9.0 btw.</p> <p><strong>Edit</strong></p> <p>If I type in ip addr I get</p> <pre><code> 3: eth1: &lt;BROADCAST,MULTICAST,UP,LOWER_UP&gt; mtu 1500 qdisc pfifo_fast state UP group default qlen 1000 link/ether 00:90:e8:00:f9:d7 brd ff:ff:ff:ff:ff:ff inet 192.168.4.127/24 brd 192.168.4.255 scope global eth1 valid_lft forever preferred_lft forever inet 10.13.2.109/22 brd 10.13.3.255 scope global eth1 valid_lft forever preferred_lft forever inet6 fe80::290:e8ff:fe00:f9d7/64 scope link valid_lft forever preferred_lft forever </code></pre> <p>I see where it says inet 10.13.2.109. I guess what's throwing me off is it also states my inet is 192.168.4.127. ELI5?</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
Strategy to isolate multiple nginx ssl apps with single domain via suburi&#39;s?. <p>Warning: so far I have only learnt how to use nginx to serve apps with their own domain and server block. But I think its time to dive a little deeper.</p> <p>To mitigate the need for multiple SSL certificates or expensive wildcard certificates I would like to serve multiple apps (e.g. rails apps, php apps, node.js apps) from one nginx server_name. e.g. rooturl/railsapp rooturl/nodejsapp rooturl/phpshop rooturl/phpblog </p> <p>I am unsure on ideal strategy. Some examples I have seen and or thought about:</p> <ol> <li><p>Multiple location rules, this seems to cause conflicts between the individual app config requirements, e.g. differing rewrite and access requirements</p></li> <li><p>Isolated apps by backend internal port, is this possible? Each port routing to its own config? So config is isolated and can be bespoke to app requirements.</p></li> <li><p>Reverse proxy, I am little ignorant of how this works, is this what I need to research? is this actually 2 above? Help online seems to always proxy to another server e.g apache</p></li> </ol> <p>What is an effective way to isolate config requirements for apps served from a single domain via sub uris?</p>
0non-cybersec
Stackexchange
Why is Netbeans suggesting I &quot;Flip operands of the binary operators&quot; in my Java code. <p>Netbeans frequently suggests that I "flip operands of the binary operator" when I'm doing mathematical calculations. For example, in the following line of code:</p> <pre><code> change = 100 - price; quarters = change / 25; dimes = change % 25 / 10; nickels = change % 25 % 10 / 5; pennies = change % 25 % 10 % 5; </code></pre> <p>Netbeans makes the suggestion for every mathematical symbol (so it does it three times in the 'pennies' line.</p> <p>I'm not sure I understand why it's making the suggestion. If I were to flip the operands while performing division I would get a different result (if "flip" means what I think it does, which is switch the order of the two values). Why does it suggest this?</p>
0non-cybersec
Stackexchange
getLinks method returns deleted Entities, how to prevent it?. <p>Below is my code to get the list of <code>Entity</code>'s linked. It works but the problem is that even the deleted <code>Entity</code> is returned, although the <code>Entity</code> is already emptied out and it is the only property set. Is there a way to not return the deleted entities at all? Or is there a way to filter it out? </p> <pre><code>EntityId idOfEntity = txn.toEntityId(entityId); Entity txnEntity = txn.getEntity(idOfEntity); EntityIterable result = txnEntity.getLinks(Arrays.asList(new String[] {linkName})); for (Entity entity : result) { } </code></pre>
0non-cybersec
Stackexchange
Line breaks for items while wrapping images with a list. <p>I am trying to create a list with figure on the right side in beamer but the sentence breaks at unusual places.</p> <pre><code> \begin{frame}{Protocol} \begin{wrapfigure}{R}{0.2\textwidth} \centering \includegraphics[width=0.1\textwidth]{Schematic_coating} \end{wrapfigure} \noindent \begin{itemize} \item Prepare 0.6 M NaCl solution in a 10 mM Tris-HCl (pH 8.5) solution \item Clean the glass substrate using ultrasonication with water and acetone or ethanol. \item Leave the substrate for 8 h into the solution for coating. \item Rinse extensively with ultrapure water and dry under a stream of nitrogen. \end{itemize} \end{frame} </code></pre> <p><a href="https://i.stack.imgur.com/X6XO4.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/X6XO4.png" alt="Image showing line break" /></a></p>
0non-cybersec
Stackexchange
Is there the equivalent of next in Pry?. <p>I don't see a way of just going to the next line when using pry as a debugger. All I can find is to edit the method and move binding.pry to the next line. Is there such a feature?</p> <pre><code>22: def scan path 23: @last_line_had_text, @files_read, @hands_read = nil, 0, 0 24: Find.find(path){ |file_name| =&gt; 25: binding.pry 26: read_file(file_name) if file_name.include?(".txt") 27: } 28: end </code></pre>
0non-cybersec
Stackexchange
What do you think of this shirt?.
0non-cybersec
Reddit
Top Action Movies that I had fun watching.
0non-cybersec
Reddit
First Puppies Born by in vitro fertilization.
0non-cybersec
Reddit
So proud. Helping my 13 year old make his bed. It's a hot night and the ceiling fan is on. "Don't flick the sheet too high, Dad, or else..." Me: "Or else what?" "or else the sheet will hit the fan"
0non-cybersec
Reddit
Panoramic hike in Yosemite. Webm of Half Dome (OC).
0non-cybersec
Reddit
Proof of validity of predicate logic axioms?. <p>I am having a very hard time grasping the proof of the validity of the predicate logic axiom PC1: <span class="math-container">$\forall P \rightarrow P[B/a] $</span> (where P[B/a] is the result of replacing each free occurrence of a with B, and assuming no occurrence of a occurs within the scope of an occurrence of <span class="math-container">$\forall B$</span>). </p> <p>Beforehand, I have shown: </p> <p>1/ that if the variable assignments g and h agree on the free variables in P, Vg(P)=Vh(P)</p> <p>2/ if [a]g=[B]g, then Vg(P)=Vg(P(B/a))</p> <p>Doing a proof by reductio, it seems obvious that Vg(<span class="math-container">$\forall xP$</span>)=1 contradicts Vg(P[B/a])=0 but I have no idea how to write out the semantic argument correctly. It also seems like I should be using the above, but again I have no idea how to establish the antecedents.</p> <p>Any help would be appreciated-it would be great if I could get this proof down to be able to refer back to it!</p>
0non-cybersec
Stackexchange
Ubuntu is getting stuck at pruple boot screen. <p>My Ubuntu was working all fine but suddenly it got shutdown and now it is not getting past the purple boot screen. I tried using the recovery mode but i get presented with some error logs. What could be wrong in this case? I have attached the image below.</p> <p>I also tried doing <code>fsck</code> but i got that <code>fsck is not installed</code>. Unfortunately i do not backups of many important files on the system. I would like to know if there is any option of recovery.</p> <p><a href="https://i.stack.imgur.com/lueST.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/lueST.jpg" alt="here is the image of logs"></a></p>
0non-cybersec
Stackexchange
Conformity of $r^λ(\cos(λθ),\sin(λθ))$ for $λ∈\Bbb C$, $(r,θ)$ standard polar coordinates. <p>Welcome everybody :)</p> <p>I have problems to solve the following task:</p> <hr> <p>Let $\lambda∈\Bbb C$.</p> <p>Define $$(r,\theta ) = r^λ (\cos(λ\theta ),\sin(λ\theta ))$$ Here $(r,\theta )$ are the standard polar coordinates in $\Bbb R^2 = \Bbb C$.</p> <p>a) Show that $\phi$ is a conformal map on the slit plane $\{(r,\theta ) \mid r&gt;0, -π&lt;\theta &lt;π\}$.</p> <p>b) For which $λ$ does $\phi$ extend to a conformal map on $\Bbb R^2\setminus\{0\}$?</p> <p>c) For which $λ$ does $\phi$ extend to a conformal map on $\Bbb R^2$?</p> <hr> <p>From my knowledge: $f$ is a conformal map $:\iff$ $f$ is orientation- and angle-preserving</p> <p>My approach/idea was the following:</p> <p>$f$ is $C^1$ and Cauchy-Riemann DE holds ⇔ $f$ is holomorphic </p> <p>$f$ holomorphic on $D$ and $f'(z₀) ≠ 0 \quad \forall z_0 \in D$ (Domain) $\iff$ $f$ is conformal.</p> <p>But the main problem first:</p> <p>If one has $\phi(r,\theta ) = r^λ (\cos(λ\theta ),\sin(λ\theta ))$ how can I identify this with a function from lets say $\Bbb C \to \Bbb C$? Is it correct to say $\phi(r,\theta ) = r^λ (\cos(λ\theta ) + i \sin(λ\theta )$?</p> <p>Normally I see it like this (correspondence of $\Bbb C$ with $\Bbb R^2$)</p> <p>$f = u + iv \iff f = (u,v)$ with the standard basis ${(1,0),(0,i)}$ and $u,v$ functions from $\Bbb R \to \Bbb R$. (real and imaginary part of $f$)</p> <p>Furthermore, if my way of seeing this is correct, I would then show the CR-DE for polar-coordinates $u_\theta = -r v_r ∧ v_\theta = r u_r$ (where $u_r$ stands for the partial derivative)</p> <p>Then I write out $r^λ$ as $\exp(λ\cdot Ln(r))$ and since I use the main-branch so $\exp(λ\cdot (\ln|r| + i arg(r) + 2kπi)) ⇒ \exp(λ\cdot \ln|r|) = \exp(λ\cdot \ln(r))$ correct?</p> <p>Furthermore by setting $λ ≔ a + ib$ with $a,b ∈ ℝ$ one can simplifies $$\cos(λ\theta ) = \cos((a+ib)\theta ) = \cos(a\theta ) \cosh(b\theta ) - \sin(a\theta ) i\cdot \sinh(b\theta ) \sin(λ\theta ) = \sin(a\theta ) \cosh(b\theta ) + i\cdot \cos(a\theta ) \sinh(b\theta ) then \cos(λ\theta ) + i\cdot \sin(λ\theta ) = [\cos(a\theta ) + i\cdot \sin(a\theta )] [\cosh(b\theta ) - \sinh(b\theta )] = \exp(ai\theta )\cdot \exp(-b\theta )$$</p> <p>$⇒ r^λ\cdot (\cos(λ\theta ) + i \sin(λ\theta )) = \exp(a\cdot \ln(r)) \cdot \exp(ib\cdot \ln(r)) \cdot \exp(ai\theta ) \cdot \exp(-b\theta )$</p> <p>and from this I get:</p> <p>$u(r,\theta ) = \exp(a\cdot \ln(r) - b\theta ) \cdot \cos(b\cdot \ln(r) + a\theta )$ $v(r,\theta ) = \exp(a\cdot \ln(r) - b\theta ) \cdot \sin(b\cdot \ln(r) + a\theta )$</p> <p>Then I can check if the CR-DE holds. They are true.</p> <p>Now my questions are:</p> <p>i) Can I use the Jacobian of $ϕ$ (as a map $ℝ^2 → ℝ^2$) with the partial derivatives from the given u and v from above?</p> <p>ii) Can I then say for checking the Jacobian of $ϕ$ (lets say J for this matrix) $f' = J$ ? Normaly $f'$ is a $ℂ-linear$ differntial from $ℂ → ℂ$ I know.</p> <p>iii) Therefore I would check that $J(z₀) ≠ (0,0)$ for every point $z₀$ given in my domain? (here $ℂ⁻$)</p> <p>iv) For the questions a,b,c I think the conformal mapping is destroyed if we extend $ℂ⁻$ to $ℝ^2$/{0} since $r^λ = \exp(λ\cdot \ln(r))$ but $\exp(λ)$ isn't an injective function for $λ∈ℂ$, right? So I would say $λ$ has to be $λ∈ℤ$ to getting a unique power (required for conformal mapping). Furthermore if the domain if $ℝ^2$ then by defining $0^0 ≔ 1$ I think $λ=0$ is the only way to get out of trouble?</p> <p>v) The problem with the continuity is the main reason to restrict our domain, right?</p> <p>vi) Do you understand $f$ conformal $\iff$ bijectiv $∧ f,f^{-1}$ are both holomorphic?</p> <p>Does my teacher understand conformity (deduced from the task) as $f$ locally conformal $\iff$ $f$ angle- and orientation preserving?</p> <p>Thank you very much for your help. We are 4 people working together and nobody has a clue how to solve this task. I hope my ideas are not entirely wrong :-} This is a very cool site and I can use unifont directly from my keyboard, WOW :)</p> <p>Greetings,</p> <p>Poly</p>
0non-cybersec
Stackexchange
Can&#180;t locate libgsl.so.23 even though installed. <p>I am trying to run molflow on my computer (ubuntu 16.04.5 unity DE) and I have installed all the dependencies that are required. Even so when trying to start the program I get the following error:</p> <pre><code>user@computer:~/molflow_linux_debian_2.7.3$ ./molflow ./molflow: error while loading shared libraries: libgsl.so.23: cannot open shared object file: No such file or directory </code></pre> <p>I have looked into the available packages using apt-get and I have tried looking for it online but I can´t seem to find where to get this library. Help is much appreciated.</p> <p>Thanks in advance</p>
0non-cybersec
Stackexchange
Why does Dropbox consume CPU cycles even when paused?. <p>Today I noticed that Dropbox consumes nearly as much as half of CPU time consumed by <code>kernel_task</code> on OS X 10.8.3, which is a pretty decent amount of CPU usage. So I paused it and see what would happen.</p> <p>Surprisingly, even after I paused syncing, Dropbox takes roughly the same amount of CPU (and nothing is being changed).</p> <p>So, Dropbox keeps on indexing even if I instruct it to "pause"? Then the "pause" only applies to network usage? This seems pretty dumb?</p>
0non-cybersec
Stackexchange
Best served cold.
0non-cybersec
Reddit
Being Human series 5 to be its last.
0non-cybersec
Reddit
In “Tombstone” (1993), Doc Holliday plays a piano piece composed by Frederic Chopin. Both Doc Holliday and Frederic Chopin died in their 30s after suffering from tuberculosis for many years..
0non-cybersec
Reddit
Official Nintendo Survey - about their social media presence, content on their YouTube channels, E3 showing, and amiibo..
0non-cybersec
Reddit
The Golden Child- Eddie Murphy in a kung fu movie..
0non-cybersec
Reddit
How to unzip a file in Ruby on Rails?. <p>I'm uploading a file to the server in Ruby on Rails</p> <p>Normally, it's a text file and I save it in the model as a 'file' field in a Submission ActiveRecord with other fields such as title of submission.. etc.</p> <p>However, the user can also submit a zip file. In this case the zipfile should unzipped and for each file in the zip a new Submission should be created with the same text fields, but current file.</p> <p>How can I accomplish this?</p> <p>I looked at unzip examples on the net, but most use a directory to unzip the files to. I'm not sure if I need that as in the current create method of SubmissionsController, a file object is received and I presume the path to save the file to is automatically generated when the Submission save method is called. So I was thinking that maybe I should unzip the zipfile in memory to get an array of file objects and then create a new Submission with each file object but same fields and then let ActiveRecord generate the file paths for each one when it saves them to the database. I might be wrong here, because I'm kind of new to Rails and Ruby.</p>
0non-cybersec
Stackexchange
[Spoilers] Cardcaptor Sakura Episode 29 REWATCH Discussion Thread. **Episode Title:** Sakura's Sweet Cooking *** The schedule will be daily, and will include the movies 1 (after season one ends, episode 35) and 2 (when the show ends), followed by a two days hiatus after each of them. *** **[MyAnimeList](http://myanimelist.net/anime/232/Cardcaptor_Sakura)** **[Hummingbird](https://hummingbird.me/anime/cardcaptor-sakura)** **[AnimeNewsNetwork](http://www.animenewsnetwork.com/encyclopedia/anime.php?id=126)** **[Crunchyroll](http://www.crunchyroll.com/cardcaptor-sakura)** *** **Previous episodes:** [^(Episode 1: 5th October)](https://www.reddit.com/r/anime/comments/3nia6v/spoilers_cardcaptor_sakura_episode_1_rewatch/) [^(Episode 2: 6th October)](https://www.reddit.com/r/anime/comments/3nmql9/spoilers_cardcaptor_sakura_episode_2_rewatch/) [^(Episode 3: 7th October)](https://www.reddit.com/r/anime/comments/3nrpru/spoilers_cardcaptor_sakura_episode_3_rewatch/) [^(Episode 4: 8th October)](https://www.reddit.com/r/anime/comments/3nwkkm/spoilers_cardcaptor_sakura_episode_4_rewatch/) [^(Episode 5: 9th October)](https://www.reddit.com/r/anime/comments/3o0gb8/cardcaptor_sakura_episode_5_rewatch_discussion/) [^(Episode 6: 10th October)](https://www.reddit.com/r/anime/comments/3o5ihe/cardcaptor_sakura_episode_6_rewatch_discussion/) [^(Episode 7: 11th October)](https://www.reddit.com/r/anime/comments/3o9jhf/spoilers_cardcaptor_sakura_episode_7_rewatch/) [^(Episode 8: 12th October)](https://www.reddit.com/r/anime/comments/3odqvt/spoilers_cardcaptor_sakura_episode_8_rewatch/) [^(Episode 9: 13th October)](https://www.reddit.com/r/anime/comments/3oi0m5/spoilers_cardcaptor_sakura_episode_9_rewatch/) [^(Episode 10: 14th October)](https://www.reddit.com/r/anime/comments/3on9me/spoilers_cardcaptor_sakura_episode_10_rewatch/) [^(Episode 11: 15th October)](https://www.reddit.com/r/anime/comments/3osvtl/spoilers_cardcaptor_sakura_episode_11_rewatch/) [^(Episode 12: 16th October)](https://www.reddit.com/r/anime/comments/3ox3ct/cardcaptor_sakura_episode_12_rewatch_discussion/) [^(Episode 13: 17th October)](https://www.reddit.com/r/anime/comments/3p2q31/spoilers_cardcaptor_sakura_episode_13_rewatch/) [^(Episode 14: 18th October)](https://www.reddit.com/r/anime/comments/3p5r1q/spoilers_cardcaptor_sakura_episode_14_rewatch/) [^(Episode 15: 19th October)](https://www.reddit.com/r/anime/comments/3p9y97/spoilers_cardcaptor_sakura_episode_15_rewatch/) [^(Episode 16: 20th October)](https://www.reddit.com/r/anime/comments/3pehq4/spoilers_cardcaptor_sakura_episode_16_rewatch/) [^(Episode 17: 21st October)](https://www.reddit.com/r/anime/comments/3pjwao/spoilers_cardcaptor_sakura_episode_17_rewatch/) [^(Episode 18: 22nd October)](https://www.reddit.com/r/anime/comments/3poqp9/spoilers_cardcaptor_sakura_episode_18_rewatch/) [^(Episode 19: 23th October)](https://www.reddit.com/r/anime/comments/3ptxf7/spoilers_cardcaptor_sakura_episode_19_rewatch/) [^(Episode 20: 24th October)](https://www.reddit.com/r/anime/comments/3py2xf/spoilers_cardcaptor_sakura_episode_20_rewatch/) [^(Episode 21: 25th October)](https://www.reddit.com/r/anime/comments/3q357h/spoilers_cardcaptor_sakura_episode_21_rewatch/) [^(Episode 22: 26th October)](https://www.reddit.com/r/anime/comments/3q7nnx/spoilers_cardcaptor_sakura_episode_22_rewatch/) [^(Episode 23: 27th October)](https://www.reddit.com/r/anime/comments/3qdazr/spoilers_cardcaptor_sakura_episode_23_rewatch/) [^(Episode 24: 28th October)](https://www.reddit.com/r/anime/comments/3qhimf/spoilers_cardcaptor_sakura_episode_24_rewatch/) [^(Episode 25: 29th October)](https://www.reddit.com/r/anime/comments/3qmmgj/spoilers_cardcaptor_sakura_episode_25_rewatch/) [^(Episode 26: 30th October)](https://www.reddit.com/r/anime/comments/3qrpg9/spoilers_cardcaptor_sakura_episode_26_rewatch/) [^(Episode 27: 31st October)](https://www.reddit.com/r/anime/comments/3qwi5p/spoilers_cardcaptor_sakura_episode_27_rewatch/) [^(Episode 28: 1st November)](https://www.reddit.com/r/anime/comments/3r0ryj/spoilers_cardcaptor_sakura_episode_28_rewatch/) **Please, no untagged spoilers beyond this episode**
0non-cybersec
Reddit
soft link to non existant server?. <p>I inherited a bunch of xls files and a dts that imports them all into sql. the server the dts is looking for no longer exists (FS1)</p> <p>Any kind soul knows a way to make that any petition to FS1(non existant) is somewhat redirected to new server (NEWFS)? (without renaming NEWFS) if not I guess I will have to replace paths in dts but I was hoping to avoid that.</p> <p>Thank you in advance</p>
0non-cybersec
Stackexchange
What’s next?.
0non-cybersec
Reddit
&quot;collapse all&quot; all nodes in one click in firefox or chrome. <p>Any way to "collapse all" all nodes in one click in firefox or chrome and then able to search a node's name and then quickly see its path/tree of parent nodes? First collapse not just top node, but all child nodes, and when I search for a node then it opens only that tree of nodes. I want this because I search a node in a big xml file. The node is present many times under different paths of parent nodes and I need to see the path of the node where ever it appears. Right now I have to manually traverse whole file and collapse many times to find all paths of that node that is present many times in a file. Any quick way of doing it?</p>
0non-cybersec
Stackexchange
Room error: Not sure how to handle insert method&#39;s return type. <p>I don't get it, I though this is the way to get the id of newly inserted row.</p> <p><strong>DAO</strong></p> <pre><code>@Dao public interface AlarmDao { ..... @Insert(onConflict = OnConflictStrategy.REPLACE) long insertAll(AlarmEntity...alarms); //used long instead of void } </code></pre> <p><strong>ENTITY</strong></p> <pre><code>@Entity(tableName = "tb_alarm") public class AlarmEntity { @PrimaryKey(autoGenerate = true) private long id; ... public long getId(){ return this.id; } } </code></pre> <p>but building is failed and I'm getting error which is pointing into my <code>Dao</code> class and the error is: </p> <blockquote> <p>error: Not sure how to handle insert method's return type.</p> </blockquote> <p>What did I missed about it?</p>
0non-cybersec
Stackexchange
SV/NSV Feats of the Day - Wednesday, 02 November 2016: Today, I conquered!. #The habit of persistence is the habit of victory! Celebrating something great? **Scale Victory, Non-Scale Victory, Progress, Milestones** -- this is the place! **Big or small, long or short**, please post here and help us focus all of today's awesomeness into an inspiring *and informative* mega-dose of greatness! (**Details are appreciated!!** *How are you losing your weight?*) * Did you just change your flair? pass a milestone? reach a goal? * Did you log for an entire week? or year? * Did you take the stairs? walk a mile? jog for 3? set a new personal record? * Fit into your old pair of jeans? throw away your fat clothes? fit into your college outfit? Post it here! This is the *new, improved* place for recording your **acts of awesomeness!** Due to space limitations, this may be an announcement (sticky) only occasionally. **Please find it daily and keep it the hottest thing on /r/loseit!** *** On reddit [your vote means, "I found this interesting!"](https://www.reddit.com/wiki/voting) Help us make this daily post the *most read, most used, most interesting* post on /r/loseit by reading, commenting, and participating often! ***
0non-cybersec
Reddit
Bill O’Reilly and Richard Dawkins Debate Religion (Video).
0non-cybersec
Reddit
10 essential FOSS tools for MySQL.
0non-cybersec
Reddit
Python strange multiprocessing with variable name. <p>a simple example:</p> <pre><code>#!/usr/bin/env python # -*- coding: utf-8 -*- import multiprocessing class Klass(object): def __init__(self): print "Constructor ... %s" % multiprocessing.current_process().name def __del__(self): print "... Destructor %s" % multiprocessing.current_process().name if __name__ == '__main__': kls = Klass() </code></pre> <p>run with error when do <code>current_process</code> in <code>__del__</code>:</p> <pre><code>Constructor ... MainProcess Exception AttributeError: "'NoneType' object has no attribute 'current_process'" in &lt;bound method Klass.__del__ of &lt;__main__.Klass object at 0x7f5c34e52090&gt;&gt; ignored </code></pre> <p>if I change a variable name:</p> <pre><code>als = Klass() </code></pre> <p>it get the right result:</p> <pre><code>Constructor ... MainProcess ... Destructor MainProcess </code></pre> <p>and I tried many variable name, some ok, some error.</p> <p>Why different instance name, will cause multiprocessing module be None in <code>__del__</code>?</p>
0non-cybersec
Stackexchange
Java DriverManager.getConnection hangs when called with wrong parameters. <p>I have a Java application with multiple concurrent threads. In a particular situation, I find that the call <code>java.sql.DriverManager.getConnection</code> hangs and waits indefinitely causing the whole system freeze. I suspect I have given the URL wrong, where there is no ORACLE server listening to this call, but there is another DB listener which is not returning back to the socket call. That could be the reason of this hang. When I changed the URL to a wrong value, e.g. jdbc:oracle:thin:@xx:21050:DB, where no DB listener (oracle or non-oracle) is running, <code>getConnection</code> call comes out with <code>java.sql.SQLRecoverableException: IO Error: The Network Adapter could not establish the connection</code>.</p> <p>Is there any other API through which I may check at runtime if the URL is having an ORACLE server listener running out there? My problem for this hang is because I have some other DB (non-ORACLE) listener running there and my <code>getConnection</code> hangs. Is there any remedy or workaround? The thread dump shows me the following:</p> <pre><code>"AWT-EventQueue-0@3511" prio=6 tid=0x15 nid=NA runnable java.lang.Thread.State: RUNNABLE at sun.nio.ch.SocketDispatcher.read0(SocketDispatcher.java:-1) at sun.nio.ch.SocketDispatcher.read(SocketDispatcher.java:43) at sun.nio.ch.IOUtil.readIntoNativeBuffer(IOUtil.java:223) at sun.nio.ch.IOUtil.read(IOUtil.java:197) at sun.nio.ch.SocketChannelImpl.read(SocketChannelImpl.java:380) - locked &lt;0x459c&gt; (a java.lang.Object) at oracle.net.nt.TimeoutSocketChannel.read(TimeoutSocketChannel.java:144) at oracle.net.ns.NIOHeader.readHeaderBuffer(NIOHeader.java:82) at oracle.net.ns.NIOPacket.readNIOPacket(NIOPacket.java:252) at oracle.net.ns.NSProtocolNIO.negotiateConnection(NSProtocolNIO.java:118) at oracle.net.ns.NSProtocol.connect(NSProtocol.java:317) at oracle.jdbc.driver.T4CConnection.connect(T4CConnection.java:1438) at oracle.jdbc.driver.T4CConnection.logon(T4CConnection.java:518) at oracle.jdbc.driver.PhysicalConnection.connect(PhysicalConnection.java:688) at oracle.jdbc.driver.T4CDriverExtension.getConnection(T4CDriverExtension.java:39) at oracle.jdbc.driver.OracleDriver.connect(OracleDriver.java:691) at java.sql.DriverManager.getConnection(DriverManager.java:664) at java.sql.DriverManager.getConnection(DriverManager.java:247) </code></pre> <p>I found a similar problem discussed as: <a href="https://stackoverflow.com/questions/23868433/oracle-jdbc-drivermanager-getconnection-hangs">Oracle JDBC DriverManager.getConnection() hangs</a> But my question is even if I supply some wrong parameters (URL, userid and password), why the call never comes back with a timeout? Can I add a timeout here or exception that I may handle in this call? Please help me out.</p>
0non-cybersec
Stackexchange
why i have unity 5.20.0 installed, if they are already making unity 8?. <p>I thought i have the lastest version available, i updated very resently. It's the lastest version in repository.</p> <p>Also, emacs 24 somehow not in repository either, only version 23.</p> <p>Update:</p> <p>my ubuntu version is Ubuntu 12.04.3 LTS</p>
0non-cybersec
Stackexchange
Computer completely freezing when performing actions - What should I check?. <h1>Issue:</h1> <p>Whenever I try to run anything on this computer (start a program - or pretty much anything) it hangs up for about a second - the GUI becomes unresponsive and any terminals stop taking inputs (keyboard input doesn't show up on screen until after it becomes responsive again, so it <em>is</em> buffering). </p> <h1>Context:</h1> <p>This issue is happening on my laptop which has the following configuration:</p> <ul> <li>HP 15.1 Inch Notebook (Model 15-ay066ne)</li> <li>Intel i3-6006U</li> <li>4 Gigs of RAM</li> <li>500 GB 5400 rpm SATA HDD</li> <li>Running Linux Mint 19.1 (Tessa)</li> </ul> <p>I bought this machine about 5 months ago - it came preinstalled with Windows 10 Home Version but I reformatted the drive and put in Linux Mint. It was having similar issues (though not exactly the same) with windows 10 as well so the issue is probably something to do with the hardware.</p> <h1>What I've done:</h1> <p>Since the issue was only happening when I was trying to run something (i.e. load something from the HDD) - I thought that it may have to do with the HDD. I installed <code>smartmontools</code> and looked at the SMART data using <code>smartctl</code>. The status returned all OK:</p> <pre><code>=== START OF READ SMART DATA SECTION === SMART overall-health self-assessment test result: PASSED </code></pre> <p>I then ran a short self-test but that completed successfully as well</p> <pre><code>SMART Self-test log structure revision number 1 Num Test_Description Status Remaining LifeTime(hours) LBA_of_first_error # 1 Short offline Completed without error 00% 679 - </code></pre> <p>Not sure if running more thorough tests would yield anything - since it's just testing all the HDD sectors - and I don't think I'm dealing with bad sectors. I'm not yet convinced however that the issue isn't with the HDD so I searched online to find a way to monitor the HDD usage itself using <code>sysstat</code>by using the command <code>iostat -dx /dev/sda 5</code>.</p> <p><a href="https://i.stack.imgur.com/ECvhZ.png" rel="nofollow noreferrer">I started GIMP and noted when the computer hanged (Click for screenshot)</a></p> <p>So I don't think it's the hard-drive anymore. I don't really know what else to test. From what I can tell through the built in system monitor in Mint - the issue doesn't seem to be the Processor or the Main Memory, their utilization remains normal during hangs. Any ideas on what to test and maybe what logs to look at would be appreciated. </p>
0non-cybersec
Stackexchange
Are float array, float[], and double[] different, or the same?. <p>I'm writing my code as if these are all the same thing, and having no problems, but it's starting to confuse me when I hover over a function in Visual Studio and see that the type definitions contain 3 different types that I had thought were all the same. Are they the same? Or are they different?</p>
0non-cybersec
Stackexchange
Find real roots of equation $ x^5-5x^2+2 = 0 $. <p>Find all real roots of equation $ x^5 - 5x^2 + 2 = 0 $. I have a solution to this problem (It's not long but tricky) but I don't like it. I put hint for this tricky solution:</p> <blockquote class="spoiler"> <p> At the beginning we want to change it into product. It's not by chance that $ x^{\textit{5}}-\textit{5}x^{\underline{2}} + \underline{2} $ (five-five, two-two repetition)</p> </blockquote> <p>But it's only my interpretation (heuristic) of first equations. If it's not clear what I mean:</p> <blockquote class="spoiler"> <p> $ x^5-5x^2+2 = (x^5-x^4-x^3) + (x^4-x^3-x^2) + 2(x^3-x^2-x) - 2(x^2-x-1) = ... = (x^2-x-1)(x^3+x^2+2x-2) $ </p> </blockquote> <p>Second hint:</p> <blockquote class="spoiler"> <p> We want to solve $ x^3+x^2+2x-2=0 $. Substitution $ y = x + \frac{1}{3} $</p> </blockquote> <p>At end:</p> <blockquote class="spoiler"> <p> $$y^3-\frac{5}{3}y-\frac{70}{27}=0$$. Substitution $$ y = \frac{\sqrt{5}}{3} (z-\frac{1}{z}) $$ which leads to <br> $$z^3 - \frac{1}{z^3} = \frac{14}{\sqrt{5}} $$</p> </blockquote> <p><em>Added after edition</em></p> <blockquote class="spoiler"> <p> How to understand this implication. If $$z^3-\frac{1}{z^3} = \frac{14}{\sqrt{5}}$$ then $$z - \frac{1}{z} = \sqrt[3]{\frac{7+\sqrt{69}}{\sqrt{5}}} - \sqrt[3]{\frac{\sqrt{5}}{7+\sqrt{69}}} $$</p> </blockquote> <p>Answer</p> <blockquote class="spoiler"> <p> $$ \frac{1+\sqrt{5}}{2},\quad \frac{1-\sqrt{5}}{2},\quad \frac{\sqrt{5}}{3} \left ( \sqrt[3]{\frac{7+\sqrt{69}}{\sqrt{5}}} - \sqrt[3]{\frac{\sqrt{5}}{7+\sqrt{69}}} \right ) - \frac{1}{3}$$</p> </blockquote> <p>Questions</p> <ol> <li><p>Nice solution for this problem?</p></li> <li><p>In this type problems only tricks can lead to a solution? (this is magic for me)</p></li> </ol> <p><strong>I would like to apologize for naive questions.</strong> But for me it is important to understand substitutions I wrote in hideboxes. Could you please explain this in way that i could see mathematical reasoning, not tricks?</p>
0non-cybersec
Stackexchange
tfw you're sombra.
0non-cybersec
Reddit
How YouTube killed the one-hit wonder.
0non-cybersec
Reddit
Prove or give a counterexample for semi positive defined matrices. <p><span class="math-container">$\newcommand{\lg}{\langle}$</span> <span class="math-container">$\newcommand{\rg}{\rangle}$</span> A matrix <span class="math-container">$A \in \mathbb{R}^{n \times n}$</span> is semi positive defined if <span class="math-container">$\langle x, Ax \rangle = x^{T}Ax = \sum_{i,j=1}^{n} x_{i}A_{ij}x_{j} \ge 0$</span> for all <span class="math-container">$x \in \mathbb{R}^{n}$</span>. Prove or give a counterexample </p> <p>a)Let <span class="math-container">$v_{1},v_{2}, \ldots, v_{n}$</span> a basis of <span class="math-container">$R^{n}$</span>. If <span class="math-container">$v_{j}^{T}Av_{j} \ge 0$</span> for all <span class="math-container">$1\le j \le n$</span> then <span class="math-container">$A$</span> is semi positive defined. </p> <p>b) If <span class="math-container">$A \in \mathbb{R}^{n \times n}$</span> and <span class="math-container">$B \in \mathbb{R}^{n \times n}$</span> and satisfy <span class="math-container">$x^{T}Ax=x^{T}Bx$</span> for all <span class="math-container">$x\in \mathbb{R}^{n}$</span> then <span class="math-container">$A=B$</span>. </p> <p>c)If <span class="math-container">$A\in \mathbb{R}^{n \times n}$</span> is semi positive defined and symmetric then <span class="math-container">$\sqrt{A_{ii}A_{jj}} \ge |A_{ij}|$</span> for any <span class="math-container">$1\le i, j \le n$</span>.</p> <p>For a), is <strong>false</strong>. In <span class="math-container">$\mathbb{R}^{2}$</span>, let <span class="math-container">$v_{1}=(1,0)$</span> and <span class="math-container">$v_{2}=(0,1)$</span> the canonical basis, and let <span class="math-container">$$A= \begin{equation} \begin{pmatrix} 0 &amp; 2 \\ -3 &amp; 0 \end{pmatrix} \end{equation} $$</span> Then <span class="math-container">$v_{1}^{T} A v_{1}=0$</span> and <span class="math-container">$v_{2}^{T}Av_{2}=0$</span>, but <span class="math-container">$(1,1) A \begin{equation} \begin{pmatrix} 1 \\ 1 \\ \end{pmatrix} \end{equation} = -1 &lt;0$</span>.</p> <p>b) <strong>false</strong> In <span class="math-container">$\mathbb{R}^{2}$</span>, let <span class="math-container">$A=\begin{equation} \begin{pmatrix} 1 &amp; 1 \\ -1 &amp; 1 \end{pmatrix} \end{equation}$</span> and <span class="math-container">$B=\begin{equation} \begin{pmatrix} 1 &amp; -1 \\ 1 &amp; 1 \end{pmatrix} \end{equation}$</span>, is easy to see thar for all <span class="math-container">$x\in \mathbb{R}^{2}$</span>, <span class="math-container">$A$</span> and <span class="math-container">$B$</span> satisfy <span class="math-container">$x^{T}Ax=x^{T}Bx$</span> but <span class="math-container">$A \neq B$</span>. </p> <p>c) I think is true, but I don't know how to prove it, it seems kind obvious but I don't see it. </p>
0non-cybersec
Stackexchange
Create Folders and Move Respective file into them. <p>I have around 100 pdf files in a folder with name structure like:</p> <ul> <li>Credit Report - Google Inc </li> <li>Credit Report - BP Plc</li> <li>Credit Report - Apple Inc</li> <li>Credit Report - Saipem spa</li> </ul> <p>So on and so forth.</p> <p>Is there a command through which I new create new folders with names like : </p> <ul> <li>Google Inc</li> <li>BP Plc</li> </ul> <p>and move the respective pdfs </p> <ul> <li>Credit Report - Google Inc</li> <li>Credit Report - BP Plc</li> </ul> <p>into them.</p> <p>Thanks</p> <p>(PS: I am a first time user and struggling with text formatting on the forum, so please excuse any strange format)</p>
0non-cybersec
Stackexchange
Should I prune this Cotinus?(UK).
0non-cybersec
Reddit
Good doggo reporting for duty.
0non-cybersec
Reddit
Thanks guys. Hello, I'm trying keto and IF. I lost 20lbs in a month and I want to thank you all for tips, recipes, and encourgment. Long way to go,but I'm happy so far! Thank you and be safe, healthy, and happy!
0non-cybersec
Reddit
How do you prepare and cook a carp for eating?. Clean it. Put it on a wooden cutting board. Season. Bake for 15 minutes at 375 degrees. Throw the carp out and eat the cutting board.
0non-cybersec
Reddit
Prove that $r^3\rho=2R \rho_1\rho_2 \rho_3$. <p>Let $ABC $ be an acute-angled triangle. Let $D$, $E$, $F$ be the feet of the perpendiculars from $A $, $B$, $C $ on the opposite sides $BC $, $CA $, $AB $. Let $\rho,\rho_1,\rho_2 ,\rho_3$ be the radii of the circles inscribed in the triangles $DEF$, $AEF$, $BFD$, $CDE$.</p> <p>Prove that $r^3\rho=2R \rho_1\rho_2 \rho_3$.</p> <p>Here, $r $ is the radius of the incircle of triangle $ABC$, and $R$ is the circumradius of $ ABC$.</p>
0non-cybersec
Stackexchange
The best nine & a half minutes of my day so far: Jon Stewart on the Rush fiasco (video).
0non-cybersec
Reddit
\part Not Appearing in Table of Contents (Memoir). <p>In the <code>memoir</code> class, I want to include <code>\part</code> in my book. I have used the code from p.78 of the Memoir manual, tweaked slightly, to change the look of the <code>\part</code> title. However, something is causing the <code>\part</code> information to not be included in the Table of Contents. The code between the <code>%</code> seems to be the problem. So, how do I get the formatting I want in the text for part titles, and still get the parts included in the table of contents?</p> <pre><code>\documentclass[letterpaper]{memoir} \usepackage[utf8]{inputenc} \usepackage{lipsum} %%%%%%%%%%% \renewcommand{\part}[1]{% \cleardoublepage % start a new recto page \beforepartskip % space before Name and Number \midpartskip % space after Name and Number \renewcommand*{\parttitlefont}{\centering\HUGE\normalfont} \printparttitle{#1} % print the title \partpageend } % finish off %%%%%%%%%%% \renewcommand{\partpageend}{% \afterpartskip \normalsize } \begin{document} \tableofcontents \part{Test Part 1} \chapter{Name} \lipsum*[1] \part{Test Part 2} \lipsum*[1] \end{document} </code></pre>
0non-cybersec
Stackexchange
How to use spot instance with amazon elastic beanstalk?. <p>I have one infra that use amazon elastic beanstalk to deploy my application. I need to scale my app adding some spot instances that EB do not support.</p> <p>So I create a second autoscaling from a launch configuration with spot instances. The autoscaling use the same load balancer created by beanstalk.</p> <p>To up instances with the last version of my app, I copy the user data from the original launch configuration (created with beanstalk) to the launch configuration with spot instances (created by me).</p> <p>This work fine, but:</p> <ol> <li><p>how to update spot instances that have come up from the second autoscaling when the beanstalk update instances managed by him with a new version of the app?</p> </li> <li><p>is there another way so easy as, and elegant, to use spot instances and enjoy the benefits of beanstalk?</p> </li> </ol> <p><strong>UPDATE</strong></p> <p>Elastic Beanstalk add support to spot instance since 2019... see: <a href="https://docs.aws.amazon.com/elasticbeanstalk/latest/relnotes/release-2019-11-25-spot.html" rel="nofollow noreferrer">https://docs.aws.amazon.com/elasticbeanstalk/latest/relnotes/release-2019-11-25-spot.html</a></p>
0non-cybersec
Stackexchange
MSMQ Get All Private Queues. <p>Is there any way to get all of the queues on MSMQ 5.0 using .NET 4.0? Cheers.</p>
0non-cybersec
Stackexchange
Joel McHale and Sarah Hyland Join Hulu's Scifi Anthology Series , 'Dimension 404'.
0non-cybersec
Reddit
Military Ducks 5-365.
0non-cybersec
Reddit