text
stringlengths 3
1.74M
| label
class label 2
classes | source
stringclasses 3
values |
---|---|---|
Leibnitz rule for fractional derivatives. <p>I need to estimate the following norm
$$\Vert fg\Vert_{H^{\frac{1}{2}}(\mathbb{R}^3)}$$
Is there some product rule for the fractional derivative?</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 |
Prove that $3(p^2)+61$ is a perfect square only for $p = 1$. <p>It is too be proved that <span class="math-container">$3(p^2)+61$</span> is a perfect square only for <span class="math-container">$$p=1 ; p=N$$</span>
The question arises from a problem in arithmatic progression with a certain soft constraint of natural numbers. At the end a quadratic is formed and since our constraint is of natural number The discriminants should be a perfect square.
If we take <span class="math-container">$p= 1$</span> we are able to solve the question. Our teacher left it to us to prove <span class="math-container">$p=1$</span> is the only solution.
I have not proceeded due to lack of ideas.</p>
| 0non-cybersec
| Stackexchange |
Javascript - How to use promises with multiple .then(). <p>I'm trying to create a array structure. So, we have parts and each part had articles.</p>
<p>So i did a promise to collect all parts <code>.then()</code> i need to iterate part promise and select the articles in this part <code>.then()</code> i want to push this to a array parts and render this in a view.</p>
<p>The structure is this:</p>
<pre><code>-PARTS
- part
- u_order
- u_familia
- u_part
- u_type
- articles (article from each part)
</code></pre>
<p>And my code is this:</p>
<pre><code>var p1 = new Promise(function(resolve, reject) {
var stamp = req.params.stamp;
request.query("SELECT u_order, u_familia, u_part, u_type FROM u_part (nolock) where u_order <'92' and u_order <> '100'").then((data)=>resolve(data));
// or
// reject ("Error!");
});
p1.then(function(value){
var stamp = req.params.stamp;
console.log(value.length);
for(var i= 0; i<value.length; i++)
{
console.log(value[i]);
request.query("SELECT st.u_posic, sc.ref, sc.qtt, sc.design FROM st INNER JOIN sc ON st.ref = sc.ref where sc.ststamp ='"+stamp+"' and st.u_posic = '"+value[i].u_order+"'").then((data)=>resolve(data));
}
}, function(reason){
console.log(reason);
});
p1.then(function(part, articles){
var parts = [];
console.log("PART: " +part.length);
for(var j= 0; j<part.length; j++)
{
console.log(part[j].u_order);
console.log(part[j].u_familia);
console.log(part[j].u_part);
console.log(part[j].u_type);
console.log(articles[j]);
};
});
</code></pre>
<p>In last <code>.then()</code> i just have the parts, i can't access to articles maybe because i'm not doing well with second <code>.then()</code>
I'm starting working with promises, i also read documentation but i can't do this.</p>
<p>Anyone can help me to understand and solve this?</p>
<p>Thank you</p>
| 0non-cybersec
| Stackexchange |
I went to a diner with my dad and he ordered a cheeseburger.. Waitress asks: "How would you like it?"
Dad: "You know, on a bun." | 0non-cybersec
| Reddit |
There is no button for changing display language in Windows Vista. <p>I have an really old Windows Vista Computer (Toshiba, Windows Vista Home Premium, 32-Bit (x86)) and I want to change the display language; I've followed the steps from the Microsoft website: Go to <strong>Start</strong>, <strong>Control Panel</strong>, select <strong>Change keyboard or other input methods</strong> under <strong>Clock, Language and Region</strong>, and then I have to select under <strong>Display language</strong> the language that I want (Sorry for my English). But the problem is: there is no <em>Display language</em> setting or something. </p>
<p><a href="https://i.stack.imgur.com/NC2DA.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/NC2DA.jpg" alt="enter image description here"></a></p>
<p>Can anyone help me?</p>
| 0non-cybersec
| Stackexchange |
Hawks' Mike Budenholzer wins NBA coach of the year, league announces. Steve Kerr second, Jason Kidd third.. | 0non-cybersec
| Reddit |
Exchange Server - Cannot receive external emails. <p>I have running exchange server....every thing was going fine, however last two days I cannot receive any external emails from outside the network, while I can send/receive internally and send to external address too....</p>
<p>when I tried to send email from gmail I got the following error:</p>
<blockquote>
<p>Delivery to the following recipient has been delayed:</p>
<pre><code> ***@***
</code></pre>
<p>Message will be retried for 1 more day(s)</p>
<p>Technical details of temporary failure: DNS Error: Address resolution
of *****.dyndns.org. failed: Domain name not found</p>
</blockquote>
<p>And the message never received...</p>
<p>Telnet output:</p>
<blockquote>
<p>220 MAIL.****.** Microsoft ESMTP MAIL Service ready at Sun, 8 Mar 2015 09:31:16 +0400</p>
</blockquote>
| 0non-cybersec
| Stackexchange |
Disco Island, Greenland. | 0non-cybersec
| Reddit |
Injective group homomorphism from $\mathbb Z^n$ into $\mathbb{R}^m$. <p>What is a nice way to prove that an injective grouphom <span class="math-container">$$\mathbb{Z}^n\rightarrow \mathbb{R}^m$$</span>
implies <span class="math-container">$m\geq n$</span>?</p>
| 0non-cybersec
| Stackexchange |
Why cant we use AES to hash a password, instead of a hash function?. <p>AES needs a key in order to work, hashing-algorithms do not. Suppose we have a fixed key for AES, why don't we simply hash our keys with that?</p>
<p>As with hash functions, AES has arbitrary input size, fixed output size and reasonable computation time. And if the fixed key can be kept safe, it is computationally infeasible to get the original key. So why do we need hash functions at all, then?</p>
| 0non-cybersec
| Stackexchange |
Manipulating Cloud Deployment Manager References. <pre><code>$(ref.uptimecheck-example_com.name)
</code></pre>
<p>Above is a reference coming from an uptimecheck resource (<code>gcp-types/monitoring-v3:projects.uptimeCheckConfigs</code>) whose value is something like <code>projects/[PROJECT_ID]/uptimeCheckConfigs/[UPTIME_CHECK_ID]</code></p>
<p>But I just need the UPTIME_CHECK_ID. I can not see any property in the documentation to simply just return that. </p>
<p>I tried manipulating via Jinja but it just won't work. Turns out that <code>$(ref)</code> gets compiled on the GCP API tier. So <code>.split('/')</code> will not take any effect at all. I'm not sure how to move on...</p>
<p>What I think of right now is maybe there is a syntax along the reference can manipulate the value?</p>
| 0non-cybersec
| Stackexchange |
How to consume properties from configmaps in Java Spring boot application deployed through Helm. <p>I have simple Spring boot application which I need to deploy on development and prod different namespaces on a Kubernetes cluster using Helm.</p>
<p>I was thinking about keeping multiple application.properties (application-dev.properties, application-prod.properties) files for each environment and then create configmaps from them through values.yaml files which also will be different for each environment and specified when I execute Helm upgrade.</p>
<p>Now the question is how do I consume values from config.maps as I understand I can either mount the properties file inside container for example /deployment/application.properties</p>
<p>Or expose each property as an environment variable inside container.</p>
<p>But how do I consume them from Java application?</p>
<p>Also at the moment when I create container image it has current application .properties inside /resources/ files embedded and this is what application is using from default so I need to overwrite this behaviour when application is running inside container as opposite to then when its just build and run manually on developer desktop.</p>
| 0non-cybersec
| Stackexchange |
Indictment: Sysadmin passed over for promotion quits, then strikes back. | 0non-cybersec
| Reddit |
How to prevent button text movement when button is active in Firefox?. <p>Sample:</p>
<pre><code><button>Button</button>
button {
border: medium none;
margin-top: 17px;
width: 224px;
height: 40px;
background: none repeat scroll 0% 0% #7BA6BB;
color: #FFF;
outline: medium none;
cursor: pointer;
}
</code></pre>
<p><a href="http://codepen.io/anon/pen/ByaLZN" rel="noreferrer">http://codepen.io/anon/pen/ByaLZN</a></p>
<p>Browser: Mozilla Firefox (the latest version)</p>
<p>When button is clicked (active), button text moves right. How To prevent it?</p>
| 0non-cybersec
| Stackexchange |
LEGO The Hobbit back in the store!. | 0non-cybersec
| Reddit |
Meals of the very rich VS the very poor.. | 0non-cybersec
| Reddit |
what is the best approach to Join Tar files after Splitting. <p>we have the following files , that we split from huge tar file</p>
<pre><code>linuxaa
linuxab
linuxac
.
.
.
</code></pre>
<p><strong>note - we have only files with <code>linux[a-b][a-z]</code></strong> and <code>linux-xxxx</code> or <code>linux_xxx</code> , but we want to compress only the files with <code>linux [a-b[a-z]</code></p>
<p>and usually I use this to create <code>tar.gz</code> file again</p>
<pre><code>cat linux[a-b][a-z] > centos7-rpm.tar.gz
</code></pre>
<p>most of the times <code>tar.gz</code> created successfully</p>
<p>but sometimes this file seems to be corrupted</p>
<p>any other safety approach to create <code>tar.gz</code> file?
,</p>
<p>we get the following errors in case file tar have a problem</p>
<pre><code>gzip: stdin: invalid compressed data--format violated
tar: Unexpected EOF in archive
tar: Unexpected EOF in archive
tar: Error is not recoverable: exiting now
failed while , error 2
</code></pre>
<p>important note </p>
<p>we can do just <code>cat linux* > centos7-rpm.tar.gz</code></p>
<p>because we have others file as <code>linux-tool</code> , that we not want to compressed </p>
| 0non-cybersec
| Stackexchange |
Dog who suffered severe burns in a fire reunited with the vet that saved his life.. | 0non-cybersec
| Reddit |
Type A women, are there any ways you'd like to be treated differently than non-As?. I'm a bit type A, but not so much that I'd use it to describe myself in conversation. I know a woman who does consider herself type A, and I welcome any advice that would lead to her being happier. | 0non-cybersec
| Reddit |
Pwn2Own: Safari sandbox part 2 – Wrap your way around to root. | 1cybersec
| Reddit |
set font for multiple paragraphs in makecell. <p>I can set a common font for multiple paragraphs as for par 2 and par 3 in this example:</p>
<pre><code>\documentclass{report}
\begin{document}
par 1
{
\tiny
par 2\\
par 3
}
par 4
\end{document}
</code></pre>
<p><a href="https://i.stack.imgur.com/PfA9b.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/PfA9b.png" alt="enter image description here"></a></p>
<p>Unfortunately this nice feature is disrupted in <code>\makecell</code>:</p>
<pre><code>\documentclass{report}
\usepackage{makecell}
\begin{document}
\begin{tabular}{ll}
A & \makecell{\tiny par 2\\par3}\\
C & D
\end{tabular}
\end{document}
</code></pre>
<p>As you can see in the output font size got attributed to par 2 and not to par 3. </p>
<p><a href="https://i.stack.imgur.com/Wcwr7.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/Wcwr7.png" alt="enter image description here"></a></p>
<p><code>\makecell</code> is used to enable multi paragraph content in a table cell.</p>
<p>How to fix?</p>
| 0non-cybersec
| Stackexchange |
Tensorflow 2.0 : How to handle tf.Variable like Numpy Array during on Training(tf.function). <p>It's so urgent thing for me.</p>
<p>I made 'Decoder' layer to make Product Item Matrix in Tensorflow.
I've tried to initialize W, bias and make a calculation to get loss using some value.</p>
<pre><code>class Decoder(tf.keras.layers.Layer):
def __init__(self, units=len(counter), input_dim=300):
super(Decoder, self).__init__()
self.trainer = Trainer(vec_dict)
w_init = tf.random_normal_initializer()
self.w = tf.Variable(initial_value=w_init(shape=(units, input_dim), dtype='float32'), trainable=True)
b_init = tf.zeros_initializer()
self.b = tf.Variable(initial_value=b_init(shape=(units,), dtype='float32'), trainable=True)
def call(self, x_play, y_pos, y_neg):
x = self.trainer(x_play)
user_vector = x[..., tf.newaxis, :]
wp = self.w.numpy()[y_pos]
bp = self.b.numpy()[y_pos]
pos_mul = tf.multiply(user_vector, wp)
pos = tf.reduce_sum(pos_mul, axis=-1) + bp
wn = self.w.numpy()[y_neg]
bn = self.b.numpy()[y_neg]
neg_mul = tf.multiply(user_vector, wn)
neg = tf.reduce_sum(neg_mul, axis=-1) + bn
tot = tf.sigmoid(tf.concat([pos, neg], axis=1))
return tot
</code></pre>
<p>As you can see this,
If I used '.numpy()', it can make me possible to get matrix which has the shape what I want to.</p>
<p>For instance,
self.w has (10000, 300) shapes, and y_pos has (256, 100)
and self.w.numpy()[y_pos] has (256, 100, 300)</p>
<p>The Big, Big, Big Problem is that
If I ran this code for training, I got these kindda error:</p>
<pre><code>NotImplementedError: in converted code:
<ipython-input-835-8d5f0b593979>:4 train_step *
predictions = model(x, y_pos, y_neg)
/usr/local/lib/python3.7/site-packages/tensorflow_core/python/keras/engine/base_layer.py:847 __call__
outputs = call_fn(cast_inputs, *args, **kwargs)
<ipython-input-838-b9b896ea4fff>:64 call
wp = self.w.numpy()[y_pos]
/usr/local/lib/python3.7/site-packages/tensorflow_core/python/ops/resource_variable_ops.py:579 numpy
"numpy() is only available when eager execution is enabled.")
NotImplementedError: numpy() is only available when eager execution is enabled.
</code></pre>
<p>Some-body else who let me know what's going on...</p>
<p>Thanks in Advance.</p>
| 0non-cybersec
| Stackexchange |
In case you missed it.. | 0non-cybersec
| Reddit |
Learning Python for Data Science: IPython Notebooks for Python essentials, PySpark, Python Hadoop MapReduce, Kaggle, scikit-learn, matplotlib, pandas, NumPy, AWS, etc. Hi, here's a collection of continually updated IPython notebooks that I've prepared and maintain (or reference/credit to other authors) while learning and working with data in Python. Hope you find it useful.
https://github.com/donnemartin/data-science-ipython-notebooks | 0non-cybersec
| Reddit |
Install stuff in a schroot. <p>I have a question regarding chroots: say I have a program compiled and built into a root file tree structure, ex:</p>
<pre><code>.
├── bin
│ └── software
├── etc
...
</code></pre>
<p>That is, to install this, I'd have to merge this with the root (/). Now, I've rsynced this into the chroot, but when I try to run it, I get error code 127 (no such file). Is there something else I have to do?</p>
| 0non-cybersec
| Stackexchange |
Cannot find a valid baseurl for any repo in centos 6.4. <p>when I want to install any repo I found this error </p>
<pre><code> Error: Cannot find a valid baseurl for repo: rpmfusion-free
</code></pre>
<p>I'm using centos 6.4</p>
<p>I tried to check other packages I found the same error ... so it's not on specific pacakge .. (i.e PostgreSQL)</p>
<p>yum install postgresql postgresql-server postgresql-libs</p>
<p>here is my rpmfusion-free.repo</p>
<pre><code>[rpmfusion-free]
name=RPM Fusion for Fedora $releasever - Free
#baseurl=http://download1.rpmfusion.org/free/fedora/releases/$releasever/Everything/$basearch/os/
mirrorlist=http://mirrors.rpmfusion.org/mirrorlist?repo=free-fedora-$releasever&arch=$basearch
enabled=1
metadata_expire=7d
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-rpmfusion-free-fedora-$releasever-$basearch
[rpmfusion-free-debuginfo]
name=RPM Fusion for Fedora $releasever - Free - Debug
#baseurl=http://download1.rpmfusion.org/free/fedora/releases/$releasever/Everything/$basearch/debug/
mirrorlist=http://mirrors.rpmfusion.org/mirrorlist?repo=free-fedora-debug-$releasever&arch=$basearch
enabled=0
metadata_expire=7d
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-rpmfusion-free-fedora-$releasever-$basearch
[rpmfusion-free-source]
name=RPM Fusion for Fedora $releasever - Free - Source
#baseurl=http://download1.rpmfusion.org/free/fedora/releases/$releasever/Everything/source/SRPMS/
mirrorlist=http://mirrors.rpmfusion.org/mirrorlist?repo=free-fedora-source-$releasever&arch=$basearch
enabled=0
metadata_expire=7d
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-rpmfusion-free-fedora-$releasever-$basearch
</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 |
Date translated to Chinese. <p>The English dates are strings like <code>1 January 2016</code>. To translated them in Chinese, I use the following way with the help of <a href="https://tex.stackexchange.com/questions/279600/date-calculations-output-should-be-the-fixed-day-of-the-month/279640?noredirect=1#comment673965_279640">Date Calculations</a>.</p>
<pre><code>\usepackage{advdate,xparse}
\ExplSyntaxOn
\DeclareExpandableDocumentCommand{\StrMonthToNum}{ m }
{
\str_case:nnF { #1 } {
{ January } { 1 }
{ February } { 2 }
{ March } { 3 }
{ April } { 4 }
{ May } { 5 }
{ June } { 6 }
{ July } { 7 }
{ August } { 8 }
{ September } { 9 }
{ October } { 10 }
{ November } { 11 }
{ December } { 12 }
} { 12 } % Wrong month, defaults to December/12
}
\ExplSyntaxOff
\begin{document}
\begin{CJK}{UTF8}{gbsn}
\def\cndate #1 #2 #3 {%
#3年% Set year
\StrMonthToNum{#2}月% Set month
#1日% Set day
}
\cndate 1 January 2016
\end{CJK}
\end{document}
</code></pre>
<p>The output is showed:</p>
<p><a href="https://i.stack.imgur.com/20YAC.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/20YAC.png" alt="enter image description here"></a></p>
<p>However, the dates are stored in the commands like <code>\newcommand{\ENGLISHDATE}{1 January 2016}</code>. Are there any way to get it if it should be executed like this: <code>\cndate{\ENGLISHDATE{}}</code>?</p>
| 0non-cybersec
| Stackexchange |
WW1 Gas mask for children, supposed to represent Mickey Mouse. | 0non-cybersec
| Reddit |
${d^2y}\over {dt^2}$ rather than ${dy}\over {dt}$ - what does it change$?$. <p>I have the problem "Find a positive value of $k$ for which $y = \sin(kt)$ satisfies $\frac{d^2y}{dt^2} + 9y = 0.$</p>
<p>Any example I can find for solving this equation either just uses $y'$ or has a typical $\frac{dy}{dt}$ </p>
<p>So what exactly would be changed by doing this$?$</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 |
Condition number of a $2\times 2$ square block matrix. <p>Is there a general rule to relate the condition number of the $2\times2$ square block matrix
$
\left(\begin{array}{cc}
A & B\\
C & D\\
\end{array}\right),
$
where the matrices have the following sizes:</p>
<ul>
<li>$A$: $n\times{n}$</li>
<li>$B$: $n\times{m}$</li>
<li>$C$: $m\times{n}$</li>
<li>$D$: $m\times{m}$</li>
</ul>
<p>If not, what I'm actually after is the following, more specific case; $
\left(\begin{array}{cc}
A & B\\
B^T & 0\\
\end{array}\right),
$
where $A$ is symmetric, such that the block matrix is also symmetric. I couldn't find any properties of the condition number that would help, neither did writing out the definition...</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 |
Never throw with your fapping arm. | 0non-cybersec
| Reddit |
Angular2 RC5 subdomain routing. <p>I would like to have separation for auth, public and private sections. The most obvious option would be to just create folders under App. However, I want to point different subdomains at different sections (example.com -> public, auth.example.com -> auth). I have not been able to find info on Angular2 subdomain routing - any ideas?</p>
<p>Thank you!</p>
| 0non-cybersec
| Stackexchange |
mean in relation to the five number summary. <p>Can the mean of a set of data be equal the Q1 value of the five number summary? hence can 75% of the data be above the mean? can you please provide an example of this?</p>
| 0non-cybersec
| Stackexchange |
Large_Dr_Pepper explains why getting someone addicted to heroin is worse than murdering them.. | 0non-cybersec
| Reddit |
When is the conductor of an elliptic modular curve equal to its level?. <p>Suppose the usual modular curve <span class="math-container">$E=X_0(N)$</span> over <span class="math-container">$\mathbb{Q}$</span> has genus 1 (e.g. <span class="math-container">$N=15$</span>). Define the conductor of <span class="math-container">$E/\mathbb{Q}$</span> as the ideal/integer:</p>
<p><span class="math-container">$$M=\prod_{p}p^{f(E/\mathbb{Q}_p)},$$</span></p>
<p>where</p>
<p><span class="math-container">$$f(E/\mathbb{Q}_p)=\begin{cases}0 & E\text{ has good reduction mod }p\\1 & E\text{ has multiplicative reduction mod }p\\ 2 & E\text{ has additive reduction mod }p\end{cases}$$</span></p>
<p>is the "exponent of the conductor of <span class="math-container">$E/\mathbb{Q}_p$</span>" (see for example Silverman's book Advanced Topics in the Arithmtic of Elliptic Curves, chapter IV, section 10). In the case of <span class="math-container">$p=2,3$</span> the exponent <span class="math-container">$f(E/\mathbb{Q}_p)$</span> might have extra terms depending on its wild ramification.</p>
<p>How do you prove that <span class="math-container">$N=M$</span>?</p>
<p>If <span class="math-container">$E$</span> had a Weierstrass equation, the proof would be straight forward since <span class="math-container">$f(E,\mathbb{Q}_p)$</span> is easy to calculate. You could also use the Ogg-Saito formula if you can calculate the Neron model of <span class="math-container">$E/\mathbb{Q}_p$</span>, but this also requires a Weierstrass equation.</p>
<p>I know that the function field of <span class="math-container">$E/\mathbb{C}$</span> is equal to <span class="math-container">$\mathbb{C}(j,j_N)$</span> and that an algebraic relation between <span class="math-container">$j$</span> and <span class="math-container">$j_N$</span> gives an equation for <span class="math-container">$E$</span>, but this polynomial is extremely inconvenient for calculations.</p>
<p>Is there a way to calculate a simple equation for <span class="math-container">$E/\mathbb{Q}$</span>?</p>
| 0non-cybersec
| Stackexchange |
Syria shocks China 1-0 in bid to qualify for Russia 2018. | 0non-cybersec
| Reddit |
Rustie - Attak ft. Danny Brown. | 0non-cybersec
| Reddit |
Carjackers pick the wrong vehicle..... | 0non-cybersec
| Reddit |
When to register an FCM token for a user. <p>I have some doubts about implementing Firebase Cloud Messaging in my app.</p>
<p>My app is a chat similar to <em>whatsapp</em> and <em>facebook messenger</em>. Right now every time someone logs in I register the token and relate it to the user. So if someone wants to chat to an user the app searches the Db for the user ID and there I have his token.</p>
<p>I'm able to register the device token but I'm not sure when should I do that.</p>
<p>In my chat users register through a mail/password signup and is possible that an user could login in other device.</p>
<p><strong>For example:</strong>
User Frehley uses a <strong>Galaxy 8</strong> and is able to chat and receive notifications in his device using the token. But lets say that he loges in another device. I need to register the token again and relate it to him right?</p>
<p>So, maybe I'm wrong but the best moment to register the token is every time the user logs in and replace it in the DB. Right?</p>
<p>Now, lets say two users (Frehley and Stanley) uses the same <strong>Galaxy 8</strong> to login, the token will be diferent everytime the login or it is the same for every single device?</p>
| 0non-cybersec
| Stackexchange |
Retrieving current capslock state in Java. <p>Using the following code: </p>
<pre><code>Toolkit.getDefaultToolkit().getLockingKeyState(KeyEvent.VK_CAPS_LOCK)
</code></pre>
<p>Unfortunately, only returns false.</p>
<p>As per docs, this should work: <a href="http://docs.oracle.com/javase/8/docs/api/java/awt/Toolkit.html#getLockingKeyState-int-" rel="nofollow noreferrer">http://docs.oracle.com/javase/8/docs/api/java/awt/Toolkit.html#getLockingKeyState-int-</a></p>
<p>Runnable example: </p>
<pre><code>import java.awt.Toolkit;
import java.awt.event.KeyEvent;
import java.util.concurrent.ExecutorService;
import java.util.concurrent.Executors;
public class Foo {
public static void main(String[] args) {
ExecutorService executorService = Executors.newFixedThreadPool(1);
executorService.execute(new Runnable() {
public void run() {
while(true) {
try{ Thread.sleep(250); }catch(Exception ignored) { }
System.out.println("Capslock state: " + Toolkit.getDefaultToolkit().getLockingKeyState(KeyEvent.VK_CAPS_LOCK));
}
}
});
executorService.shutdown();
}
}
</code></pre>
<p><strong>Should add that I'm using Java SE 1.8 on Windows and that my Caplock key works fine</strong></p>
<p>Screenshot of console output: </p>
<p><img src="https://i.stack.imgur.com/6j4Zq.png" alt="enter image description here"></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 |
proof of binomial identity involving double sum. <p>It's asked to simplify the sum</p>
<p><span class="math-container">$$\displaystyle\sum_{0\le i <j\le n+1} \binom{n}{i} \times \binom{n+1}{j} $$</span></p>
<p>inspecting first values of <span class="math-container">$n$</span> shows the sum if apparently equal to <span class="math-container">$4^n$</span></p>
<p>I tried re-writing the sum as </p>
<p><span class="math-container">$$\displaystyle\sum_{j=1}^{n+1} \binom{n+1}{j} \displaystyle\sum_{i=0}^{j-1} \binom{n}{i} $$</span> but that doesn't seem to lead us to the result.</p>
<p>Any suggestions are welcome.</p>
<p>Thanks.</p>
| 0non-cybersec
| Stackexchange |
Is this correct? $ {d \over dy} (1+xy)^y = (1+xy)^y \cdot (1+x \cdot \ln(1+xy))$. <p>I know the formula $ {d \over dx} x^x = x^x \cdot( 1+ \ln x ) $, but is below evaluation correct?</p>
<p>$ {d \over dy} (1+xy)^y = (1+xy)^y \cdot (1+x \cdot \ln(1+xy))$</p>
| 0non-cybersec
| Stackexchange |
First try at Thai Curry. | 0non-cybersec
| Reddit |
Managing stage and live webapps (apache, haproxy, https redirection). <p>We have a staging environment for our rails webapp set up as a second Apache virtual host, with haproxy 1.5 sitting in front of both. Until recently the stage was configured as a different frontend listening on a different port to the live version. This worked pretty well as any redirections, links etc. worked perfectly, with all traffic just going through a different port. </p>
<p>However, we're adding https redirection to the site; this breaks the port-based strategy as the http and https listen on different ports (so <code>http://www.example.com:3000</code> gets redirected to <code>https://www.example.com:3000</code> which breaks if you're listening for ssl on e.g. 443.</p>
<p>I tried a similar setup to the author of this post: <a href="https://serverfault.com/questions/444965/haproxy-reqrep-remove-uri-on-backend-request">HAProxy reqrep remove URI on backend request</a></p>
<p>That is to say, I've configured a single haproxy frontend to use the "stage" backend if I insert <code>/stage/</code> into my url, so:</p>
<pre><code>www.example.com/somepage.html
</code></pre>
<p>serves the page from the live backend, whilst </p>
<pre><code>www.example.com/stage/somepage.html
</code></pre>
<p>serves the page from the stage backend. Because I obviously want to run apps with an identical directory structure on both backends, I'm stripping away the "/stage/" from the URI in the stage backend. The problem is that any time the rails app itself wants to redirect me (if I even click on a link!), the stage is no longer in the url, so it redirects me to the live website. The idea of the setup is that the app can just be copied from stage to live once we're done testing, so I don't want my Ruby code to know or care which environment it is in if I can avoid it. Is there any way (within haproxy or apache) so that any http requests made by that version are "kept in-house", so that if I log in to the stager version I stay there? </p>
<p>Thanks in advance.</p>
| 0non-cybersec
| Stackexchange |
What is the `< <()` syntax?. <p>I've been using RVM for a while, and every time I just copied and pasted the following command to get it setup:</p>
<pre><code>bash < <(curl -s https://rvm.beginrescueend.com/install/rvm)
</code></pre>
<p>It bugs me that I don't fully understand the syntax, and why we need the double <, and the parentheses. Can some one explain this or point me to the right reference?</p>
| 0non-cybersec
| Stackexchange |
Groups of the from $gMg$ in a monoid where $g$ is an idempotent. <p>Let $(M, \cdot)$ be a finite monoid with identity $e$. It is easy to see that $gMg = \{ gxg : x \in M \}$ forms a monoid with identity $geg = g$ if $g$ is an idempotent. If $gMg$ contains no idempotent other than $g$, it must be a group, since it is finite.</p>
<p>Suppose that $g, h \in M$ are distinct idempotents in $M$ such that both $gMg$ and $hMh$ are groups. Is it true that $gMg$ and $hMh$ are isomorphic?</p>
| 0non-cybersec
| Stackexchange |
Why don't we learn much of the wars we lost?. I was thinking of all American wars and how in school from 1-12 we learn so much about our victories and names of wars and how we had like 5 tests on them but we never really learned about Vietnam war it was just "we went and we came back next question" is how it mostly went.If you wanted real information you did it yourself and I thought. "since it was some what recent it wasn't necessary" but we learned a lot about the Persian gulf war? anyways I was curious if European countries learned about wars they lost on"e of my teachers that is from Germany said they don't really teach WW2 so thanks for responses I'm super curious! | 0non-cybersec
| Reddit |
Where does keytool command logs?. <p>I want to know in which file keytool command logs all the information.</p>
<p>i.e when i execute below command :-</p>
<p>keytool -import -file ca-certificate.cer -alias sample -keystore /root/keystore.jks</p>
<p>I couldn't find any log information.I also want to add log information for any certificate imports.</p>
| 0non-cybersec
| Stackexchange |
Advice on finding a home for this sleepy boy?. | 0non-cybersec
| Reddit |
What are all these weird requests in my apache logs for my personal PC at home?. | 0non-cybersec
| Reddit |
Need advice: Staying techie or going the MBA way?. <p>I know this is a very subjective question and I am the best person to decide this for myself...but I am just looking for your views.</p>
<p>I have 5 years of experience as a professional developer. I have a decent background in Maths and have done my bachelors in engineering in CS. I have still not reached a stage in my career where growth is difficult and do not foresee this happenning for a very long time if ever because I find myself constantly (self) motivated to pick up new skills.</p>
<p>A lot of my friends have however been getting through their MBA lately ...and not from the likes of Harvard or Kellogs, just mediocre colleges. They've however been landing paychecks fatter than me even though they have little or no work experience.</p>
<p>Given that I have the option of pursuing an MBA an have my finances in order (and am planning an MBA from INSEAD / IE) would it make sense for me to sell out what I like doing and go for an MBA? Will I regret not doing an MBA later, given that I am in the right age/experience group to do an MBA?</p>
<p>I absolutely love what I am doing right now and also the people I'm doing it with, but am just worried if this career would be as rewarding financially as the one after a management degree.</p>
| 0non-cybersec
| Stackexchange |
Trying to display multiple hosts for single metrics in InfluxDB + Grafana. <p>Running Grafana 5.4.2-1 + InfluxDB 1.7.4-1 + Telegraf 1.9.4-1 on CentOS 7.6.</p>
<p>I used to run a monitoring stack on collectd -> graphite -> grafana, where say, a single metrics (CPU Idle) graph can show multiple polled hosts into the same dashboard graph.</p>
<p>Right now, I'm unable to replicate such behaviour with telegraf -> influxdb -> grafana. Every dashboard I've checked on grafana.com provide a drop-down menu to select which host to display, but none offer the capability to show multiple hosts for the same metrics.</p>
<p>Is it that InfluxDB is structurally unable to do so, or that I am missing something (and if so, what am I missing ?).</p>
<p>Thanks</p>
| 0non-cybersec
| Stackexchange |
harold domar growth model: solve the differential equation by integration. <p>harold domar growth model: solve the differential equation (by integration)</p>
<p>When arranging the differential equation like this:</p>
<p><span class="math-container">$$ \frac{dY}{dt} \cdot \frac{1}{Y(t)} = (\frac{s}{v})$$</span> and integrating both parts, I get the solution: <span class="math-container">$Y(t) = e^((\frac{s}{v})\cdot)\cdot C$</span>, which is correct apparently</p>
<p><span class="math-container">$C$</span> is the intergration constant, <span class="math-container">$s$</span> and <span class="math-container">$v$</span> are some parameters of the Harold Domar model</p>
<p>However, whenever I try to use the same technique of integrating right and left hand side when rearranging the equation like this:</p>
<p><span class="math-container">$\frac{dY}{dt} - \frac{s}{v}\cdot Y(t) = 0$</span> , I get nowhere, well, I get something like <span class="math-container">$Y(1-\frac{s}{v} \cdot t) = c$</span>.</p>
<p>How come it doesn't seem to work with different rearrangements of the equation? Does it matter? Or is it just my lack of integration skills? Many other rearrangements are possible, but I only find the solution with this particular one and I wonder why.</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 |
A senior figure in Islamic State’s self-declared police force in Syria, which has carried out beheadings, was himself found decapitated in the eastern province of Deir al-Zor. | 0non-cybersec
| Reddit |
$\ell_p$ sums of Banach spaces. <p>Let $p\in (1,\infty)$ and let $(E_\alpha)_{\alpha<\omega_1}$ be a family of Banach spaces. Set $E=\left(\bigoplus_{\alpha<\omega_1}E_\alpha\right)_{\ell_p(\omega_1)}$. Must $E$ be isomorphic to $\ell_p(E)$?</p>
| 0non-cybersec
| Stackexchange |
Sarah Sanders: Trump will have a yearly medical checkup, and it's coming soon. | 0non-cybersec
| Reddit |
Best time to capture images is golden hours isn't it? It imparts a kind of feel into photos. More photos at : bit.ly/Blesson. | 0non-cybersec
| Reddit |
Choosing a sequence of functions to approximate from below or above. <p>Suppose $X\subset \Bbb R^n$ is contained in a compact set. Denote $C(X,\Bbb R)$ the collection of continuous functions from $X$ to $\Bbb R$ with the supremum norm. Suppose $A\subset C(X,\Bbb R)$ is a dense subalgebra and $f\in C(X,\Bbb R)$ is a function.</p>
<p>It is clearly possible to pick a sequence of functions $f_n\in A$ such that $f_n\to f$ uniformly (that's what density in the supremum norm means, after all). Is it also possible to choose sequences $g_n,h_n\in A$ such that $g_n\geq f \geq h_n$ pointwise and $g_n,h_n$ both converge to $f$ uniformly?</p>
<p>I think this should be obviously true, but I am bad at functional analysis and don't trust my intuition without outside confirmation. An attempt at a proof would be something like saying "the collection of functions $g$ such that $g\geq f$ at all points forms a set with nonempty interior with $f$ as a limit point, thus $A$ is also dense in the space of such $g$, and therefore a sequence $g_n$ with the requested property may be chosen". Is there anything wrong with this attempt at a proof?</p>
| 0non-cybersec
| Stackexchange |
What is best practice to create an AngularJS 1.5 component in Typescript?. <p>I am experimenting with the <code>.component()</code> syntax in Angular 1.5.</p>
<p>It seems that the latest fashion is to code the controller in-line in the component rather that in a separate file, and I can see the advantage of that given that the component boilerplate is minimal.</p>
<p>The problem is that I having been coding my controllers as typescript classes and would like to continue doing so because that seems to be consistent with Angular2.</p>
<p>My best effort is something like this:</p>
<pre><code>export let myComponent = {
template: ($element, $attrs) => {
return [
`<my-html>Bla</my-html>`
].join('')
},
controller: MyController
};
class MyController {
}
</code></pre>
<p>It works, but it's not elegant. Is there a better way?</p>
| 0non-cybersec
| Stackexchange |
The Walking Episode. Dead Season 2 2. | 0non-cybersec
| Reddit |
How come when poor people leave their ovens open and on for heat, they die of carbon monoxide poisoning, but I can cook a turkey on Thanksgiving for like 7 hrs in the same oven and not die??. Where does the CO go? | 0non-cybersec
| Reddit |
Check if you're in the top 1% - Global rich list. | 0non-cybersec
| Reddit |
Folder structure for React and Django REST. <p>I'm in the process of refactoring a rather basic/traditional Django webapp to a more modern React-plus-Django-REST setup. I'm far more familiar with Django than React, so where to put the React part is what's confusing to me.</p>
<p>My question is: what are the best practices for folder structure in using both Django and React? Ideas I've had:</p>
<ol>
<li><p>Put all React files in their own folder like this:
<code>
.
├── app1
│ └── example-files.py
├── app2
│ └── example-files.py
├── manage.py
├── react-django-project
│ ├── settings.py
│ └── urls.py
├── requirements.txt
├── some-app-1
│ └── example-files.py
├── some-app-2
│ └── example-files.py
├── src
│ └── components
│ ├── component1.js
│ └── component2.js
└── ...
</code></p></li>
<li><p>Put all React files in the static folder, but this doesn't seem right to me.</p></li>
</ol>
<p>Is there an established set of best practices for this?</p>
| 0non-cybersec
| Stackexchange |
The Only Good Thing About Star Wars Kinect. | 0non-cybersec
| Reddit |
How does YouTube count playlist views?. <p>YouTube seems to show how many views a playlist has when you view it. <a href="http://www.youtube.com/playlist?list=PLjKiUQDAi-URYCiiaZz-eb-9HG6rr5Eka" rel="nofollow noreferrer">This playlist</a>, for example, has 58,878 views.</p>
<p>Does anyone know what this number is made up from? </p>
<p>It doesn't seem to be the total number of views all videos within it have, as one of the videos has over 2.5m views itself. Could it be made up of: </p>
<p>a) when a video is viewed within a playlist, and<br>
b) views on the actual playlist itself (like the link above)?</p>
| 0non-cybersec
| Stackexchange |
Canonical subbundle of cotangent bundle of a jet manifold. <p>In the first chapter of Griffiths' <em>Exterior Differential Systems and the Calculus of Variations</em>, he discusses a bit of the language of jet manifolds. Namely, for a smooth manifold <span class="math-container">$M$</span>, he considers the manifold of <span class="math-container">$k$</span>-jets of curves, <span class="math-container">$J^k(\Bbb R,M)$</span>. Say the the coordinates in <span class="math-container">$J^k(\Bbb R,M)$</span> induced by coordinates <span class="math-container">$(y^\alpha)$</span> in <span class="math-container">$M$</span> are <span class="math-container">$(x;\dot{y}^\alpha; \ddot{y}^\alpha;\ldots; (y^\alpha)^{(k)})$</span>.</p>
<p>He claims that for every <span class="math-container">$k$</span> there is a canonical subbundle <span class="math-container">$W^*\subseteq T^*(J^k(\Bbb R,M))$</span>, which he proceeds to describe in the case <span class="math-container">$k=1$</span> by using the projection <span class="math-container">$\pi: J^1(\Bbb R,M)\cong \Bbb R\times TM \to \Bbb R\times M$</span>, given by <span class="math-container">$\pi(x,p,v)=(x,p)$</span> as follows: since <span class="math-container">$T_{(x,p)}(\Bbb R\times M)=T_x\Bbb R\oplus T_pM$</span>, we have that <span class="math-container">$\partial_x|_x+v$</span> is there. So consider the annihilator <span class="math-container">$(\partial_x|_x+v)^\perp\subseteq T_{(x,p)}^*(\Bbb R\times M)$</span>, and pull that back to define <span class="math-container">$$W^*_{(x,p,v)}=\pi^*\big((\partial_x|_x+v)^\perp\big).$$</span>Then it is not hard to check that <span class="math-container">$W^*$</span> is locally spanned by <span class="math-container">$\theta^\alpha = {\rm d}y^\alpha-\dot{y}^\alpha {\rm d}x$</span>. After this he describes in a complicated way how to do this recursively for general <span class="math-container">$k$</span>. Questions:</p>
<p>(1) Why particularize everything for <span class="math-container">$J^k(\Bbb R,M)$</span>? Why not look at <span class="math-container">$J^k(M,N)$</span>?</p>
<p>(2) What is the significance of this <span class="math-container">$W^*$</span>? Why should we care about it?</p>
<p>(3) in the kernel of <span class="math-container">$\theta^\alpha$</span>, we'd have the relation <span class="math-container">${\rm d}y^\alpha/{\rm d}x = \dot{y}^\alpha$</span>, which I feel that should hold "anyway". What is the relation between this and <span class="math-container">$W^*$</span>?</p>
<p>I am just starting to get used to jet manifolds, and I don't know anything about exterior differential systems yet.</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 |
16 dice stack by a 5 year old.. | 0non-cybersec
| Reddit |
B/A - Got my face done at MAC today! Found a great eyebrow colour :). | 0non-cybersec
| Reddit |
It’s not your mother, I promise. I used to hate going to work, I still do, but for very different reasons, as you can understand. I now have a background level of anxiety that permeates my day like a sinister shadow hovering over my shoulder that’s never there when I look. I feel my heart race constantly. I’m always on the edge of a panic attack.
I only feel safe when I get home. Once I’d unlocked the door, stepped inside, placed my keys in their box, taken my shoes off and put them safely away under the table that sat next to the front door; then I’d wash my hands five times. The satisfaction I’d get from multiple washes soothed me. When I put my key in the door tonight and saw it was unlocked, dread filled me. Did I forget? If I did, what else had I forgotten to do today?
My dad had retired, so to hear my father, upstairs, swear under his breath didn’t worry me initially. It was how he did it. Frantic panting between a staccato stab of *fucks*.
“Dad?” I shouted up the stairs, feeling my anxiety build to a crescendo.
“Elizabeth, is that you?” He said, and I heard his pacing stop, “don’t come upstairs, okay honey?”
“What’s wrong?”
“Everything is fine,” he said, but his intonation betrayed his fear. His words jumped around in his mouth like a tone deaf singer trying to hit the high notes.
I crept up the stairs, holding the bannister for purchase, craning my neck forward, trying to snatch a glimpse of him on the landing. His pacing returned. A creak from under my feet alerted him. His head thrust into view.
“Get downstairs!” He shouted.
My feet obeyed his command before my mind had time to protest. I stole a final glance up the stairs, and his eyes met mine. What I saw in them wasn’t fear per se, it was past that. Fear is typically a response to the unknown. What I saw in his eyes was recognition, an acceptance. What I saw was shock.
I sat in the living room, my legs held close to my chest, my fingers numb from the vice-like grip I had on them. I listened to his footsteps as they traversed the upstairs. From the difference in sound I could tell where he was. He drifted between the office, my parent’s bedroom and the bathroom. He didn’t relent.
His mumbling returned, obviously not under his breath, I could hear it downstairs.
“Dad?” I offered impotently. He didn’t hear me, and I’m not sure if I wanted him to.
Bedroom.
Office.
Bathroom.
Bedroom.
Office.
Bathroom.
Time seemed to stand still. I stared at the clock that sat on the mantelpiece and willed the second-hand to complete its circuit, though I wasn’t sure if the act of watching or my thumping heart seemed to slow it. In my mind my mother’s face came to me, and I pushed it away. I knew what I was telling myself, but I didn’t want to acknowledge it. Something had happened to my mother. Had to be. If it hadn’t, dad would have told me, surely. It was obvious I would have worried. And with that, I thought about her.
A cold sweat erupted on my brow, and the anxiety I had been doing so well to keep inside bled into panic.
Then there was silence, except for the ticking of the clock and the hum of the refrigerator. I looked around the room, hearing my snatched breaths, the panic felt out of place, and I was snapped back to reality. It was as if my body had been possessed and was now asking me what the big deal was.
I waited, expecting the footsteps to return. When they didn’t, my grip relented, and my anxious blood raced back into my extremities with fierce purpose, making my fingers tingle. My legs hurt as I placed my feet on the floor, feeling the knots in my muscles stretch.
As if on autopilot, wanting to be with my father, I made my way towards the stairs.
“Dad?” I asked calmly, still aware of my racing pulse.
He didn’t respond.
I saw no one when I got to the top of the stairs. I headed for the office, the door open, and the light from the lamp that sat on the desk shone out.
I stopped as I passed the bathroom. I didn’t need to gaze inside to know someone was there, I could sense it. Then I was aware of sobbing. I turned to see my father, his elbows resting on the edge of the bathtub, the sleeves of his shirt rolled up, wet. His thinning hair was a mess, not the neat and orderly row of a side-parting.
He knew I was there, but his anger had gone. I now know it wasn’t anger, he was trying to protect me, but his energy was gone. As he turned his face to mine, I saw the fresh tears that streaked his face. He tried to pull the shower curtain across, but I already saw. I saw the pale flesh of two legs that abutted the end of the tub. I saw the red liquid that had smeared her flesh. I didn’t want to look at her face, but I already had by the time I wanted to look away.
As I closed my eyes and felt my stomach lurch, Dad spoke, so softly.
“It’s not your mother. I didn’t kill her. I didn’t. I didn’t.”
He repeated that last line until it faded away and all I could hear was a pale echo of the words. I fell to my knees, my hands spreading out in front of me to cushion my fall. I became aware of the itchy pile of the carpet as it gripped my skin. Then I felt my father’s hands on my shoulder. An acceptance grew within me. If he could do that to her, he was going to do it to me.
I winced. I was broken, and I waited. I wanted to make it easy for him. I didn’t want to struggle and end up suffering, I wanted it to be quick. When that didn’t come, and instead his arms drew around my waist and he cried silently in my ear, I fell back into his arms.
“It’s not her, okay, it’s not her,” he said to me, trying to soothe.
“What did you do?” I asked, not wanting to know the answer.
“It’s not her, I promise,” he replied, his voice turning from the pathetic whines, into something with commitment, “it isn’t her. She’s still in the bedroom.”
“I saw her,” I replied between tears. Her face flashed into my mind’s eye, seeing hers wide open in shock, her mouth agape, completely unaware her own husband was going to take her life away from her.
“Please, check the bedroom,” he said, pushing me away.
I moved on my knees, feeling woozy and faint. I slammed my back against the wall to see the eyes of the man I knew as my father beg me. I don’t know why I got up. I don’t know why I checked. My mind was swimming, trying to stay above water, the fight or flight response pausing between the two options, not knowing which one to pick.
I found myself in front of my parent’s bedroom, and I hovered at the threshold. I could see the duvet carefully placed to give the appearance of a single body sleeping. I expected now was the time I’d feel a blunt object hit my head. I braced for it, the hairs on my head reacting prematurely. When it didn’t come, I walked into the room.
I rounded the bed, the closer I got the more realistic it looked. On the nightstand an empty cup sat, next to it a box of sleeping tablets. That wasn’t unusual, but in the circumstances, I wondered how many of them he’d given her, and even if they were the pills they were supposed to be inside. I pulled back the covers.
I almost screamed, but from the doorway, someone preempted me, and I heard a delicate, *shhhh*. My father waited quietly as I inspected the breathing body of my mother in the bed. Without thinking, I prodded her, wanting to know she was real.
“Don’t wake her up!” My dad scolded quietly.
“What’s going on,” my mother murmured.
I panicked.
“Everything is fine, I’ve just got home from work. I wanted to say hey.”
“Hey yourself,” she said through closed eyes, and her lips pursed.
I leaned over, feeling all the muscles in my body cry out in pain, feeling the tenseness. I kissed her gently. She smiled softly and was purring a delicate snore before I moved.
It was as if I glided back to my father, I cannot remember walking.
“What’s happening?” I asked.
He shook his head, and before he could stop me, my eyes wandered into the office. In the office chair in front of the computer I recognised the shirt. I had been looking at it moments ago, it hung on my dad. Instead of the sleeves that were rolled up to the elbows, it covered the arm that hung gently over the side of the chair. I didn’t need to go any further inside to understand.
My father grabbed me and pulled me towards him.
“That’s not me in there, okay? I’m here, I’m your father. Elizabeth, listen to me.”
I nodded quickly, trying to process what was happening. I could hear something, that I couldn’t place. I thought it was mum waking.
“Dad, mum needs you,” I said.
“Don’t worry about her,” he replied, and hugged me tightly.
“You don’t want her to wake, do you?”
We had to do something, but I didn’t know what. But I knew my mother couldn’t see what had happened, it would frighten her.
“It’s not your mother,” he said, and I felt my heart sink. I thought back to the body in the bathroom.
“That’s coming from your room.”
“Dad?” I heard, almost slurred, and then some thumping. I watched as the door to my bedroom reverberated in time with each thump.
“I had to be sure,” he said to me.
“Oh my God,” I whispered.
“I had to wait until you came home. I had to see you. Go downstairs.”
“No,” I replied.
“Get down the Goddamn stairs!” He said quietly through his gritted teeth.
I sat in the living room, my legs held close to my chest, my fingers numb from the vice-like grip I had on them. I listened to the muffled screams that came from upstairs. I let go of my legs and pressed my palms to my ears.
***
From the couch I could hear the thuds as he moved them down the stairs. I kept my eyes closed and I heard the hiss of the makeshift body bags being dragged across the living room floor, one by one, and into the kitchen, and into the garage.
After the third, I opened my eyes to see my dad standing in front of me. He told me he wouldn’t be long, and when he was back it would all be over. I was worried he was going to be pulled over, unnecessary travel. How would he explain it? He couldn’t. Thirty minutes, that felt like a lifetime. And the panic rose again.
When I heard the car pull into the drive a rush of relief washed over me.
“I need to get to bed,” he said, “will you be okay?”
“I don’t know,” I replied.
“Me neither,” he said, and he laughed nervously, “I love you, Elizabeth.”
“I love you, too.”
He had spent his life in the army. He was steeled. It wasn’t something I could relate to. I went straight to the kitchen to pour myself a glass of wine, and that disappeared down my throat before I put the bottle down. I did it again, and then sat in silence. I sipped the wine, not able to comprehend what had happened. Anxiety is strange, it makes everything seem dreamlike. After the alcohol began to take effect, I relaxed. I couldn’t even tell if it really happened. Maybe my father went out for a drive, then parked up and said goodnight. Though something itched at me, needing to be scratched. It gave me an overwhelming sense of the uncanny.
Then I knew.
Elizabeth. It was that word.
I hadn’t heard it since I was a child.
My dad always called me Beth[.](https://www.facebook.com/theedwincrowe) | 0non-cybersec
| Reddit |
Is this right? Difference between evaluating and expressing to cartesian form $z= 1 + \sqrt{3} i $. <p>Am i going right with this?
$$z= 1 + \sqrt{3} i $$
i need to i) evaluate $z^9$ and ii) express in cartesian for $z^5$... Which i'm a bit confused with.</p>
<p>First what i did was find the polar form...</p>
<p>So height angle with opposite side $\sqrt{3}$ and adjacent 1 $$\theta = \frac{\pi}{3}$$</p>
<p>$$r=\sqrt{1^2+\sqrt{3}^2}$$ $$r=\sqrt{1+3}$$ $$r=2$$</p>
<p>Hence polar form is.... $$z=2e^{\frac{\pi}{3}i}$$</p>
<p>Then i did part i. Using de moivre's theorem..... $$z^9=\left(2e^{\frac{\pi}{3}i}\right)^{9}$$ $$z^9=512e^{3\pi i}$$</p>
<p>Now here's where i get confused... Does evaluate mean... i go beyond cartesian form?
$$z^9=512e^{3\pi i}$$ $$z^9=512(\cos{3\pi}+i\sin{3\pi})$$</p>
<p>Which equates to....
$$z^9=512(-1+i0)$$ $$z^9=-512$$</p>
<p>for part ii)</p>
<p>Again using de moivre's theorem $$z^5=\left(2e^{\frac{\pi}{3}i}\right)^{5}$$ $$z^5=32e^{\frac{5\pi}{3} i}$$ </p>
<p>$$z^5=32\left(\cos{\frac{5\pi}{3}}+i\sin{\frac{5\pi}{3}}\right)$$ $$z=32\left(\frac{1}{2}-\frac{\sqrt{3}}{2}i\right)$$</p>
| 0non-cybersec
| Stackexchange |
Android-x86_64 installer does not boot in QEMU/KVM - EFI Shell appears instead. <p>I downloaded <a href="http://www.android-x86.org/download" rel="nofollow noreferrer">Android x86_64 5.1-rc1</a> as bootable <code>img</code> installation image.</p>
<p>I want to install it to a virtual machine running on Ubuntu 16.04 64 bit with UEFI using QEMU/KVM and virt-manager as graphical front end.</p>
<p>OVMF is installed and the hypervisor should be correctly configured, as a test VM of Ubuntu with UEFI which had its virtual disk files and installer image in the same place works fine.</p>
<p>However, when I boot a freshly created VM with the settings dumped below and the downloaded Android-x86 image mounted into the virtual CD drive, it does not boot but shows an EFI Shell:</p>
<p><a href="https://i.stack.imgur.com/BQdcW.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/BQdcW.png" alt="Screenshot UEFI Interactive Shell v2.1"></a></p>
<p>What am I doing wrong here? How can I install Android-x86 in a QEMU/KVM?</p>
<pre><code>$ virsh dumpxml android-x86_64-5.1rc1
<domain type='kvm' id='2'>
<name>android-x86_64-5.1rc1</name>
<uuid>599615a7-aaad-499a-84b4-0d894080dd95</uuid>
<memory unit='KiB'>1048576</memory>
<currentMemory unit='KiB'>1048576</currentMemory>
<vcpu placement='static'>1</vcpu>
<resource>
<partition>/machine</partition>
</resource>
<os>
<type arch='x86_64' machine='pc-i440fx-wily'>hvm</type>
<loader readonly='yes' type='pflash'>/usr/share/OVMF/OVMF_CODE.fd</loader>
<nvram>/var/lib/libvirt/qemu/nvram/android-x86_64-5.1rc1_VARS.fd</nvram>
</os>
<features>
<acpi/>
<apic/>
</features>
<cpu mode='custom' match='exact'>
<model fallback='allow'>Broadwell-noTSX</model>
</cpu>
<clock offset='utc'>
<timer name='rtc' tickpolicy='catchup'/>
<timer name='pit' tickpolicy='delay'/>
<timer name='hpet' present='no'/>
</clock>
<on_poweroff>destroy</on_poweroff>
<on_reboot>restart</on_reboot>
<on_crash>restart</on_crash>
<pm>
<suspend-to-mem enabled='no'/>
<suspend-to-disk enabled='no'/>
</pm>
<devices>
<emulator>/usr/bin/kvm-spice</emulator>
<disk type='file' device='disk'>
<driver name='qemu' type='qcow2'/>
<source file='/vms/Android-x86_64-5_1rc1.qcow2'/>
<backingStore/>
<target dev='hda' bus='ide'/>
<boot order='1'/>
<alias name='ide0-0-0'/>
<address type='drive' controller='0' bus='0' target='0' unit='0'/>
</disk>
<disk type='file' device='cdrom'>
<driver name='qemu' type='raw'/>
<source file='/storage/ImageFiles/android-x86_64-5.1-rc1.img'/>
<backingStore/>
<target dev='hdb' bus='ide'/>
<readonly/>
<boot order='2'/>
<alias name='ide0-0-1'/>
<address type='drive' controller='0' bus='0' target='0' unit='1'/>
</disk>
<controller type='usb' index='0' model='ich9-ehci1'>
<alias name='usb'/>
<address type='pci' domain='0x0000' bus='0x00' slot='0x06' function='0x7'/>
</controller>
<controller type='usb' index='0' model='ich9-uhci1'>
<alias name='usb'/>
<master startport='0'/>
<address type='pci' domain='0x0000' bus='0x00' slot='0x06' function='0x0' multifunction='on'/>
</controller>
<controller type='usb' index='0' model='ich9-uhci2'>
<alias name='usb'/>
<master startport='2'/>
<address type='pci' domain='0x0000' bus='0x00' slot='0x06' function='0x1'/>
</controller>
<controller type='usb' index='0' model='ich9-uhci3'>
<alias name='usb'/>
<master startport='4'/>
<address type='pci' domain='0x0000' bus='0x00' slot='0x06' function='0x2'/>
</controller>
<controller type='pci' index='0' model='pci-root'>
<alias name='pci.0'/>
</controller>
<controller type='virtio-serial' index='0'>
<alias name='virtio-serial0'/>
<address type='pci' domain='0x0000' bus='0x00' slot='0x07' function='0x0'/>
</controller>
<controller type='ide' index='0'>
<alias name='ide'/>
<address type='pci' domain='0x0000' bus='0x00' slot='0x01' function='0x1'/>
</controller>
<interface type='network'>
<mac address='52:54:00:9b:51:f7'/>
<source network='default' bridge='virbr0'/>
<target dev='vnet0'/>
<model type='rtl8139'/>
<alias name='net0'/>
<address type='pci' domain='0x0000' bus='0x00' slot='0x03' function='0x0'/>
</interface>
<serial type='pty'>
<source path='/dev/pts/5'/>
<target port='0'/>
<alias name='serial0'/>
</serial>
<console type='pty' tty='/dev/pts/5'>
<source path='/dev/pts/5'/>
<target type='serial' port='0'/>
<alias name='serial0'/>
</console>
<channel type='spicevmc'>
<target type='virtio' name='com.redhat.spice.0' state='disconnected'/>
<alias name='channel0'/>
<address type='virtio-serial' controller='0' bus='0' port='1'/>
</channel>
<input type='mouse' bus='ps2'/>
<input type='keyboard' bus='ps2'/>
<graphics type='spice' port='5900' autoport='yes' listen='127.0.0.1'>
<listen type='address' address='127.0.0.1'/>
<image compression='off'/>
</graphics>
<sound model='ich6'>
<alias name='sound0'/>
<address type='pci' domain='0x0000' bus='0x00' slot='0x04' function='0x0'/>
</sound>
<video>
<model type='qxl' ram='65536' vram='65536' vgamem='16384' heads='1'/>
<alias name='video0'/>
<address type='pci' domain='0x0000' bus='0x00' slot='0x02' function='0x0'/>
</video>
<redirdev bus='usb' type='spicevmc'>
<alias name='redir0'/>
</redirdev>
<redirdev bus='usb' type='spicevmc'>
<alias name='redir1'/>
</redirdev>
<memballoon model='virtio'>
<alias name='balloon0'/>
<address type='pci' domain='0x0000' bus='0x00' slot='0x08' function='0x0'/>
</memballoon>
</devices>
<seclabel type='dynamic' model='apparmor' relabel='yes'>
<label>libvirt-599615a7-aaad-499a-84b4-0d894080dd95</label>
<imagelabel>libvirt-599615a7-aaad-499a-84b4-0d894080dd95</imagelabel>
</seclabel>
</domain>
</code></pre>
| 0non-cybersec
| Stackexchange |
How do I make the following scheme?. <p>How do I make this kind of scheme in TeX<a href="https://i.stack.imgur.com/6ZeV9.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/6ZeV9.png" alt="enter image description here"></a></p>
<p>I found it in a book I'm using as source for my bachelor´s thesis and I thought it was a nice way of summarizing a method. But how do I implement it in TeX? </p>
<p>Or would you advise for a different way of displaying the algorithm, is this kind of display bad practice?</p>
| 0non-cybersec
| Stackexchange |
Titans WR Kenny Britt arrested for DUI. | 0non-cybersec
| Reddit |
Android Network is unreachable - ENETUNREACH. <p>I'm having a weird error on my android application. I'm testing with a local server using Xampp. The App is to retrieve records from a Database and store them in the phone.</p>
<p>The thing is I have tested the app in a Motorola XT550 with Android 2.3.6 and in my Sony Xperia S with Android 4.0.4 and the app works just fine. But when I test it with a Samsung Fame with Android 4.1.2 (my client's phone) it doesn't work.</p>
<p>Here is the LogCat:</p>
<pre><code>02-22 04:48:33.001 3961-3976/com.sistel.manantiales W/System.err﹕ at org.apache.http.impl.conn.DefaultClientConnectionOperator.openConnection(DefaultClientConnectionOperator.java:183)
02-22 04:48:33.001 3961-3976/com.sistel.manantiales W/System.err﹕ at org.apache.http.impl.conn.AbstractPoolEntry.open(AbstractPoolEntry.java:164)
02-22 04:48:33.001 3961-3976/com.sistel.manantiales W/System.err﹕ at org.apache.http.impl.conn.AbstractPooledConnAdapter.open(AbstractPooledConnAdapter.java:119)
02-22 04:48:33.011 3961-3976/com.sistel.manantiales W/System.err﹕ at org.apache.http.impl.client.DefaultRequestDirector.execute(DefaultRequestDirector.java:360)
02-22 04:48:33.011 3961-3976/com.sistel.manantiales W/System.err﹕ at org.apache.http.impl.client.AbstractHttpClient.execute(AbstractHttpClient.java:670)
02-22 04:48:33.011 3961-3976/com.sistel.manantiales W/System.err﹕ at org.apache.http.impl.client.AbstractHttpClient.execute(AbstractHttpClient.java:509)
02-22 04:48:33.011 3961-3976/com.sistel.manantiales W/System.err﹕ at org.apache.http.impl.client.AbstractHttpClient.execute(AbstractHttpClient.java:487)
02-22 04:48:33.011 3961-3976/com.sistel.manantiales W/System.err﹕ at com.sistel.manantiales.SyncActivity$DatabaseSync.updateDatabase(SyncActivity.java:198)
02-22 04:48:33.011 3961-3976/com.sistel.manantiales W/System.err﹕ at com.sistel.manantiales.SyncActivity$DatabaseSync.doInBackground(SyncActivity.java:165)
02-22 04:48:33.011 3961-3976/com.sistel.manantiales W/System.err﹕ at com.sistel.manantiales.SyncActivity$DatabaseSync.doInBackground(SyncActivity.java:147)
02-22 04:48:33.011 3961-3976/com.sistel.manantiales W/System.err﹕ at android.os.AsyncTask$2.call(AsyncTask.java:287)
02-22 04:48:33.011 3961-3976/com.sistel.manantiales W/System.err﹕ at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:305)
02-22 04:48:33.011 3961-3976/com.sistel.manantiales W/System.err﹕ at java.util.concurrent.FutureTask.run(FutureTask.java:137)
02-22 04:48:33.021 3961-3976/com.sistel.manantiales W/System.err﹕ at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1076)
02-22 04:48:33.021 3961-3976/com.sistel.manantiales W/System.err﹕ at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:569)
02-22 04:48:33.021 3961-3976/com.sistel.manantiales W/System.err﹕ at java.lang.Thread.run(Thread.java:856)
02-22 04:48:33.021 3961-3976/com.sistel.manantiales W/System.err﹕ Caused by: java.net.ConnectException: failed to connect to /10.0.0.7 (port 80) after 15000ms: connect failed: ENETUNREACH (Network is unreachable)
02-22 04:48:33.021 3961-3976/com.sistel.manantiales W/System.err﹕ at libcore.io.IoBridge.connect(IoBridge.java:114)
02-22 04:48:33.031 3961-3976/com.sistel.manantiales W/System.err﹕ at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:192)
02-22 04:48:33.031 3961-3976/com.sistel.manantiales W/System.err﹕ at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:459)
02-22 04:48:33.031 3961-3976/com.sistel.manantiales W/System.err﹕ at java.net.Socket.connect(Socket.java:842)
02-22 04:48:33.031 3961-3976/com.sistel.manantiales W/System.err﹕ at org.apache.http.conn.scheme.PlainSocketFactory.connectSocket(PlainSocketFactory.java:119)
02-22 04:48:33.031 3961-3976/com.sistel.manantiales W/System.err﹕ at org.apache.http.impl.conn.DefaultClientConnectionOperator.openConnection(DefaultClientConnectionOperator.java:144)
02-22 04:48:33.031 3961-3976/com.sistel.manantiales W/System.err﹕ ... 15 more
02-22 04:48:33.041 3961-3976/com.sistel.manantiales W/System.err﹕ Caused by: libcore.io.ErrnoException: connect failed: ENETUNREACH (Network is unreachable)
02-22 04:48:33.081 1216-1467/? V/AudioFlinger﹕ presentationComplete() session 35 complete: framesWritten 940032
02-22 04:48:33.081 1216-1467/? V/AudioFlinger﹕ TrackBase::reset
02-22 04:48:33.091 3961-3976/com.sistel.manantiales W/System.err﹕ at libcore.io.Posix.connect(Native Method)
02-22 04:48:33.091 3961-3964/com.sistel.manantiales D/dalvikvm﹕ GC_CONCURRENT freed 197K, 13% free 7645K/8775K, paused 16ms+16ms, total 54ms
02-22 04:48:33.091 3961-3976/com.sistel.manantiales W/System.err﹕ at libcore.io.BlockGuardOs.connect(BlockGuardOs.java:85)
02-22 04:48:33.091 3961-3976/com.sistel.manantiales W/System.err﹕ at libcore.io.IoBridge.connectErrno(IoBridge.java:144)
02-22 04:48:33.101 3961-3976/com.sistel.manantiales W/System.err﹕ at libcore.io.IoBridge.connect(IoBridge.java:112)
02-22 04:48:33.101 3961-3976/com.sistel.manantiales W/System.err﹕ ... 20 more
02-22 04:48:33.101 1577-1800/? D/PowerManagerService﹕ acquireDVFSLockLocked : type : DVFS_MIN_LIMIT frequency : 999999 uid : 1000 pid : 1577 tag : ActivityManager
02-22 04:48:33.101 1577-1800/? W/ActivityManager﹕ mDVFSLock.acquire()
02-22 04:48:33.141 1577-1800/? D/BatteryStatsImpl﹕ ++++++xy WakeLock start : pid=1577, name=, type=0, tid=1800, pid=1577, pName=null
02-22 04:48:33.161 1577-1588/? D/WindowManager﹕ PhoneWindowManager: focusChangedLw
02-22 04:48:33.161 1577-1588/? D/WindowManager﹕ updateReadingMode
02-22 04:48:33.161 1577-1588/? D/KeyguardViewMediator﹕ setHidden false
02-22 04:48:33.161 1577-1588/? D/WindowManager﹕ mInputFocus is not null.
02-22 04:48:33.161 1577-1588/? D/WindowManager﹕ mInputFocus is not null.
02-22 04:48:33.161 1577-1588/? D/WindowManager﹕ mInputFocus is not null.
02-22 04:48:33.191 3961-3961/com.sistel.manantiales D/AbsListView﹕ Get MotionRecognitionManager
02-22 04:48:33.211 3961-3976/com.sistel.manantiales W/dalvikvm﹕ threadid=11: thread exiting with uncaught exception (group=0x411ba2a0)
02-22 04:48:33.211 1577-1810/? D/WindowManager﹕ mInputFocus is not null.
02-22 04:48:33.211 3961-3976/com.sistel.manantiales E/AndroidRuntime﹕ FATAL EXCEPTION: AsyncTask #1
java.lang.RuntimeException: An error occured while executing doInBackground()
at android.os.AsyncTask$3.done(AsyncTask.java:299)
at java.util.concurrent.FutureTask$Sync.innerSetException(FutureTask.java:273)
at java.util.concurrent.FutureTask.setException(FutureTask.java:124)
at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:307)
at java.util.concurrent.FutureTask.run(FutureTask.java:137)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1076)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:569)
at java.lang.Thread.run(Thread.java:856)
Caused by: java.lang.IllegalArgumentException: HTTP entity may not be null
at org.apache.http.util.EntityUtils.toString(EntityUtils.java:110)
at org.apache.http.util.EntityUtils.toString(EntityUtils.java:146)
at com.sistel.manantiales.SyncActivity$DatabaseSync.updateDatabase(SyncActivity.java:217)
at com.sistel.manantiales.SyncActivity$DatabaseSync.doInBackground(SyncActivity.java:165)
at com.sistel.manantiales.SyncActivity$DatabaseSync.doInBackground(SyncActivity.java:147)
at android.os.AsyncTask$2.call(AsyncTask.java:287)
at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:305)
</code></pre>
<p>And Here is my code:</p>
<pre><code>public class DatabaseSync extends AsyncTask<String, Void, Boolean> {
@Override
protected Boolean doInBackground(String... url) {
try {
clientDataSource.open();
} catch (SQLException e) {
e.printStackTrace();
}
try {
movementDataSource.open();
} catch (SQLException e) {
e.printStackTrace();
}
clientDataSource.deleteAllClients();
updateDatabase(url[0]);
return null;
}
@Override
protected void onPostExecute(Boolean bool) {
super.onPostExecute(bool);
}
public void updateDatabase(String url) {
ArrayList<NameValuePair> nameValuePairs = new ArrayList<NameValuePair>();
nameValuePairs.add(new BasicNameValuePair("Operation", "Download"));
nameValuePairs.add(new BasicNameValuePair("Value", "Download"));
HttpParams httpParams = new BasicHttpParams();
HttpConnectionParams.setConnectionTimeout(httpParams, 15000);
HttpConnectionParams.setSoTimeout(httpParams, 15000);
HttpClient httpClient = new DefaultHttpClient(httpParams);
HttpPost httpPost = new HttpPost(url);
try {
httpPost.setEntity(new UrlEncodedFormEntity(nameValuePairs));
} catch (UnsupportedEncodingException e) {
e.printStackTrace();
}
HttpResponse httpResponse = null;
try {
httpResponse = httpClient.execute(httpPost);
} catch (IOException e) {
e.printStackTrace();
}
HttpEntity httpEntity = null;
try {
httpEntity = httpResponse.getEntity();
}catch (NullPointerException e) {
Intent intent = new Intent(getApplicationContext(), MainActivity.class);
startActivity(intent);
}
String result = "empty";
try {
result = EntityUtils.toString(httpEntity);
} catch (IOException e) {
e.printStackTrace();
}
JSONObject jsonObject = null;
try {
jsonObject = new JSONObject(result);
} catch (JSONException e) {
e.printStackTrace();
}
JSONArray jsonClients = null;
try {
jsonClients = jsonObject.getJSONArray("clients");
} catch (JSONException e) {
e.printStackTrace();
}
long id = 0;
String name;
String address;
String locality;
long bonus = 0;
double price = 0.0;
double prev_balance = 0.0;
double balance = 0.0;
long prev_bottles = 0;
long bottles = 0;
String update_date;
String sync_date;
for(int i = 0; i < jsonClients.length(); i++) {
JSONObject json = null;
try {
json = jsonClients.getJSONObject(i);
String s_id = new String(Base64.decode(json.get("id").toString(),Base64.DEFAULT));
name = new String(Base64.decode(json.get("name").toString(),Base64.DEFAULT));
address = new String(Base64.decode(json.get("address").toString(), Base64.DEFAULT));
locality = new String(Base64.decode(json.get("locality").toString(), Base64.DEFAULT));
String s_bonus = new String(Base64.decode(json.get("bonus").toString(), Base64.DEFAULT));
String s_price = new String(Base64.decode(json.get("price").toString(), Base64.DEFAULT));
String s_prev_balance = new String(Base64.decode(json.get("prev_balance").toString(), Base64.DEFAULT));
String s_balance = new String(Base64.decode(json.get("balance").toString(), Base64.DEFAULT));
String s_prev_bottles = new String(Base64.decode(json.get("prev_bottles").toString(), Base64.DEFAULT));
String s_bottles = new String(Base64.decode(json.get("bottles").toString(), Base64.DEFAULT));
update_date = new String(Base64.decode(json.get("update_date").toString(), Base64.DEFAULT));
sync_date = new String(Base64.decode(json.get("sync_date").toString(), Base64.DEFAULT));
id = Long.parseLong(s_id);
bonus = Long.parseLong(s_bonus);
price = Double.parseDouble(s_price);
prev_balance = Double.parseDouble(s_prev_balance);
balance = Double.parseDouble(s_balance);
prev_bottles = Long.parseLong(s_prev_bottles);
bottles = Long.parseLong(s_bottles);
Client client = new Client(id, name, address, locality, bonus, price,
prev_balance, balance, prev_bottles, bottles, update_date, sync_date);
clientDataSource.insertClient(client);
} catch (JSONException e) {
e.printStackTrace();
}
}
Intent intent = new Intent(getApplicationContext(), MainActivity.class);
startActivity(intent);
}
}
</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 |
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 |
Weekly Discussion: Epistemic Injustice. **Week 2: An Introduction to Epistemic Injustice**
**Forward**
Welcome to the second weekly discussion of the new round of /r/philosophy weekly discussions! For more information, check out the [introduction post](https://www.reddit.com/r/philosophy/comments/3ca82b/introducing_rphilosophy_weekly_discussions_series/) and the [list of upcoming topics](
https://www.reddit.com/r/philosophy/wiki/discussion).
**Introduction**
Since Miranda Fricker published “Epistemic Injustice: Power and the Ethics of Knowing” in 2007, epistemic justice has been one of the hottest issues in academic philosophy. In this post, I will explain what Fricker means by epistemic injustice, and why it is such an interesting and important idea. It's important to mention from the get-go that Fricker's book spawns a pretty massive literature concerning epistemic injustice, and in this post, I'll just be discussing Fricker's initial contribution to the discussion.
**What does “epistemic” mean?**
The first thing we need to square away is what we mean by “epistemic” since it might be a new term for many of our readers. “Epistemic” comes from the ancient Greek word “ἐπιστήμη” or “episteme,” which meant “knowledge” (but occasionally gets translated as “science”). So, “epistemic” simply means “having something or other to do with knowledge.”
So, Fricker’s project in “Epistemic Injustice” is to show, perhaps very surprisingly, that there is a type of injustice that specifically has to do with knowledge. In fact, she describes two: testimonial injustice and hermeneutical injustice.
**Testimonial Injustice: Fricker’s Central Case**
Consider the following example which you may recognize from a well-known novel. In the 1930s, in Alabama, a black man named Tom has been accused of raping a white woman. At court, Tom’s lawyer proves beyond a reasonable doubt that Tom could not have been the culprit (the woman had injuries that could only have been inflicted by a left fist, but Tom cannot use his left arm). Despite this evidence, the (all white) jury finds Tom so uncredible that they find him guilty. When he is examined by the prosecution, the jury finds Tom's every response unbelievable and suspicious. Because Tom is black in 1930s Alabama, the white members of the jury simply will not trust his testimony.
**Testimonial Injustice: A Characterization**
According to Fricker, testimonial injustice is characterized by a “credibility deficit owing to an identity prejudice in the hearer” (28). Let’s unpack this. First, a “credibility deficit” is just what it sounds like – when a person takes me to be less credible than I really am, I am experiencing a credibility deficit. Credibility deficits are usually harmful (though not always), but harm isn’t always injustice. What makes the credibility deficit an *injustice* is when it occurs because of some aspect of my social identity (the “identity prejudice” in our characterization of epistemic injustice). In the above example, Tom suffered from a credibility deficit because he was black. It is important to point out that Fricker believes that not just any aspect of a person’s social identity can lead to “identity prejudice.” It has to be something robust: one useful test is if that aspect of a person’s identity leads to several other (more traditional) forms of injustice as well.
But, you might ask, how is testimonial injustice *epistemic* injustice? Tom suffered for a crime he didn’t commit because people unfairly distrusted him – that’s just regular old injustice. Well, to see how testimonial injustice is a distinct epistemic injustice that piles on top of the regular old injustice, we’ll need to take a brief detour into epistemology (you guessed it – the study of knowledge).
**Epistemology and Reliable Sources**
What is knowledge? One perfectly plausible definition of knowledge is “justified, true belief.” Easy, right?. But, in 1963, Edmund Gettier showed that knowledge could not simply be justified true belief, and in the last 50 years, epistemologists have spent a lot of time and energy trying to come up with a better characterization of knowledge. In 1990, Edward Craig published “Knowledge and the State of Nature” and presented a radical new take on knowledge. His project can be summarized like this: Look, we’ve spent the last 50 years proposing more and more clever definitions of knowledge and finding more and more clever counter-examples to them. We aren’t getting anywhere. Let’s go back to the start. Why did people find the concept of knowledge useful in the first place? If we can answer that question, we’ll be making some progress
Think about it for a second. What *use* is the concept of knowledge? Why would we ever want to say “S knows that p” instead of “S believes that p”? The answer, according to Craig, is that having the concept of knowledge allows us to *identify reliable sources* of information. That was the piece of the puzzle we needed. To know something is to be *treated* as a reliable source of information about it (I *told* you it was radical!). Now, if I am experiencing testimonial injustice, then (by definition) I am not treated a reliable source of information (and I can't be). So, in a very importance sense, I can't be a knower. I can't know things. And THAT is an epistemic harm.
**Hermeneutical Injustice: Fricker’s Central Case**
In the 1960s, an upper-class Republican woman named Wendy reluctantly went to a workshop on women’s medical and sexual issues at MIT. Wendy had had a baby recently, and was experiencing severe depression (not only did she blame herself for her depression, her husband blamed her too). At the workshop, she was introduced to a new concept: postpartum depression. Suddenly, she realized the causes of her depression, and that she was experiencing a real phenomenon that other people experienced as well. Just knowing the concept of post-partum depression changed Wendy’s life. But, this concept wasn't well known because even though the phenomenon was widespread, it just wasn't talked about.
**Hermeneutical Injustice: A Characterization**
Hermeneutical injustice is scary because of the word “hermeneutical.” What we need to know is that “hermeneutical” just means “having to do with interpreting things” – and in our case, “having to do with interpreting our experiences.” The foundational idea is fairly straightforward: having certain concepts helps us interpret our experiences. (Imagine trying to interpret the experience of anger or jealously or being “in the zone” without having a name or concept for it). But, how is this injustice? The answer to this question lies in the fact that a lot of experiences never become concepts that everyone learns. In fact, the concepts that everyone learns are often the concepts of people who are doing pretty well in society – not marginalized people. So, roughly, hermeneutical injustice happens when the reason that a relevant concept doesn’t become part of the collective consciousness is because the concept interprets an experience that is felt primarily by a marginalized group. Because their is no concept for the injustice the person is feeling, the person can't express, understand,or know it (and thus, hermeneutical injustice is epistemic injustice)!
Another useful example of hermeneutical injustice is sexual harassment. Fricker recounts the origin of the concept: at a seminar, Carnita Wood, a 44-year old single-mother explained how she quit her office job at Cornell to escape a married professor who kept grabbing at her, touching himself when she was nearby, and eventually trapped her in an elevator a kissed her against her will. Soon after, every woman in the seminar realized that they had been treated similarly at some point in their lives, but had never told anyone. There is a fascinating anecdote about how some members of that seminar group were later brainstorming about what they were going to call this phenomenon: sexual intimidation, sexual coercion, sexual exploitation on the job - they eventually settled on "sexual harassment." This is a case of hermeneutical injustice because the social forces and pressures at that time severely restricted women's willingness to talk about this phenomenon or to admit that it happened to them, and so the concept couldn't gain common currency.
**Cases and Questions:**
1. Joe Smith is a CEO at ACME products. Recently, he was questioned by Congress over certain unethical business practices at his company. The legislators questioning him refused to trust him. Specifically, they believe that as CEO of ACME, his testimony is self-serving and unreliable. Since being a CEO is part of Smith's social identity, and it is causing him to receive a credibility deficit, Smith believes that he is a victim of testimonial injustice? Is he? Why or why not?
2. As I've explained it, the fact that epistemic injustice is epistemic depends deeply on Craig's account of knowledge. If we don't completely buy Craig's account of knowledge, but instead think instead that a vital component of the *value* of knowledge is that it tends to confer status as a reliable source of information, can we still get an account of epistemic injustice up and running?
3. Agatha lives in 11th century England. She suffer's from Tourette syndrome. Her physical and vocal tics cause her fellow peasants to become deeply suspicious of her, and mistreat her horribly (they think she is demented). Agatha is suffering because the concept of Tourette syndrome is not yet widespread. Is she experiencing hermeneutical injustice? Why or why not?
4. Sam works as a cashier at a large retail store. She is frequently treated poorly and even insulted by customers (without provocation). When she complains to her boss, her boss explains that a smiling face and excellent customer service is part of her job description. After taking a philosophy course, Sam thinks that she has experienced hermeneutical injustice. There is no concept of "employee harassment" (that is, a situation where a customer is unnecessarily rude or insulting to a business employee who is not allowed to defend herself) because business owners (who set the guidelines about how their employees should behave) have lots to gain from the "the customer is always right" attitude, and do not actually have to experience being harassed by customers themselves. Is Sam right? Is this a case of hermeneutical injustice? Why or why not?
5. Can you think of other cases of testimonial or hermeneutical injustice?
| 0non-cybersec
| Reddit |
Does the set of all 3x3 Elementary Matrices form a subspace of M3x3?. <p>Question : Are 3x3 Elementary form matrices closed under addition and scalar multiplication?</p>
<p>Thanks!</p>
| 0non-cybersec
| Stackexchange |
Characterization of bounded geometry - Reference-request. <p>I'm looking for a proof of an equivalence that can e.g. be found in a paper by Shubin 'Spectral theory of elliptic operators on non-compact manifolds' (Appendix A.1.1 below Def. 1.1).</p>
<p>It's about manifolds of bounded geometry, where bounded geometry means here: positive injectivity radius and the curvature tensor and all its covariant derivatives are bounded.</p>
<p>In the paper of Shubin it is written that there are the following equivalent characterizations:
(Let $(M,g)$ always have positive injectivity radius.)</p>
<p>(i) $(M,g)$ is of bounded geometry.</p>
<p>(ii) Let $r>0$ be smaller than the injectivity radius. For any $x,x'\in M$ let $y$ (resp. $y'$) be geodesic normal coordinates around $x$ (resp. $x'$) with an $r$-ball as domain. If the balls of radius $r$ around $x$ and $x'$ have a nonempty intersection, then the transition function $y^{-1}\circ y$ and all its derivatives are uniformly bounded (where uniformly means here independent of $x$ and $x'$.</p>
<p>I know that (i) is equivalent to the following:
(iii) Let $g_{ij}^\alpha$ be the representation of the metric coefficienst on a ball of radius $r$ around $x_\alpha$ with respect to geodesic normal coordinates. Then $g_{ij}^\alpha$ and all its derivatives are unifomrly bounded (where uniformly means independent on $\alpha$).</p>
<p>I can see that (iii) implies (ii) (by looking at the geodesic flow and using Gronwall's inequality). But I have no idea how to get the converse. Is there any reference for the proof? I'm grateful for any idea for the proof as well.</p>
<p>Thank you in advance. </p>
| 0non-cybersec
| Stackexchange |
SCSS-compiler alternatives to LibSass for a node app. <p>Libsass seems to be one of the most popular compilers for SCSS and <a href="http://sass-lang.com/libsass" rel="noreferrer">http://sass-lang.com/libsass</a> lists a wide variety of libsass wrappers for many common programming languages. For a node-app, <a href="https://www.npmjs.com/package/node-sass" rel="noreferrer">node-sass </a> and the corresponding loaders for webpack or gulp seem to be the most obvious choice. Installing and using node-sass however requires both github access and a python 2.7 interpreter and for reasons I don't want to discuss here, I have neither in my production environment. </p>
<ol>
<li>Is there a viable workaround for installing and using node-sass in production environments without github access and python interpreter?</li>
<li>Are there other SCSS - compilers which can be used via webpack or gulp that
don't need Github access and/or an installed python interpreter? </li>
</ol>
| 0non-cybersec
| Stackexchange |
ITAP of the Marrakech markets a few days ago. | 0non-cybersec
| Reddit |
c++ data alignment /member order & inheritance. <p>How do data members get aligned / ordered if inheritance / multiple inheritance is used? Is this compiler specific?</p>
<p>Is there a way to specify in a derived class how the members (including the members from the base class) shall be ordered / aligned?</p>
<p>Thanks!</p>
| 0non-cybersec
| Stackexchange |
Upcoming Kickstarters: June 1st, 2020 | Merchants of the Dark Road | Latte Throwdown | 1822: The Railways of Great Britain – 1822+ | The Whatnot | Cabinet | Die in the Dungeon | 7 Fortunes | Salt & Sail | Quester's Keep | Hellenica: Leaders and Legends. Kickstarters Launching in the next 30 days!
🔹️[This Weeks Video](https://youtu.be/6h30k9wzwJg)
[Bonus Video - CMON Comics](https://www.youtube.com/watch?v=FVsU_CJ4lyk)
**What this is?**
* A curated shortlist of kickstarters launching in the next \~30 days.
* Month and Days are provided to the best of my knowledge.
* Out of respect to the players, I will only mention games that appear to be properly playtested, and in general, have some effort put into their presentation and community presence
**What you can do here?**
1. Enjoy the info! Feel free to check out any that interest you!
2. Let us know which you are excited for!
3. Let me know if I am missing anything!
4. **Feedback welcome**
​
**🌟️ "Launching this Week" Spotlight** 🌟️ (chosen by me) [Merchants of the Dark Road](https://boardgamegeek.com/boardgame/300217/merchants-dark-road)
Atlantis Rising was a lot of fun and the artwork for this looks like a step-up since then. I am interested to see more from this young company and if they have improved in other ways.
**Board** **Games**
|Start|Name|Publisher|KS Page|
|:-|:-|:-|:-|
|6/1/2020|[Quester's Keep](https://boardgamegeek.com/boardgame/310687/questers-keep)|Self-Published|[KS PAGE](https://www.kickstarter.com/projects/dienstnet/questers-keep-a-competitive-rpg-board-game)|
|6/1/2020|[Hellenica: Leaders and Legends](https://boardgamegeek.com/boardgame/295123/hellenica-story-greece-leaders-and-legends)|Mr. B Games||
|6/2/2020|**🌟️** [Merchants of the Dark Road](https://boardgamegeek.com/boardgame/300217/merchants-dark-road)|Elfcreek Games||
|6/2/2020|[Latte Throwdown](https://boardgamegeek.com/boardgame/301541/latte-throwdown)|Analog Game Studios|[KS PAGE](https://www.kickstarter.com/projects/analoggamestudios/latte-throwdown)|
|6/2/2020|[1822: The Railways of Great Britain](https://boardgamegeek.com/boardgame/193867/1822-railways-great-britain)|All Aboard Games||
|6/2/2020|[The Whatnot Cabinet](https://boardgamegeek.com/boardgame/283242/whatnot-cabinet)|Pencil First Games|[KS PAGE](https://www.kickstarter.com/projects/ebaraf/the-whatnot-cabinet?ref=discovery)|
|6/2/2020|[Die in the Dungeon](https://boardgamegeek.com/boardgame/292394/die-dungeon)|FunDaMental Games|[KS PAGE](https://www.kickstarter.com/projects/fundamentalgames/die-in-the-dungeon?ref=discovery)|
|6/2/2020|[7 Fortunes](https://boardgamegeek.com/boardgame/309822/7-fortunes)|Self-Published|[KS PAGE](https://www.kickstarter.com/projects/7fortunes/7-fortunes-greek-mythology-edition)|
|6/2/2020|[Salt & Sail](https://boardgamegeek.com/boardgame/285703/salt-sail)|Kazoodoo Games||
|6/2/2020|[Maztec](https://boardgamegeek.com/boardgame/300022/maztec)|Fresh Creative Games|[KS PAGE](https://www.kickstarter.com/projects/freshcreativegames/maztec-jigsaw)|
|6/9/2020|[Terraforming Mars Deluxe](https://boardgamegeek.com/boardgame/167791/terraforming-mars)|Stronghold Games||
|6/9/2020|[Maximum Apocalypse](https://boardgamegeek.com/boardgame/188547/maximum-apocalypse)|Rock Manor Games|[KS PAGE](https://www.kickstarter.com/projects/mikegnade/maximum-apocalypse-rpg?ref=discovery)|
|6/9/2020|[Canopy](https://boardgamegeek.com/boardgame/295607/canopy)|Weird City Games|[KS PAGE](https://www.kickstarter.com/projects/canopygame/canopy?ref=discovery)|
|6/11/2020|[Trinidad](https://boardgamegeek.com/boardgame/266018/trinidad)|Giochix.it|[KS PAGE](https://www.kickstarter.com/projects/166119889/trinidad?ref=bggforums)|
|6/12/2020|[Shelfie Stacker](https://boardgamegeek.com/geeklist/192002/item/7677504#item7677504)|Arkus Games||
|6/15/2020|Dinosaur 1944|Peterson Games||
|6/15/2020|Monumental: African Empires|Funforge||
|6/16/2020|[SeaRovers](https://boardgamegeek.com/boardgame/25627/searovers)|History In Action Game (The Galactic Attic)|[KS PAGE](https://www.kickstarter.com/projects/vanoverbay/searovers-an-epic-game-of-true-pirate-history-0?ref=bggforums)|
|6/17/2020|[Walls of Scydonia](https://boardgamegeek.com/boardgame/238018/walls-scydonia)|Self Published|[KS PAGE](https://www.kickstarter.com/projects/wallsofscydonia/walls-of-scydonia-skills-strategy-physics-action)|
|6/23/2020|[In Too Deep](https://boardgamegeek.com/boardgame/295681/too-deep)|Burnt Island Games||
|Expected June|[The Shivers](https://boardgamegeek.com/boardgame/287411/shivers)|Self Published|[KS PAGE](https://www.kickstarter.com/projects/1666522852/the-shivers)|
|Expected June|[Defenders of the Realm (2nd Edition)](https://boardgamegeek.com/boardgame/258052/defenders-realm-2nd-edition)|Eagle-Gryphon Games||
|Expected June|[Bloodstone](https://boardgamegeek.com/boardgame/229855/bloodstone)|Druid City Games||
|Expected June|[Monsters on Board](https://boardgamegeek.com/boardgame/293264/monsters-board)|Final Frontier Games||
|Expected June|[Skyrise](https://boardgamegeek.com/boardgame/298231/skyrise)|Roxley||
|Expected June|[Tokyo Sidekick](https://boardgamegeek.com/boardgame/252883/tokyo-sidekick)|Little Future||
|Expected June|[Hybris: Disordered Cosmos ](https://boardgamegeek.com/boardgame/287871/hybris-disordered-cosmos)|Aurora Game Studio||
|Expected June|[Eila and Something Shiny](https://boardgamegeek.com/boardgame/293207/eila-and-something-shiny)|ICE Makes|[KS PAGE](https://www.kickstarter.com/projects/36768726/292832566?ref=bggforums&token=45872229)|
|Was expected this quarter|[Primal: The Awakening](https://boardgamegeek.com/boardgame/303731/primal-awakening)|Reggie Games||
|Was expected this quarter|[Mercado de Lisboa](https://boardgamegeek.com/boardgame/262477/mercado-de-lisboa)|Eagle-Gryphon Games||
​
Tip Jar
I do all this for fun and do not get paid. Consider [Tossing a Coin](https://www.paypal.me/ShelfClutter/1) from time to time if you find this useful.
​
🔹️[Last Week's Post](https://www.reddit.com/r/boardgames/comments/gpry2w/upcoming_kickstarters_may_24th_2020_chai_high_tea/)🔹️[Last Week's Video](https://youtu.be/4nbOCs2rqCA)🔹️ | 0non-cybersec
| Reddit |
Pretty much every submission in this entire gallery belongs here.. | 0non-cybersec
| Reddit |
How can I see log messages when unit testing in PyCharm?. <p>I'm sure this is a simple fix, but I'd like to view log messages in the PyCharm console <em>while running a unit test</em>. The modules I'm testing have their own loggers, and normally I'd set a root logger to catch the debugging messages at a certain level, and pipe the other logs to a file. But I can't figure out how this works with unit tests.</p>
<p>I'm using the unittest2 module, and using PyCharm's automatic test discovery (which probably is based on nose, but I don't know).</p>
<p>I've tried fooling with the run configurations, but there doesn't seem to be a straightforward way to do this.</p>
<p>The PyCharm documentation isn't particularly helpful here either, if any of you work there.</p>
<hr>
<p>In edit: It DOES appear that the console catches critical level log messages. I want to know if there is a way to configure this to catch debug level messages.</p>
<hr>
<p>This post (<a href="https://stackoverflow.com/questions/17806099/pycharm-unit-test-interactive-debug-command-line-doesnt-work">Pycharm unit test interactive debug command line doesn't work</a>) suggests adding the <code>-s</code> option to the build configuration, which does not produce the desired result.</p>
| 0non-cybersec
| Stackexchange |
value of infinite product in expression. <blockquote>
<p>Find the value of the following expression <span class="math-container">$$ \prod^{\infty}_{n=0}\left(1-\frac{1}{2^{3n}}+\frac{1}{2^{6n}}\right)$$</span></p>
</blockquote>
<p>What I tried:</p>
<p>If <span class="math-container">$\frac{1}{2^3}=x$</span>, then we can write expression as </p>
<p><span class="math-container">$$\prod^{\infty}_{n=0}(1-x^n+x^{2n})=(1-1+1)(1-x+x^2)(1-x^2+x^4)(1-x^3+x^6)\cdots$$</span></p>
<p>How do I find that infinite product</p>
| 0non-cybersec
| Stackexchange |
How to return the table using mysql Function. <p>I am using MySQL. I want to return the table using MySQL function. In SQL its working fine but not in MySQL. I attach my partial code</p>
<pre><code> DELIMITER $$
CREATE FUNCTION myFunction() RETURNS @tmptable TABLE (item varchar(20))
BEGIN
insert into @tmptable(item) values('raja')
return
END; $$
</code></pre>
| 0non-cybersec
| Stackexchange |
Change the order of displayed fields of arbitrary command output. <p>How could I change the order of fields from a given command?</p>
<p>As an example take the output of <code>ls -l</code>. By default the file name is displayed as the last field of the output. What could I pipe that output to in order to make the file name the first field shown?</p>
<p>My initial thought was to use the cut command, but regardless of the order in which fields are passed to the -f option they're always outputted in the original order.</p>
<p>Note: I'm only using <code>ls -l</code> as an easy example, but I'd like to find a general purpose idiom that could be used for any command that outputs data in columns. If it could also be applied to delimited data that would be great too.</p>
| 0non-cybersec
| Stackexchange |
How to select only the first 10 rows in my AWK script. <p>I have a large CSV file. Basically what I want to do is display only the first 5 columns (which I can) but I also only want to display the first 10 rows, which is what I can't figure out. Right now this is the .awk file script I have:</p>
<pre><code>"BEGIN {FS = ","}
{print $1", " $2", " $3", " $4", " $5}"
</code></pre>
<p>In Tera Term this is the command I use, which results in the first 5 columns of every row to be displayed:
$awk -f example.awk example.csv</p>
<p>I have tried a couple of ways of using NR<=11 but that keeps coming up with error messages when trying to run on Tera Term.</p>
<p>Please help!</p>
| 0non-cybersec
| Stackexchange |
Xiaomi’s 10,400mAh Power Bank costs just $11. | 0non-cybersec
| Reddit |
What is the difference between the * and the & operators in c programming?. <p>I am just making sure I understand this concept correctly. With the * operator, I make a new variable, which is allocated a place in memory. So as to not unnecessarily duplicate variables and their values, the & operator is used in passing values to methods and such and it actually points to the original instance of the variable, as opposed to making new copies...Is that right? It is obviously a shallow understanding, but I just want to make sure I am not getting them mixed up. Thanks!</p>
| 0non-cybersec
| Stackexchange |
Formal series convergence in deformation quantization and $C^*$-condition. <p>A link between formal series convergence in deformation quantization (strict deformation quantization) and producing $C^*$-algebras instead of mere $*$-algebras (which $(\mathcal{C}^{\infty}(M)[[t]],\star)$ is) after deforming the initial commutative $C^*$-algebra of observables is evoked here: <a href="http://ncatlab.org/nlab/show/C-star+algebraic+deformation+quantization">http://ncatlab.org/nlab/show/C-star+algebraic+deformation+quantization</a></p>
<p>However this is done very briefly and in the language of higher symplectic geometry which I'm not familiar with. </p>
<p>Can anyone give simpler explanations and arguments/theorems justifying the link between convergence and the $C^*$-condition? Or some reference for an introduction?</p>
| 0non-cybersec
| Stackexchange |
Turning a poset into a fully ordered set. <p>Given a poset P and two incomparable elements a and b, can one have two posets P1 where a < b and P2 where b < a, with the other elements comparing the same way if they were comparable before? That is, can an arbitrary order be imposed between incomparable elements of a poset?</p>
<p>(I am aware that imposing one comparison might imply/force a few other previously incomparable elements to compare one way or another by transitivity)</p>
<p>Also can one apply the correct tags for me? I can't seem to find them myself.</p>
<p>EDIT: The new poset must also preserve the preexisting ordering, in addition to the new imposed comparison.</p>
<p>EDIT 2: The posets are finite.</p>
| 0non-cybersec
| Stackexchange |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.