text
stringlengths 3
1.74M
| label
class label 2
classes | source
stringclasses 3
values |
|---|---|---|
Evaluating $\int_{0}^{1} \frac{\ln^{n} x}{(1-x)^{m}} \, \mathrm dx$. <p>On another site, someone asked about proving that</p>
<p>$$ \int_{0}^{1} \frac{\ln^{n}x}{(1-x)^{m}} \, dx = (-1)^{n+m-1} \frac{n!}{(m-1)!} \sum_{j=1}^{m-1} (-1)^{j} s (m-1,j) \zeta(n+1-j), \tag{1} $$</p>
<p>where $n, m \in \mathbb{N}$, $n \ge m$, $m \ge 2$, and $s(m-1,j)$ are the <a href="https://en.wikipedia.org/wiki/Stirling_numbers_of_the_first_kind" rel="nofollow noreferrer">Stirling numbers of the first kind</a>.</p>
<p><strong>My attempt at proving $(1)$</strong>:</p>
<p>$$ \begin{align}\int_{0}^{1} \frac{\ln^{n}x}{(1-x)^{m}} \, dx &= \frac{1}{(m-1)!} \int_{0}^{1} \ln^{n} x \sum_{k=m-1}^{\infty} k(k-1) \cdots (k-m+2) \ x^{k-m+1} \ dx \\ &= \frac{1}{(m-1)!} \sum_{k=m-1}^{\infty} k(k-1) \cdots (k-m+2) \int_{0}^{1} x^{k-m+1} \ln^{n} x \, dx \\ &= \frac{1}{(m-1)!} \sum_{k=m-1}^{\infty} k(k-1) \cdots (k-m+2) \frac{(-1)^{n} n!}{(k-m+2)^{n+1}}\\ &= \frac{1}{(m-1)!} \sum_{k=m-1}^{\infty} \sum_{j=0}^{m-1} s(m-1,j) \ k^{j} \ \frac{(-1)^{n} n!}{(k-m+2)^{n+1}} \\ &= (-1)^{n} \frac{n!}{(m-1)!} \sum_{j=0}^{m-1} s(m-1,j) \sum_{k=m-1}^{\infty} \frac{k^{j}}{(k-m+2)^{n+1}} \end{align} $$</p>
<p>But I don't quite see how the last line is equivalent to the right side of $(1)$. (Wolfram Alpha does say they are equivalent for at least a few particular values of $m$ and $n$.)</p>
| 0non-cybersec
|
Stackexchange
|
Baby hedgehog in a cup [x-post from /r/perfectfit].
| 0non-cybersec
|
Reddit
|
Few pictures taken while gardening this week..
| 0non-cybersec
|
Reddit
|
nginx + php 5.6 serving empty pages, can't find error log. <p>I have accidentally hosed a VPS which was hosting a website using nginx and PHP 5.6, and I'm attempting to recreate things on a new server running Ubuntu 18.04 (previous one was 12.04 - upgrade failed badly). Because of compatibility issues I have to use an older 5.x PHP version. I have got things working so that a simple test page is working. But in any of the pages using the Couch PHP CMS package, I'm seeing a completely empty page and a 500 error recorded in the nginx access.log, but nothing in the nginx error.log, nor in php5.6-fpm.log or syslog. So where might errors be written to? I'm hoping that if I can actually see what is causing the 500 error it should be easy enough to fix.</p>
| 0non-cybersec
|
Stackexchange
|
Python path is not recognized after adding a new variable under environment variables, picture provided. <blockquote>
<p><code>'python' is not recognized as an internal or external command, operable program or batch file.</code></p>
</blockquote>
<p>My Python folder is directly in <code>C:\python34</code>.</p>
<p>Please look at the picture:<br>
<img src="https://i.stack.imgur.com/h4Hl3.png" alt="enter image description here"></p>
<p>What am I doing wrong?</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 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
|
The Almost Ultimate Guide to the Scottish Highlands.
| 0non-cybersec
|
Reddit
|
Stereo-Camera: How do Bundle Adjustment and projective ambiguity fit together?. <p>In the book <em>Multiple View Geometry in Computer Vision</em> Hartley and Zisserman write that given a stereo image pair, the viewed scene can only be reconstructed under projective ambiguity, i.e. is a projective transformation away from the true scene, no matter how many corresponding landmark matches are given.</p>
<p>When using Bundle Adjustment to find extrinsic + intrinsic camera parameters and the 3D coordinates of the scene, how can I be sure that the given values are meaningful? I know Bundle Adjustment is used for e.g. autocalibration, but the computed combination of parameters and coordinates could be wrong and just result in the same image. How is this solved in real applications?</p>
| 0non-cybersec
|
Stackexchange
|
I took in a stray cat and she ended up being pregnant. The babies are three weeks now.. I finally got a good picture of one of them!.
| 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
|
Windows version of the awesome "learn by doing" Linux Administration checklist?. TL;DR: Looking for a Windows Administration version of the [Linux Administration checklist](https://www.reddit.com/r/linuxadmin/comments/2s924h/how_did_you_get_your_start/cnnw1ma) that /u/IConrad wrote.
There have been a few posts answering the question "how can I get started with Linux?" with different approaches: blogs, video series, certifications, etc. One unique approach I saw didn't bother with linking tutorials; instead, it was a list of tasks; how you learned to perform each task was up to you, but the list provided a path to learning about the Linux ecosystem and the different parts. I loved this idea (presented by user IConrad in [this comment](https://www.reddit.com/r/linuxadmin/comments/2s924h/how_did_you_get_your_start/cnnw1ma)) because there are people whose challenge isn't learning a particular task, rather they have difficulty learning when following a traditional curriculum.
Does such a task list exist for Windows?
| 0non-cybersec
|
Reddit
|
Bacon cupcake you say? ( Guinness Choc cupcake with bacon maple frosting and candied bacon garnish) My proudest creation..
| 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
|
Something's weird about the storage unit next to my friends unit...
| 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
|
AITA that I don't want to go to my mother-in-law's house every single Sunday?. So I'd consider myself a loving husband and we have a mostly good relationship. There are quirks to it, but it's fine with me. But one big quirk is that she goes to her mom's house religiously on Sunday's like a born again Christian going to church, except she is there all day. Like she wakes up, heads out, and stays all day until it's time to sleep.
I go with her most times just to spend time together but it's honestly exhausting for me. I don't care for her mom. She's alright to me, she is just not a good person to other people. Very self serving and I can't respect her for it. Let alone do I want to spend a whole day out of every one of my weeks with her.
I've vocalized that I would rather us stay home or just do something together. But she's very defensive over spending the day with her mom. Fine...but I work nights and she works days, and we have different days off... So I like to spend Sunday days with her so that we can help make the marriage work. So I just go 90% of the time.
Now, the 10% of the time that I don't go, I always get something in return from the mom. Like a "oh he must not love me or something!" Kind of act. And she kind of does it a little tongue-in-cheek...But the way she has a grip over her daughter, my wife, I think in her head she's being serious about it. I'm sick of it.
I'm sitting in my car waiting for them to get back to her mom's house now because I guess they went out together, and I spent lunch with my mom for her birthday. My wife didn't want to go to lunch for my mom's birthday...would rather hang out with her mom...fine.
| 0non-cybersec
|
Reddit
|
Best way to escape and unescape strings in Ruby?. <p>Does Ruby have any built-in method for escaping <em>and</em> unescaping strings? In the past, I've used regular expressions; however, it occurs to me that Ruby probably does such conversions internally all the time. Perhaps this functionality is exposed somewhere.</p>
<p>So far I've come up with these functions. They work, but they seem a bit hacky:</p>
<pre><code>def escape(s)
s.inspect[1..-2]
end
def unescape(s)
eval %Q{"#{s}"}
end
</code></pre>
<p>Is there a better way?</p>
| 0non-cybersec
|
Stackexchange
|
Almost captured a great father daughter picture....
| 0non-cybersec
|
Reddit
|
How to create a table with multiple rows in one row (Material-UI/CSS). <p>I have the array like this :</p>
<pre><code>const sample = [
{ name: 'apple', detail: [{'a', 'b'}]},
{ name: 'banana', detail: [{'a', 'b'}]},
];
</code></pre>
<p>Let's say I want to create a table looks like the following attachment:</p>
<p><a href="https://i.stack.imgur.com/EKFN8.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/EKFN8.png" alt="enter image description here"></a></p>
<p>That's the table body part, and I have put all the details in inside of . It's creating the table as I expected but the size is really narrow and also doesn't match with the table head.</p>
<p>I was wondering if there's a smart way to have <strong>map multiple data in a row and embed in one table cell.</strong></p>
<p><strong>The name part (which are apple and banana) must be the first table cell with row span.</strong></p>
| 0non-cybersec
|
Stackexchange
|
Yeah just let me go from far right to far left.
| 0non-cybersec
|
Reddit
|
Setting up a Nginx config file with php-fpm results in 502 bad gateway. <p>I'm following <a href="http://www.wpmayor.com/step-by-step/ultimate-guide-setting-wordpress-vps-part-2/" rel="nofollow noreferrer">a guide to set up a ubuntu VPS</a> as a nginx webserver for wordpress.</p>
<p>When setting up Nginx and PHP the guide I'm using suggests I uncomment this line in <code>/etc/nginx/sites-available/default</code>:</p>
<pre><code>fastcgi_pass 127.0.0.1:9000;
</code></pre>
<p>Having done this, although the server's welcome page works, I get a 502 bad gateway error when going to a php file I created (containing phpinfo)</p>
<p>However, when I uncomment this line instead:</p>
<pre><code>fastcgi_pass unix:/var/run/php5-fpm.sock;
</code></pre>
<p>The php file appears to load successfully</p>
<p>Can anyone explain what each line does and why the one I used works but the one in the tutorial does not?</p>
| 0non-cybersec
|
Stackexchange
|
[Pic] Wendy's lettuce-wrapped burger. Pitiful..
| 0non-cybersec
|
Reddit
|
gcd , lcm problem with divisibility application. <p>How should i prove that $ab|(a,b)[a,b]$ ?
Here $(a,b)=gcd(a,b)$ and $[a,b]=lcm(a,b)$.
I tried and got an answer as $\frac{ab}{(a,b)}|[a,b]$. then i can also proceed as $[a,b]=(a,b)^2\frac{k}{ab}$. ;here k is an positive integer.Can i reach my answer from here?</p>
| 0non-cybersec
|
Stackexchange
|
cannot find import; DLL may be missing, corrupt, or wrong version. Wine kernel32.dll error?. <p>I'm trying to install hard drive wiping software that was written for windows. I have downloaded wine and get through most of the installation process until the program tries to open. It is here where I receive the error message:</p>
<pre><code>cannot find import; DLL may be missing, corrupt, or wrong version
File "KERNEL32.dll", function "DeleteVoloumePointW" (error 0)
</code></pre>
<p>Is there any way to fix this?</p>
<p>Any suggestions are appreciated, thanks.</p>
| 0non-cybersec
|
Stackexchange
|
The Odeon of Herodes Atticus, a stone theatre structure located on the southwest slope of the Acropolis of Athens, Greece..
| 0non-cybersec
|
Reddit
|
Top 5 Tips to speed up your browser.
| 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
|
Creating a WiFi Access Point with a New IP Space. <p>I just moved into a dorm where each room gets a limited range of IP addresses to connect their devices to. For the sake of comfort (I don’t want to assign fixed IP addresses to each of my devices), I would like to set up some kind of switch or repeater that I can connect to with an automatic IP.</p>
<p>I’ve already tested it with the “Create Hotspot” function in Windows 10 and it works perfectly. Now I need some advice on which physical device can create that behaviour and how to set it up.</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
|
Lucky Fishbones Snipe.
| 0non-cybersec
|
Reddit
|
Sum of sines and their products. <p>Let $g(m,n)$ be defined by </p>
<blockquote>
<p>$$g(m,n):=\begin{cases}
\sin ^2(m) & \text{if} \ m=n & \\
\sin (n)-\sin (m) & \text{otherwise}
\end{cases}
$$</p>
</blockquote>
<p>Is it possible to prove by Lagrange interpolation, or otherwise that </p>
<blockquote>
<p>$$\sum _{n=1}^{\infty } \sin (\sin (n)) \prod _{m
=1}^{\infty } \frac{\sin (m)}{g(n,m)}=1$$</p>
</blockquote>
<p>The product is not well-behaved meaning it oscillates, but if the two expressions are increased together the given value is reached...What can be said about such a series? I'm sorry if the question is too obscure.</p>
| 0non-cybersec
|
Stackexchange
|
Location of Speakers on MacBook Pro Retina, 13-inch. <p>This sounds obvious, but I've looked all over the internet and haven't been able to find a simple answer telling me where the sound comes out of on a 13-inch Retina MacBook Pro (late 2012). All I can see on the laptop itself are a bunch of vents at the connection between the screen and the keyboard, some longer vents on the left and right sides of the laptop's bottom, and the gaps between the keys themselves. Anyone have a clue?</p>
| 0non-cybersec
|
Stackexchange
|
Chapel: The Best Card in Dominion (x-post from /r/dominion).
| 0non-cybersec
|
Reddit
|
What would $ab$ be when $f(x)$ has a limit at $+\infty$. <p>Reviewing Calculus, I am facing the problem:</p>
<blockquote>
<p>if</p>
<p><span class="math-container">$$f(x)= \begin{cases} \sqrt[3]{x^2-8x^3}+ax+b,& \text{if } x\in\mathbb Q\\\\x\sin\big(\frac{1}{x}\big),& x\in \mathbb R-\mathbb Q \end{cases}$$</span>
has a limit at <span class="math-container">$ +\infty$</span>, what would <span class="math-container">$ab$</span> be?</p>
</blockquote>
<p>I doubted if I could treat this function as other piecewise function with some known domains (like <span class="math-container">$-7<x \leq 3$</span>) or not? When I referred to the answer, it gave me another approach which admitted my guess and <strong>is</strong> my question.</p>
<blockquote>
<p>Let the functions <span class="math-container">$f_1(x)$</span> and <span class="math-container">$f_2(x)$</span> have limits on <span class="math-container">$\mathbb R$</span> when <span class="math-container">$x\to +\infty$</span> so the function:</p>
<p><span class="math-container">$$f(x)= \begin{cases} f_1(x),& x\in\mathbb Q\\\\f_2(x),& x\in \mathbb R-\mathbb Q \end{cases}$$</span>
has limit at <span class="math-container">$+\infty$</span> if <span class="math-container">$\lim_{x\to +\infty}f_1(x)=\lim_{x\to +\infty}f_2(x)$</span></p>
</blockquote>
<p>May I ask someone explain this hint? Thanks.</p>
| 0non-cybersec
|
Stackexchange
|
HP Proliant DL120 G6 NIC fault. <p>HP Proliant DL120 G6
Four NICs
ETH0 for VoIP
ETH1 for internet and firewall
(first two on-board)
ETH2 for link with local LAN
ETH3 bri card
(last two PCIe)</p>
<p>Symptoms: All NICs are running ok after boot. Few hours later, ETH1 claims link is down. Plug/unplug cable changes nothing. Rebooting server solves ETH1 link, until now.
Now, ETH1 is not recognized and ETH3 is recognized as ETH1. Restarting network services solves nothing. </p>
<p>Is this 100% hardware problem? Where to go to troubleshoot?</p>
| 0non-cybersec
|
Stackexchange
|
Too distracted on the boat.
| 0non-cybersec
|
Reddit
|
Import or not to import classmethod?. <p>I hope this isn't a stupid question but I found some code where they imported <code>classmethod</code> and some code where they don't so there is difference? </p>
<p>I'm using python 3.6 but the code originally I think was for python 2.7 (it used <code>from __builtin__ import</code>)</p>
<pre><code>import unittest
from selenium import webdriver
from builtins import classmethod #original code was from __builtin__ import classmethod
class HomePageTest(unittest.TestCase):
@classmethod
def setUp(cls):
# create a new Firefox session
cls.driver = webdriver.Firefox()
cls.driver.implicitly_wait(30)
cls.driver.maximize_window()
# navigate to the application home page
cls.driver.get("http://demo-store.seleniumacademy.com/")
def test_search_field(self):
pass
#My tests without @classmethod
@classmethod
def tearDown(cls):
# close the browser window
cls.driver.quit()
if __name__ == '__main__':
unittest.main(verbosity=2)
</code></pre>
| 0non-cybersec
|
Stackexchange
|
What are some decent news sources for someone interested in global and economic news without having to sift through a bunch of crap?.
| 0non-cybersec
|
Reddit
|
Optical Processing Pioneer wins Project with DARPA.
| 0non-cybersec
|
Reddit
|
Is the function $f(x,y) = xy$ (quasi) concave or (quasi) convex?. <blockquote>
<p>Is the function $f(x,y) = xy$ (quasi) concave or (quasi) convex?</p>
</blockquote>
<p>I start by finding the Hessian matrix, which is $H = \begin{bmatrix}
0 &1 \\
1 &0
\end{bmatrix}$. </p>
<p>Then I ask myself if the matrix is negative semi-definite or positive semi-definite. </p>
<p>We have $x'Hx = \begin{bmatrix}
x_{1}&x_{2}
\end{bmatrix}\begin{bmatrix}
0 &1 \\
1 &0
\end{bmatrix}\begin{bmatrix}
x_{1}
&x_{2}
\end{bmatrix} = 2 x_{1} x_{2} $</p>
<p>Since in general $2 x_{1} x_{2}$ can have any sign, we cannot say whether the function is (quasi)convex or (quasi)concave. </p>
<p>Is this correct? </p>
| 0non-cybersec
|
Stackexchange
|
Midnight in Paris. Oil on Canvas, 18 x 24 in..
| 0non-cybersec
|
Reddit
|
React-native modal dialog hides custom keyboard. <p>We're using a <a href="https://github.com/3sidedcube/react-native-custom-keyboard" rel="noreferrer">custom keyboard</a> in react-native which works fine (this is android only, no iOS needed here), but has a problem when used together with a modal dialog.</p>
<p>As shown on the screen shot below, the keyboard pops up <em>below</em> the modal, making it impossible to input any value. We've tried several options for modal components, including the default react-native Modal component, but they all give the same result.</p>
<p>This <a href="https://stackoverflow.com/questions/16144608/custom-keyboard-on-custom-dialog-android#comment26530326_16144672">SO comment on a similar issue</a> made me think it could have to do with the flags set on the modal dialog as explained <a href="https://developer.android.com/reference/android/app/Dialog.html" rel="noreferrer">here</a>:</p>
<blockquote>
<p>Often you will want to have a Dialog display on top of the current input method, because there is no reason for it to accept text. You can do this by setting the WindowManager.LayoutParams.FLAG_ALT_FOCUSABLE_IM window flag (assuming your Dialog takes input focus, as it the default) with the following code:</p>
</blockquote>
<pre><code> getWindow().setFlags(WindowManager.LayoutParams.FLAG_ALT_FOCUSABLE_IM,
WindowManager.LayoutParams.FLAG_ALT_FOCUSABLE_IM);
</code></pre>
<p>But when we use a standard android keyboard, it shows above the modal as expected, so that does not seem to be the problem.
The keyboard is in fact started as a separate RN app with this:</p>
<pre><code>rootView.startReactApplication(
((ReactApplication) activity.getApplication()).getReactNativeHost().getReactInstanceManager(),
"CustomKeyboard",
bundle);
final float scale = activity.getResources().getDisplayMetrics().density;
RelativeLayout.LayoutParams lParams = new RelativeLayout.LayoutParams(ViewGroup.LayoutParams.MATCH_PARENT, Math.round(216*scale));
lParams.addRule(RelativeLayout.ALIGN_PARENT_BOTTOM, RelativeLayout.TRUE);
layout.addView(rootView, lParams);
</code></pre>
<p>and it is then shown upon focusing the text input with:</p>
<pre><code>activity.addContentView(keyboard, new ViewGroup.LayoutParams(ViewGroup.LayoutParams.MATCH_PARENT, ViewGroup.LayoutParams.MATCH_PARENT));
</code></pre>
<p>I don't know android, but I suspect I need to pass some extra params like <a href="https://developer.android.com/reference/android/view/WindowManager.LayoutParams.html" rel="noreferrer">these</a> when creating the content view to ensure it can rise above my modals. Am I on the right track? Any hints as to what those params might be?</p>
<p>EDIT:
Here's a part of the relevant code (I think). <code>react-native-modal</code> is <a href="https://github.com/react-native-community/react-native-modal" rel="noreferrer">this one</a>, but using react-native's default modal component gives the same result:</p>
<pre><code>import Modal from 'react-native-modal';
...(parent component code)...
render() {
...
<Modal isVisible={this.state.isShowingDialog}>
...(modal box content, all inside a <View>)...
</Modal>
...
}
</code></pre>
<p><a href="https://i.stack.imgur.com/cbUaG.png" rel="noreferrer"><img src="https://i.stack.imgur.com/cbUaG.png" alt="enter image description here"></a></p>
| 0non-cybersec
|
Stackexchange
|
Just playing a round of bubbleball.
| 0non-cybersec
|
Reddit
|
Cohen Responds to Message Sent by National Enquirer Cover.
| 0non-cybersec
|
Reddit
|
[Question]Sites like mojoupgrade but more in-depth?. Can someone please recommend a questionnaire site like [mojoupgrade](http://mojoupgrade.com) but more in depth, with more kinks/fetishes? Does such a thing exist?
We used mojoupgrade and loved it, but would love to find a questionnaire with more things to choose from.
| 0non-cybersec
|
Reddit
|
General algorithm to cap an n-dimensional convex polyhedra. <p>I am looking for a way to cap an $n$-dimensional ($n$ > 3) polyhedra, that is to say:</p>
<blockquote>
<p>Given an $n$ dimensional set of vertices and faces (including hyperplane equation), and an $n$ dimensional plane, output the set of points that are both inside the original polyhedron and "below" the plane.</p>
</blockquote>
<p>I looked around and saw two interesting papers, both only handling 3-dimensional input. (<a href="http://arizona.openrepository.com/arizona/handle/10150/282193" rel="nofollow">one thesis</a>, and one <a href="http://dl.acm.org/citation.cfm?id=988050" rel="nofollow">SIGGRAPH paper</a>).</p>
<p>In my case, I suppose I could use the generic approach of using double description, i.e. enumerating the vertices of the polyhedron described by my original set of hyperplanes and the new plane equation, but it seems to me that I would do the work twice.</p>
<p>Is there another documented approach that I could use ?</p>
| 0non-cybersec
|
Stackexchange
|
CoinMe Issue Clarification of Transaction?. <p>I made a withdrawal from a CoinMe wallet online to the BTC address 379h4LPA9fGBw6p2zEKnNhCSfayzETdtka for 500.00 however the remainder from that wallet was transferred to this wallet address 1ZX2pmcSNfnpchnBFktZmSy9inDkjnpAW 1824.51. Coinme is now saying , after locking my account, immediately after 500.00 transaction that I have no balance as it was transferred out. How could that happen ? How could my 500.00 withdrawal to one address then split make two payments. Their screens do not offer that as an option. the 500.00 landed safe and sound. why did it take the rest and send to 1ZX2pmcSNfnpchnBFktZmSy9inDkjnpAW . I have attempted to research on my own but cannot understand. I don't understand what to do. Coinme is insisting that I transferred the entire amount to two serperate wallets. My hunch is that remainder of my funds were simply moved to another coinme account and my "delightful customer service rep understands even less than I do. 5 Days before XMAS with a 10 year old. Originally they put a "check" in the mail. LOL I need to know what happeened and why. Is there anyone that can explain this to me.. Please </p>
| 0non-cybersec
|
Stackexchange
|
Backbone.js event after view.render() is finished. <p>Does anyone know which event is fired after a view is rendered in backbone.js?</p>
| 0non-cybersec
|
Stackexchange
|
Error publishing to Tomcat v6.0 Server at localhost. <p>I wave problem with Tomcat when I try to run a jsf page, I get next error:</p>
<p><img src="https://i.stack.imgur.com/0OI3M.png" alt="enter image description here"></p>
<p>Details:</p>
<pre><code> Publishing the configuration...
Error copying file to C:/Program Files/Apache Software Foundation/Tomcat6.0/backup\catalina.policy: C:\Program Files\Apache Software Foundation\Tomcat 6.0\backup\catalina.policy (The system cannot find the path specified)
C:\Program Files\Apache Software Foundation\Tomcat 6.0\backup\catalina.policy (The system cannot find the path specified)
Error copying file to C:/Program Files/Apache Software Foundation/Tomcat 6.0/backup\catalina.properties: C:\Program Files\Apache Software Foundation\Tomcat 6.0\backup\catalina.properties (The system cannot find the path specified)
C:\Program Files\Apache Software Foundation\Tomcat 6.0\backup\catalina.properties (The system cannot find the path specified)
Error copying file to C:/Program Files/Apache Software Foundation/Tomcat 6.0/backup\context.xml: C:\Program Files\Apache Software Foundation\Tomcat 6.0\backup\context.xml (The system cannot find the path specified)
C:\Program Files\Apache Software Foundation\Tomcat 6.0\backup\context.xml (The system cannot find the path specified)
Error copying file to C:/Program Files/Apache Software Foundation/Tomcat 6.0/backup\server.xml: C:\Program Files\Apache Software Foundation\Tomcat 6.0\backup\server.xml (The system cannot find the path specified)
C:\Program Files\Apache Software Foundation\Tomcat 6.0\backup\server.xml (The system cannot find the path specified)
Error copying file to C:/Program Files/Apache Software Foundation/Tomcat 6.0/backup\tomcat-users.xml: C:\Program Files\Apache Software Foundation\Tomcat 6.0\backup\tomcat-users.xml (The system cannot find the path specified)
C:\Program Files\Apache Software Foundation\Tomcat 6.0\backup\tomcat-users.xml (The system cannot find the path specified)
Error copying file to C:/Program Files/Apache Software Foundation/Tomcat 6.0/backup\web.xml: C:\Program Files\Apache Software Foundation\Tomcat 6.0\backup\web.xml (The system cannot find the path specified)
C:\Program Files\Apache Software Foundation\Tomcat 6.0\backup\web.xml (The system cannot find the path specified)
</code></pre>
<p>Who have same error? How to solve it? I try few hours, but no result :(</p>
<p>I have switch the location
And set Use Tomcat installations but
also no result</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 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
|
Run a Script before shutdown or reboot windows 7. <p>I need a registry entry to a run once script at shutdown or reboot.
I needs cleanup sensitive data after an installation.
So even if the installation failed or got interrupted, i may not leave data behind.</p>
<p>The system cant make use of a group policy.
And also i cant put something in the end in my other software-install script.
So in the software-instal script i cannt put in shutdown command.</p>
<p>So it really comes down to some kind of shutdown runonce registry key.</p>
| 0non-cybersec
|
Stackexchange
|
Unable to initiate REISUB sequence on E490 Thinkpad. <p>The E490 Lenovo Thinkpad has no SysRq key. I have found similar posts describing other ways to initiate SysRq button. So far, I have tried these suggested combinations (all while holding left Alt key):</p>
<ul>
<li>Fn + S</li>
<li>Fn + PrtSc</li>
<li>Ctrl + Fn + S</li>
<li>Ctrl + Fn + PrtSc</li>
</ul>
<p>but none of them showed any reaction when pressing down the REISUB sequence (all while still holding left Alt key).
button</p>
<p><em>Note that I also have a BIOS key swap for Crtl and Fn key on this laptop.</em></p>
<p>I am not sure what else shall I try to initiate the REISUB sequence correctly.</p>
<p>OS information:</p>
<pre><code>cat /proc/version
</code></pre>
<p>Linux version 4.19.119-1-MANJARO (gcc version 9.3.0 (Arch Linux 9.3.0-1))</p>
| 0non-cybersec
|
Stackexchange
|
Volterra integral equation with variable boundaries. <p>$$\phi (x)=x+\lambda \int_{a}^{x}(x-y)\phi (y)dy$$</p>
<p>I'm also Trying to solve this integral equation like she does
<a href="https://math.stackexchange.com/questions/404959/solving-an-integral-equation-with-a-separable-kernel/408757#408757">https://math.stackexchange.com/questions/404959/solving-an-integral-equation-with-a-separable-kernel/408757#408757</a>
and I also have some doubts about it. What to do? It's the first time I'm solving something like this, I only learned the matrix and determinant method for usual equation integrals. Can you explain how to solve this equation integrals? I searched the web but didn't get much anything to help me solve this. Thank a lot</p>
| 0non-cybersec
|
Stackexchange
|
how google home app can auto fetch wifi password on android?. <p>As you and I already know, All apps on the android can't read other app's data basically without root. (since sandbox system.)</p>
<p>But recently released google Home app read saved wifi password on the phone and connect device with its password .
How can it be? I couldn't understand this behavior is possible.</p>
<p>I confirmed that works even though I logged out google account.
(It means wifi password is coming from local device's saved configuration).</p>
<p>Google announced that auto fetch feature works after lollipop only.</p>
| 0non-cybersec
|
Stackexchange
|
What is the structure of the Coxeter groups of type $\text{D}_n$. <p>I am curious on the structure of the Coxeter group $G$ of type $\text{D}_n$. Here I let $\{e_1,\cdots,e_n\}$ be the standard basis of the vector space $\mathbb{R}^n$. Then I choose $$r_k=e_{k+1}-e_k~\mbox{for}~1\leqslant k<n~~~\mbox{and}~~~r_n=e_1+e_2$$to be the simple roots of $G$. So we will have the root system $\{e_i\pm e_j \mid i,j=1,\cdots,n~~\mbox{and}~~i\neq j\}$. Denote the reflection of $r_k$ by $\sigma_k$, and the reflection of $e_i+e_j$ by $f_{i,j}$. It is clear that $H:=\langle\sigma_1,\cdots,\sigma_{n-1}\rangle\cong\text{S}_n$ the symmetric group as it represents all the permutations of the standard basis $\{e_1,\cdots,e_n\}$. Then $\sigma_kf_{i,j}\sigma_k^{-1}=f_{i',j'}$ where $i',j'$ are the resulting elements of $i,j$ under the induced permutation of $\sigma_k$. Hence, we can think of $H$ acting on the set $\{f_{i,j} \mid \mbox{all possible}~i,j\}$. But then what is the next to deduce the explicit structure of $G$?</p>
| 0non-cybersec
|
Stackexchange
|
Even gym leaders are on Tinder.
| 0non-cybersec
|
Reddit
|
The guys on the right.
| 0non-cybersec
|
Reddit
|
Shift Modulo Operation. <p>Shift Modulo Operation</p>
<p>Let positive integer <span class="math-container">$m$</span> be a base and function <span class="math-container">$f(x,m)$</span> is defined over positive integers <span class="math-container">$x,m$</span> such that</p>
<ul>
<li><p><span class="math-container">$f(x, m) = x$</span>, <strong>if</strong> <span class="math-container">$x < m$</span></p>
</li>
<li><p><span class="math-container">$f(x, m) = f( \lfloor x/m \rfloor + x \% m, m)$</span>, <strong>if</strong> <span class="math-container">$x \ge m$</span></p>
</li>
</ul>
<p>Without <span class="math-container">$\lfloor x/m \rfloor$</span>, the function <span class="math-container">$f$</span> is the same as the Traditional Modulo Operation.</p>
<p>This function is interesting and may have some properties, here is the <strong>question</strong>.</p>
<p><strong>Prove (or disprove) that for any two primes <span class="math-container">$p, q ~ (p<q) $</span>, let <span class="math-container">$m = q+1$</span>, the numbers <span class="math-container">$\{ f(k p,m) | ~0 < k < m, k \in \mathbb{N} \}$</span> are distinct.</strong></p>
<p>In other words, <span class="math-container">$p$</span> represents a permutation.</p>
<p>For example, <span class="math-container">$p = 5, q = 7, m = 8$</span></p>
<p><span class="math-container">$\{ f(k p,m) | ~0 < k < m, k \in \mathbb{N} \}$</span> =
<span class="math-container">$\{ 5, 3, 1, 6, 4, 2, 7 \}$</span></p>
| 0non-cybersec
|
Stackexchange
|
Goodnight, sweet prince. [City of Heroes].
| 0non-cybersec
|
Reddit
|
I found this and thought r/creepy would like it..
| 0non-cybersec
|
Reddit
|
Disable Dash searching for files. <p>I've looked fairly extensively, so I hope this isn't a duplicate.</p>
<p>I'm wondering how to disable the Dash search from searching for individual files; I am fine with searching for folders and applications, but searching for individual files in the dash can be obnoxious sometimes.</p>
| 0non-cybersec
|
Stackexchange
|
Happy 13th Birthday to Halo 2. It's already been 13 years!
How many of us were at that midnight launch?
How many of us got Xbox Live that night and stayed up waaaaay past their bedtime?
[Behind the Scenes Making of Halo 2 ](https://www.youtube.com/watch?v=0q69Msy8ttM) (53 Minutes)
[Halo 2 - Beyond Single Player, Multiplayer and Live](https://www.youtube.com/watch?v=YGSuPZVgxLg) (6 minutes)
[Halo 2 - E3 2004 Trailer](https://www.youtube.com/watch?v=FmmrT5-WolI) (9 Minutes)
[Halo 2 Tv Spot](https://www.youtube.com/watch?v=fp_U8R-IDhA) (1 minute)
| 0non-cybersec
|
Reddit
|
25F needs advice on 27M (Survivor) regarding consent and links. Hi everyone I need help. My BF and I have been dating two months. We had sex for the first time two weeks ago.
He is a survivor and was r8ped by two women And a man several years ago. He goes to therapy and was open about his drama from day one. I respect that about him. I acknowledge that women are the overwhelmingly majority of victims but a small number are men and they deserve support to.
I really want my BF to be rough with me. I am into free use. I want him to basically decide to ravish my body whenever he wants.
Except he doesn’t feel comfortable doing it. He says it reminds him of his trauma. Which I get.... but I am not doing it to him he would be doing it to me.
He asked his therapist and she recommended no it’s not a good idea. She also recommended that he get consent from me every step of the way. Which he has.
It’s kind of a turn off when he is asking “can I kiss you” or “is it ok to remove your bra”?. Like I get where he is coming from I really do... it’s just not for me.
How can I get him to be more rough? I don’t wanna break up with him BTW so please don’t suggest that! And also no creepy PMs!
Thanks in advance for your ideas and help!
| 0non-cybersec
|
Reddit
|
[Estonia] Biker going 100 mph falls after spotting a police car.
| 0non-cybersec
|
Reddit
|
24h format in the x axis along a whole week. <p>I want to show the evolution of a variable (var) along a week. My data is in a text file (available <a href="https://cloud.cttc.upc.edu/owncloud/index.php/s/pVbAzFb4KLDkgk2" rel="nofollow noreferrer">here</a>). The time data is given in hours as shown in the following plot.</p>
<p><a href="https://i.stack.imgur.com/xCow6.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/xCow6.png" alt="enter image description here"></a></p>
<p>Do you know how to show the time in 24 hours format in the x-axis? I mean following a sequence like 0 6 12 18 0 6 12 18 ... and so on. </p>
<p>I tried to use text labels from the same file (using <code>xtick=data</code> and <code>xticklabels from table={data.dat}{time}</code>). For doing this, it would require to add a new column in the file with the desired format. For the moment I tried by using the same "time" column. However the dataset is too large and the resulting x axis is unreadable (the image is also in the link).</p>
<p>I also tried using <code>x filter/.code={\pgfmathparse{#1-floor(#1/24)*24}}</code>. Unfortunately the different days overlay each other. I guess this is because the filtered data are floats instead of text (the image is also in the link).</p>
<p>Here is my code,</p>
<pre><code>\documentclass{standalone}
\usepackage{tikz,pgfplots}
\begin{document}
\begin{tikzpicture}
\begin{axis}[
ylabel=var,
xlabel=week hour,
xmin=0, xmax=168,
%xtick=data,
%xticklabels from table={data.dat}{time}
%x filter/.code={\pgfmathparse{#1-floor(#1/24)*24}},
]
\addplot[] table [x=time,y=var,col sep=space] {./data.dat};
\end{axis}
\end{tikzpicture}
\end{document}
</code></pre>
<p>Any idea? Thanks!</p>
| 0non-cybersec
|
Stackexchange
|
The Orthopedic/Trauma surgeon and his PA rounding at the hospital today..
| 0non-cybersec
|
Reddit
|
ITAP of the night market in Hong Kong.
| 0non-cybersec
|
Reddit
|
Need advice about talking to my boyfriend about my sexual history.. We've been together for five years.
He found out about six months ago that I have an unusual sexual history. I've not only experimented with women, I've experimented with prostitutes. He found out by accident when a visiting friend brought it up. I hadn't been hiding it from him, I just didn't think to tell him about it. It was more than five years ago and just wasn't anything relevant to who I am now.
My boyfriend reacted badly to the news. There was name calling and lots of accusations. He felt like he couldn't trust me to tell him important things and like I'd been hiding this huge thing from him. I was pissed because of his reaction. It took a while for us to get back to normal.
Its been a while since anything about it has been brought up. Until last week. My boyfriend decided it was important that he know all about all the things I've done. And I'm not sure I can tell him. I'm insecure about it because of his last reaction. I'm embarassed about a lot of it, most of it isn't anything I want to do again and I'm kinda afraid he's going to want to try some things with me. And I know clamming up a bout it will only lead to more arguments.
Is there anything I can do to make this easier on either of us? Do you think he even has a right to be asking for this kind of information, would I be out of line to tell him its an offlimits subject?
| 0non-cybersec
|
Reddit
|
Conditional \if@mainmatter don’t have any effect. <p>I try to make a command who have different behavior depending if it is executed in mainmatter area or not.</p>
<p>So I use the <code>\if@mainmatter</code> command as described in the topic <a href="https://tex.stackexchange.com/questions/218521/checking-the-mainmatter">Checking the mainmatter</a></p>
<p>But, when I use it in the following MWE:</p>
<pre><code>\documentclass{book}
\newcommand\foo{
\makeatletter
\if@mainmatter
{We are on mainmatter}
\else%
{We are \textbf{not} on mainmatter}
\fi%
\makeatother
}
\begin{document}
\frontmatter
lorem ipsum dolor \foo
\mainmatter
lorem ipsum dolor \foo
\end{document}
</code></pre>
<p>I get the following redering:</p>
<blockquote>
<p>lorem ipsum dolor We are <strong>not</strong> on mainmatter</p>
<p>(<em>page break</em>)</p>
<p>lorem ipsum dolor We are <strong>not</strong> on mainmatter</p>
</blockquote>
<p>The command didn’t make at all the difference between mainmatter area and no mainmatter area.</p>
<p>So how to use it to change the behavior of foo command depending on if it is executed on mainmater area or not?</p>
| 0non-cybersec
|
Stackexchange
|
If the characters of two representations are equal, what additional information do we need to conclude they're isomorphic?. <p>Let <span class="math-container">$(\pi,V)$</span> be a finite dimensional complex representation of a group <span class="math-container">$G$</span>. If <span class="math-container">$G$</span> is finite, then <span class="math-container">$\pi$</span> is determined up to isomorphism by its character <span class="math-container">$\chi_{\pi}$</span>. </p>
<p>What about the case where <span class="math-container">$G$</span> is not necessarily finite? I doubt it's still true that <span class="math-container">$\pi$</span> is determined by its character, even up to semisimplification. </p>
<p>If <span class="math-container">$\pi_1, \pi_2$</span> are two semisimple representations of <span class="math-container">$G$</span> with the same character, what other properties would <span class="math-container">$\pi_1$</span> and <span class="math-container">$\pi_2$</span> have to share to conclude they are isomorphic? For example, suppose <span class="math-container">$H$</span> is a subgroup of finite index of <span class="math-container">$G$</span>, and we have not only <span class="math-container">$\chi_{\pi_1} = \chi_{\pi_2}$</span>, but also <span class="math-container">$\pi_1|H \cong \pi_2|H$</span>.</p>
<p>The reason I'm asking is I have a semisimple representation <span class="math-container">$\pi$</span> of a group <span class="math-container">$G$</span> which I believe is isomorphic to some induced representation <span class="math-container">$\operatorname{Ind}_H^G \sigma$</span> for a semisimple representation <span class="math-container">$\sigma$</span> of <span class="math-container">$H$</span>. I know how to directly construct an isomorphism between these guys, but it's very tedious. But it's easy for me to show that their characters are equal and that their restrictions to <span class="math-container">$H$</span> are isomorphic.</p>
| 0non-cybersec
|
Stackexchange
|
How to ask dnsmasq to not allot few IPs. <p>I am running DHCP server using dnsmasq. My DHCP server is configured to provide IP address from a subnet (say 192.168.49.0/24 with a gateway ip of 192.168.49.1)</p>
<p>What i now want is that the DHCP server should not allot few IP from this subnet range. As an example, if i want to reserve IP address from 192.168.49.10-15. How do we do it?</p>
| 0non-cybersec
|
Stackexchange
|
When the truth hurts....
| 0non-cybersec
|
Reddit
|
Reference in LaTeX. <p>For my thesis references, When I run latex, in pdf appear like below</p>
<blockquote>
<p>Aliabadi, M. H. The Boundary Element Method, Applications in Solids and Structures, Vol. 2, J. Wiley, New York, 2002. 4</p>
<p>Baudouin, M. de Buhan, M. and Ervedoza, S. Global Carleman estimates for waves and applications, Communications in Partial Differential Equations, 38, 823-859, 2013. 151, 153</p>
</blockquote>
<p>(numbers 4 for first reference and 151,153 for second reference) are pages when appear those references.</p>
<p>I have used</p>
<pre><code>\bibliographystyle{Classes/jmb}
\renewcommand{\bibname}{References}
\bibliography{References/references}
\addcontentsline{toc}{chapter}{References}
</code></pre>
<p>In thesis.tex</p>
<p>I am not able to delete those numbers (For example this 4,151 and 153) in the end of my Reference. Anyone have any idea?</p>
| 0non-cybersec
|
Stackexchange
|
Professor makes dramatic recovery from back breaking hit and run on his bicycle..
| 0non-cybersec
|
Reddit
|
How to show $\{1/n : n \in\mathbb Z_+\} \subset \mathbb R$ is neither closed nor open. <p>I am getting stuck when I try to think of how would one go about showing that this set below is not closed.</p>
<p><span class="math-container">$X = \{1/n : n \in \mathbb Z_+\} \subset \mathbb R$</span></p>
<p>I know that this set cannot be open, as any finite collection of points in <span class="math-container">$R$</span> is not open.</p>
<p>Additionally, what would happen if we perform the operation <span class="math-container">$X\cup\{0\}$</span>? Would it become a closed set?</p>
| 0non-cybersec
|
Stackexchange
|
My sister (19/f) is going out with a guy (35/m). And as her brother, I find this really, really weird.. I'm not sure if it's just a phase, a normal relationship, a common occurrence, or a potential pedophilia-type situation. But here is the story:
About six months ago, my sis announced that she has a boyfriend, I didn't really care much about the relationship until I found out about that guy's age, which is 35. I'm not a pro on relationships, but according to my experiences and some logical thinking, that doesn't really seem 'right.' My parents (asian, chinese) are sh*tting themselves and I'm just worried about the motives of this particular man. The only info I got on him is that he and my sis hooked up because they met each other through music (she plays the violin and he prolly plays the cello), I don't know much about him as my sister stopped communication for 6 months already, because she claims that my parents have been telling her to 'be careful' and she does not view the guy as a threat, etc, etc.
**TL;DR --> My sis hooked up with a 35 yr old guy, she is 19, something seems fishy. What should I do? Communications have been halted. Advice?**
Edit 1: I'm her younger brother. More info: she is 19 but she looks like a typical 15 year old, asian genes. Pedophile thingy was a request from my parents, I just find the whole thing weird.
**Update 1:** I'm going to sleep now, but I hope to discuss more ideas with you peeps tmr. :D
**Update 2:** Awake now. :D
| 0non-cybersec
|
Reddit
|
How to remove milliseconds in timestamp spark sql. <p>I want to remove the milli seconds part when selecting the column through spark sql.</p>
<p>Ex: 2012-10-17 13:02:50.320</p>
<p>I want the result as 2012-10-17 13:02:50
I tried </p>
<pre><code>spark.sql("select cast(datecol as timestamp) from table
spark.sql("select unix_timestamp(datecol,"yyyy-MM-dd HH:mm:ss") from table
</code></pre>
<p>Both seems not working, substring works but I need timestamp format ,Is there an other way to do it?</p>
<p>Thanks in advance</p>
| 0non-cybersec
|
Stackexchange
|
‘New’ Demonoid D2.vu Quickly Shutdown For Hosting Malware.
| 0non-cybersec
|
Reddit
|
xubuntu 11.10 alpha 3 release?. <p>As far as I know Xubuntu 11.10 Alpha 3 was not released due to some problems with the cd image, but will it be released later or is the beta1 going to be the next development release in 11.10 cycle? I can't find any info about that...</p>
| 0non-cybersec
|
Stackexchange
|
Conditional splitting a string at space. <p>My input vector is</p>
<pre><code>'salesman snow "rain check" "Radio shack"'
</code></pre>
<p>The answer I am looking for is</p>
<pre><code>"salesman" "snow" "rain check" "Radio shack"
</code></pre>
<p>tried</p>
<pre><code> strsplit(vector, " ")
</code></pre>
| 0non-cybersec
|
Stackexchange
|
Our pup's first snow fall.
| 0non-cybersec
|
Reddit
|
Setting up TeXlipse with biblatex. <p>EDITED</p>
<hr>
<p>I'm trying to get biblatex to work in <a href="http://texlipse.sourceforge.net/" rel="nofollow">TeXlipse</a>. My current tex file is: </p>
<pre><code>\documentclass{ut-thesis}
\usepackage[backend=biber]{biblatex}
\addbibresource{thesis.bib}
\degree{Test Degree}
\department{Deparment}
\gradyear{Year}
\author{Author}
\title{UT-Thesis Class File Example}
\setcounter{tocdepth}{2}
\flushbottom
%%%%%%%%%%%% MAIN DOCUMENT %%%%%%%%%%%%
\begin{document}
\begin{preliminary}
\maketitle
\begin{abstract}
\end{abstract}
\tableofcontents
\end{preliminary}
\chapter{Introduction}
\section{Why?}
This is a section \cite{ID}
\addcontentsline{toc}{chapter}{Bibliography}
\printbibliography
\end{document}
</code></pre>
<p>With test.bib containing:</p>
<pre><code>@Article{ID,
author = {Author},
title = {Title},
journal = {journal},
year = {2013}
}
@Article{ID2,
author = {Authors},
title = {Title 2},
journal = {Journal 2},
year = {2013}
}
</code></pre>
<p>But i keep getting the warning:</p>
<pre><code>LaTeX Warning: Empty bibliography on input line 37.
Please (re)run Biber on the file: document.tex
</code></pre>
<p>I am trying to run <code>biber</code> as a manual build program with</p>
<pre><code>Location: C:\Program Files (x86)\MiKTeX 2.9\miktex\bin\biber.exe
Working Directory: ${workspace_loc:/Thesis/tmp}
Arguments: thesis
</code></pre>
<p>I get the following console output:</p>
<pre><code>INFO - This is Biber 1.7
INFO - Logfile is 'thesis.blg'
INFO - Reading 'thesis.bcf'
INFO - Found 1 citekeys in bib section 0
INFO - Processing section 0
INFO - Looking for bibtex format file 'thesis.bib' for section 0
INFO - Found BibTeX data source 'C:/Program Files (x86)/MiKTeX 2.9/bibtex/bib/unswcover/thesis.bib'
WARN - I didn't find a database entry for 'ID' (section 0)
INFO - Overriding locale 'English_United States.1252' default tailoring 'variable = shifted' with 'variable = non-ignorable'
INFO - Sorting 'entry' list 'nty' keys
INFO - No sort tailoring available for locale 'English_United States.1252'
INFO - Writing 'thesis.bbl' with encoding 'ascii'
INFO - Output to thesis.bbl
INFO - WARNINGS: 1
</code></pre>
<p>This program works in Texmaker when i set it up to run</p>
<pre><code>pdflatex > biber > pdflatex > pdflatex
</code></pre>
<p>but I want to get it working in TeXlipse.</p>
| 0non-cybersec
|
Stackexchange
|
Free action of finite cyclic group on $S^3$. <p>I'm starting to read Allen Hatcher's <a href="https://arxiv.org/pdf/math/9909095.pdf" rel="nofollow noreferrer">Space of Knots</a> and at the end of the first paragraph he says that his work would apply to all knots if the following conjecture is true:</p>
<blockquote>
<p>Every free action of a finite cyclic group on $S^3$ is equivalent to a standard linear action.</p>
</blockquote>
<p>The paper is from 1999, so I don't know if this is still a conjecture. Where can I read about it and the progress on it?</p>
<p>I'm also interested in knowing how this conjecture applies to knot theory, in particular to the results Hatcher gives in the paper.</p>
| 0non-cybersec
|
Stackexchange
|
Weather is getting colder, time for some sweet & spicy chili.
| 0non-cybersec
|
Reddit
|
Outlook Not Getting E-mail Unless Restarted. <p>My iPhone and iPad are connected to my Exchange server, and right after an e-mail is sent, both of them light up and receive it.</p>
<p>I also run Outlook 2010 (connected to the same Exchange server), and starting a few days ago it stopped receiving e-mail right after it is sent. Sometimes it will come in 10 minutes late, other times, it won't come in until I restart Outlook. All the e-mail will come in when I restart Outlook.</p>
<p>Any thoughts on what's going on?</p>
<p>Update 1: Here's an image of my connection status:</p>
<p><img src="https://i.stack.imgur.com/W23iS.jpg" alt="enter image description here"></p>
| 0non-cybersec
|
Stackexchange
|
Does anyone have the bigger version of this with no watermark..
| 0non-cybersec
|
Reddit
|
[Image] It's okay to not be okay. It's okay to need help. but don't give up..
| 0non-cybersec
|
Reddit
|
How to set UIButton's Highlight Tint color programmatically?. <p>There is a <code>Highlight Tint</code> option in Interface Builder for <code>UIButton</code>. Is it possible to change it programmatically for all <code>UIButton</code> in iOS 5....using some kind of appearance protocol thing or some other workaround?</p>
| 0non-cybersec
|
Stackexchange
|
Here's to hoping some games leave Development Hell in 2017. Dead Island 2, I'm looking at you
| 0non-cybersec
|
Reddit
|
Space Shuttle Atlantis As it Transits The Sun.
| 0non-cybersec
|
Reddit
|
Drake's 'Views' received a lower score from Pitchfork than Meek Mill's 'Dreams Worth More Than Money'.
| 0non-cybersec
|
Reddit
|
Complexity of an algorithm. <p>I tried to solve the following exercise :</p>
<p>What is the order of growth of the worst case running time of the following code fragment
as a function of N?</p>
<pre><code>int sum = 0;
for (int i = 1; i <= N; i++)
for (int j = 1; j <= i*i; j++)
for (int k = 1; k <= j*j; k++)
sum++;
</code></pre>
<p>and I found that the complexity is O(n^4), however the correct answer is :</p>
<blockquote>
<p>The answer is : N^7</p>
<p>For a given value of i, the body of the innermost loop is executed 1^2 + 2^2 + 3^2 + ... + (i^2)^2 ~ 1/3 i^6 times. Summing up over all values of i yields ~ 1/21 N^7.</p>
</blockquote>
<p>I would like some help to understand this answer and the correct way to calculate complexity in this case.</p>
| 0non-cybersec
|
Stackexchange
|
So, if you're a student (have a .edu email address) you can get Amazon Prime for a year for free.
| 0non-cybersec
|
Reddit
|
Dummies and Dragons - A Revealing Declaration.
| 0non-cybersec
|
Reddit
|
What Happens to the Body After Death.
| 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
|
He gone....
| 0non-cybersec
|
Reddit
|
Repository Pattern with Entity Framework 4.1 and Parent/Child Relationships. <p>I still have some confusion with the Repository Pattern. The primary reason why I want to use this pattern is to avoid calling EF 4.1 specific data access operations from the domain. I'd rather call generic CRUD operations from a IRepository interface. This will make testing easier and if I ever have to change the data access framework in the future, I will be able to do so without refactoring a lot of code.</p>
<p>Here is an example of my situation:</p>
<p>I have 3 tables in the database: <code>Group</code>, <code>Person</code>, and <code>GroupPersonMap</code>. <code>GroupPersonMap</code> is a link table and just consists of the <code>Group</code> and <code>Person</code> primary keys. I created an EF model of the 3 tables with VS 2010 designer. EF was smart enough to assume <code>GroupPersonMap</code> is a link table so it doesn't show it in the designer. I want to use my existing domain objects instead of EF's generated classes so I turn off code generation for the model. </p>
<p>My existing classes that matches the EF model are as follows:</p>
<pre><code>public class Group
{
public int GroupId { get; set; }
public string Name { get; set; }
public virtual ICollection<Person> People { get; set; }
}
public class Person
{
public int PersonId {get; set; }
public string FirstName { get; set; }
public virtual ICollection<Group> Groups { get; set; }
}
</code></pre>
<p>I have a generic repository interface like so:</p>
<pre><code>public interface IRepository<T> where T: class
{
IQueryable<T> GetAll();
T Add(T entity);
T Update(T entity);
void Delete(T entity);
void Save()
}
</code></pre>
<p>and a generic EF repository:</p>
<pre><code>public class EF4Repository<T> : IRepository<T> where T: class
{
public DbContext Context { get; private set; }
private DbSet<T> _dbSet;
public EF4Repository(string connectionString)
{
Context = new DbContext(connectionString);
_dbSet = Context.Set<T>();
}
public EF4Repository(DbContext context)
{
Context = context;
_dbSet = Context.Set<T>();
}
public IQueryable<T> GetAll()
{
// code
}
public T Insert(T entity)
{
// code
}
public T Update(T entity)
{
Context.Entry(entity).State = System.Data.EntityState.Modified;
Context.SaveChanges();
}
public void Delete(T entity)
{
// code
}
public void Save()
{
// code
}
}
</code></pre>
<p>Now suppose I just want to map an existing <code>Group</code> to an existing <code>Person</code>. I would have to do something like the following:</p>
<pre><code> EFRepository<Group> groupRepository = new EFRepository<Group>("name=connString");
EFRepository<Person> personRepository = new EFRepository<Person>("name=connString");
var group = groupRepository.GetAll().Where(g => g.GroupId == 5).First();
var person = personRepository.GetAll().Where(p => p.PersonId == 2).First();
group.People.Add(person);
groupRepository.Update(group);
</code></pre>
<p>But this doesn't work because EF thinks <code>Person</code> is new, and will try to re-<code>INSERT</code> the <code>Person</code> into the database which will cause a primary key constraint error. I must use <code>DbSet</code>'s <code>Attach</code> method to tell EF that the <code>Person</code> already exists in the database so just create a map between <code>Group</code> and <code>Person</code> in the <code>GroupPersonMap</code> table.</p>
<p>So in order to attach <code>Person</code> to the context I must now add an <code>Attach</code> method to my IRepository:</p>
<pre><code>public interface IRepository<T> where T: class
{
// existing methods
T Attach(T entity);
}
</code></pre>
<p>To fix the primary key constraint error:</p>
<pre><code>EFRepository<Group> groupRepository = new EFRepository<Group>("name=connString");
EFRepository<Person> personRepository = new EFRepository<Person>(groupRepository.Context);
var group = groupRepository.GetAll().Where(g => g.GroupId == 5).First();
var person = personRepository.GetAll().Where(p => p.PersonId == 2).First();
personRepository.Attach(person);
group.People.Add(person);
groupRepository.Update(group);
</code></pre>
<p>Fixed. Now I have to deal with another issue where <code>Group</code> is being UPDATE'd in the database every time I create a Group/Person map. This is because in my <code>EFRepository.Update()</code> method, the entity state is explicitly set to <code>Modified'. I must set the Group's state to</code>Unchanged<code>so the</code>Group` table doesn't get modified.</p>
<p>To fix this I must add some sort of <code>Update</code> overload to my IRepository that does not update the root entity, or <code>Group</code>, in this case:</p>
<pre><code>public interface IRepository<T> where T: class
{
// existing methods
T Update(T entity, bool updateRootEntity);
}
</code></pre>
<p>The EF4 implentation of the Update method would look something like this:</p>
<pre><code>T Update(T entity, bool updateRootEntity)
{
if (updateRootEntity)
Context.Entry(entity).State = System.Data.EntityState.Modified;
else
Context.Entry(entity).State = System.Data.EntityState.Unchanged;
Context.SaveChanges();
}
</code></pre>
<p>My question is: Am I approaching this the right way? My Repository is starting to look EF centric as I start to work with EF and the repository pattern. Thanks for reading this long post</p>
| 0non-cybersec
|
Stackexchange
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.