text
stringlengths 3
1.74M
| label
class label 2
classes | source
stringclasses 3
values |
---|---|---|
ls with a wildcard. <p>This works from the terminal:</p>
<pre><code>ls /dev/sda*
</code></pre>
<p>I want it in a bash script, using a variable. I tried:</p>
<pre><code>device="a"
ls "/dev/sd"$device"*"
</code></pre>
<p>But I get the error: <code>ls: cannot access '/dev/sda*': No such file or directory</code>.</p>
| 0non-cybersec
| Stackexchange |
Starlink Battle for Atlas - Nintendo Switch Starter Edition at Amazon for $39.99. Why try and deal with those black friday lines, on amazon now....
http://a.co/d/1F7oM4U | 0non-cybersec
| Reddit |
Stopping auto-rotation of images in Django-imagekit Thumbnail. <p>I've got a thumbnail filter that always ends up rotating the image 90 degrees to the left when the image is taller than it is wide (I've checked, and the original image is straight, while the cached image is rotated). The relevant code looks like this:</p>
<pre><code>profile_image = models.ImageField(upload_to='profile_images', default='profile_images/icon.png')
profile_icon = ImageSpecField(source='profile_image',
processors=[processors.Thumbnail(width=72, height=72, crop=True)],
format='JPEG',
options={'quality': 60})
</code></pre>
<p>How do I stop the auto-rotation?</p>
| 0non-cybersec
| Stackexchange |
Decay of a convolution from its Fourier transform. <p>I have the following, physically motivated problem:</p>
<p>Consider the convolution <span class="math-container">$F(x):=\int f(y)\Delta_0(x-y)d^4y$</span> where <span class="math-container">$f\in\mathcal{C}_0^\infty(\mathbb{R}^4)$</span>, i.e. smooth and compactly supported, while <span class="math-container">$\Delta_0\in\mathcal{S}'(\mathbb{R}^4)$</span> is the <strong>massless</strong> two-point function (Wightman function). It can be written as </p>
<ol>
<li><span class="math-container">$\Delta_0(x)=\int\delta(k^2)\theta(k^0)e^{-ikx}d^4k$</span></li>
<li><span class="math-container">$\Delta_0(x)=\lim_{\epsilon\rightarrow 0}\frac{1}{x^2-i\epsilon x^0}$</span></li>
</ol>
<p>Theorem 4.1.1 in Hörmander's "The Analysis of partial differential operators I" asserts that <span class="math-container">$F\in\mathcal{C}^\infty(\mathbb{R}^4)$</span>. However, I would like to make some statements on the decay properties of <span class="math-container">$F$</span> (1. suggest that it decays like <span class="math-container">$1/r^2$</span> in spacelike directions).</p>
<p>More generally, how can I determine the decay properties of a function <span class="math-container">$f$</span> through its Fourier transform <span class="math-container">$\hat{f}$</span>?</p>
<p>If <span class="math-container">$f$</span> was integrable I would try to use the connection <span class="math-container">$x_i f(x)\leftrightarrow \frac{\partial}{\partial k_i}\hat{f}(k)$</span>, but how can I proceed if <span class="math-container">$f$</span> is smooth but not integrable, e.g. a smooth (tempered) distribution?</p>
<p>Thank you very much for your help :)</p>
| 0non-cybersec
| Stackexchange |
They kicked the dogs off of their own bed .... | 0non-cybersec
| Reddit |
Why is the sprite not rendering in OpenGL?. <p>I am trying to render a 2D(Screen coordinated) sprite in OpenGL. Yet, when I compile it, it does not show up. I see that the code is fine (There are not even any shader compilation errors nor any other errors). I also have also the matrices set up(which I doubt is causing the problem, and that's where starts the CONFUSION!!)</p>
<p>Here is the source code, by the way(without debugging, to make it short):-</p>
<p><b>main.cpp</b></p>
<pre><code>// Including all required headers here...
#include <iostream>
#define GLEW_STATIC
#include <GL/glew.h>
#include <GLFW/glfw3.h>
#include "SOIL2/SOIL2.h"
#include <glm/glm.hpp>
#include <glm/gtc/type_ptr.hpp>
#include <glm/gtc/matrix_transform.hpp>
const GLchar * vertexShaderSource =
"#version 330 core\n"
"layout(location = 0) in vec4 vertex;\n"
"out vec2 TexCoords;\n"
"uniform mat4 model;\n"
"uniform mat4 projection;\n"
"void main()\n"
"{\n"
"TexCoords = vertex.zw;\n"
"gl_Position = projection * model * vec4(vertex.xy, 0.0, 1.0);\n"
"}\0";
const GLchar * fragmentShaderSource =
"#version 330 core\n"
"in vec2 TexCoords;\n"
"out vec4 color;\n"
"uniform sampler2D image;\n"
"uniform vec3 spriteColor;\n"
"void main()\n"
"{\n"
"color = vec4(spriteColor, 1.0) * texture(image, TexCoords);\n"
"}\0";
const GLint WIDTH = 800, HEIGHT = 600;
int main()
{
glfwInit();
glfwWindowHint(GLFW_CONTEXT_VERSION_MAJOR, 3);
glfwWindowHint(GLFW_CONTEXT_VERSION_MINOR, 3);
glfwWindowHint(GLFW_OPENGL_PROFILE, GLFW_OPENGL_CORE_PROFILE);
glfwWindowHint(GLFW_OPENGL_FORWARD_COMPAT, GLFW_FALSE);
glfwWindowHint(GLFW_RESIZABLE, GL_FALSE);
GLFWwindow *window = glfwCreateWindow(WIDTH, HEIGHT, "Rendering Sprites", nullptr, nullptr);
int screenWidth, screenHeight;
glfwGetFramebufferSize(window, &screenWidth, &screenHeight);
glfwMakeContextCurrent(window);
glewExperimental = GL_TRUE;
glewInit();
glViewport(0, 0, screenWidth, screenHeight);
glEnable(GL_BLEND);
glBlendFunc(GL_SRC_ALPHA, GL_ONE_MINUS_SRC_ALPHA);
GLuint vertexShader = glCreateShader(GL_VERTEX_SHADER);
glShaderSource(vertexShader, 1, &vertexShaderSource, NULL);
glCompileShader(vertexShader);
GLuint fragmentShader = glCreateShader(GL_FRAGMENT_SHADER);
glShaderSource(fragmentShader, 1, &fragmentShaderSource, NULL);
glCompileShader(fragmentShader);
GLuint shaderProgram = glCreateProgram();
glAttachShader(shaderProgram, vertexShader);
glAttachShader(shaderProgram, fragmentShader);
glLinkProgram(shaderProgram);
glDeleteShader(vertexShader);
glDeleteShader(fragmentShader);
GLuint quadVAO;
GLuint VBO;
GLfloat vertices[] =
{
0.0f, 1.0f, 0.0f, 1.0f,
1.0f, 0.0f, 1.0f, 0.0f,
0.0f, 0.0f, 0.0f, 0.0f,
0.0f, 1.0f, 0.0f, 1.0f,
1.0f, 1.0f, 1.0f, 1.0f,
1.0f, 0.0f, 1.0f, 0.0f
};
glGenVertexArrays(1, &quadVAO);
glGenBuffers(1, &VBO);
glBindBuffer(GL_ARRAY_BUFFER, VBO);
glBufferData(GL_ARRAY_BUFFER, sizeof(vertices), vertices, GL_STATIC_DRAW);
glBindVertexArray(quadVAO);
glEnableVertexAttribArray(0);
glVertexAttribPointer(0, 4, GL_FLOAT, GL_FALSE, 4 * sizeof(GLfloat), (GLvoid*)0);
glBindBuffer(GL_ARRAY_BUFFER, 0);
glBindVertexArray(0);
GLuint texture;
int width, height;
glGenTextures(1, &texture);
glBindTexture(GL_TEXTURE_2D, texture);
glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_WRAP_S, GL_REPEAT);
glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_WRAP_T, GL_REPEAT);
glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_MIN_FILTER, GL_LINEAR);
glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_MAG_FILTER, GL_LINEAR);
unsigned char *image = SOIL_load_image("img.png", &width, &height, 0, SOIL_LOAD_RGBA);
glTexImage2D(GL_TEXTURE_2D, 0, GL_RGBA, width, height, 0, GL_RGBA, GL_UNSIGNED_BYTE, image);
SOIL_free_image_data(image);
glBindTexture(GL_TEXTURE_2D, 0);
while (!glfwWindowShouldClose(window))
{
glfwPollEvents();
glClearColor(0.2f, 0.3f, 0.3f, 1.0f);
glClear(GL_COLOR_BUFFER_BIT);
glUseProgram(shaderProgram);
glm::mat4 model;
glm::mat4 projection = glm::ortho(0.0f, static_cast<GLfloat>(WIDTH), static_cast<GLfloat>(HEIGHT), 0.0f, -1.0f, 1.0f);
glm::vec2 size = glm::vec2(10.0f, 10.0f);
glm::vec2 position = glm::vec2(-10.0f, 10.0f);
glm::vec3 color = glm::vec3(1.0f, 0.0f, 0.0f);
GLfloat rotation = 0.0f;
model = glm::translate(model, glm::vec3(position, 0.0f));
model = glm::translate(model, glm::vec3(0.5f * size.x, 0.5f * size.y, 0.0f));
model = glm::rotate(model, rotation, glm::vec3(0.0f, 0.0f, 1.0f));
model = glm::translate(model, glm::vec3(-0.5f * size.x, -0.5f * size.y, 0.0f));
model = glm::scale(model, glm::vec3(size, 1.0f));
glUniformMatrix4fv(glGetUniformLocation(shaderProgram, "projection"), 1, GL_FALSE, glm::value_ptr(projection));
glUniformMatrix4fv(glGetUniformLocation(shaderProgram, "model"), 1, GL_FALSE, glm::value_ptr(model));
glUniform3f(glGetUniformLocation(shaderProgram, "spriteColor"), color.x, color.y, color.z);
glActiveTexture(GL_TEXTURE0);
glBindTexture(GL_TEXTURE_2D, texture);
glBindVertexArray(quadVAO);
glDrawArrays(GL_TRIANGLES, 0, 6);
glBindVertexArray(0);
glfwSwapBuffers(window);
}
glDeleteVertexArrays(1, &quadVAO);
glDeleteBuffers(1, &VBO);
glfwTerminate();
return EXIT_SUCCESS;
}
</code></pre>
| 0non-cybersec
| Stackexchange |
Maintenance Monday: Good for You, Not for Me. Open to any takes on today's title! Is there any common weight loss or maintenance wisdom that didn't work for you? Are there foods or activities you turn down without thinking about it? Do you find yourself ignoring or shutting down diet talk or fat logic? We're all on unique journeys, so let's share and celebrate our differences.
----------------------
Anything else on your mind pertaining maintenance? Is your diet going effortlessly, or have the last few weeks been more of a struggle? All questions, remarks and worries are welcome topics of conversation!
Also feel free to drop some suggestions for future Maintenance Monday threads - what topics do you find yourself wishing you had a like minded person to discuss with during regular life? | 0non-cybersec
| Reddit |
Exponential probability density functions of independent variables. <p>I just have a small technical question. I am in the midst of solving a problem where I have gotten 2 different exponential probability density functions that are as follows:</p>
<p>pdf #1: 3e^(-3x)</p>
<p>pdf #2: 5e^(-5y)</p>
<p>The question then asks of me to find the cumulative distribution function and the probability density function of W = X/Y. Note: the variables X & Y are independent.</p>
<p>Here is where I am confused:</p>
<p>To find the cumulative distribution function, all I would have to do is take the integral of (3e^(-3x) * 5e^(-5y)) to get the cdf? I believe I can multiply the pdfs since the two variables are independent!</p>
<p>To find the pdf of W, I am not entirely sure but again, since the variables are independent can I not just have pdf W = (pdf X)/(pdf Y)?</p>
<p>Help is greatly appreciated! Thanks :)</p>
| 0non-cybersec
| Stackexchange |
Outrun style music guide. | 0non-cybersec
| Reddit |
[US] Wild Wild West (1999) - An adaptation of an excellent TV series that epitomizes how a movie can suffer from production management and relentless cash-grabbing.. | 0non-cybersec
| Reddit |
Video playback not working/choppy in Linux Mint 19.2. <p>I have a problem with Linux Mint and video playback. </p>
<p>The issue is that opening any .mp4 from disk (don't have any other filestypes) results in video player crash. Tried many different players like vlc (which crashes), mplayer (fails with Exit Code 11) et cetera. </p>
<p>Also YouTube videos crash Firefox. Chromium plays YouTube videos but is very choppy. This may or may not be a separate issue.</p>
<p>As far as i see i have everything installed. Drivers, codecs, apps. Im at loss as to why this happens. Having been asking around people seem to suggest the machine is too old and slow but i disagree. We are talking about HD or FHD video playback here not 4K or something like that. If the <a href="http://download.msi.com/archive/mnu_exe/M7788v1.0.zip" rel="nofollow noreferrer">motherboard</a> and APU are under powered, it would be choppy but it would not outright crash.</p>
<p>This leads me to believe it's some sort of software configuration/conflict issue.
Below is <code>inxi -F && dmesg | grep -i error</code> output:</p>
<pre><code>System:
Host: eve Kernel: 4.15.0-58-generic x86_64 bits: 64
Desktop: Cinnamon 4.2.3 Distro: Linux Mint 19.2 Tina
Machine:
Type: Desktop Mobo: MSI model: H61M-P31 (G3) (MS-7788) v: 1.0 serial: N/A
UEFI: American Megatrends v: 2.7 date: 01/10/2013
CPU:
Topology: Dual Core model: Intel Celeron G550 bits: 64 type: MCP
L2 cache: 2048 KiB
Speed: 2594 MHz min/max: 1600/2600 MHz Core speeds (MHz): 1: 2594 2: 2594
Graphics:
Device-1: Intel 2nd Generation Core Processor Family Integrated Graphics
driver: i915 v: kernel
Display: server: X.Org 1.19.6 driver: modesetting unloaded: fbdev,vesa
resolution: 1920x1080~60Hz
OpenGL: renderer: Mesa DRI Intel Sandybridge Desktop v: 3.3 Mesa 19.0.8
Audio:
Device-1: Intel 6 Series/C200 Series Family High Definition Audio
driver: snd_hda_intel
Sound Server: ALSA v: k4.15.0-58-generic
Network:
Device-1: Realtek RTL8111/8168/8411 PCI Express Gigabit Ethernet
driver: r8169
IF: enp2s0 state: up speed: 1000 Mbps duplex: full mac: d4:3d:7e:18:a9:53
Drives:
Local Storage: total: 223.57 GiB used: 106.59 GiB (47.7%)
ID-1: /dev/sda vendor: Patriot model: Burst size: 223.57 GiB
Partition:
ID-1: / size: 217.61 GiB used: 106.58 GiB (49.0%) fs: ext4 dev: /dev/sda2
Sensors:
System Temperatures: cpu: 29.8 C mobo: 27.8 C
Fan Speeds (RPM): N/A
Info:
Processes: 194 Uptime: 18h 02m Memory: 3.56 GiB used: 1.17 GiB (32.8%)
Shell: bash inxi: 3.0.32
</code></pre>
<p>Im not a first time Linux user and the PC is not mine. But im also not super experienced in Linux tho i seem to have little problem using the terminal.
I can access the PC with remote management if nessesary to test things.</p>
<p>So far i have tried:</p>
<pre><code>Install FFmpeg - no change
Install mplayer - no change
Install ubuntu-restricted-extras - was already installed
Switch VLC video output to X11 - no change
monitor CPU usage during playback - near 100% on both cores during youtube playback via Chromium.
update libva - was already installed
update vaapi - was already installed
sudo apt-get update && sudo apt-get install vlc - no change
sudo apt-get dist-upgrade - no change
</code></pre>
<p>Driver manager shows no proprietary drivers avaliable or installed.
Everything else seems to work just fine.</p>
<p>I think i might need to try and use Intel's legacy video driver instead of modesetting. As i understand modesetting is better on newer hardware but legacy is better on legacy hardware.</p>
<p>Problem is, I can't seem to find the specific command to do this.</p>
<p><strong>EDIT:</strong></p>
<p>Ok so i tried using the Linux Mint live usb version (same from where i installed Mint) and when opening video via file manager it requested 2 downloads.
One was gstreamer and i don't remember what the other one was - MPEG4 something....
It was then able to play back the video just fine after that.</p>
<p>So it seems the hardware is capable and it's not a problem with Mint but there is some sort of software configuration issue with the installed version.</p>
| 0non-cybersec
| Stackexchange |
hey everyone, let's see your work space! i'll start.... | 0non-cybersec
| Reddit |
Can't see own VPN Server Windows. <p>Found a similar issue here but involved Hyper-V VM's and Host.</p>
<p>In my case i sense something bizarre.</p>
<p>I've established a connection using only PPTP built-in windows connection between two points. Everything seems to be working, from the client i can access the router and other machines of the remote network just fine, problem is i can't access the very same computer that is providing me with the VPN tunnel connection.</p>
<p>Wait for it, i'll make it worse: i can't ping the windows machine where i've set the VPN server, can't access its own shared folder either, but when i open MSSQL Studio i can connect to its database! Basically i can't even ping the address 192.168.1.1 but when i try to connect from studio using 192.168.1.1\sqlinstance it connects no problem.</p>
<p>I appreciate any help you can provide, i don't know what i'm missing tbh...?</p>
<p>TLDR: windows -> windows PPTP, can access network all around but the very single windows pc that's providing me the access tunnel.</p>
| 0non-cybersec
| Stackexchange |
LF More girl players who are totally bored (7/10)!. I've been putting together an all girl raiding group through Tumblr, and it has been getting less of a response now that i've got 7 girls (including me). I figured I'd check out Reddit, because there are definitely more ladies of the WoW world here!
there is no age restriction (just thought i'd throw that in), and i'm looking for people who will stick to it and is willing to make friends :) if you're interested, and you happen to have a Tumblr, this: (http://thedragon-smaug.tumblr.com/) is my personal Tumblr where you can send a message to me and i'll give you the information! I keep track of all the people and update progress! :)
Comment below if you're interested!
Edit: 8/10
edit2: 9/10
Edit3: 10/10! Will update soon :) | 0non-cybersec
| Reddit |
Today’s Top 10 Horror Authors (Just try to argue it!) :). | 0non-cybersec
| Reddit |
Ordinals that satisfy $\alpha = \aleph_\alpha$ with cofinality $\kappa$. <p>I am trying to solve the following question:</p>
<blockquote>
<p>Prove that for every regular cardinal, $\kappa \gt \aleph_0$, there is
a exists an $\alpha$ with cofinality $\kappa$ such that $\alpha = \aleph_\alpha$</p>
</blockquote>
<p>I tried to build $\alpha$ as the limit of $\kappa$ regular cardinals with various properties (this seems to sort out the requirement that $cof(\alpha) = \kappa$). I want to choose all of them to be weakly inaccessible but I'm not entirely sure it's "allowed" and if there isn't a simpler approach.</p>
<p>My attempt:</p>
<ul>
<li>Let $A = \langle\alpha_i\mid i < \kappa\rangle$, increasing series of weakly inaccessible cardinals, and let $\alpha = \bigcup_{i < \kappa}\alpha_i$</li>
<li>$cof(\alpha) = \kappa$. Otherwise, we can define a bijection between $A$ and $\kappa$ and contradict $\kappa$'s regularity.</li>
<li>We know that $\alpha \leq \aleph_\alpha$. </li>
<li>Assume $\alpha < \aleph_\alpha$, so there is $i$ such that $\alpha < \aleph_{\alpha_i}$</li>
<li>$\alpha_i$ is weakly inaccessible, hence it's a fixed point of the aleph function, which means $\alpha_i = \aleph_{\alpha_i}$ </li>
<li>But $\alpha < \aleph_{\alpha_i} = \alpha_i < \alpha$, and this is a contradiction.</li>
</ul>
| 0non-cybersec
| Stackexchange |
Stunning view of Greenland from the plane window yesterday, Greenland and Air Canada [OC] [2000x1333]. | 0non-cybersec
| Reddit |
Strange Surge In California Points To More GOP Voter Fraud. It turns out that thousands of Democrats have been re-registered as Republicans without their permission.. | 0non-cybersec
| Reddit |
World's largest ship elevator. | 0non-cybersec
| Reddit |
The Ultimate List of 500 Best Vampire Books. | 0non-cybersec
| Reddit |
Evaluate $ \int_{- \infty}^{\infty} \frac{x^4}{x^8 + 1} dx$ using Residual Theorem. <p>Need to evaluate the integral </p>
<p><span class="math-container">$$ \int_{- \infty}^{\infty} \frac{x^4}{x^8 + 1}dx $$</span></p>
<p>I'm having trouble finding the poles.</p>
<p>I was trying to do this before and got that the poles in the upper plane occurred at <span class="math-container">$e^\frac{i\pi}{8}$</span>, <span class="math-container">$e^\frac{3i\pi}{8}$</span>, <span class="math-container">$e^\frac{5i\pi}{8}$</span>, <span class="math-container">$e^\frac{7i\pi}{8}$</span>. I don't know if this is right. </p>
<p>I know once I find the poles I have to use the equation
<span class="math-container">$$ Res(f; z) = \frac{P(z)}{Q'(z)}$$</span> where <span class="math-container">$f = \frac{z^4}{z^8+1}$</span>, <span class="math-container">$ P = z^4$</span> and <span class="math-container">$Q' = 8z^7$</span> and <span class="math-container">$z$</span> is a pole of <span class="math-container">$f$</span></p>
<p>The book got the answer <span class="math-container">$$\frac{\pi}{4}\biggl(sin\frac{3\pi}{8}\biggr)^{-1}$$</span></p>
<p>Any help would be appreciated. </p>
| 0non-cybersec
| Stackexchange |
Thickheaded Thursday - April 4th 2013. >Basically, this is a safe, non-judging environment for all your questions no matter how silly you think they are. Anyone can start this thread and anyone can answer questions. If you start a Thickheaded Thursday or Moronic Monday try to include date in title and a link to the previous weeks thread. Hopefully we can have an archive post for the sidebar in the future. Thanks!
[Last Week](http://www.reddit.com/r/sysadmin/comments/1b6f4x/thickheaded_thursday_mar_28_2013/) | 0non-cybersec
| Reddit |
SSRS and Power BI on same server. <p>I understand that as of the 2016 versions it is now possible to run SSRS and Power BI on the same server. I would like to know if anyone is currently running this combination and what are the pros and cons of doing so.</p>
| 0non-cybersec
| Stackexchange |
Proofs with implication statement logic for linear algebra. <p>everyone before I start writing my question I would like you guys to <strong>note</strong> that this is more towards logic than linear algebra but contains a linear algebra example for the sake of asking my question more clearly.</p>
<p>Recall, the definition of a linearly independent set of vectors. Let $V$ be a vector space and $v_1, ..., v_n$ is in $V$. $\{v_1, ..., v_n\}$ is linearly independent if either 1 or 2 holds.</p>
<p>Note: 1 and 2 are equivalent definitions of linear independence).</p>
<ol>
<li>$c_1v_1+ ... + c_nv_n = 0 \implies c_1=...=c_n=0$, for $c_i\in\mathbb{R}.$</li>
<li>The equation of the form $c_1v_1+ ... + c_nv_n = 0$ has only the unique solution $c_1=...=c_n=0$.</li>
</ol>
<p><strong>NOTE:</strong> Definition #1 of linear independence is a conditional statement/implication. I will be referring to the <strong>condition</strong> of the implication i.e. $c_1v_1+...+c_nv_n=0$ as the <strong>antecedent</strong> and $c_1=...=c_n=0$ as the <strong>conclusion</strong> of the implication.</p>
<p>Let $P$: "$\{v_1,...,v_n\}$ is linearly independent." (which means 1 and 2 holds)</p>
<p>Let $Q:$ "any statement."</p>
<p>Suppose we have two logical statements as follows:</p>
<p>(a) $P \implies Q$</p>
<p>(b) $Q \implies P$</p>
<p><strong>Note:</strong> The below represents my thoughts of how proofs generally work regardless of linear algebra when it includes conditional statements. Please correct me if I am wrong.</p>
<p>(a) When we try to prove (a) we would suppose that $P$ is true and then reach the conclusion $Q$. In more detail, we would assume that $\{v_1,...,v_n\}$ is linearly independent which means 1 and 2 holds. For the sake of my question let's work with definition #1. Since we assume that $P$ is true but $P$ is an implication statement we will have to satisfy the <strong>condition</strong> of $P$ to use the <strong>conclusion</strong> in supporting our proof. (whatever statement Q might be)</p>
<p>(b) On the other hand, if we try to prove (b) we would suppose that $Q$ is true and then reach the conclusion $P$. In more detail, we are trying to reach at the fact that the vectors $\{v_1,...,v_n\}$ is linearly independent. Since $P$ is an implication statement and <strong>it's what we are trying to prove</strong> we can suppose the <strong>antecedent</strong> of what we are trying to prove. i.e. We can suppose that $c_1v_1+...+c_nv_n=0$. Ultimately, try to prove that the coefficients are all equal to 0. </p>
<p><strong>Linear Algebra Question #1:</strong> If $\{v_1,...,v_n\}$ is linearly independent then $v_i\notin span\{v_j: n\geq j\geq 1, j \neq i\}.$</p>
<p><strong>Proof:</strong> The proof of the question above will go in the same steps as (a). We would try to <strong>satisfy the condition</strong> so that we can use the fact that the coefficients are equal to zero to prove our $Q$ statement in this case that $v_i\notin span\{v_j: n\geq j\geq 1, j \neq i\}.$</p>
<p><strong>Linear Algebra Question #2:</strong><a href="https://i.stack.imgur.com/SXump.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/SXump.png" alt="enter image description here"></a>
<strong>Important note:</strong> It's not the concept or theorem that gives me trouble so you don't need to try to <strong>rewrite</strong> the solution or anything.</p>
<p>The only part of the question <strong>I am interested in asking</strong> is the following:
"If $\{w_1,w_2,w_3\}$ is linearly independent then the matrix A whose ij-entry is $a_{ij}$ is invertible."</p>
<p><strong>My question:</strong> Why is it that the solution <strong>starts with the condition</strong> that we are trying to satisfy? i.e. $c_1w_1+c_2w_2+c_3w_3=0$? That's the condition we are trying to reach in order for us to <strong>use</strong> the fact that $c_1=c_2=c_3=0$. Why are we even allowed to make such a statement and work with that equation if we don't know <strong>whether if the condition</strong> holds or not? For linear algebra question #1 I can proceed the proof as (a) and it works but for linear algebra question #2 I can't do it the same way as I would do question #1.</p>
<p>If any part of my logic is flawed it will be very appreciated this is stopping me from answering a lot of linear independence/dependence questions in my textbook and practice problems. Once again, <strong>it's not the content</strong> that is giving me the trouble it's just that one step in the solution that I specified as above.</p>
<p>Thank you in advance!</p>
| 0non-cybersec
| Stackexchange |
How can I recover my data after replacing ubuntu with windows 7?. <p>Recently, a technician installed windows 7 over already installed ubuntu in my 32-bit computer, and i have lost most important data, how to recover my data? please suggest.</p>
| 0non-cybersec
| Stackexchange |
On that carnitas trend ✌️. | 0non-cybersec
| Reddit |
Should I make a move on a close friend's sister?. I'm a 21 y/o male and one of my close buddies' sister is 18. I've been thinking about asking her out some time, but my friend is very protective over his sister and I have a feeling it might make things a little weird between me and him.
I don't want to be in a serious relationship with her or anything... mainly something more friendly and to go on a few dates here and there. Plus, I could use the experience and I think she could, too.
What do you think? Has anyone else ever been in a similar situation? | 0non-cybersec
| Reddit |
Strange result of MPI_AllReduce for 16 byte real. <p>Compiler: gfortran-4.8.5</p>
<p>MPI library: OpenMPI-1.7.2 (preinstalled OpenSuSE 13.2)</p>
<p>This program:</p>
<pre><code> use mpi
implicit none
real*16 :: x
integer :: ierr, irank, type16
call MPI_Init(ierr)
call MPI_Comm_Rank(MPI_Comm_World, irank, ierr)
if (irank+1==1) x = 2.1
if (irank+1==8) x = 2.8
if (irank+1==7) x = 5.2
if (irank+1==4) x = 6.7
if (irank+1==6) x = 6.5
if (irank+1==3) x = 5.7
if (irank+1==2) x = 4.0
if (irank+1==5) x = 6.8
print '(a,i0,a,f3.1)', "rank+1: ",irank+1," x: ",x
call MPI_AllReduce(MPI_IN_PLACE, x, 1, MPI_REAL16, MPI_MAX, MPI_Comm_World, ierr)
if (irank==0) print '(i0,a,f3.1)', irank+1," max x: ", x
call MPI_Finalize(ierr)
end
</code></pre>
<p>I also tried <code>real(16)</code>, <code>real(kind(1.q0))</code>. <code>real(real128)</code> is actually equivalent with <code>real*10</code> for this compiler.</p>
<p>The result is:</p>
<pre><code>> mpif90 reduce16.f90
> mpirun -n 8 ./a.out
rank+1: 1 x: 2.1
rank+1: 2 x: 4.0
rank+1: 3 x: 5.7
rank+1: 4 x: 6.7
rank+1: 5 x: 6.8
rank+1: 6 x: 6.5
rank+1: 7 x: 5.2
rank+1: 8 x: 2.8
1 max x: 2.8
</code></pre>
<p>The program finds the true maximum for <code>real*10</code> keeping <code>MPI_REAL16</code>. The MPI specification (3.1, pages 628 and 674) is not very clear if <code>MPI_REAL16</code> corresponds to <code>real*16</code> or <code>real(real128)</code> if these differ.</p>
<p>Also, assuming <code>MPI_REAL16</code> is actually <code>real(real128)</code> and trying to use that in a program leads to a different problem:</p>
<pre><code>Error: There is no specific subroutine for the generic 'mpi_recv' at (1)
Error: There is no specific subroutine for the generic 'mpi_send' at (1)
</code></pre>
<p>which does not happen for <code>real*16</code>.
(disregarding that one should be able to pass any bit pattern, so this check is superfluous)</p>
<p>What is the right way to use 16 byte reals? Is the OpenMPI library in error?</p>
| 0non-cybersec
| Stackexchange |
Relationship between gcc, g++, cygwin, and wingw?. <p>I know for my class, I had to install cygwin to get my Netbeans IDE running, but I see options during setup for both g++ and gcc and I am not sure if they are the same thing or not, and where does wingw? is it another compiler, and if so why choose on over the other? </p>
| 0non-cybersec
| Stackexchange |
[EVERYTHING] First of a series I am doing, featuring the main houses. The series is called GOT Beer?. | 0non-cybersec
| Reddit |
Clock showing wrong time. <p>This is not a duplicate of <strong><a href="https://askubuntu.com/questions/169376/clock-time-is-off-on-dual-boot">Clock time is off on dual boot</a>. This is a TimeZone Bug!</strong></p>
<p>My clock on top panel shows time different from time i set or synched through internet. It began after changing to winter time. Here's the screenshot so you can understand what I mean: <img src="https://i.stack.imgur.com/wKoOA.png" alt=""></p>
<p>If I change timezone I get correct time in that timezone but can't fix my one. Is it some sort of bug? How to fix it?</p>
<p>Edit: yes, I have Windows in dualboot. How does it affect the clock?</p>
<p>Edit2: so, I currently changed to Shanghai time which is the same timezone but clock is now correct. But still, Irkutsk is showing wrong time.</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 |
Best subreddits for hacking and cybersecurity. | 1cybersec
| Reddit |
Greek Yogurt Chicken Salad Sandwich. From the plump grapes and fresh apples to the sweet cranberries, this lightened up sandwich won’t even taste healthy!
**Ingredients**
- 1 pound cooked chicken breast, shredded
- 1/2 cup diced red onion
- 1/2 cup diced apple
- 2/3 cup grapes, halved
- 1/3 cup dried cranberries
- 1/4 cup sliced almonds
- 1/2 cup plain Greek yogurt
- 1 tablespoon freshly squeezed lemon juice, or more, to taste
- 1/2 teaspoon garlic powder
- Kosher salt and freshly ground black pepper
- 4 rolls ciabatta bread, toasted, for serving
**Instructions**
1. In a large bowl, combine chicken, red onion, apple, grapes, dried cranberries or currants, sliced almonds, Greek yogurt, lemon juice, garlic powder, salt and pepper, to taste.
2. Serve sandwiches on ciabatta bread with chicken mixture.
[Taste it with your eyes first Then Try it](http://www.thebestrecipesever.net/2014/01/greek-yogurt-chicken-salad-sandwich.html) | 0non-cybersec
| Reddit |
Cross Cultural Training. | 0non-cybersec
| Reddit |
Naldo Lula - Semideusa Remixed By LS Luis Filipe da Silva Santos. | 0non-cybersec
| Reddit |
Phalanx vs phalanx: how much individual skill mattered and how the front lines were replaced?. 1. So, if you are the guy in the front line of a phalanx, does it mean that you're on a suicide mission or there's a certain period of time that you have to survive before you are replaced?
2. If you are supposed to be replaced, how does it work?
3. How did they decide who is going to be in the front line?
4. Do you have to watch out only for the spears from the opposite frontal column or also from the two columns next to it or even more than that?
5. If the spearmen have a shield, chest armor, helmet and shin protectors, what's the approach here? You stab the opponent in the legs and, if he falls, you finish him off or you primarily aim for his face? How do you protect your legs and feet? Can you trick the opponent to expose himself or it's just mindless random stabbing from behind the shield until someone gets tired and lowers his guard?
6. When do you switch to the sword? | 0non-cybersec
| Reddit |
Reverse card. | 0non-cybersec
| Reddit |
What did Emil Artin mean when he said this?. <p>What does Emil Artin mean when he says:</p>
<blockquote>
<p>It is my experience that proofs involving matrices can be shortened by 50% if one throws the matrices out.</p>
</blockquote>
<p>I mean I do understand that matrices are really just <em>Linear Transformations in a vector space</em> and this also makes for cool visualizations associated with all of Linear Algebra. But for the sake of performing manipulations and thinking analytically about Linear Algebra, isn't it <em>essential</em> to have Matrices. </p>
<p>If we throw them out, what else can take its place?</p>
| 0non-cybersec
| Stackexchange |
Regolith beneath NASA'sPhoenix Mars Lander, where the descent thrusters have apparently cleared away several patches of soil to expose the underlying ice.. | 0non-cybersec
| Reddit |
What is first class function in Python. <p>I am still confused about what <code>first-class functions</code> are. If I understand correctly, <code>first-class functions</code> should use one function as an object. Is this correct?</p>
<p>Is this a <code>first-class function</code>?</p>
<pre><code>def this_is_example(myarg1):
return myarg1
def this_is_another_ example(myarg):
return this_is_example(myarg)+myarg
this_is_another_ example(1)
</code></pre>
| 0non-cybersec
| Stackexchange |
So who thinks this "Change your Facebook profile picture to your favorite black friend for Black History Month" is pretty offensive?. I'd feel kind of embarassed if I was a black person and someone just had me as their picture. That's like forcing you to find someone you know that's black and just exploit them. Pretty much what this month is equivalent to. Morgan Freeman said it best I guess on 60 minutes. "Black history is American history", and then he basically just went on to say that there are no black men or white men, just men. That's how you beat racism.
http://www.youtube.com/watch?v=GeixtYS-P3s
EDIT: Although I first heard about this being about your actual friends, most people are just picking prominent african-americans. | 0non-cybersec
| Reddit |
Share secret non-interactively in a verifiable way. <p>In an application, I need to share a secret (random number) with a Group of known receivers over a public channel (a Blockchain) but each receiver needs to be able to check that the others received the same secret and if not will ignore the message. The problem is that the other receivers may not be online right now and thus an interactive protocol is not an option. The end goal is that all recipients get the same secret or all recipients ignore the message.</p>
<p>One solution I came up with is that after a recipient decrypted its part and received the secret he encrypts it with the public keys of the other recipients and checks that the cyphertext is the same, but this requires that the encryption scheme is deterministic but I only found probabilistic schemes and explanations why deterministic schemes are bad (but the concerns seem not to be a problem in my case as the plaintext is always a random number).</p>
<p>Is there a ready available deterministic asymmetric encryption scheme?
In other parts of the system, I use ECDSA so if I could reuse these keys it would be optimal but adding another scheme would be possible as well.
I'm not a cryptography expert and unless there is no other way I would like to avoid changing an existing scheme to make it deterministic.</p>
<p>Another option I found was using zero-knowledge proofs like SNARK, STARK or Bulletproofs but this seems like overkill and extremely complicated to pull off.</p>
<p>Are their other options I missed?</p>
| 0non-cybersec
| Stackexchange |
Real Madrid fans to Courtois leaving El Bernabéu: "You can’t even stop a taxi.". | 0non-cybersec
| Reddit |
KDE Plasma desktop grid effect is too dark to see. <p>I'm currently using KDE Plasma's desktop grid effect.<br>
It works well when I move the mouse pointer to a corner of the screen.<br>
But the problem is that all items become darker by default making it hard to distinguish one from another.<br>
Is there any method to <em>not</em> darken the contents so much?</p>
| 0non-cybersec
| Stackexchange |
What is the most performant way to render unmanaged video frames in WPF?. <p>I'm using FFmpeg library to receive and decode H.264/MPEG-TS over UDP with <strong>minimal</strong> latency (something MediaElement can't handle).</p>
<p>On a dedicated FFmpeg thread, I'm pulling PixelFormats.Bgr32 video frames for display. I've already tried InteropBitmap:</p>
<pre><code>_section = CreateFileMapping(INVALID_HANDLE_VALUE, IntPtr.Zero, PAGE_READWRITE, 0, size, null);
_buffer = MapViewOfFile(_section, FILE_MAP_ALL_ACCESS, 0, 0, size);
Dispatcher.Invoke((Action)delegate()
{
_interopBitmap = (InteropBitmap)Imaging.CreateBitmapSourceFromMemorySection(_section, width, height, PixelFormats.Bgr32, (int)size / height, 0);
this.Source = _interopBitmap;
});
</code></pre>
<p>And then per frame update:</p>
<pre><code>Dispatcher.Invoke((Action)delegate()
{
_interopBitmap.Invalidate();
});
</code></pre>
<p>But performance is quite bad (skipping frames, high CPU usage etc).</p>
<p>I've also tried WriteableBitmap: FFmpeg is placing frames in _writeableBitmap.BackBuffer and per frame update:</p>
<pre><code>Dispatcher.Invoke((Action)delegate()
{
_writeableBitmap.Lock();
});
try
{
ret = FFmpegInvoke.sws_scale(...);
}
finally
{
Dispatcher.Invoke((Action)delegate()
{
_writeableBitmap.AddDirtyRect(_rect);
_writeableBitmap.Unlock();
});
}
</code></pre>
<p>Experiencing almost the same performance issues (tested with various DispatcherPriority).</p>
<p>Any help will be greatly appreciated.</p>
| 0non-cybersec
| Stackexchange |
This is my favorite picture of TOOL. Only thing that would make it more awesome would be a picture of Radiohead in american football gear!. | 0non-cybersec
| Reddit |
Gauss Elimination - Diagonal dominant matrices don't need row changes. <p>I was asked to prove the following statement:</p>
<p>let $A$ be an $n$ by $n$ matrix with real entries such that $\forall k \in \mathbb N, k\leq n$: $$\sum_{i \neq k} |A_{i,k}| < |A_{kk}|$$</p>
<p>Show that if we were to do gauss elimination (or LU factorization) of $A$, then there will be no need for row changes, no need for partial pivoting.</p>
<p>I don't see why this is true, I'd appreciate a hint in the right direction. Maybe I should take a general $n$ by $n$ matrix that is diagonly dominant, try to $LU$ factor it and see that I don't need row changes? is this the way?</p>
| 0non-cybersec
| Stackexchange |
How to mask an EditText to show the dd/mm/yyyy date format. <p>How can I format an <code>EditText</code> to follow the "<code>dd/mm/yyyy</code>" format the same way that we can format using a <code>TextWatcher</code> to <em>mask</em> the user input to look like "0.05€". I'm not talking about limiting the characters, or validating a date, just masking to the previous format.</p>
| 0non-cybersec
| Stackexchange |
The story of the Rendition Vérité 1000. | 0non-cybersec
| Reddit |
Is BetterTouchTool the recommended app to improve gestures?. <p>I was looking for a way to add more "gestures" for my mbp (to accesss spaces for example) and I read about BetterTouchTool which seems to work quite well.</p>
<p>I was just wondering if there's any other tool like that one, and if another is more recommended.</p>
| 0non-cybersec
| Stackexchange |
TIL that some of the first cave art was sculptures of overly exaggerated nude women so basically cave porn. | 0non-cybersec
| Reddit |
Correlation between two metrics. <p>Say I have a $\text{discrete}$ multivariate random variable $X=[X_1,X_2,\ldots,X_n]$, where each $X_i$ is of the same distribution class. Define random variable $Y$ to be the Manhattan distance between two samples of $X$, and define $Z$ to be the 'normal' Euclidean distance. </p>
<p>Obviously, $Y$ and $Z$ are positively correlated. Given the parameters of the distribution of $X$, is it possible to express this correlation? For instance, given $n$ dimensions, let each $X_i$ be an independent Bernoulli with parameter $p_i$. </p>
| 0non-cybersec
| Stackexchange |
Fourier multiplier with a singularity on a convex curve. <p>Let $h$ be a strictly convex function such that $h(0) = h'(0)=0$. Let $\Phi: \mathbb{R}^2 \to \mathbb{R}$ be a $C^{\infty}$-function with compact support (say, $\Phi$ is supported on $[-1,1]\times[-1,1]$). Let $\delta$ be a complex number, $\Re \delta \in (0,2)$. Consider a distribution
\begin{equation*}
v.p. \frac{\Phi(\xi,\eta)}{sign(\eta - h(\xi))|\eta - h(\xi)|^{\delta}},
\end{equation*}
which acts on a test function $\varphi \in \mathfrak{D}$ by the following rule:
\begin{multline*}
\Big\langle vp \frac{\Phi(\xi,\eta)}{sign(\eta - h(\xi))|\eta - h(\xi)|^{\delta}},\varphi(\xi,\eta)\Big\rangle = \\ \lim\limits_{\varepsilon \to 0} \int\limits_{\{|\eta - h(\xi)| \geq \varepsilon\}}\frac{\Phi(\xi,\eta)\varphi(\xi,\eta)\,d\xi d\eta}{sign(\eta - h(\xi))|\eta - h(\xi)|^{\delta}}.
\end{multline*}
The Fourier multiplier $M_{\delta}$ is defined by the following formla:
\begin{equation*}
M_{\delta}[f] = \mathcal{F}^{-1}\Big[vp \frac{\Phi(\xi,\eta)}{sign(\eta - h(\xi))|\eta - h(\xi)|^{\delta}} \mathcal{F}[f](\xi,\eta)\Big],
\end{equation*}
so it is a Fourier multiplier with the symbol $vp \frac{\Phi(\xi,\eta)}{sign(\eta - h(\xi))|\eta - h(\xi)|^{\delta}}$. </p>
<p>The question is: for what pairs $(p,q)$ does $M_{\delta}$ act from $L^p$ to $L^q$? Or, if the answer is known, is it written anywhere? </p>
<p>If $\delta = 1$, then I know the answer (except some "endpoints"): $M_{\delta}$ acts from $L^p$ to $L^q$ if $1 \leq p < \frac43$, $4 < q \leq \infty$, and $\frac{1}{p} - \frac{1}{q} > \frac32$, and does not act otherwise, except the segment $\frac{1}{p} - \frac{1}{q} = \frac23$ (I don't know what is the answer for such pairs of $p$ and $q$). The idea is to use the restriction estimate for the curves $\Gamma_{t} = \{\xi = h(\eta) + t\}$, integrate it, and then multiply the achieved operator by its adjoint. This works for the case $\Re\delta < 1$. To pass to the case $\delta = 1$, one gets some weak estimate for $M_{\delta}$ with $\Re \delta > 1$ and interpolates using Stein's lemma on analytic family of operators. Unfortunately, such method is not sharp enough to cover the case $\frac{1}{p} - \frac{1}{q} = \frac23$. What is more, it does not give a complete answer for the cases $1 < \Re \delta \leq \frac32$.</p>
| 0non-cybersec
| Stackexchange |
Slowdive - When the Sun Hits [Shoegaze]. | 0non-cybersec
| Reddit |
SQL Server 2014 unable to connect on virtual machine. <p><a href="https://i.stack.imgur.com/mX3ar.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/mX3ar.jpg" alt="enter image description here"></a>I have a problem, where I installed SQL Server Advanced Express 2014. </p>
<p>Everything seems fine, I checked all I thought could be the issue, and everything that needs to be installed is there, but when trying to connect the SQL Server it simply goes on forever. </p>
<p>Is it possible that some applications might have a conflict with the SQL Server itself? when I go to services and try to start it from there, I get the error that windows was unable to start the SQL server service.</p>
| 0non-cybersec
| Stackexchange |
Something I've never understood about drowsy. Imagine you're at work/school, you're bored and getting a little drowsy... then you get SLAPPED in the face by a 10-feet tall axe-wielding undead machination! Surely you'd be... *startled* at least, right? I know that *personally* if I were getting shot, stabbed, and thrown up into the air regardless of how drowsy I am I would probably not be able to fall asleep!
When Zoe was revealed I immediately assumed that taking damage while drowsy would prevent sleep from happening, that's just what I thought was intuitive. Did anyone think the same way?
This isn't meant to be a *MNEH NERF ZOE* post, I'm just curious about what you guys think about the mechanic itself. Do you feel that the sleep some kind of magic-coma? Or is it actual sleep? Why would a magic-coma require a drowsy period? | 0non-cybersec
| Reddit |
WW1. Does anyone know of any good documentaries on World War One that I could watch for free online or thats on Netflix? | 0non-cybersec
| Reddit |
OS 10.10 not connecting through proxy specified by its Internet name. <p>My office proxy has always been specified with its IP address and everything worked fine. However, recently, the proxy was changed to use its Internet name, in the form <pre>xxxx-y.zzzz.com </pre></p>
<p>Since then, I have been unable to connect. I keep getting infinite authentication dialog boxes, but still doesn't connect. I've opened <code>/etc/hosts</code> to add its Internet name and map it to its IP address. It is still failing. </p>
<p>However, if I change back to the legacy numeric iIP address, it connects fine. Problem is that the legacy IP address will soon be discontinued as it has issues.</p>
| 0non-cybersec
| Stackexchange |
Stussy Neon Flower Camp. | 0non-cybersec
| Reddit |
git branch -r showing incorrect cash of branches after git pull / git fetch. <p>I ran a "git push origin --delete {branch}". According to github branches pulldown menu, this worked. According to my view locally, the branch is still there with "git branch -r". I git checkout master and git fetch and git pull and "git branch -r" and it's still there.</p>
<p>I read this post as well</p>
<p><a href="https://superuser.com/questions/984035/github-desktop-not-showing-remote-branches">GitHub desktop not showing remote branches</a></p>
<p>How to get my git branch -r to update?</p>
<p>thanks,
Dean</p>
| 0non-cybersec
| Stackexchange |
Much as I loathe season of the worthy, it has forced me to chase quest lines that have turned out to be a lot more fun than I expected. In line with consensus views, I think this season is truly awful. Its so far below every other season / DLC / whatever that its hard to believe it came from Bungie. Even that Gambit season last year which I mostly skipped was better (and apparently some people like gambit, so this must be true).
However....having absolutely nothing better to do in Destiny has forced me to pick up some quests that have sat there nagging me to complete them for months or even years. I have picked up Jotunn and the other Ada exotic (thanks for the 6 shards). I'm 2/3 of the way to the Revoker, I'm a couple of strikes off Edgewise.
I've discovered Momentum Control as a game mode that helps to grind out crucible quests (Mountaintop I'm looking at you). I've jumped in to help others with Whisper and Outbreak missions. I've engaged with my Armor 2.0 build properly for the first time, and discovered degrees of movement I never new existed.
Point being I need practcially no excuse to dump hours at a time into this game. The core gameplay is as awesome as ever, and the completionist in me is quite enjoying a season of tying up lose ends. It has been a season where the depth of the game built before has compensated for the lack of breadth of new content.
So come on Bungie - I think we can all forgive you one season, but get your act together and listen to the feedback of a broad and loyal customer base! | 0non-cybersec
| Reddit |
Holy Popes! . | 0non-cybersec
| Reddit |
SQL Server query performance affected by rebuilding an un-fragmented index. <p>I have a query within a stored procedure that the same input will periodically time out ( > 30 seconds) when it normally runs in milliseconds.</p>
<p>The table has 2077748 rows, 59 columns, and 13 indexes.
We have found that rebuilding one of the indexes takes the performance back to milliseconds.</p>
<p>Here is the fun part. The percentage fragmentation on this index every time it is rebuilt is < 1%, the last time it was .01%. I've been playing with the fill factors because I thought it may be an expansion issue, it was 100, then 80, now 60. This has not effected the frequency of this problem.</p>
<p>When I run the following</p>
<pre><code>select b.name,*
from sys.dm_db_index_physical_stats(5,1075691080,NULL,NULL,NULL) a
JOIN sys.indexes b ON a.object_id = b.object_id AND a.index_id = b.index_id
</code></pre>
<p>I get</p>
<blockquote>
<p>index_id partition_number index_type_desc alloc_unit_type_desc index_depth index_level avg_fragmentation_in_percent fragment_count avg_fragment_size_in_pages page_count</p>
<p>66 1 NONCLUSTERED INDEX IN_ROW_DATA 3 0 0.01 1116 18.9229390681004 21118</p>
</blockquote>
<p>Any suggestions on other places to look or sources of this problem?</p>
| 0non-cybersec
| Stackexchange |
If Lebron comes to the west, Will this be the most lopsided WC/EC has ever been?. You can make a case that 8 of the top 10 players in the league are in the WC(If lebron joins) with the exception of Kyrie/Giannis. There are 4 legit super teams pieced together in the WC if Lebron/Kawhi join the Lakers and PG stays with OKC then you got a really good Pelicans team who are probably a healthy Cousins and another solid bench piece away from being contenders in their own right. This is a crazy time for the NBA right now | 0non-cybersec
| Reddit |
🔥 Jelly 🐠. | 0non-cybersec
| Reddit |
Why does this Powershell Script create converted images OUTSIDE the Rootfolder?. <p>The following Powershell script is supposed to process all designated images INSIDE the specified Rootfolder. Some of the renamed output images are generated OUTSIDE the Rootfolder. Any Powershell gurus have any idea why?
How can I output files only in the Rootfolder and not OUTSIDE the Rootfolder?</p>
<pre><code>
# This script requires ImageMagick
# Configuration
# Enter the full path of the folder that contains the images
$Rootfolder = "C:\temp\rktest"
$Recursive=$true
# Change these if necessary
$fileExtensions = "*.png"
$fileNameSuffix = "_resized" # the text to be appended to the output filename to indicate that it has been modified
$files = $null;
$fileCount = 0
# Check if the root folder is a valid folder. If not, try again.
if ((Test-Path $RootFolder -PathType 'Container') -eq $false) {
Write-Host "'$RootFolder' doesn't seem to be a valid folder. Please try again" -ForegroundColor Red
break
}
# Get all image files in the folder
if ($Recursive) {
$files = gci $RootFolder -Filter $fileExtensions -File -Recurse
}
# If there are no image files found, write out a message and quit
if ($files.Count -lt 1) {
Write-Host "No image files with extension '$fileExtensions' were found in the folder '$RootFolder'" -ForegroundColor Red
break
}
# Loop through each of the files and process it
foreach ($image in $files) {
$newFilename = $image.DirectoryName + " " + $image.BaseName + $fileNameSuffix + $image.Extension
$imageFullname = $image.FullName
write-host "Processing image: $imageFullname" -ForegroundColor Green
#This line contains the ImageMagick commands
& convert.exe $image.FullName -resize 50% $newFilename
$fileCount++
}
Write-Host "$fileCount images processed" -ForegroundColor Yellow
</code></pre>
| 0non-cybersec
| Stackexchange |
Dell Vostro 3468 needs maxx audio pro driver. <p>Audio isn't working properly; when using headphones, the audio quality is terrible in Ubuntu on a Dell <a href="https://www.dell.com/support/article/ag/en/agbsdt1/sln302999/dell-vostro-14-3468-usage-and-troubleshooting-guide?lang=en" rel="nofollow noreferrer">Vostro 3468</a>. How may I get the maxxaudio pro driver for Ubuntu?</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 change the file name of an uploaded file in Django?. <p>Is it possible to change the file name of an uploaded file in django? I searched, but couldn't find any answer.</p>
<p>My requirement is whenever a file is uploaded its file name should be changed in the following format.</p>
<pre><code>format = userid + transaction_uuid + file_extension
</code></pre>
<p>Thank you very much...</p>
| 0non-cybersec
| Stackexchange |
What is the relationship between bash and xterm?. <p>I read, that bash and xterm is not the same. Bash is a so called shell and xterm a so called virtual terminal. But from my limited perspective I do not get the difference, which makes a difference. It seems to me to be a difference like between granny smith and golden delicious rather than apples and elephants, could some one try to make it clear and point to key terms?</p>
| 0non-cybersec
| Stackexchange |
ssh kills "while read". <p>I have a really confusing error, in the following script. <code>reservations</code> is just a file with 100 lines, let's say something like this:</p>
<pre><code>apple
pear
fruit
...
</code></pre>
<pre><code>cat reservations | while read LINE;
do
echo $LINE
for i in {0..2}; do
ssh -o ConnectTimeout=10 admin@render rm -rf /tmp/lock$i
echo $i
done
done
</code></pre>
<p>(This is already a simplified version of a production script.)</p>
<p>Now, what I would have expected, is to see an output like this:</p>
<pre><code>apple
0
1
2
pear
0
1
2
...
</code></pre>
<p>BUT, I only get the first line, i.e., the output is</p>
<pre><code>apple
0
1
2
</code></pre>
<p>If I remove the <code>ssh</code>, everything works! For some reason, the <code>ssh</code> messes up the whole thing, and exits the while loop. I have absolutely no idea why that is!!</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 |
Dirichlet to Neumann Operator. <p>EDIT: I am trying to specify my Question. Also I am not going to clearify which spaces I use, because I am only interested in the basic idea. </p>
<p>I am looking at a standard elliptic second order PDE:</p>
<p><span class="math-container">\begin{cases} Lu & = f & \text{in} &\Omega \\ \quad u & = g & \text{on} & \Gamma \subset \partial\Omega \end{cases}</span></p>
<p>where <span class="math-container">$\Omega \subset \mathbb{R}^n$</span> is an open bounded Lipschitz domain. My goal is to find the normal derivative <span class="math-container">$\partial_n u$</span> on the boundary <span class="math-container">$\Gamma$</span> using the Dirichlet-to-Neumann (DtN) Operator in the Framework of FEM.</p>
<p>As far as I know the DtN operator is as map</p>
<p><span class="math-container">\begin{equation}
\Lambda_\Gamma:g \to\partial_nu \quad with \quad u=0 \quad on\quad \partial\Omega\setminus\Gamma
\end{equation}</span></p>
<p>where <span class="math-container">$u$</span> is the solution of the boundary value problem. </p>
<p>For <span class="math-container">$Lu = - \Delta u$</span> the weak form of the pde is given as: Find <span class="math-container">$u$</span> such that</p>
<p><span class="math-container">\begin{equation}
\int_\Omega \nabla u\nabla v \,\,d\Omega = \int_\Omega f v \,\, d\Omega \qquad\forall v
\end{equation}</span>
with <span class="math-container">$u = g$</span> on <span class="math-container">$\Gamma$</span>.</p>
<p>My question is, how do I use the DtN operator to calculate the normal derivative in this case? </p>
| 0non-cybersec
| Stackexchange |
Anandtech | LG G Pro 2 Review. | 0non-cybersec
| Reddit |
How do I open several files at once in Emacs?. <p>Often when I start emacs I open the same set of files. How can I make it so that I can quickly select several files from a directory and open them?</p>
| 0non-cybersec
| Stackexchange |
Method to delete 1-833-228-1817 Pop-up virus from the computer. | 1cybersec
| Reddit |
Help with PC Build (Canada). So I've been trying to build a pc for a while now. (Mostly going to be using it for; fortnite, emulators, blacks ops 4, steam games, console games, watching twitch and potentially wanting to stream.) Here is the list I think I might go with. Any tips or feedback would be nice. Pc part picker says the list may be incompatible but I'm not sure. I really want the nzxt kraken AIO cooler because of aesthetics and I heard AMD builds need a AIO cooler because they get hot as opposed to Intel builds, I could be wrong though. Also is the power supply unnecessary or is it good enough because it has a little wiggle room. Thanks in advance! {Keyboard, mouse and case have already been purchased.}
[PCPartPicker part list](https://ca.pcpartpicker.com/list/RpRVbX) / [Price breakdown by merchant](https://ca.pcpartpicker.com/list/RpRVbX/by_merchant/)
Type|Item|Price
:----|:----|:----
**CPU** | [AMD - Ryzen 5 2600X 3.6GHz 6-Core Processor](https://ca.pcpartpicker.com/product/6mm323/amd-ryzen-5-2600x-36ghz-6-core-processor-yd260xbcafbox) | $279.99 @ Amazon Canada
**CPU Cooler** | [NZXT - Kraken X62 Rev 2 98.2 CFM Liquid CPU Cooler](https://ca.pcpartpicker.com/product/2RdFf7/nzxt-kraken-x62-rev-2-982-cfm-liquid-cpu-cooler-rl-krx62-02) | $179.99 @ PC-Canada
**Motherboard** | [MSI - B350 TOMAHAWK ATX AM4 Motherboard](https://ca.pcpartpicker.com/product/Y4kwrH/msi-b350-tomahawk-atx-am4-motherboard-b350-tomahawk) | $125.99 @ Newegg Canada
**Memory** | [G.Skill - Trident Z RGB 16GB (2 x 8GB) DDR4-3200 Memory](https://ca.pcpartpicker.com/product/ybrcCJ/gskill-tridentz-rgb-16gb-2-x-8gb-ddr4-3200-memory-f4-3200c16d-16gtzr) | $219.99 @ Amazon Canada
**Storage** | [Crucial - MX500 250GB 2.5" Solid State Drive](https://ca.pcpartpicker.com/product/4mkj4D/crucial-mx500-250gb-25-solid-state-drive-ct250mx500ssd1) | $68.95 @ shopRBC
**Storage** | [Western Digital - Caviar Blue 1TB 3.5" 7200RPM Internal Hard Drive](https://ca.pcpartpicker.com/product/MwW9TW/western-digital-internal-hard-drive-wd10ezex) | $47.99 @ Newegg Canada
**Video Card** | [MSI - GeForce GTX 1060 6GB 6GB GT OCV1 Video Card](https://ca.pcpartpicker.com/product/TrGj4D/msi-geforce-gtx-1060-6gb-6gb-gt-ocv1-video-card-geforce-gtx-1060-6gt-ocv1) | $299.97 @ Amazon Canada
**Case** | [NZXT - S340 Elite (Black) ATX Mid Tower Case](https://ca.pcpartpicker.com/product/3TYWGX/nzxt-ca-s340w-b3-atx-mid-tower-case-ca-s340w-b3) |-
**Power Supply** | [EVGA - SuperNOVA G2 650W 80+ Gold Certified Fully-Modular ATX Power Supply](https://ca.pcpartpicker.com/product/9q4NnQ/evga-power-supply-220g20650y1) | $97.99 @ PC-Canada
**Monitor** | [Asus - VE278H 27.0" 1920x1080 Monitor](https://ca.pcpartpicker.com/product/nsTmP6/asus-monitor-ve278h) | $219.75 @ Vuugo
**Keyboard** | [Corsair - K95 RGB PLATINUM Wired Gaming Keyboard](https://ca.pcpartpicker.com/product/MYtWGX/corsair-k95-rgb-platinum-wired-gaming-keyboard-ch-9127014-na) | $247.48 @ Amazon Canada
**Mouse** | [Logitech - G502 Proteus Spectrum Wired Optical Mouse](https://ca.pcpartpicker.com/product/kJM323/logitech-mouse-910004615) | $87.98 @ Amazon Canada
| *Prices include shipping, taxes, rebates, and discounts* |
| **Total** | **$1876.07**
| Generated by [PCPartPicker](https://pcpartpicker.com) 2018-10-01 01:20 EDT-0400 | | 0non-cybersec
| Reddit |
Sublime Text Update 3083 Error - Error Code 32. <p>When trying to update Sublime Text 3 to <strong>version 3083</strong> on a Windows 10 computer I keep getting an error message at the end of the update saying </p>
<blockquote>
<p>'Unable to rename C:\Program Files\Sublime Text 3 to C:\Program
Files\Sublime Text 3 (3083), error code: 32'</p>
</blockquote>
<p>I looked it up on Microsoft's website and error 32 stands for <em>'The process cannot access the file because it is being used by another process'</em>. </p>
<p>So I tried closing down all other programs and tried updating again but I still get the same problem. I have also tried running the program as an administrator but the update creates the same error message.</p>
<p>I only have package control installed and the Haxe plugin installed and so I can't find any other reason why it wouldn't work, although I haven't updated it before.</p>
<p>Can anyone offer any advice?</p>
| 0non-cybersec
| Stackexchange |
LPT: if trying to approach a shy or anxious animal, try to make eye contact and slowly blink so they know you are not a predator.. I've found this works pretty well with domestic cats and birds. Also injured birds in the wild. | 0non-cybersec
| Reddit |
ConTeXt: Enumeration, Comments cause undefined control sequence startformula error. <p>I'm a LaTeX user working through some ConTeXt tutorials, and hit a brick wall pretty early. It makes me wonder if something is wrong with my setup, or if I'm not understanding something pretty fundamental, or if ConTeXt is a bit more brittle than I had hoped. I'm using MacTeX-2012.</p>
<p>I'm getting errors when using both a formula and an enumeration with the <code>letter</code> option. Leaving out the <code>letter</code> option, this works great:</p>
<pre><code>\defineenumeration[guess][location=left]
\starttext
\startformula
x = no error
\stopformula
\guess This is just a guess.
\stoptext
</code></pre>
<p>The following, however, causes <code>texexec</code> to fail with <code>Undefined control sequence</code> on <code>\startformula</code> and <code>\stopformula</code>:</p>
<pre><code>\defineenumeration[guess][location=left, letter=it]
\starttext
\startformula
x = error
\stopformula
\guess This is just a guess.
\stoptext
</code></pre>
<p>Taking out the <code>formula</code> removes the error, so the enumeration with the <code>letter=it</code> option is working fine on its own.</p>
<p>In testing this, I discovered (to my surprise) that commenting out the <code>letter</code> option gives the same error:</p>
<pre><code>\defineenumeration[guess][location=left] %, letter=it]
\starttext
\startformula
x = error
\stopformula
\guess This is just a guess.
\stoptext
</code></pre>
<p>But taking out the <code>=</code> sign fixes it. No error when running:</p>
<pre><code>\defineenumeration[guess][location=left] %, letter it]
\starttext
\startformula
x = no error
\stopformula
\guess This is just a guess.
\stoptext
</code></pre>
<p>However, it's not just the equals sign, as this works without error:</p>
<pre><code>\defineenumeration[guess][location=left] %, bar=baz]
\starttext
\startformula
x = no error
\stopformula
\guess This is just a guess.
\stoptext
</code></pre>
<p>I am very confused. Am I doing something wrong?</p>
| 0non-cybersec
| Stackexchange |
How to use spot instance with amazon elastic beanstalk?. <p>I have one infra that use amazon elastic beanstalk to deploy my application.
I need to scale my app adding some spot instances that EB do not support.</p>
<p>So I create a second autoscaling from a launch configuration with spot instances.
The autoscaling use the same load balancer created by beanstalk.</p>
<p>To up instances with the last version of my app, I copy the user data from the original launch configuration (created with beanstalk) to the launch configuration with spot instances (created by me).</p>
<p>This work fine, but:</p>
<ol>
<li><p>how to update spot instances that have come up from the second autoscaling when the beanstalk update instances managed by him with a new version of the app?</p>
</li>
<li><p>is there another way so easy as, and elegant, to use spot instances and enjoy the benefits of beanstalk?</p>
</li>
</ol>
<p><strong>UPDATE</strong></p>
<p>Elastic Beanstalk add support to spot instance since 2019... see:
<a href="https://docs.aws.amazon.com/elasticbeanstalk/latest/relnotes/release-2019-11-25-spot.html" rel="nofollow noreferrer">https://docs.aws.amazon.com/elasticbeanstalk/latest/relnotes/release-2019-11-25-spot.html</a></p>
| 0non-cybersec
| Stackexchange |
ITAP of a Spotted Salamander crossing the road last night. | 0non-cybersec
| Reddit |
Where can I find SVG sources of the Ubuntu icons?. <p>I'm trying to make some modifications to the default Ubuntu iconset (mimetypes and some application icons) But can't seem to find the svg for these files - are SVG versions of these available? If so is it a package or already in my install?</p>
| 0non-cybersec
| Stackexchange |
ELI5: Life can survive in some pretty inhospitable places, but does that mean that life could also begin in those environments?. Like those volcanic vents deep in the ocean where even there life exists - is it possible for life to begin in those kinds of environments, or does it have to start somewhere else in more 'ideal' conditions, and then gradually adapt to those environments over however many years? | 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 |
will this SSD work with a late 2008 unibody 13' macbook. | 0non-cybersec
| Reddit |
u/ibsulon explains how to write a good paper, avoiding the spew of BS when the end is in sight.. | 0non-cybersec
| Reddit |
Ireland calls for minimum Internet speeds of 30Mbps. | 0non-cybersec
| Reddit |
How do you use your iPhone?. A friend and I were discussing the Apple Watch yesterday and I commented that I don't believe I even use my phone to its full potential. What sort of things do you do to maximize your daily usage out of the technology in your pocket?
| 0non-cybersec
| Reddit |
Jason Bateman Admits Nobody Actually Wanted A Sequel To 'Horrible Bosses'. | 0non-cybersec
| Reddit |
ITAP of a happy elephant at the zoo. | 0non-cybersec
| Reddit |
Table / Digging Box. | 0non-cybersec
| Reddit |
Found this old video on YouTube. Cat has the patience of a God!. | 0non-cybersec
| Reddit |
Boy with allergy died after cheese was flicked at him, inquest told. | 0non-cybersec
| Reddit |
Mapping how the United States generates its electricity. | 0non-cybersec
| Reddit |
command-line tool for a single download of a torrent (like wget or curl). <p>I'm interested in a single command that would download the contents of a torrent (and perhaps participate as a seed following the download, until I stop it).</p>
<p>Usually, there is a torrent-client daemon which should be started separately beforehand, and a client to control (like <code>transmission-remote</code>).</p>
<p>But I'm looking for the simplicity of <code>wget</code> or <code>curl</code>: give one command, get the result after a while.</p>
| 0non-cybersec
| Stackexchange |
Hidden gem in the back of the textbook. | 0non-cybersec
| Reddit |
What is the use of Deployment.Current.Dispatcher.BeginInvoke( ()=> {...} )?. <p>I have seen this Deployment.Current.Dispatcher.BeginInvoke( ()=> {...} ) format in some code .Is it used to do some work in Background?What are the general uses of it?</p>
| 0non-cybersec
| Stackexchange |
Leonardo DiCaprio refutes Brazilian president's claim that he funded Amazon wildfires. | 0non-cybersec
| Reddit |
Subsets and Splits
No saved queries yet
Save your SQL queries to embed, download, and access them later. Queries will appear here once saved.