text
stringlengths
3
1.74M
label
class label
2 classes
source
stringclasses
3 values
HAPPY 4/20 ENTS!.
0non-cybersec
Reddit
[GTA 5] [Screenshot] Perfectly timed stunt jump..
0non-cybersec
Reddit
Sent emails have random sender email address. <p>A family member of mine is responding to my emails from different email addresses which are not hers.</p> <p>e.g. I sent an email from "[email protected]" to "[email protected]". I received two responses from her, one from "[email protected]", which contains no text, and one from "[email protected]". This email contains the message she wrote.</p> <p>Till now this happened twice, with two different unkownresponding email addresses.</p> <p>My grandma is not using different email adresses on purpose. She uses a pc with Windows7 and Outlook. What is a common way to investigate this problem? At which points could the email address be changed? </p>
0non-cybersec
Stackexchange
eigenvalues and eigenvectors for rectangular matrices. <p>We can generalize matrix inverses from non-singular square matrices to rectangular matrices in general, for example, the well-known Moore–Penrose pseudoinverse. I am wondering how this can be done for eigenvalues and eigenvectors. </p> <p>Though $\det(|A-\lambda I|)=0$ cannot be used any more when $A$ is not square, there is nothing that prevents one to consider $Av=\lambda v$ for non-zero vector $v$ except the possibility of having an inconsistent linear system. </p> <p>Please give your comments and provide some references if there are some. </p> <p>Many thanks.</p> <p><strong>Edit</strong></p> <p>I know SVD. But it does not seem to be the one I wanted. For SVD of real matrix $A$, $A=UDV^T$ where $U, V$ are orthogonal matrices and $D$ is diagonal (with possibly zeros in the diagonal). We only have $AV_{*k}=\sigma_{k}U_{*k}$, $V_{*k}$ is the $k^\text{th}$ column of $V$. Since $V_{*k}$ and $U_{*k}$ are in general different, it does not resemble $Av=\lambda v$ for non-zero vector $v$ in the definition of eigenvectors. Also, even if we can have $A^TAV_{*k}=\lambda V_{*k}$, but this is for the (square) matrix $A^TA$, rather than $A$ itself.</p>
0non-cybersec
Stackexchange
HttpWebRequest: how to identify as a browser?. <p>The question is how to construct <code>HttpWebRequest</code> so queried server will think it comes from a browser?</p>
0non-cybersec
Stackexchange
Sorry, but this video makes the keto argument invalid.. [Baking bread is awesome.](http://youtu.be/PMBXJ9I3pJM)
0non-cybersec
Reddit
what one thing do you miss most since becoming a parent?. Mine has to be privacy, I have just had to take a dump whilst my 4 year old dances like a loon in the bathroom with me, like its the most natural thing ever!
0non-cybersec
Reddit
Bitcoin, Ethereum, Ripple, Bitcoin Cash, EOS, Stellar, Litecoin, Cardano, Monero, TRON: Price Analysis, October 22.
1cybersec
Reddit
In a town like London there are always plenty of not quite certifiable lunatics walking the streets, and they tend to gravitate towards bookshops (George Orwell - 1936).
0non-cybersec
Reddit
Why is cross-correlation not defined in a normalized sense?. <p>When correlation is defined in systems and signals, as well as in the statistical sense, it is defined as a normalized measure with respect to the Cauchy-Schwarz inequality.</p> <p><span class="math-container">$\space$</span></p> <p>In systems and signals, correlation is defined as</p> <p><span class="math-container">$$\rho = \frac{ \langle x(t), \space y(t) \rangle}{\| x(t)\|\|y(t)\|} = \frac{1}{\sqrt{E_xE_y}}\int_{-\infty}^{\infty}x(t)y^*(t)dt$$</span></p> <p>Here, the inner product is normalized by dividing it by the square root of the energies, or the norms, of the two signals in question. The Cauchy-Schwarz inequality for this case is stated as</p> <p><span class="math-container">$$ |\langle x(t), \space y(t)\rangle| \leq \| x(t)\|\|y(t)\|$$</span></p> <p><span class="math-container">$\space$</span></p> <p>In statistics, correlation is defined as</p> <p><span class="math-container">$$\rho_{xy} = \frac{Cov(X,Y)}{\sigma_x\sigma_y}$$</span></p> <p>Here, the covariance is normalized by dividing it by the square root of the variances, or the standard deviations, of the two random variables in question. The Cauchy-Schwarz inequality for this case is stated as</p> <p><span class="math-container">$$|Cov(X,Y)| \leq \sigma_x\sigma_y$$</span></p> <p><span class="math-container">$\space$</span></p> <p>So, it seems as if there is a universal trend for defining correlation in a normalized sense. That is until we get to cross-correlation. For some reason cross-correlation is defined as</p> <p><span class="math-container">$$ \psi(\tau) = \langle x(t), \space y(t-\tau) \rangle = \int_{-\infty}^{\infty} x(t)y^*(t-\tau)dt $$</span></p> <p>Here, the cross-correlation is simply the time-shifted inner product. No normalization has been applied in this definition.</p> <p><span class="math-container">$\space$</span></p> <p><strong>So, why</strong> do we define correlation in a normalized sense across the board, but when it comes to its' extended time delayed version, <strong>cross-correlation, we "forget" to normalize it all of a sudden?</strong></p>
0non-cybersec
Stackexchange
Why need useRef to contain mutable variable but not define variable outside the component function?. <p>I have read <a href="https://overreacted.io/a-complete-guide-to-useeffect/#swimming-against-the-tide" rel="noreferrer">A Complete Guide to useEffect - Swimming Against the Tide</a> at Overreacted. </p> <p>The example shows that if we want to get the latest <code>count</code>, we can use <code>useRef</code> to save the mutable variable, and get it in async function laster: </p> <pre class="lang-js prettyprint-override"><code>function Example() { const [count, setCount] = useState(0); const latestCount = useRef(count); useEffect(() =&gt; { // Set the mutable latest value latestCount.current = count; setTimeout(() =&gt; { // Read the mutable latest value console.log(`You clicked ${latestCount.current} times`); }, 3000); }); // ... } </code></pre> <p>However, I can do the same thing by creating a variable outside the component function, such as:</p> <pre class="lang-js prettyprint-override"><code>import React, { useState, useEffect, useRef } from 'react'; // defined a variable outside function component let countCache = 0; function Counter() { const [count, setCount] = useState(0); countCache = count; // set default value useEffect(() =&gt; { setTimeout(() =&gt; { // We can get the latest count here console.log(`You clicked ${countCache} times (countCache)`); }, 3000); }); // ... } export default Counter; </code></pre> <p>Are both ways practical, or is there anything bad if I define the variable outside function component?</p>
0non-cybersec
Stackexchange
Everyone needs a best friend, here's mine..
0non-cybersec
Reddit
SSRS: Is it possible for an action to load a subreport?. <p>I want to have users click on a column of a histogram and have that action load a subreport contained based on an attribute of that column.</p> <p>This would make SSRS reports a bit more interactive and a lot more useful.</p> <p>I noticed that when specifying actions, we get the following dialog which has "go to report" but not "load subreport".</p> <p>Maybe there's hope in "Go to URL" and javascript?</p> <p><img src="https://i.stack.imgur.com/EGFAr.png" alt="enter image description here"></p>
0non-cybersec
Stackexchange
I like plants.
0non-cybersec
Reddit
How do I parse Address into Street Number, Street Name, Type, Unit Number?. <p>How do I parse Address into Street Number, Name, Type, Unit Number? Is there a function which will conduct this?</p> <pre><code>2280 MEYERS AVE ALDERGROVE AVE &amp; S VINEWOOD ST SIMPSON WAY &amp; N HALE AVE 412 E WASHINGTON AVE #3 AVOCADO AVE &amp; LEMON ST 572 N TULIP ST 1030 HAWAII PL 500 N MIDWAY DR A-E, ADMIN </code></pre>
0non-cybersec
Stackexchange
UK's Football fight club - Part One (2002).
0non-cybersec
Reddit
My boyfriend finally admitted to me that I am a lot less tight than previous partners. How can I best help him get off?. I am a bisexual woman and know from experience that I have a loose vagina. My boyfriend has admitted to me that he really prefers a tighter vagina when we were chatting about previous sex partners. How can I help him get off as if he is having sex with a tight pussy?
0non-cybersec
Reddit
Bash expansion of ${@} as command. <p>I have a parent script </p> <pre><code>while read cmd do nohup ./script ${cmd[@]} &amp;&gt;&gt; log &amp; done &lt; ~/list </code></pre> <p>that executes this child script </p> <pre><code>while true do eval "${CMD[@]}" #${CMD[@]} #./panic done </code></pre> <p>with this list of commands</p> <pre><code>node ~/www/splash/app.js node ~/www/splash-two/app.js </code></pre> <p>When the child script calls <code>eval ${CMD[@]}</code> it executes the way I expect running that command with no complaints but when I try to remove the eval and run the command using <code>${CMD[@]}</code> it throws the error: </p> <pre><code>Error: Cannot find module '/home/rumplefraggle/SYS/RABBOT/~/www/splash/app.js' </code></pre> <p>Now I thought possibly this had something to do with the node command so I tried to execute <BR> <code>ls ~</code> <BR> as the command and it throws the error that <code>~</code> can not be found.</p> <p>Echoing <code>${@}</code> and not running it expands as I would expect it to.</p> <p>Also manually inserting the command into the child script also works as expected </p> <p>I don't understand why <code>eval</code> works and simply running the command using <code>${@}</code> does not. What is causing <code>${@}</code> to not expand the <code>~</code>?</p> <p>Why is node appending the directory name to the command when <code>${@}</code> is used?</p>
0non-cybersec
Stackexchange
Pentagonal tiling. <p>I am currently working on a research project in my last year of high school. For this paper we are discussing Eschers tesselations, both in the euclidian and the non-euclidian plane. At the moment I am focussing on an article about pentagonal tilings in the euclidian plane, since this project is mainly focussed on math I am trying to give a decent proof of why these pentagons can tile the plane. I have been trying to read Karl Reinhardt's paper but since its in german and its written in 1916, I am a little lost.</p> <p>I have discussed this with both my partners and my teachers but we can't seem to find any decent proof. Could you give me a hand? Maybe you know some papers which discuss the subject?</p> <p>Your help is very welcome!</p> <p>Thank you,</p> <p>Roy </p>
0non-cybersec
Stackexchange
Mario Andretti is individually thanking everyone who wished him a happy birthday.
0non-cybersec
Reddit
Composing Async Observables that have dependencies using RxJava. <p>I am new to reactive programming and confused about composing observables that have dependencies. Here is the scenario: There are two observables <strong>A</strong>, <strong>B</strong>. Observable <strong>A</strong> depends on a value emitted by <strong>B</strong>. (Therefore A needs to observe B). Is there a way to create an Observable <strong>C</strong> that composes <strong>A</strong> and <strong>B</strong>, and emits <strong>V</strong>? I am just looking for pointers in the RxJava <a href="https://github.com/Netflix/RxJava/wiki" rel="noreferrer">documentation</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
My first incident of a choosing beggar, yay!.
0non-cybersec
Reddit
Horror Compilation - Monster Remix.
0non-cybersec
Reddit
Cosmic Quandaries with Dr. Neil deGrasse Tyson .
0non-cybersec
Reddit
How to use spot instance with amazon elastic beanstalk?. <p>I have one infra that use amazon elastic beanstalk to deploy my application. I need to scale my app adding some spot instances that EB do not support.</p> <p>So I create a second autoscaling from a launch configuration with spot instances. The autoscaling use the same load balancer created by beanstalk.</p> <p>To up instances with the last version of my app, I copy the user data from the original launch configuration (created with beanstalk) to the launch configuration with spot instances (created by me).</p> <p>This work fine, but:</p> <ol> <li><p>how to update spot instances that have come up from the second autoscaling when the beanstalk update instances managed by him with a new version of the app?</p> </li> <li><p>is there another way so easy as, and elegant, to use spot instances and enjoy the benefits of beanstalk?</p> </li> </ol> <p><strong>UPDATE</strong></p> <p>Elastic Beanstalk add support to spot instance since 2019... see: <a href="https://docs.aws.amazon.com/elasticbeanstalk/latest/relnotes/release-2019-11-25-spot.html" rel="nofollow noreferrer">https://docs.aws.amazon.com/elasticbeanstalk/latest/relnotes/release-2019-11-25-spot.html</a></p>
0non-cybersec
Stackexchange
What is this extension in the middle called? It attaches to a zig zag spring on a couch and the other end to a bracket. I can't find the name anywhere online..
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
[US] Louis C.K.: Live at the Comedy Store (2015) I know there must be at least a hundred different Stand Up Comedy specials to stream but Louis Székely is my current fave. Here's his latest..
0non-cybersec
Reddit
New JSON diff algorithm.
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 determine which of the trig functions have horizontal and vertical asymptotes?. <ol> <li>Do any of the trigonometric functions <span class="math-container">$\sin x, \cos x, \tan x, \cot x, \sec x$</span>, and <span class="math-container">$\csc x$</span> have horizontal asymptotes?</li> <li>Do any of the trigonometric functions have vertical asymptotes? Where?</li> </ol> <p>The answer for Q1 is 'No' whereas for Q2, it is 'Yes, <span class="math-container">$\tan x \space$</span> and <span class="math-container">$\space \sec x \space$</span> at <span class="math-container">$\space x = nπ + π/2 \space$</span> and <span class="math-container">$\space \cot x$</span> and <span class="math-container">$\space \csc x \space$</span> at <span class="math-container">$\space x = nπ, \space n = 0, ±1, ±2$</span>, ...'</p> <p>What formula and techniques should I use to prove that the two answers above are correct? Any suggestion will be helpful!</p>
0non-cybersec
Stackexchange
Secrecy Reigns as NERC Fines Utilities $10M citing Serious Cyber Risks.
1cybersec
Reddit
How to access aws config file from WSL (Windows subsystem for Linux)?. <p>I have installed awscli and have added aws keys to the config and credentials file. Now I can access them through file explorer from Windows but I cannot access them through the WSL bash. It says permission denied when I try to cd to the .aws folder present in rootfs. How do I access them from bash?</p>
0non-cybersec
Stackexchange
Noggenfogger Elixir only affects the hunter, not the pet. I present to you my enormous King Krush..
0non-cybersec
Reddit
Append values from dataframe column to list. <p>I have a dataframe with several columns, and I want to append to an empty list the values of one column, so that the desired output would be the following:</p> <pre><code>empty_list = [value_1,value_2,value_3...] </code></pre> <p>I have tried the following:</p> <pre><code>df = pd.DataFrame({'country':['a','b','c','d'], 'gdp':[1,2,3,4], 'iso':['x','y','z','w']}) a_list = [] a_list.append(df['iso']) a_list.append(df['iso'].values) a_list.append(df['iso'].tolist()) </code></pre> <p>Either way, I get a list with lists, numpy arrays or series inside it, and I would like to have directly the records. </p>
0non-cybersec
Stackexchange
Incorrectly created file in /etc/sudoers.d file with visudo, but broke things. <p>I tried to do what I thought the comments in /etc/sudoers was telling me:</p> <pre><code># This file MUST be edited with the 'visudo' command as root. # # Please consider adding local content in /etc/sudoers.d/ instead of # directly modifying this file. </code></pre> <p>Then:</p> <pre><code>: ~ ; visudo --help visudo - safely edit the sudoers file usage: visudo [-chqsV] [-f sudoers] [-x file] </code></pre> <p>But I didn't read the bit after that more carefully, so I typed:</p> <pre><code>sudo visudo -x /etc/sudoers.d/dci </code></pre> <p>Instead of</p> <pre><code>sudo visudo -f /etc/sudoers.d/dci </code></pre> <p>Now, I'm stuck. Any command I try to do with <code>sudo</code> gives me:</p> <pre><code>&gt;&gt;&gt; /etc/sudoers.d/dci: syntax error near line 1 &lt;&lt;&lt; &gt;&gt;&gt; /etc/sudoers.d/dci: syntax error near line 1 &lt;&lt;&lt; &gt;&gt;&gt; /etc/sudoers.d/dci: syntax error near line 2 &lt;&lt;&lt; … &gt;&gt;&gt; /etc/sudoers.d/dci: syntax error near line 58 &lt;&lt;&lt; sudo: parse error in /etc/sudoers.d/dci near line 1 sudo: no valid sudoers sources found, quitting sudo: unable to initialize policy plugin </code></pre> <p>And without sudo, unsurprisingly:</p> <pre><code>: ~ ; rm /etc/sudoers.d/dci rm: remove write-protected regular file ‘/etc/sudoers.d/dci’? y rm: cannot remove ‘/etc/sudoers.d/dci’: Permission denied </code></pre> <p>How do I fix this?</p> <p>Update:</p> <p>After trying the solution from <a href="https://askubuntu.com/questions/73864/how-to-modify-an-invalid-etc-sudoers-file">this question</a>, I got the following result:</p> <pre><code>: ~ ; pkexec visudo ==== AUTHENTICATING FOR org.freedesktop.policykit.exec === Authentication is needed to run `/usr/sbin/visudo' as the super user Authenticating as: DCi Admin,,, (dci) Password: polkit-agent-helper-1: error response to PolicyKit daemon: GDBus.Error:org.freedesktop.PolicyKit1.Error.Failed: No session for cookie ==== AUTHENTICATION FAILED === Error executing command as another user: Not authorized This incident has been reported. </code></pre> <p>I was guessing this was because I was supposed to be using root password, but that's possibly a wrong guess.</p> <p><a href="https://askubuntu.com/questions/799669/etc-sudoers-file-corrupted-and-i-cant-run-pkexec-visudo-over-ssh">This solution</a> then fixed that problem.</p>
0non-cybersec
Stackexchange
Why can&#39;t my RaspberryPi execute these basic commands as pi?. <p>As it says in the title, my RaspberryPi can't execute some basic commands (e.g. ls, mkdir, su, ...) with the user 'pi'. I always get the following as output:</p> <pre><code>-bash: /home/pi/bin/ls: Cannot execute binary file: Exec format error </code></pre> <p>If I sudo these commands or execute them on any other account, even an account who can't even sudo, it works fine, and it already worked fine at my last login (OK, about 2 weeks ago...) and I didn't install any new software (I read that's often causing this problem), I only used an already-good-known-software which uses the YouTube-API to upload a video. I tried to fix the issue via reboot (it doesn't work often, but sometimes it helps :D). I read about a modified $PATH-Variable, and I think this could be true, but I am not the biggest pro and can't proof it, so here is the output:</p> <pre><code>echo $PATH /home/pi/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/local/games:/usr/games </code></pre> <p>As I already said, I think this could really be the reason (that's really confusing, I didn't even know there are such folders), but even if it was, I wouldn't know what to change it to, so I thougt you could say me it's something different or how I have to set the $PATH-Variable. And, maybe, how this could have changed, I didn't do that manually.</p> <p>I hope someone can help me. Thanks in advance, a Noob</p> <p>EDIT: I solved the problem in some ways with the marked answer. I just deleted the /home/pi/bin folder (<code>/bin/rm /home/pi/bin</code> to use the <code>rm</code> in <code>/bin/</code>) and logged out (<code>exit</code>) and in to run ~/.profile again. And I was also able to reconstruct how I got these files in there: A few days before I canceled my server, so I used my RasPi to backUp the files for future. I created a folder named <code>oldServer</code>, but forot to <code>cd</code> in it and just <code>get</code>ed the files via SFTP, so they came into /home/pi/, also the folder <code>bin</code>. So at every login, ~/.profile was thinking it would be a special bin and put it into <code>$PATH</code>. The RasPi wasn't able to execute these binaries in there because they were from Debian too, but not from Raspbian in specific, just Debian8. Thanks for your comments and answers!</p>
0non-cybersec
Stackexchange
Selected columns to new row. <p>I'm trying to split columns into new rows keeping the data of the first two columns.</p> <pre><code>d1 &lt;- data.frame(a=c(100,0,78),b=c(0,137,117),c.1=c(111,17,91), d.1=c(99,66,22), c.2=c(11,33,44), d.2=c(000,001,002)) d1 a b c.1 d.1 c.2 d.2 1 100 0 111 99 11 0 2 0 137 17 66 33 1 3 78 117 91 22 44 2 </code></pre> <p>Expected results would be:</p> <pre><code> a b c d 1 100 0 111 99 2 100 0 11 0 3 0 137 17 66 4 0 137 33 1 5 78 117 91 22 6 78 117 44 2 </code></pre> <p>Multiple tries with dplyr, but in sees is not the right approach.</p>
0non-cybersec
Stackexchange
NSFW Hand built, hand carved bed in a museum.
0non-cybersec
Reddit
Install HP printer on 10.6.4 without Apple Update. <p>Can I install a HP Deskjet Printer on Snow Leopard (10.6.4) without access to 'Apple Update'?</p> <p>Scenario: Have an outside worker using a Mac on our secured Samba environment. We are not adding the Mac to our network due to security concerns. The worker does not have internet access at home, yet requires a HP Deskjet (<a href="http://h10025.www1.hp.com/ewfrf/wc/softwareCategory?cc=uk&amp;dlc=en&amp;lc=en&amp;product=357211&amp;" rel="nofollow">6540</a>) installing for use in the office.</p> <p>The <a href="http://h10025.www1.hp.com/ewfrf/wc/document?docname=c01855252&amp;cc=uk&amp;dlc=en&amp;lc=en&amp;os=219&amp;product=357211&amp;sw_lang=" rel="nofollow">HP website</a> mentions:</p> <blockquote> <p>To install the printer driver available in Mac OS X 10.6, simply connect the USB cable to the printer and to the computer. The print queue will automatically be created.</p> </blockquote> <p>The printer is detected and installed, yet when trying to Print the OS complains that it needs to run Apple Update (I'm assuming to download the required drivers).</p> <p>I can see the <a href="http://support.apple.com/kb/DL907" rel="nofollow">HP Printer Drivers package for download from Apple Support</a> (at 450mb it's too large for me to get easily).</p> <p>Is there another way around this? (ie to only download and install the drivers required for the individual Deskjet, not hundreds of others.)</p>
0non-cybersec
Stackexchange
What I came across in physics [part 2] [pic].
0non-cybersec
Reddit
Distance between satellites revolving in different planes. <p>Can satellites moving in orbits that lie in different planes remain at the same distance from each other at all times? How can I prove that they cannot? </p> <p>Satellites can revolve at different angular velocities. Both orbits have the planet's centre of mass at their centres, so their planes must intersect. </p>
0non-cybersec
Stackexchange
Constructing a diffeomorphism which maps $\Gamma$ to a parabola. <p>$f : \mathbb{R} \to \mathbb{R}$ be a differentiable function and $$\Gamma = \left \{ (x,y) \in \mathbb{R}^2 | y=f(x) \right \} \subset \mathbb{R}^2$$ its function graph.</p> <p>a.) Construct a diffeomorphism $\varphi : \mathbb{R}^2 \to \mathbb{R}^2$, which maps $\Gamma$ to the parabola with the equation $y = x^2$.</p> <p>b.) Show that there is no diffeomorphism $\varphi: \mathbb{R}^2 \to \mathbb{R^2}$ which maps $\Gamma$ on the set with the equation $y = \mid x \mid$</p> <p>I know from the teacher that the solution for a.) is $\varphi(x,y) \to (x, y+x^2)$. Unfortunately, I don't see how he got to this solution. Can someone explain it to me? I can not imagine how a diffeomorphism can be mapped on a parabola.</p> <p>And for b.) how do I show that there is no diffeomorphism? Do I have to show that it is not differentiable everywhere?</p> <p>Thank you very much for your time!</p>
0non-cybersec
Stackexchange
Purchased: $50 Vintage Frye Boots from eBay.
0non-cybersec
Reddit
How many incremental backups to keep with Percona xtrabackup?. <p>I'm looking to replace an aging and decidedly suboptimal <code>mysqldump</code>-based database backup strategy with Percona's Xtrabackup. This all looks pretty straightforward, except that I'm wondering: how many incremental backups should I keep between full backups?</p> <p>I realize that restoring from a long set of incrementals would be somewhat tedious, but it looks like it'd be pretty easy to script.</p> <p>I also imagine that if I somehow lose an incremental that's part of a backup set, I would lose everything from that point on. That seems like it'd be unlikely (these guys will be headed to S3), but still a bad day.</p> <p>Are there rules of thumb about this sort of thing? Would hourly incrementals with a complete backup a week (so, 168 files per backup set) be insane, or normal for some workloads?</p> <p>FWIW, we're looking at a ~10M row database, growing at ~20k rows a day, very few changed rows (ie, append-mostly). So the incrementals would be pretty small.</p>
0non-cybersec
Stackexchange
Jon Hopkins is working on a new album!.
0non-cybersec
Reddit
Very cool online sounds production I founds by an accident.
0non-cybersec
Reddit
Reverse Engineering Samsung S6 Modem · ARM Ninja.
1cybersec
Reddit
Crysis 2 Demo on Wine error. <p>I was trying to install the Crysis 2 demo on wine, but after extraction it said </p> <pre><code>Unable to find a volume for file extraction. Please verify that you have proper permissions. </code></pre> <p>and ended the setup there.</p> <p><img src="https://i.stack.imgur.com/dppzH.png" alt="enter image description here"></p> <p><img src="https://i.stack.imgur.com/dTuS7.png" alt="enter image description here"></p> <p>I have had trouble in the past getting Angry birds to run on it too - <a href="https://askubuntu.com/questions/25473/couldnt-make-angry-birds-to-work-on-wine">Couldn&#39;t make Angry birds work on wine</a></p>
0non-cybersec
Stackexchange
Mura Masa - Lotus Eater (Tonton Remix).
0non-cybersec
Reddit
Creepy backmasking.
0non-cybersec
Reddit
Samsung’s Bixby—A frustrating voice assistant with all the wrong features.
0non-cybersec
Reddit
Verification of Transfer. <p>Ok I have made bit Cash paper wallet ... Now I am going to transfer to it from my Trezor.. my question is how do I verify that what I transfered is on the paper wallet?</p> <p>Thanks Linda</p>
0non-cybersec
Stackexchange
Can every Banach space with the Schur property embed into $L_{1}(\mu)$ for some $\mu$?. <p>In 1974, W. B. Johnson and E. Odell observed that there are subspaces $X$ of $L_{1}$ with the Schur property. In 1980, J. Bourgain and H. P. Rosenthal constructed a subspace $X$ of $L_{1}$ such that $X$ has the Schur property, but $X$ is not isomorphic to a subspace of $l_{1}$. Hence, I have the first question as follows:</p> <p>Question 1. Is every Banach space with the Schur property isomorphic to a subspace of $L_{1}(\mu)$ for some measure $\mu$?</p> <p>Moreover, W. B. Johnson and E. Odell gave natural non-trivial conditions that a subspace of $L_{p}$ embeds into $l_{p}$ for $1&lt;p&lt;\infty, p\neq 2$. But </p> <p>Question 2. Are there conditions that a subspace of $L_{1}$ embeds into $l_{1}$ ?</p> <p>Thank you!</p>
0non-cybersec
Stackexchange
Japan, Amami Oshima [683x1024].
0non-cybersec
Reddit
Today is my cat's first birthday. This is how she showed her appreciation for her present. .
0non-cybersec
Reddit
Finding other generalized inverses besides the pseudoinverse?. <p>I have a <span class="math-container">$16\times 4$</span> matrix <span class="math-container">$A$</span> of rank <span class="math-container">$4$</span>. Besides its Moore-Penrose pseudoinverse <span class="math-container">$A^+$</span>, I'm also interested in other generalized inverses <span class="math-container">$A^g$</span> that satisfy <span class="math-container">$A^gA=I_4$</span>.</p> <p>Is there a way to get <em>all</em> of them (presumably in some analytical form with free variables)?</p> <p>Are there any <em>special</em> inverses? By "special," I mean <span class="math-container">$A^+$</span> gives the solution to <span class="math-container">$Ax=y$</span> with minimum <span class="math-container">$\ell_2$</span> norm, so is there one such <span class="math-container">$A^g$</span> that gives the solution with minimum <span class="math-container">$\ell_0$</span> norm, for example?</p> <p>If the answers to the two questions above are both "No," how do I find <em>any</em> generalized inverse other than the pseudoinverse? </p>
0non-cybersec
Stackexchange
How to let mod_wsgi only handle certain URLs under Apache?. <p>I have a Django app that handles "/admin/" and "/myapp/". All the other requests should be handled by Apache.</p> <p>I've tried using LocationMatch but then I'd have to write a negative regex. I've tried WSGIScriptAlias with the /admin/ prefix but then the wsgi_handler receives the request with the /admin/ part cut off.</p> <p>Is there a cleaner way to make mod_wsgi only handle certain requests?</p>
0non-cybersec
Stackexchange
Module vs. Package?. <p>Whenever I do <code>from 'x' import 'y'</code> I was wondering which one is considered the 'module' and which is the 'package', and why it isn't the other way around?</p>
0non-cybersec
Stackexchange
Why is df -h size, util and dispo not corresponding to each other. <p>When I'm using the command "df -h" I'm having the following output : </p> <pre><code>Filesystem Size Used Avail Use% Mounted on /dev/mapper/fedora-root 20G 9,4G 8,8G 52% / devtmpfs 1,9G 0 1,9G 0% /dev tmpfs 1,9G 1,2M 1,9G 1% /dev/shm tmpfs 1,9G 1,0M 1,9G 1% /run tmpfs 1,9G 0 1,9G 0% /sys/fs/cgroup tmpfs 1,9G 108K 1,9G 1% /tmp /dev/sda1 477M 129M 319M 29% /boot /dev/mapper/fedora-home 916G 279G 591G 33% /home </code></pre> <p>Or it says my root is of 20G with 9.4 used and 8.8 still available it's 2G that disappeared. I know a very similar question as been answered here <a href="https://unix.stackexchange.com/questions/37489/when-using-btrfs-why-size-used-and-avail-values-from-df-do-not-match/37510#37510">about the same issue with brtfs</a> and I'm just wondering if the reason could be the same here since I'm using LVM.</p> <p>If not is there any way to reclaim that space that disappeared because for home there is an amazing 46G that disappeared.</p>
0non-cybersec
Stackexchange
Anyone here ever made a reprap? . I'm looking to build one over the coming semester break, and was wondering if it's worth the time/investment. Anyone here constructed one before, willing to give a few tips/pointers?
0non-cybersec
Reddit
Customize Google Maps blue dot for current location. <p>I'm using a 2013 version of Google Maps SDK for iOS. I would like to customize the default blue dot for current location with another icon or pulsing circles around.</p> <p>I know we can do that with <code>mapView:viewForAnnotation:</code> in MKMapView, but I can't found out how to do it with Google Maps.</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
Error 404 when trying to create a new React app. <p>I get this error while trying to create a new React app. Installing other components works fine.</p> <p>Tried all the other posts on StackOverflow. Changed the connection too. Still doesn't work.</p> <p>Thanks :) </p> <pre><code>C:\Users\ASUS\Desktop\reactproject1&gt;npx create-react-app myapp Creating a new React app in C:\Users\ASUS\Desktop\reactproject1\myapp. Installing packages. This might take a couple of minutes. Installing react, react-dom, and react-scripts with cra-template... npm ERR! code E404 npm ERR! 404 Not Found - GET http://registry.npmjs.org/error-ex npm ERR! 404 npm ERR! 404 'error-ex@^1.3.1' is not in the npm registry. npm ERR! 404 You should bug the author to publish it (or use the name yourself!) npm ERR! 404 It was specified as a dependency of 'parse-json' npm ERR! 404 npm ERR! 404 Note that you can also install from a npm ERR! 404 tarball, folder, http url, or git url. npm ERR! A complete log of this run can be found in: npm ERR! C:\Users\ASUS\AppData\Roaming\npm-cache\_logs\2020-02-12T07_33_08_955Z-debug.log Aborting installation. npm install --save --save-exact --loglevel error react react-dom react-scripts cra-template has failed. Deleting generated file... package.json Deleting myapp/ from C:\Users\ASUS\Desktop\reactproject1 Done. </code></pre>
0non-cybersec
Stackexchange
Beer Battle! The Multi-Touch Drinking Game.
0non-cybersec
Reddit
Ya gotta keep it Christian.
0non-cybersec
Reddit
Were gonna need more ghost writers.
0non-cybersec
Reddit
Replicating CRAN valgrind issues. <p>I am trying to fix some issue with my package <code>CamelUp</code> on CRAN. This package uses Rcpp to implement a board game. My recent CRAN submissions have come back with comments and output such as:</p> <pre><code>==32365== 16,591,624 (2,608,512 direct, 13,983,112 indirect) bytes in 20,379 blocks are definitely lost in loss record 3,036 of 3,036 ==32365== at 0x4838E86: operator new(unsigned long) (/builddir/build/BUILD/valgrind-3.15.0/coregrind/m_replacemalloc/vg_replace_malloc.c:344) ==32365== by 0x184ED3E5: Board::Board(Board const&amp;) (/tmp/CamelUp.Rcheck/00_pkg_src/CamelUp/src/Board.cpp:67) ... ==32365== by 0x1853045D: Simulator::simulateDecision(bool, int) (/tmp/CamelUp.Rcheck/00_pkg_src/CamelUp/src/Simulator.cpp:64) ==32365== by 0x18536509: Rcpp::CppMethod2&lt;Simulator, Rcpp::Vector&lt;19, Rcpp::PreserveStorage&gt;, bool, int&gt;::operator()(Simulator*, SEXPREC**) (R-devel/site-library/Rcpp/include/Rcpp/module/Module_generated_CppMethod.h:195) ==32365== by 0x18535B32: Rcpp::class_&lt;Simulator&gt;::invoke_notvoid(SEXPREC*, SEXPREC*, SEXPREC**, int) (R-devel/site-library/Rcpp/include/Rcpp/module/class.h:234) ==32365== by 0x17B9EBE1: CppMethod__invoke_notvoid(SEXPREC*) (/tmp/RtmpKDbrDI/R.INSTALL1d1838b282b2/Rcpp/src/module.cpp:220) </code></pre> <p>I'm having trouble replicating these errors and I'm wondering if there is a straightforward way to use valgrind with my package to reproduce these errors. I've tried running locally with valgrind but couldn't get the track origins option to work and make it clear where these errors were in my code. I have also tried using Travis-CI with the following .travis.yml file:</p> <pre><code>language: r cache: packages r_check_args: '--use-valgrind' addons: apt: packages: - valgrind r: - oldrel - release - devel env: - VALGRIND_OPTS='--tool=memcheck --memcheck:leak-check=full --track-origins=yes' </code></pre> <p>I'm hoping there is a way to replicate these errors so I can fix 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
Leah Remini's 'Scientology and the Aftermath' to End with Explosive Special.
0non-cybersec
Reddit
Install Ubuntu dual boot with Windows 7 in a JBOD array. <p>Some weeks ago I decided to try ubuntu on a Virtual Machine, and I really like it! Then, some days ago, I tried to install it on my computer, together with Windows 7. But, now, I have a problem. My computer have 2 HD's (1Tb and 500Gb) in a JBOD array, and then, 2 partitions: 50gb for Windows 7, and the rest to my files. I've created another 30gb partition to install ubuntu, from the free space on my 2° partition, but, since I'm really new to ubuntu and linux, I really don't know what to do. Ubuntu doesn't recognize the Raid, and I already checked <a href="https://help.ubuntu.com/community/FakeRaidHowto" rel="nofollow">this</a>, but, since it's a little old, and I can't loose my files, didn't helped too much, I think. Some details: The JBOD is configured on the motherboard controller, and windows is installed just with a special driver, with no programs at all. RAID Controller vendor is AMD. This kind of question probably are asked frequently, sorry for that, but I am really new to ubuntu. Also, sorry for my poor english, it isn't my native language.</p> <p>Thanks in advance for your assistance.</p>
0non-cybersec
Stackexchange
Find the exact value of $\int_{0}^{a} \frac{dx}{x + \sqrt{a^{2} - x^{2}}} $. <p>Find the exact value of $$\int_{0}^{a} \frac{dx}{x + \sqrt{a^{2} - x^{2}}} $$ where $a$ is a positive constant.</p> <p>The answer given to me is to use substitution. I have seen the answer, and feel that it is not intuitive. I would not have thought of it.</p> <p>I was thinking of using some standard formulas to solve this problem, such as the following:</p> <p>$$\int \frac{1}{a^{2} - x^{2}} dx = \frac{1}{2a}\ln\frac{a + x}{a - x} + C$$</p> <p>$$\int \frac{1}{x^{2} - a^{2}} dx = \frac{1}{2a}\ln\frac{x - a}{x + a} + C$$</p> <p>Is there any way to express the problem into these forms? I'm open to substitution as well.</p>
0non-cybersec
Stackexchange
[21/f] My BFF of nine years, [22/f], is treating me poorly now that she has a boyfriend.. So I really hope I don't sound like some sort of butthurt friend, but this is really bothering me! So pretty much last month was my friends 22nd birthday, let's call her Rachel. I was asking her for us to hang out on her bday, do something special.. She just looks at me sort of sheepishly and goes, "Well we're (her other friends and bf) going out to a bar in *****, I don't know if you'd want to come.." and then she literally lists like the dumbest reasons why I wouldn't want to come like they made no sense. "I don't know if you'd wanna drive there" type of crap. I felt completely just flat out insulted, like as if I wasn't good enough to celebrate her birthday with the friends she'd made at college (some of whom I've met at least once) Then again for another friends bday "So John [her bf] can't come to [friend's Bday] so if you wanna come, we can go together." At this point, her bday was still a couple of days away and she literally made no move to make me feel like I was invited (which I clearly wasn't) and then she goes ahead and wants to use me as some sort of back up for her boyfriend, who she had met roughly 8 months ago. I was really upset and felt like I must be a really shitty person if my friend of 9 years can treat me like that but then I realized I was just really disappointed in her because what I had expected was for Rachel to say: "Hey, I'm going to be celebrating my birthday and I want you and your boyfriend to come." and instead I got "I'm going out and here's why you wouldn't want to go" I really need advice on what to do, because either she doesn't care or maybe she doesn't know she's treating me like that.
0non-cybersec
Reddit
Headlights come standard on every Toyota Corolla in Jamaica!.
0non-cybersec
Reddit
Jamaican Jerk Chicken in a pineapple bowl..
0non-cybersec
Reddit
Probability without replacement of rhinos. <p>Working on a statistics assignment, just have a question that I can't get and I was looking for an explanation.</p> <p>"There are 3160 White Rhinos and 11330 Black Rhinos. If 5 rhinos are selected at random what is the probability that: i. exactly two of the rhinos selected are white rhinos? ii. at least two of the rhinos selected are white rhinos"</p> <p>Thanks for any help!</p>
0non-cybersec
Stackexchange
Abercrombie Shorts 50% off through 5/10.
0non-cybersec
Reddit
Australia introduces "Netflix tax" legislation to parliament. With hopes of placing a tax on all foreign digital goods..
0non-cybersec
Reddit
Cover the end of the vacuum with panty hose to easily find small objects like earrings that fell on the floor..
0non-cybersec
Reddit
How do you prove Let φ : R → S be a EPIMORPHISM of rings. Then the image of φ is isomorphic to the factor ring R/ ker φ. <p>Below I have proved this question for a ring homomorphism. </p> <p>MY QUESTION: How do you prove Let φ : R → S be a EPIMORPHISM of rings. Then the image of φ is isomorphic to the factor ring R/ ker φ </p> <p>Let φ : R → S be a homomorphism of rings. Then the image of φ is isomorphic to the factor ring R/ ker φ </p> <p>Proof: </p> <p>Let I denote the kernel of φ, so I is a two-sided ideal of R. Define a function</p> <p>φ ̄ : R/I → Imφ by: </p> <p>φ ̄ (a + I) = φ(a) for a ∈ R. </p> <ol> <li><p>φ ̄ is well-defined (i.e. the image of a + I does not depend on a choice of coset representative). Suppose that a + I = a1 + I for some a, a1 ∈ R. Then a−a1 ∈IbyLemma3.3.2. Henceφ(a−a1)=0S =φ(a)−φ(a1). Thus φ(a) = φ(a1 ) as required.</p></li> <li><p>φ ̄ is a ring homomorphism. Suppose a + I, b + I are elements of R/I. Then </p> <p>̄ φ((a +I) +(b +I)) = φ ̄ ((a +b) +I) </p></li> </ol> <p>= φ(a+b)</p> <p>= φ(a) + φ(b)</p> <p>= φ ̄(a+I)+φ ̄(b+I).</p> <p>So φ is additive. Also </p> <p>̄ φ((a+I)(b+I)) = φ ̄(ab+I) = φ(ab)</p> <p>= φ(a)φ(b)</p> <p>= φ ̄(a+I)φ ̄(b+I)</p> <ol start="3"> <li><p>φ ̄ is injective. Suppose a+I ∈ kerφ. Thenφ(a+I) = 0S soφ(a) = 0S. This means a ∈ ker φ, so a ∈ I. Then a + I = I = 0R + I, a + I is the zero element of R/I. Thus ker φ ̄ contains only the zero element of R/I</p></li> <li><p>φ ̄ is surjective. Let s∈Imφ. Thens=φ(r)for some r∈R. Thus s=φ(r+I)and every element of Imφ is the image under φ ̄ of some coset of I in R. </p></li> </ol> <p>Thus φ ̄ : R/ ker φ −→ Imφ is a ring isomorphism, and Imφ is isomorphic to the factor ring R/ ker φ.</p>
0non-cybersec
Stackexchange
PBS takes and in depth look at the very recent history of Internet activism in Egypt.
0non-cybersec
Reddit
Concept - What is the practical application of generic top-level-domains?. So it looks like the current proposal for generic top-level-domains hit a recent roadblock [Article](http://arstechnica.com/business/2013/03/verisign-blasts-icann-for-slow-generic-top-level-domain-name-rollout/). I did some quick research on it and got into a whole nest of companies, root domain servers, and companies flinging mud at each other. My central question is - what will the practical application of generic tld's be? From what I understand, it will allow what amounts to is another dns layer. So you have subdomains (www., movies., play.,), domains (google, bing, apple) and now essentially top-level-domains (.com, .net) up for purchase. It can allow companies more freedom with the naming of their websites and hopefully allow new companies to flourish. Is this a correct understanding of what will be happening? Also, where is the IPv4 addressing coming from (or does it even support it)?
1cybersec
Reddit
Hot swapping code like Java in C#. <p>Is there a way, in visual studio, I could enable code hot swap? In java, using eclipse at least, you can change code at runtime, save it and it will instantaneous change in your application. I know there is the "edit and continue" feature, but I am wondering if there was the same feature for C#.</p>
0non-cybersec
Stackexchange
Looking for UI Design Help for a Application. Hello I will make this quick. I am a fullstack developer and I have an idea for a financial application. I am not good with design and am looking for someone who has skills to maybe make some mockups and work on a project. Thanks
0non-cybersec
Reddit
Permission on Database. <p>I have a login user called TestUser created at the server level that is assigned to a read only role, now I need to create a user for the TestUser login on MyDb</p> <pre><code>USE [MyDB] GO CREATE USER [Test] FOR LOGIN [TestUser] GO GRANT SELECT TO [Test] GO DENY DELETE TO [Test] GO DENY INSERT TO [Test] GO DENY UPDATE TO [Test] GO </code></pre> <p>everything is good but when I script that Test user created, I don't see in any place the script that I'm giving select and denying insert, delete and update</p>
0non-cybersec
Stackexchange
Biblatex &#39;alphabetic&#39; style &#39;+&#39; sign in citation key?. <p><br> I noticed a strange citation key in my document. All citation keys with multiple authors are generated like this for example: <code>[Ber+07]</code><br> Where does this <code>+</code> sign come from? I setup biblatex like so:</p> <pre><code>\usepackage[ backend=biber, maxcitenames=3, maxbibnames=3, style=alphabetic, sorting=nyt]{biblatex} \DefineBibliographyStrings{ngerman}{ andothers = {{et\,al\adddot}}, } </code></pre> <p>Do I have to write my own biblatex style?</p>
0non-cybersec
Stackexchange
How to use Handlebars ternary helper?. <p>Following <a href="https://stackoverflow.com/a/11916194/770127">this answer</a>, I wrote a helper like </p> <pre><code>module.exports.register = function (Handlebars) { Handlebars.registerHelper('ternary', function(test, yes, no) { return test ? yes : no; }); }; </code></pre> <p>I'm certain that the helper is loaded and being defined but can't figure out the syntax to use it. I tried using it like </p> <pre><code>&lt;div&gt;{{ternary(true, 'yes', 'no')}}&lt;/div&gt; </code></pre> <p>but that gives an <a href="https://github.com/assemble/assemble/" rel="nofollow noreferrer">assemble</a> build error</p> <pre><code>Warning: Parse error on line 10: ...&lt;div&gt;{{ternary(true, 'yes', ----------^ Expecting 'ID', 'DATA', got 'INVALID' Use --force to continue. </code></pre> <p>What is the proper syntax to use a helper like that? </p>
0non-cybersec
Stackexchange
Marilyn Manson - The Beautiful People [Alternative Metal].
0non-cybersec
Reddit
The Overjustification Effect and Game Achievements.
0non-cybersec
Reddit
/r/pcmasterrace might be gone, but they had a pretty solid wiki worth saving. Here it is via archive.org.
0non-cybersec
Reddit
How to improve version control on database structure when migrations take long?. <p>I am working with a team of web developers. We are already using Git for version control of our code and it works well. However, while we are changing our code, it is also common to change the database structure, adding / deleting / renaming columns and tables. The normal answer to that is migration files, and we are already using the migration function of laravel.</p> <p>Soon, we find that some old project takes a long time in running the migration file. This is mainly because the same column was renamed a number of times. Some columns that no longer exists in the latest version are still added and then deleted when running the migration file. </p> <p>Is there a way to do database version control in a better way? (We are using MySQL)</p>
0non-cybersec
Stackexchange
CGImage of UIImage return NULL. <p>I created a function for splitting an image into multiple images, but when I take take the CGImage of the UIImage, the CGImage returns NULL</p> <pre><code>NSArray* splitImage(UIImage* image,NSUInteger pieces) { NSLog(@"width: %f, %zu",image.size.width,CGImageGetWidth(image.CGImage)); NSLog(@"%@",image.CGImage); returns NULL NSMutableArray* tempArray = [[NSMutableArray alloc]initWithCapacity:pieces]; CGFloat piecesSize = image.size.height/pieces; for (NSUInteger i = 0; i &lt; pieces; i++) { // take in account retina displays CGRect subFrame = CGRectMake(0,i * piecesSize * image.scale ,image.size.width * image.scale,piecesSize * image.scale); CGImageRef newImage = CGImageCreateWithImageInRect(image.CGImage,subFrame); UIImage* finalImage =[UIImage imageWithCGImage:newImage]; CGImageRelease(newImage); [tempArray addObject:finalImage]; } NSArray* finalArray = [NSArray arrayWithArray:tempArray]; [tempArray release]; return finalArray; } </code></pre>
0non-cybersec
Stackexchange
This guy is constantly posting words of wisdom. I'm so confused, I don't ever want to plan anything again!.
0non-cybersec
Reddit
PsBattle: "Modenize" this statue of Hebe, the god of youth.
0non-cybersec
Reddit
About to get a $1.5 million check. What should I do?. Throwaway because minor celebrity. May get a business manager at some point, but I respect this sub as much or more than I would respect one. Seen lots of good stuff here. So here's the deal. Mid-20s. I've made between $60k and $80k for the last several years. Like most in my industry, I'm self employed, so no guaranteed yearly earnings save what I hustle for. Bought a house two years ago that has appreciated very well, ($170k mortgage) but spent my early career savings on the down payment so don't have much in the ways of savings (~$25k between Roth and secondary investment account) other than the house equity. No CC or student debts. I'm about to be paid $1.5 million for work. No reason to think this kind of thing will happen again in near future or ever. Nothing to guarantee that my yearly take will change too much for the better in the near future (may break $100k this year, may stay there, may not). Suggestions? Obviously some serious investing should happen, but should I also pay off my mortgage? EDIT: Thank you all for the suggestions!!! (Even the guy who suggested I quit my career, go back to school, and "get a real job.") Unfortunately, yes, this will be marked as income and so taxed heavily. Thank-you u/WiF1 for the calculator. I punched in my state. A bit depressing haha u/PackerFan80 your advice most closely mirrors what lines I had been thinking along. Thanks! #Thanks again to ALL! And PS, no I wasn't cast in a show, though that would be damn cool :) Music business.
0non-cybersec
Reddit
Recreating 3D renderings in real life.
0non-cybersec
Reddit
A problem about the special case of the Vitali-Caratheodory theorem. <p>Let $X$ be a locally compact Hausdorff space, suppose there exists a $\sigma$-algebra $\mathscr{R}$ in $X$ which contains all Borel sets in $X$, and there exists a positive measure $\mu$ on $\mathscr{R}$ which has the following additional properties:</p> <p>(a) $\mu(K)&lt;\infty$ for every compact set $K\subset X$.</p> <p>(b) For every $E\in \mathscr{R}$, we have $$\mu(E) = \inf\, \{\mu(V): E\subset V, V \mathrm{ open}\}$$.</p> <p>(c) The relation</p> <p>$$\mu(E) = \sup\,\{\mu(K): K\subset E, K \mathrm{ compact}\}$$</p> <p>holds for every open set $E$, and for every $E\in \mathscr{R}$ with $\mu(E)&lt;\infty$.</p> <p>Suppose $f\in L^1(\mu)$, $f$ is real-valued, and $\epsilon&gt;0$. Does there exist functions $u,v:X\to \Bbb R$ on $X$ such that $u\le f\le v$, $u$ is upper semicontinuous and bounded above, $v$ is lower semicontinuous and bounded below, and $\int_X(v-u)\,d\mu&lt;\epsilon$?</p> <p>[Let $f$ be a real (or extended-real) function on a topological space. If $$\{x:f(x) &gt;\alpha\}$$ is open for every real $\alpha$, $f$ is said to be lower semicontinuous. If $$\{x:f(x) &lt; \alpha\}$$ is open for every real $\alpha$, $f$ is said to be upper semicontinuous.]</p>
0non-cybersec
Stackexchange
This tiny little fella is called a pudu..
0non-cybersec
Reddit
Turning a Binge into a Win. I ate too many calories the last 3 days... a combination of being intensely stressed at work, finding out my moms cancer returned, stressing about COVID... I just fell off the wagon completely. I ate until I was in pain. I felt myself pushing past the pain to eat more and I couldn't stop... I still tracked everything I ate, because I want to be honest with myself. I'm up 4lbs, but it makes sense with what I've been eating. I'm going to stick to 1650 calories today and go for a walk. I'm trying to reframe this as practicing getting back on track. I've always let a bad day turn into a bad week, bad month, bad year... Not anymore. This is a lifelong skill I need to build. I wanna turn this binge into progress.
0non-cybersec
Reddit