text
stringlengths 3
1.74M
| label
class label 2
classes | source
stringclasses 3
values |
---|---|---|
How to upgrade Homebrew itself (not softwares/formulas installed by it) on macOS 10.12.3?. <p>I have homebrew installed long before the OS is upgraded a few times to 10.12.3. Now that </p>
<pre><code>$ brew --version
Homebrew 0.9.9 (git revision 080c; last commit 2016-08-11)
Homebrew/homebrew-core (git revision b163b; last commit 2016-08-10)
</code></pre>
<p>How to properly upgrade to newer version, say <a href="https://brew.sh/blog/" rel="noreferrer">1.1</a>?</p>
<pre><code>$ brew upgrade
</code></pre>
<p>didn't work.</p>
| 0non-cybersec
| Stackexchange |
I get logged out automatically after a few seconds of logging in (Desktop). <p>I get logged out (not locked out) of my desktop session after logging in on Ubuntu 16.04 LTS</p>
<p>I see the following on <code>/var/log/lightdm/seat0-greeter.log</code></p>
<blockquote>
<pre><code>> [+0.59s] DEBUG: User /org/freedesktop/Accounts/User108 added [+0.59s]
> DEBUG: Connected to Application Indicator Service. [+0.63s] DEBUG:
> menubar.vala:537: Adding indicator object 0xc05400 at position 0
> [+0.66s] DEBUG: menubar.vala:537: Adding indicator object 0xc05560 at
> position 1 [+0.69s] DEBUG: menubar.vala:537: Adding indicator object
> 0xc05820 at position 2 [+0.70s] DEBUG: Request current apps [+0.71s]
> DEBUG: menubar.vala:537: Adding indicator object 0xc052a0 at position
> 3 [+0.77s] DEBUG: unity-greeter.vala:240: starting system-ready sound
> [+0.78s] DEBUG: background.vala:121: Render of background
> /usr/share/backgrounds/warty-final-ubuntu.png complete
>
> ** (unity-settings-daemon:7535): WARNING **: Unable to register client: GDBus.Error:org.freedesktop.DBus.Error.UnknownMethod: No such
> method 'RegisterClient'
>
> (unity-settings-daemon:7535): color-plugin-WARNING **: failed to get
> edid: unable to get EDID for output
>
> (nm-applet:7490): GLib-GObject-WARNING **: invalid unclassed pointer
> in cast to 'GtkWidget'
>
> (nm-applet:7490): Gtk-CRITICAL **: gtk_widget_show: assertion
> 'GTK_IS_WIDGET (widget)' failed
>
> (unity-settings-daemon:7535): color-plugin-WARNING **: unable to get
> EDID for xrandr-Virtual1: unable to get EDID for output [+0.95s]
> DEBUG: Building new application entry: :1.18 with icon:
> nm-device-wired at position 0 [+0.96s] DEBUG: menubar.vala:537: Adding
> indicator object 0xb76a00 at position 4
</code></pre>
</blockquote>
<p><code>/var/lightdm/lightdm.log</code> shows the following right after I log in:</p>
<pre><code>[+644.03s] DEBUG: Continue authentication
[+644.04s] DEBUG: Session pid=7473: Authentication complete with return value 0: Success
[+644.04s] DEBUG: Authenticate result for user user: Success
[+644.04s] DEBUG: User user authorized
[+644.04s] DEBUG: Greeter requests session ubuntu
[+644.04s] DEBUG: Seat seat0: Stopping greeter; display server will be re-used for user session
[+644.04s] DEBUG: Session pid=7425: Sending SIGTERM
[+644.07s] DEBUG: Session pid=7425: Exited with return value 0
[+644.07s] DEBUG: Seat seat0: Session stopped
[+644.07s] DEBUG: Seat seat0: Greeter stopped, running session
[+644.07s] DEBUG: Registering session with bus path /org/freedesktop/DisplayManager/Session3
[+644.07s] DEBUG: Session pid=7473: Running command /usr/sbin/lightdm-session gnome-session --session=ubuntu
[+644.07s] DEBUG: Creating shared data directory /var/lib/lightdm-data/user
[+644.07s] DEBUG: Session pid=7473: Logging to .xsession-errors
[+644.11s] DEBUG: Activating VT 7
[+644.11s] DEBUG: Activating login1 session c13
[+644.11s] DEBUG: Seat seat0 changes active session to c13
[+644.11s] DEBUG: Session c13 is already active
</code></pre>
<p>And then when it logs me out:</p>
<pre><code>[+666.61s] DEBUG: Session pid=7473: Exited with return value 0
[+666.61s] DEBUG: Seat seat0: Session stopped
[+666.61s] DEBUG: Seat seat0: Stopping display server, no sessions require it
[+666.61s] DEBUG: Sending signal 15 to process 7420
[+666.61s] DEBUG: Seat seat0 changes active session to
[+666.62s] CRITICAL: session_get_login1_session_id: assertion 'session != NULL' failed
[+666.97s] DEBUG: Process 7420 exited with return value 0
[+666.97s] DEBUG: DisplayServer x-0: X server stopped
[+666.97s] DEBUG: Releasing VT 7
[+666.97s] DEBUG: DisplayServer x-0: Removing X server authority /var/run/lightdm/root/:0
[+666.97s] DEBUG: Seat seat0: Display server stopped
[+666.97s] DEBUG: Seat seat0: Active display server stopped, starting greeter
[+666.97s] DEBUG: Seat seat0: Creating greeter session
[+666.97s] DEBUG: Seat seat0: Creating display server of type x
[+666.97s] DEBUG: Using VT 7
[+666.97s] DEBUG: Seat seat0: Starting local X display on VT 7
[+666.97s] DEBUG: DisplayServer x-0: Logging to /var/log/lightdm/x-0.log
[+666.97s] DEBUG: DisplayServer x-0: Writing X server authority to /var/run/lightdm/root/:0
[+666.97s] DEBUG: DisplayServer x-0: Launching X Server
[+666.97s] DEBUG: Launching process 8272: /usr/bin/X -core :0 -seat seat0 -auth /var/run/lightdm/root/:0 -nolisten tcp vt7 -novtswitch
[+666.97s] DEBUG: DisplayServer x-0: Waiting for ready signal from X server :0
[+667.12s] DEBUG: Got signal 10 from process 8272
[+667.12s] DEBUG: DisplayServer x-0: Got signal from X server :0
[+667.12s] DEBUG: DisplayServer x-0: Connecting to XServer :0
[+667.12s] DEBUG: Seat seat0: Display server ready, starting session authentication
[+667.12s] DEBUG: Session pid=8277: Started with service 'lightdm-greeter', username 'lightdm'
[+667.13s] DEBUG: Session pid=8277: Authentication complete with return value 0: Success
[+667.13s] DEBUG: Seat seat0: Session authenticated, running command
[+667.13s] DEBUG: Session pid=8277: Running command /usr/lib/lightdm/lightdm-greeter-session /usr/sbin/unity-greeter
[+667.13s] DEBUG: Creating shared data directory /var/lib/lightdm-data/lightdm
[+667.13s] DEBUG: Session pid=8277: Logging to /var/log/lightdm/seat0-greeter.log
[+667.16s] DEBUG: Activating VT 7
[+667.16s] DEBUG: Activating login1 session c14
[+667.16s] DEBUG: Seat seat0 changes active session to c14
[+667.16s] DEBUG: Session c14 is already active
[+667.26s] DEBUG: Greeter connected version=1.18.2 resettable=false
[+667.32s] DEBUG: Greeter start authentication for user
[+667.32s] DEBUG: Session pid=8325: Started with service 'lightdm', username 'user'
[+667.32s] DEBUG: Session pid=8325: Got 1 message(s) from PAM
[+667.32s] DEBUG: Prompt greeter with 1 message(s)
[+667.38s] DEBUG: User /org/freedesktop/Accounts/User108 added
</code></pre>
| 0non-cybersec
| Stackexchange |
Are the new iPads (iPad 3) for sale in the US unlocked for the UK?. <p>I live and work in the UK, but I am in the US for 2 weeks, and was wondering if I buy the new iPad from the Apple Store here in the States, will I be able to replace the AT&T or Verizon SIM with an O2 or T-mobile (UK mobile carriers) SIM? Or are the iPads sold by the Apple Store locked to US based carriers?</p>
| 0non-cybersec
| Stackexchange |
Pipelines with asyncio coroutines. <p>I'm new with asyncio and I'm implemented some kind of pipeline using asyncio coroutines.
The main idea is to have different pipelines with coroutines that are connected to
aggregate information in a payload and after that save the payload in a database.</p>
<pre><code>class ExamplePipeline(PipelineBaseClass):
def __init__(self):
PipelineBaseClass.__init__(self)
self.stages = [get_some_info, build_message,n,..,save_to_db]
self.wrapper = self.connect(self.stages)
def connect(self, stages):
def wrapper(*args, **kwargs):
data_out = yield from stages[0](*args, **kwargs)
for stage in stages[1:]:
data_out = yield from stage(data_out)
return data_out
return wrapper
def run(self, data_in):
asyncio.get_event_loop().run_until_complete(self.wrapper(data_in))
</code></pre>
<p>The functions for each stage are coroutines suppose something like</p>
<pre><code>@asyncio.coroutine
def get_some_info(payload):
payload = call_an_endpoint
return payload
@asyncio.coroutine
def build_message(payload):
#do some logic
return payload
</code></pre>
<p>I have a new requirement in which the build_message co routine in some cases
needs to fork the rest of the pipeline, this is that the rest of the stages
n..save_to_db must be executed x times with different payloads since
build_message.</p>
<pre><code>[get_some_info, build_message -> payload 1 [n, .. , save_to_db]
payload 2 [n, .. , save_to_db]
payload x [n, .. , save_to_db]
</code></pre>
<p>So at finish I have x different messages on the db.</p>
<p>How can I implement my new feature in this context?</p>
| 0non-cybersec
| Stackexchange |
Why are some of the most renown dictators from the beyond the fringes of the countries they come to rule?. Stalin was Georgian, not Russia. Hitler was Austrian, not German. Napoleon was Corsican, not French. Sun Yat-Sen was from Hong Kong, not mainland China.
Does anyone have any theories as to how this seemed to keep popping up in the 19th and 20th centuries? | 0non-cybersec
| Reddit |
Sam Harris discusses science's role in morality with AV Club [crosspost from freethought]. | 0non-cybersec
| Reddit |
Spectrum of compact operator between different Banach spaces. <p>Let $X, Y$ be two different Banach spaces, and let $T: X \to Y$ be a compact linear operator. Suppose the identity $I : X \to Y$ <strong>is well-defined</strong>. (For example, we could have $X = L^2([0,1])$ and $Y = L^1([0,1])$, both equipped with the Lebesgue measure). </p>
<p>Do most/all elementary results in spectral theory hold in that setting? For example, is it true that the spectrum of $T$ is discrete and that the eigenvalues of $T$ only accumulate at $0$? Is there a simple way to see that without reproving the result? Practically all textbooks only deal with the case where $X = Y$...</p>
| 0non-cybersec
| Stackexchange |
How Star Wars should have ended. Awesome fan edit.. | 0non-cybersec
| Reddit |
How to download Ubuntu keyboard layout?. <p>Is there any way to download keyboard layouts available in Ubuntu so I can use them on Windows?
I would like to be able to use the same layouts on both OS, I especially enjoy default Esperano layout and additional arrows in "regular" languages.
It will be nice if the method was a faster one than creating (by coping) a new layout in windows "Keyboard layout Creator" but also not very complicated.</p>
| 0non-cybersec
| Stackexchange |
Prove or disprove that the left inverse of a function $f: X \mapsto X$ if it exists is unique. <p>Prove or disprove that the left inverse of a function $f: X \to X$ if it exists is unique.</p>
<p>Similarly prove or disprove the right inverse of a function $f: X \to X$ if it exists is unique.</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 |
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 |
Non Deterministic Results Using GPUs with Tensorflow and Tensorflow Serving . .. Why?. <p>We have an object detection model developed in Tensorflow (1.10 and 1.3) that uses a standard CNN and some extra layers. We host the model in Tensorflow Serving 1.13.0 using a saved model format, on Nvidia Tesla V100 GPUs with Cuda 10 and CUDNN 7.4.x. (We use the Google containers images and/or dockerfiles for Tensorflow serving.) </p>
<p>We run unit tests to ensure that prediction results are what we expect. These all work great on CPU. But when we run them on the above GPU/CUDA/CUDNN configuration, we get differences in the prediction probabilities ranging from .001 to .0005.</p>
<p>Our goals are to understand:</p>
<ul>
<li>why this happens?</li>
<li>is there anything we can do to prevent it?</li>
<li>If there is something we can do to prevent it, does that entail some sort of trade off, such as performance?</li>
</ul>
<p>We have tried the following experiments:</p>
<ol>
<li><p>Multiple runs of the same model on tensorflow GPU using checkpoint with batchsize of 1 </p>
<ul>
<li>results identical </li>
</ul></li>
<li><p>Multiple runs of the same model on GPU using checkpoint with various batchsizes</p>
<ul>
<li>results off by .001</li>
</ul></li>
<li><p>Multiple runs of the same model on CPU using checkpoint with various batchsizes</p>
<ul>
<li>results identical </li>
</ul></li>
<li><p>Multiple runs of the same model on tensorflow serviing GPU using checkpoint with batchsize of 1</p>
<ul>
<li>results identical </li>
</ul></li>
<li><p>Comparing runs with checkpoint to runs with saved model on GPU</p>
<ul>
<li>results off by .005</li>
</ul></li>
<li><p>Compare runs with checkpoint to runs with savedmodel on CPU</p>
<ul>
<li>results identical</li>
</ul></li>
<li><p>Experimented with changing the batch_size and setting <code>TF_CUDNN_USE_AUTOTUNE=0</code> on GPU</p>
<ul>
<li>reduces max difference from .001 to .0005</li>
</ul></li>
<li><p>Experimented with adding <code>intra_op_parallelism_threads=1</code>, <code>inter_op_parallelism_threads=1</code> didn’t make any difference when used with <code>TF_CUDNN_USE_AUTOTUNE=0</code></p>
<ul>
<li>results no different than the above</li>
</ul></li>
</ol>
<p>IN SUMMARY: We have a few cases where the results of running inference on GPU are different:</p>
<ol>
<li>Using a checkpoint versus a saved model.</li>
<li>Batchsize = 1 versus various batch sizes</li>
<li>Setting <code>TF_CUDNN_USE_AUTOTUNE=0</code> reduces the difference when using various batch sizes</li>
</ol>
<p>This happens with TF 1.10 AND 1.13.1</p>
<p>Again, our goals are to understand:</p>
<ol>
<li>Why this happens? </li>
<li>Is there anything we can do to prevent it? </li>
<li>If there is something we can do to prevent it, does that entail some sort of trade off, such as performance? </li>
</ol>
| 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 eat well for two weeks on $30 (and be healthy at the same time). | 0non-cybersec
| Reddit |
Dell SecureWorks Opinions Wanted. We're exploring Dell's SecureWorks offerings and I was hoping to get opinions from current customers. We're specifically looking at their AETD Red Cloak and CTU appliance for monitoring devices (FWs, WAFs, routers/switches, Windows/LINUX servers, etc.). Does anyone have experience with these services? In addition to these services, does anyone have any experience with other services such as the managed iSensor IDS/IPS? Thanks in advance for any information. | 1cybersec
| Reddit |
Degreaser separated the letters from the label.. | 0non-cybersec
| Reddit |
Divergence and Gradient integration. <p>Let $f$ a scalar function and $\vec{v}$ a vector function. We can write a product as:</p>
<p>$f \vec{v} = \vec{F}$</p>
<p>If we differentiate the LHS of above equation by the chain rule we can obtain</p>
<p>\begin{align}
\nabla \cdot (f \vec{v}) = f \, \nabla \cdot \vec{v} + \vec{v} \, \nabla f
\end{align}</p>
<p>Integrating we have:</p>
<p>\begin{align}
\int \nabla \cdot (f \vec{v}) = \int f \, \nabla \cdot \vec{v} + \int \vec{v} \, \nabla f
\end{align}</p>
<p>By inner product definition</p>
<p>\begin{align}
\int \mathbf{D} (f \vec{v}) = \langle f, \mathbf{D} \vec{v} \rangle + \langle \vec{v} , \mathbf{G} f \rangle
\end{align}</p>
<p>where $\mathbf{D}$ and $\mathbf{G}$ are the divergent and gradient operators. That lead us to</p>
<p>\begin{align}
\int \mathbf{D} \vec{F} = \langle f, \mathbf{D} \vec{v} \rangle + \langle \vec{v} , \mathbf{G} f \rangle
\end{align}</p>
<p>And by Fundamental Theorem of Calculus</p>
<p>\begin{align}
\left. \vec{F} \right|_{\partial\Omega} = \langle f, \mathbf{D} \vec{v} \rangle + \langle \vec{v} , \mathbf{G} f \rangle
\end{align}</p>
<p>where ${\partial\Omega}$ is the region boundary.</p>
<p>Is that correct?</p>
| 0non-cybersec
| Stackexchange |
Vøringsfossen waterfall in Norway - (Janne Kahila)[1080 x 1272]. | 0non-cybersec
| Reddit |
MFW the season finale is Sunday. | 0non-cybersec
| Reddit |
Now or never: self-made background. | 0non-cybersec
| Reddit |
Finnish nature photo of the year 2015. | 0non-cybersec
| Reddit |
Does this pdf belong to any family of probability distributions?. <p>I had to calculate a posterior distribution given the prior is <span class="math-container">$\operatorname{Gamma}(\alpha, \beta)$</span>. At the end I got the posterior, as a function of <span class="math-container">$\theta$</span>, is proportional to <span class="math-container">$\theta^a b^\theta$</span>. All I know so far is that <span class="math-container">$a$</span> and <span class="math-container">$b$</span> are just some non-negative constants. Does this distribution belong to any sort of family? I guess this is analogous to some sort of gamma distribution. Also I guess we need to restrict on the value of <span class="math-container">$b$</span> for this posterior to be proper?</p>
| 0non-cybersec
| Stackexchange |
Unscented Kalman Filter for multiplicative noise models. <p>A little background: I've implemented a framework in <code>Python</code> for performing Bayesian joint parameter and state estimation in state space models using <a href="https://arxiv.org/abs/1308.1883" rel="nofollow noreferrer">Nested SMC</a>. That is, I couple two particle filters: one targeting the parameters, and for each parameter particle I use another particle filter targeting the states.
So, if I have $N$ parameter particles, and $M$ state particles I get a complexity of $\mathcal{O}(NM)$.</p>
<p>In an effort to reduce this complexity, I aimed at providing optionality for replacing the state particle filter with the <a href="https://www.seas.harvard.edu/courses/cs281/papers/unscented.pdf" rel="nofollow noreferrer">UKF</a>. However, as I did this I noticed that the UKF seems to collapse for models where the observational noise is multiplicative, e.g. for the <a href="http://sfb649.wiwi.hu-berlin.de/papers/pdf/SFB649DP2008-063.pdf" rel="nofollow noreferrer">Taylor stochastic volatility (p.3)</a> model. </p>
<p>My question is therefore: Is there a filtering scheme similar to the UKF, in the sense that it does not use weighted samples, that works for models such as the one previously mentioned? Or is there a generalization of the UKF that works for such models?</p>
| 0non-cybersec
| Stackexchange |
What are $G$-foo sets really called?. <p>Here's a familiar concept:</p>
<ul>
<li>A $G$-acted set consists of a $X$ together with a homomorphism $G \rightarrow \mathrm{Aut}(X).$</li>
</ul>
<p>We can also dualize:</p>
<ul>
<li>A $G$-foo set consists of a set $X$ together with a homomorphism $\mathrm{Aut}(X) \rightarrow G$.</li>
</ul>
<p>For example, suppose we're given a finite set $X$. Then $X$ becomes a $(\mathbb{Z}/2\mathbb{Z})$-foo set in a canonical way, by letting the morphism $\mathrm{Aut}(X) \rightarrow \mathbb{Z}/2\mathbb{Z}$ denote the <a href="https://en.wikipedia.org/wiki/Parity_of_a_permutation" rel="nofollow">parity function</a>.</p>
<blockquote>
<p><strong>Question.</strong> What are $G$-foo sets really called?</p>
</blockquote>
| 0non-cybersec
| Stackexchange |
Connecting Apple TV HD to a monitor over USB-C port. <p>Does Apple TV HD support connecting to a display via USB-C port? I use the same display with my newer MacBook Pro with USB-C port.</p>
<p>I use a <a href="https://www.lg.com/in/monitors/lg-29UM69G" rel="nofollow noreferrer">display</a> with three input options, a DisplayPort, an HDMI port and a USB-C port. I am able to connect my MacBooks using any one of them i.e., Mini Display Port to Display Port and HDMI cable on a 2013 15" MacBook Pro and a USB-C to USB-C cable on a 2019 16" MacBook Pro.</p>
<p>I have the HDMI port engaged with the MacBook and I wondered if I can connect the Apple TV HD to the display via USB-C, but turns out I can not get anything to appear on the display. I am able to connect the Apple TV to my 16" MacBook Pro using the same USB-C cable fine.</p>
<p>Does Apple TV not support outputting to a display over USB-C? Is there anyway to enable?</p>
| 0non-cybersec
| Stackexchange |
Is it ok to remove newline in Base64 encoding. <p>My java application use base64 encoding which puts a new line (<code>\n</code>) after every 76 character. I need to put this encoded string in a properties file and the newline breaks the functionality.</p>
<p>When I do a <code>encodedString.replaceAll("\n", "");</code> things are working fine, but I just want to make sure that this is expected and I am not introducing a hidden issue.</p>
| 0non-cybersec
| Stackexchange |
Rainbow Leaf! I Love Fall.. | 0non-cybersec
| Reddit |
How can I configure my miner for two pools simultaneously?. <p>I have a single sc 30gh/s miner.<br>
I want to run <code>cgminer</code> as well <code>guminer</code> at a time simultaneously, will there be any difference? </p>
<p>I want to use <code>cgminer</code> to mine at BTCGUILD and <code>guminer</code> for mining at SLUSHPOOL.</p>
| 0non-cybersec
| Stackexchange |
The elderly are being stalked by facebook.. | 0non-cybersec
| Reddit |
Pass function arguments by column position to mutate_at. <p>I'm trying to tighten up a <code>%>%</code> piped workflow where I need to apply the same function to several columns but with one argument changed each time. I feel like <code>purrr</code>'s <code>map</code> or <code>invoke</code> functions should help, but I can't wrap my head around it.</p>
<p>My data frame has columns for life expectancy, poverty rate, and median household income. I can pass all these column names to <code>vars</code> in <code>mutate_at</code>, use <code>round</code> as the function to apply to each, and optionally supply a <code>digits</code> argument. But I can't figure out a way, if one exists, to pass different values for <code>digits</code> associated with each column. I'd like life expectancy rounded to 1 digit, poverty rounded to 2, and income rounded to 0.</p>
<p>I can call <code>mutate</code> on each column, but given that I might have more columns all receiving the same function with only an additional argument changed, I'd like something more concise.</p>
<pre class="lang-r prettyprint-override"><code>library(tidyverse)
df <- tibble::tribble(
~name, ~life_expectancy, ~poverty, ~household_income,
"New Haven", 78.0580437642378, 0.264221051111753, 42588.7592521085
)
</code></pre>
<p>In my imagination, I could do something like this:</p>
<pre class="lang-r prettyprint-override"><code>df %>%
mutate_at(vars(life_expectancy, poverty, household_income),
round, digits = c(1, 2, 0))
</code></pre>
<p>But get the error</p>
<blockquote>
<p>Error in mutate_impl(.data, dots) :
Column <code>life_expectancy</code> must be length 1 (the number of rows), not 3</p>
</blockquote>
<p>Using <code>mutate_at</code> instead of <code>mutate</code> just to have the same syntax as in my ideal case:</p>
<pre class="lang-r prettyprint-override"><code>df %>%
mutate_at(vars(life_expectancy), round, digits = 1) %>%
mutate_at(vars(poverty), round, digits = 2) %>%
mutate_at(vars(household_income), round, digits = 0)
#> # A tibble: 1 x 4
#> name life_expectancy poverty household_income
#> <chr> <dbl> <dbl> <dbl>
#> 1 New Haven 78.1 0.26 42589
</code></pre>
<p>Mapping over the digits uses each of the <code>digits</code> options for <em>each</em> column, not by position, giving me 3 rows each rounded to a different number of digits.</p>
<pre class="lang-r prettyprint-override"><code>df %>%
mutate_at(vars(life_expectancy, poverty, household_income),
function(x) map(x, round, digits = c(1, 2, 0))) %>%
unnest()
#> # A tibble: 3 x 4
#> name life_expectancy poverty household_income
#> <chr> <dbl> <dbl> <dbl>
#> 1 New Haven 78.1 0.3 42589.
#> 2 New Haven 78.1 0.26 42589.
#> 3 New Haven 78 0 42589
</code></pre>
<p><sup>Created on 2018-11-13 by the <a href="https://reprex.tidyverse.org" rel="noreferrer">reprex package</a> (v0.2.1)</sup></p>
| 0non-cybersec
| Stackexchange |
What's difference between "varchar" and "text" type in PostgreSQL?. <p>All I know about differences of them is <code>varchar</code> has limit, and <code>text</code> is not. The <a href="http://www.postgresql.org/docs/8.4/static/datatype-character.html" rel="noreferrer">documentation</a> does not mention about this. </p>
<p>Is that really the only difference? No consideration about performance or etc? </p>
| 0non-cybersec
| Stackexchange |
Console vs PC. Hey all, as 2020 is just getting started I find myself debating between X Box Series X or PS5 or building a gaming PC. As I get older I find I have less and less time to actually play online. But I do enjoy it when I can. Most of my friends are moving in a similar direction. While the technical side of this is important, I'm more focused on the community aspect.
For example I've never really been able to expand my friend list on PS4 outside of people I work with because I never have been able to really get comfortable in that community, where xbox is considered I have a similar experience as most of my friends list is from the early 2000's. Being comprised of guys I grew up with who dont really get to play much either. So I find myself at a cross roads, is the PC community welcoming, am I missing something in the playstation and xbox communities? Honestly any thoughts would go a long way to helping. | 0non-cybersec
| Reddit |
Omaha Police Chief Demands Officers Be Fired After a Mentally Disabled Man They Tased 12 Times Dies. | 0non-cybersec
| Reddit |
[USA] Moron on motorcycle crashes and wrecks his bike after putting "I don't stop for cops" sticker on police cruiser in traffic (x-post /r/JusticePorn). | 0non-cybersec
| Reddit |
OCE Server Issues??. Is anyone having issues with the Aussie servers? | 0non-cybersec
| Reddit |
My friends jumping a car after school. 1990’s. Thought this picture was lost forever, but it recently resurfaced.. | 0non-cybersec
| Reddit |
Does the "no gaps"-property with transcendental numbers mean that there is only "one number"?. <p>I admit, the question is a little provocative, but is asked in all earnestness.</p>
<p>It is inspired by this one: <a href="https://math.stackexchange.com/questions/11/does-99999-1">Is it true that $0.999999999\ldots = 1$?</a></p>
<p>Many of the arguments here point to the fact that 0.999... and 1 are arbitrarily close together. Put differently this means that "there is no gap in-between the two" - which concludes that these numbers are just the same one number: 1.</p>
<p>In another field, concerning the <a href="http://en.wikipedia.org/wiki/Transcendental_number" rel="nofollow noreferrer">transcendental numbers</a>, it is proved that they are complete. So again put differently there are "no gaps in the number-line".</p>
<p>Interestingly enough this is not seen as a proof that all transcendental numbers are only just one number. </p>
<p>At the moment I can't find a good explanation why "no gaps" here means "is equal" and there it means "they are all different" (=complete). Could anybody please enlighten me?</p>
| 0non-cybersec
| Stackexchange |
Postgres: clear entire database before re-creating / re-populating from bash script. <p>I'm writing a shell script (will become a cronjob) that will:</p>
<p>1: dump my production database</p>
<p>2: import the dump into my development database</p>
<p>Between step 1 and 2, I need to clear the development database (drop all tables?). How is this best accomplished from a shell script? So far, it looks like this:</p>
<pre><code>#!/bin/bash
time=`date '+%Y'-'%m'-'%d'`
# 1. export(dump) the current production database
pg_dump -U production_db_name > /backup/dir/backup-${time}.sql
# missing step: drop all tables from development database so it can be re-populated
# 2. load the backup into the development database
psql -U development_db_name < backup/dir/backup-${time}.sql
</code></pre>
| 0non-cybersec
| Stackexchange |
Opinion piece on 3D movies: "Which brings us back to Avatar — a pro-environment film designed to be viewed through plastic glasses, the bulk of which will end-up in land fill.". | 0non-cybersec
| Reddit |
Accordion is breaking the height of the div. <p>I'm using Angular and ng-bootstrap.</p>
<p>I've a problem with the accordion component (<a href="https://ng-bootstrap.github.io/#/components/accordion/examples" rel="nofollow noreferrer">https://ng-bootstrap.github.io/#/components/accordion/examples</a>)</p>
<p>When I put an accordion into a div with a max-height, the accordion can go over this max-height.. But I want to get the max-height of my div respected.</p>
<p>To reproduce the bug it's simple :</p>
<p>Create a div with a max-height (for example 80% and width: 200px) then put inside few accordions with few panels for each. Then open them and you'll see your panels going over the max height.</p>
<p>What I want is to have a scrollbar on my div and not on my body but it's not working even with a max height inside of my div.</p>
| 0non-cybersec
| Stackexchange |
Yet another emergency Flash update. When is Flash just going to die already?. | 0non-cybersec
| Reddit |
That’s hard. | 0non-cybersec
| Reddit |
Disable action associated with extension 'fileinto' in the managesieve interpreter (Dovecot). <p>After doing some research on <code>sieve</code> support with <code>dovecot</code>, I decided to implement it on a virtual machine for testing. I have everything working as expected, i.e. a script is uploaded onto the server, and the interpreter works correctly.</p>
<p>However, I'm having trouble understanding how I could disable an <em>action</em>, rather than an entire <em>extension</em>. For example, I need to disable the <code>redirect</code> <em>action</em> to prevent anyone creating a forward. This action so happens to be a part of the <code>fileinto</code> extension, which contains other actions that I would like to keep enabled. (Such as <code>keep</code>, and <code>discard</code>). After reading the RFC standards, I don't think this would be possible.</p>
<p>Out of curiosity, I've tried including the following line to see if I could disable it:</p>
<pre><code>sieve_extensions = -redirect
</code></pre>
<p>However, as expected:</p>
<pre><code>managesieve: Warning: sieve: ignored unknown extension 'redirect' while configuring available extensions
</code></pre>
<p>Because this is an action, not an extension.</p>
<p>Has anyone else run into this situation? </p>
<p>What are some approaches to solve this problem?</p>
| 0non-cybersec
| Stackexchange |
$L^1$ and $L^2$ norms inequality. <p>Let <span class="math-container">$f:[0,\infty)\to\mathbb{R}$</span> be a bounded measurable function with respect to the Lesbegue measure satisfying <span class="math-container">$\|f\|_2 = \left\{\int_0^\infty f^2(x)dx\right\}^{1/2}<\infty$</span>.
Is there any known condition of <span class="math-container">$f$</span> for <span class="math-container">$\|f\|_1 = \int_0^\infty |f(x)|dx < \infty$</span>?
In other words, is there any condition of <span class="math-container">$f$</span> such that if <span class="math-container">$\|f\|_2<\infty$</span>, then there exists <span class="math-container">$M_f<\infty$</span> that depends on <span class="math-container">$f$</span> such that <span class="math-container">$\|f\|_1 \le M_f\|f\|_2$</span>?</p>
<hr>
<p><strong>Edit</strong></p>
<p>Probably, it would be better to give an example I am working on.
Let <span class="math-container">$\delta>0$</span>.
Then, by the Schwarz inequality
<span class="math-container">\begin{equation*}
\|f\|_1 = \sum_{n=0}^\infty\int_{n\delta}^{(n+1)\delta}|f(x)|dx \le \sqrt{\delta}\sum_{n=0}^\infty\left\{\int_{n\delta}^{(n+1)\delta}f^2(x)dx\right\}^{1/2}.
\end{equation*}</span>
The series on the right converges if
<span class="math-container">\begin{equation*}
\limsup_{n\to\infty}\left\{ \int_{n\delta}^{(n+1)\delta}f^2(x)dx\right\}^{1/n} < 1
\end{equation*}</span>
or
<span class="math-container">\begin{equation*}
\limsup_{n\to\infty}\frac{\int_{(n+1)\delta}^{(n+2)\delta}f^2(x)dx}{\int_{n\delta}^{(n+1)\delta}f^2(x)dx}<1.
\end{equation*}</span>
Thus, if the convergent series
<span class="math-container">\begin{equation*}
\sum_{n=0}^\infty\int_{n\delta}^{(n+1)\delta}f^2(x)dx = \|f\|_2^2 <\infty
\end{equation*}</span>
satisfies one of those conditions, then <span class="math-container">$\|f\|_1<\infty$</span>.</p>
<p>I hope that this example is correct. By the way, the conditions I found above are not easy to work with for my original problem. So, I am wondering if there are some other conditions.</p>
| 0non-cybersec
| Stackexchange |
button with no postback?. <p>Well i have a asp.net page where i have a button that im using to execute a JavaScript... but after the JavaScript has run the page reloads(postback) how can i avoid that?</p>
<pre><code><button onclick="printElement('content');">Print</button>
</code></pre>
| 0non-cybersec
| Stackexchange |
Star Wars Han Solo Carbonite Chocolate Bar. | 0non-cybersec
| Reddit |
Texas still seeing attempts to limit evolution in school textbooks. | 0non-cybersec
| Reddit |
Why Mongo Spark connector returns different and incorrect counts for a query?. <p>I'm evaluating Mongo Spark connector for a project and I'm getting the inconsistent results. I use MongoDB server version 3.4.5, Spark (via PySpark) version 2.2.0, Mongo Spark Connector version 2.11;2.2.0 locally on my laptop. For my test DB I use the Enron dataset <a href="http://mongodb-enron-email.s3-website-us-east-1.amazonaws.com/" rel="noreferrer">http://mongodb-enron-email.s3-website-us-east-1.amazonaws.com/</a> I'm interested in Spark SQL queries and when I started to run simple test queries for count I received different counts for each run.
Here is output from my mongo shell:</p>
<pre><code>> db.messages.count({'headers.To': '[email protected]'})
203
</code></pre>
<p>Here are some output from my PySpark shell:</p>
<pre><code>In [1]: df = spark.read.format("com.mongodb.spark.sql.DefaultSource").option("uri", "mongodb://127.0.0.1/enron_mail.messages").load()
In [2]: df.registerTempTable("messages")
In [3]: res = spark.sql("select count(*) from messages where headers.To='[email protected]'")
In [4]: res.show()
+--------+
|count(1)|
+--------+
| 162|
+--------+
In [5]: res.show()
+--------+
|count(1)|
+--------+
| 160|
+--------+
In [6]: res = spark.sql("select count(_id) from messages where headers.To='[email protected]'")
In [7]: res.show()
+----------+
|count(_id)|
+----------+
| 161|
+----------+
In [8]: res.show()
+----------+
|count(_id)|
+----------+
| 162|
+----------+
</code></pre>
<p>I searched in Google about this issue but I didn't find anything helpful. If someone has any ideas why this could happen and how to handle this correctly please share your ideas. I have a feeling that maybe I missed something or maybe something wasn't configured properly.</p>
<p><strong>UPDATE:</strong>
I solved my issue. The reason of inconsistent counts was the <strong>MongoDefaultPartitioner</strong> which wraps <strong>MongoSamplePartitioner</strong> which uses random sampling. To be honest this is quite a weird default as for me. I personally would prefer to have a slow but a consistent partitioner instead. The details for partitioner options can be found in the official <a href="https://docs.mongodb.com/spark-connector/master/configuration/" rel="noreferrer">configuration options</a> documentation.</p>
<p><strong>UPDATE:</strong>
Copied the solution into an answer.</p>
| 0non-cybersec
| Stackexchange |
Onion Pi - Convert a Raspberry Pi into a Anonymizing Tor Proxy, for easy anonymous internet browsing. | 0non-cybersec
| Reddit |
Prove that there are at least $N$ distinct "absolute" differences between $N$ k-dimensional vectors. <p>I encountered the following problem:
Let's define $h(a, b) = (|a_1 - b_1|, |a_2 - b_2|, ..., |a_k - b_k|)$, where $a$ and $b$ are two k-dimensional vectors with natural numbers and $a = (a_1, ..., a_k)$ and $b = (b_1, ..., b_k)$, $|x -y|$ is the absolute difference between $x$ and $y$. Now we have to prove the following: </p>
<p>Given $n$ different vectors $v_1, v_2, ..., v_n$, consider $A = \{h(a_i, a_j) |1 \leq i, j \leq n \}$. Prove that $|A| \geq n$, in other words that the number of different values of $h$ among all pairs of vectors is at least $n$. Note that we count $o = (0, 0, ..) = h(a_1, a_1)$ as one of these values.</p>
<p>What I have tried:
As my linear algebra isn't very good(and I'm also not sure if such operation as $h$ is "standard" as for ex. dot product), I tried proving the statement with induction on the dimensions of these vectors. The case where they are $1$-dimensional is pretty straightforward, the vectors are just integers, we can sort them in increasing order, then $|a_1 - a_i|$ for $1 \leq i \leq n$ has $n$ different values. However, I'm not sure how to continue. I would be glad if somebody could help me. I'm interested in other approaches also. Please note that we are talking about absolute difference here, if it were normal difference I have already solved it.</p>
| 0non-cybersec
| Stackexchange |
Rehab: Last Week Tonight with John Oliver (HBO). | 0non-cybersec
| Reddit |
Build issue when using package restore in Team Foundation Service. <p>I'm trying Microsoft Team Foundation Service ( the Cloud TFS ) and using automated hosted build and package restore.</p>
<p>It always fails, but according to log it seems that the package restore works fine but it's a problem when locating the binaries we got through the package restore, it's like it doesn't look into the right folder.</p>
<p>LOG:</p>
<pre><code>Build started 4/9/2013 10:24:37 AM.
Project "C:\a\src\ValuePlan.Client.sln" on node 1 (default targets).
ValidateSolutionConfiguration:
Building solution configuration "Release|x86".
Project "C:\a\src\ValuePlan.Client.sln" (1) is building "C:\a\src\VP\VP.csproj" (2) on node 1 (default targets).
RestorePackages:
"C:\a\src\.nuget\nuget.exe" install "C:\a\src\VP\packages.config" -source "" -o "C:\a\src\packages"
Successfully installed 'Autofac 2.6.3.862'.
Successfully installed 'Caliburn.Micro 1.3.1'.
PrepareForBuild:
Creating directory "obj\x86\Release\".
Project "C:\a\src\VP\VP.csproj" (2) is building "C:\a\src\VpUserControls\VpUserControls.csproj" (3) on node 1 (default targets).
RestorePackages:
"C:\a\src\.nuget\nuget.exe" install "C:\a\src\VpUserControls\packages.config" -source "" -o "C:\a\src\packages"
All packages listed in packages.config are already installed.
PrepareForBuild:
Creating directory "obj\Release\".
ResolveAssemblyReferences:
A TargetFramework profile exclusion list will be generated.
Primary reference "Caliburn.Micro".
C:\Windows\Microsoft.NET\Framework64\v4.0.30319\Microsoft.Common.targets(1578,5): warning MSB3245: Could not resolve this reference. Could not locate the assembly "Caliburn.Micro". Check to make sure the assembly exists on disk. If this reference is required by your code, you may get compilation errors. [C:\a\src\VpUserControls\VpUserControls.csproj]
For SearchPath "C:\a\src\VpUserControls\FakesAssemblies".
Considered "C:\a\src\VpUserControls\FakesAssemblies\Caliburn.Micro.winmd", but it didn't exist.
Considered "C:\a\src\VpUserControls\FakesAssemblies\Caliburn.Micro.dll", but it didn't exist.
Considered "C:\a\src\VpUserControls\FakesAssemblies\Caliburn.Micro.exe", but it didn't exist.
For SearchPath "{HintPathFromItem}".
Considered "..\..\CL_WIN\packages\Caliburn.Micro.1.3.1\lib\net40\Caliburn.Micro.dll", but it didn't exist.
For SearchPath "{TargetFrameworkDirectory}".
Considered "C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.0\Profile\Client\Caliburn.Micro.winmd", but it didn't exist.
Considered "C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.0\Profile\Client\Caliburn.Micro.dll", but it didn't exist.
Considered "C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.0\Profile\Client\Caliburn.Micro.exe", but it didn't exist.
For SearchPath "{Registry:Software\Microsoft\.NETFramework,v4.0,AssemblyFoldersEx}".
Considered AssemblyFoldersEx locations.
For SearchPath "{AssemblyFolders}".
Considered "C:\Program Files\Microsoft.NET\ADOMD.NET\100\Caliburn.Micro.winmd", but it didn't exist.
Considered "C:\Program Files\Microsoft.NET\ADOMD.NET\100\Caliburn.Micro.dll", but it didn't exist.
Considered "C:\Program Files\Microsoft.NET\ADOMD.NET\100\Caliburn.Micro.exe", but it didn't exist.
Considered "C:\Program Files\Microsoft SQL Server\110\SDK\Assemblies\Caliburn.Micro.winmd", but it didn't exist.
Considered "C:\Program Files\Microsoft SQL Server\110\SDK\Assemblies\Caliburn.Micro.dll", but it didn't exist.
Considered "C:\Program Files\Microsoft SQL Server\110\SDK\Assemblies\Caliburn.Micro.exe", but it didn't exist.
Considered "C:\Program Files\Microsoft SQL Server\100\DTS\Tasks\Caliburn.Micro.winmd", but it didn't exist.
Considered "C:\Program Files\Microsoft SQL Server\100\DTS\Tasks\Caliburn.Micro.dll", but it didn't exist.
Considered "C:\Program Files\Microsoft SQL Server\100\DTS\Tasks\Caliburn.Micro.exe", but it didn't exist.
Considered "C:\Program Files\IIS\Microsoft Web Deploy V3\Caliburn.Micro.winmd", but it didn't exist.
Considered "C:\Program Files\IIS\Microsoft Web Deploy V3\Caliburn.Micro.dll", but it didn't exist.
Considered "C:\Program Files\IIS\Microsoft Web Deploy V3\Caliburn.Micro.exe", but it didn't exist.
Considered "C:\Program Files\Microsoft SQL Server\100\DTS\PipelineComponents\Caliburn.Micro.winmd", but it didn't exist.
Considered "C:\Program Files\Microsoft SQL Server\100\DTS\PipelineComponents\Caliburn.Micro.dll", but it didn't exist.
Considered "C:\Program Files\Microsoft SQL Server\100\DTS\PipelineComponents\Caliburn.Micro.exe", but it didn't exist.
Considered "C:\Program Files\Reference Assemblies\Microsoft\Framework\v3.5\Caliburn.Micro.winmd", but it didn't exist.
Considered "C:\Program Files\Reference Assemblies\Microsoft\Framework\v3.5\Caliburn.Micro.dll", but it didn't exist.
Considered "C:\Program Files\Reference Assemblies\Microsoft\Framework\v3.5\Caliburn.Micro.exe", but it didn't exist.
Considered "C:\Program Files\Microsoft SQL Server\100\DTS\ForEachEnumerators\Caliburn.Micro.winmd", but it didn't exist.
Considered "C:\Program Files\Microsoft SQL Server\100\DTS\ForEachEnumerators\Caliburn.Micro.dll", but it didn't exist.
Considered "C:\Program Files\Microsoft SQL Server\100\DTS\ForEachEnumerators\Caliburn.Micro.exe", but it didn't exist.
For SearchPath "{GAC}".
Considered "Caliburn.Micro", which was not found in the GAC.
For SearchPath "{RawFileName}".
Considered treating "Caliburn.Micro" as a file name, but it didn't exist.
For SearchPath "C:\a\bin\".
Considered "C:\a\bin\Caliburn.Micro.winmd", but it didn't exist.
Considered "C:\a\bin\Caliburn.Micro.dll", but it didn't exist.
Considered "C:\a\bin\Caliburn.Micro.exe", but it didn't exist.
Primary reference "System.Windows.Interactivity".
C:\Windows\Microsoft.NET\Framework64\v4.0.30319\Microsoft.Common.targets(1578,5): warning MSB3245: Could not resolve this reference. Could not locate the assembly "System.Windows.Interactivity". Check to make sure the assembly exists on disk. If this reference is required by your code, you may get compilation errors. [C:\a\src\VpUserControls\VpUserControls.csproj]
For SearchPath "C:\a\src\VpUserControls\FakesAssemblies".
Considered "C:\a\src\VpUserControls\FakesAssemblies\System.Windows.Interactivity.winmd", but it didn't exist.
Considered "C:\a\src\VpUserControls\FakesAssemblies\System.Windows.Interactivity.dll", but it didn't exist.
Considered "C:\a\src\VpUserControls\FakesAssemblies\System.Windows.Interactivity.exe", but it didn't exist.
For SearchPath "{HintPathFromItem}".
Considered "..\..\CL_WIN\packages\Caliburn.Micro.1.3.1\lib\net40\System.Windows.Interactivity.dll", but it didn't exist.
For SearchPath "{TargetFrameworkDirectory}".
Considered "C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.0\Profile\Client\System.Windows.Interactivity.winmd", but it didn't exist.
Considered "C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.0\Profile\Client\System.Windows.Interactivity.dll", but it didn't exist.
Considered "C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.0\Profile\Client\System.Windows.Interactivity.exe", but it didn't exist.
For SearchPath "{Registry:Software\Microsoft\.NETFramework,v4.0,AssemblyFoldersEx}".
Considered AssemblyFoldersEx locations.
For SearchPath "{AssemblyFolders}".
Considered "C:\Program Files\Microsoft.NET\ADOMD.NET\100\System.Windows.Interactivity.winmd", but it didn't exist.
Considered "C:\Program Files\Microsoft.NET\ADOMD.NET\100\System.Windows.Interactivity.dll", but it didn't exist.
Considered "C:\Program Files\Microsoft.NET\ADOMD.NET\100\System.Windows.Interactivity.exe", but it didn't exist.
Considered "C:\Program Files\Microsoft SQL Server\110\SDK\Assemblies\System.Windows.Interactivity.winmd", but it didn't exist.
Considered "C:\Program Files\Microsoft SQL Server\110\SDK\Assemblies\System.Windows.Interactivity.dll", but it didn't exist.
Considered "C:\Program Files\Microsoft SQL Server\110\SDK\Assemblies\System.Windows.Interactivity.exe", but it didn't exist.
Considered "C:\Program Files\Microsoft SQL Server\100\DTS\Tasks\System.Windows.Interactivity.winmd", but it didn't exist.
Considered "C:\Program Files\Microsoft SQL Server\100\DTS\Tasks\System.Windows.Interactivity.dll", but it didn't exist.
Considered "C:\Program Files\Microsoft SQL Server\100\DTS\Tasks\System.Windows.Interactivity.exe", but it didn't exist.
Considered "C:\Program Files\IIS\Microsoft Web Deploy V3\System.Windows.Interactivity.winmd", but it didn't exist.
Considered "C:\Program Files\IIS\Microsoft Web Deploy V3\System.Windows.Interactivity.dll", but it didn't exist.
Considered "C:\Program Files\IIS\Microsoft Web Deploy V3\System.Windows.Interactivity.exe", but it didn't exist.
Considered "C:\Program Files\Microsoft SQL Server\100\DTS\PipelineComponents\System.Windows.Interactivity.winmd", but it didn't exist.
Considered "C:\Program Files\Microsoft SQL Server\100\DTS\PipelineComponents\System.Windows.Interactivity.dll", but it didn't exist.
Considered "C:\Program Files\Microsoft SQL Server\100\DTS\PipelineComponents\System.Windows.Interactivity.exe", but it didn't exist.
Considered "C:\Program Files\Reference Assemblies\Microsoft\Framework\v3.5\System.Windows.Interactivity.winmd", but it didn't exist.
Considered "C:\Program Files\Reference Assemblies\Microsoft\Framework\v3.5\System.Windows.Interactivity.dll", but it didn't exist.
Considered "C:\Program Files\Reference Assemblies\Microsoft\Framework\v3.5\System.Windows.Interactivity.exe", but it didn't exist.
Considered "C:\Program Files\Microsoft SQL Server\100\DTS\ForEachEnumerators\System.Windows.Interactivity.winmd", but it didn't exist.
Considered "C:\Program Files\Microsoft SQL Server\100\DTS\ForEachEnumerators\System.Windows.Interactivity.dll", but it didn't exist.
Considered "C:\Program Files\Microsoft SQL Server\100\DTS\ForEachEnumerators\System.Windows.Interactivity.exe", but it didn't exist.
For SearchPath "{GAC}".
Considered "System.Windows.Interactivity", which was not found in the GAC.
For SearchPath "{RawFileName}".
Considered treating "System.Windows.Interactivity" as a file name, but it didn't exist.
For SearchPath "C:\a\bin\".
Considered "C:\a\bin\System.Windows.Interactivity.winmd", but it didn't exist.
Considered "C:\a\bin\System.Windows.Interactivity.dll", but it didn't exist.
Considered "C:\a\bin\System.Windows.Interactivity.exe", but it didn't exist.
AssemblyFoldersEx location: "{Registry:Software\Microsoft\.NETFramework,v4.0,AssemblyFoldersEx}"
C:\Program Files (x86)\Microsoft XNA\XNA Game Studio\v4.0\References\Windows\x86\
C:\Program Files\Reference Assemblies\Microsoft\Workflow Manager\1.0\
C:\Program Files\Microsoft SDKs\Windows Azure\.NET SDK\2012-10\ref\Caching\
C:\Program Files\Windows Azure SDK\v1.6\ServiceBus\ref\
C:\Program Files\Windows Azure SDK\v1.6\Cache\ref\
C:\Program Files (x86)\Microsoft WCF Data Services\5.0\bin\.NETFramework\
C:\Program Files (x86)\Common Files\microsoft shared\VSTT\10.0\UITestExtensionPackages
C:\Program Files\Reference Assemblies\Microsoft\VSTO40\v4.0.Framework\
C:\Program Files\Reference Assemblies\Microsoft\VSTA30\v9.0\
C:\Program Files\Reference Assemblies\Microsoft\VSTA30\v8.0\
C:\Program Files\Reference Assemblies\Microsoft\VSTA30\v10.0\
C:\Program Files (x86)\Microsoft Visual Studio 11.0\Visual Studio Tools for Office\PIA\Office15\
C:\Program Files (x86)\Microsoft Visual Studio 11.0\Visual Studio Tools for Office\PIA\Office14\
C:\Program Files (x86)\Microsoft Visual Studio 11.0\Visual Studio Tools for Office\PIA\Common\
C:\Program Files (x86)\Microsoft Visual Studio 10.0\Visual Studio Tools for Office\PIA\Office14\
C:\Program Files (x86)\Microsoft Visual Studio 10.0\Visual Studio Tools for Office\PIA\Office12\
C:\Program Files (x86)\Microsoft Visual Studio 10.0\Visual Studio Tools for Office\PIA\Common\
C:\Program Files (x86)\Microsoft Visual Studio 11.0\Common7\IDE\Extensions\Microsoft\SharePoint\PublicAssemblies\
C:\Program Files (x86)\Microsoft Visual Studio 11.0\Common7\IDE\ReferenceAssemblies\v4.0\
C:\Program Files (x86)\Microsoft Visual Studio 10.0\Common7\IDE\ReferenceAssemblies\v4.0\
C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\Platforms\x64\
C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\Platforms\Win32\
C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\Platforms\Itanium\
C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V110\
C:\Program Files (x86)\Reference Assemblies\Microsoft\VBPowerPacks\v10.0\
C:\Program Files (x86)\Microsoft Synchronization Services\ADO.NET\v1.0
C:\Program Files (x86)\Microsoft SQL Server Compact Edition\v3.5\Desktop
C:\Program Files\Common Files\Microsoft Shared\Web Server Extensions\15\TEMPLATE\WorkflowActivities\
C:\Program Files (x86)\Reference Assemblies\Microsoft\SharePoint15\
C:\Program Files\Common Files\Microsoft Shared\Web Server Extensions\15\ISAPI\
C:\Program Files (x86)\Microsoft SDKs\RIA Services\v1.0\Libraries\Server\
C:\Program Files (x86)\Microsoft Visual Studio 10.0\ReportViewer\
C:\Program Files (x86)\Microsoft Visual Studio 10.0\Common7\IDE\PublicAssemblies\
C:\Program Files (x86)\Microsoft.NET\Primary Interop Assemblies\
C:\Program Files (x86)\Open XML SDK\V2.5\lib
C:\Program Files (x86)\Reference Assemblies\Microsoft\FSharp\2.0\Runtime\v4.0\
C:\Program Files (x86)\Reference Assemblies\Microsoft\FSharp\3.0\Runtime\v4.0\Type Providers\
C:\Program Files (x86)\Reference Assemblies\Microsoft\FSharp\3.0\Runtime\v4.0\
C:\Program Files (x86)\Microsoft SDKs\Expression\Extensions\FXG\Libraries\.NETFramework\v4.0\
C:\Program Files (x86)\Microsoft Visual Studio 10.0\VSTSDB\
C:\Program Files (x86)\Microsoft ASP.NET\ASP.NET Web Pages\v2.0\Assemblies\
C:\Program Files (x86)\Microsoft ASP.NET\ASP.NET Web Pages\v1.0\Assemblies\
C:\Program Files (x86)\Microsoft ASP.NET\ASP.NET MVC 4\Assemblies\
C:\Program Files (x86)\Microsoft ASP.NET\ASP.NET MVC 3\Assemblies\
C:\Program Files (x86)\Reference Assemblies\Microsoft\Windows Identity Foundation SDK\v4.0\
C:\Program Files\Reference Assemblies\Microsoft\Windows Identity Foundation\v3.5\
C:\Program Files (x86)\Microsoft Visual Studio 11.0\ReportViewer\
C:\Program Files\Reference Assemblies\Microsoft\Microsoft Identity Extensions\1.0\
C:\Program Files\Reference Assemblies\Microsoft\VSTO40\v9.0\
C:\Program Files\Reference Assemblies\Microsoft\VSTO40\v10.0\
C:\Program Files\Reference Assemblies\Microsoft\VSTA30\v9.0\
C:\Program Files\Reference Assemblies\Microsoft\VSTA30\v10.0\
C:\Program Files (x86)\Microsoft Visual Studio 10.0\Visual Studio Tools for Office\PIA\Office14\
C:\Program Files (x86)\Microsoft Visual Studio 10.0\Visual Studio Tools for Office\PIA\Office12\
C:\Program Files (x86)\Microsoft Visual Studio 10.0\Visual Studio Tools for Office\PIA\Common\
C:\Program Files (x86)\Microsoft Visual Studio 11.0\Common7\IDE\Extensions\Microsoft\SharePoint\PublicAssemblies\
C:\Program Files (x86)\Microsoft Visual Studio 11.0\VSSDK\VisualStudioIntegration\Common\Assemblies\v2.0\
C:\Program Files (x86)\Microsoft Visual Studio 11.0\Common7\IDE\ReferenceAssemblies\v2.0\
C:\Program Files (x86)\Microsoft Visual Studio 10.0\Common7\IDE\ReferenceAssemblies\v2.0\
C:\Program Files (x86)\Reference Assemblies\Microsoft\VBPowerPacks\v10.0\
C:\Program Files (x86)\Microsoft Visual Studio 10.0\Common7\IDE\ReferenceAssemblies\v2.0\
C:\Program Files (x86)\Microsoft Synchronization Services\ADO.NET\v1.0
C:\Program Files (x86)\Microsoft SDKs\Microsoft Sync Framework\v1.0\Runtime\ADO.NET\V2.0\x64\
C:\Program Files (x86)\Microsoft SQL Server Compact Edition\v4.0\Desktop
C:\Program Files (x86)\Microsoft SQL Server Compact Edition\v3.5\Desktop
C:\Program Files (x86)\Reference Assemblies\Microsoft\SharePoint14\
C:\Program Files\Microsoft SDKs\Windows Azure\.NET SDK\2012-10\ref
C:\Program Files\Microsoft SDKs\Windows Azure\.NET SDK\2012-06\ref
C:\Program Files\Windows Azure SDK\v1.6\ref
C:\Program Files (x86)\Microsoft Visual Studio 10.0\ReportViewer\
C:\Program Files (x86)\Common Files\Microsoft Shared\MSEnv\PublicAssemblies\
C:\Program Files (x86)\Microsoft Chart Controls\Assemblies
C:\Program Files (x86)\Reference Assemblies\Microsoft\FSharp\2.0\Runtime\v2.0\
C:\Program Files (x86)\Microsoft SDKs\Microsoft Sync Framework\v1.0\Runtime\x86\
C:\Program Files (x86)\Reference Assemblies\Microsoft\FSharp\3.0\Runtime\v2.0\
C:\Program Files (x86)\Microsoft Visual Studio 11.0\Blend\
C:\Program Files (x86)\Microsoft Visual Studio 11.0\Blend\
C:\Program Files (x86)\Microsoft ASP.NET\ASP.NET MVC 2\Assemblies\
C:\Program Files (x86)\Microsoft ASP.NET\ASP.NET MVC 1.0\Assemblies\
C:\Program Files\Microsoft SDKs\Windows Azure\.NET SDK\2012-10\ref
C:\Program Files\Microsoft SDKs\Windows Azure\.NET SDK\2012-06\ref
C:\Program Files\Windows Azure SDK\v1.6\ref
C:\a\src\VpUserControls\Views\Navigation\DimensionTreeView.xaml(13,26): error MC3072: The property 'Bind.Model' does not exist in XML namespace 'http://www.caliburnproject.org'. Line 13 Position 26. [C:\a\src\VpUserControls\VpUserControls.csproj]
C:\a\src\VpUserControls\Views\Navigation\NavigationBarView.xaml(13,33): error MC3072: The property 'View.Model' does not exist in XML namespace 'http://www.caliburnproject.org'. Line 13 Position 33. [C:\a\src\VpUserControls\VpUserControls.csproj]
C:\a\src\VpUserControls\Views\Tools\ToolBarView.xaml(22,28): error MC3072: The property 'Bind.Model' does not exist in XML namespace 'http://www.caliburnproject.org'. Line 22 Position 28. [C:\a\src\VpUserControls\VpUserControls.csproj]
C:\a\src\VpUserControls\Views\Workspace\DimensionBarsView.xaml(11,19): error MC3072: The property 'Bind.Model' does not exist in XML namespace 'http://www.caliburnproject.org'. Line 11 Position 19. [C:\a\src\VpUserControls\VpUserControls.csproj]
Done Building Project "C:\a\src\VpUserControls\VpUserControls.csproj" (default targets) -- FAILED.
Done Building Project "C:\a\src\VP\VP.csproj" (default targets) -- FAILED.
Done Building Project "C:\a\src\ValuePlan.Client.sln" (default targets) -- FAILED.
Build FAILED.
"C:\a\src\ValuePlan.Client.sln" (default target) (1) ->
"C:\a\src\VP\VP.csproj" (default target) (2) ->
"C:\a\src\VpUserControls\VpUserControls.csproj" (default target) (3) ->
(ResolveAssemblyReferences target) ->
C:\Windows\Microsoft.NET\Framework64\v4.0.30319\Microsoft.Common.targets(1578,5): warning MSB3245: Could not resolve this reference. Could not locate the assembly "Caliburn.Micro". Check to make sure the assembly exists on disk. If this reference is required by your code, you may get compilation errors. [C:\a\src\VpUserControls\VpUserControls.csproj]
C:\Windows\Microsoft.NET\Framework64\v4.0.30319\Microsoft.Common.targets(1578,5): warning MSB3245: Could not resolve this reference. Could not locate the assembly "System.Windows.Interactivity". Check to make sure the assembly exists on disk. If this reference is required by your code, you may get compilation errors. [C:\a\src\VpUserControls\VpUserControls.csproj]
"C:\a\src\ValuePlan.Client.sln" (default target) (1) ->
"C:\a\src\VP\VP.csproj" (default target) (2) ->
"C:\a\src\VpUserControls\VpUserControls.csproj" (default target) (3) ->
(MarkupCompilePass1 target) ->
C:\a\src\VpUserControls\Views\Navigation\DimensionTreeView.xaml(13,26): error MC3072: The property 'Bind.Model' does not exist in XML namespace 'http://www.caliburnproject.org'. Line 13 Position 26. [C:\a\src\VpUserControls\VpUserControls.csproj]
C:\a\src\VpUserControls\Views\Navigation\NavigationBarView.xaml(13,33): error MC3072: The property 'View.Model' does not exist in XML namespace 'http://www.caliburnproject.org'. Line 13 Position 33. [C:\a\src\VpUserControls\VpUserControls.csproj]
C:\a\src\VpUserControls\Views\Tools\ToolBarView.xaml(22,28): error MC3072: The property 'Bind.Model' does not exist in XML namespace 'http://www.caliburnproject.org'. Line 22 Position 28. [C:\a\src\VpUserControls\VpUserControls.csproj]
C:\a\src\VpUserControls\Views\Workspace\DimensionBarsView.xaml(11,19): error MC3072: The property 'Bind.Model' does not exist in XML namespace 'http://www.caliburnproject.org'. Line 11 Position 19. [C:\a\src\VpUserControls\VpUserControls.csproj]
2 Warning(s)
4 Error(s)
Time Elapsed 00:00:18.83
</code></pre>
<p>Anyone have a similar problem or am I reading the log wrong and misunderstanding what's going on here. </p>
<hr>
<p><strong>EDIT</strong></p>
<p>I'm thinking there is a possibility that the NuGet.targets file might be incorrectly set for hosted build. In the <code>RestoreCommand</code> part there is this <code>-o</code> modifier that some have reported is out of place.</p>
<pre><code><?xml version="1.0" encoding="utf-8"?>
<Project ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<PropertyGroup>
<SolutionDir Condition="$(SolutionDir) == '' Or $(SolutionDir) == '*Undefined*'">$(MSBuildProjectDirectory)\..\</SolutionDir>
<!-- Enable the restore command to run before builds -->
<RestorePackages Condition=" '$(RestorePackages)' == '' ">false</RestorePackages>
<!-- Property that enables building a package from a project -->
<BuildPackage Condition=" '$(BuildPackage)' == '' ">false</BuildPackage>
<!-- Download NuGet.exe if it does not already exist -->
<DownloadNuGetExe Condition=" '$(DownloadNuGetExe)' == '' ">false</DownloadNuGetExe>
</PropertyGroup>
<ItemGroup Condition=" '$(PackageSources)' == '' ">
<!-- Package sources used to restore packages. By default will used the registered sources under %APPDATA%\NuGet\NuGet.Config -->
<!--
<PackageSource Include="https://nuget.org/api/v2/" />
<PackageSource Include="https://my-nuget-source/nuget/" />
-->
</ItemGroup>
<PropertyGroup Condition=" '$(OS)' == 'Windows_NT'">
<!-- Windows specific commands -->
<NuGetToolsPath>$([System.IO.Path]::Combine($(SolutionDir), ".nuget"))</NuGetToolsPath>
<PackagesConfig>$([System.IO.Path]::Combine($(ProjectDir), "packages.config"))</PackagesConfig>
<PackagesDir>$([System.IO.Path]::Combine($(SolutionDir), "packages"))</PackagesDir>
</PropertyGroup>
<PropertyGroup Condition=" '$(OS)' != 'Windows_NT'">
<!-- We need to launch nuget.exe with the mono command if we're not on windows -->
<NuGetToolsPath>$(SolutionDir).nuget</NuGetToolsPath>
<PackagesConfig>packages.config</PackagesConfig>
<PackagesDir>$(SolutionDir)packages</PackagesDir>
</PropertyGroup>
<PropertyGroup>
<!-- NuGet command -->
<NuGetExePath Condition=" '$(NuGetExePath)' == '' ">$(NuGetToolsPath)\nuget.exe</NuGetExePath>
<PackageSources Condition=" $(PackageSources) == '' ">@(PackageSource)</PackageSources>
<NuGetCommand Condition=" '$(OS)' == 'Windows_NT'">"$(NuGetExePath)"</NuGetCommand>
<NuGetCommand Condition=" '$(OS)' != 'Windows_NT' ">mono --runtime=v4.0.30319 $(NuGetExePath)</NuGetCommand>
<PackageOutputDir Condition="$(PackageOutputDir) == ''">$(TargetDir.Trim('\\'))</PackageOutputDir>
<!-- Commands -->
<RestoreCommand>$(NuGetCommand) install "$(PackagesConfig)" -source "$(PackageSources)" -o "$(PackagesDir)"</RestoreCommand>
<BuildCommand>$(NuGetCommand) pack "$(ProjectPath)" -p Configuration=$(Configuration) -o "$(PackageOutputDir)" -symbols</BuildCommand>
<!-- Make the build depend on restore packages -->
<BuildDependsOn Condition="$(RestorePackages) == 'true'">
RestorePackages;
$(BuildDependsOn);
</BuildDependsOn>
<!-- Make the build depend on restore packages -->
<BuildDependsOn Condition="$(BuildPackage) == 'true'">
$(BuildDependsOn);
BuildPackage;
</BuildDependsOn>
</PropertyGroup>
<Target Name="CheckPrerequisites">
<!-- Raise an error if we're unable to locate nuget.exe -->
<Error Condition="'$(DownloadNuGetExe)' != 'true' AND !Exists('$(NuGetExePath)')" Text="Unable to locate '$(NuGetExePath)'" />
<SetEnvironmentVariable EnvKey="VisualStudioVersion" EnvValue="$(VisualStudioVersion)" Condition=" '$(VisualStudioVersion)' != '' AND '$(OS)' == 'Windows_NT' " />
<DownloadNuGet OutputFilename="$(NuGetExePath)" Condition=" '$(DownloadNuGetExe)' == 'true' AND !Exists('$(NuGetExePath)')" />
</Target>
<Target Name="RestorePackages" DependsOnTargets="CheckPrerequisites">
<Exec Command="$(RestoreCommand)"
Condition="'$(OS)' != 'Windows_NT' And Exists('$(PackagesConfig)')" />
<Exec Command="$(RestoreCommand)"
LogStandardErrorAsError="true"
Condition="'$(OS)' == 'Windows_NT' And Exists('$(PackagesConfig)')" />
</Target>
<Target Name="BuildPackage" DependsOnTargets="CheckPrerequisites">
<Exec Command="$(BuildCommand)"
Condition=" '$(OS)' != 'Windows_NT' " />
<Exec Command="$(BuildCommand)"
LogStandardErrorAsError="true"
Condition=" '$(OS)' == 'Windows_NT' " />
</Target>
<UsingTask TaskName="DownloadNuGet" TaskFactory="CodeTaskFactory" AssemblyFile="$(MSBuildToolsPath)\Microsoft.Build.Tasks.v4.0.dll">
<ParameterGroup>
<OutputFilename ParameterType="System.String" Required="true" />
</ParameterGroup>
<Task>
<Reference Include="System.Core" />
<Using Namespace="System" />
<Using Namespace="System.IO" />
<Using Namespace="System.Net" />
<Using Namespace="Microsoft.Build.Framework" />
<Using Namespace="Microsoft.Build.Utilities" />
<Code Type="Fragment" Language="cs">
<![CDATA[
try {
OutputFilename = Path.GetFullPath(OutputFilename);
Log.LogMessage("Downloading latest version of NuGet.exe...");
WebClient webClient = new WebClient();
webClient.DownloadFile("https://nuget.org/nuget.exe", OutputFilename);
return true;
}
catch (Exception ex) {
Log.LogErrorFromException(ex);
return false;
}
]]>
</Code>
</Task>
</UsingTask>
<UsingTask TaskName="SetEnvironmentVariable" TaskFactory="CodeTaskFactory" AssemblyFile="$(MSBuildToolsPath)\Microsoft.Build.Tasks.v4.0.dll">
<ParameterGroup>
<EnvKey ParameterType="System.String" Required="true" />
<EnvValue ParameterType="System.String" Required="true" />
</ParameterGroup>
<Task>
<Using Namespace="System" />
<Code Type="Fragment" Language="cs">
<![CDATA[
try {
Environment.SetEnvironmentVariable(EnvKey, EnvValue, System.EnvironmentVariableTarget.Process);
}
catch {
}
]]>
</Code>
</Task>
</UsingTask>
</code></pre>
<p></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 become a "Family". My husband and I have had iPhones pretty much since they were first available. We each had our own accounts. After a couple of years we met and then married.
What is the best way to become a "family" so that we can start to make use of Family Sharing in iTunes so that we can share purchases? We have both purchased different apps over the years and ideally we don't want to lose the right to install each other's apps.
I know that you can log out of the appstore, log in as the other person and then download the app the other one purchased. However, that's inconvenient and requires the other persons password when apps are updated.
I'm hoping that somehow we can become a "Family" to avoid all that hassle....but I'm not clear on how best to move forward. | 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 |
Mr. Eazi to provide 10,000 ‘lockdown meals’. | 0non-cybersec
| Reddit |
Properly Marking Posts. PLEASE UPVOTE FOR VISBILITY. I RECEIVE NO KARMA FOR SELF-POSTS
If you do not mark a post NSFW when it needs to be, you will be given one warning, after that you may be banned an posts removed. As a community, I rely on you to report posts that violate this rule.
Thanks guys! | 0non-cybersec
| Reddit |
What are the polar coordinates of the origin?. <p>In polar coordinates, the origin has $r = 0$, but $\theta$ is not unique.</p>
<p>what sort of problems does this create, and how can I resolve them? For example, suppose an ant is wandering around a plane. Its speed is</p>
<p>$$s = \sqrt{\dot{r}^2 + r^2 \dot{\theta}^2}$$</p>
<p>but if the ant wanders through the origin a quantity like $\dot{\theta}$ is undefined. In this particular case I can deal with it because the limit</p>
<p>$$\lim_{r\to 0}\ r^2\dot{\theta}^2$$</p>
<p>is defined. Similarly, if I want to find an area with integration, I'd need to look at the Jacobian</p>
<p>$$\left|\begin{array}{cc}\partial r / \partial x & \partial r / \partial y \\ \partial \theta / \partial x & \partial \theta / \partial y\end{array}\right|$$</p>
<p>which is not defined at the origin. Again I can get around it. If I want the area of the unit circle, for example, I can take</p>
<p>$$\lim_{\epsilon \to 0} \int_{\theta = 0}^{2\pi}\int_{r=\epsilon}^1 r\ \textrm{d}r\textrm{d}\theta$$</p>
<p>How do I know I can always work around things like this? If I receive some other coordinate system, how can I tell if the points with no unique coordinates are going to give me trouble?</p>
| 0non-cybersec
| Stackexchange |
I am the Spiny Lizard whisperer.. | 0non-cybersec
| Reddit |
crispy chicken with handmade noodles [OC] [4128 x 2322]. | 0non-cybersec
| Reddit |
Farewell Aphromoo - CLG. | 0non-cybersec
| Reddit |
As Virus Toll Preoccupies U.S., Rivals Test Limits of American Power. | 0non-cybersec
| Reddit |
Macbook won't connect to xfinity hotspot. <p>Try as I might, I can't get my MacBook to talk to the local Xfinity hotspot, by which I mean the public hotspots called "xfinitywifi" (not my house's router). </p>
<p>My iPad connects to it fine and it gives me the magical sign-on page, which I do, and Bob's Your Uncle. But the MacBook -- nada -- just no network seen. I've tried with both Chrome and Safari. </p>
<p>What's supposed to happen (and which happens perfectly fine on the iPad) is that you go to some random url, and it redirects you first to an Xfinity specific login page, which you do, and then you're in. Again, my iPad does this exactly fine. But try as I might, I can't get my MacBook to do it on either Chrome or Safari, just sees no network at all. </p>
<p>I've tried turning off my firewalls, no joy. Some web surfing led me to a probably bogus theory about having to go to a non-https site. I tried that too but it didn't work. I'm stumped. </p>
<p>BTW, my MacBook works fine on every other secondary hotspot I've tried, like the local library, so I know I can normally connect to public wifi. </p>
| 0non-cybersec
| Stackexchange |
Sea turtle returned to ocean in Hobe Sound after 2016 shark attack. | 0non-cybersec
| Reddit |
Uninstall gmusic browser. <p>I would like to uninstall gmusic browser from my xubuntu installation. I find it does not meet my playback requirements. How do I go about this? </p>
| 0non-cybersec
| Stackexchange |
Both of my babies. (67 Pontiac Catalina, 09 Nissan 370z). | 0non-cybersec
| Reddit |
RealVNC GPO Install not showing in systray. <p>Have installed RealVNC 6.3.2 on a test PC using the GPO Computer Configuration.</p>
<p>However when it is deployed to the test machine, I can see VNC Server in the start menu (doesn't produce any dialog box when clicked on), cannot see a VNC Server icon in the notification area/systray, and when trying to connect get "The connection was refused by the computer", which according to <a href="https://www.realvnc.com/en/connect/docs/connect-error-ref.html#connect-error-ref" rel="nofollow noreferrer">https://www.realvnc.com/en/connect/docs/connect-error-ref.html#connect-error-ref</a> infers that the server isn't running (despite services.msc stating it is) or it is listening on the wrong port. Unless I am missing something, without the notification area/systray icon for RealVNC, I cannot check on which port it is configured to listen on.</p>
<p>My assumption is that VNC has been installed on some system account, and hence the GUI is appearing on a different console. Though the install docs didn't mention any issue with deploying to PCs, Users, or both.</p>
<p>Anyone know what is going here?</p>
| 0non-cybersec
| Stackexchange |
Update Server BIOS - Supermicro 5015A-EHF-D525. <p>I've got a Barebone-Server with the Supermicro 5015A-EHF-D525 Mainboard.
Now I urgently need to update the BIOS to the newest version. Too bad I've never done that before and google isn't much help either. </p>
<p>I've downloaded the newest version of the BIOS and got the following 4 files:</p>
<ul>
<li>AFUDOS.SMC</li>
<li>ami.bat</li>
<li>Readme for AMI BIOS.txt</li>
<li>X7SPA3.719</li>
</ul>
<p>But now what? I read somewhere that I have to put this files on a bootable USB device? Is that true, and if so, how do I do it?</p>
<p>I also read, that I have to run the ami.bat with the X7SPA3.719 as a parameter on the device I want to be able to boot from later, but that didn't wokr either.</p>
<p>Since I really don't have to deal with that kind of problem often I'm pretty unexperienced so please try to explain it so even a newbie like I can understand it.</p>
<p>Thanks a lot in advance for your time and effort.
L Meier</p>
| 0non-cybersec
| Stackexchange |
Minecraft leads to many types of happiness. | 0non-cybersec
| Reddit |
This happened last night when my crush came over. | 0non-cybersec
| Reddit |
[Help] Any advice for crate training a new dog with severe separation anxiety?. Last Thursday, my husband and I adopted a beautiful 4 year old rescue. She had been abandoned in El Paso, TX and given up to a Cocker Spaniel Rescue with her siblings. She's not a Cocker at all, though. She was with her foster for a month and then came to us.
We had to leave for a few events in the evening since we got her and have put her in the crate with plenty of toys and a stuffed Kong. Whenever she's in the crate, she goes BALLISTIC and tears apart everything in sight without touching her Kong. She's destroyed 2 crate pads, a collar, several toys, and the bars on the crate are already bending.
Does anyone have advice on crate training a dog with separation anxiety like this? We're planning on starting with smaller increments and working up to more but I'm not sure what to put in the crate with her while we do that or how to get her to relax in there and eat her distraction food. | 0non-cybersec
| Reddit |
-bash-4.2$ for command line?. <p>I don't know why when I SSH with putty onto my VPS, my command line starts with: <code>-bash-4.2$</code> It hasn't ever been like that, it was <code>myname@localhost</code></p>
<p>Only thing I have done different in the last 24 hours, was disable root, and create myself a login, rebooted the VPS. I did in fact SSH back onto the VPS after reboot, so I don't know why when I woke up, it's running under bash.</p>
<p>Nothing is changing in bash, so its obvious something isn't right.</p>
<pre><code>-bash-4.2$ cd/
-bash: cd/: No such file or directory
-bash-4.2$ cd //
-bash-4.2$ cd /
-bash-4.2$ cd /var/www/
</code></pre>
| 0non-cybersec
| Stackexchange |
Classy burns.. | 0non-cybersec
| Reddit |
Escorts in Chennai. | 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 |
Borrow checker error after adding generic parameter to struct. <p>I have code that works, but it stops compiling with a borrow checker error after a change. I don't understand how the change could affect borrow checking.</p>
<p>Common part to both working and non-working code:</p>
<pre class="lang-rust prettyprint-override"><code>/// Some struct that has references inside
#[derive(Debug)]
struct MyValue<'a> {
number: &'a u32,
}
/// There are many structs similar to `MyValue` and there is a
/// trait common to them all that can create them. In this
/// example I use the `From` trait.
impl<'a> From<&'a u32> for MyValue<'a> {
fn from(value: &'a u32) -> Self {
MyValue { number: value }
}
}
/// `Producer` makes objects that hold references into it. So
/// the produced object must be first dropped before any new
/// one can be made.
trait Producer<'a, T: 'a> {
fn make(&'a mut self) -> T;
}
</code></pre>
<p>Here is the working code:</p>
<pre class="lang-rust prettyprint-override"><code>struct MyProducer {
number: u32,
}
impl MyProducer {
fn new() -> Self {
Self { number: 0 }
}
}
impl<'a, T: 'a + From<&'a u32>> Producer<'a, T> for MyProducer {
fn make(&'a mut self) -> T {
self.number += 1;
T::from(&self.number)
}
}
fn main() {
let mut producer = MyProducer::new();
println!(
"made this: {:?}",
<MyProducer as Producer<MyValue>>::make(&mut producer)
);
println!(
"made this: {:?}",
<MyProducer as Producer<MyValue>>::make(&mut producer)
);
}
</code></pre>
<p>This compiles and prints the expected output:</p>
<pre class="lang-none prettyprint-override"><code>made this: MyValue { number: 1 }
made this: MyValue { number: 2 }
</code></pre>
<p>I don't like that <code>MyProducer</code> actually implements <code>Producer</code> for every <code>T</code> as it makes it impossible to call <code>make</code> directly on it. I would like to have a type that is a <code>MyProducer</code> for a specific <code>T</code> (for example for <code>MyValue</code>).</p>
<p>To achieve this, I want to add a generic parameter to <code>MyProducer</code>. Because the <code>MyProducer</code> does not really use the <code>T</code>, I use <code>PhantomData</code> to prevent the compiler from complaining.</p>
<p>Here is the code after changes:</p>
<pre class="lang-rust prettyprint-override"><code>use std::marker::PhantomData;
struct MyProducer<'a, T: 'a + From<&'a u32>> {
number: u32,
_phantom: PhantomData<&'a T>,
}
impl<'a, T: 'a + From<&'a u32>> MyProducer<'a, T> {
fn new() -> Self {
Self {
number: 0,
_phantom: PhantomData::default(),
}
}
}
impl<'a, T: From<&'a u32>> Producer<'a, T> for MyProducer<'a, T> {
fn make(&'a mut self) -> T {
self.number += 1;
T::from(&self.number)
}
}
fn main() {
let mut producer = MyProducer::<MyValue>::new();
println!("made this: {:?}", producer.make());
println!("made this: {:?}", producer.make());
}
</code></pre>
<p>The <code>main</code> function now looks exactly as I would like it to look like. But the code does not compile. This is the error:</p>
<pre class="lang-none prettyprint-override"><code>error[E0499]: cannot borrow `producer` as mutable more than once at a time
--> src/main.rs:50:33
|
49 | println!("made this: {:?}", producer.make());
| -------- first mutable borrow occurs here
50 | println!("made this: {:?}", producer.make());
| ^^^^^^^^
| |
| second mutable borrow occurs here
| first borrow later used here
</code></pre>
<p>I don't understand why it no longer works. The produced object is still dropped before the next one is made.</p>
<p>If I call the <code>make</code> function just once, it compiles and works.</p>
<p>I am using edition 2018, so NLL is active.</p>
<p><a href="https://play.rust-lang.org/?version=nightly&mode=debug&edition=2018&gist=3d8430803a2919fb7dea6aa4ecbb98ef" rel="nofollow noreferrer">Rust Playground: working version before change</a></p>
<p><a href="https://play.rust-lang.org/?version=nightly&mode=debug&edition=2018&gist=25e9849cd6fa9b87f3ee04a739e184d7" rel="nofollow noreferrer">Rust Playground: broken version after change</a></p>
| 0non-cybersec
| Stackexchange |
Expansion of this function in a Fourier-Legendre series. <p>Let $f : (-1,1)\to \mathbb{R}$ be given by</p>
<p>$$f(x) = \begin{cases}0, & x\in (-1,0) \\ 1, & x \in [0,1)\end{cases}$$</p>
<p>and suppose we want to compute the Fourier-Legendre series of $f$, that is we want to write</p>
<p>$$f = \sum_{n}c_n P_n$$</p>
<p>with</p>
<p>$$c_n = \dfrac{\langle f,c_n\rangle }{|P_n|^2} = \dfrac{2}{2n+1}\int_{-1}^{1}f(x)P_n(x)dx.$$</p>
<p>This integral, though is quite complicated. Substituting $f$ we have</p>
<p>$$c_n = \dfrac{2}{2n+1}\int_0^1P_n(x)dx.$$</p>
<p>Now, I've been trying to compute the RHS but I still couldn't. I've tried writing</p>
<p>$$P_n(x) = \dfrac{1}{2^nn!}\dfrac{d^n}{dx^n}[(x^2-1)^n]$$</p>
<p>so that</p>
<p>$$c_n = \dfrac{2}{(2n+1)2^n n!} \left[\dfrac{d^{n-1}}{dx^{n-1}}[(x^2-1)^n]\right]_0^1,$$</p>
<p>but still I can't compute the boundary terms. In that case, is there an easier way to compute those coefficients? If not, how could I finish the calculation I've started?</p>
<p>Thanks very much in advance.</p>
| 0non-cybersec
| Stackexchange |
What is Pre-med and pre-law?. | 0non-cybersec
| Reddit |
Is there a Java Map keySet() equivalent for C++'s std::map?. <p>Is there a Java Map keySet() equivalent for C++'s <code>std::map</code>? </p>
<p>The Java <code>keySet()</code> method returns <a href="http://download.oracle.com/javase/7/docs/api/java/util/Map.html#keySet()" rel="nofollow noreferrer">"a set view of the keys contained in this map."</a></p>
| 0non-cybersec
| Stackexchange |
September 2, 1945. 70 years ago today, Japan formally surrenders aboard the USS Missouri [814x648]. | 0non-cybersec
| Reddit |
Tomorrow I’m going to ask my crush out to the pier. We went on a date together before but I want to do it again. I’m kinda nervous but not as much as I was before
edit: she said she would love to but she and her friend were going to go to a water park and then a concert over the weekend, so rip but maybe next weekend | 0non-cybersec
| Reddit |
Gnome fallback panel Color. <p>I'm running fedora 19 and I want to use the gnome fallback (classic) mode but I don't like the panel colors. I want black panels and in gnome 2 you can configure them but not in gnome fallback. How do I change it?</p>
| 0non-cybersec
| Stackexchange |
plotting a histogram on a Log scale with Matplotlib. <p>I have a pandas DataFrame that has the following values in a Series</p>
<pre><code>x = [2, 1, 76, 140, 286, 267, 60, 271, 5, 13, 9, 76, 77, 6, 2, 27, 22, 1, 12, 7, 19, 81, 11, 173, 13, 7, 16, 19, 23, 197, 167, 1]
</code></pre>
<p>I was instructed to plot two histograms in a Jupyter notebook with Python 3.6. No sweat right?</p>
<pre><code>x.plot.hist(bins=8)
plt.show()
</code></pre>
<p>I chose 8 bins because that looked best to me.
I have also been instructed to plot another histogram with the log of x.</p>
<pre><code>x.plot.hist(bins=8)
plt.xscale('log')
plt.show()
</code></pre>
<p>This histogram looks TERRIBLE. Am I not doing something right? I've tried fiddling around with the plot, but everything I've tried just seems to make the histogram look even worse. Example:</p>
<pre><code>x.plot(kind='hist', logx=True)
</code></pre>
<p>I was not given any instructions other than plot the log of X as a histogram. </p>
<p>I really appreciate any help!!! </p>
<p>For the record, I have imported pandas, numpy, and matplotlib and specified that the plot should be inline. </p>
| 0non-cybersec
| Stackexchange |
Sinon stub being skipped as node express middleware. <p>I'm trying to test the behavior of a particular route. It continues to run the middleware even when I create a stub. I want the event authentication to simply pass for now. I understand that it's not truly a "unit" test at this point. I'm getting there. I've also simplified the code a little. Here is the code to test:</p>
<pre><code>const { rejectUnauthenticated } = require('../modules/event-authentication.middleware');
router.get('/event', rejectUnauthenticated, (req, res) => {
res.sendStatus(200);
});
</code></pre>
<p>Here is the middleware I am trying to skip:</p>
<pre><code>const rejectUnauthenticated = async (req, res, next) => {
const { secretKey } = req.query;
if (secretKey) {
next();
} else {
res.status(403).send('Forbidden. Must include Secret Key for Event.');
}
};
module.exports = {
rejectUnauthenticated,
};
</code></pre>
<p>The test file:</p>
<pre><code>const chai = require('chai');
const chaiHttp = require('chai-http');
const sinon = require('sinon');
let app;
const authenticationMiddleware = require('../server/modules/event-authentication.middleware');
const { expect } = chai;
chai.use(chaiHttp);
describe('with correct secret key', () => {
it('should return bracket', (done) => {
sinon.stub(authenticationMiddleware, 'rejectUnauthenticated')
.callsFake(async (req, res, next) => next());
app = require('../server/server.js');
chai.request(app)
.get('/code-championship/registrant/event')
.end((err, response) => {
expect(response).to.have.status(200);
authenticationMiddleware.rejectUnauthenticated.restore();
done();
});
});
});
</code></pre>
<p>I've tried following other similar questions like this: <a href="https://stackoverflow.com/questions/41995464/how-to-mock-middleware-in-express-to-skip-authentication-for-unit-test">How to mock middleware in Express to skip authentication for unit test?</a> and this: <a href="https://stackoverflow.com/questions/41392497/node-express-es6-sinon-stubbing-middleware-not-working">node express es6 sinon stubbing middleware not working</a> but I'm still getting the 403 from the middleware that should be skipped. I also ran the tests in debug mode, so I know the middleware function that should be stubbed is still running.</p>
<p>Is this an issue with stubbing my code? Is this an ES6 issue?</p>
<p>Can I restructure my code or the test to make this work?</p>
| 0non-cybersec
| Stackexchange |
My SO likes being touched whilst in slumber..... Does your SO like being touched while sleeping? Do you? Mine came twice ;) | 0non-cybersec
| Reddit |
Distributed mirrored filesystem under FreeBSD. <p>Can someone share their experience in building a distributed mirrored filesystem between multiple FreeBSD machines? I. e. we have two (three, four...) servers and special partition "part1" mounted on each of them. We make some changes on it on the machine1 and theese changes instantly take effect on "part1" at all other machines. There are not often write operations on our "cluster", but very often read operations (like static web data of high loaded internet project). We want to have a symmetric access to all machines at the same time (witout "blocking" access to one of them). Our goal is providing high availability, fault tolerance and redudance (and probably hot-swap adding and removing members of this "cluster"). Are there any native technologies like Ceph for Linux?</p>
| 0non-cybersec
| Stackexchange |
Help with partitioning. <p>I am attempting to install Ubuntu alongise Windows on my laptop with a 128GB ssd. When I got to the step to partition the drive, I decided to allocate 25 GB for Ubuntu. But the computer froze. </p>
<p>I looked around and read that it's recommended to first run Ubuntu off of the flash drive and use GParted to partition my drive that way. So that is what I decided to do. However, when I got into GParted, I realized I was still a bit confused. Not sure which partition to select and which is what, so on. </p>
<p><a href="https://i.stack.imgur.com/YxZQM.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/YxZQM.jpg" alt="gparted screenshot"></a></p>
<p>I would appreciate any help. Thanks in advance!</p>
| 0non-cybersec
| Stackexchange |
Can someone upload some original 3GS files for me?. I recently attempted to Enable 720p HD video recording on my 3GS and ever since while trying to take a normal picture it has horrible lag. I need the original *AVCapture.plist*, *CameraRollValidator.plist*, *MediaValidator.plist*, located in /System/Library/PrivateFrameworks/Celestial.framework/N88/. Then I also need *N88AP.plist* located in /System/Library/CoreServices/SpringBoard.app/ Thanks so much for anyone that can help me out. | 0non-cybersec
| Reddit |
I think I accidentally made a batch of vulva cookies.... I'm pretty pleased with myself.. | 0non-cybersec
| Reddit |
Populate a mongoose model with a field that isn't an id. <p>Is it possible to populate a mongoose model with a field of a reference model that isn't the _id ... e.g. a username.</p>
<p>so something like</p>
<pre><code>var personSchema = Schema({
_id : Number,
name : String,
age : Number,
stories : { type: String, field: "username", ref: 'Story' }
});
</code></pre>
| 0non-cybersec
| Stackexchange |
Alphabetical order problem in bibliography. <p>I am using BibTeX (with <code>natbib</code>) and I have a file <code>mybib.bib</code> with the following reference:</p>
<pre><code>@Article{DPMN92,
author = {G. Da Prato and P. Malliavin and D. Nualart},
title = {Compact families of Wiener functionals},
journal = {C. R. Acad. Sci. Paris},
year = {1992},
OPTkey = {•},
volume = {315},
number = {S\'{e}rie I},
pages = {1287--1291},
OPTmonth = {•},
OPTnote = {•},
OPTannote = {•}
}
</code></pre>
<p>Then I have many more. The problem is that this reference is ordered as "P" and not as "D". I have tried binding "Da~Prato" like that but it does not help, writing {Da Prato} does not help either.</p>
<p>What is the problem? My <code>.tex</code> file looks like this:</p>
<pre><code>\documentclass[article]{imsart}
\usepackage{amsthm,amsmath,natbib}
\begin{document}
\bibliographystyle{plain}
\bibliography{mybib}
\end{document}
</code></pre>
| 0non-cybersec
| Stackexchange |
Managing Macs at Google Scale. | 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 |
Invertible matrices, permutations and leading principal minors. <p>Given an invertible $\{-1,0,1\}$-matrix $A$ (its determinant is $\pm 1$), are there two permutation matrices $P$ and $Q$ such that all the leading principal minors (determinants of the top-left sub-matrices) of $A' = P A Q$ are $\pm 1$?</p>
<p>For example,
$$ A = \left[ \begin{array}{cccc}
0 & 1 & 1 & -1 \\
0 & 0 & -1 & -1 \\
1 & 1 & 0 & 1 \\
1 & 1 & 0 & 0
\end{array} \right], \quad \det(A) = 1 $$
and
$$
A' =
\left[ \begin{array}{cccc}
0 & 1 & 0 & 0 \\
0 & 0 & 1 & 0 \\
0 & 0 & 0 & 1 \\
1 & 0 & 0 & 0
\end{array} \right]
\cdot A \cdot
\left[ \begin{array}{cccc}
0 & 0 & 0 & 1 \\
0 & 0 & 1 & 0 \\
1 & 0 & 0 & 0 \\
1 & 1 & 0 & 0
\end{array} \right]
=
\left[ \begin{array}{cccc}
-1 & -1 & 0 & 0 \\
0 & 1 & 1 & 1 \\
0 & 0 & 1 & 1 \\
1 & -1 & 1 & 0
\end{array} \right]
$$
accomplishes the condition.</p>
| 0non-cybersec
| Stackexchange |
Facebook Graph API : get larger pictures in one request. <p>I'm currently using <a href="https://developers.facebook.com/tools/explorer/">the Graph API Explorer</a> to make some tests. That's a good tool.</p>
<p>I want to get the user's friend list, with friends' names, ids and pictures. So I type :</p>
<pre><code>https://graph.facebook.com/me/friends?fields=id,picture,name
</code></pre>
<p>But picture is only 50x50, and I would like a larger one in this request.</p>
<p>Is it possible ?</p>
| 0non-cybersec
| Stackexchange |
California's Drought: Inside a Home without Water (2015) - A look inside a home that has run out of water due to the drought.. | 0non-cybersec
| Reddit |
Who are the best players in world football who have not been capped by their country?. CURRENT, not all time. | 0non-cybersec
| Reddit |
Wealthy Chinese begin farming after food-safety scares. | 0non-cybersec
| Reddit |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.