text
stringlengths 3
1.74M
| label
class label 2
classes | source
stringclasses 3
values |
---|---|---|
Right align text in table. <pre><code> \begin{center}
\begin{tabular}{|p{3.35cm}||p{5cm}|l|}
\hline
\thead{Område} & \thead{Positive konsekvenser} & \thead{Negative konsekvenser} \\
\hline \hline
\textbf{Arbejdsfordeling} & Et nyt slags produkt giver næsten altid ny arbejdskraft & \\
\hline
\textbf{Infrastruktur} & & \\
\hline
\textbf{De fysiske ressourcer} & & \\
\hline
\textbf{Den offentlige sektor} & & \\
\hline
\textbf{NGO'er} & & \\
\hline
\textbf{Befolkningens levevilkår} & & \\
\hline
\end{tabular}
\end{center}
</code></pre>
<p>And it produces this output:</p>
<p><img src="https://i.stack.imgur.com/CpAH4.jpg" alt="Table"></p>
<p>How do I get the text in the left column aligned like the middle column row 2? I use the {p{xcm}} command but i don't know how to align it as with "c", "l" and "r".</p>
| 0non-cybersec
| Stackexchange |
Wait for the plot twist. | 0non-cybersec
| Reddit |
Quickly trying different colours in the GIMP. <p>Currently I've got the "Change foreground colour" dialog open and whenever I change the colour I need to click inside the selection to activate the Bucket Fill. Is there a better way? ;)</p>
| 0non-cybersec
| Stackexchange |
Three touching circles inscribed in a rectangle. <p>'Three equal circles, with radius r, are inscribed in a rectangle in a way that all three of them touch each other only once. Find the area of rectangle.' <br/>The thing i can't understand is that the arrangement of circles seem limitless to me, do they need to be touching the sides of the rectangle 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 |
Can't send raw transaction. Bitcoind error: {"code":-22,"message":"TX rejected"}. <p>I have this raw transaction:</p>
<p>01000000024ae83382c185ba9a2fcaf0092bed4e8f74d31ca8eb234513c308b615fb9e3e3a000000006b48304502203ac946b370ecb43a32c3bf67598ca3ddc9818cb9efd0c6a6e68aca6e20d95b06022100841f3eed93cb955f9e1cbd26d23da3b80866872852ec5920d6ff794bd218bee40121035dea6c0ecb52807e2b7a9864c3212451e836eb0fd7cc6ba3369748825e2606f9ffffffffa3d6dc0d21402967de9431fde06d6b1cb458260d7852038035a79ec7554efcd9000000006b4830450220644bbf5a711243f679655e7ce7c193a8dde5fd110252dfdb4dd2d05d21e1b0a4022100a22c656b1e897bac71bf2d89e385eda4bdade16ca04957537fc73f903cb614d001210395676e88fe9ae950d40915df040a3610e1f42368f4a842692c24b29fd9d78a7bffffffff0330750000000000001976a9143fcf3750b81fad1cd27bae9c34feeefc278360ee88acbc0d0000000000001976a91483c1b13e99ccfc66405ef2ecb76deefca165097588ac204e0000000000001976a9147e69b1309dde4be2e39e1956ace0fa95db0d01b488ac00000000</p>
<p>It signed and ready to go</p>
<pre><code>{
"txid" : "adae77fd1c5cc3ae4429217ea0d84e67ac6f198543374356cc531350b3ad217b",
"version" : 1,
"locktime" : 0,
"vin" : [
{
"txid" : "3a3e9efb15b608c3134523eba81cd3748f4eed2b09f0ca2f9aba85c18233e84a",
"vout" : 0,
"scriptSig" : {
"asm" : "304502203ac946b370ecb43a32c3bf67598ca3ddc9818cb9efd0c6a6e68aca6e20d95b06022100841f3eed93cb955f9e1cbd26d23da3b80866872852ec5920d6ff794bd218bee401 035dea6c0ecb52807e2b7a9864c3212451e836eb0fd7cc6ba3369748825e2606f9",
"hex" : "48304502203ac946b370ecb43a32c3bf67598ca3ddc9818cb9efd0c6a6e68aca6e20d95b06022100841f3eed93cb955f9e1cbd26d23da3b80866872852ec5920d6ff794bd218bee40121035dea6c0ecb52807e2b7a9864c3212451e836eb0fd7cc6ba3369748825e2606f9"
},
"sequence" : 4294967295
},
{
"txid" : "d9fc4e55c79ea735800352780d2658b41c6b6de0fd3194de672940210ddcd6a3",
"vout" : 0,
"scriptSig" : {
"asm" : "30450220644bbf5a711243f679655e7ce7c193a8dde5fd110252dfdb4dd2d05d21e1b0a4022100a22c656b1e897bac71bf2d89e385eda4bdade16ca04957537fc73f903cb614d001 0395676e88fe9ae950d40915df040a3610e1f42368f4a842692c24b29fd9d78a7b",
"hex" : "4830450220644bbf5a711243f679655e7ce7c193a8dde5fd110252dfdb4dd2d05d21e1b0a4022100a22c656b1e897bac71bf2d89e385eda4bdade16ca04957537fc73f903cb614d001210395676e88fe9ae950d40915df040a3610e1f42368f4a842692c24b29fd9d78a7b"
},
"sequence" : 4294967295
}
],
"vout" : [
{
"value" : 0.00030000,
"n" : 0,
"scriptPubKey" : {
"asm" : "OP_DUP OP_HASH160 3fcf3750b81fad1cd27bae9c34feeefc278360ee OP_EQUALVERIFY OP_CHECKSIG",
"hex" : "76a9143fcf3750b81fad1cd27bae9c34feeefc278360ee88ac",
"reqSigs" : 1,
"type" : "pubkeyhash",
"addresses" : [
"16pPoiDcGU8P9PcqBqnZGc6SJqeuyLEDEX"
]
}
},
{
"value" : 0.00003516,
"n" : 1,
"scriptPubKey" : {
"asm" : "OP_DUP OP_HASH160 83c1b13e99ccfc66405ef2ecb76deefca1650975 OP_EQUALVERIFY OP_CHECKSIG",
"hex" : "76a91483c1b13e99ccfc66405ef2ecb76deefca165097588ac",
"reqSigs" : 1,
"type" : "pubkeyhash",
"addresses" : [
"1D1fZ7SPBtDZ4iVy9Ut5Dg5rv7PChc6PHv"
]
}
},
{
"value" : 0.00020000,
"n" : 2,
"scriptPubKey" : {
"asm" : "OP_DUP OP_HASH160 7e69b1309dde4be2e39e1956ace0fa95db0d01b4 OP_EQUALVERIFY OP_CHECKSIG",
"hex" : "76a9147e69b1309dde4be2e39e1956ace0fa95db0d01b488ac",
"reqSigs" : 1,
"type" : "pubkeyhash",
"addresses" : [
"1CXQknoy7hvc4sVnQxCL2LnGZQ6C8H4yU8"
]
}
}
]
}
</code></pre>
<p>But when I try to broadcast it to blockchain through sendrawtransaction it doesn't work: error: {"code":-22,"message":"TX rejected"}</p>
<p>Why? What's wrong with transaction? If you take a look on inputs and outputs you can see everything is look correct. I really don't understand why...</p>
<p>Please advise how to fix it and make it works.</p>
<p><strong>Update:</strong> Wait a minute! I just found this post <a href="https://bitcoin.stackexchange.com/questions/14244/why-is-a-transaction-with-outputs-of-less-than-0-00005460-rejected?rq=1">Why is a transaction with outputs of less than ฿0.00005460 rejected?</a> ... It means if my change below then some "dust" value in BTC I can't send it???</p>
<p>But this is not dust. This is my change!</p>
<p>So how to keep my change less then 5460 satoshis? What is solution?</p>
| 0non-cybersec
| Stackexchange |
Random number generation in MVC applications. <p>What is the correct way of generating random numbers in an ASP.NET MVC application if I need exactly one number per request? According to MSDN, in order to get randomness of sufficient quality, it is necessary to generate multiple numbers using a single System.Random object, created once. Since a new instance of a controller class is created for each request in MVC, I cannot use a private field initialized in the controller's constructor for the Random object. So in what part of the MVC app should I create and store the Random object? Currently I store it in a static field of the controller class and lazily initialize it in the action method that uses it:</p>
<pre><code>public class HomeController : Controller
{
...
private static Random random;
...
public ActionResult Download()
{
...
if (random == null)
random = new Random();
...
}
}
</code></pre>
<p>Since the "random" field can be accessed by multiple instances of the controller class, is it possible for its value to become corrupted if two instances attempt to initialize it simultaneously? And one more question: I know that the lifetime of statics is the lifetime of the application, but in case of an MVC app what is it? Is it from IIS startup till IIS shutdown?</p>
| 0non-cybersec
| Stackexchange |
Benoit Mandelbrot, Mathematician, Dies at 85 . | 0non-cybersec
| Reddit |
Prove that orthogonal matrix $Q$ preserves operator norm i.e. $||AQ||_2 = ||A||_2$. <p><a href="https://math.stackexchange.com/questions/1754712/orthogonal-matrix-norm">This question</a> proves that $||QA||_2 = ||A||_2$:</p>
<p>$||QA||_2 = \sup_{||x||=1}{||QAx||}=\sup_{||x||=1}{\sqrt{(QAx)^T(QAx)}} =
\sup_{||x||=1}{\sqrt{x^TA^TQ^TQAx|}} = sup_{||x||=1}{\sqrt{x^TA^TAx}} = ||A||_2$</p>
<p>How to prove it for $||AQ||_2$ too?</p>
| 0non-cybersec
| Stackexchange |
Mad lad mod locks the comments. | 0non-cybersec
| Reddit |
How to prevent from memcpy, cause Heap Overlflow?. <p>I'm following Stanford CS155 security lesson's presentation to learn integer overflow. I learned today that memcpy() function may lead to overflow.
The presentation says, If I have a code something like below, <strong>second memcpy() function may overflow heap</strong>. </p>
<pre><code>void func( char *buf1, *buf2, unsigned int len1, len2) {
char temp[256];
if (len1 + len2 > 256) {return -1} // length check
memcpy(temp, buf1, len1); // cat buffers
memcpy(temp+len1, buf2, len2);
do-something(temp); // do stuff
}
</code></pre>
<p>How can I prevent overflow? What should I change in <code>memcpy()</code> so that it will not cause an overflow?</p>
| 1cybersec
| Stackexchange |
My sleeping pup. That is all. . | 0non-cybersec
| Reddit |
Magic Kingdom light show and fireworks at Disney World. | 0non-cybersec
| Reddit |
How to use proxy to filter data from particular IP?. <p>I am running an online game for kids but lately I have been experiencing attacks from some vile individuals who just like ruining it. I assume (based on Windows log) that they connect hundreds time with resending the packets so the server runs out of tcp connection slots. The server (software for that game) disconnects these unassigned connections after like 5 seconds, but recieving thousands of messages, it gets jammed.
My only idea is - could a proxy (HW or SW) be used for filtering incoming traffic from particular IP? So these data would never reach the server.
Thanks</p>
| 0non-cybersec
| Stackexchange |
Unsaved TeX file lost after TeXStudio crash. <p>I was compiling a TeX file and I forgot to save it, I executed several times before TeXStudio crashes and I could not find my document anymore, both <code>.tex</code> or PDF version. Any chances I can recover my file :( </p>
| 0non-cybersec
| Stackexchange |
Windows 7 setup doesn't see hard drive. <p>I have a blank hard drive which I am trying to install Windows 7 on.</p>
<p>The BIOS can see the drive is connected but when I go through the Windows setup it doesn't detect the drive.</p>
<p>If I load my other hard drive with Windows 7 on it, My Computer can see the drive (as the BIOS did), but if I start the install through Windows, the setup still cannot see the disk.</p>
<p>Some information that may help:</p>
<ul>
<li>I'm trying to install Windows 7 Professional 32-bit</li>
<li>The disk is a 500GB WD SATA</li>
<li>The motherboard is an MSI K9A2 CF-F</li>
</ul>
| 0non-cybersec
| Stackexchange |
MRW the world tries to kill me with a world war, mass fires and a pandemic and I'm still kicking and healthy. | 0non-cybersec
| Reddit |
Tired cat passes out. | 0non-cybersec
| Reddit |
How can I get the element in which highlighted text is in?. <p>I am trying to learn how to write a bookmarklet where I can highlight some text, click on the bookmarklet and have it tell me what got highlighted. I can get that far, but next I want to know what element that text is in.</p>
<p>For example:</p>
<pre><code><div id="some-id">to be highlighted</div>
</code></pre>
<p>The bookmarklet code:</p>
<pre><code>javascript:(function(){alert(window.getSelection();})()
</code></pre>
<p>If I highlight the text "to be highlighted" and then click on the bookmarklet, it will alert the text. But how can I get the element in which the text is in, in this case the element after that?</p>
<p>So the flow is: highlight text, click bookmarklet, bookmarklet tells you what you highlighted and the element it's in.</p>
<p>Thanks!</p>
| 0non-cybersec
| Stackexchange |
Love being able to pick flowers straight from the garden!. | 0non-cybersec
| Reddit |
What my awesome son (8) did this morning! . My awesome son Paul woke up early this morning to shovel driveways. He LOVES to earn money. He made $27 and when I asked what he was gonna buy his immediate answer was "Christmas presents for my brother and sister."
I'm constantly blown away by this kid. He never gives up, despite having a pretty bad reading/comprehension disability. He has this deep determination, but also this amazing sweetness. WHAT A GREAT KID!!! I really wanted to share. | 0non-cybersec
| Reddit |
How can I monitor requested IPs to a specific domain?. <p>I have an A record in the DNS server which points to my server IP. Noted that I have multiple domain names which points to the same server too.</p>
<p>Now I need to know, which IPs send a request to this specific domain name? <code>pbx.mywebsite.com</code></p>
<p>How can I figure it out?</p>
| 0non-cybersec
| Stackexchange |
Polish Startup Has Reportedly Started Producing Graphene. | 0non-cybersec
| Reddit |
Researchers use Rowhammer bit flips to steal 2048-bit crypto key. | 1cybersec
| Reddit |
Windows 10 resolution keeps changing back to default. <p>Whenever I try to change my resolution on my PC away from the default resolution (1920x1080), after a few seconds it keeps changing back.
Still happens if I use the nvidia control panel to change resolution or the windows settings.
Any idea how to solve this?
This only started happening after I recently reformatted my pc, as I used to do this all the time.</p>
<p>OS: Windows 10
GPU: GTX 660</p>
<p>P.s. If your wondering why I want to change from default it is because I like to play games on different resolution in windowed borderless mode.</p>
| 0non-cybersec
| Stackexchange |
ODE - Subtracting complementary function from particular integral. <p>so a question is presented in a paper that is a bit confusing and some clarification would be appreciated.</p>
<p>Consider the ODE </p>
<p>$\frac{dy}{dx}-2y=e^{\lambda x}$</p>
<p>1) Find the general solution where $\lambda$ is a constant s.t. $\lambda \neq 2$</p>
<p>2) By subtracting from the particular integral an appropriate multiple of the complementary function, obtain the limit as $\lambda \rightarrow 2$ of the general solution.</p>
<p>Now, 1) is easy no problem there. But what do they mean by the whole subtracting from the particular integral? I would have made an Ansatz to get the required result but that is not what the question is asking, nor does it result in a limit. Attempts at subtracting and solving aren't yielding any insights either.</p>
<p>Any direction as to how to approach this problem would be highly appreciated.</p>
<p>Many thanks</p>
<p>K</p>
<p>EDIT: After multiplying through by $v(x) = e^{\int -2 dx}$ we get</p>
<p>$\frac{d}{dx}\left[e^{-2x}y\right] = e^{(\lambda -2)x}$</p>
<p>yielding the particular integral and complementary function</p>
<p>$y(x) = e^{2x}\int e^{(\lambda -2)x}dx + Ae^{2x}, A-constant$</p>
<p>EDIT2: While I am grateful to Dr. Graubner and Mr. Kermani for their responses. They do not address the issue of subtracting from the particular integral. </p>
| 0non-cybersec
| Stackexchange |
The Lakers ran the Loop Offense last night.. | 0non-cybersec
| Reddit |
When you find out 36 years late, that Born In The USA isn't blindly patriotic, but a critisism of America in war. | 0non-cybersec
| Reddit |
This little step to help small children watch pizza being made. | 0non-cybersec
| Reddit |
Tropical fish spotted in Highland waters. | 0non-cybersec
| Reddit |
How various operating systems are limited to 32-bit or 64-bit?. <p>I understand that due to physical construction, CPUs come in different sizes 16-bit, 32-bit, 64-bit. But what does this means " Windows XP is 32-bit OS"? what is the limitation on a software to limit itself to to 32-bit or 64-bit?</p>
| 0non-cybersec
| Stackexchange |
Slack POST multiple messages to a channel at once. <p>I need to post multiple bot replies (responses determined dynamically) to the same channel.
The obvious way seems to be to do an HTTP POST for each message in succession using this API method: <a href="https://api.slack.com/methods/chat.postMessage" rel="nofollow noreferrer">https://api.slack.com/methods/chat.postMessage</a></p>
<p>Is there a way to send messages to Slack in bulk to post to the same channel? The order in which the messages get rendered need not be important for me.</p>
| 0non-cybersec
| Stackexchange |
🔥 Butterflies fluttering around a turtle.. | 0non-cybersec
| Reddit |
Set cookies to WebView Control. <p>I have cookies which taken from HttpWebRequest and I need to set these cookies to WebView control to another page. </p>
<p>How can I transfer these cookie to WebView control in windows 8.1 Store app?</p>
| 0non-cybersec
| Stackexchange |
A young woman getting cupping treatment using horns, Finland, 1935 [699x720]. | 0non-cybersec
| Reddit |
STOP this dude. | 0non-cybersec
| Reddit |
2007 Week 9: Patriots @ Colts. | 0non-cybersec
| Reddit |
I put a lot of effort into this meme. 20+ hours. enjoy.. | 0non-cybersec
| Reddit |
MITRE ATTACK annotated SYSMON module configs. https://twitter.com/olafhartong/status/1029393519339884545?s=09 | 1cybersec
| Reddit |
Restkit json error response msg from server. <p>I have used many hours on how to solve this issue. Im using Restkit 0.9.3 with Object Mapping 2.0. All data is in JSON. I can make GET, POST, PUT and DELETE operations correctly, it's the response body I dont catch and map corretly..</p>
<p>So my problem is that my restful api is returning errors when something goes wrong. I want to map those errors with restkit, fx this error is returned:</p>
<p><strong>{
"code": "401",
"message": "Unauthorized"
}</strong></p>
<p><strong>How do I map this json correct?</strong> I have tried lots of things and could use some guideness - or please give an example of this.</p>
| 0non-cybersec
| Stackexchange |
What was the most recent movie that actually scared you and how old were you when you watched it?. I'm just curious to see the age aspect, I assume most will list a younger age.
I just assume older people have a more rationalized mind set are hardly scared by a movie anymore. And by older I mean like 20+
Curious to see the correlation is all
I actually found **The Babadook** scary, I'm 25 (Not the scariest movie of all time, but the most recent)
I'm one of those people who thinks the setting in which you watch a horror movies plays a huge role. I live alone in a house and watched it at like 1am, so any time I saw a shadow or heard a noise in the house definitely creeped me out after watching the movie.
EDIT: My top 3 scariest films....
**The Ring** - Age 13/14
**The Blair Witch Project** - Age 10
**I Know What You Did Last Summer** - Age 8 | 0non-cybersec
| Reddit |
Getting top 10 Values in a JSON File. <p>This is an example of my JSON file.</p>
<pre><code>[
{"Variable":"Hello","Variable1":20}, {"Variable":"Hi","Variable1":30},
{"Variable":"How","Variable1":40}, {"Variable":"Who","Variable1":50},
{"Variable":"Where","Variable1":60}, {"Variable":"This","Variable1":100},
{"Variable":"Pork","Variable1":10}, {"Variable":"Creep","Variable1":90},
{"Variable":"Mega Creeps","Variable1":80}, {"Variable":"LOL","Variable1":0},
{"Variable":"ROFL","Variable1":0}, {"Variable":"LMAO","Variable1":0},
{"Variable":"POP","Variable1":0}, {"Variable":"LOVE","Variable1":0},
{"Variable":"PICK","Variable1":0}, {"Variable":"WHIZ","Variable1":0},
{"Variable":"BORED","Variable1":0}, {"Variable":"KILLAH","Variable1":0},
{"Variable":"LOLLING","Variable1":0}, {"Variable":"HALOO HALOO","Variable1":0}
]
</code></pre>
<p>How can I get only the Top 10 from highest Variable1 number to the least? But gonna be passing the JSON file as the same format.</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 |
Calculating $\lim\limits_{n\to\infty}\frac{(\ln n)^{2}}{n}$. <p>What is the value of $\lim\limits_{n\to\infty}\dfrac{(\ln n)^{2}}{n}$ and the proof ?<br>
I can't find anything related to it from questions.<br>
Just only $\lim\limits_{n\to\infty}\dfrac{\ln n}{n}=0$, which I know it is proved by Cesàro.</p>
| 0non-cybersec
| Stackexchange |
[WP]You are stuck in a story that you wrote. You have full manipulation of everything that happens in said universe, which causes you to wonder whether you should say there permanently.. Edit: 39 upvotes and not one story. Aw.
Edit 2: Finally. A story. Yay! | 0non-cybersec
| Reddit |
I appears the Stafford Boots are coming back. They just arrived in black. The good: The quality is better than the recent Kent. The Bad: Price increase of previous to $100. | 0non-cybersec
| Reddit |
Kevin Smith's 'Moose Jaws' Has Just Received Funding After 4 Years in Development. | 0non-cybersec
| Reddit |
What's going on with the #CancelColbert thing?. | 0non-cybersec
| Reddit |
KMP Algorithm, Pratt's Minimisation/optimization of Knuth's original DFA based algorithm. <p>The Original Knuth's Algorithm is based on DFA and it depends on the <code>alphabet size</code>. And Then, Pratt optimised it to be independent of Alphabet Size.</p>
<p>But, All the textbooks directly give the final Pratt Algorithm. Below is the code ( the code is not really needed to answer the question) which is more or less similar to original Knuth's Algorithm (<a href="http://algs4.cs.princeton.edu/53substring/KMP.java.html" rel="nofollow"> full code</a>) , And it builds the DFA.</p>
<p>My Question is, How can we (idea behind) arrive at the final current version ( Pratt optimization) from below DFA version ? </p>
<p>Also, Is it called minimization of DFA, But DFA minimization can be applied to a specific alphabet(regular language), Here it applies to all alphabets ?</p>
<pre><code>public KMP(char[] pattern, int R) {
// build DFA from pattern, R is the language length
int M = pattern.length;
dfa = new int[R][M];
dfa[pattern[0]][0] = 1;
for (int X = 0, j = 1; j < M; j++) {
for (int c = 0; c < R; c++)
dfa[c][j] = dfa[c][X]; // Copy mismatch cases.
dfa[pattern[j]][j] = j+1; // Set match case.
X = dfa[pattern[j]][X]; // Update restart state.
}
}
</code></pre>
| 0non-cybersec
| Stackexchange |
Pseudodifferential operators on spaces with boundary. <p>Consider the upper half space $\mathbb{R}^n_{+} = \{x = (x_1,..,x_n) \in \mathbb{R}^n : x_n \geq 0\}$. Consider the Laplacian on this space with either the Dirichlet boundary condition or the Neumann boundary condition. My question is: can the Laplacian $\Delta$ under such boundary conditions be treated as a pseudodifferential operator of order 2? I can understand that the usual trick of Fourier inversion does not work, but if we still forcibly write
$$-\Delta f(x) = \int p(x, \xi)\hat{f}(\xi)e^{ix.\xi}d\xi$$ and assume that $p(x, \xi)$ belongs to some symbol class $S^m_{\rho, \delta}$, what can go wrong?</p>
| 0non-cybersec
| Stackexchange |
Rock in Finland. | 0non-cybersec
| Reddit |
Middle mouse button won't paste 'primary' selection. <p>I have just installed Ubuntu 17.10 as a guest Virtualbox system. I'm trying to use the standard terminal, and I'm having the issue that the middle mouse button pastes clipboard contents, and not the 'primary' selection. Is it normal behavior for this terminal? If yes, how can I change it and make the middle button paste 'primary' selection?</p>
| 0non-cybersec
| Stackexchange |
A week ago my niece asked me to teach her, Paint. Today she sent me this. I'm proud I must say. | 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 |
Printing ToC entry with \large makes it go into the margin. <p>I want to print the <code>section</code> names in the ToC in a larger font than everything else.</p>
<p>Here is the command for it:</p>
<pre><code>\titlecontents{section}
[1.5em]
{}
{\large\sffamily\bfseries\contentslabel[\thecontentslabel.]{1.5em}}
{\hspace{-1.5em}}
{\hspace*{\fill}\sffamily\bfseries\large\contentspage}
</code></pre>
<p>However, because of the <code>\large</code> command the number of the section turns out to be in the margin:</p>
<p><a href="https://i.stack.imgur.com/TyLga.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/TyLga.png" alt="enter image description here"></a></p>
<p>How can I fix it? Here is the full MWE:</p>
<pre><code>\documentclass[12pt]{article}
\usepackage[showframe]{geometry}
\usepackage{titletoc}
\titlecontents{section}
[1.5em]
{}
{\large\sffamily\bfseries\contentslabel[\thecontentslabel.]{1.5em}}
{\hspace{-1.5em}}
{\hspace*{\fill}\sffamily\bfseries\large\contentspage}
\begin{document}
\tableofcontents
\section{One}
\subsubsection{}
\subsubsection{title}
\subsubsection{title}
\section{Two}
\subsubsection{}
\subsubsection{title}
\subsubsection{title}
\end{document}
</code></pre>
| 0non-cybersec
| Stackexchange |
"Weird sound signature" on integrated speakers. <p>My laptop is an ASUS K555UB (i5 6200U, GeForce 940M), running dualboot Ubuntu 17.04 and Windows 10.</p>
<p>The speakers sound "hollow" and with weird bass on Ubuntu compared with Win10, but when using any external speaker/headphone, they sound pretty similar in both OS.</p>
<p>Also, ASUS provides an audio software for Windows (AudioWizard <a href="https://i.stack.imgur.com/Mk81i.png" rel="nofollow noreferrer">Screenshot</a>). Without it, the sound became similar to the one on Ubuntu</p>
<p>Details on Ubuntu:</p>
<pre><code>$ pacmd list-sinks | grep sample
sample spec: s16le 2ch 44100Hz
$ head -n 1 /proc/asound/card*/codec#*
==> /proc/asound/card0/codec#0 <==
Codec: Realtek ALC256
==> /proc/asound/card0/codec#2 <==
Codec: Intel Skylake HDMI
$ aplay -l
**** List of PLAYBACK Hardware Devices ****
card 0: PCH [HDA Intel PCH], device 0: ALC256 Analog [ALC256 Analog]
Subdevices: 1/1
Subdevice #0: subdevice #0
card 0: PCH [HDA Intel PCH], device 3: HDMI 0 [HDMI 0]
Subdevices: 1/1
Subdevice #0: subdevice #0
card 0: PCH [HDA Intel PCH], device 7: HDMI 1 [HDMI 1]
Subdevices: 1/1
Subdevice #0: subdevice #0
card 0: PCH [HDA Intel PCH], device 8: HDMI 2 [HDMI 2]
Subdevices: 1/1
Subdevice #0: subdevice #0
</code></pre>
<p>In the driver page from ASUS, there isn't any software for Linux systems.</p>
<p>There is any similar software alternative or workaround for Ubuntu?</p>
<p>I tried to install pulseaudio EQ as suggested by Olimjon, but it was already installed and it doesn't appear in the launcher.</p>
<p>In terminal I got this info</p>
<pre><code>$ pulseaudio
E: [pulseaudio] pid.c: Daemon already running.
E: [pulseaudio] main.c: pa_pid_file_create() failed.
</code></pre>
<p>Should I remove/purge current installation and reinstall? Or there is a bigger problem?</p>
<p>Thanks for any help</p>
| 0non-cybersec
| Stackexchange |
Cryptographic system with double keys with reversible order. <p>While reading Shamir, Rivest and Adleman's paper on "Mental Poker", I've met a mention of system such that $E_a(E_b(x)) = E_b(E_a(x))$, without however disclosing details on it, with $E_a(x)$ being “encrypt plaintext $x$ with key $a$”.</p>
<p>Do any existing secure modern cryptosystems have this property, and how is it called for later reference?</p>
| 0non-cybersec
| Stackexchange |
How to import a Three.js loader into an Angular 6 project. <p>I want to extend the type definitions imported into an ng6 project using Three.js (<code>@types/three/index</code>) with a set of functions that will be directly attached to the same "namespace". Something like: <code>THREE.myFunction()</code>. <strong>I don't want to declare THREE as <code>any</code></strong> to suppress the type checking and the linter, and I guess that it would be possible to wrap a vanilla JS function that extend THREE using a TS class/function and then taking advantage of <code>typings.d.ts</code>.</p>
<h3>Importing a loader</h3>
<p>First of all, I would like to import a THREE.js loader into my project, and that's normally defined a vanilla function that extends <code>THREE</code>.</p>
<p>I'm trying to import the <a href="https://github.com/mrdoob/three.js/blob/master/examples/js/loaders/BinaryLoader.js" rel="nofollow noreferrer"><code>BinaryLoader</code></a> into a ng service and I'm not sure about how to do it in the right way. </p>
<p>What I have done so far:</p>
<ol>
<li><code>npm install three --save</code></li>
<li><code>npm install @types/three --save-dev</code></li>
<li><code>import * as THREE from 'three';</code></li>
<li>add the BinaryLoader to the new <em>angular.json</em> <code>scripts</code> array</li>
</ol>
<p><em>angular.json</em></p>
<pre><code> "scripts": [
"./node_modules/three/examples/js/loaders/BinaryLoader.js"
]
</code></pre>
<p>So far so good, but now I need to create a binary loader:</p>
<pre><code>import * as THREE from 'three';
// import { BinaryLoader } from 'three';
// import 'three/examples/js/loaders/BinaryLoader';
export class ThreeManagerService {
const loader = new THREE.BinaryLoader();
...
</code></pre>
<p>and I have to find the way to add the <code>BinaryLoader</code> to <code>@types/three/index</code> somehow. In that way I should be able to <strong>extend the type definitions</strong> in order to be able to create a new type <code>THREE.BinaryLoader</code>. Is it possible to do something like that?</p>
<p>The warning I got is:</p>
<blockquote>
<p>WARNING in ./src/app/shared/three-manager.service.ts
24:25-43 "export 'BinaryLoader' (imported as 'THREE') was not found in 'three'</p>
</blockquote>
<h2>Silencing Type warnings and the TS transpiler</h2>
<p>A workaround to get rid of the warnings and the error might be something like that:</p>
<pre><code>import * as THREEJS from 'three';
declare const THREE: any;
export class ThreeManagerService {
const loader = new THREE.BinaryLoader();
</code></pre>
<p>the fact is that I consider this workaround a very ugly "fix". I would like to use the type system as much as possible.</p>
<h2>EDIT: Get examples to play nice with Intellisense & Typescript</h2>
<p>While waiting for a complete rewriting of the examples to be compatible with the ES6 modules and namespaces it could be possible to define a local module that exposes and augments the global, in <code>/src/node_modules/three-extras/index.ts</code>:</p>
<pre><code>import * as THREE from 'three';
declare global {
interface Window {
THREE: typeof THREE;
}
}
window.THREE = THREE;
require('three/examples/js/controls/OrbitControls');
require('three/examples/js/loaders/GLTFLoader');
</code></pre>
<p>via: <a href="https://github.com/mrdoob/three.js/issues/9562#issuecomment-386522819" rel="nofollow noreferrer">https://github.com/mrdoob/three.js/issues/9562#issuecomment-386522819</a></p>
<h3>Related and useful SO answers:</h3>
<ul>
<li><a href="https://stackoverflow.com/a/42602169/1977778">https://stackoverflow.com/a/42602169/1977778</a></li>
<li><a href="https://stackoverflow.com/a/42623509/1977778">https://stackoverflow.com/a/42623509/1977778</a></li>
</ul>
| 0non-cybersec
| Stackexchange |
Firefighters haul ass after pet donkey found trapped in septic tank. | 0non-cybersec
| Reddit |
$n$ such that $|\sin in | > 10 000$. <p>An exercise in my book asks me to find $n\in \mathbb N$ such that $|\sin in |> 10 000$.</p>
<blockquote>
<p>Could someone please check my solution?</p>
</blockquote>
<p>I wrote</p>
<p>$$ |\sin in |^2 = \cosh^2 n + \sinh^2 n = 1 + 2 \sinh^2 n$$</p>
<p>hence $|\sin in |> 10 000$ if and only if</p>
<p>$$ \sinh n > {\sqrt{9 999}\over \sqrt{2}}$$</p>
<blockquote>
<p>Is it correct like this or is it possible to find $n$ $more explicitly
(without using a calculator)?</p>
</blockquote>
| 0non-cybersec
| Stackexchange |
How many tasks are too many?. <p>I'm currently working on an application that relies on many different web services to get data. Since I want to modularize each service and have a bit of dependency in there (service1 must run before service 2 and 3 etc), I'm running each service in its own task.</p>
<p>The tasks themselves are either </p>
<ol>
<li><p>running actively, meaning they're sending their request to the web service and are waiting for a response or processing the response</p></li>
<li><p>waiting (via monitor and timeout) - once a task finishes all waiting tasks wake up and check if their dependencies have finished</p></li>
</ol>
<p>Now, the system is running with what I would call good performance (especially since the performance is rather negligible) - however, the application generates quite a number of tasks.</p>
<p>So, to my question: are ~200 tasks in this scenario too many? Do they generate that much overhead so that a basically non-threaded approach would be better?</p>
| 0non-cybersec
| Stackexchange |
Which quotients of surface groups are linear?. <p>Let <span class="math-container">$S$</span> be a compact connected Riemann surface, and let <span class="math-container">$\pi = \pi_1(S)$</span> be its fundamental group. Let <span class="math-container">$\pi \to G$</span> be a surjective homomorphism.</p>
<blockquote>
<blockquote>
<p>Is <span class="math-container">$G$</span> linear? (That is, does <span class="math-container">$G$</span> admit a faithful representation <span class="math-container">$G\to \mathrm{GL}_n(\mathbb{C})$</span> for some <span class="math-container">$n>0?$</span> )</p>
</blockquote>
</blockquote>
<p>What if the kernel of <span class="math-container">$\pi$</span> is finite?</p>
<p>I expect the answer to be negative (when <span class="math-container">$\mathrm{genus}(S) >1$</span>), but I am not sure where to start looking. </p>
| 0non-cybersec
| Stackexchange |
Do I enjoy bad anime? My experience with Aldnoah.zero. As i watched Aldnoah.zero i noticed alot of things that would generally make me consider an anime to be "bad" but still found myself rather enjoying the show. This got me thinking about the true nature of what makes an anime good or bad and more importantly if it matters at all.
Now I'm not saying Aldnoah is bad but nor am i saying its good, just that im enjoying it. If an anime has a predictable plot, terrible pacing, one dimensional characters and so on part of me wants to label the anime as "bad" then move on to the next show. Often this is a wise choice but not in all cases. I'm starting to think that perhaps due to the fact that there is so much anime out there i want to watch its me culling shows to get them off my to watch list.
What are your thoughts on the quality of anime versus its enjoyment? | 0non-cybersec
| Reddit |
Beckerman kicks Schweinsteiger from behind.. | 0non-cybersec
| Reddit |
Prepared homemade Crunchwraps this week — AND finally using the Taco Bell sauce packets that I always beg for when I’m drunk. | 0non-cybersec
| Reddit |
[Vice] ‘Super Mario 64’ Still Matters, Even 20 Years Since Its Release. | 0non-cybersec
| Reddit |
Made in USA. Made in China.. | 0non-cybersec
| Reddit |
Suppose $A$ is a 4x4 matrix such that $\det(A)=\frac{1}{64}$. <p>Suppose A is a 4x4 matrix such that $\det(A)=\frac{1}{64}$ then $\det(4A^{-1})^T$</p>
<ol>
<li>I created a 2x2 matrix $B$ and transposed it both had the same determinant </li>
<li>I then found $\det(B)$ and $\det(B^{-1})$ the results were inverses of each other</li>
<li>I then tried found the $\det(2B)$ </li>
</ol>
<p>but I cannot see what is the relationship between the determinant of a matrix and the determinant of that matrix multiplied by a constant?</p>
| 0non-cybersec
| Stackexchange |
Study: Women perform oral sex just to retain their partners. | 0non-cybersec
| Reddit |
How to create horizontal columns in Beamer?. <p>I'm creating a Beamer presentation, and I want a slide that has the following format:</p>
<blockquote>
<p>figure -> some itemization -> figure</p>
</blockquote>
<p>So on the far left I want to have an image, then some itemization next to the figure, and then on the far right another figure. So itemization is between two figures. But, I want to have three of these in one slide, one under the other. So I want to have three horizontal column, each having the above format.</p>
<p>I know the <code>\begin{column}</code> thing, but it creates vertical columns. I need horizontal ones. Any idea how to achieve this? Currently, I have just just this:</p>
<pre><code>\documentclass{beamer}
\begin{document}
\begin{frame}{MD}
\begin{figure}
\includegraphics[scale=0.5]{pkc}
\end{figure}
\begin{figure}
\includegraphics[scale=0.5]{skc}
\end{figure}
\begin{figure}
\includegraphics[scale=0.5]{protocols}
\end{figure}
\end{frame}
\end{document}
</code></pre>
<p>It just loads the three figures one under the other correctly, but they are not in the far left of course, but in the middle. And I don't know how to achieve this horizontal columns. Any ideas?</p>
| 0non-cybersec
| Stackexchange |
TIL Christopher Lee not only was a huge Tolkien fan as far back as when the books were written but he actively shaped his career so that he could play a wizard when the films are eventually made.. | 0non-cybersec
| Reddit |
2037, the date whites become a minority in Britain.. | 0non-cybersec
| Reddit |
Run autostart_console.bat on startup or new tab in ConEmu?. <p>I am using ConEmu (robust cmd) on Windows 8 Pro. </p>
<p>How/where can I set conemu to run autostart_console.bat when starting ConEmu or when opening a new tab?</p>
<p>Thank you.</p>
| 0non-cybersec
| Stackexchange |
Nvidia confirms there won't be a GeForce RTX 2080 Ti SUPER graphics card. | 0non-cybersec
| Reddit |
How to compute Nakayama functor explicitly?. <p>I am reading the book Elements of representation theory of associative algebras, volume 1. I have some questions related to the Nakayama functor. On page 113-114 of the book, the Auslander-Reiten translation $\tau M$ of a module $M$ of the path algebra of the Kronecker quiver $Q=1\underset{\beta}{\overset{\alpha}{\Leftarrow}} 2$ is computed. The module $M$ is defined by $K \underset{0}{\overset{1}{\Leftarrow}} K$. </p>
<p>It is said that a minimal projective presentation of $M$ is given by
$$
0 \to P(1) \overset{p_1}{\to} P(2) \overset{p_2}{\to} M \to 0,
$$
where $$P(1)=S(1)= (K \underset{0}{\overset{0}{\Leftarrow}} 0), \quad P(2)= (K^2 \underset{\left( \begin{matrix}0 \\ 1\end{matrix} \right)}{\overset{\left( \begin{matrix}1 \\ 0\end{matrix} \right)}{\Leftarrow}} K).$$</p>
<p>We know that a basis of $K^2$ in $P(2)$ is $K\alpha\oplus K\beta$. The basis of $K$ in $P(1)$ is $K \varepsilon_1$. The map $p_1$ from $P(1)$ to $P(2)$ is
$$
\begin{matrix} K & \underset{0}{\overset{0}{\Leftarrow}} & 0 \\
f \downarrow & & \downarrow g \\
K^2 & \underset{\left( \begin{matrix} 0 \\ 1\end{matrix} \right)}{\overset{\left( \begin{matrix}1 \\ 0\end{matrix} \right)}{\Leftarrow}} & K
\end{matrix}
$$
Since the domain of $g$ is $0$, we must have $g=0$. How to compute the map $f$? Does $f$ send $\varepsilon_1$ to $\alpha$ or $\beta$ or $0$? </p>
<p>If we know the map $f$, then we know the map $p_1$. How to compute $\nu p_1$? Where $\nu=DHom_A(\cdot, A)$ is the Nakayama functor.</p>
<p>We know $I(1)$ and $I(2)$. If we know the map $\nu p_1: I(1) \to I(2)$, how to compute the kernel of $\nu p_1$? I know that the kernel of $\nu p_1$ must be of the form $K \underset{h_2}{\overset{h_1}{\Leftarrow}} K$. But I don't know how to show that $h_1=1$ and $h_2=0$. Thank you very much.</p>
<p><img src="https://i.stack.imgur.com/c46PQ.jpg" alt="enter image description here"></p>
| 0non-cybersec
| Stackexchange |
How are people accessing my server when I have the firewall locked down by IP?. <p>I have several public servers that we remote in to through remote desktop services. I have <code>Remote Desktop - User Mode (tcpip-in)</code> set to only allows specific remote ip addresses through. I have checked and the windows firewall is enabled. I have all of the other rules for remote desktop disabled. </p>
<p>I am still getting events such as these in my event log:</p>
<pre><code>An account failed to log on.
Subject:
Security ID: NULL SID
Account Name: -
Account Domain: -
Logon ID: 0x0
Logon Type: 3
Account For Which Logon Failed:
Security ID: NULL SID
Account Name: Administrator
Account Domain:
Failure Information:
Failure Reason: Unknown user name or bad password.
Status: 0xC000006D
Sub Status: 0xC0000064
Process Information:
Caller Process ID: 0x0
Caller Process Name: -
Network Information:
Workstation Name: \\94.102.52.22
Source Network Address: 94.102.52.22
Source Port: 54358
</code></pre>
<p>I do not have the option for a hardware firewall so I have to rely on the windows firewall, which has been fine up till now.</p>
<p>How are they able to get to the login option to begin with? Shouldn't the windows firewall block them before they get that far?</p>
| 0non-cybersec
| Stackexchange |
First ICS Beta-ROM for HTC Desire with true Hardware Acceleration out. | 0non-cybersec
| Reddit |
blursed puzzle. | 0non-cybersec
| Reddit |
Someone took maternity pictures of their dog. | 0non-cybersec
| Reddit |
Isometries on complete metric spaces map to dense subspaces. <p>Let <span class="math-container">$X$</span> be a complete metric space, and let <span class="math-container">$Y ⊆ X$</span> be a metric subspace. Suppose <span class="math-container">$g: X \rightarrow Y$</span> is an isometry. Does this imply that <span class="math-container">$\bar{Y} = X$</span>? i.e. that <span class="math-container">$Y$</span> is dense in <span class="math-container">$X$</span>? </p>
<p>Suppose that <span class="math-container">$Y$</span> is not dense in <span class="math-container">$X$</span>, i.e. that <span class="math-container">$g$</span> maps <span class="math-container">$X$</span> onto a proper subset of itself. Now <span class="math-container">$g$</span> is an isometry, and therefore injective. In the case where <span class="math-container">$X$</span> is finite this would give a contradiction, but in the infinite case I do not see one. </p>
| 0non-cybersec
| Stackexchange |
"I Wish I Could Have Had An Abortion" -- Paula's Story; Or, what happens when a doctor puts personal politics above doing his job. | 0non-cybersec
| Reddit |
0x80070057 error when decrypting drive with bitlocker. <p>TL;DR trying to decrypt a drive using <strong>manage-bde -off g:</strong> spits out this error:</p>
<pre><code>ERROR: An error occurred (code 0x80070057):
The parameter is incorrect.
</code></pre>
<p>got a laptop with a broken screen, i disabled bitlocker protection on the drive, shut it down and swapped it to a new chassis, error upon boot, cannot find boot partition or some such. windows startup repair fails. none of the bootrec, chkdsk or sfc commands do anything to repair the partition. i assumed maybe bitlocker is preventing repairs from running. i try to decrypt the drive and get the above error. curent drive status:</p>
<pre><code>Volume G: []
[Data Volume]
Size: Unknown GB
BitLocker Version: Windows 7
Conversion Status: Fully Encrypted
Percentage Encrypted: 100%
Encryption Method: AES 128 with Diffuser
Protection Status: Protection Off
Lock Status: Unlocked
Identification Field: None
Automatic Unlock: Enabled
Key Protectors:
Numerical Password
TPM
Password
External Key (Required for automatic unlock)
</code></pre>
<p>any ideas on what that error could mean? apparently when encrypting it means you're missing an active volume, but i'm doing the opposite and there is another active volume on that disk that's just fine.</p>
| 0non-cybersec
| Stackexchange |
Starting to see a trend here.... YSK lurker here..
Is it just me or does it seem like YSK is slowly turning into a promotion and advertising platform for lame business startups and websites? Is there a way we can prevent more of these from appearing?
| 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 |
When it's April Fools & all you just want legit content. | 0non-cybersec
| Reddit |
Did Mars once have three moons? : r/spacediscussions. | 0non-cybersec
| Reddit |
Emmanuel Macron’s environment minister quits live on air, questioning president's green credentials. | 0non-cybersec
| Reddit |
Rearranging Terms of Conditionally Convergent Series. <p>I know about Riemann’s Rearrangement Theorem. But certainly you can rearrange some of the terms of a conditional series and still arrive at the same series value. For example, if you only rearrange a finite number of initial terms. <a href="https://math.stackexchange.com/questions/1209113/convergence-of-certain-rearrangements-of-conditionally-convergent-series-proof">This post</a> seems to indicate that as long as terms don't move too far, you still get the same value.</p>
<ul>
<li>What about rearranging terms in a double series <span class="math-container">$\sum_{n=1}^\infty\sum_{k=n}^\infty a_{n,k}$</span> where (for fixed <span class="math-container">$n$</span>) <span class="math-container">$\sum_{k=n}^\infty a_{n,k}$</span> converges absolutely to <span class="math-container">$A(n)$</span>, but <span class="math-container">$\sum_{n=1}^\infty A(n)$</span> is only conditionally convergent? Can this be rearranged to <span class="math-container">$$\sum_{n=1}^\infty\sum_{k=n}^\infty a_{n,k} \stackrel{?}{=} \sum_{k=1}^\infty\sum_{n=1}^k a_{n,k}.$$</span></li>
<li>Is there a collection of general theorems about the types of rearrangements that preserve the value of a conditionally convergent series? </li>
</ul>
<p>(All I find through googling is lots of explaining Riemann's Theorem. I get that it doesn't work all the time; when <em>does</em> it work?!?!)</p>
| 0non-cybersec
| Stackexchange |
Is the product of a bounded function and function whose value is zero at a point, and it's derivative is zero at that point differentiable.. <p>The question arises from a problem in Basic Analysis by Lebl. </p>
<blockquote>
<p>Suppose $f : I → \mathbb{R}$ is a bounded function and $g : I → \mathbb{R}$ is a function differentiable at $c ∈ I$ and $g(c) = g′ (c) = 0.$ Show that $h(x) := f (x)g(x)$ is differentiable at c. Hint: Note that you cannot apply the product rule. </p>
</blockquote>
<p>Using the definition of the derivative I calculated this value to be zero, however I am not sure what effect the boundedness of $f$ has on the situation.</p>
| 0non-cybersec
| Stackexchange |
I must go, my planet needs me.... | 0non-cybersec
| Reddit |
IamA Flight Attendant at a Major US airline AMA!. **My short bio:**
I've been flying for a little over a year now... and it's Christmas Eve and I'm stuck on Airport Standby, where we sit around the airport for four hours in case someone happens to not show due to traffic/weather/"sick" calls. Figured I'd pop on here during the holiday travel season and answer questions you all might have.
I work for one of the legacy US carriers (my proof photo might give away which one...) and work primarily domestic trips, though I've gotten my fair share of Europe and South/Central America. I've also been able to travel to every continent (except Antarctica) in the last year. As one of the few straight guys in the industry, I've gotten a unique experience unlike any other workplace I've ever been at.
I can't/won't answer questions that might identify me, nor will I answer questions relating to aircraft security. Also, I'm not speaking on behalf of my employer and my opinions are my own.
So go ahead reddit, Ask me (almost) anything!
**My Proof:** [Edited Proof](https://i.imgur.com/X8QuRmb.jpg)
**Edit** Im free! I didn’t get used, so I’m heading home. I’ll be popping in later tonight or tomorrow to get anything left.
**Edit 2** I'm back for awhile! I'll just answer questions as they come in, until I fall asleep. I'll be back tomorrow morning (not spending the holiday at home, so I'll spend it on Reddit I guess)
**Edit 3** Wow, this blew up overnight. I'll try to get to what I can today, but no promises!
***Final Edit:*** Thanks for all the fish! And thanks to whoever gave me gold! If there's interest, I may do another one of these in three months - maybe scheduled? | 0non-cybersec
| Reddit |
Introduction. Very long post. Hello,
I have been lurking around for quite some time, and finally am starting my keto journey. Today is day 1 for me, everything before today doesn't matter. Yesterday, Day 0, I went to meet with a doctor. I weighed in at just under 500 pounds. He immediately talked to me about the dangers of my weight (diabetes, heart failure, things I've heard a thousand times), and suggested that I start on a keto diet. He also reviewed some old blood tests and advised that I get new tests run. He wants to start me on hormone therapy and thyroid medication. Specifically, he stated that my testosterone levels are low, my estrogen levels are high, and my thyroid is all sorts of fucked up (paraphrasing). All of this was very distressing for me. I knew I was heavy, but 500lbs? All these other problems which may be the root cause for my difficulties controlling my weight? All of these things combined may be the push that I needed to lose weight. Especially since he believes that he can help me.
Part of the reason that I am posting here today is that I am hoping to publicly cite my drive to accomplish this insane task of trying to lose close to half my body weight in the hopes that it will drive me to do better. Another part includes advice from another website that I joined that advised me to share the reason why I am doing this. I clearly need all the help I can get.
“Those who have a ‘why’ can bear with almost any ‘how’.” ~ Victor Frankl.
I am hoping that this statement is true. I spent a lot of time working to come up with my why. I had some basic ones, the obvious whys. However, the more that I thought about it and the deeper I dug, the more powerful the reasons became. So here we go. This is what motivates me. My why:
First Why: The obvious.
I want to lose weight. I want to get in shape. I want to be healthy. I’m sure you can tell why these are listed as obvious. They are the generic answers that you get when you ask someone why they are working to lose weight. It doesn’t make them wrong, they are still the reasons why. But they are everyone’s reasons why. This is what encouraged me to look deeper.
Second Why: Okay, that makes sense.
I have two children and a wife, they are the absolute light of my life. It makes sense that I would want to spend time with them and enjoy my life with them. However, at my current level 1 state I can’t offer my children much. I want to be able to play with them, teach them to play sports, help coach their teams. I want to be active with them, play with them. I want to do all of this without becoming winded after just a few minutes. That isn’t fair to them and it isn’t fair to me. Let me put this bluntly: I am missing out on part of my children’s lives.
In addition to this, I want to be able to have sex and be intimate with my wife. Our sex life has absolutely gone downhill recently and I want to change that. I want to be able to keep up and do the intimate things I love with her. I can’t do that right now. Level 1 is not the place for that, I have no energy, no stamina, and almost no sex drive. I will summarize this part too: I am missing out on part of my life with my wife.
Third Why: Oh….
This why is something that I was aware of, but refused to admit to myself. It has always been there, following me, interfering with my life, hanging over me like my own personal rain cloud who enjoyed nothing more than casting a shadow over the good things. So here we go, my admittance and third why.
I fucking hate myself.
There. I said it. My final why is that I want to wake up in the morning and look in the mirror without being completely repulsed by the person who looks back. I want to be able to walk around the store and not be completely winded. That is humiliating. I want to go through my life without seeing the looks on people’s faces when I walk past them. The looks that they give me, wondering how I managed to get as fat as I am. Staring at me like I am a disgrace to society. Yeah, I see the looks, hear the comments. I don’t want that anymore. I don’t want going to the grocery store to be a constant battle to keep my breath and ignore the people around me. I don’t want to be depressed when I see myself. I no longer want to tolerate having a list of things that I can’t do, I want to enjoy the list of things that I CAN do.
Thanks for reading and wish me luck.
| 0non-cybersec
| Reddit |
MRW I get my grades back vs everyone I know. | 0non-cybersec
| Reddit |
I made cookies for everyone sorting by new♡. | 0non-cybersec
| Reddit |
Crashlytics git management. <p>I'm running into an issue where branch merging fails because Crashlytics binaries are changing. I added Crashlytics to the gitignore, but now the framework doesn't show up if I checkout branches anymore.</p>
<p>Is there a way to deal with the merge conflicts or a way to tell git to ignore changes to the file, but keep the file itself?</p>
| 0non-cybersec
| Stackexchange |
BASEketball. A great movie from the creators of Southpark.. | 0non-cybersec
| Reddit |
Your Brain on Computers - Attached to Technology and Paying a Price - NYTimes.com. | 0non-cybersec
| Reddit |
How were muslims treated in colonial America?. I ask this because I'm a muslim living in America (Virginia if that would help answer the question) and I've always wondered what peoples reaction would be to me if I ever magically teleport to the colonial times. | 0non-cybersec
| Reddit |
Excavator depositing a load. | 0non-cybersec
| Reddit |
Sports game-Flick Soccer 3D. | 0non-cybersec
| Reddit |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.