text
stringlengths 3
1.74M
| label
class label 2
classes | source
stringclasses 3
values |
---|---|---|
Just a friendly reminder - /r/PS4Deals is the place to watch this season to make sure you catch all the holiday and Black Friday deals!. /r/PS4Deals is a deal-finding subreddit dedicated specifically to sweet discounts on everything PS4. If you're a new PS4 owner or new to the /r/PS4 community, come on over and check us out. Thanks! | 0non-cybersec
| Reddit |
How Comcast gave me someone else's PayPal and Apple accounts (among others).. This is a cross post with /r/comcast: http://www.reddit.com/r/Comcast/comments/2b5g4f/how_comcast_gave_me_someone_elses_paypal_and/
A little while ago I signed up with Comcast. As part of that they require that I get an email address with them, I choose [email protected] (not actually).
Soon I start getting password reset emails to various online services. Including PayPal and Apple, these emails are addressed to Adam, my name is Albert. I can now log into Adam's accounts on these services because Comcast gave me the email that he presumably used to use.
This is absurdly insecure. My assumption is that Comcast gave the email [email protected] to Adam. Adam then cancelled his comcast service, I signed up, and viola I can now use Adam's PayPal.
Note: I have tried to contact Adam (it's not like I can just email him). PayPal uses two layers of security for password resets, I would need to find some personal information about him (not hard or secure) to reset his password besides owning the email.
Take this as a warning. NEVER use an email from a provider that you don't trust or intend on staying with. The fact that Comcast re-uses emails is absurd. | 1cybersec
| Reddit |
1Tb Hard drive showing 30Gb remaining. <p>I'm using Windows 7 64 (a Dell i5 box). I have a 1Tb C: drive with the following partitions: </p>
<ol>
<li>39MB (OEM Partition)</li>
<li>13.15GB NTFS (Recovery partition)</li>
<li>918.32GB NTFS (Boot Partition)</li>
</ol>
<p>When I "Select All" in Explorer on C: root (with hidden and system files visible) and choose properties, it shows approximately 270GB used in total. However Windows tells me only 30GB of my drive is free. Somewhere I've lost over 600GB.</p>
<p>I did the following:</p>
<ol>
<li>Run chkdsk (everything is OK) </li>
<li>Run disk cleanup (recovered around 60GB).</li>
</ol>
<p>So I'm still down almost half my drive. How can I find out where the missing space is?</p>
| 0non-cybersec
| Stackexchange |
How do you type such nice solutions with all the different mathematical notation here on Math.stackexchange?. <p>I am totally lost as to how this is done. I have never used a computer to type solutions nicely. What do I need to download? I want to learn how to type nice solutions like some of the people on this website. Please help me!</p>
| 0non-cybersec
| Stackexchange |
Notify-osd notifications appear unthemed in top-left corner. <h1>Problem</h1>
<p>I recently upgraded from 13.04 to 13.10, and suddenly notification bubbles don't appear themed as usual in the upper right corner, but they appear as white text on blue background in the upper-left corner. It looks like this: </p>
<p><a href="https://i.imgur.com/gJbr8KU.png" rel="nofollow noreferrer"><img src="https://i.imgur.com/gJbr8KU.png" alt="Badly themed notification in the top-left corner."></a></p>
<h1>Unsuccesful attempts to fix it</h1>
<ul>
<li><p>I tried reinstalling <code>unity</code>, <code>notify-osd</code>, <code>ubuntu-desktop</code> removed <code>notification-daemon</code> which was installed, none of that fixes it.</p></li>
<li><p>In fact running <code>ps aux | grep notify-osd</code> shows that notify-osd isn't even running. But when I try to start it manually by running <code>/usr/lib/x86_64-linux-gnu/notify-osd</code> I get:</p>
<pre><code>** (notify-osd:4618): WARNING **: Another instance has already registered org.freedesktop.Notifications
** (notify-osd:4618): WARNING **: Could not register instance
</code></pre></li>
<li><p>If I understand well, the instance is registered by the <code>/usr/share/dbus-1/services/org.freedesktop.Notifications.service</code> file, which right now contains:</p>
<pre><code>[D-BUS Service]
Name=org.freedesktop.Notifications
Exec=/usr/lib/x86_64-linux-gnu/notify-osd
</code></pre>
<p>Renaming or deleting that file (and rebooting) has no effect whatsoever (and it is not recreated automatically).</p></li>
<li><p>This is not a duplicate of <a href="https://askubuntu.com/questions/367961/no-notifications-from-notify-osd-on-13-10">No notifications from notify-osd on 13.10</a> (and by the way I purged <code>gnome-flashback-session</code> along with <code>notification-daemon</code>)</p></li>
</ul>
<h1>Question(s)</h1>
<p><strong>How can I debug this? How can I get notifications to come back to normal?</strong></p>
<p>If additional debug information is needed, I'll be happy to add it (just that I can't find any more).</p>
| 0non-cybersec
| Stackexchange |
Accessing "Ubuntu On Windows" through localhost. <p>is there a way to do this? I've got it up and running but would love to build locally without use of wamp of some service like that. </p>
<p>What I would like to use the ubuntu subsystem for is a place to locally build websites/webapps locally before deployment. I have a server already that I use for a developer environment but would like to utilize this if possible..</p>
| 0non-cybersec
| Stackexchange |
Converting a circle's diameter to a straight length?. <p>Assume we have a circle:</p>
<p><a href="https://i.stack.imgur.com/n3CGl.gif" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/n3CGl.gif" alt="enter image description here"></a></p>
<p>That circle's diameter is $m$, if that circle was a string, and we extended the string to a straight line, what would the length be? $m$ or $2m$?</p>
| 0non-cybersec
| Stackexchange |
How to use Redux' useSelector and useDispatch hooks with PropTypes. <p>In React class components with <code>mapStateToProps, mapDispatchToProps</code> every incoming state/dispatch prop is easy to type check with PropTypes.</p>
<p>When rewriting <code>mapStateToProps -> useSelector</code>, and <code>mapDispatchToProps -> useDispatch</code> I no longer see any logical place to do proptype checking. Unless I manually check proptypes with <code>PropTypes.checkPropTypes()</code>.</p>
<p>I guess it's more important to do proptype checks of props from parent components than from Redux, but I would still like to know if anyone has a good solution.</p>
| 0non-cybersec
| Stackexchange |
<insert title here>. | 0non-cybersec
| Reddit |
The services they advertise? SEO. | 0non-cybersec
| Reddit |
Coproducts in $\text{Grp}$. <p><strong>Background:</strong></p>
<p>Let $G, H$ be groups. I am currently trying to show that $G*H$, the free product of $G$ and $H$, is the coproduct of $G$ and $H$ in $\text{Grp}$. </p>
<p>I have no resources for this, so I am probably making a great many mistakes, but my idea was to try and use the universal property of free groups to show $F(G\amalg H)=G*H$ satisfies the universal property of the coproduct in $\text{Grp}$. I'm not sure if this can work though. The problem I am having is that the universal property of free groups involves set functions from $\{G,H\}$ to groups, whereas the univeral property for coproducts involves homomorphisms from $G$ and $H$. </p>
<p>As Thomas Andrews points out in the comments $F(G\amalg H)\not \cong G*H$, so this approach is not a really approach at all. As such my question is:</p>
<blockquote>
<p>How does one see that $G*H$ is the coproduct in group?</p>
</blockquote>
| 0non-cybersec
| Stackexchange |
Set the z-index value of a jQuery autocomplete input a level above the result list itself. <p>The default behavior for the jQuery Autocomplete widget is to position the results list one z-index level above the input so that the latter is always visible but in my case this has the undesirable effect of overshadowing the text input element.</p>
<p>I tried to set the z-index value input element at least one level above that of the result list from within the open method like so without much success:</p>
<pre><code>open: function () {
setTimeout(function () {
$(this).css('zIndex', 10000);
}, 1);
},
close: function () {
$(this).css('zIndex', 0);
}
</code></pre>
<p>The z-index level for the input element does get promoted to 10000 while that of the results list remains at level 1 but the input element still appears underneath it.</p>
<p>Does anyone have a clue on why this is happening?
The position attributes for the results list and input element are set to absolute and relative respectively. Could that be the cause?</p>
| 0non-cybersec
| Stackexchange |
python multiprocessing pickle protocol. <p>I am using the Python multiprocessing module to place objects onto a queue and have them processed by several workers. My first issue was getting bound instance methods to pickle, which I have working, but now I'm running into a separate issue caused by the fact that the objects are using <code>__slots__</code>. </p>
<p>When the mp module goes to pickle the objects, it seems to be using the older ascii pickle protocol, that can't handle <code>__slots__</code>. The newer protocol does handle this, but I'm not sure how to make the mp module use this protocol.</p>
<p>Anyone have any experience with this?</p>
| 0non-cybersec
| Stackexchange |
console.time() in IE8 Developer Tools. <p>Is there an equivalent to </p>
<pre><code>console.time('');
console.timeEnd('');
</code></pre>
<p>in IE8 Developer Tools?</p>
| 0non-cybersec
| Stackexchange |
Gotta be quicker than that!. | 0non-cybersec
| Reddit |
The moon's shadow passing over an airplane, 85x real time. | 0non-cybersec
| Reddit |
Apple R&D spend exceeds $3B for first time, up $410M from September. | 0non-cybersec
| Reddit |
Add causing php-script to mysql-slow.log. <p>If you enable the line</p>
<pre><code>log_slow_queries = /var/log/mysql/mysql-slow.log
</code></pre>
<p>in</p>
<pre><code>/etc/my.cnf or /etc/mysql/my.cnf
</code></pre>
<p>then that will log all queries, that take longer than the setting in <code>long_query_time</code>.</p>
<p>On a server with many websites hosted you'll get entries, that show, which host caused which time in the form like:</p>
<pre><code># Time: 130508 0:04:07
# User@Host: dbuser[dbhost] @ localhost []
# Query_time: 9.354343 Lock_time: 0.000094 Rows_sent: 0 Rows_examined: 1
use database_name;
SET timestamp=1367964247;
UPDATE some_table SET something='some data'
</code></pre>
<p>but the most important information is missing: <strong>which script called that query?</strong> And multiple slow queries inside the same script don't add up in time, so it would be handsome to have an analysis, that finds out the script-name automatically.</p>
<p>Is it possible to add the PHP-script name to that log?</p>
<p>Or maybe somehow combine the different logs somehow in an analysis script, that finds out, which script was called during that time the slow query was called?</p>
| 0non-cybersec
| Stackexchange |
Inducing a module homomorphism. <p>Suppose that I have a homomorphism of $A$-modules $M \xrightarrow{f} N$ ($A$ commutative with 1), a ring homomorphism $A \xrightarrow{g} A'$, and two $A'$-modules $M'$ and $N'$. Suppose further that I have two abelian group homomorphisms $M \xrightarrow{\phi} M'$ and $N \xrightarrow{\psi} N'$ which are compatible with the action of $A$. By this I mean that $\phi(ax)=g(a)\phi(x)$ for all $a \in A$ and $x \in M$, and similarly for $\psi$. </p>
<p>Question: Do these data imply the existence of an $A'$-module homomorphism $M' \to N'$? </p>
| 0non-cybersec
| Stackexchange |
Populating a string array within a function async in C#. <p>I have a String[] <code>parameters</code> that gets its values populated by calling another function <code>GetParameter</code> to grab parameters from a URL. I think I need to convert the other function to work async to ensure that the parameters are grabbed first before firing off the rest of the initial function (along with other parts of the method that I need to ensure are complete first).</p>
<pre><code> private static string GetParameter(string url, stringParamName)
{
var indexQuery = url.IndexOf("?");
var indexParam = url.IndexOf(paramName);
return (indexQuery != -1 && indexParam != -1) ? HttpUtility.ParseQueryString(url).Get(paramName) : throw new Exception ("Missing query/parameter.");
}
private static void MainFunction()
{
var param1 = "test1";
var param2 = "test2";
var uncleanedUrl = "https://google.com/?test1=12345&test2=678901";
String[] parameters = { GetParameter(uncleanedUrl, param1), GetParameter(uncleanedUrl, param2) }; //Should be populated like {12345, 67890}
var validValues = new List<string>();
int[] expectedParamLength = { 5, 6 };
const string insertString =
"USE [MY DB] GO" +
"INSERT INTO [...]" +
"([Column 1], [Column 2], [Column 1+2])" +
"VALUES" +
"(@Column1, @Column2, @Column3) GO";
var connectionString = ""; //Connection string here
for (int i = 0; i < parameters.Length; i++)
{
var validValue = int.TryParse(parameters[i].Trim(), out int number); // Returns true if the onversion to an int was succesful
if (validValue && parameters[i].Length == expectedParamLength[i])
{
validValues.Add(parameters[i].Trim());
}
}
if (validValues.Count == parameters.Length) //is number of validated values same as number of parameters we checked
{
using (SqlConnection connection = new SqlConnection(connectionString))
{
using (SqlCommand insertCommand = new SqlCommand(insertString))
{
using (SqlDataAdapter adapter = new SqlDataAdapter())
{
insertCommand.Parameters.AddWithValue("@Column1", validValues[0]);
insertCommand.Parameters.AddWithValue("@Column2", validValues[1]);
insertCommand.Parameters.AddWithVAlue("@Column3", validValues[0] + validValues[1]);
connection.Open();
adapter.InsertCommand.ExecuteNonQuery();
}
}
}
}
}
</code></pre>
<p>I'm trying to follow along with <a href="https://www.pluralsight.com/guides/task-taskcompletion-source-csharp" rel="nofollow noreferrer">this article</a> on implementing a task but I'm not sure how to return a string <code>HttpUtility.ParseQueryString(url).Get(paramName)</code>from the task.</p>
<pre><code>private static Task<string> GetParameter(string url, string paramName)
{
var returnedParameter = new TaskCompletionSource<string>();
GetParameter(url, paramName, success =>
{
returnedParameter.SetResult(success);
});
return HttpUtility.ParseQueryString(url).Get(paramName);
}
</code></pre>
| 0non-cybersec
| Stackexchange |
What is the Jacobian of the following function. <p>Consider a function F: $R^n \to R^n$ defined by
$$f(u) = A*u*(n+1)+\lambda *B$$</p>
<p>Where A is a tridiagonal n-by-n matrix with -2 on the main diagonal and 1 on the off diagonals.<br>
B = $\begin{pmatrix} { e }^{ { u }_{ 1 } } \\ ... \\ { e }^{ { u }_{ n } } \end{pmatrix}$</p>
<p>What is the Jacobian of F?</p>
| 0non-cybersec
| Stackexchange |
She may not be fast or new but she's got heritage. Meet Inghen the Red!. Pics first!
http://imgur.com/a/P64sak6
I found the unicorn of the Jeep XJ world. Rust free, garage kept, every single service record since brand new in 1996 - including the original window sticker and dealership paperwork. Straight six with the auto and 4x4. She was in the same family for 21 years. Interior is immaculate. The 3" lift is brand new, along with new wheels and tires.
No more mods planned except for possibly new headlights. I just installed a new headlight harness and it has Hella lamps so we'll see if they will suffice. Otherwise just gonna work on keeping her in tip top shape!
I've been driving some bland cars after owning a litany of performance vehicles so ol Inghen here is helping to bring the passion back. | 0non-cybersec
| Reddit |
Homebrew giving error that SDK not found (MacOS 11/10.16). <p>I trying to install a formula with Brew. But I always get a an Error:</p>
<pre><code>Error: Could not find an SDK that supports macOS 11.0.
You may have have an outdated or incompatible CLT.
Homebrew found the following SDKs in the CLT install:
10.14
10.15
Please update CLT or uninstall it if no updates are available.
</code></pre>
<p>I have updated to Xcode 12 Beta as well and set my CTL path to that too but I still get this error. Can anybody please help me fix this?</p>
| 0non-cybersec
| Stackexchange |
He's got a point. | 0non-cybersec
| Reddit |
Exercise on left invariant 2-forms. <p>I'm trying to solve a problem about the Lie group of transformation over $\mathbb{R}$:
\begin{equation}
x\mapsto ax+b,
\end{equation}
where $a,b\in\mathbb{R}, a\neq 0.$</p>
<p>I'm asked to find the space of left invariant 2-forms.</p>
<p>Can anybody explain me how to get the solution?</p>
| 0non-cybersec
| Stackexchange |
Unity Features not working after upgrade to 11.10. <p>I had purchased an HP Pavilion with the unsupported graphics card Radeon HD 6470M. I chose to not install the ATI proprietary drivers and simply work with the generic ones.</p>
<p>After my upgrade to 11.10 I noticed that after installing the ATI drivers (not the post-release ones, as apparently people have been having issues with Unity), my graphics card is working well. However, the Unity plugin was unchecked in Compiz. I have rechecked it but nothing has changed. No matter what I check or uncheck in compiz (like wobbly windows), there is no visual effect (these effects all worked with the generic drivers). Even my desktops are in the a straight line format and not in the 2x2 orientation, which gives problems when I press Super+S.</p>
<p>Is there something I need to do to activate Unity again? Should I reset it? Any other advice will be appreciated.</p>
| 0non-cybersec
| Stackexchange |
Why is Parallel.Invoke much faster if the call is in a separate method?. <p>I implemented the QuickSort-Algorithm 3 times and measured the time for sorting 50 million random numbers:</p>
<ol>
<li><p>sequential (took ~14 seconds)</p></li>
<li><p>With <code>Parallel.Invoke()</code> in the <strong>same method</strong> as the sorting algorithm (took ~12 seconds)</p></li>
<li><p>With <code>Parallel.Invoke()</code> in a <strong>separate method</strong> (took ~7 seconds)</p></li>
</ol>
<p>So my question is: Why is <code>Parallel.Invoke()</code> much faster if the call is in a separate method?
On my computer the 3. example was more than twice as fast as the 2.</p>
<h2>2. With <code>Parallel.Invoke()</code> in the <strong>same method</strong> as the sorting algorithm</h2>
<pre><code>public class ParallelQuickSort
{
private const int Threshold = 100;
public static void Sort(int[] array)
{
if (array == null || array.Length == 0)
{
new ArgumentException("number array must be at least of length 1");
}
QuickSort(array, 0, array.Length - 1);
}
private static void QuickSort(int[] array, int left, int right)
{
var i = left;
var j = right;
var m = array[(left + right) / 2];
while (i <= j)
{
while (array[i] < m) { i++; }
while (array[j] > m) { j--; }
if (i <= j)
{
var t = array[i]; array[i] = array[j]; array[j] = t;
i++; j--;
}
}
if (j - left > Threshold && right - i > Threshold)
{
Parallel.Invoke(
() => QuickSort(array, left, j),
() => QuickSort(array, i, right)
);
}
else
{
if (j > left) { QuickSort(array, left, j); }
if (i < right) { QuickSort(array, i, right); }
}
}
}
</code></pre>
<h2>3. With <code>Parallel.Invoke()</code> in a <strong>separate method</strong></h2>
<pre><code>public class ParallelSeparateMethodQuickSort
{
private const int Threshold = 100;
public static void Sort(int[] array)
{
if (array == null || array.Length == 0)
{
new ArgumentException("number array must be at least of length 1");
}
QuickSort(array, 0, array.Length - 1);
}
private static void QuickSort(int[] array, int left, int right)
{
var i = left;
var j = right;
var m = array[(left + right) / 2];
while (i <= j)
{
while (array[i] < m) { i++; }
while (array[j] > m) { j--; }
if (i <= j)
{
var t = array[i]; array[i] = array[j]; array[j] = t;
i++; j--;
}
}
if (j - left > Threshold && right - i > Threshold)
{
ParallelInvoke(array, left, j, i, right);
}
else
{
if (j > left) { QuickSort(array, left, j); }
if (i < right) { QuickSort(array, i, right); }
}
}
private static void ParallelInvoke(int[] array, int left, int j, int i, int right)
{
Parallel.Invoke(
() => QuickSort(array, left, j),
() => QuickSort(array, i, right)
);
}
}
</code></pre>
<h2>Full Code</h2>
<pre><code>using System;
using System.Threading.Tasks;
using System.Diagnostics;
namespace parallelQuicksort
{
class Program
{
static void Main(string[] args)
{
const int N = 50_000_000;
for (int i = 0; i < 5; i++)
{
var array = GetRandomArray(N);
Measure("Sequential\t", () => SequentialQuickSort.Sort(array));
array = GetRandomArray(N);
Measure("Parallel\t", () => ParallelQuickSort.Sort(array));
array = GetRandomArray(N);
Measure("P. Separate Method", () => ParallelSeparateMethodQuickSort.Sort(array));
}
}
private static int[] GetRandomArray(int length)
{
var random = new Random(4711);
var array = new int[length];
for (int i = 0; i < length; i++)
{
array[i] = random.Next();
}
return array;
}
public static void Measure(string name, Action action)
{
Stopwatch stopwatch = Stopwatch.StartNew();
action();
stopwatch.Stop();
var time = stopwatch.ElapsedMilliseconds;
Console.WriteLine($"{name}: \tElapsed={time}");
}
}
public class SequentialQuickSort
{
public static void Sort(int[] array)
{
if (array == null || array.Length == 0)
{
new ArgumentException("number array must be at least of length 1");
}
QuickSort(array, 0, array.Length - 1);
}
private static void QuickSort(int[] array, int left, int right)
{
var i = left;
var j = right;
var m = array[(left + right) / 2];
while (i <= j)
{
while (array[i] < m) { i++; }
while (array[j] > m) { j--; }
if (i <= j)
{
var t = array[i]; array[i] = array[j]; array[j] = t;
i++; j--;
}
}
if (j > left) { QuickSort(array, left, j); }
if (i < right) { QuickSort(array, i, right); }
}
}
public class ParallelQuickSort
{
private const int Threshold = 100;
public static void Sort(int[] array)
{
if (array == null || array.Length == 0)
{
new ArgumentException("number array must be at least of length 1");
}
QuickSort(array, 0, array.Length - 1);
}
private static void QuickSort(int[] array, int left, int right)
{
var i = left;
var j = right;
var m = array[(left + right) / 2];
while (i <= j)
{
while (array[i] < m) { i++; }
while (array[j] > m) { j--; }
if (i <= j)
{
var t = array[i]; array[i] = array[j]; array[j] = t;
i++; j--;
}
}
if (j - left > Threshold && right - i > Threshold)
{
Parallel.Invoke(
() => QuickSort(array, left, j),
() => QuickSort(array, i, right)
);
}
else
{
if (j > left) { QuickSort(array, left, j); }
if (i < right) { QuickSort(array, i, right); }
}
}
}
public class ParallelSeparateMethodQuickSort
{
private const int Threshold = 100;
public static void Sort(int[] array)
{
if (array == null || array.Length == 0)
{
new ArgumentException("number array must be at least of length 1");
}
QuickSort(array, 0, array.Length - 1);
}
private static void QuickSort(int[] array, int left, int right)
{
var i = left;
var j = right;
var m = array[(left + right) / 2];
while (i <= j)
{
while (array[i] < m) { i++; }
while (array[j] > m) { j--; }
if (i <= j)
{
var t = array[i]; array[i] = array[j]; array[j] = t;
i++; j--;
}
}
if (j - left > Threshold && right - i > Threshold)
{
ParallelInvoke(array, left, j, i, right);
}
else
{
if (j > left) { QuickSort(array, left, j); }
if (i < right) { QuickSort(array, i, right); }
}
}
private static void ParallelInvoke(int[] array, int left, int j, int i, int right)
{
Parallel.Invoke(
() => QuickSort(array, left, j),
() => QuickSort(array, i, right)
);
}
}
}
</code></pre>
<p>You find my code here: <a href="https://github.com/Lazzaretti/ParallelQuicksort" rel="noreferrer">https://github.com/Lazzaretti/ParallelQuicksort</a></p>
<h3>Output</h3>
<pre><code>Sequential : Elapsed=14534
Parallel : Elapsed=11960
P. Separate Method: Elapsed=6353
Sequential : Elapsed=14620
Parallel : Elapsed=11954
P. Separate Method: Elapsed=6647
Sequential : Elapsed=14529
Parallel : Elapsed=11870
P. Separate Method: Elapsed=6389
Sequential : Elapsed=14512
Parallel : Elapsed=11787
P. Separate Method: Elapsed=6590
Sequential : Elapsed=16203
Parallel : Elapsed=11738
P. Separate Method: Elapsed=6674
</code></pre>
| 0non-cybersec
| Stackexchange |
How to modify waiting time of the dual boot menu. <p>How can I change the waiting time of the dual boot menu (starting moment) into my Ubuntu Studio 15.10 installation? Can I?</p>
| 0non-cybersec
| Stackexchange |
Driving home, with the old man.. After doing errands and such, my father and I are driving home, when we both see a sign.
Dad: "Hey look. A garage sale. We should check it out. We could use another garage."
Oh dad... | 0non-cybersec
| Reddit |
Does anyone study biology as a hobby and have a hard time finding others to discuss it with?. I don't know how to put this, but I'm a 24 year old girl who just can not help myself when I want to talk about gross biological things. I study biology as a hobby, and it's really tough finding someone who isn't outrageously offended by my sharing that. I know I should consider my audience, but it's hard when the urge is so strong. Can anyone else relate?
For instance, I crushed (nearly severed) my finger last week, and the healing process (and wound healing stages in general) are fascinating me to no end. And there is nobody-- nobody I can talk to about whether only ripping the bottom of the fingernail out might be a good thing if it allows nail bed protection during early root regrowth.
I have to make a concerted effort to not answer "how's your finger?" with, "the nail was completely detached during the injury, but the lateral nail folds seem to have accepted it back in. I just have to be careful about the exposed nailbed cause that's like a swinging door for bacterial infection. What's new with you?"
I just wanna find somewhere I can nerd out about wound proliferation with while I watch it live, or mysterious, sometimes gross autoimmune disorders that affect so many people.
Am I alone, or does this happen to other people? Where can I find pals who don't find biology disgusting?
| 0non-cybersec
| Reddit |
to sound educated. | 0non-cybersec
| Reddit |
If you hold up minimum wage paid staff members 2 hours after close you're probably a bunch of assholes fuck all of you. | 0non-cybersec
| Reddit |
"Cognition" A3 pointilism. | 0non-cybersec
| Reddit |
UPDATE waits for lock too long after SELECT in MySQL (Innodb). <p>I have PHP function Pics::getPicture (yii2 ORM) which selects one row from table and then updates one field from this row. The table structure contains only id (PK), path (VARCHAR(500)) and seen (int(1)). Seen column is indexed.</p>
<p>My pseudo code:</p>
<pre><code>SELECT * FROM pics WHERE id=:id LIMIT 1;
UPDATE pics SET seen=1 WHERE id=:id LIMIT 1;
</code></pre>
<p>And when client requests 10+ pictures in parallel (for different Id) then <strong>some</strong> UPDATE have unexpectedly hung for 1-10 seconds. I see <strong>Innodb_row_lock_waits</strong> is increased every time in this case.</p>
<p>Without UPDATE my code works very fast all time.</p>
<p>I've tried use transaction, UPDATE DELAYED (I'm not sure that I tried it correctly).</p>
<p>Are there some best practices for selecting and updating same rows? What additional information should I provide to clarify the question?</p>
<h3>UPDATE 1 Server Configuration</h3>
<pre><code>Server: CPU: 1.5 Ghz, 1 Core, RAM 8Gb
Debian: 7.8
MySQL: 5.5.41
</code></pre>
<h3>UPDATE 2</h3>
<p>I've changed the SQL code to this but situation did't change. Also I removed INDEX for 'seen' column without any effects to this code.</p>
<pre><code>BEGIN;
SELECT * FROM pics WHERE id=:id LIMIT 1 FOR UPDATE;
UPDATE pics SET seen=1 WHERE id=:id LIMIT 1;
END;
</code></pre>
<p>In mysql-slow.log I see next entries:</p>
<pre><code># Time: 150210 2:03:24
# User@Host: user[user] @ localhost [127.0.0.1]
# Query_time: 13.011485 Lock_time: 0.000000 Rows_sent: 0 Rows_examined: 0
SET timestamp=1423530204;
commit;
# Time: 150210 2:03:34
# User@Host: user[user] @ localhost [127.0.0.1]
# Query_time: 9.765468 Lock_time: 0.000037 Rows_sent: 0 Rows_examined: 1
SET timestamp=1423530214;
UPDATE `pics` SET seen=1 WHERE id=315 LIMIT 1;
</code></pre>
<h3>UPDATE 3</h3>
<p>Amount of rows in pics table are about 70.</p>
<p>SHOW CREATE TABLE pics;</p>
<pre><code>CREATE TABLE `pics` (
`id` int(11) unsigned NOT NULL AUTO_INCREMENT,
`image` char(255) CHARACTER SET latin1 NOT NULL DEFAULT '',
`timestamp` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
`archive` tinyint(1) NOT NULL DEFAULT '0',
`seen` tinyint(1) NOT NULL DEFAULT '0',
PRIMARY KEY (`id`),
KEY `tbl_picture_timestamp` (`timestamp`),
KEY `tbl_picture_archive` (`archive`),
KEY `tbl_picture_seen` (`seen`),
) ENGINE=InnoDB AUTO_INCREMENT=319 DEFAULT CHARSET=utf8
</code></pre>
<p>SELECT COUNT(1) RowsReturned FROM pics WHERE id=315; (It took about 0.000035s)</p>
<pre><code>RowsReturned 1
</code></pre>
| 0non-cybersec
| Stackexchange |
This is pretty damned awesome. I'm constantly taking 4-5 pictures of my kids because they move so fast. One will have a blurry hand but a nice smile, another will have one kid looking away. Combine the best parts of the photos with this app.. | 0non-cybersec
| Reddit |
This is why X-Men: Days of Future Past deserved its Oscar nomination for Best Visual Effects. | 0non-cybersec
| Reddit |
Restrict a RDP connection to a user group. <p>Im trying to produce the following setup.
I want to have a machine running Remote Desktop Session Host accepting connections from users. The machine will have two NICs, one for admin-net and one for user-net. </p>
<p>As i understand, it is possible to set up a connection configuration per network adapter. </p>
<p>Is it possible to configure the session host to only accept users from group 1 on connection 1 and only users from group 2 on connection 2.</p>
<p>The goal is to only allow users from group 1 on NIC interface 1 and user from group 2 on NIC interface 2. </p>
| 0non-cybersec
| Stackexchange |
How to use WebAssembly (wasm) code in a Web Worker?. <p>Currently, a Web Worker is instantiated thus:</p>
<pre><code>let worker = new Worker('worker.js');
</code></pre>
<p>The browser then fetches <code>worker.js</code> and it can start responding to messages.</p>
<p>I'd like to implement my worker's functionality using WebAssembly. Ideally, I'd like to do something like this:</p>
<pre><code>let worker = new Worker('worker.wasm');
</code></pre>
<p>But I'm pretty sure that's not possible. The most obvious alternative is to have <code>worker.js</code> fetch <code>worker.wasm</code> and compile and run it. But this means we fetch one script (<code>worker.js</code>) whose only job is to fetch and run another script (<code>worker.wasm</code>). This feels gross to me. And so my question: is there a cleaner way of using WebAssembly within a Web Worker, which won't introduce an extra fetch step?</p>
| 0non-cybersec
| Stackexchange |
Do I need antivirus software with Windows 7?. <blockquote>
<p><strong>Possible Duplicate:</strong><br>
<a href="https://superuser.com/questions/46264/how-important-is-an-antivirus-program">How important is an antivirus program?</a> </p>
</blockquote>
<p>I remember hearing that a Windows XP machine could be infected after being connected to the internet for 20 minutes, without the user even opening Internet Explorer.</p>
<p>But surely, with Windows 7, Microsoft have got their act together, security-wise, and closed the loopholes? Can I run my Windows machine like my Mac, i.e. without antivirus software?</p>
| 1cybersec
| Stackexchange |
India launches world's largest healthcare coverage programme for 500 million poor Indians.. | 0non-cybersec
| Reddit |
We edgy hipsters would own you at beer pong. | 0non-cybersec
| Reddit |
Alternative argument - set theory problem. <p>I tried to solve the following problem:</p>
<blockquote>
<p>Let $ \mathcal{F}$ be a nonempty family of sets with the following
properties: </p>
<p>(a) If $ X \in \mathcal{F}$, then there are some $ Y \in \mathcal{F}$
and $ Z \in \mathcal{F}$ such that $ Y \cap Z =\emptyset$ and $ Y \cup Z=X$. </p>
<p>(b) If $ X \in \mathcal{F}$, and $ Y \cup Z =X , Y \cap Z=\emptyset$,
then either $ Y \in \mathcal{F}$ or $ Z \in \mathcal{F}$. </p>
<p>Show that there is a decreasing sequence
$ X_0 \supseteq X_1 \supseteq X_2 \supseteq ...$ of sets $ X_n \in \mathcal{F}$ such that
$$\bigcap_{n=0}^{\infty} X_n= \emptyset.$$</p>
</blockquote>
<p>(some old Miklos Schweitzer problem)</p>
<p>And I came up with the following proof</p>
<blockquote>
<p><em>Proof:</em> Suppose that for every decreasing sequence $(X_n)$ we have $\cap X_n \neq \emptyset$. Pick now an arbitrary decreasing sequence
$(Y_n)$ and denote $Y= \cap Y_n$. We would like to prove that $Y \in
\mathcal{F}$. Suppose that $Y \notin \mathcal{F}$. Then we construct
the sequence $ A_n = Y_n\setminus Y $ and note that since $Y_n=A_n \cup Y$, by rule (b) either $Y$ or $A_n$ is in $\mathcal{F}$. Suppose
that $A_n \in \mathcal{F}$ for infinitely many $n$. Then we reach a
contradiction with the assumption made, since $\cap A_n=\cap
(Y_n\setminus Y)=(\cap Y_n) \setminus Y=\emptyset$. Since this is
false, we have $Y \in \mathcal{F}$. </p>
<p>Now we are done, because we have just proven that every chain in
$\mathcal{F}$ ordered by $X \leq Y \Leftrightarrow X \supseteq Y$ has
an upper bound, so by Zorn's lemma, $\mathcal{F}$ has maximal
elements.</p>
<p>Pick now a maximal element $M$. If it is not the empty set, then by
rule (a) it can be decomposed into two parts which are both in
$\mathcal{F}$ and one is strictly greater than it (in the proposed
ordering). Therefore $\emptyset$ is the maximal element of
$\mathcal{F}$ and we are done since we can choose the sequence
$X_n=\emptyset$.</p>
</blockquote>
<p>Is it possible to come up with an ending argument which does not use the constant sequence $X_n=\emptyset$?</p>
<hr>
<p>It looks like the argument is not valid at all, since I'm not allowed to use Zorn's lemma if I only have information on countable chains.</p>
| 0non-cybersec
| Stackexchange |
My GPU temperature is too high. <p>I have Nvidia GTX 560ti as graphic card, when I play games like Dota2, NBA, FIFA etc temperature goes to 90-99 degrees and I'm afraid it is going to damage it permanently or even damage other components. I changed thermal paste but it's still the same temperature as before. What am I supposed to do to fix temperature?</p>
| 0non-cybersec
| Stackexchange |
If Elon Musk is successful with the Puerto Rican recovery, he could launch a global disaster relief company bringing the future of mass power & transportation to devastated places.. | 0non-cybersec
| Reddit |
Testing a tray of Superhots in vegetation mode. They seem to like it.. | 0non-cybersec
| Reddit |
One thing I'd love to see on services like Netflix (not a 'leaving soon' category). Behind the scenes! For me the only reason to buy a DVD is if I really want to watch the behind the scenes, streaming makes those purchases mostly obsolete unless you enjoy the physical copy to own forever. But I wish streaming services were less of a legal piracy and more like actual DVD contents.
Sometimes for very popular movies their behind the scenes will pop up on YouTube but it seems like something that works well with streaming services. Even something like the commentary on the DVD.
Though I imagine it's not something studios would prefer since they would get more revenue for selling DVDs than having their films streamed through Netflix. Doing this idea may cause some kind of price inflation to cope.
Is this something other people would also enjoy? | 0non-cybersec
| Reddit |
Connecting additional devices using the cable between modem and router. <p>The network infrastructure in my parents' house is rather inconvenient. The modem is in the basement and the wireless router is in the attic. The only device connected via cable is my HTPC in the living room. I'd like to get a NAS for the HTPC, but unfortunately there is really no room anymore in the living room, so I'd like to put in in the basement, next to the modem.</p>
<p>The modem is running in single-user-mode, so the router is dialing in. There's a LAN cable connected to the modem and the internet/modem port of the router. </p>
<p>Would it actually be possible to connect additional devices to the network using this cable (with a hub or switch), or would I have to use another LAN port of the router*?</p>
<p>* Either putting the NAS next to the router in the attic, or installing another cable.</p>
| 0non-cybersec
| Stackexchange |
How to check if a matrix is diagonizable?. <p>So i have this <span class="math-container">$3\times 3$</span> matrix</p>
<p><span class="math-container">$$
\begin{pmatrix}
-2 & 0 & 0 \\
3 & 1 & -6 \\
0 & 0 & -2 \\
\end{pmatrix}
$$</span></p>
<p>I want to check if the matrix is diagonizable. First thing i do is find the roots : namely <span class="math-container">$\lambda_1 = −2$</span> of multiplicity <span class="math-container">$2,$</span> and <span class="math-container">$\lambda_2 = 1$</span> of multiplicity <span class="math-container">$1.$</span></p>
<p>In order to ensure that the matrix is diagonalizable we need to find a basis of <span class="math-container">$\mathbb{R}^3$</span> whose elements are eigenvectors for <span class="math-container">$A.$</span> In particular, since we have the eigenvalue <span class="math-container">$\lambda_1=-2$</span> having multiplicity <span class="math-container">$2$</span> we need to check that the dimension of the eigenspace <span class="math-container">$E(\lambda_1)$</span> is equal to <span class="math-container">$2.$</span> We compute the eigenspaces of <span class="math-container">$A.$</span></p>
<p><span class="math-container">$\DeclareMathOperator\Nul{Nul}$</span>On the answer sheet is says that we need to find <span class="math-container">$\Nul(A+2Id)$</span>... but why <span class="math-container">$2Id?$</span> Isn't is supposed to be <span class="math-container">$-2,$</span> so <span class="math-container">$\Nul(-2Id-A)$</span>?? </p>
<p>I do not understand this <span class="math-container">$\Nul(A+2Id).$</span> I always thought that we should compute <span class="math-container">$\Nul(-2Id-A),$</span> so what do i need to do ? </p>
<p><span class="math-container">$\Nul(-2Id-A)$</span> gives me a different result from <span class="math-container">$\Nul(A+2Id).$</span></p>
<p><strong>Does that mean that since <span class="math-container">$-2$</span> has a multiplicity of <span class="math-container">$2,$</span> we need to work with <span class="math-container">$2$</span> and not <span class="math-container">$-2$</span>?</strong></p>
<p>Somebody please help with a clear and simple explanation ! Thanks!</p>
| 0non-cybersec
| Stackexchange |
Can software break hardware?. <p>Can I break my x64 laptop by running a x86 operating system? I've installed Windows 7 32-bit, and I would like to know if this can cause any problems in the long run.</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 |
There are two pictures in my motel room, but they are identical. | 0non-cybersec
| Reddit |
Painted Dogs will hunt you to exhaustion, disembowel you alive, and share your meat in total silence. | 0non-cybersec
| Reddit |
The way these tea cups fit together.. | 0non-cybersec
| Reddit |
Change (reset) appearance of mail compose window. <p>Since a recent (August 2019) automatic Outlook Office update the fields at the top of the edit window have become really unintuitive. The subject field now has very little attention (grey, no border):</p>
<p><a href="https://i.stack.imgur.com/biS4u.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/biS4u.png" alt="enter image description here"></a></p>
<p>Over the past two weeks I <em>keep</em> putting the subject behind the CC: button.<br />
Luckily, the mail won't go out then.<br />
I have heard the same from colleagues.</p>
<p>Is there <em>any</em> way to revert the changes to the compose window, or change it's appearance?<br />
We do need the CC: field.</p>
| 0non-cybersec
| Stackexchange |
This has put me off my dough-nut. [vid]. | 0non-cybersec
| Reddit |
How hibernate ensures second level cache is updated with latest data in database. <p>I have read that using hibernate's second level cache, it can improve applications performance by having less database hits for data / object retrieval.</p>
<p>However, how does hibernate ensure that second level cache is up to date with the data in database.</p>
<p>For, example:</p>
<p>Suppose the below class is entity and persisted into the DB.</p>
<pre><code>@Entity
class User {
Id
private int id;
private String str;
}
</code></pre>
<p>Now, if we have enabled second level cache, I understand that if we open different sessions then each session will hit the second level cache for retrieving object value.</p>
<p>Now, if data in database gets changes (for e.g. for row with id=1) say by some independent process/ manually changing the values, and we try to access the value, how does hibernate detect that the cache is having latest value (for id = 1).</p>
<p>In general, how does hibernate ensure that data in second level cache is consistent with the db values.</p>
<p>Thanks for your help.</p>
| 0non-cybersec
| Stackexchange |
Visual Studio in Parallels with a MAC constantly reloads the project. <p>any help is really appreciated.
I have a problem with Visual Studio 2017 / 2019 inside a Parallels VM under MAC OS Catalina.
When I add a file (e.g. a .cs file) to project and save the file, Visual Studio complains that the project (.csproj) file has been modified outside the solution and wants to reload the project. This is really annoying... </p>
<p>I was thinking if this might have something to do with git. Maybe git is removing LRLF on the file and convertes it to Unix style. But playing with these settings during installation of git-scm did not solve anything for me.</p>
<p>My folder setup is as follows :</p>
<p>I have the git repos checked out on the mac in ~/Repos/myRepo
The user directory is mapped to Z:\ in the parallels VM.
The solution is so opened inside Visual Studio in Z:\Repos\myRepo\mySolution.sln</p>
<p>git is installed on the MAC as well as in the VM.
Maybe these mixtures is causing the problems. But this setup worked for me for a long time.
The issue occured after updating my MAC to Catalina...</p>
<p>Thanks for your help</p>
| 0non-cybersec
| Stackexchange |
My computer: *exists* LOIC: I’m about to end this man’s whole career. | 1cybersec
| Reddit |
This is how we deal with the problem in Germany.. | 0non-cybersec
| Reddit |
Would the 5 Volt line from a 500 Watt PC Power supply be enough to power an RPI 3 in combination with the 7" RP Touchscreen?. I know they need 5 Volts but I don't know how much amperage is on the 5 Volt line and have no means of measuring it. Does anybody have any experience doing what I have in mind? I want to power a mini arcade table top I'm building with an Antec 500 Watt PC Power supply. | 0non-cybersec
| Reddit |
Ancient Sri Lankan warrior wearing a Devil’s Mask. | 0non-cybersec
| Reddit |
Civil rights protest in Memphis, Tennessee - 1968. | 0non-cybersec
| Reddit |
safe enough 8-character short unique random string. <p>I am trying to compute 8-character short unique random filenames for, let's say, thousands of files without probable name collision. Is this method safe enough?</p>
<pre><code>base64.urlsafe_b64encode(hashlib.md5(os.urandom(128)).digest())[:8]
</code></pre>
<h2>Edit</h2>
<p>To be clearer, I am trying to achieve simplest possible obfuscation of filenames being uploaded to a storage.</p>
<p>I figured out that 8-character string, random enough, would be very efficient and simple way to store tens of thousands of files without probable collision, when implemented right. I don't need guaranteed uniqueness, only high-enough improbability of name collision (talking about only thousands of names).</p>
<p>Files are being stored in concurrent environment, so incrementing shared counter is achievable, but complicated. Storing counter in database would be inefficient.</p>
<p>I am also facing the fact that random() under some circumstances returns <em>same</em> pseudorandom sequences in <em>different</em> processes.</p>
| 0non-cybersec
| Stackexchange |
When to use Comparable and Comparator. <p>I have a list of objects I need to sort on a field, say Score. Without giving much thought I wrote a new class that implements Comparator, that does the task and it works. </p>
<p>Now looking back at this, I am wondering if I should have instead have the my class implement Comparable instead of creating a new class that implements Comparator. The score is the only field that the objects will be ordered on. </p>
<ol>
<li><p>What I have done acceptable as a practice? </p></li>
<li><p>Is the right approach "First have the class implement Comparable (for the natural ordering) and if an alternative field comparison is required, then create a new class that implements Comparator" ?</p></li>
<li><p>If (2) above is true, then does it mean that one should implement Comparator only after they have the class implement Comparable? (Assuming I own the original class).</p></li>
</ol>
| 0non-cybersec
| Stackexchange |
Pallet Wall......sort of.. | 0non-cybersec
| Reddit |
Best recipe to have all the time: skillet macaroni. My wife and I tend to make this at least once a week and we've yet to tire of it. One of the best parts: it only takes about a half an hour, and you have enough for four people (or leftovers. Awesome leftovers.)
1 tbsp vegetable oil
1 pound ground beef
salt and pepper
4 garlic cloves, minced
28-ounces canned crushed tomatoes^1
2 cups water
12 ounces elbow macaroni
1/2 cup drained jarred banana peppers (mild or hot), chopped
1 1/2 cups (shredded) cheese^2
1/3 cup chopped fresh basil (dried works as well)
Heat oil in large skillet over medium-high heat until shimmering. Add beef, 1/2 tsp salt, and 1/4 tsp pepper and cook until beef is no longer pink (about 5 min). Add garlic and cook until fragrant (about 30 sec).
Stir in tomatoes, water, macaroni, and banana peppers. Cover and cook, stirring often, until macaroni begins to soften (about 7 min). Reduce heat to medium-low and simmer, covered, until macaroni is al dente (about 7 min).
Stir in 1/2 cup cheese and basil. Season with salt and pepper. Sprinkle with remaining cheese, cover, and cook until cheese is melted (about 1 min). Serve.
And since this is such a basic dish, you can easily modify it however you want (e.g., add other vegetables). The deliciousness of this dish arises out of cooking the noodles in the tomato sauce.
So, Reddit, what awesome recipes do you make all the time?
.^1 Diced tomatoes also work, but when simmering the macaroni, make sure it doesn't dry out. You might have to add a little more water.
.^2 Use whatever cheese you want. My wife and I have been particularly impressed with mixing 1/2 cup ricotta into the macaroni and sprinkling 1 cup of shredded mozzarella on top.
Edit: formatting. | 0non-cybersec
| Reddit |
Are Views optimized when I add a WHERE clause to them?. <p>Does it make a difference if you filter a View inside or outside the View?</p>
<p>For example, is there any difference between these two queries?</p>
<pre><code>SELECT Id
FROM MyTable
WHERE SomeColumn = 1
</code></pre>
<p>Or</p>
<pre><code>SELECT Id
FROM MyView
WHERE SomeColumn = 1
</code></pre>
<p>And <code>MyView</code> is defined as</p>
<pre><code>SELECT Id, SomeColumn
FROM MyTable
</code></pre>
<p>And is the answer any different if the source table is located on a Linked Server?</p>
<p>I'm asking because I have to query a large table (44mil rows) twice from a linked server, and get an aggregate of the results. I want to know if I should create two views to access the data, one for each query, or if I can get away with a single view and a <code>WHERE</code> clause.</p>
| 0non-cybersec
| Stackexchange |
Cisco ASA 5505 Config -> Text File. <p>I'm just starting out learning to config Cisco ASA. My office lent me their old ASA 5505 and I plan to do a factory-reset. Before I do that, I'd like to backup the config to a text file on the machine I'm connecting to it from.</p>
<p>Right now, I ONLY have the console cable attached and am logged in using PuTTy. The existing config is pretty big so I'm unable to do a "show run" and then copy/paste (the beginning of the config is cut off). I also tried using logging in PuTTy but everything is all smushed together.</p>
<p>Is there a way to export the config directly to a text file on my desktop (using Win Server 2008)?</p>
| 0non-cybersec
| Stackexchange |
Built-in C++ algorithms.. Is there a site, or does anybody know how the built-in cmath algorithms like sqrt or pow works in C++, or any type of built-in algorithms? | 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 |
Google group has an invisible member. <p>I have set up a new google group, and the members mostly have non-Google email addresses. This is causing me a lot of trouble.</p>
<p>Two users have tried to view the group by creating a google account using their work email (by signing in and selecting "I prefer to use my current email address"). They are still unable to see the group, and the process caused their settings in the group to change to "No emails" and "Posting not allowed" - I can change the posting preference myself, but cannot change the "no emails" setting.</p>
<p>I tried removing one of them from the group, and adding them again. I did this once, and went back to check the list of members, and they were not there. Thinking I had missed an error message, I tried a second time, and received the message that they could not be added as they were already a member. This is a similar issue to <a href="https://webapps.stackexchange.com/questions/42635/google-groups-thinks-a-member-i-want-to-add-is-already-a-member">Google Groups thinks a member I want to add is already a member</a> but none of the proposed answers apply.</p>
<p>Furthermore, the person in question is receiving messages sent to the group mailing list, but they do not appear anywhere in the members list. They are effectively a ghost. </p>
<p>I have also seen this related issue:
<a href="https://webapps.stackexchange.com/questions/112663/how-do-i-delete-a-group-that-has-hidden-members">How do I delete a group that has hidden members?</a> but nobody answered.</p>
<p>How can I get all members to be visible, and why can people not see their own account when signed into Google with their business email?</p>
| 0non-cybersec
| Stackexchange |
TIL in high school, with his imposing physique and creepy mustache, most Dwayne “the Rock” Johnson’s classmates thought he was an undercover cop.. | 0non-cybersec
| Reddit |
With Ataribox, the Legend Returns -- Powered by Linux. | 0non-cybersec
| Reddit |
Showing off my big fat wiener ;3. | 0non-cybersec
| Reddit |
Why we tuck our feet under the covers. When I was a kid, I was so afraid of the monster under the bed I would jump in from a couple feet away and rush to get under the covers at night. Any feet or hands dangling over the sides meant certain death. I'm pretty sure this is a common fear for kids, or at least I've met enough people with similar fears. Well, I survived childhood with all limbs intact, so I guess the tactic worked, I've just forgotten it in adulthood, which brings me to the other morning.
It was about 8am. I had just put my son down for a nap, and since I'd had a late night I decided to take a nap as well. I lay down on the couch, on my side, with my feet hanging off the edge. I was just drifting off when I felt a strange sensation. It felt like something was holding onto the toes on my left foot. There was pressure and warmth, and I automatically assumed it was a human hand. In fact, eyes still closed, I assumed it must be my daughter up earlier than usual and trying to get my attention. I open my eyes and nothing's there. I get immediate goosebumps, but assume my mind must be playing tricks on me. After all, I *was* just drifting off to sleep. It could have been anything.
I shake it off and roll onto my back. I tuck my feet under the blanket, just in case, then admonish myself for being silly and poke them back out again. It *is* summer- no time for bundling up.
Eventually I fall asleep. You know when you're dreaming and you include something that's going on outside the dream, like the sound of an alarm clock becomes a fire alarm in the dream, something like that? Well, in my dream, a cat has pounced on my foot and is sort of playfully wrestling with it. I start to come to my senses as I realize it doesn't *quite* feel like a cat. I wake up suddenly, and there's the strong sensation of someone with their hand wrapped firmly around my foot and they're pulling on me. I'm instinctively trying to kick and twist my foot free, but the tugging continues for a few more moments, then suddenly the feeling is gone. No one was there. I did not go back to sleep after that.
Anyone else have this happen? I'm still not sure what to make of it. | 0non-cybersec
| Reddit |
Riot K-9 Nasus. I am wondering how big the chance is to get Riot K-9 Nasus in the Mystery Gift? I mean, I'm begining to see alot of people getting it | 0non-cybersec
| Reddit |
Can I manually eager load a model with data in Laravel Eloquent?. <p>For example say I have Book and Author models. I'd eager load the authors like this:</p>
<pre><code>$books = Book::with('author')->get();
</code></pre>
<p>But I have already fetched the list of authors with <code>Author::all()</code> in order to display them elsewhere on the page (a select field for filtering). So now Laravel executes 3 queries:</p>
<pre><code>select * from authors;
select * from books;
select * from authors where id in (1, 2, 3, ...);
</code></pre>
<p>The third query is obviously superfluous since I already have the authors. Is there some way to pass my <code>$authors</code> Collection into my Book query? Searched through the docs and API and can't find anything.</p>
| 0non-cybersec
| Stackexchange |
History of coffeemakers. | 0non-cybersec
| Reddit |
'I can't even look at the cover': The most disturbing books. | 0non-cybersec
| Reddit |
How to use spot instance with amazon elastic beanstalk?. <p>I have one infra that use amazon elastic beanstalk to deploy my application.
I need to scale my app adding some spot instances that EB do not support.</p>
<p>So I create a second autoscaling from a launch configuration with spot instances.
The autoscaling use the same load balancer created by beanstalk.</p>
<p>To up instances with the last version of my app, I copy the user data from the original launch configuration (created with beanstalk) to the launch configuration with spot instances (created by me).</p>
<p>This work fine, but:</p>
<ol>
<li><p>how to update spot instances that have come up from the second autoscaling when the beanstalk update instances managed by him with a new version of the app?</p>
</li>
<li><p>is there another way so easy as, and elegant, to use spot instances and enjoy the benefits of beanstalk?</p>
</li>
</ol>
<p><strong>UPDATE</strong></p>
<p>Elastic Beanstalk add support to spot instance since 2019... see:
<a href="https://docs.aws.amazon.com/elasticbeanstalk/latest/relnotes/release-2019-11-25-spot.html" rel="nofollow noreferrer">https://docs.aws.amazon.com/elasticbeanstalk/latest/relnotes/release-2019-11-25-spot.html</a></p>
| 0non-cybersec
| Stackexchange |
how to send a email body part through MIMEMultipart. <p>I am just curious to know if MIMEMultipart has any attribute in it where I can pass my email body part ... Only part I have come up with is</p>
<pre><code>msg = MIMEMultipart()
msg["From"] = emailfrom
msg["To"] = emailto
msg["Subject"] = "hi find the attached file"
msg.preamble = "please PFA"
</code></pre>
<p>Is there anything like</p>
<pre><code> msg["Body"] = I will add a string or a text file
</code></pre>
<p>I googled for it and found</p>
<pre><code>body = MIMEMultipart('alternative')
body.attach(MIMEText(text))
</code></pre>
<p>but it's not working in my case.</p>
<p>And one more thing - how does <code>MIMEMultipart('alternative')</code> work? What functionality does it provide?</p>
| 0non-cybersec
| Stackexchange |
How can I solve this rather simple looking integral equation?. <p>I was working on a physics problem and I have reduced it down to a simple integral equation with two boundary conditions:</p>
<p>$$\int_0^{l-t}y(x, t) dx = lh$$</p>
<p>With the conditions:</p>
<p>$$y(0, t) = y(l-t, t) = h$$</p>
<p>I am looking for $y(x, t)$. $l$, $h$ and $t$ are positive real numbers.</p>
<p>Unfortunately, I don't know how to solve it. So, I need a little help there.</p>
<p>Also, I am curious if this same problem could be converted into a differential equation.</p>
| 0non-cybersec
| Stackexchange |
Woo! First time. The goo on the right is sweet potato casserole.. | 0non-cybersec
| Reddit |
TimeBomb/TB Evolution vs Don't Mess With Cthulhu/DMWC Deluxe vs Tempel Des Schrecken?. Anyone have thoughts on how TimeBomb/TB Evolution vs Don't Mess With Cthulhu/DMWC Deluxe vs Tempel Des Schrecken compare?
What are the major differences, and which is the best version if excluding for theme?
How do they play at their highest player counts? (8p in DMWC and TB, 10p in TDS) | 0non-cybersec
| Reddit |
Evolution - exchange-connector, Rackspace global catalog server. <p>I'm (trying to) switch to Ubuntu from Windows XP on my work laptop. Unfortunately, one of the dealbreakers is that I need full Exchange contact/calendar syncing.</p>
<p>Our email is hosted by Rackspace (owa.mailseat.com). We login using the usernames of the format [email protected].</p>
<p>I'm trying to set up Evolution to use this account, using exchange-connector-setup-2.32. The first step, entering the OWA URL, usename and password works, and progresses to step 2, where I need to enter a Global Catalog server. I have no idea what to enter here. Everything fails.</p>
<p>My questions are
- What is the "Global Catalog server" - can I enter/run some dummy server here?
- If its necessary, where can I get the information from this? I have a Windows XP machine synced up using Outlook 2007, so if I need to gather any information from that setup I can.</p>
| 0non-cybersec
| Stackexchange |
Is it true that the mobius function $\mu(\frac{n}{d})=(-1)^k\mu(d)$?. <p>Is it true that the mobius function $\mu(\frac{n}{d})=(-1)^k\mu(d)$? and what does the $k$ represent?</p>
<p>I am sorry for the simplicity of this questions, I am sure I have read this somewhere but I cannot seem to find the source at the moment.</p>
| 0non-cybersec
| Stackexchange |
Apple Smart Keyboard Review. | 0non-cybersec
| Reddit |
How to solve the cubic equation $56z^3-70z^2-21z-4=0$?. <p>$56z^3-70z^2-21z-4=0$ how to solve for $z$. I formed three equations but not getting the answer. If I get a start or suggestion it would be a great help.</p>
| 0non-cybersec
| Stackexchange |
After raining all morning I decided I should go for a drive. I was satisfied with that decision -- Grand Mesa, CO [OC] [3696 x 2448]. | 0non-cybersec
| Reddit |
I've finished taking pictures of the major objects within our solar system. | 0non-cybersec
| Reddit |
R leaflet and shiny How to clear map click data. <p>The example below is taken from <a href="http://rstudio.github.io/leaflet/shiny.html" rel="noreferrer">the RStudio tutorial</a> on leaflet. I modified it slightly to fit my issue.</p>
<p>I have a map (here, earthquakes) which I draw on the map using <code>addCircleMarkers</code> and when clicked, the a popup appears with some information. What I want to do in my real app is make it so when a marker is clicked on the map, it filters the other graphs on the page to only the data relevant to that marker. I know how to get the info about where a user has clicked using <code>input$map_marker_click</code> - this will give me the latitude and longitude which will be sufficient for my needs. However - once set, this value doesn't change. It doesn't revert to <code>NULL</code> when the user clicks on the map in a non-marker area. How do I detect a user has clicked in the map on something other than a marker and reset <code>input$map_marker_click</code> to <code>NULL</code> </p>
<p>The example below doesn't have other graphs but I do have it displaying the value of <code>input$map_marker_click</code></p>
<pre><code>library(shiny)
library(leaflet)
library(RColorBrewer)
ui <- bootstrapPage(
tags$style(type = "text/css", "html, body {width:100%;height:100%}"),
leafletOutput("map", width = "100%", height = "100%"),
absolutePanel(top = 10, right = 10,
sliderInput("range", "Magnitudes", min(quakes$mag), max(quakes$mag),
value = range(quakes$mag), step = 0.1
),
selectInput("colors", "Color Scheme",
rownames(subset(brewer.pal.info, category %in% c("seq", "div")))
),
checkboxInput("legend", "Show legend", TRUE),
verbatimTextOutput("clickInfo")
)
)
server <- function(input, output, session) {
output$clickInfo = renderPrint({input$map_marker_click})
filteredData <- reactive({
quakes[quakes$mag >= input$range[1] & quakes$mag <= input$range[2],]
})
colorpal <- reactive({
colorNumeric(input$colors, quakes$mag)
})
output$map <- renderLeaflet({
leaflet(quakes) %>% addTiles() %>%
fitBounds(~min(long), ~min(lat), ~max(long), ~max(lat))
})
observe({
pal <- colorpal()
leafletProxy("map", data = filteredData()) %>%
clearShapes() %>%
addCircleMarkers(radius = ~mag^2/3, weight = 1, color = "#777777",
fillColor = ~pal(mag), fillOpacity = 0.7, popup = ~paste(mag)
)
})
observe({
proxy <- leafletProxy("map", data = quakes)
proxy %>% clearControls()
if (input$legend) {
pal <- colorpal()
proxy %>% addLegend(position = "bottomright",
pal = pal, values = ~mag
)
}
})
}
shinyApp(ui, server)
</code></pre>
| 0non-cybersec
| Stackexchange |
Having an error posting a review on steam. So i've been trying to post a review for Katana Zero but whenever i click post review it just says ' There seems to have been an error saving your review. Please try again later. '
Any way to fix this?.. | 0non-cybersec
| Reddit |
mysql import/drop very slow on pyshycal server. <p>I have mysql installed on a physical server (name it Mysql A) and importing 1 MB .sql (from mysqldump) Magento file could take more than 5 minutes, and dropping database slow as well.</p>
<p>whereas importing the same .sql file into a mysql server that is installed on a VMware Virtual machine (name it Mysql B), it just takes 3 seconds.</p>
<p>the disk write/read test results on both physical and vm machine are equal.</p>
<p>Here is the settings on MySQL A (physical):
<a href="http://pastebin.com/3qAxCJxz" rel="nofollow">http://pastebin.com/3qAxCJxz</a></p>
<p>and MySQL B (vm):
<a href="http://pastebin.com/PqZePH8Z" rel="nofollow">http://pastebin.com/PqZePH8Z</a></p>
<p>both settings are default ubuntu mysql installations.</p>
<p>Any help on why it takes dramatically slower when importing/dropping database on my physical server? It's a HP Proliant ML-10 with 16GB of RAM, and Intel(R) Xeon(R) CPU E3-1220 V2 @ 3.10GHz and the VM's host machine specs and performance has the same benchmark results as the server #A</p>
<p>Thanks</p>
| 0non-cybersec
| Stackexchange |
Uncaught TypeError: THREE.GLTFLoader is not a constructor. <p>I am new to THREE js I can't figure out the error</p>
<p>when I am run my code the following error is showing</p>
<blockquote>
<p>Uncaught TypeError: THREE.GLTFLoader is not a constructor</p>
</blockquote>
<pre><code>var loader = new THREE.GLTFLoader();
loader.load('modelReq/Gully_update_2.gltf',
function (gltf) {
scene.add(gltf.scene);
gltf.animations;
gltf.scene;
gltf.scenes;
gltf.cameras;
gltf.asset;
},
function (xhr) {
console.log((xhr.loaded / xhr.total * 100 ) + '% loaded' );
},
function (error) {
console.log( 'An error happened = ', error );
}
);
</code></pre>
<p>and error is at <code>var loader = new THREE.GLTFLoader();</code></p>
<p>My html file :</p>
<p>
</p>
<pre><code> <link rel="stylesheet" href="css/main.css">
<script src="js/plugins/three.min.js"></script>
<script src="js/plugins/TrackballControls.js"></script>
<script src="js/plugins/stats.min.js"></script>
<script src="js/plugins/GLTFLoader.js"></script>
<script src="js/custom.js"></script>
</head>
<body>
<div id="animate">
<canvas></canvas>
</div>
</code></pre>
<p>and the GLTFLoader.js is in the path : <code><script src="js/plugins/GLTFLoader.js"></script></code></p>
| 0non-cybersec
| Stackexchange |
Theoldstarwars.com: Applauded for the Best Trilogy Series Ever Produced. | 0non-cybersec
| Reddit |
Girlfriend's[22/f] family treat her like a child. What should I do?. I'll start off by saying that my[23/m] girlfriend [22/f] of 8 months is great for the most part. We do love each other, I truly enjoy hanging out with her. [insert other mushy stuff here]. She still lives with her very Catholic family, although I'm not religious I have no problems with that, just as long as they don't push their beliefs on me I wont push my lack of belief on them. Long story short, she was raised by her Aunt and Uncle due to some family troubles when she was young. Because of this, she is grateful for everything they've given her, but I'm thinking that they take advantage of this gratefulness. She can't express any opinion outside of something that they'd agree with for fear of disappointing them. She is told exactly when she has to be home every night (on nights her Aunt allows us to hang out), what time she eats, what time she is to be in bed, etc. and if she is late she gets a "scolding." If I express interest in hanging out with her on a day other than days we usually hang out, her Aunt refers to me as "clingy". To make matters worse, she works in a family business with them; essentially she's around them all the time. She wont do anything about them treating her like a child because she's afraid of disappointing them.
So, what should I do? Should I stick with her and hope things get better in the future? Or should I leave her and find somebody who actually acts like an adult? | 0non-cybersec
| Reddit |
Black Rose Valkyrie Coo Franson Introduction Trailer Scene. | 0non-cybersec
| Reddit |
how to open Team Explorer in Visual Studio 2008. <p>I have <code>VS2008 Professional Edition with SP1</code> installed on my machine. Currently we use Visual Source Safe for version controller but we want to change it with <code>Team Foundation Server 2010/2012</code>. So i need to connect TFS with VS2008.
<br>I read some post on the net and they say there is Team Explorer on <code>Tools/Connect to Team Foundation Server</code> to connect to TFS. This should already be installed with VS2008 SP1 but i dont see anything about Team Explorer in my VS2008 menus.<br>
How can i open Team Explorer in my VS2008 to connect to TFS that we are planning to install? Or how can i verify that Team Explerer is installed on my machine?</p>
| 0non-cybersec
| Stackexchange |
My SO (27/m) smells very odd when we're in bed. I (24/f) tried approaching him a few times but need input.. I get this isn't a huge issue but it does really hamper things. My SO and I have been together 4 years. He has great hygiene and is actually extremely obsessive when it comes to it. However, I noticed in the past few months or so, probably closer to a year, that he really smells when we're in bed for the night. To sleep, not have sex. When we get in to when we wake up. All night he smells. It's mostly his breath but it might be body, too. He doesn't smell at all during the day besides after eating onions or something or working out. For whatever reason, when we get into bed at night he just stinks. It's his general smell, not just coming from his mouth. It just smells very, very sour. It's difficult to explain. I don't understand this because he showers right before bed and brushes his teeth. He even puts on deodorant before getting in. He has an extensive routine! He flosses, brushes, uses a tongue scraper, and gargles using mouthwash. He uses a good soap to shower with, too.
I tried approaching this with him twice. I told him "I am not trying to hurt your feelings but I noticed that you have a weird odor when we're sleeping". He became really annoyed saying that I don't smell like flowers either. I'm not saying I do! However, I don't think he quite understands that it seems like an issue. Like a health issue? I don't know. He does have some "back-ne" or acne on his back but I don't see how that would cause this. When he gets up and goes down for breakfast, it's gone and he doesn't even change. The sheets are clean. I wash them once a week. I don't know how to approach this again. I've been using pillows to kind of block away the smell and that works okay. I want to help him figure this out but I guess he doesn't want to fix it.
**TLDR** Boyfriend smells only when we're in bed for the night. He gets offended when I try to talk to him about it. | 0non-cybersec
| Reddit |
ELI5: How is it possible that satellites and space stations don't get hit by astroids or other flying objects all the time?. | 0non-cybersec
| Reddit |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.