text
stringlengths 3
1.74M
| label
class label 2
classes | source
stringclasses 3
values |
---|---|---|
I Too Was Inspired by that Popular Post.. | 0non-cybersec
| Reddit |
How to get bash to automatically refresh program locations' cache?. <p>I am aware of the bash internal command <code>hash</code> and how one can use <code>hash -d</code> or <code>hash -r</code> to forget remembered locations. Is there a way to instruct <code>bash</code> to automatically do this whenever it gets a "cache miss", i.e. when the remembered location goes away (<code>no such file or directory</code>) <code>bash</code> would clear the remembered location and try again?</p>
| 0non-cybersec
| Stackexchange |
Why am I having WiFi troubles?. <p>I have spent literally the entire day trying to figure out why the WiFi was failing. At first it was just one laptop which had trouble connecting, staying connected etc.</p>
<p>Eventually it led me to renaming the WiFi, giving it a new password, making all devices forget the old one, effectively starting fresh. Now it connects, but while the devices stay connected the wifi is ridiculously slow regardless of the time of day and proximity to the router, and internet access constantly drops out. Wired connections work as well as they possibly can, but the WiFi is so slow.</p>
<p>So I suspected the WiFi has something wrong with it to make all the devices slow, BUT, it's only slow on two of the 3 laptops, the fasted being the only one with an Ethernet port. I ran a speed test and on the 2 slow laptops, one started the test but couldn't finish and the other couldn't even start. The one that I have been plugging the Ethernet cable into runs anywhere from 10/15mbps which is pretty much normal for my place.</p>
<p>Keep in mind all speed tests were done using WiFi only. The only other thing I could think to do was change the channel, and make sure i wasn't using the same one as anyone around me to avoid interference and congestion, but it did nothing.</p>
<p>So my question is, why on two laptops is the WiFi so bad, and why across all devices does it drop out, lose internet and run slow? I have reset all network adaptors on all devices, flushed the DNS in command prompt, tried disabling all antivirus and changed the WiFi channel to no avail. I'm at my wits end here and I would really appreciate some help. </p>
<p>Best performing laptop is a HP, the other two are lenovo. I'm trying to connect to a netgear and before you say it, no I cant try connecting straight to the modem because I have a router/modem combo.</p>
| 0non-cybersec
| Stackexchange |
Developers, there is a special place in hell reserved for you if you override the volume button for your app.. I'm looking at you NitroDesk.
Thank you. That is all. | 0non-cybersec
| Reddit |
Why does scp say "No such file"?. <p>I have a bash script that uses <code>scp</code> to copy a file from my machine to another. The script keeps on exiting after I enter the SSH password with the error:</p>
<pre><code><filename>: No such file or directory
</code></pre>
<p>Yet, in the script, I check the file, and it is just fine. I did <code>set -o verbose
</code> at the beginning and here's what I get at the end of the script:</p>
<pre><code>scp /Volumes/FX4\ HDD/Users/matthewdavies/Downloads/NCIS.S11E01.HDTV.x264-LOL.mp4 [email protected]:"/media/3TB/TV\ Shows/NCIS"
[email protected]'s password:
/Volumes/FX4\ HDD/Users/matthewdavies/Downloads/NCIS.S11E01.HDTV.x264-LOL.mp4: No such file or directory
</code></pre>
<p>So, I tried executing the <code>scp</code> command as outputted and it was fine; it copied. What's going wrong??? </p>
| 0non-cybersec
| Stackexchange |
Install deb Package files in another directory. <p>I am working on a debian package which usually installs in /tftpboot/linux/
This packages is also distributed on UCS (Univention Corporate Server), a debian based server system.</p>
<p>They need these files in another directory (/var/lib/univention-client-boot). How do I adapt the corresponding debian files to make it recognize if the system is UCS and then move the files to the directory, or link these directories during install of this deb file?</p>
| 0non-cybersec
| Stackexchange |
graph component formula and simple graph question. <p>i have questions about the graphs :
the first one is seems to be easier :</p>
<p>1 _ is there any simple graph that its nodes are two times more than its edges ? demonstrate your Answer and if the answer is yes then demonstrate that there is unlimited number of these graphs .</p>
<p>the second one is the hard one i guess </p>
<p>2 _ if G = (V,E) is a Forrest that |V|=v,|E|=e and k is the number of connected component of G . try to find a replation (formula) which connect e , v, k to each other .</p>
<p>i'd be thankful if someone could help me with them .</p>
<p>thanks</p>
| 0non-cybersec
| Stackexchange |
Show that the infinite arithmetic progression $<1,4,7,10...>$ has infinitely many 3 term subsequences in harmonic progression. <p>If <span class="math-container">$a,b,c$</span> are in hp then <span class="math-container">$\dfrac{2ac}{a+c}=b$</span></p>
<p>Let the 3 term subsequence be </p>
<p><span class="math-container">$ 3m+1,3n+1,3p+1 $</span></p>
<p>Substituting in above formula yields</p>
<p><span class="math-container">$6pm-3mn-3pn+m+p -2n = 0$</span></p>
<p>Then what to do further?? QUESTION further asks to prove(not included in title)</p>
<p>that for any two such triples <span class="math-container">$<a_1,a_2,a_3>$</span> and <span class="math-container">$<b_1,b_2,b_3>$</span> in harmonic progression one has <span class="math-container">$\frac{a_1}{b_1}\not = \frac{a_2}{b_2}$</span></p>
| 0non-cybersec
| Stackexchange |
React-redux hooks with TypeScript. <p>I am using <code>react-redux</code> hook <code>useSelector</code> with TypeScript. Is there any support for static typing? Now I have to cast using <code>as</code> keyword.</p>
<pre><code>interface User { age: number }
const selectUser = (state): User => state.user.detail
const MyComponent = () => {
const user1 = useSelector(selectUser)
user1.age = 'This is not number.' // No warning or error.
const user2 = useSelector<User>(selectUser)
user2.age = 'This is not number.' // No warning or error.
const user3 = useSelector(selectUser) as User
user3.age = 'This is not number.' // TS2339 error, but with casting.
}
</code></pre>
| 0non-cybersec
| Stackexchange |
Big iron/Shin Malphur. So, I've recently listened to the song big iron, and there is no way you can convince me that that Ranger's name wasn't Shin Malphur. Or Jaren Ward | 0non-cybersec
| Reddit |
how much of a bad practice is it to use links instead of copy?. <p>Currently my work flow is that for every presentation/paper I'm writing I create a folder with a subdirectory for figures. I want to have a central figures directory, and simply simlink to it whenever I create a folder. Is this considered a bad practice? What should I be aware of?</p>
| 0non-cybersec
| Stackexchange |
Google Analytics - Identifying Bots. <p>I've noticed over the last few days a massive increase in visitors,</p>
<p>The thing is that it seems like a bot:</p>
<ul>
<li>Mozilla compatible user agent</li>
<li>average 0 minutes</li>
<li>100% bounces</li>
</ul>
<p>Is there a way to find out who/where this bot is from?</p>
| 1cybersec
| Stackexchange |
Dynamically adding @property in python. <p>I know that I can dynamically add an instance method to an object by doing something like:</p>
<pre><code>import types
def my_method(self):
# logic of method
# ...
# instance is some instance of some class
instance.my_method = types.MethodType(my_method, instance)
</code></pre>
<p>Later on I can call <code>instance.my_method()</code> and self will be bound correctly and everything works.</p>
<p>Now, my question: how to do the exact same thing to obtain the behavior that decorating the new method with @property would give?</p>
<p>I would guess something like:</p>
<pre><code>instance.my_method = types.MethodType(my_method, instance)
instance.my_method = property(instance.my_method)
</code></pre>
<p>But, doing that <code>instance.my_method</code> returns a property object.</p>
| 0non-cybersec
| Stackexchange |
[Video] Be the hero of your own movie. | 0non-cybersec
| Reddit |
Ladies, is it sexist to have two separate dress codes at work for average and overweight women? Currently dealing with this issue.... I work in a high-endish restaurant (it's more important to look hip verses professional). We have stated in our dress code that no sleeveless shirts, no jeans and t-shirt combos should be worn by any staff member, but summer is here and some female staff have snuck a few sleeveless blouses and dresses without protest from our GM (General Manager) UNLESS the woman is overweight, then she is breaking dress code and gets a talking to. We have overweight male staff who are allowed to dress more "down" than other staff, ex jeans and t-shirt, but never get in trouble. This is definitely an example of sizeism, but is it also considered sexism because it's holding women up to their appearance more than men? I just set up a meeting with my boss's boss to discuss this and other problems dealing with sexism/inappropriate behavior from my GM and I'm a bit nervous! | 0non-cybersec
| Reddit |
AITA for telling my parents that they shouldn’t have had three kids?. I’m (23F) the youngest in my family with two older sisters, A (27F) and M (26F). In general, I’ve always felt my sisters were raised differently than me. They’re only a year and ten months apart, so they were only one grade apart in school and much closer than they were with me growing up. They got to do all the same activities together, hung out with the same friend groups, and got to travel together once they were both in college. However, I was just the ‘little sister’ that they didn’t want around growing up. For instance, I was literally kicked out of the house during M’s 16th birthday because I was still in middle school and they thought it’d be weird if I was there at the party (still had to clean up their mess when the party was over!).
Anyway, my sisters got to do a lot of cool activities that I didn’t get to do when I was growing up. They got to do ice skating, horseback riding lessons, all these cool summer camps, etc. Growing up, all I did was sit at their lessons and wait for them to be over. The only activity I had was tennis for a year and a half before my parents canceled it. When my sisters left for college, my parents kind of checked out and didn’t really care I was still in high school. I was pretty much just doing everything on my own. When they got older, my dad bought A three cars (over the course of 5 years) and my mom bought M a car. When I was old enough to drive, my parents said they didn’t have enough money to buy me a car, so I had to finance my first car. My parents even helped them out with rent during college, car insurance, and any other expense. However, I have been pretty much supporting myself since I was 17.
Today, my sisters are both married with kids. A has two kids and M has one. My mom looks after all the kids while my sisters are working. Meanwhile, I’m in grad school very far away from my family. Anyway, my mom has been complaining how she can’t handle watching 3 kids under the age of 2 at the same time, and has been bugging me to quit school to come help out watching the kids, which pissed me off because it feels like it’s just me revolving my life around my sisters again. She was also pointing out how A has saved up enough money to buy a house which they don’t see me doing at her age cause I haven’t been saving as much as her (A was living at home until 3 months ago and didn’t pay for anything).That’s when I pretty much snapped and told her that maybe if they treated me equally as them financially, then perhaps I’d be buying a house at 27 as well. She started going on about how it was difficult raising 3 kids, and I told her that she shouldn’t have 3 kids if she couldn’t handle it and treat all 3 equally. My mom got really upset and hung up the phone and hasn’t really reached out to me since. I do feel kind of bad now though because they did provide me food and shelter growing up. | 0non-cybersec
| Reddit |
Why is $E(X^2) - 2E(X)E(X) + E(E(X)^2) = E(X^2) - (E(X))^2$?. <p>For a given random variable $X$ and the expected value $E(X)$, my lecture notes claim that</p>
<p>$E(X^2) - 2E(X)E(X) + E(E(X)^2) = E(X^2) - (E(X))^2$.</p>
<p>Now, it seems like $E(X^2)$ is just transfered to the right side such that</p>
<p>$-2E(X)E(X) + E(E(X)^2) = - E(X)^2$,</p>
<p>but I don't see why. We have</p>
<p>$-2E(X)E(X) = -2E(X)^2$, so I guess that</p>
<p>$E(E(X)^2) = E(X)^2$,</p>
<p>but I don't know how to justify that.</p>
| 0non-cybersec
| Stackexchange |
Sci-fi legend Ray Bradbury on God, 'monsters and angels'. | 0non-cybersec
| Reddit |
To prove whether a iid sequence of Bernoulli RV is a Markov chain. <p>Let <span class="math-container">$Y_{n}$</span>, <span class="math-container">$n≥0$</span> be an i.i.d. sequence of Bernoulli <span class="math-container">$(p)$</span> random variables for some fixed <span class="math-container">$p ∈
(0, 1).$</span></p>
<p>Let <span class="math-container">$X_{n} = Y_{n−1} + 2Y_{n}$</span> for <span class="math-container">$n ≥ 1$</span>. Is <span class="math-container">$X_{n}$</span>, <span class="math-container">$n≥1$</span> a Markov chain? If no explain why not. If
yes then determine initial distribution and transition matrix.</p>
<p>I am able to figure out that this is indeed a Markov chain How I did that:</p>
<p><span class="math-container">$X_{n-1} = Y_{n−2} + 2Y_{n-1}$</span></p>
<p><span class="math-container">$X_{n} = Y_{n−1} + 2Y_{n}$</span></p>
<p><span class="math-container">$X_{n+1} = Y_{n} + 2Y_{n+1}$</span></p>
<p><span class="math-container">$X_{n+1}$</span> can only take values of 0,1,2 and 3.</p>
<p>If it is 0 that means <span class="math-container">$Y_{n}, Y_{n+1}$</span> are 0,0</p>
<p>If it is 1 that means <span class="math-container">$Y_{n}, Y_{n+1}$</span> are 1,0</p>
<p>If it is 2 that means <span class="math-container">$Y_{n}, Y_{n+1}$</span> are 0,1</p>
<p>If it is 3 that means <span class="math-container">$Y_{n}, Y_{n+1}$</span> are 1,1</p>
<p>If I know <span class="math-container">$X_{n}$</span> that means I also know <span class="math-container">$Y_{n-1}, Y_{n}$</span> and I don't need any information from <span class="math-container">$X_{n-1}$</span> to calculate <span class="math-container">$X_{n+1}$</span>. Hence, it is a Markov chain.</p>
<p>State-space = <span class="math-container">${0,1,2,3}$</span></p>
<p>I need help with the initial distribution. I kind of know-how the transition matrix will look like but any help is appreciable.</p>
| 0non-cybersec
| Stackexchange |
Woman Gets Life Sentence For 13 Year Old Boy Touching Her Breast. | 0non-cybersec
| Reddit |
Sweden has won the 2017 World Hockey Championship 2-1 in the shootout over Canada.. | 0non-cybersec
| Reddit |
Mr. Garrison. | 0non-cybersec
| Reddit |
When you ask your mom a question, and she salty af so she starts yelling at you for no reaosn.. | 0non-cybersec
| Reddit |
Polynomials close to idempotents in quotient ring of $\Bbb R[x_1,x_2,\dots,x_n]$. <p>Let $S=\Bbb R[x_1,x_2,\dots,x_n]/(x_1^2-x_1,x_2^2-x_2,\dots,x_n^2-x_n)$.</p>
<p>Given $t\in \Bbb N$, what are the polynomials $p\in S$ that satisfy the relation $$p^2=tp$$ modulo $x_i$ and $x_i-1$ for all $i$ (same as evaluation at $x_i\in\{0,1\}$)?</p>
<p>I think finding the result for $t=1$ suffices since:$$p^2=tp\iff\frac{1}{t}p^2=p\iff(\frac{p}{t})^2=\frac{p}{t}\iff q^2=q\mbox{ for some }q\in S.$$</p>
<p>What can the least degree of $p$ be?</p>
<p>Related question: <a href="https://mathoverflow.net/questions/138478/idempotent-polynomials">https://mathoverflow.net/questions/138478/idempotent-polynomials</a> However I am asking only $\mod x_i$ and $\mod (x_i-1)$?</p>
<p>$p=x_1$ suffices as minimal non-constant polynomial idempotent.</p>
| 0non-cybersec
| Stackexchange |
The differential $i∗ : TpS_{2} → TpR_{3 }$ maps $ ∂/∂u|p,∂/∂v|p $ into $TpR_{3}. $ Find $(α_{i}, β_{i}, γ_{i})$. <p><img src="https://i.stack.imgur.com/QMaaI.jpg" alt="enter image description here"></p>
<p>Hi! This was my homework. Prof. sent its answer. But I didnt understand how can this answer be reached? Please can someone explain this? </p>
| 0non-cybersec
| Stackexchange |
Is my proof of $C(a)=G \iff a \in Z(G)$ too simple?. <p>Let $G$ be a group, $a\in G$. Show that $C(a)=G \iff a \in Z(G)$ where $C(a)$ denotes the centralizer of the element $a$ and $Z(G)$ denotes the center of the group.</p>
<p>My proof:</p>
<p>Assume $a \in Z(G)$. Then, $ax=xa, \forall x\in G$ by definition. Since all elements of $G$ commute with $a$, all elements of $G$ are in $C(a)$. Hence, $G\subseteq C(a)$ as sets. Moreover, $C(a) \subseteq G$ by definition. Therefore, $C(a)=G$.</p>
<p>Assume $C(a)=G$. Then, $a$ commutes with every element of $G$. By definition, $a\in Z(G)$.</p>
<p>And the proof is finished. Is this too simple? I feel like this proof is almost trivial.</p>
| 0non-cybersec
| Stackexchange |
Woman demands random commuter give her the pizza he’s holding because she is homeless. | 0non-cybersec
| Reddit |
Wiener process - finding the distribution of $W(s) + W(s+t)$. <p>Suppose <span class="math-container">$W(t)$</span> is a Wiener process (<span class="math-container">$W(0)=0$</span> and for <span class="math-container">$t \le s, (W(s)-W(t))$</span> is a normal distribution with mean <span class="math-container">$0$</span> and variance <span class="math-container">$(s-t)$</span>).</p>
<p>For <span class="math-container">$s,t>0$</span>, I am trying to find the distribution of the random variable <span class="math-container">$X =W(s)+W(s+t)$</span>.</p>
<p>My initial idea was to write <span class="math-container">$X$</span> as <span class="math-container">$W(s+t)-W(s)+2W(s)$</span>. Since <span class="math-container">$W(s+t)-W(s)$</span> has the same distribution as <span class="math-container">$W(t)$</span>, can I write that <span class="math-container">$X$</span> follows the same distribution as <span class="math-container">$W(t)+2W(s)$</span>? </p>
<p>If so, how do I proceed from this point?</p>
| 0non-cybersec
| Stackexchange |
PendingIntent error ( Must be one or more of: PendingIntent.FLAG_ONE_SHOT …..). <p>I am trying to create a PendingIntent in Android. Here is the code</p>
<pre><code>mNotificationIntent = new Intent(getApplicationContent(), MyAlarm.class);
mContentIntent = PendingIntent.getActivity(getApplicationContext(),
0, mNotificationIntent, Intent.FLAG_ACTIVITY_NEW_TASK);
</code></pre>
<p>and I am getting the following error:</p>
<pre><code> Must be one or more of: PendingIntent.FLAG_ONE_shot,PendingIntent.FLAG_NO_CREATE,
PendingIntent.FLAG_UPDATE_CURRENT,
Intent.FILL_IN_ACTION, Intent.FILL_IN_DATA, Intent.FILL_IN_CATEGORIES…..)
</code></pre>
<p>Why is this error showing ? How to resolve this? Please help. Thank you.</p>
| 0non-cybersec
| Stackexchange |
It's like the PoGo national flag.. | 0non-cybersec
| Reddit |
Double integral of $\text{sin}(x)\text{cos}(y)$ bounded by $y=0$, $y=1-x$, $y=1+x$. <p>After simplifying the bounds, I obtained intervals of:</p>
<p>$$ 0 \leq y \leq 1$$ and $$y-1\leq x\leq 1-y$$</p>
<p>So the double integral becomes</p>
<p>$$\int_0^1\int_{y-1}^{1-y}\text{sin}(x)\text{cos}(y) dxdy=\int_0^1-\text{cos}(1-y)\text{cos}(y)-[-\text{cos}(y-1)\text{cos}(y)]dy$$</p>
<p>But $\cos(1-y)=\cos(y-1)$, So</p>
<p>$$\int_0^1-\text{cos}(y-1)\text{cos}(y)+\text{cos}(y-1)\text{cos}(y)dy = \int_0^1 0 dy = 0$$</p>
<p>Is this fine?</p>
| 0non-cybersec
| Stackexchange |
Adjoint representation, standard basis - $\mathfrak{sl}(2)$ and Killing form. <p>Let $L$ be the Lie algebra $\mathfrak{sl}_{2}$ (char ${F}$ $\neq$ 2). </p>
<p>Take as standard basis for $L$ the three matrices: </p>
<p>$x=\begin{pmatrix} 0&1\\0&0\end{pmatrix}, y= \begin{pmatrix} 0&0\\1&0\end{pmatrix}$ and $h=\begin{pmatrix} 1&0\\0&-1\end{pmatrix}$. </p>
<p>When using the adjoint representation, the three matrices become:</p>
<p>$ad_{x}=\begin{pmatrix} 0&-2&0\\0&0&1\\0&0&0\end{pmatrix}, ad_{y}=\begin{pmatrix} 0&0&0\\-1&0&0\\0&2&0\end{pmatrix}$ and $ad_{h}=\begin{pmatrix} 2&0&0\\0&0&0\\0&0&-2\end{pmatrix}$. </p>
<p>Therefore $\kappa$ (the Killing form) has matrix</p>
<p>$\begin{pmatrix} 0&0&4\\0&8&0\\4&0&0\end{pmatrix}$.</p>
<p>Can someone explain how the adjoint and further, the Killing form, are calculated here?</p>
<p>I see now how to calculate the adjoint and the Killing form. </p>
<p>$ad_{x}(x)$ = $[xx -xx] = 0$</p>
<p>$ad_{x}(h) = [xh - hx]$ = $\begin{pmatrix} 0&1\\0&0\end{pmatrix} \times \begin{pmatrix} 1&0\\0&-1\end{pmatrix}$ - $\begin{pmatrix} 1&0\\0&-1\end{pmatrix}\times\begin{pmatrix} 0&1\\0&0\end{pmatrix}$ = $\begin{pmatrix} 0&-2\\0&0\end{pmatrix} = -2x$</p>
<p>$ad_{x}(y) = [xy - yx]$ = $\begin{pmatrix} 0&1\\0&0\end{pmatrix} \times \begin{pmatrix} 0&0\\1&0\end{pmatrix}$ - $\begin{pmatrix} 0&0\\-1&0\end{pmatrix}\times\begin{pmatrix} 0&1\\0&0\end{pmatrix}$ = $\begin{pmatrix} 1&0\\0&-1\end{pmatrix} = h$</p>
<p>Then, these become the three columns of $ad_{x}$. Do the same for $y$ and $h$. </p>
<p>For the Killing form, </p>
<p>$\kappa(x,x) = tr(ad_{x}ad_{x})$<br>
$\kappa(x,h) = tr(ad_{x}ad_{h})$<br>
$\kappa(x,y) = tr(ad_{x}ad_{y})$</p>
<p>$tr(ad_{x}ad_{x}) =tr(\begin{pmatrix} 0&-2&0\\0&0&1\\0&0&0\end{pmatrix}\begin{pmatrix} 0&-2&0\\0&0&1\\0&0&0\end{pmatrix})= tr(\begin{pmatrix} 0&&\\&0&\\&&0\end{pmatrix}) = 0$.</p>
<p>$tr(ad_{x}ad_{h}) =tr(\begin{pmatrix} 0&-2&0\\0&0&1\\0&0&0\end{pmatrix}\begin{pmatrix} 2&0&0\\0&0&0\\0&0&-2\end{pmatrix})= tr(\begin{pmatrix} 0&&\\&0&\\&&0\end{pmatrix}) = 0$.</p>
<p>$tr(ad_{x}ad_{y}) =tr(\begin{pmatrix} 0&-2&0\\0&0&1\\0&0&0\end{pmatrix}\begin{pmatrix} 0&0&0\\-1&0&0\\0&2&0\end{pmatrix})= tr(\begin{pmatrix} 2&&\\&2&\\&&0\end{pmatrix}) = 4$.</p>
<p>Thus, these three entries are the entries for the first row.</p>
<p>Repeat for $h$ and $y$. </p>
| 0non-cybersec
| Stackexchange |
Excel formulas&subtotals. <p>I have this excel sheet and I have to calculate into the G column the sum of sales until a date ( in G1 the sum until 01.10.2015, in G2 until 02.10.2015, G3 until 03.10.2015 and so on). Can I make it easily and maybe automatically, without writing the formula in each cell?</p>
<p><img src="https://i.stack.imgur.com/9zZ7y.png" alt=""></p>
| 0non-cybersec
| Stackexchange |
R- Calculate a count of items over time using start and end dates. <p>I want to calculate a count of items over time using their Start and End dates. </p>
<p>Some sample data</p>
<pre><code>START <- as.Date(c("2014-01-01", "2014-01-02","2014-01-03","2014-01-03"))
END <- as.Date(c("2014-01-04", "2014-01-03","2014-01-03","2014-01-04"))
df <- data.frame(START,END)
df
</code></pre>
<p>gives</p>
<pre><code> START END
1 2014-01-01 2014-01-04
2 2014-01-02 2014-01-03
3 2014-01-03 2014-01-03
4 2014-01-03 2014-01-04
</code></pre>
<p>A table showing a count of these items across time (based on their Start and End times) is as follows: </p>
<pre><code>DATETIME COUNT
2014-01-01 1
2014-01-02 2
2014-01-03 4
2014-01-04 2
</code></pre>
<p>Can this be done using R, especially using dplyr? Many thanks.</p>
| 0non-cybersec
| Stackexchange |
If $e^\lambda$ is an eigenvalue of $e^A$, then $\lambda$ is an eigenvalue of $A$. <p>Let $A$ be an $n\times n$ matrix. I want to show that if $e^\lambda$ is an eigenvalue of $e^A$, then $\lambda$ is an eigenvalue of $A$. </p>
<p>I know the converse is true, but I'm not sure how to go the other way. Our assumption seems to be equating power series to each other, which seem more difficult to work with.</p>
<p>Thanks!</p>
| 0non-cybersec
| Stackexchange |
"How do I swing?". | 0non-cybersec
| Reddit |
AWS Error Message: InvalidInstanceID.NotFound. <p>I'm trying to start a Amazon <a href="http://aws.amazon.com/ec2/" rel="nofollow noreferrer">EC2</a> cloud machine with <code>[startInstance][2]</code> method using aws-sdk in Java. My code is as follows.</p>
<pre><code>public String startInstance(String instanceId) throws Exception {
List<String> instanceIds = new ArrayList<String>();
instanceIds.add(instanceId);
StartInstancesRequest startRequest = new StartInstancesRequest(
instanceIds);
startRequest.setRequestCredentials(getCredentials());
StartInstancesResult startResult = ec2.startInstances(startRequest);
List<InstanceStateChange> stateChangeList = startResult
.getStartingInstances();
log.trace("Starting instance '{}':", instanceId);
// Wait for the instance to be started
return waitForTransitionCompletion(stateChangeList, "running",
instanceId);
}
</code></pre>
<p>When I run the above code, i'm getting the following AWS error:</p>
<pre><code>Status Code: 400, AWS Request ID: e1bd4795-a609-44d1-9e80-43611e80006b, AWS Erro
r Code: InvalidInstanceID.NotFound, AWS Error Message: The instance ID 'i-2b97ac
2f' does not exist
at com.amazonaws.http.AmazonHttpClient.handleErrorResponse(AmazonHttpCli
ent.java:538)
at com.amazonaws.http.AmazonHttpClient.executeHelper(AmazonHttpClient.ja
va:283)
at com.amazonaws.http.AmazonHttpClient.execute(AmazonHttpClient.java:168
)
at com.amazonaws.services.ec2.AmazonEC2Client.invoke(AmazonEC2Client.jav
a:5208)
at com.amazonaws.services.ec2.AmazonEC2Client.startInstances(AmazonEC2Cl
ient.java:2426)
</code></pre>
| 0non-cybersec
| Stackexchange |
Head on train collision video shot from onboard. | 0non-cybersec
| Reddit |
Powerful pictures or plain proceedings?. <p>After tutoring someone about polynomial manipulation, my mind went back to this equivalence:<br>
$(a+b)\times (c+d)=ac+ad+bc+bd$<br>
I realized that, while it can be memorized as it is, it has a very simple geometrical interpretation:<br>
<a href="https://i.stack.imgur.com/lnXmu.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/lnXmu.png" alt="rectangle product"></a><br>
After making a mental note of mentioning this in the future (and feeling a bit guilty for not thinking about it during the session), this other equivalence came to mind:<br>
$(a+b)^3=a^3+3a^2b+3ab^2+b^3$<br>
I realized this too had a similar geometrical interpretation:
<a href="https://i.stack.imgur.com/2d81s.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/2d81s.png" alt="cube cube"></a><br>
So, I had the impulse to dig up old block toys and build the cube, with different sections differently colored.<br>
At this point, I asked myself if bringing the toy cube to the next tutoring session would be a good idea. </p>
<p>I didn't have a similar thought with the first example: the rectangle can be easily drawn with pen and paper, it's an accessible illustration.<br>
The cube, on the other hand, isn't as easy to draw, and not everyone has blocks lying around to mess with. </p>
<p>While I find the cube illustration more elegant and powerful than a plain equivalence to get accustomed to, is there a risk that presenting the cube would create or strengthen a distance between the learner and the subject?<br>
If yes, how can the risk be addressed?<br>
If no, why don't i recall seeing illustrations like these in my textbooks or on the blackboard? </p>
| 0non-cybersec
| Stackexchange |
'Animaniacs' Revival to Reunite the Original Voice Cast, Targeting Fall 2020 Premiere. | 0non-cybersec
| Reddit |
Generating random polygons from a given triangulation of points. <p>Given a <em>triangulation</em> $T$ of a planar set point $S$, we would like to randomly generate a <em>polygon</em> (hamiltonian cycle) $P$.</p>
<p>However, it has been <a href="http://www.math.ias.edu/~avi/PUBLICATIONS/MYPAPERS/W82a/tech298.pdf" rel="nofollow">proved</a> that <strong>Hamiltonian Circuit Problem</strong> on maximal planar graphs is <strong>NP-complete</strong>. </p>
<p>So, I suppose that uniformly random generation of such polygons is hard.</p>
<p>A polygon on $n$ points can be decomposed in $n-2$ triangles. So, the dual graph of a polygon is a tree of $n-2$ nodes. </p>
<p>That implies that if we could count the induced trees of size $k=n-2$ (where $n$ is the size of $S$) on the dual graph of a triangulation (which is a 3-connected cubic planar graph), we could count the hamiltonian cycles of a maximal planar graph (planar point set triangulation). So counting the induced trees of size k on 3-connected cubic planar graph is also NP-complete. </p>
<blockquote>
<p>So my question is. Is there any approximation algorithm (e.g. Markov Chain Monte Carlo) which deals with the counting of <em>hamiltonian cycles of maximal planar set points</em> or <em>the induced trees of size k on 3-connected cubic planar graph</em> ?</p>
</blockquote>
| 0non-cybersec
| Stackexchange |
Conditional formatting custom formula not working in google sheets. <p>custom formula is: <code>"=COUNTIF($B1:$B100,"month")>1."</code></p>
<p>I tried also:</p>
<pre><code>"=COUNTIF($B1:$B100,"month")>1"
=COUNTIF($B1:$B100,"month")>1
="COUNTIF($B1:$B100,"month")>1"
</code></pre>
<p>I know it shouldn't work but I test all that comes to my mind.</p>
<p>I paste this in a cell: <code>=COUNTIF($B1:$B100,"month")>1</code> and returns TRUE.
The formula is working, the conditional formatting isn't.</p>
<p>Any ideas?</p>
| 0non-cybersec
| Stackexchange |
LaTeX won't expand macros in \index. <p>I have what, in some sense, seems like the opposite of a fragile macro problem.</p>
<p>I am working on building an index for a book. I have long index commands I want to re-use and/or easily change without changing them in every instance of the book. I want to use <code>\def</code> or <code>\newcommand</code> to create commands in the preamble and reuse them.</p>
<p>For example, in preamble, I'd like to put something like:</p>
<pre><code>\newcommand{\oGravity}{Sir Isaac Newton!Gravity!As Occult Force}
</code></pre>
<p>This should create a 3-level index entry with "Sir Isaac Newton" on the top line, "Gravity" as a sub-entry, and "As Occult Force" as a sub-sub entry.</p>
<p>Then later anytime I want to have that entry show up, I could just type</p>
<pre><code>\index{\oGravity
</code></pre>
<p>The problem is that when I actually do this the <code>\oGravity</code> is not being expanded, so in the <code>.idx</code> file it just shows up as <code>\oGravity</code>. It is only expanded later by makeindex so that I get "Sir Isaac Newton!Gravity!Occult Force" in the index itself rather than what is intended.</p>
<p>I also tried using <code>\def</code> instead of <code>\newcommand</code> in the hope that using the TeX primitive would make a different. No change. I also tried using a <code>\protect</code> before the command (though it seems to do the reverse of what I want). No help.</p>
<p>MWE below the index shows two entries. The one where the actual string is used generates expected behavior. The other does not.</p>
<pre><code>\documentclass[openright, onecolumn, 11pt]{memoir}
\immediate\write18{makeindex MWE}
\makeindex
\def\oGravity{Sir Isaac Newton!Gravity!As Occult Force}
\checkandfixthelayout
\begin{document}
Page 1 Gravity
\index{\oGravity}
\vfill\eject
Page 2 More gravity
\index{Sir Isaac Newton!Gravity!As Occult Force}
\printindex
\end{document}
</code></pre>
| 0non-cybersec
| Stackexchange |
Php problem of the period of a fraction. <p>Question </p>
<p>A decimal representation of <span class="math-container">$\frac a b$</span> with coprime <span class="math-container">$a$</span>, <span class="math-container">$b$</span> has at most period
<span class="math-container">$b - 1$</span>.</p>
<p>What does the period of this fraction mean?</p>
| 0non-cybersec
| Stackexchange |
Early Bronze Age migration from Sweden to Poland | HeritageDaily. | 0non-cybersec
| Reddit |
Agricultural tariffs: cuts have to be made to feed world population, claims Pascal Lamy – former Director General of WTO. | 0non-cybersec
| Reddit |
Should I use Kotlin data class as JPA entity?. <p>I am developing with Kotlin and JPA recently.
I use Kotlin data class as JPA @Entity class. </p>
<p>But now, There comes some problem with relation </p>
<pre><code>@ManyToOne(fetch = FetchType.LAZY, optional = true)
</code></pre>
<p>The lazy fetching doesn't work with data class.</p>
<p>I have learned that Kotlin data class is default to be 'final' so that Hibernate can't generate proxy for them.</p>
<p>I wonder is this a mistake to use Kotlin data class as JPA @Entity class or there is other ways to make the lazy fetching work properly with data class.</p>
| 0non-cybersec
| Stackexchange |
iOS 11 has a ‘cop button’ to temporarily disable Touch ID. | 1cybersec
| Reddit |
THE PHOTOGRAPHER IS COMPLETELY OBLIVIOUS!!!. | 0non-cybersec
| Reddit |
Sum of cardinals of all intersections: elegant alternative proofs?. <p>I once read the following problem: compute</p>
<p>$$\sum_{A,B\in\mathcal{P}(\Omega)}\operatorname{card}(A\cap B)$$
where $\Omega$ is a set of cardinal $n>0$ and $\mathcal{P}(\Omega)$ the set of the sets of $\Omega$.</p>
<p>At that time, I managed to prove that the sum was equal to $n\,2^{2(n-1)}$ with multiple inductions, which was very tedious.</p>
<p>Some time ago, someone showed a very efficient proof using the indicator function: $$\operatorname{card}(A)=\sum_{\omega\in\Omega} 1_A(\omega)$$
Then,</p>
<p>\begin{align}\sum_{A,B\in\mathcal{P}(\Omega)}\operatorname{card}(A\cap B)&=\sum_{A,B\in\mathcal{P}(\Omega)}\sum_{\omega\in\Omega} 1_A(\omega)1_B(\omega)= \sum_{\omega\in\Omega}\sum_{B\in \mathcal{P}(\Omega)} 1_B(\omega)\Big(\sum_{A\in\mathcal{P}(\Omega)}1_A(\omega)\Big) \\
&=\sum_{\omega\in\Omega} \sum_B 1_B(\omega) 2^{n-1} = \sum_{\omega\in\Omega} 2^{2(n-1)}=n\,2^{2(n-1)}
\end{align}</p>
<p>I think it is hard to beat this proof (in terms of length), but I am curious if anyone here would end up with another proof.</p>
| 0non-cybersec
| Stackexchange |
How does Dress Boots fit into a wardrobe?. Looking to get some thoughts on this:
So I’m trying to learn/understand how dress boots fit into a wardrobe. Some background, personally speaking, I’m usually business casual/basic.
Shoe rotation consist of plain toe blucher, long wingtips, plain white nike sneaker, ll bean duck boots. With dark navy chinos, grey chinos, khaki and dark denim.
With that said, I really don’t understand how dress boot will fit into my closet, or even generally speaking how will it fit into anyone’s closet.
When the weather is bad, the ll bean duck boot is great. For walking, the nike. For walking/wanting to dress up, the blucher and long wing are brilliant.
Obviously know that it is not essential, and theres a lot of ‘ buy what you like the look of’ but looking to get some thoughts/discussion on this.
By dress boot: I’m referring to something that look like these: [http://i1248.photobucket.com/albums/hh489/top_photographer/1.jpg](http://i1248.photobucket.com/albums/hh489/top_photographer/1.jpg)
[http://i.imgur.com/bg2e6M6.jpg](http://i.imgur.com/bg2e6M6.jpg) | 0non-cybersec
| Reddit |
R obtaining rownames date using quantmod. <p>Using quantmod and collecting data from Yahoo.
I am trying to get the dates that are in rownames.
However I am just getting NULL.</p>
<pre><code>library("quantmod")
sp500 <- new.env()
getSymbols("^GSPC", env = sp500, src = "yahoo",
from = as.Date("2008-01-04"), to = Sys.Date())
GSPC <- get("GSPC", envir = sp500)
date1 <- rownames(GSPC)
date1
> NULL
</code></pre>
<p>I would be grateful for your help into getting the rowname dates into a vector.</p>
| 0non-cybersec
| Stackexchange |
Parametric vs Non Parametric. | 0non-cybersec
| Reddit |
MRW I bomb a test that I thought I was prepared for.. | 0non-cybersec
| Reddit |
How to auto-hibernate computer when it overheats?. <p>I'm running Windows 7 on an <a href="http://support.acer.com/product/default.aspx?modelId=1091" rel="nofollow noreferrer">Acer Aspire 4937G</a> and there is this issue that whenever I run too many programs simultaneously, my laptop will auto-shutdown due to overheating.</p>
<p>I was wondering is there anyway to make it auto-hibernate instead of auto-shutdown when it's overheated (to prevent loss of unsaved data due to sudden shutdown)? </p>
| 0non-cybersec
| Stackexchange |
How to sync/backup files whenever change is detected?. <p>I have two partition, one for use and one for backup. So, is there any tool for syncing the folder from first partition to second. Also, the tool should sync immediately whenever a change is made to file or folder. If immediate sync is not possible how do i automate my task, to sync properly
Suppose i have folder mounted <code>/dev/sda6</code> (windows) to <code>window</code> folder and running linux. I want to backup/sync <code>/root/*</code> to <code>/media/window/backup</code> and whenever i add or delete a file or folder in <code>/root/*</code> ,<code>/media/window/backup</code> should be updated.</p>
| 0non-cybersec
| Stackexchange |
node-ffi vs. node extension for accessing existing C++ functionality. <p>I've got some existing C++ code that does numerical processing within a stand-alone C++ application. I now want to use that code within a new node.js application.</p>
<p>Researching how to access C++ code from node.js, two options come up:</p>
<ol>
<li>Write a node.js extension</li>
<li>Use <a href="https://github.com/rbranson/node-ffi">node-ffi</a></li>
</ol>
<p>node-ffi seems like a good option to access existing <em>libraries</em>, but am I right thinking if I use node-ffi I would have to write a C wrapper to make my C++ accessible? (This was the only way I could get a simple test case to work on Windows with Visual Studio).</p>
<p>For my case where my source code is already in C++, not C, what are the considerations in choosing between the two options above?</p>
| 0non-cybersec
| Stackexchange |
A few days ago, while out of town for a funeral, I posted a picture of my giant zucchini. Apparently my boyfriend didn't pay much attention the garden while I was away... I came home last night to this monster.. | 0non-cybersec
| Reddit |
Interesting bug - Entering a random dungeon while in normal scarlet monastery and then leaving the group put me into the DK class hall scenario with nazgrim at level 77.. | 0non-cybersec
| Reddit |
Same game, same computer, same world.. | 0non-cybersec
| Reddit |
Select multiple values in LIKE Operator. <p>I have a SQL query given below, I want to select multiple value using <code>like</code> operator. </p>
<p>Is my Query correct?</p>
<pre><code>SELECT top 1 employee_id, employee_ident, utc_dt, rx_dt
FROM employee
INNER JOIN employee_mdata_history
ON employee.ident=employee_mdata_history.employee_ident
WHERE employee_id like 'emp1%' , 'emp3%'
ORDER BY rx_dt desc
</code></pre>
<p>If not, can anyone correct me?</p>
<p>My table has large amount of data starting with <code>'emp1'</code> and <code>'emp3'</code>.
Can I filter the result by top 3 "emp1" and top 2 "emp3" based on <code>rx_dt</code>? </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 |
Installed SSH but no SSHD found. <p>I'm following <a href="http://www.bogotobogo.com/Hadoop/BigData_hadoop_Install_on_ubuntu_16_04_single_node_cluster.php" rel="noreferrer">this tutorial</a>.</p>
<p>In the section on installing ssh in 16.04 I did:</p>
<pre><code>sudo apt-get install ssh
</code></pre>
<p>I tested ssh with:</p>
<pre><code>which ssh
</code></pre>
<p>It gave me a path indicating that it's working.</p>
<p>But when I tried:</p>
<pre><code>which sshd
</code></pre>
<p>Nothing was produced. No file location no errors nothing?</p>
<p>How can I fix the sshd install?</p>
<hr>
<p>EDIT:</p>
<p>In answer to steeldriver:</p>
<pre><code>$ echo $path
/home/hugh/.sdkman/candidates/java/current/bin:/home/hugh/anaconda3/bin:~/anaconda/bin:~/anaconda/bin:~/anaconda/bin:/home/hugh/bin:/home/hugh/.local/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin
$ dpkg -L openssh-server
dpkg-query: package 'openssh-server' is not installed
Use dpkg --info (= dpkg-deb --info) to examine archive files,
and dpkg --contents (= dpkg-deb --contents) to list their contents.
</code></pre>
<p>I should probably mention that I am running all this on a stand alone machine I don't currently have access to a server. Could that explain the problem?</p>
| 0non-cybersec
| Stackexchange |
What would be a funny thing to say to a surgeon before anesthesia kicks in 5 seconds later?. Edit: Woke up today and this blew up. My surgery will be in about 5 hours, thank you for the ideas. | 0non-cybersec
| Reddit |
Inner Product over real space and complex space. <p>Let $V$ be $n$-dimensional $\mathbb{R}$-vector space with inner product $\langle \,\,,\,\,\rangle_1$. Let $W=V\oplus V$. Then $W$ can be made into a $\mathbb{C}$-vector space by defining addition as usual but scalar multiplication by $(a+ib)(w_1,w_2)=(aw_1-bw_2, aw_2+bw_1)$ where $(w_1,w_2)\in V\oplus V$ (here $w_1$ is in first component $V$, $w_2$ is in second component $V$.)</p>
<p><strong>Question 1.</strong> Is it true that $\langle \,\,,\,\,\rangle_1$ can be extended to an inner product $\langle \,\,,\,\,\rangle_2\colon W\times W\rightarrow \mathbb{R}$? Is the extension unique?</p>
| 0non-cybersec
| Stackexchange |
Why do we need Audit Columns in Database Tables?. <p>I have seen many database designs having following audit columns on all the tables...</p>
<ul>
<li>Created By</li>
<li>Create DateTime</li>
<li>Updated By</li>
<li>Upldated DateTime</li>
</ul>
<p>From one perspective I see tables from the following view...</p>
<ul>
<li>Entity Tables:
<ul>
<li>Good candidate for Audit columns)</li>
</ul></li>
<li>Reference Tables:
<ul>
<li>Audit columns may or may not required. In some case last update information is not at all required because record is never going to be modified.)</li>
</ul></li>
<li>Reference Data Tables
<ul>
<li>Like Country Names, Entity State etc... Audit columns may not required because these information is created only during system installation time, and never going to be changed.</li>
</ul></li>
</ul>
<p>I have seen many designers blindly put all audit columns to all tables, is this practice good, if yes what could be the reason...</p>
<p>I just want to know because to me it seems illogical. It is difficult for me to figure out why do they design their db this way? I am not saying they are wrong or right, just want to know the WHY?</p>
<p>You can also suggest me, if there is an alternative auditing patter or solution available...</p>
<p>Thanks and Regards</p>
| 0non-cybersec
| Stackexchange |
Configuring cisco as VPN client. <p>I need to configure 857W as PPTP client. PPTP is officialy not supported (there is no such protocol in request-dialin group) but it could be enabled with "service internal".
Any way, my questions are not pptp-specific, I believe.</p>
<p>I do the following:
1) Enable vpdn
2) Create vpdn group with request-dialin configuration and initiate-to my VPN server</p>
<p>BTW, can I set domain name here instead of ip?</p>
<p>3) Configure it as pool-member 1</p>
<p>4) configure my dialer 0 interface to: dialer vpdn, dialer-group 1, dialer pool 1, dialer persistent.</p>
<p>What is the diffrerence between dialer pool and dialer in-band? Dialer pool allows On-demand dialing? But if it persistent is not it the same thing?
Anyway, I want my cisco to always connect to VPN regardless interesting traffic.</p>
<p>I also set enc ppp and ppp chap . </p>
<p>My VPN server uses ms-chap-v2, how can i configure cisco to send appropriate login and password? Can "ppp chap" be used? Or I should use "username"?</p>
<p>After all I see debug:</p>
<p>*Mar 22 22:47:02.291: Di0 DDR: Nailing up the Dialer profile [attempt 540]
*Mar 22 22:47:02.291: Di0 DDR: Dialer dialing - persistent dialer profile
*Mar 22 22:47:02.291: Vi2 DDR: Dialing cause Persistent Dialer Profile
*Mar 22 22:47:02.291: Vi2 DDR: Attempting to dial 2672676772
*Mar 22 22:47:02.291: Vi2 DDR: Unable to dial 2672676772.
*Mar 22 22:47:02.291: Vi2 PPP: Phase is DOWN, Setup</p>
<p>As I can see here cisco tries to set up my di 0, that causes it to set up Virtual interface and to "dial" to my server, but dialing failed for some reason. Even PPP failed to start.</p>
<p>But I do not see any vpdn calling debug which is enabled! </p>
<p>What debug info should I enable to understand what has happened?
Is persistent dialer could be used with vpdn?</p>
<p>Thanks.</p>
| 0non-cybersec
| Stackexchange |
Get the currency format for a country that does not have a Locale constant. <p>I want to get the currency format of India, so I need a <code>Locale</code> object for India. But there exists only few a countries that have a <code>Locale</code> constant (a <code>static final Locale</code>), and India is not one of them.</p>
<p>To get the currency symbols for the US and UK, I can do the following:</p>
<pre><code>public void displayCurrencySymbols() {
Currency currency = Currency.getInstance(Locale.US);
System.out.println("United States: " + currency.getSymbol());
currency = Currency.getInstance(Locale.UK);
System.out.println("United Kingdom: " + currency.getSymbol());
}
</code></pre>
<p>That uses the constants <code>Locale.US</code> and <code>Locale.UK</code>. If i want to get the Indian currency format, what can I do?</p>
| 0non-cybersec
| Stackexchange |
What does the "Access IBM" button do on old IBM laptops?. <p>What does the "Access IBM" button do on old IBM laptops?</p>
<p><a href="https://i.stack.imgur.com/jVcTq.jpg" rel="noreferrer"><img src="https://i.stack.imgur.com/jVcTq.jpg" alt="https://i.stack.imgur.com/jVcTq.jpg"></a></p>
<p>What is the function of this key?</p>
| 0non-cybersec
| Stackexchange |
A downside of becoming kind of not-fat: Losing the natural filter of people who don't like fat people. People are nicer to me now which is great but it means *some* of them are the folks who were uncomfortable around a fatty. I really don'w want to deal with the kind of people who are only comfortable around fitter people. It's such a deep character flaw and I LOVED avoiding them so easily before.
Related but not exactly: A dude at the gym saw that someone had brought cookies and commented, "What is this, Lifetime FATness?!?! LULZZZ, " and didn't even glance at me uncomfortably. He thinks I'm part of his world. Ugh. | 0non-cybersec
| Reddit |
Can't able to boot Ubuntu from USB. <p>I am using HP Z400 Workstation with Windows 7. I want to completely move on to Ubuntu. I have made my usb bootable through "Universal-USB-Installer-1.9.6.1" and the computer and boot through USB/FLASH drive but it show a message for a second which says USB drive is booting and then Windows start's normally. I have search on internet but I can't find the solution. Let me know How to boot the Ubuntu from USB drive.</p>
| 0non-cybersec
| Stackexchange |
Another puppy just starting his job. | 0non-cybersec
| Reddit |
How to use spot instance with amazon elastic beanstalk?. <p>I have one infra that use amazon elastic beanstalk to deploy my application.
I need to scale my app adding some spot instances that EB do not support.</p>
<p>So I create a second autoscaling from a launch configuration with spot instances.
The autoscaling use the same load balancer created by beanstalk.</p>
<p>To up instances with the last version of my app, I copy the user data from the original launch configuration (created with beanstalk) to the launch configuration with spot instances (created by me).</p>
<p>This work fine, but:</p>
<ol>
<li><p>how to update spot instances that have come up from the second autoscaling when the beanstalk update instances managed by him with a new version of the app?</p>
</li>
<li><p>is there another way so easy as, and elegant, to use spot instances and enjoy the benefits of beanstalk?</p>
</li>
</ol>
<p><strong>UPDATE</strong></p>
<p>Elastic Beanstalk add support to spot instance since 2019... see:
<a href="https://docs.aws.amazon.com/elasticbeanstalk/latest/relnotes/release-2019-11-25-spot.html" rel="nofollow noreferrer">https://docs.aws.amazon.com/elasticbeanstalk/latest/relnotes/release-2019-11-25-spot.html</a></p>
| 0non-cybersec
| Stackexchange |
How to use spot instance with amazon elastic beanstalk?. <p>I have one infra that use amazon elastic beanstalk to deploy my application.
I need to scale my app adding some spot instances that EB do not support.</p>
<p>So I create a second autoscaling from a launch configuration with spot instances.
The autoscaling use the same load balancer created by beanstalk.</p>
<p>To up instances with the last version of my app, I copy the user data from the original launch configuration (created with beanstalk) to the launch configuration with spot instances (created by me).</p>
<p>This work fine, but:</p>
<ol>
<li><p>how to update spot instances that have come up from the second autoscaling when the beanstalk update instances managed by him with a new version of the app?</p>
</li>
<li><p>is there another way so easy as, and elegant, to use spot instances and enjoy the benefits of beanstalk?</p>
</li>
</ol>
<p><strong>UPDATE</strong></p>
<p>Elastic Beanstalk add support to spot instance since 2019... see:
<a href="https://docs.aws.amazon.com/elasticbeanstalk/latest/relnotes/release-2019-11-25-spot.html" rel="nofollow noreferrer">https://docs.aws.amazon.com/elasticbeanstalk/latest/relnotes/release-2019-11-25-spot.html</a></p>
| 0non-cybersec
| Stackexchange |
Queek's Standard. | 0non-cybersec
| Reddit |
How to use spot instance with amazon elastic beanstalk?. <p>I have one infra that use amazon elastic beanstalk to deploy my application.
I need to scale my app adding some spot instances that EB do not support.</p>
<p>So I create a second autoscaling from a launch configuration with spot instances.
The autoscaling use the same load balancer created by beanstalk.</p>
<p>To up instances with the last version of my app, I copy the user data from the original launch configuration (created with beanstalk) to the launch configuration with spot instances (created by me).</p>
<p>This work fine, but:</p>
<ol>
<li><p>how to update spot instances that have come up from the second autoscaling when the beanstalk update instances managed by him with a new version of the app?</p>
</li>
<li><p>is there another way so easy as, and elegant, to use spot instances and enjoy the benefits of beanstalk?</p>
</li>
</ol>
<p><strong>UPDATE</strong></p>
<p>Elastic Beanstalk add support to spot instance since 2019... see:
<a href="https://docs.aws.amazon.com/elasticbeanstalk/latest/relnotes/release-2019-11-25-spot.html" rel="nofollow noreferrer">https://docs.aws.amazon.com/elasticbeanstalk/latest/relnotes/release-2019-11-25-spot.html</a></p>
| 0non-cybersec
| Stackexchange |
Is it possible to write to s3 via a stream using s3 java sdk. <p>Normally when a file has to be uploaded to s3, it has to first be written to disk, before using something like the TransferManager api to upload to the cloud. This cause data loss if the upload does not finish on time(application goes down and restarts on a different server, etc). So I was wondering if it's possible to write to a stream directly across the network with the required cloud location as the sink.</p>
| 0non-cybersec
| Stackexchange |
Secondary DNS causing problems after AD is shut off. <p>I have two Hyper-V Servers running on a Physical Server namely WideOff-SRV-01 (IP Address 192.168.1.5). The virtual machines are WideOff-AD-01 (192.168.1.9, which is Domain Controller), and WideOff-SQL-01 (192.168.1.12, which is running SQL Server). The Physical server WideOff-SRV-01 is running a file server also. (All the above machines are Windows 2008 R2 Server)
Yesterday I configured Secondary DNS on physical server SRV-01 (which copies everything from Primary DNS of AD-01). But, When I shut down the AD-01 Server, My client computers are taking long to load after log on, I cannot access my shared folders using Domain user. Can anybody point out the issue.</p>
| 0non-cybersec
| Stackexchange |
MvcContrib grid conditional cell formatting based on model value. <p>I need to conditional formatting a cell value based on a boolean value in the model.
I have the column col.For(item => item.Detail);
If item.Unfinished I need to apply some css style
How can I do that?</p>
| 0non-cybersec
| Stackexchange |
Tell Windows 10 firewall to stop prompting me to allow apps access after each reboot. <p>For programs such as: Skype, Chrome, ditto. . . . </p>
<ul>
<li>The Windows 10 firewall It seems that each time I reboot the PC I have to accept a pop up for Windows Firewall to allow the app access. Each time I reboot, I have to do this again when it prompts.</li>
</ul>
<p>Is there a way for me to prevent this from occurring so the Windows Firewall knows that I allow these apps access so I can just use them?</p>
<p><strong>EDIT</strong> screenshot of the alert:
<a href="https://i.stack.imgur.com/rPtrd.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/rPtrd.png" alt="enter image description here"></a></p>
| 0non-cybersec
| Stackexchange |
Orthogonality of Legendre Functions. <p>The Legendre Polynomials satisfy the following orthogonality condition:</p>
<blockquote>
<p>The definite integral of $P(n,x) \cdot P(m,x)$ from $-1$ to $1$ equals $0$, if $m$ is not equal to $n$: $$\int_{-1}^1 P(n,x) \cdot P(m,x) dx = 0. \qquad (m \neq n)$$</p>
</blockquote>
<p>Based on this, I am trying to evaluate the integral from $-1$ to $1$ of $x \cdot P(n-1,x) \cdot P(n,x)$ for some given $n$:
$$\int_{-1}^1 x \cdot P(n-1,\;x) \cdot P(n,x) dx.$$
If I integrate this by parts, letting $x$ be one function and $P(n-1,x) \cdot P(n,x)$ be the other function, then I get zero, but according to my textbook, its value is non-zero. What am I doing wrong?</p>
| 0non-cybersec
| Stackexchange |
What would (or should) you do with Administrator Access to your own mind?. | 0non-cybersec
| Reddit |
Google Messages RCS spotted going live on Simple Mobile, Visible, and Xfinity Mobile. | 0non-cybersec
| Reddit |
My parents did not force me to study as much as Facebook forces me to install messenger. | 0non-cybersec
| Reddit |
this is what nightmares are made of. | 0non-cybersec
| Reddit |
I spotted this guy in Paris helping his pupper cool off in the 40°c heatwave. | 0non-cybersec
| Reddit |
Problem in bibliography with applemac. <p>I have one problem with the bibliography: I need to work on TexMaker with the package inputenc applemac because my supervisor absolutely wants that I use that, but when the bibliography appears, the name of the magazins and of the books are underlined, but I don't want that.
How can I erase the underline ?</p>
<p>This is my preamble, which my supervisor has provided. Do you see anything in there which might account for this:</p>
<pre><code>\documentclass[11pt, leqno, twoside]{article}
\usepackage[french]{babel}
\usepackage[T1]{fontenc}
\usepackage[applemac]{inputenc}% Codage du fichier
\usepackage{amsmath}
\usepackage{amsfonts}
\usepackage{amssymb}
\usepackage{amsthm}
\usepackage{mathrsfs}
\usepackage{euscript}
\usepackage{ulem}
\usepackage{cancel}
\usepackage{array}
\usepackage[dvipsnames]{xcolor}
\usepackage[left=2cm,right=5.5cm,top=1cm,bottom=2cm]{geometry}
\usepackage{stmaryrd}
\usepackage{tikz}
\usepackage{fancyhdr}
\usepackage{setspace}
\pagestyle{fancy}
</code></pre>
<p>Thanks for your answer.</p>
| 0non-cybersec
| Stackexchange |
Cyber attacks ‘could crash trains’. | 1cybersec
| Reddit |
Setting up an apache virtual host with working override. <p>I've been fighting this for many hours now, and I'm very frustrated. Apache just doesn't make sense to me; I'd greatly appreciate any advice. Please read through what I've written, as I've read through dozens of posts and manuals on the subject, and really need specific advice.</p>
<p>I'm trying to accomplish two goals: First, get "Pretty Links" to work on my local Wordpress instance; second, to set up a local domain for the site.</p>
<p>I have a fresh install of Apache 2.4.6 running, and I'll I've done is enable the rewrite and vhost_alias mods.</p>
<p>For the first goal, I understand I need to have AllowOverride set to All. This, I gather, allows .htaccess files within the subsequent directories to alter the apache config. To try one thing at a time, I'm accessing the site from localhost/var/www/dhae/Wordpress (foregoing the domain). I tried altering the 000-default.conf to oblige this: <a href="http://pastebin.com/PwMGF9F2" rel="nofollow noreferrer">http://pastebin.com/PwMGF9F2</a> -- all I added was the section. This didn't work, and neither did changing the AllowOverride to All in the apache2.conf.</p>
<p>I wondered if perhaps I needed something more specific to the directory, so I tried using my second goal to accomplish this. I wrote the dhae.conf: <a href="http://pastebin.com/trwWVFLW" rel="nofollow noreferrer">http://pastebin.com/trwWVFLW</a></p>
<p>I've also added the following line to my HOSTS file:
127.0.0.1 dhae.dev</p>
<p>This hasn't worked either. I've tried virtual host config stuff as much as I could find, and I'm just not having any luck. I'm really at a loss, and I need this to work (especially my first goal), so I can continue my normal work.</p>
<p>Lastly, for the domain, I've checked and NameVirtualHost only exists in the dhae.conf file. It's not anywhere else. I'm familiar with that issue, and it's not happening here.</p>
| 0non-cybersec
| Stackexchange |
The way this thing moves. | 0non-cybersec
| Reddit |
Recylerview not visible inside scrollview or nestedScrollview. <p>I want to place a RecylerView inside NestedScrollView as below</p>
<p>activity_service_menu.xml</p>
<pre><code><android.support.v4.widget.NestedScrollView xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="match_parent">
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="vertical">
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="HELLO" />
<android.support.v7.widget.RecyclerView
android:id="@+id/rv"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_margin="8dp" />
</LinearLayout>
</android.support.v4.widget.NestedScrollView>
</code></pre>
<p>ServiceMenuActivity.java</p>
<pre><code>public class ServiceMenuTActivity extends AppCompatActivity {
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_service_menu_t);
Toolbar toolbar = (Toolbar) findViewById(R.id.toolbar);
setSupportActionBar(toolbar);
RecyclerView rv = (RecyclerView) findViewById(R.id.rv);
rv.setLayoutManager(new LinearLayoutManager(getApplicationContext()));
rv.setHasFixedSize(true);
rv.setAdapter(new RvAdapter());
}
private static class RvAdapter extends RecyclerView.Adapter<RvAdapter.RvHolder> {
@Override
public RvHolder onCreateViewHolder(ViewGroup parent, int viewType) {
View serviceMenuItemView = LayoutInflater.from(parent.getContext()).inflate(R.layout.list_item_service_menu, parent, false);
return new RvHolder(serviceMenuItemView);
}
@Override
public void onBindViewHolder(RvHolder holder, int position) {
}
@Override
public int getItemCount() {
return 100;
}
public static class RvHolder extends RecyclerView.ViewHolder {
public RvHolder(View itemView) {
super(itemView);
}
}
}
}
</code></pre>
<p>I have put the linearLayout inside scrollView and nestedScrollView.
But the RecyclerView is not visible. If I replace ScrollView with FrameLayout or any other layout, then RecyclerView is visible.</p>
<p>I want to use nestedScrollView and scroll the total layout when recyclerView is scrolled. Unfortunately recyclerView is not even visible.</p>
| 0non-cybersec
| Stackexchange |
[WP] - Every year, each race of the realms send their finest marksmen to partake in a grand tournament to remember their victory against the humans of ages past. But this year, a strange short-eared elf has come to join the tournament. And in their hands is a Barrett M82.. | 0non-cybersec
| Reddit |
Position of labels as updated in a beamer slide tikz block. <p>I am having trouble with updating labels of tikz blocks in a beamer presentation. So far I have been using <code>\onslide</code> to update the block size and location from code in <a href="https://tex.stackexchange.com/a/6155/14826">this answer</a>. For the label text, <code>\onslide</code> shifts things up and down (as expected). With <code>\only</code> the label text shifts horizontally a little?</p>
<pre><code>\documentclass[pd,xcolor={dvipsnames}]{beamer}
\usetheme{Frankfurt}
\usepackage[absolute,overlay]{textpos}
\usepackage{tikz}
\usetikzlibrary{shapes,arrows,backgrounds,positioning,patterns}
\tikzset{onslide/.code args={<#1>#2}{%
\only<#1>{\pgfkeysalso{#2}} % \pgfkeysalso doesn't change the path
}}
\begin{document}
\begin{frame}
\centering
\tikzstyle{blocka} = [text width=3.0em, text centered, rectangle, rounded corners, fill, fill=red]
\tikzstyle{every node}=[font=\boldmath,color=white]
\tikzstyle{ann} = [draw=none,fill=white,rounded corners]
\begin{tikzpicture}
\node[blocka,
onslide=<1-2>{minimum height=10.00em},
onslide=<3-4>{minimum height=8.00em},
onslide=<5>{minimum height=7.67em},
onslide=<2-3>{pattern=crosshatch,pattern color=red}] (Aa1) {
\only<1>{$100$}
\only<2-3>{ }
\only<4>{$80$}
\only<5->{$76.7$}
%\onslide<1>{$100$},
%\onslide<2-3>{ },
%\onslide<4>{$80$},
%\onslide<5->{$76.7$};
};
\node[ann, left=0.25em of Aa1.180, color=red, fill=white] {A};
\end{tikzpicture}
\end{frame}
\end{document}
</code></pre>
| 0non-cybersec
| Stackexchange |
Segwit with Multisig. <p>I was analyzing a Bitcoin transaction that works both with Segwit and non-Segwit for multisig Scripts.
Here is the transaction: <a href="https://www.blockchain.com/en/btc/tx/80975cddebaa93aa21a6477c0d050685d6820fa1068a2731db0f39b535cbd369" rel="nofollow noreferrer">https://www.blockchain.com/en/btc/tx/80975cddebaa93aa21a6477c0d050685d6820fa1068a2731db0f39b535cbd369</a></p>
<p>Note that on indexes 0, 1 and 2 we have the unlocking script in the scriptsig filed and on index 3 it is using witness program. No problems until now.</p>
<p>What is bugging me is why when I get the redeem script from indexes 0, 1 and 2 and execute the ripemd60, sha256, create checksum and encode to base58 it generates the Public address as we can see in the screen of blockchain.com. But when I do the very same thing using the redeem script which is in the witness section, it returns to me a completely different address, why is that happening?</p>
<p>Also, what is the scriptSig on the index 3? How it is generated?</p>
<p>Example:</p>
<p>Redeem Script of index 0:</p>
<pre><code>522102194e1b5671daff4edc82ce01589e7179a874f63d6e5157fa0def116acd2c3a522103a043861e123bc67ddcfcd887b167e7ff9d00702d1466524157cf3b28c7aca71b2102a49a62a9470a31ee51824f0ee859b0534a4f555c0e2d7a9d9915d6986bfc200453ae
</code></pre>
<p>The address generated from index 0 using my script:</p>
<pre><code>3JUJgXbB1WpDEJprE8wP8vEXtba36dAYbk
</code></pre>
<p>It is the same as the transaction.</p>
<p>Redeem Script of index 3 (Segwit):</p>
<pre><code>5221021e6617e06bb90f621c3800e8c37ab081a445ae5527f6c5f68a022e7133f9b5fe2103bea1a8ce6369435bb74ff1584a136a7efeebfe4bc320b4d59113c92acd869f38210280631b27700baf7d472483fadfe1c4a7340a458f28bf6bae5d3234312d684c6553ae
</code></pre>
<p>The address generated from index 3 using my script:</p>
<pre><code>36aKiVksQRLKwByBYVz3KwquFcvHZkwroP
</code></pre>
<p>Address from the transaction recovered from blockchain.com</p>
<pre><code>3CYkk3x1XUvdXCdHtRFdjMjp17PuJ8eR8z
</code></pre>
| 0non-cybersec
| Stackexchange |
From one beat to the next. | 0non-cybersec
| Reddit |
How to use spot instance with amazon elastic beanstalk?. <p>I have one infra that use amazon elastic beanstalk to deploy my application.
I need to scale my app adding some spot instances that EB do not support.</p>
<p>So I create a second autoscaling from a launch configuration with spot instances.
The autoscaling use the same load balancer created by beanstalk.</p>
<p>To up instances with the last version of my app, I copy the user data from the original launch configuration (created with beanstalk) to the launch configuration with spot instances (created by me).</p>
<p>This work fine, but:</p>
<ol>
<li><p>how to update spot instances that have come up from the second autoscaling when the beanstalk update instances managed by him with a new version of the app?</p>
</li>
<li><p>is there another way so easy as, and elegant, to use spot instances and enjoy the benefits of beanstalk?</p>
</li>
</ol>
<p><strong>UPDATE</strong></p>
<p>Elastic Beanstalk add support to spot instance since 2019... see:
<a href="https://docs.aws.amazon.com/elasticbeanstalk/latest/relnotes/release-2019-11-25-spot.html" rel="nofollow noreferrer">https://docs.aws.amazon.com/elasticbeanstalk/latest/relnotes/release-2019-11-25-spot.html</a></p>
| 0non-cybersec
| Stackexchange |
Is there a bijection between $[0, \infty)$ and $(0,1)$. <p>I tried $\tan(x)$, and $\log(x)$, but seems it does not work, so I wonder is there a bijection or not?</p>
| 0non-cybersec
| Stackexchange |
How to use spot instance with amazon elastic beanstalk?. <p>I have one infra that use amazon elastic beanstalk to deploy my application.
I need to scale my app adding some spot instances that EB do not support.</p>
<p>So I create a second autoscaling from a launch configuration with spot instances.
The autoscaling use the same load balancer created by beanstalk.</p>
<p>To up instances with the last version of my app, I copy the user data from the original launch configuration (created with beanstalk) to the launch configuration with spot instances (created by me).</p>
<p>This work fine, but:</p>
<ol>
<li><p>how to update spot instances that have come up from the second autoscaling when the beanstalk update instances managed by him with a new version of the app?</p>
</li>
<li><p>is there another way so easy as, and elegant, to use spot instances and enjoy the benefits of beanstalk?</p>
</li>
</ol>
<p><strong>UPDATE</strong></p>
<p>Elastic Beanstalk add support to spot instance since 2019... see:
<a href="https://docs.aws.amazon.com/elasticbeanstalk/latest/relnotes/release-2019-11-25-spot.html" rel="nofollow noreferrer">https://docs.aws.amazon.com/elasticbeanstalk/latest/relnotes/release-2019-11-25-spot.html</a></p>
| 0non-cybersec
| Stackexchange |
How to use debounce on async function?. <p>How can I use <code>debounce</code> on an <code>async</code> function? I have a method within my <code>vue</code>-app which reveives data from an API which calls the API continuosly which I want to avoid.</p>
<p>Here is my method:</p>
<pre><code>methods: {
async getAlbums () {
const response = await AlbumService.fetchAlbums()
this.albums = response.data.albums
}
}
</code></pre>
<p>I've installed <code>lodash</code> previously so how can I achieve that?</p>
| 0non-cybersec
| Stackexchange |
CentOS 6.4 [postfix+dovecot] Can send external mail but CANT receive. <p>Im trying to set up a mail server with postfix, dovecot and roundcube/thunderbird on a centos 6.4 VPS where my weberver is hosted...
I have this situation:
I can send and receive internal mails ok.
I can send external mails ok.
But i <strong>cant</strong> receive external mails.</p>
<p>Thats my configuration, please help me to find whats wrong.</p>
<p>postconf -n</p>
<pre><code>[root@server ~]# postconf -n
alias_database = hash:/etc/aliases
alias_maps = hash:/etc/aliases
append_dot_mydomain = no
broken_sasl_auth_clients = yes
command_directory = /usr/sbin
config_directory = /etc/postfix
daemon_directory = /usr/libexec/postfix
data_directory = /var/lib/postfix
debug_peer_level = 2
home_mailbox = Maildir/
html_directory = no
inet_interfaces = all
inet_protocols = all
mailbox_command =
mailq_path = /usr/bin/mailq.postfix
manpage_directory = /usr/share/man
mydestination = mail.dvdplaza.org, dvdplaza.org, localhost
mydomain = dvdplaza.org
myorigin = $mydomain
newaliases_path = /usr/bin/newaliases.postfix
readme_directory = /usr/share/doc/postfix-2.6.6/README_FILES
relay_domains = $mydestination, dvdplaza.org
sample_directory = /usr/share/doc/postfix-2.6.6/samples
sendmail_path = /usr/sbin/sendmail.postfix
setgid_group = postdrop
smtp_tls_note_starttls_offer = yes
smtp_use_tls = yes
smtpd_recipient_restrictions = permit_mynetworks permit_inet_interfaces permit_sasl_authenticated permit_mx_backup
smtpd_sasl_auth_enable = yes
smtpd_sasl_local_domain =
smtpd_sasl_type = cyrus
smtpd_tls_CAfile = /etc/postfix/ssl/cacert.pem
smtpd_tls_cert_file = /etc/postfix/ssl/smtpd.crt
smtpd_tls_key_file = /etc/postfix/ssl/smtpd.key
smtpd_tls_loglevel = 1
smtpd_tls_received_header = yes
smtpd_tls_session_cache_timeout = 3600s
smtpd_use_tls = yes
tls_random_source = dev:/dev/urandom
unknown_local_recipient_reject_code = 550
</code></pre>
<p>hostname, mailname and hosts</p>
<pre><code>[root@server ~]# tail /etc/hostname
#vmi15086.contabo.net
server.dvdplaza.org
#mail.dvdplaza.org
[root@server ~]# tail /etc/mailname
#vmi15086.contabo.net
mail.dvdplaza.org
[root@server ~]# tail /etc/hosts
127.0.0.1 dvdplaza.org server localhost localhost.localdomain
::1 localhost.localdomain localhost6 localhost server
#193.37.152.191 vmi15086.contabo.net vmi15086 server
193.37.152.191 dvdplaza.org server
#193.37.152.191 mail.dvdplaza.org mail
</code></pre>
<p>Here an analisys of my dns, it shows a SOA problem, i dont know if this SOA problem is related to the external mails are not being received, is it?</p>
<p><a href="http://dnscheck.pingdom.com/?domain=dvdplaza.org&timestamp=1373033981&view=1" rel="nofollow noreferrer">http://dnscheck.pingdom.com/?domain=dvdplaza.org&timestamp=1373033981&view=1</a></p>
<p>When i send a test mail from gmail to my server usually after some hours the email return to gmail reporting:</p>
<pre><code>This is an automatically generated Delivery Status Notification
THIS IS A WARNING MESSAGE ONLY.
YOU DO NOT NEED TO RESEND YOUR MESSAGE.
Delivery to the following recipient has been delayed:
[email protected]
Message will be retried for 2 more day(s)
Technical details of temporary failure:
The recipient server did not accept our requests to connect. Learn more at http://support.google.com/mail/bin/answer.py?answer=7720
[(10) mail.dvdplaza.org. [193.37.152.191]:25: Connection timed out]
----- Original message -----
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
d=gmail.com; s=20120113;
h=mime-version:in-reply-to:references:date:message-id:subject:from:to
:content-type;
bh=fs5BZXsmeKZqyvz3lvwzDvtNXXhjQV7YMmXk8eqya6w=;
b=LrOy9McpY2N+d5D8/LfclSSEQmc7tw+8z4U6aMediQ/P/UcOLuRc/7fcnINB3owUYG
/QQPUkiFidvYfGITavd0GP9WsaJ768UKFh8vDfrpkjzmgMVezOV5Mvc5cgmtqv6egWaj
ySlq30TL5NTdep3oalJ9bbS6h+hQSzLfNiVdZHyzMzzUGi+obctncvSdrmYY/gV713ug
/jLxYuTb1XZ9hSeIlvJKXZXaQ/oVqfdipXgTGNYdcYJnF+WoxFNPJqaBB562yxe9VGCx
ixKTyb49BZ30WMc3nACHfVqsWFHwGDeoEDcfHUykvoKTzotATVdgyVCcUr7msNDjrbUN
Lddg==
MIME-Version: 1.0
X-Received: by 10.180.80.6 with SMTP id n6mr19727998wix.59.1372893611365; Wed,
03 Jul 2013 16:20:11 -0700 (PDT)
Received: by 10.194.122.165 with HTTP; Wed, 3 Jul 2013 16:20:11 -0700 (PDT)
In-Reply-To: <CAPSKjGdzZhsfxPgXykCyT6d3gzx4=DjpOBGiZEt5kjWNNNWHmQ@mail.gmail.com>
References: <[email protected]>
<CAPSKjGdzZhsfxPgXykCyT6d3gzx4=DjpOBGiZEt5kjWNNNWHmQ@mail.gmail.com>
Date: Wed, 3 Jul 2013 20:20:11 -0300
Message-ID: <CAPSKjGcNrgo-bKbih6xmjTOh5O1UYnaThjtOvhSGVD_rw+2V_A@mail.gmail.com>
Subject: Re: Test message from Roundcube
From: frytec <[email protected]>
To: [email protected]
Content-Type: multipart/alternative; boundary=14dae9cc955c0519ac04e0a3b46c
</code></pre>
<p>edit</p>
<p>[root@server ~]# iptables -L INPUT -v -n</p>
<pre><code>Chain INPUT (policy DROP 0 packets, 0 bytes)
pkts bytes target prot opt in out source destination
0 0 ACCEPT tcp -- !lo * 8.8.4.4 0.0.0.0/0 tcp dpt:53
0 0 ACCEPT udp -- !lo * 8.8.4.4 0.0.0.0/0 udp dpt:53
0 0 ACCEPT tcp -- !lo * 8.8.4.4 0.0.0.0/0 tcp spt:53
2 142 ACCEPT udp -- !lo * 8.8.4.4 0.0.0.0/0 udp spt:53
0 0 ACCEPT tcp -- !lo * 8.8.8.8 0.0.0.0/0 tcp dpt:53
0 0 ACCEPT udp -- !lo * 8.8.8.8 0.0.0.0/0 udp dpt:53
0 0 ACCEPT tcp -- !lo * 8.8.8.8 0.0.0.0/0 tcp spt:53
133 14101 ACCEPT udp -- !lo * 8.8.8.8 0.0.0.0/0 udp spt:53
374K 34M LOCALINPUT all -- !lo * 0.0.0.0/0 0.0.0.0/0
6534 1094K ACCEPT all -- lo * 0.0.0.0/0 0.0.0.0/0
120K 5585K INVALID tcp -- !lo * 0.0.0.0/0 0.0.0.0/0
286K 18M ACCEPT all -- !lo * 0.0.0.0/0 0.0.0.0/0 state RELATED,ESTABLISHED
17 964 ACCEPT tcp -- !lo * 0.0.0.0/0 0.0.0.0/0 state NEW tcp dpt:21
2 104 ACCEPT tcp -- !lo * 0.0.0.0/0 0.0.0.0/0 state NEW tcp dpt:22
5 284 ACCEPT tcp -- !lo * 0.0.0.0/0 0.0.0.0/0 state NEW tcp dpt:9091
49 2548 ACCEPT tcp -- !lo * 0.0.0.0/0 0.0.0.0/0 state NEW tcp dpt:51413
30 1352 ACCEPT tcp -- !lo * 0.0.0.0/0 0.0.0.0/0 state NEW tcp dpts:30000:35000
0 0 ACCEPT udp -- !lo * 0.0.0.0/0 0.0.0.0/0 state NEW udp dpt:20
0 0 ACCEPT udp -- !lo * 0.0.0.0/0 0.0.0.0/0 state NEW udp dpt:21
61759 7853K ACCEPT udp -- !lo * 0.0.0.0/0 0.0.0.0/0 state NEW udp dpt:51413
8 860 ACCEPT icmp -- !lo * 0.0.0.0/0 0.0.0.0/0 icmp type 8 limit: avg 1/sec burst 5
0 0 ACCEPT icmp -- !lo * 0.0.0.0/0 0.0.0.0/0 icmp type 0 limit: avg 1/sec burst 5
0 0 ACCEPT icmp -- !lo * 0.0.0.0/0 0.0.0.0/0 icmp type 11
3 634 ACCEPT icmp -- !lo * 0.0.0.0/0 0.0.0.0/0 icmp type 3
2982 308K LOGDROPIN all -- !lo * 0.0.0.0/0 0.0.0.0/0
</code></pre>
<p>[root@server ~]# netstat -lanp | grep 25</p>
<pre><code>tcp 0 0 0.0.0.0:25 0.0.0.0:* LISTEN 1561/master
tcp 0 0 :::25 :::* LISTEN 1561/master
udp 0 0 2a02:c200:0:10:250:56f:51413 :::* 1092/transmission-d
unix 2 [ ACC ] STREAM LISTENING 9925 1561/master public/flush
</code></pre>
<p>Update: New status on mxtoolbox</p>
<pre><code> SMTP Reverse Banner Check OK - 193.37.152.191 resolves to ip-191-152-37-193.static.contabo.net
SMTP Reverse DNS Mismatch Warning - Reverse DNS does not match SMTP Banner Ignore
SMTP TLS Warning - Does not support TLS. Ignore
SMTP Connection Time 0 seconds - Good on Connection time
SMTP Open Relay OK - Not an open relay.
SMTP Transaction Time 15.152 seconds - Not good! on Transaction Time Ignore
Session Transcript:
SendSMTPCommand: Timeout waiting for response after 15 seconds.
MXTB-PWS3v2 16335ms
</code></pre>
| 0non-cybersec
| Stackexchange |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.