text
stringlengths 3
1.74M
| label
class label 2
classes | source
stringclasses 3
values |
---|---|---|
shoes for the Night's Watch. | 0non-cybersec
| Reddit |
How to set QWidget width?. <p>How to set <code>QWidget</code> width? I know <code>setGeometry(QRect& rect)</code> function to do that, but in that case I should use <code>geometry()</code> function to get former parameters of my <code>QWidget</code>, then I should increment the width and use setGeometry(..). Is there any direct way to that, say: </p>
<pre><code>QWidget aa;
aa.setWidth(165); //something like this?
</code></pre>
| 0non-cybersec
| Stackexchange |
Nameserver changes and Tumblr custom URL's. <p>I'm hoping I can get some help on some trouble I'm having with using a custom url for my tumblr blog.</p>
<p>To begin with I'll give a background to my setup for my site -
I'm using GoDaddy for as my domain name host and Dreamhost for my web hosting
I'm intending to make a WordPress based website on the main domain, with the addition of Tumblr on a sub domains
I intend to add further non WordPress based pages on other sub domains of the main URL in the future</p>
<p>My Tumblr blog used to point to the custom URL, but recently I changed the name servers on GoDaddy to point towards Dreamhost's servers (ns1, ns2, ns3), as I wan4t to host a web page on the main URL as well as set up an email address for myself via Dreamhost.</p>
<p>On my GoDaddy profile, my CNAME & A (Host) @ are both pointing to Tumblr - domains.Tumblr.com and 66.6.44.4 respectively, where domains is a placeholder for my Tumblr blog name - there also seems to be a www host for CNAME on Godaddy.</p>
<p>To summarize -</p>
<blockquote>
<p>A (Host) > @ = 66.6.44.4</p>
<p>CNAME (Alias) > blog = [name].tumblr.com</p>
<p>CNAME (Alias) > @ = [empty]</p>
</blockquote>
<p>My current issues are as follows -</p>
<p>1 - My Tumblr page wont load on the sub domain address though the favicon still appears, how can I get my blog up and running on the sub domain address again?</p>
<p>2 - When I try to add a hosting/sub domain on Dreamhost an error message occurs telling me that "You can't add that domain: you don't have permission to add", what is this caused by and how do I resolve it?</p>
<ol start="3">
<li>Do I need to add something to the @ host for the CNAME? Should I have both CNAME and A name @ host point towards tumblr or only one?</li>
</ol>
| 0non-cybersec
| Stackexchange |
Why small businesses need firewalls. | 1cybersec
| Reddit |
Find first non-blank cell in a range. <p>I am working with a list of data where one or multiple cells in a row can be blank. </p>
<p>Lets say the list is cells <code>A1</code>, <code>A2</code>, <code>A3</code>, <code>A4</code>. I am trying to create a function that will do the following:</p>
<pre><code>IF A1 has a value I want the cell to return A1.
IF A1 is empty then I want it to return A2.
IF A1 and A2 are both empty I want it to return A3.
If A1, A2 and A3 are all empty I want it to return A4.
</code></pre>
| 0non-cybersec
| Stackexchange |
How can I add Ubuntu to a windows domain with LikewiseOpen?. <p>I want to join with my Ubuntu 14.04 Computer to a windows domain (2012 R2).</p>
<p>I tried install <a href="https://help.ubuntu.com/community/LikewiseOpen" rel="nofollow">likewise-open</a> but it didn't work though.</p>
| 0non-cybersec
| Stackexchange |
[Art] My friend drew my Elven Sorceress, Eliza Whitethorne. | 0non-cybersec
| Reddit |
Create new Windows Server User for existing Exchange Account. <p>There is an existing Exchange 2007 account for user [email protected]
If I want to create a Windows SBS 2008 Account for john.doe it tells me I cannot create it because user already exists.
I don't want the user to have 2 logins. Is there a possibility to create the user-account after the Exchange Account without deleting the exchange account. </p>
| 0non-cybersec
| Stackexchange |
Numerical packages to solve Volterra integral equations. <p>I am looking for numerical packages (ideally Python) to solve second kind Volterra integral equations, such as</p>
<p>$$u(t)=g(t)+\int_0^tK(t,s)u(s) ds$$</p>
<p>or Volterra-Fredholm integral equations</p>
<p>$$u(x,t)=g(t,x)+c\int_0^t\int_\Omega K(t,s,x,\xi)u(s,\xi) d\xi ds$$</p>
<p>Are there any callable functions in Python to solve such equations? if not, are there any standard algorithm to solve such equations?</p>
| 0non-cybersec
| Stackexchange |
I can't figure out how to put my bed frame together... Help?. | 0non-cybersec
| Reddit |
EMT feeling the music. | 0non-cybersec
| Reddit |
What is the currently recommended way to install the SciPy ecosystem on OS X?. <p>I just got a new Macbook and decided to install everything from scratch instead of migrating. Previously I've always installed SciPy etc. through MacPorts, but lately MacPorts as a whole seems not to be as cleanly maintained as it once was, and I spend a lot of time tracking down problems with it. I also generally used MacPorts (rather than pip or easy_install) to install Python libraries.</p>
<p>So I was wondering if there is a better way to install SciPy and friends these days. I know that there are a number of all-in-one packages such as Anaconda, but I don't know if that's better or worse than using MacPorts to install the lot. I also know that Homebrew exists as a more recent alternative to MacPorts, but in searching for comparisons between the two I haven't gleaned much useful information.</p>
<p>So my question is whether it is generally recommended to install Anaconda or another similar package, or to use MacPorts or Homebrew, or some other solution. I realise this question could be a little opinion-based, so I'd appreciate it if answers would stick to relevant facts about the various options, as they relate to maintaining a scientific Python distribution.</p>
<p>Also, if I do use MacPorts or Homebrew, should I generally reach for the package manager when I want to install a new library, or is it better to just install the basic packages that way and use pip for everything else?</p>
| 0non-cybersec
| Stackexchange |
Tomcat7 autorefresh server-status and explanation. <p>two questions regarding tomcat7 admin-manager. I´m trying to find a bottleneck with slow response times. Therefore I´ve enabled tomcat7 admin host manager. Mainly I´m interested in the status of incoming requests which can be seen by visiting /manager/status/all</p>
<p><a href="https://i.stack.imgur.com/02fr5.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/02fr5.png" alt="enter image description here"></a></p>
<p><strong>Question 1:</strong>
Is it possible to "auto refresh" the status of the requests or even look at it in terminal? With apache I´m just doing <code>watch apachectl status</code></p>
<p><strong>Question 2:</strong></p>
<p>How to understand <code>29 Rejected session creations</code> mean by looking at a depoyed tomcat app (geoserver) within serverlist.</p>
<pre><code> Active sessions: 29 Session count: 29 Max active sessions: 29 Rejected session creations: 0 Expired sessions: 0 Longest session alive time: 0 s Average session alive time: 0 s Processing time: 0 ms
</code></pre>
| 0non-cybersec
| Stackexchange |
pgfplot or matplotlib?. <p>The reason I ask this is because I was trying to draw multiple lines in <code>pgfplots</code> (I was trying to make a drawing showing how Riemann sums and integrals are connected). And after unsuccessfully trying to use a for loop for an hour or so, I found <a href="https://tex.stackexchange.com/questions/140207/placing-coloured-rectangles-on-a-plot-using-points-from-the-plot-riemann-sums">this solution</a>, which was pretty unsatisfying since it's just a workaround for this particular case. And I thought that it would have been much easier with the power of Python. So, my question is: What do I lose by switching to matplotlib?</p>
| 0non-cybersec
| Stackexchange |
Possible analysis and prediction to a problem. <p>I would like to apologize upfront for not using accurate/correct terms when I'm describing the following problem.</p>
<p>Suppose I have the following system that I'd like to be able to either accurately sample in efficient time (non-exhaustive sampling) or be able to predict with tolerable error margin. The system has a dependent <span class="math-container">$Y$</span> and independent <span class="math-container">$X,Z,M,I$</span>, <span class="math-container">$\ Y$</span> represents energy of some value and the other variables have varying effect on <span class="math-container">$Y$</span>'s value however let's assume it's strongly linked to <span class="math-container">$X$</span> more than the others.</p>
<p>The problem here represents 60% cases where the correlation is inversely proportional and some 40% where it appears as in the image below.</p>
<p>I have tried multiple methods so far to be able to either find improved state through Evolution algorithms/Hill climbing and random search, also have tried linear regression which produced large margin errors when used to predict new dataset. Is there method that would either allow me to construct a model to be used with prediction or simply optimize the problem with minimal time.</p>
<p><img src="https://i.stack.imgur.com/xSiY3.jpg" alt=""></p>
| 0non-cybersec
| Stackexchange |
Here's a picture I took of the Queen last summer - she was checking her bank account. | 0non-cybersec
| Reddit |
Vauxhall VX220 on ITBs - Better Than A Lotus Elise?. | 0non-cybersec
| Reddit |
My husband planned a surprise trip..for him and I for a weekend get away. His parents are taking my nine month old. She is an easy baby and used to them and they are quite capable of looking after her. I however am not ready. She is ready to walk and I fear I may miss those few steps. I also fear. I also fear something may happen and we won't be together as a family. I'm just not ready.. how old were your babies when you left them for. A weekend and how did you feel | 0non-cybersec
| Reddit |
Why does rsyslogd not honor the following lines in rsyslog.d. <p>This is somewhat related to my previous question <a href="https://unix.stackexchange.com/q/132646/5462">here</a>.</p>
<p>I have three files in <code>/etc/rsyslog.d</code> which is included from <code>/etc/rsyslog.conf</code>:</p>
<ul>
<li><code>00-iptables.conf</code></li>
<li><code>50-default.conf</code></li>
<li><code>postfix.conf</code></li>
</ul>
<p>The first one is one that I created. My assumption is/was, that due to the naming it will be included before <code>50-default.conf</code>, but I also tried putting the filter lines directly into <code>50-default.conf</code> and remove my custom file (<code>00-iptables.conf</code>).</p>
<pre><code>:msg, startswith, "ipt:" /var/log/iptables.log
& stop
</code></pre>
<p>Replaced <code>~</code> with <code>stop</code> as running <code>rsyslogd</code> with <code>-N1</code> as described on the man page and in the troubleshooting steps gave a warning, saying <code>~</code> is deprecated in favor or <code>stop</code>, which means the available (official!) documentation seems to be outdated/lagging behind.</p>
<p>Now the idea here is that any message prefixed with <code>ipt:</code> will go into the named log file and no other log file will receive these lines (I tried also <code>contains</code> instead of <code>startswith</code>). That is in particular <code>syslog</code> and <code>kern.log</code> mentioned in <code>50-default.conf</code> shouldn't receive those messages anymore:</p>
<pre><code>auth,authpriv.* /var/log/auth.log
*.*;auth,authpriv.none -/var/log/syslog
kern.* -/var/log/kern.log
</code></pre>
<p>I read the rsyslog documentation, but documentation for the <a href="http://www.rsyslog.com/doc/rsyslog_conf_filter.html" rel="nofollow noreferrer">property-based filters</a> (also <a href="http://www.rsyslog.com/doc/property_replacer.html" rel="nofollow noreferrer">here</a>) isn't exactly the most enlightening.
The example given in the documentation (also found elsewhere) and <a href="http://wiki.rsyslog.com/index.php/Snare_and_rsyslog" rel="nofollow noreferrer">their Wiki gives a similar example</a>:</p>
<pre><code># From documentation
*.* /var/log/allmsgs-including-informational.log
:msg, contains, "informational" ~
*.* /var/log/allmsgs-but-informational.log
# From Wiki
:syslogtag, startswith, "MSWinEventLog#011" /var/log/messages;fixsnareFormat
& @192.168.1.8;fixsnareForwardFormat
& ~
</code></pre>
<p>While the example from the documentation isn't as close to my two-liner, it still explains the meaning of the <code>~</code> better.</p>
<p>What am I doing wrong?</p>
<p>Bonus points if someone can answer whether there is a way to combine selectors and properties. E.g.:</p>
<pre><code>:msg, startswith, "ipt:" kern.* /var/log/iptables.log
</code></pre>
<p>NB: I use version 7.4.4 of <code>rsyslog</code>. And yes, I did <code>service rsyslog restart</code> after the changes and then waited for it to take effect.</p>
<hr>
<h3>Edit</h3>
<p>Some more info. When running the daemon in debug mode (<code>RSYSLOG_DEBUG=LogFuncFlow RSYSLOG_DEBUGLOG=~/rsl.log $(which rsyslogd) -f /etc/rsyslog.conf -d</code>), I can see that the ruleset after optimization looks like this, which seems to indicate it's exactly the way I want it (leading prefix stripped for brevity):</p>
<pre><code>ruleset 'RSYSLOG_DefaultRuleset' after optimization:
ruleset 0x214a640: rsyslog ruleset RSYSLOG_DefaultRuleset:
PROPFILT
Property.: 'rawmsg'
Operation: 'contains'
Value....: 'ipt:'
THEN
ACTION 0x215c070 [builtin:omfile:/var/log/iptables.log]
STOP
END PROPFILT
PRIFILT 'auth,authpriv.*'
pmask: X X X X FF X X X X X FF X X X X X X X X X X X X X X
ACTION 0x215e840 [builtin:omfile:/var/log/auth.log]
END PRIFILT
PRIFILT '*.*;auth,authpriv.none'
pmask: FF FF FF FF X FF FF FF FF FF X FF FF FF FF FF FF FF FF FF FF FF FF FF FF
ACTION 0x215f030 [builtin:omfile:-/var/log/syslog]
END PRIFILT
</code></pre>
<p>I should also add that from the behavior I see, I can deduce that the filter has an effect, as it clearly writes into the file <code>/var/log/iptables.log</code> as expected. However, the messages aren't dropped as expected after writing them to that particular file.</p>
<p>Here's an example line the way it ends up in all of <code>kern.log</code>, <code>syslog</code> and <code>iptables.log</code> as opposed to only the latter. Details have been redacted for privacy reasons:</p>
<pre><code>Jun 1 02:23:01 hostname kernel: [70025.211497] ipt:drop IN=eth0 OUT=virbr0 MAC=dd:cc:bb:aa:99:88:77:66:55:44:33:22:11:00 SRC=9.8.7.6 DST=1.2.3.4 LEN=60 TOS=0x00 PREC=0x00 TTL=47 ID=59201 DF PROTO=TCP SPT=47626 DPT=23 WINDOW=4380 RES=0x00 SYN URGP=0
</code></pre>
| 0non-cybersec
| Stackexchange |
Should I split a Python class with many methods into multiple classes?. <p>I have a class that will end up having more than ~30 methods. They all make sense to be part of the same class because they require access to the same data.</p>
<p>However, does it make any sense to split up a large class into several smaller abstract classes (by functionality, type, use, etc.) and have the main class extend (i.e. multiple inheritance) from all the smaller classes?</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 |
Ubuntu 18.04 - Very slow boot times and multiple systemd failures / connection timed out errors. <p>After restarting my 18.04 server I'm getting very slow boot times (takes upwards of 5-15 minutes to be able to log in) and multiple "systemd" failures.</p>
<p>Here's what I'm seeing error wise:</p>
<pre><code>systemd[1]: Failed to get initial list of names: Connection timed out
systemd[1]: Failed to to set up API bus: Connection timed out
systemd[1]: Error occured during D-Bus APIs: Connection timed out
systemd[1]: Failed to start Login Service: Connection timed out
</code></pre>
<p>For reference here are </p>
<pre><code>$ ls -al /etc/resolv.conf
lrwxrwxrwx 1 root root 39 Sep 6 14:06 /etc/resolv.conf -> ../run/systemd/resolve/stub-resolv.conf
$ cat /etc/resolv.conf
nameserver 127.0.0.53
options edns0
search blacklab.ddns.net
$ cat /etc/netplan/*.yaml
# Let NetworkManager manage all devices on this system
network:
version: 2
renderer: NetworkManager
$ cat /etc/network/interfaces
# interfaces(5) file used by ifup(8) and ifdown(8)
auto lo
iface lo inet loopback
auto enp8s0
iface enp8s0 inet dhcp
</code></pre>
<p>Any ideas how how to fix/troubleshoot this? Thanks</p>
<p><strong>UPDATE</strong>:</p>
<p>Also noticing slow <code>sudo apt-get update/upgrade</code> with errors such as these:</p>
<pre><code>Err:4 https://packages.cloud.google.com/apt coral-edgetpu-stable/main i386 Packages
Certificate verification failed: The certificate is NOT trusted. The certificate issuer is unknown. Could not handshake: Error in the certificate verification. [IP: 2607:f8b0:4007:800::200e 443]
E: Failed to fetch https://packages.cloud.google.com/apt/dists/coral-edgetpu-stable/main/binary-i386/Packages Certificate verification failed: The certificate is NOT trusted. The certificate issuer is unknown. Could not handshake: Error in the certificate verification. [IP: 2607:f8b0:4007:800::200e 443]
E: Some index files failed to download. They have been ignored, or old ones used instead.
</code></pre>
| 0non-cybersec
| Stackexchange |
Misunderstood Shark. | 0non-cybersec
| Reddit |
Hand made paintbrushes and carrying case I made for my friend.. | 0non-cybersec
| Reddit |
a command inside a variable. <p>I want to fill a variable with a commnad line read from a file and execute it. No problem when it is a single command. When I use a |, it doesn´t work.
Any help ???
Thank you </p>
<pre><code>$ f="ls -1"
$ $f
a
a0
a1
a2
a3
b1
cfg
cfile
dfile
e
fcorreo.txt
log
logs
work
$ f="ls -1 | tail -1"
$ $f
ls: cannot access |: No such file or directory
ls: cannot access tail: No such file or directory
$ f='ls -1 | tail -1'
$ $f
ls: cannot access |: No such file or directory
ls: cannot access tail: No such file or directory
$ echo $f
ls -1 | tail -1
</code></pre>
| 0non-cybersec
| Stackexchange |
Good Guy Origin. | 0non-cybersec
| Reddit |
How to Mock out AWS SDK for Go call. <p>I am writing a unit test for a function that uses the AWS SDK for Go to get a secret from the AWS Secrets Manager: </p>
<p><strong>main.go</strong></p>
<pre><code>//Helper function to get secret from AWS Secret Manager
func getAWSSecrets(svc secretsmanageriface.SecretsManagerAPI) (secretMap map[string]string, err error) {
//Get secret config values
req, resp := svc.GetSecretValueRequest(&secretsmanager.GetSecretValueInput{
SecretId: aws.String("my/secret/string"),
})
err = req.Send()
if err != nil {
return nil, err
}
...
}
</code></pre>
<p>In order to test this, I need to create a mock AWS Secret Manager Client. I've set up the basic skeleton of how that will work: </p>
<p><strong>main_test.go</strong></p>
<pre><code>type MockSecretsManagerClient struct {
secretsmanageriface.SecretsManagerAPI
}
func (m *MockSecretsManagerClient) GetSecretValueRequest(input *secretsmanager.GetSecretValueInput) (req *request.Request, resp *secretsmanager.GetSecretValueOutput){
// Confused on how to mock out the returned `req`
}
// tests getAWSSecrets
func (suite *ServerTestSuite) TestGetAWSSecrets() {
//Setup test
mockSvc := &MockSecretsManagerClient{}
req, resp := getAWSSecrets(mockSvc)
}
</code></pre>
<p>I'm running into trouble trying to mock the returned request from <code>GetSecretValueRequest</code>. Furthermore, once I mock this request, I'm not sure how to handle mocking <code>req.Send()</code>. Is there a simple way to do this? Or are there any good examples of someone doing this? </p>
| 0non-cybersec
| Stackexchange |
Just like her Mother. | 0non-cybersec
| Reddit |
What's okay to believe in your 20s, but just dies off in your 30s?. | 0non-cybersec
| Reddit |
Creamy Goat Cheese Penne with Chicken and Figs. | 0non-cybersec
| Reddit |
Which writers are no longer involved with Rick and Morty? (S4 doesn’t have the same feel to me). I don’t care if I get hate for this but I don’t like season 4. I loved seasons 1-3, but season 4 did not have the same feel to me. I was wondering if it has that different feel because a lot of the writers for seasons 1-3 are now gone.
Here are the writers of my favorite episodes:
Matt Roller; Mike McMahan (I know Mike is still a writer as he worked on 4x01); Ryan Ridley (I heard he left); Dan Guterman; Alex Rubens; David Philips ; Tom Kaufman
Besides E1, there are different unknown writers for each episode? Why did they do this? Does anyone know why any of the old writers left? | 0non-cybersec
| Reddit |
WindowsXP Guest OS runs only when its Virtual HDD is in the home folder of Ubuntu. <p>I am into a weird problem. I have installed VirtualBox in my Precise Pangolin in my laptop. My System contains two partitions. Lets presume that they are partition A and Partition B. Partition A contains Ubuntu.</p>
<p>Tried to install Windows XP as a guest operating system in my precise pangolin. But I couldnt install. Windows XP threw an error message while installing, stating that the files cannot be copied onto the harddisk. This scenario happens, when I have my Virtual Hard Disk for WindowsXP Guest inside Partion B. But when I have the Virtual Hard Disk inside my home folder in Ubuntu, It is running fine.</p>
<p>Could any one please help me resolve this issue?</p>
<p>Any help would be highly appreciated.</p>
<p>Regards,
Hari</p>
| 0non-cybersec
| Stackexchange |
Fortunately, she said nothing afterwords.. | 0non-cybersec
| Reddit |
Where are catch and throw useful in Ruby?. <p>I really don't see a sane use for these. There is already <code>rescue</code> and <code>raise</code>, so why the need for <code>throw</code> and <code>catch</code>? It seems they are supposed to be used to jump out of deep nesting, but that just smells like a goto to me. Are there any examples of good, clean use for these?</p>
| 0non-cybersec
| Stackexchange |
Outlook 2013 not showing mails in folder. <p>I have a problem with Outlook 2013, which is connected to a Dovecot IMAP-server. The user in Outlook has a lot of folders in his account, which I suspect may be part of the cause.</p>
<p>The problem is, some folders appear to be empty in Outlook, even though the messages in them are new (like 1-2 days old) and have been moved there manually. I checked, and the folders are subscribed in Outlook. The e-mails exist on the server, which is verified by the use of a webmail and they also exist in the user's Maildir on the server.</p>
<p>What can cause outlook to behave this way?</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 |
Floral torso by Tita Jewels @ Little Pricks in Cedar Park, TX. | 0non-cybersec
| Reddit |
Leak document as a PDF to read easier for mobile users.. I made this PDF because it was kind of hard to read/look at the pictures in the sticky thread. I’ll do my best to update it as more info comes about so mobile users can look on!
[Sword Shield Leaked Info](https://drive.google.com/file/d/1UvxzSUNXpjP-6gNqgygoQu1qMwbWo3W2/view)
Edit: Updated as of 6:45pm EST on November 2nd, 2019. Thank you!
Edit 2: Updated at 5:45am EST on November 3rd, 2019. Sorry it came so late after new stuff released. Was working the night shift tonight! Have a good morning everybody. Just realized more leaks were posted on the sub and I’ll fix it later in the morning after I get some sleep with some more info and leaks. | 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 |
Putting Security into The IaC Pipeline. | 0non-cybersec
| Reddit |
5 Reasons You Should Use the Brand-New C# 7.0 in Your WebDriver Tests. | 0non-cybersec
| Reddit |
MRW my submission has a dozen top level comments in the first 3 minutes but only 2 upvotes.. | 0non-cybersec
| Reddit |
Only monsters do that. | 0non-cybersec
| Reddit |
So, why exactly was Porygon blacklisted?. Team Rocket shot some missiles, Pikachu exploded them and caused a lot of Japanese kids to seize, so they banned Porygon. That doesn't exactly make any sense, they should have removed Pikachu and made Porygon the star of the show from that episode on.
Was it because Porygon was in the episode? Newsflash, Pikachu was in that episode too | 0non-cybersec
| Reddit |
Group Policy to have different groups using different Windows update Source. <p>I am trying to set up a group policy (Under Windows Server 2003) so that staff computers will point to a WSUS server for Windows update, while computers in another group (IT & Test group) will update from the Microsoft site. </p>
<p>I have set up two policies and from what I can see it should work. </p>
<p>However unless I have the WSUS server specified in "Specify Intranet Microsoft Update Service" in the <strong>global</strong> policy the staff computers (All XP Pro) still download updates from the Microsoft site. If I do put the intranet site in the global policy then the test group won't download from Microsoft.</p>
<p>I would be very grateful for any assistance as I can't see why it is doing this. </p>
<p>I have a document showing the settings as they are just now, but the forum won't allow me to post pictures and will only allow one link. The quality of the file at the below link isn't great. But if anyone can help I can send them a copy of settings.</p>
| 0non-cybersec
| Stackexchange |
How to move a figure to an other page?. <p>I make two pictures with TikZ in two figures at top of each secion.<br/>
I refer their position at the end of each section.<br/>
Can you suggest a way to move them arbitrarily?<br/></p>
<h2>My problem is lables</h2>
<p>They should make before using them.<br/>
Here is my entire code to show an example of a table (splited by lines) which forced me to locate the figure at the beginning of the section:</p>
<pre><code>\documentclass{article}
\usepackage[a4paper]{geometry}
% and other necessary packages
\begin{document}
\section{جلسه اول}
\begin{figure}
\centering
\subfloat[سوال اول و دوم]{\label{fig:J55VH}
\begin{tikzpicture}
\filldraw [black] (.5,.5) rectangle (.75,.75);
\foreach \x in {.125,.375,...,1.125}
\foreach \y in {.125,.375,...,1.125}
\draw (\x,\y) +(-.125,-.125) rectangle ++(.125,.125);
\end{tikzpicture}}
\caption{جلسه اول(خانههای مشکی حذف شدهاند.)}
\end{figure}
\begin{prob}
شکل
\ref{fig:J55VH}
را با تعداد کافی از مهرهی
\ref{fig:LP}
بپوشانید.
\end{prob}
\begin{prob}
شکل
\ref{fig:J55VH}
را با تعداد کافی از مهرهی
\ref{fig:3t1}
بپوشانید.
\end{prob}
\end{document}
</code></pre>
| 0non-cybersec
| Stackexchange |
How can I combine @DataJpaTest @SpringBootTest in one MVC application for testing every layer?. <p>Here <a href="https://stackoverflow.com/a/52968130/10894456">https://stackoverflow.com/a/52968130/10894456</a> is well explained why @DataJpaTest @SpringBootTest shouldn't be mixed in one application. </p>
<p>But barely explained the case when anyway need to test every layer of MVC SpringBoot application (from my point it's natural to test not only one or only another layer but both and even all layers, isn't it?) </p>
<p>So there was suggested a solution to use @AutoConfigureTestDatabase rather than @DataJpaTest but didn't finish the job (((</p>
<p>So my question is: is using @AutoConfigureTestDatabase an appropriate solution? If yes, please explain details. If no, please suggest more appropriate solution, thank you</p>
| 0non-cybersec
| Stackexchange |
How I can know the version of the software included with each release?. <p>I need to know the version of any piece of software included with Ubuntu and the ones that provides support before downloading and installing Ubuntu. I need to know what are the versions of all the packages included with Ubuntu. Is there such list?</p>
| 0non-cybersec
| Stackexchange |
DSCP trust boundary. <p>I have performed some analysis and noticed that traffic coming in from the Internet contains a myriad of DSCP values. This traffic competes for voice and video resources on the internal network. </p>
<p>How do I establish a trust boundary where all incoming DSCP is rewritten to zero on Cisco and Juniper routers?</p>
| 0non-cybersec
| Stackexchange |
TIFU by not cleaning out my fridge for 9.5 months. So while this story started in August of 2017, I actually cleaned the dang thing today. I like to think that this giant colossal mistake was made up of smaller, seemingly insignificant ones. But really it’s just all my fault.
The story starts with me being a senior in college and moving into a 1 bedroom apartment without roommates for the first time. (Fuck up number 1). I was excited and the first week, I actually cooked myself some food- it was spaghetti. I unfortunately made way to much sauce, so I put the pan in the fridge and figured I would eat it the next night.
Fuck up number 2: I work in a Dining Court on campus. We serve thousands of people a day, so I have never learned how to portion for 1 person. You need 224lbs of pizza dough? I’m your girl. Need a meal for 1-4 people? Forget it. So this means that I 1) don’t know how to portion and ALWAYS have leftovers and 2) I get a free meal every time I work.
Throughout the last 9.5 months I would go through a cycle that now constitutes fuck up number 3- buy groceries, get free food at work and not need the groceries, groceries go bad. Rinse repeat.
Things started getting out of hand around November/December. At this point, I had developed a system- good food went on the left, bad food on the right. And thus the cycle would continue.
Now I can hear the obvious question everyone is thinking: why didn’t I just throw away the old, bad food? Well, I am a very busy person (work 3 jobs, full time student) and mostly I would forget to clear it out until I bought more freaking groceries. And then it would be midnight putting away groceries and not having an hour to sit and clean out a fridge.
March hits. My friend comes to visit, and she brings food. I literally threw myself in the way to ensure she did not open the fridge, and she laughs. I don’t think she knows why until i tell her that this fridge is not decent for company. I then put the food away for her and make her promise not to open it. (At this point the fridge is budding new species). I make it through the weekend of having her over with no food related casualties.
I do not open the fridge again until today. Yes, today. Like I said, I get free meals so I never eat at home so I had no reason to. Well I had the weekend off and after cleaning every other square inch of my apartment yesterday, I decide to clean the fridge today.
I grab a trash bag (the first of 5) and some gloves (I work in a lab also and have lab gloves everywhere all the time). I open the fridge, and I am smacked, no, PUMMELED, in the face with a stench that’s so rank I have to turn away and try not to vomit. I slam the thing shut and open all windows. Turn on all fans. Leave my front door open for the remainder of the process. And I go back. I open the door and start throwing food into the trash bag.
There’s the yogurts I bought back in September. The salami from October that have gone past the green fuzzy stage to the “read what the package says to figure out what it was” stage. There’s the leftover blackberries, which have been consumed by a white malignancy I can only assume is capable of higher order thought. The 2 egg cartoons from various periods, that have black spots on the eggs themselves(this was a really scary moment. Could you imagine if I broke one). There were four, FOUR milk cartons. All in varying stages of decay. One seemed like it might be okay for a raccoon, one was completely solid, one was completely empty (i did not put back an empty carton, it was just inexplicably empty), and another had separated into a yellow watery substance.
And there. At the back of the fridge. The spaghetti sauce pan from the first week of August. The pan was no longer a pan. It had transformed into a second earth. In fact, I’m fairly certain there were at least 6 new species of mold in the pan, and that PETA would be upset by me killing it. No amount of cleaning or boiling this pan would bring it back from the depths of hell it had crawled from. It too, went in the dumpster.
Then, I had to begin cleaning the refrigerator itself. Because the mold had emigrated from the food to every surface imaginable. I sprayed the entire thing with bleach infused cleaner. And I let it sit. I resprayed every 20-30 minutes. Then after a few hours I dug in. I wiped and scrubbed and then I made the worst mistake. I open the drawer of the crisper. No, there was no horror waiting for me in it. But under it, was a watery mess that looked liked what can only be called vegetable puss. I needed more bleach.
Four hours after I started cleaning my fridge, I finished. I immediately got in the shower and scrubbed. The hottest water my apartment could muster was not hot enough. I exfoliated, twice, and even used one of those green scratch pads for dishes on myself.
My fridge is clean, I am clean. And I have learned a valuable lesson: I NEED a roommate to remind me to clean out my food regularly.
TL;DR I avoided/forgot to clean out my refrigerator for 9.5 months and accidentally created a superfund site in my apartment.
UPDATE/edit: fridge is not cooling anymore, have sent in a maintenance request. Good thing I don’t have anything in there! | 0non-cybersec
| Reddit |
Error when installing watchman on Ubuntu 18.10. <p>i'm trying to install watchman (for using it with react native) on ubuntu 18.10 but when i do the "make" command it gives me an error. This is the log:</p>
<pre><code>aupetrone@aupetrone-X580VD:~/watchman$ ./autogen.sh
aupetrone@aupetrone-X580VD:~/watchman$ ./configure
checking build system type... x86_64-pc-linux-gnu
checking host system type... x86_64-pc-linux-gnu
checking target system type... x86_64-pc-linux-gnu
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... /bin/mkdir -p
checking for gawk... no
checking for mawk... mawk
checking whether make sets $(MAKE)... yes
checking whether make supports nested variables... yes
checking whether make supports nested variables... (cached) yes
checking for gcc... gcc
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables...
checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ISO C89... none needed
checking whether gcc understands -c and -o together... yes
checking whether make supports the include directive... yes (GNU style)
checking dependency style of gcc... gcc3
checking for g++... g++
checking whether we are using the GNU C++ compiler... yes
checking whether g++ accepts -g... yes
checking dependency style of g++... gcc3
checking whether g++ supports C++11 features by default... yes
checking how to run the C preprocessor... gcc -E
checking for grep that handles long lines and -e... /bin/grep
checking for egrep... /bin/grep -E
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking whether byte ordering is bigendian... no
checking for inline... inline
checking how to print strings... printf
checking for a sed that does not truncate output... /bin/sed
checking for fgrep... /bin/grep -F
checking for ld used by gcc... /usr/bin/ld
checking if the linker (/usr/bin/ld) is GNU ld... yes
checking for BSD- or MS-compatible name lister (nm)... /usr/bin/nm -B
checking the name lister (/usr/bin/nm -B) interface... BSD nm
checking whether ln -s works... yes
checking the maximum length of command line arguments... 1572864
checking how to convert x86_64-pc-linux-gnu file names to x86_64-pc-linux-gnu format... func_convert_file_noop
checking how to convert x86_64-pc-linux-gnu file names to toolchain format... func_convert_file_noop
checking for /usr/bin/ld option to reload object files... -r
checking for objdump... objdump
checking how to recognize dependent libraries... pass_all
checking for dlltool... no
checking how to associate runtime and link libraries... printf %s\n
checking for ar... ar
checking for archiver @FILE support... @
checking for strip... strip
checking for ranlib... ranlib
checking command to parse /usr/bin/nm -B output from gcc object... ok
checking for sysroot... no
checking for a working dd... /bin/dd
checking how to truncate binary pipes... /bin/dd bs=4096 count=1
checking for mt... mt
checking if mt is a manifest tool... no
checking for dlfcn.h... yes
checking for objdir... .libs
checking if gcc supports -fno-rtti -fno-exceptions... no
checking for gcc option to produce PIC... -fPIC -DPIC
checking if gcc PIC flag -fPIC -DPIC works... yes
checking if gcc static flag -static works... yes
checking if gcc supports -c -o file.o... yes
checking if gcc supports -c -o file.o... (cached) yes
checking whether the gcc linker (/usr/bin/ld -m elf_x86_64) supports shared libraries... yes
checking whether -lc should be explicitly linked in... no
checking dynamic linker characteristics... GNU/Linux ld.so
checking how to hardcode library paths into programs... immediate
checking whether stripping libraries is possible... yes
checking if libtool supports shared libraries... yes
checking whether to build shared libraries... yes
checking whether to build static libraries... yes
checking how to run the C++ preprocessor... g++ -E
checking for ld used by g++... /usr/bin/ld -m elf_x86_64
checking if the linker (/usr/bin/ld -m elf_x86_64) is GNU ld... yes
checking whether the g++ linker (/usr/bin/ld -m elf_x86_64) supports shared libraries... yes
checking for g++ option to produce PIC... -fPIC -DPIC
checking if g++ PIC flag -fPIC -DPIC works... yes
checking if g++ static flag -static works... yes
checking if g++ supports -c -o file.o... yes
checking if g++ supports -c -o file.o... (cached) yes
checking whether the g++ linker (/usr/bin/ld -m elf_x86_64) supports shared libraries... yes
checking dynamic linker characteristics... (cached) GNU/Linux ld.so
checking how to hardcode library paths into programs... immediate
checking dependency style of gcc... gcc3
checking for pkg-config... /usr/bin/pkg-config
checking pkg-config is at least version 0.9.0... yes
checking for FOLLY... no
checking for python... /usr/bin/python
checking for python version... 2.7
checking for python platform... linux2
checking for python script directory... ${prefix}/lib/python2.7/dist-packages
checking for python extension module directory... ${exec_prefix}/lib/python2.7/dist-packages
checking for pcre-config... false
checking for PCRE using false... failed
checking for library containing pthread_create... -lpthread
checking for library containing socket... none required
checking for library containing SHA1_Init... -lcrypto
checking for sys/types.h... (cached) yes
checking for inttypes.h... (cached) yes
checking locale.h usability... yes
checking locale.h presence... yes
checking for locale.h... yes
checking port.h usability... no
checking port.h presence... no
checking for port.h... no
checking sys/inotify.h usability... yes
checking sys/inotify.h presence... yes
checking for sys/inotify.h... yes
checking sys/event.h usability... no
checking sys/event.h presence... no
checking for sys/event.h... no
checking sys/ucred.h usability... no
checking sys/ucred.h presence... no
checking for sys/ucred.h... no
checking sys/socket.h usability... yes
checking sys/socket.h presence... yes
checking for sys/socket.h... yes
checking for mkostemp... yes
checking for kqueue... no
checking for port_create... no
checking for inotify_init... yes
checking for strtoll... yes
checking for localeconv... yes
checking for statfs... yes
checking for accept4... yes
checking for inotify_init1... yes
checking for getattrlistbulk... no
checking for openat... yes
checking for fdopendir... yes
checking for pipe2... yes
checking for sys/vfs.h... yes
checking for sys/param.h... yes
checking for sys/mount.h... yes
checking for sys/statfs.h... yes
checking for sys/statvfs.h... yes
checking valgrind/valgrind.h usability... no
checking valgrind/valgrind.h presence... no
checking for valgrind/valgrind.h... no
checking execinfo.h usability... yes
checking execinfo.h presence... yes
checking for execinfo.h... yes
checking sys/resource.h usability... yes
checking sys/resource.h presence... yes
checking for sys/resource.h... yes
checking CoreServices/CoreServices.h usability... no
checking CoreServices/CoreServices.h presence... no
checking for CoreServices/CoreServices.h... no
checking for FSEventStreamSetExclusionPaths... no
checking for backtrace... yes
checking for backtrace_symbols... yes
checking for backtrace_symbols_fd... yes
checking for sys_siglist... yes
checking for memmem... yes
checking for struct statvfs.f_fstypename... no
checking for struct statvfs.f_basetype... no
checking that generated files are newer than configure... done
configure: creating ./config.status
config.status: creating Makefile
config.status: creating thirdparty/jansson/jansson_config.h
config.status: creating cppclient/watchmanclient.pc
config.status: creating config.h
config.status: config.h is unchanged
config.status: executing depfiles commands
config.status: executing libtool commands
Your build configuration:
CC = gcc
CPPFLAGS = -D_REENTRANT -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE
CFLAGS = -g -O2 -Wall -Wextra -Wdeclaration-after-statement -g -gdwarf-2 -fno-omit-frame-pointer
CXX = g++
CXXFLAGS = -g -O2 -Wall -Wextra -g -gdwarf-2 -fno-omit-frame-pointer
LDFLAGS =
prefix: /usr/local
version: 4.9.0
state directory: /usr/local/var/run/watchman
aupetrone@aupetrone-X580VD:~/watchman$ make
make all-am
make[1]: ingresso nella directory "/home/aupetrone/watchman"
CXX watchman-ChildProcess.o
CXX watchman-ContentHash.o
CXX watchman-CookieSync.o
CXX watchman-FileDescriptor.o
CXX watchman-FileInformation.o
CXX watchman-InMemoryView.o
CXX watchman-Pipe.o
CXX watchman-PubSub.o
CXX watchman-ThreadPool.o
CXX watchman-QueryableView.o
CXX watchman-spawn.o
CXX watchman-opt.o
CXX watchman-cfg.o
CXX watchman-clockspec.o
CXX watchman-checksock.o
CXX watchman-error_category.o
CXX watchman-fstype.o
CXX watchman-log.o
CXX watchman-ignore.o
CXX watchman-json.o
CXX watchman-bser.o
CXX watchman-expflags.o
CXX watchman-hash.o
CXX watchman-ioprio.o
CXX watchman-opendir.o
CXX watchman-pending.o
CXX watchman-perf.o
CXX watchman-stream.o
CXX watchman-stream_stdout.o
CXX watchman-stream_unix.o
CXX watchman-timedlock.o
CXX cmds/watchman-find.o
CXX cmds/watchman-info.o
CXX cmds/watchman-log.o
CXX cmds/watchman-query.o
CXX cmds/watchman-since.o
CXX cmds/watchman-reg.o
CXX cmds/watchman-state.o
CXX cmds/watchman-subscribe.o
CXX cmds/watchman-trigger.o
CXX cmds/watchman-watch.o
CXX cmds/watchman-debug.o
CXX query/watchman-base.o
CXX query/watchman-dirname.o
CXX query/watchman-parse.o
CXX query/watchman-eval.o
CXX query/watchman-glob.o
CXX query/watchman-intcompare.o
CXX query/watchman-type.o
CXX query/watchman-suffix.o
CXX query/watchman-match.o
CXX query/watchman-pcre.o
CXX query/watchman-name.o
CXX query/watchman-fieldlist.o
CXX query/watchman-since.o
CXX query/watchman-empty.o
CXX watcher/watchman-auto.o
CXX watcher/watchman-fsevents.o
CXX watcher/watchman-inotify.o
CXX watcher/watchman-kqueue.o
CXX watchman-launchd.o
CXX watchman-listener.o
CXX watchman-listener-user.o
CXX watchman-clientmode.o
CXX watchman-main.o
CXX root/watchman-ageout.o
CXX root/watchman-crawler.o
CXX root/watchman-dir.o
CXX root/watchman-file.o
CXX root/watchman-init.o
CXX root/watchman-iothread.o
CXX root/watchman-notifythread.o
CXX root/watchman-poison.o
CXX root/watchman-reap.o
CXX root/watchman-resolve.o
CXX root/watchman-stat.o
CXX root/watchman-symlink.o
CXX root/watchman-sync.o
CXX root/watchman-threading.o
CXX root/watchman-vcs.o
CXX root/watchman-warnerr.o
CXX root/watchman-watchlist.o
CXX scm/watchman-Mercurial.o
scm/Mercurial.cpp: In constructor ‘watchman::Mercurial::infoCache::infoCache(std::__cxx11::string)’:
scm/Mercurial.cpp:16:40: error: ‘void* memset(void*, int, size_t)’ clearing an object of non-trivial type ‘struct watchman::FileInformation’; use assignment or value-initialization instead [-Werror=class-memaccess]
memset(&dirstate, 0, sizeof(dirstate));
^
In file included from scm/Mercurial.h:10,
from scm/Mercurial.cpp:3:
./FileInformation.h:18:8: note: ‘struct watchman::FileInformation’ declared here
struct FileInformation {
^~~~~~~~~~~~~~~
cc1plus: all warnings being treated as errors
make[1]: *** [Makefile:4446: scm/watchman-Mercurial.o] Error 1
make[1]: uscita dalla directory "/home/aupetrone/watchman"
make: *** [Makefile:1264: all] Error 2
</code></pre>
| 0non-cybersec
| Stackexchange |
I built a Chrome extension that lets you easily format & download recipes from wordy food blogs.. I built MealClip to make it easier to browse recipe blogs. Sometimes it can be hard to find the actual ingredients and instructions, so this extension lets you find, format and save recipes on 90% of pages with recipes, even if they’re in obscure/odd formats. If you’re not happy with the format, you can click & edit the recipe before you save it.
[link](https://chrome.google.com/webstore/detail/mealclip/pclgcppjlhbccgpgflbijnhekejnbjmb?cs=cooking) to extension | 0non-cybersec
| Reddit |
How to setup Proximus mobile broadband?. <p>We've got mobile broadband from Proximus, but the software provided with it is for Windows and Mac only.</p>
<p>If I simply plug it in in an Ubuntu laptop, it brings up a wizard which helps you setting everything up. The mobile broadband provider is listed there. Only when I try to connect, it doesn't work. It just keeps trying to connect for a few minutes, but eventually fails.</p>
<p>I've tried entering the PIN and changing the DNS servers, but to no effect. What else can I try?</p>
| 0non-cybersec
| Stackexchange |
How to number all pages in fancyhdr. <p>I don't know why, but the following code numbers only the first page and I'd need all the pages to be numbered. Is there anybody that can help me out?</p>
<pre><code>\documentclass[10pt]{article}
\usepackage{fancyhdr,graphicx,times}
\renewcommand{\headrulewidth}{0pt}
\usepackage[top=2.5cm, bottom=2cm, left=2.5cm, right=2.5cm]{geometry}
\setcounter{secnumdepth}{0}
\cfoot{}
\lfoot{\thepage}
\fancypagestyle{plain}{
\fancyhead[R]{\includegraphics[width=8cm,height=2.1cm]{LogiMod.jpg}}% Right header
\fancyhead[L]{\textbf{Vernieuwingsimpuls}\\
\textbf{Innovational Research Incentives Scheme\\
Grant application form 2014} \\
\textit{Please refer to Explanatory Notes when completing this form}
}
}
\pagestyle{plain}
\author{}
\title{}
\date{}
\begin{document}
\maketitle
\section{Overview}
\newpage
\section{Second Section}
\newpage
\section{Third Section}
\end{document}
</code></pre>
| 0non-cybersec
| Stackexchange |
When It Comes To Health Care, There Are 2 Americas, And These Maps Are Proof. | 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 |
The epitome of r/Wellthatsucks. | 0non-cybersec
| Reddit |
CSS: height- fill out rest of div?. <p>i wonder if this is possible with simple css or if i have to use javascript for this?</p>
<p>i have a sidebar on my website. a simple div#sidbar it's normally about 1024px high, but the height changes dynamically due to it's content.</p>
<p>so let's imaginge the following case:</p>
<pre><code><div id="sidebar">
<div class="widget"></div> //has a height of 100px
<div class="widget"></div> //has a height of 100px
<div id="rest"></div> //this div should have the rest height till to the bottom of the sidebar
</div>
</code></pre>
<p>i want the div#rest to fill out the rest of the sidebar till it reaches the bottom of the div#sidebar.</p>
<p>is this possible with pure css?</p>
| 0non-cybersec
| Stackexchange |
Has anyone else seen this glitch?. | 0non-cybersec
| Reddit |
Cannot add snappy-dev/tools ppa repository. <p>I am using Deepin Linux 15.4.1 and I want to install the package snapcraft (to do that I need the "title's repository"), when I try to add the snappy-dev/tools repository with the command:</p>
<pre><code>sudo add-apt-repository ppa:snappy-dev/tools
</code></pre>
<p>but I get the error:</p>
<pre><code> Official PPA for the Snappy related tools.
More info: https://launchpad.net/~snappy-dev/+archive/ubuntu/tools
Press [ENTER] to continue or ctrl-c to cancel adding it
gpg: keybox '/tmp/tmp4dbu3qkt/pubring.gpg' created
gpg: /tmp/tmp4dbu3qkt/trustdb.gpg: trustdb created
gpg: key F1831DDAFC42E99D: public key "Launchpad PPA for Snappy Developers" imported
gpg: Total number processed: 1
gpg: imported: 1
gpg: no valid OpenPGP data found.
</code></pre>
<p>And when I try to add the repository by the second time I get:</p>
<p>Official PPA for the Snappy related tools.
More info: <a href="https://launchpad.net/~snappy-dev/+archive/ubuntu/tools" rel="nofollow noreferrer">https://launchpad.net/~snappy-dev/+archive/ubuntu/tools</a>
Press [ENTER] to continue or ctrl-c to cancel adding it</p>
<pre><code>gpg: keybox '/tmp/tmphwxyr_qo/pubring.gpg' created
gpg: /tmp/tmphwxyr_qo/trustdb.gpg: trustdb created
gpg: key F1831DDAFC42E99D: public key "Launchpad PPA for Snappy Developers" imported
gpg: Total number processed: 1
gpg: imported: 1
gpg: no valid OpenPGP data found.
Exception in thread Thread-1:
Traceback (most recent call last):
File "/usr/lib/python3.5/threading.py", line 914, in _bootstrap_inner
self.run()
File "/usr/lib/python3.5/threading.py", line 862, in run
self._target(*self._args, **self._kwargs)
File "/usr/lib/python3/dist-packages/softwareproperties/SoftwareProperties.py", line 688, in addkey_func
func(**kwargs)
File "/usr/lib/python3/dist-packages/softwareproperties/ppa.py", line 386, in add_key
return apsk.add_ppa_signing_key()
File "/usr/lib/python3/dist-packages/softwareproperties/ppa.py", line 273, in add_ppa_signing_key
cleanup(tmp_keyring_dir)
File "/usr/lib/python3/dist-packages/softwareproperties/ppa.py", line 234, in cleanup
shutil.rmtree(tmp_keyring_dir)
File "/usr/lib/python3.5/shutil.py", line 480, in rmtree
_rmtree_safe_fd(fd, path, onerror)
File "/usr/lib/python3.5/shutil.py", line 438, in _rmtree_safe_fd
onerror(os.unlink, fullname, sys.exc_info())
File "/usr/lib/python3.5/shutil.py", line 436, in _rmtree_safe_fd
os.unlink(name, dir_fd=topfd)
FileNotFoundError: [Errno 2] Arquivo ou diretório não encontrado: 'S.gpg-agent.extra'
</code></pre>
<p>I read lots of suggestions in the forums about this stuff but I didn't find any posts with the same error as mine.
I tried adding others repositories related to snap but I get the same error as I said in this post; how can I resolve this?</p>
| 0non-cybersec
| Stackexchange |
How should developer performance be measured?. <p>In many companies there is a formal procedure of reviewing employees' work. </p>
<p>For example, a salesperson can stay she'll sell one million units at the beginning of the year. When she comes up for review a year later, she says she's sold two million units. Thus, her manager decides to promote her.</p>
<p>But what should developer say? I'll fix a million bugs, I'll write a hundred unit tests? I can't imagine many things that can be measured here, especially If you don't have a roadmap for year and if you working on maintenance.</p>
<p>What types of solid performance metrics work for programmers?</p>
<p>Or are performance measurements not applicable for developers at all?</p>
| 0non-cybersec
| Stackexchange |
Why games should be played in VR. | 0non-cybersec
| Reddit |
I designed an Alolan-Sawsbuck. | 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 can I Set grub time off?. <p>I have Kubuntu 17.04 and some other operating system and whenever I want to choose between these OS, the grub have timer about 10s,and if I do not choose one, grub choose defult operating system, Now how can I set this timer off?</p>
| 0non-cybersec
| Stackexchange |
I think I'm way outta the loop on this one, but what does FTFY mean?. | 0non-cybersec
| Reddit |
ELI5: What is beneficial about feeling sad/annoyed from things without actual consequences(like say losing in a game)?. | 0non-cybersec
| Reddit |
Seller VS bad guys. | 0non-cybersec
| Reddit |
These comments are in a sequence. | 0non-cybersec
| Reddit |
Jessica Henwick Joins Netflix Original Series 'Marvel's Iron Fist'. | 0non-cybersec
| Reddit |
THE DEVILS CANDY Trailer (2017) Horror Movie. | 0non-cybersec
| Reddit |
How to restart glibc services without reboot?. <p>On the glibc issue, I realize have a serious issue with restarting ubuntu instances running on my network. It will interrupt lots of stuff for me and so I'm looking for an alternative.</p>
<p><a href="https://www.cyberciti.biz/faq/linux-patch-cve-2015-7547-glibc-getaddrinfo-stack-based-buffer-overflow/" rel="nofollow noreferrer">These instructions</a> are interesting because for CentOS they have a simple command that can restart glibc services without rebooting the system.</p>
<pre><code>sudo systemctl daemon-reexec
</code></pre>
<p>So, how could I achieve the same thing with Ubuntu if I don't want to have to reboot?</p>
| 0non-cybersec
| Stackexchange |
Formula for transpose matrix multiplication. <p>I ran by an exercise in my textbook that got me writing sheets of paper of matrix multiplications, and I got a lot of ($ij$ entry)$^2$, but that was not enough for me to construct a convincing argument for the exercise..</p>
<p>Anyone that can come up with a clearer solution, would be really appreciated!</p>
<p>thanks in advance </p>
<p><img src="https://i.stack.imgur.com/SFQG8.png" alt="enter image description here"></p>
| 0non-cybersec
| Stackexchange |
MySQL parent / child table not showing parent entries. <p>I have a table in which categories are listed, and each product can belong to a parent category or not. There is only one level of possible depth. </p>
<pre><code>CREATE TABLE `categories` (
`id` int(10) unsigned NOT NULL AUTO_INCREMENT,
`name` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
`parent` int(10) unsigned DEFAULT NULL,
PRIMARY KEY (`id`)
);
</code></pre>
<p>I then insert some records:</p>
<pre><code>INSERT INTO `categories` (`id`, `name`, `parent`) VALUES
(1, 'Cat 1', NULL),
(2, 'Cat 2', NULL),
(3, 'Cat 3', NULL),
(4, 'Subcat 2.1', 2),
(5, 'Subcat 2.2', 2);
</code></pre>
<p>Now I'd like to get a list that includes all the categories and subcategories, ordered by main category and with the subcategories underneath, like so:</p>
<pre><code>Cat 1
Cat 2
Subcat 2.1
Subcat 2.2
Cat 3
</code></pre>
<p>When I try the following it almost works, but it doesn't return the record for "Cat 2", only it children. </p>
<pre><code>SELECT e.name AS parent_name, e.id AS parent_id, r.id AS child_id, r.name AS child_name
FROM categories e
LEFT JOIN categories r ON e.id = r.parent
WHERE e.parent IS NULL
ORDER BY parent_name, child_name
</code></pre>
<p>Results:</p>
<pre><code>Cat 1 1 NULL NULL
Cat 2 2 4 Subcat 2.1
Cat 2 2 5 Subcat 2.2
Cat 3 3 NULL NULL
</code></pre>
<p>How can I make it return all 5 records including the "Cat 2" parent category? </p>
| 0non-cybersec
| Stackexchange |
Digitalism - Dynamo [electronic/dance] (2016). | 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 |
i had some liquid nitrogen left after a DNA extraction this is what i did with it. | 0non-cybersec
| Reddit |
Ubuntu and Windows 8 dualbooting. <p>I've downloaded and installed Ubuntu, but it won't boot it. It keeps booting into windows 8. I have been going through the advanced settings, shutdown/reboot thingy in Windows 8. I've disabled all the things in the BIOS that i should. I've run the Boot-Repair application but nothing helps!
Please help!</p>
| 0non-cybersec
| Stackexchange |
self service. | 0non-cybersec
| Reddit |
Similarity solutions of the imaginary time Benjamin--Ono equation. <p>This problem arose in the course of a theoretical physics project. We seek (complex) solutions of the imaginary time Benjamin--Ono equation</p>
<p><span class="math-container">$$u_t-iu u_x-iu_{H,xx}=0$$</span></p>
<p>where <span class="math-container">$u_H(x,t)$</span> denotes the Hilbert transform with respect to the spatial (<span class="math-container">$x$</span>) variable</p>
<p><span class="math-container">$$u_H(x,t)=\frac{\text{P}}{\pi}\int_{-\infty}^{\infty}\frac{u(y,t)}{x-y}dy.$$</span></p>
<p>In particular, we are interested in similarity solutions of the form</p>
<p><span class="math-container">$$u(x,t)=\frac{1}{\sqrt{t}}f\left(\frac{x}{\sqrt{t}}\right),$$</span></p>
<p>which gives rise to the equation</p>
<p><span class="math-container">$$z f(z)+if(z)^2+2if_{H}'(z)=\text{const.}$$</span></p>
<p>Without the Hilbert transform in the last term things would be straightforward from this point, as we would have a Riccati equation. The same would go for solutions analytic in the upper or lower half plane, for which <span class="math-container">$f_H(z)=\mp i f(z)$</span>. This would correspond to finding similarity solutions of the Burgers equation.</p>
<p>My question is: <strong>are there `non-trivial' similarity solutions?</strong> That is, solutions with <span class="math-container">$f(z)$</span> not analytic in the upper or lower half plane? </p>
<p>Any suggestions of how to proceed, and cope with the Hilbert transform, would be gratefully received!</p>
<p><strong>Update:</strong> This problem (in real time) is discussed at the end of Section 3.5 of the book <em>Bilinear Transformation Method</em> by Yoshimasa Matsuno, with the comment "The analytical solution ... has not yet been obtained, therefore the numerical method may be applied to it".</p>
<p><strong>Another update:</strong> Numerical solution is shown below, for the case of <span class="math-container">$\text{const.}=2i$</span>. Blue and green lines are the real and imaginary parts respectively. At time zero this solution becomes <span class="math-container">$2i/(x+i\delta)$</span>. Note that for <span class="math-container">$\text{const.}=-2i$</span>, the only solution I can find is the trivial one <span class="math-container">$f(z)=-2i/(x+i\delta)$</span>.</p>
<p><a href="https://i.stack.imgur.com/U4b3O.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/U4b3O.png" alt="alt text"></a><br>
<sub>(source: <a href="https://www.tcm.phy.cam.ac.uk/~al200/MOinstanton.png" rel="nofollow noreferrer">cam.ac.uk</a>)</sub> </p>
| 0non-cybersec
| Stackexchange |
log to stdout / stderr with Laravel 5.6 and php-fpm. <p>I want my laravel applications to run as well mannered 12 factor apps. Right now I'm struggling to get their to logs to and from <code>stdout</code> (<code>stderr</code> is also fine by me) under php-fpm. The php version is 7.2.1, the laravel version is 5.6.3.</p>
<p>I configured laravel to use the <code>single</code> driver to write to stdout:</p>
<pre><code><?php
return [
'default' => env('LOG_CHANNEL', 'stack'),
'channels' => [
'stack' => [
'driver' => 'stack',
'channels' => ['single'],
],
'single' => [
'driver' => 'single',
'path' => 'php://stdout',
'tap' => [App\Logging\UseJsonFormatter::class],
'level' => 'debug',
],
];
</code></pre>
<p>This works well with the test server, but fpm prefixes this with with dates and a warning: <code>[19-Feb-2018 09:43:41] WARNING: [pool www] child 12 said into stdout:</code> every ~1000 characters.
The problem seems to be known as <a href="https://bugs.php.net/bug.php?id=71880" rel="noreferrer">issue 71880 (prefix)</a> and <a href="https://bugs.php.net/bug.php?id=69031" rel="noreferrer">issue 69031 (truncation)</a>. A <a href="https://github.com/php/php-src/pull/2458" rel="noreferrer">Pull Request</a> saw last action in June / November last year. Does anybody have a workaround that doesn't chunk or truncate the log messages (I'm logging json objects, and I like them complete)?</p>
<p><a href="https://stackoverflow.com/questions/36134167/why-php-fpm-prefixes-a-warning-when-writing-to-stdout">Why PHP-FPM prefixes a warning when writing to stdout?</a> is related to this, but is still not solved either.</p>
<p>This is UseJsonFormatter.php if anyone is interested:</p>
<pre><code><?php
namespace App\Logging;
use Monolog\Formatter\JsonFormatter;
class UseJsonFormatter
{
/**
* Customize the given Monolog instance.
*
* @param \Monolog\Logger $monolog
* @return void
*/
public function __invoke($monolog)
{
$jsonFormatter = new JsonFormatter();
foreach ($monolog->getHandlers() as $handler) {
$handler->setFormatter($jsonFormatter);
}
}
}
</code></pre>
| 0non-cybersec
| Stackexchange |
Smooth sub-orbifolds in the language of stacks. <p>In most geometric categories, "monomorphism" is too general to describe useful notions of "embedding". This is the case e.g. <a href="https://mathoverflow.net/questions/19871/images-and-monomorphisms-of-schemes">for schemes</a>, complex manifolds, and differentiable manifolds.
So "embedding" needs some geometric input, not just abstract nonsense. </p>
<p>I was asking myself, for no particular reason, what is the correct notion of embedding in the case of differentiable orbifolds. I was expecting that, seeing an orbifold as a differentiable stack, it would be easy to cook up a natural definition by "lifting" it from the category of smooth manifolds. </p>
<p>Then google showed me <a href="https://arxiv.org/pdf/1406.3303.pdf" rel="nofollow noreferrer">this</a> paper, which uses the language of atlases, stating that there are "particular difficulties involving the notions of suborbifold and orbifold embedding", and "Unlike the case for manifolds, we also show that suborbifolds exist which are not the images of orbifold embeddings".</p>
<blockquote>
<p><strong>Q.1</strong> Is there an intrinsic (i.e. language of stacks, no charts) definition of (closed) embedding of differentiable orbifolds* that generalizes the corresponding notion for smooth manifolds, and subsumes some of the most general notions of closed embedding (and of closed sub-orbifold ** ) that are considered reasonable by the orbifold community?</p>
</blockquote>
<p><span class="math-container">$^{*}$</span> I'd like to consider not necessarily effective orbifolds, i.e. the "generic stabilizer" doesn't need to be trivial.</p>
<p><span class="math-container">$^{**}$</span> (since having a sub-thing that doesn't come from an embedding is ungodly).</p>
<hr>
<p>Naively (without having read the literature) I would try as follows.</p>
<p>As an analogy, to define "closed substack" of an algebraic stack you need
1) the definition of representable morphism of stacks
2) the fact that "closed embedding of schemes" is local on the target.</p>
<p>For a map <span class="math-container">$f:M\to N$</span> of differentiable manifolds TFAE:
1) <span class="math-container">$f(M)$</span> is a closed submanifold i.e. <span class="math-container">$f(M)$</span> is closed in <span class="math-container">$N$</span> and <span class="math-container">$N$</span> has an atlas adapted to the subset <span class="math-container">$f(M)$</span>.
2) <span class="math-container">$f$</span> is an injective immersion (immersion meaning injective differential) which is a homeomorphism onto its image.
3) <span class="math-container">$f$</span> is a proper injective immersion.</p>
<p>I think 3) is local on the target, so we could use this. </p>
<p>So we could define the map of differentiable orbifolds <span class="math-container">$f:X\to Y$</span> to be an embedding if it is representable and for every <span class="math-container">$S\to Y$</span>, with <span class="math-container">$S$</span> a manifold, the induced map <span class="math-container">$X\times_Y S\to S$</span> is an embedding of manifolds in the sense 3).</p>
<p>But wait... </p>
<p>The category of differentiable manifolds doesn't have all fiber products! So the above attempt doesn't even generalize embedding of manifolds. If I'm not mistaken, even an embedding of <em>manifolds</em> <span class="math-container">$X\to Y$</span> is not representable in general because the test map <span class="math-container">$S\to Y$</span> could be not transversal enough to <span class="math-container">$X$</span>. </p>
<p>So I'm lead to ask: </p>
<blockquote>
<p><strong>Q.2</strong> How to define representable morphisms of stacks when the base category doesn't have all the fiber products?</p>
</blockquote>
<p>For orbifolds, maybe:</p>
<p>a) define <span class="math-container">$U\to Y$</span>, with <span class="math-container">$U$</span> a manifold, to be a <em>submersion from a manifold</em> if, for every <span class="math-container">$S\to Y$</span> with <span class="math-container">$S$</span> a manifold, <span class="math-container">$S\times_Y U$</span> is a manifold and <span class="math-container">$S\times_Y U\to S$</span> is a submersion.</p>
<p>b) define <span class="math-container">$X\to Y$</span> <em>representable</em> if, for every submersion from a manifold <span class="math-container">$U\to Y$</span>, <span class="math-container">$U\times_Y X$</span> is a manifold.</p>
<p>c) define <span class="math-container">$f:X\to Y$</span>, with <span class="math-container">$X,Y$</span> orbifolds, to be an <em>embedding</em> if it is a proper injective immersion (once you have defined representability you have all local-on-the-target notions, and surjectivity can be defined essentially on points <span class="math-container">$X(\mathrm{pt})\to Y(\mathrm{pt})$</span>).</p>
<blockquote>
<p><strong>Q.3</strong> Does the above work? How does it compare with "orbifologists" definitions?</p>
</blockquote>
| 0non-cybersec
| Stackexchange |
Maximal mapping of a convex set to the unit disk. <p>EDIT: To make my question more precise i think we can narrow it down to this. Say you have a simple polygon that includes the origin, that is completely contained in the unit disk, we can 'blow up' (description by Patrick) the polygon until it completely covers the disk. This 'blowing up' map can explicitly be given by the <a href="http://en.wikipedia.org/wiki/Schwarz%E2%80%93Christoffel_mapping" rel="nofollow">Schwarz–Christoffel mapping</a> which is conformal. Now the similarity transform that scales (and maybe translates) the polygon so that it still is contained in the disk, but has maximal area, is trivially conformal. Can we somehow 'upgrade' the Schwarz–Christoffel map all the way to this similarity transform - maybe by intermediate maps that are all conformal and distort the lengths less but maybe fill less and less of the disk? </p>
<hr>
<p>I am looking for an algorithm/theorem that helps me with the following: Given a convex set in the plane, I want to map it to the unit disk so that the image (of the convex set) has maximal area. With 'map to the unit disk' I mean that the image of the convex set is completely contained in the unit disk. </p>
<p>I know that for example for the Riemann mapping theorem you want a biholomorphic map - so I guess that also means you fill the whole disk. Whereas here the whole disk doesn't need to be filled. Does the Riemann-mapping theorem imply there will always be such a map so that the image has area 1? I would then be interested in restricting the map maybe all the way down to a homogeneous Euclidean transform. I am specifically interested in the case where the convex set is what you get from the intersection of half-planes (convex polygon). If there is a conformal such mapping does it mean that the image is a scaled/rotated version of the polygon maybe?</p>
<p>Anyway I am interested in the gritty details of accomplishing such a mapping (or of a similar sort).</p>
| 0non-cybersec
| Stackexchange |
I can't connect with ssh after restarting. <p>I'm new in linux operative systems and I working with the ssh commands to connect with my personal server with Ubuntu.</p>
<p>I have a doubt. When I restart my Ubuntu server and I want try to connect with shh but always says "Cant connect with this network". Then I go physically to the server, connect a keyboard, introduce the user login, go to the terminal and restart de service ssh and then I can now connect with ssh..</p>
<p>The only that I did it's execute is this and works very well</p>
<pre><code>sudo service ssh restart
</code></pre>
<p>But I don't want to go always physically to the server and introduce the user, etc...</p>
<p>What I did for the moment? I created a script in /home/ that check if the service is running or not and then restat or start it. After, I went to</p>
<pre><code>sudo visudo
</code></pre>
<p>And add a line in the bottom </p>
<pre><code>userName ALL = NOPASSWD: /home/userName/script.sh
</code></pre>
<p>To prevent write the root password. And then, in the startup service I included this script. This works, the scripts was executed but I can't connect anyway via ssh.</p>
<p>Somebody help me?</p>
<p>Many thanks</p>
| 0non-cybersec
| Stackexchange |
[I ate] Beef brisket sandwich with taro chips, red cabbage, and roasted garlic horseradish aoili.. | 0non-cybersec
| Reddit |
Temple of the Dog - Hunger Strike. | 0non-cybersec
| Reddit |
[help] Albino deaf pit bull.. My wife had a Facebook friend who is trying to find a new home for a 6 month old albino deaf pit bull. While we have owned dogs in the past and are thinking about getting a dog again. We have never owned an albino or deaf dog before. What questions should I ask? Anything special I should be looking for? Any advise is welcome. We want whats best for the dog and would like to become this dogs forever home.
Edit: Dog does not appear to be albino. Credit to /user/mooglepoogle and /user/440_Hz
Edit2: So just a moment ago the lady who owns the dog said that her brother is getting him (the dog) instead of us. I feel that something fishy is going on but not sure what. Just some of the things being talked about. Facts not adding up and such. Anyway I truly want to thank each and everyone of you. I have learn quite a bit about deaf dogs, collars and piebald. In the future I will post a dog pic with whatever we end up with. | 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 |
I'm on jury duty for a very strange case.. [Part 2 is up now](https://www.reddit.com/r/nosleep/comments/5ff947/im_on_jury_duty_for_a_very_strange_case_part_2/)
**Let me first start by saying there will be no real names or locations given in this, because it would be illegal for me to do so.** It’s illegal to discuss a case you’re a juror on outside of the courtroom, much less post about it on a public internet forum. Now that that’s out of the way, let’s get to it.
I was called for jury duty, which began about two weeks ago. I went to the courthouse, had my interview conducted, and a few days later got a call saying I’d be seen selected. The trial started on Wednesday.
What's more, is that strange things have been happening not only to me, but to a few of the other jurors as well, since the trial started.
**The Case**
On trial is a man named John Willis. He is charged with the brutal murder of his wife and his sister. John is 32 years old, graduated from Penn State University, and moved to our city for a job as an environmental engineer.
This doesn't sound too strange when said out loud. But as they say, the devil is in the details. I can only describe the photos of the crime scene, as I obviously don't have copies of them myself.
*Crime scene photo #1*
The first photo is easily the most gruesome of the 3 they have printed large and on display. It depicts John’s sister, Erica. She is horribly battered and bloody. What stands out about the photo, though, is where she is. In a hallway of John Willis’ house, where the crimes took place, it looks as if someone tore out all the drywall from one wall. Then, the wood slats that make up the frame of the wall have all been snapped in two places: one at the tip, to give it a jagged edge, and once near the middle, bringing that jagged edge down 90 degrees. It's basically a spike wall. Erica is impaled on these broken slats about two feet off the floor; so high that her slumped over head would be hitting the ceiling if it were upright. It's incredibly disturbing to look at.
*Crime scene photo #2*
This photo depicts his late wife, Jessica. Kind of. What happened to Jessica might actually be worse than Erica, all things considered. Jessica’s body is folded up in a suitcase. A small suitcase. The kind that's about as big as you can have while still calling it a carry-on on a flight. From what I can tell, all of her bones had been broke away from the joints, meaning they were manually snapped in half with force. Her fingers, toes, arms, legs, ribs, everything was broken, without breaking the skin.
She was folded in such a way that the bottom of her mangled feet were flush with her ears, and her arms were bent backwards at the elbow, so her palms were flat on her shoulder blades underneath the rest of her body. It's absolutely sickening to look at.
*Crime scene photo #3*
The last display was actually more of an array. It showed the house in the condition it was in after the bodies had been removed. Evidence markers littered the floors and walls, but what was most evident was some kind of substance, I can't really describe it. It was like chalk dust, but black. Pure black. It was all over a bunch of the house. Inside and out. They haven't yet revealed to the court what it is.
The array of photos basically shows the bloody house, the hallway that was home to the closed doors of 2 bedrooms and a home office, an open and a closed bathroom, and two attic openings. Upon the revealing of this photo array, I distinctly remember John’s eyes getting wide with concern, and him whispering to his attorney.
*John Willis*
As I said, John Willis is a 32 year old male, a graduate from Pennsylvania State University, and an environmental engineer. He is a small man, I'd say about 5’8”, maybe 130 pounds. He doesn't look to me as anyone who has ever been accused of being intimidating.
He was born here, and went to Pennsylvania for school. He then move from Pennsylvania back to this area when he was 24 years old for his masters degree, and met his wife a very short time after. They married 8 months after meeting.
He had always been very close with his sister, especially after their father passed when he turned 20 (their mom passed away from cancer when they were young). The years following their deaths saw them grow much closer than ever before; he let Erica live with him and his wife for the first year of their marriage (by that point she was financially stable enough to get a place of her own again).
By all accounts, John seems like a relatively timid person. He had never been charged with a crime before this, and his only run ins with the law were two citations, one for parking and the other for speeding.
______
It started off like any other court case. Both the defense and the prosecution gave their opening statements, blah blah blah. Then, a complete overview of the events that led to the discovery of the bodies was presented.
*The night of the crime*
Around 8:30pm, John Willis called the police and informed them that his sister was dead and his wife was missing. They played the 9-1-1 call and in it, John sounded seriously distressed. The problem was, John said he was home the whole time, sitting in his home office, working. He didn't hear any kind of disturbance. He claims he got up to go to the bathroom and that’s when he found his sister impaled in the hallway.
Police showed up, and after clearing everyone out of the scene, the detectives went around the house looking for anything noteworthy, and came across a suitcase that was zipped up all the way except for a very small portion at the end of the zipper. Inside the suitcase, they found the grotesquely folded up body of Jessica Willis.
After finding no evidence of a break-in, and nothing pointing to an outside party being involved, they placed John under arrest.
_____
At this point, we were let out for the day. But that night, strange things began happening.
*First night*
I got to my house around 7:30 pm. As soon as I stepped foot out of my car, I felt a strange feeling, the ever so common scary story trope of “being watched”. I looked around but saw nothing. I went inside and was going to make some dinner when all of my lights flickered. After a few seconds of flickering, they all went out. But even the light from outside went away. It was as if I had gone blind. I fumbled around, trying to find my phone to call 9-1-1, as I thought something was wrong with me.
Suddenly, light flooded into my eyes. It was almost blinding in the reverse way as I had just been. When my eyes adjusted, everything was normal again. The only thing different about my house was that there was black chalk dust all over my dining room table.
______
I went back to the courthouse the next day, and on a few of the other jurors, there were looks of fear and confusion. There was a woman there, Jackie, who looked particularly disheveled. I asked her if she was okay, and she told me what had happened to her the night before.
*Jackie’s first night*
Jackie was in bed, almost asleep, when she heard her bedroom door creak open. Assuming it was her cat, she ignored the sound. Then she heard it creak closed. She shot up in bed and peered over at her door. She felt that something was in her room with her, but couldn’t see anything. Her cat wasn’t in her room, and she lives alone. Then she heard breathing. Deep, guttural breathing, but like it was attempting to mask its sound. She was curled up in her bed, more afraid than she’d ever been.
She felt the covers get tugged down from the foot of her bed. She closed her eyes and prepared for the worst. She said that after what seemed like an eternity, she heard her door creak open again. She opened her eyes and the feeling of company was gone. Her covers were pulled almost to the end of her bed. She stayed awake, sitting up in bed until morning. When she got up, she saw on her doorknob that there was a “black dust similar to the the stuff in the crime scene photos”.
_____
Court that day was postponed until Monday for reasons unbeknownst to us. Nothing has happened to me today so far, but it’s getting dark now, so we’ll see. I’ll report more after court on Monday.
[Part 2](https://www.reddit.com/r/nosleep/comments/5ff947/im_on_jury_duty_for_a_very_strange_case_part_2/) | 0non-cybersec
| Reddit |
Oh I like her.. | 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 |
Install Sailfish OS on Lenovo Yoga 13. <p>I have two SSDs in my Lenovo Yoga 13 and would like to install Sailfish OS by Jollaon the second SSD next to Windows 8.1.</p>
<p>Is there an x86 installer image?</p>
| 0non-cybersec
| Stackexchange |
Distribute n questions to m students with all students having the same questions but in different orders. <p>I am building an online exam platform with PHP and MySQL. I have the following requirements for the database:</p>
<ul>
<li>The exam questions are of MCQ type and there are 20 questions. </li>
<li>There are 30 students taking the test. </li>
</ul>
<p>Is there a way I can have these 30 students receive the 20 questions but in different orders? E.g. that question 1 for Student A would be the question 16 for Student B?</p>
| 0non-cybersec
| Stackexchange |
How to use spot instance with amazon elastic beanstalk?. <p>I have one infra that use amazon elastic beanstalk to deploy my application.
I need to scale my app adding some spot instances that EB do not support.</p>
<p>So I create a second autoscaling from a launch configuration with spot instances.
The autoscaling use the same load balancer created by beanstalk.</p>
<p>To up instances with the last version of my app, I copy the user data from the original launch configuration (created with beanstalk) to the launch configuration with spot instances (created by me).</p>
<p>This work fine, but:</p>
<ol>
<li><p>how to update spot instances that have come up from the second autoscaling when the beanstalk update instances managed by him with a new version of the app?</p>
</li>
<li><p>is there another way so easy as, and elegant, to use spot instances and enjoy the benefits of beanstalk?</p>
</li>
</ol>
<p><strong>UPDATE</strong></p>
<p>Elastic Beanstalk add support to spot instance since 2019... see:
<a href="https://docs.aws.amazon.com/elasticbeanstalk/latest/relnotes/release-2019-11-25-spot.html" rel="nofollow noreferrer">https://docs.aws.amazon.com/elasticbeanstalk/latest/relnotes/release-2019-11-25-spot.html</a></p>
| 0non-cybersec
| Stackexchange |
Calculating individual orders in this Probability question. <p>I have a probability question to solve:</p>
<p>Question: Three different orders are to be mailed to three suppliers. However, an absent minded secretary gets the orders mixed up and sends them randomly. If a match refers to the fact that a suppliers receives the correct order, find the probability of the event that no matches occur.</p>
<p>Solution given:</p>
<pre><code>P(no matches) = 1 - P(at least one match)
P(at least one match) = P(first match)+ P(second match) + P(third match) - P(first match and second match) - P(first match and third match) - P(second match and third match) + P(first match and second match and third match)
P(at least one match) = (2!/3! * 3) -(1!/3! *3) +(1!/3!)
P(no match) = 1 - P(at least one match)
</code></pre>
<p>My question is why the Probability for each match is 2!/3!. Not sure how to get it. Need some guidance</p>
| 0non-cybersec
| Stackexchange |
Critical damage. | 0non-cybersec
| Reddit |
Hear what Barack Obama said in 2014 about pandemics. | 0non-cybersec
| Reddit |
My dad thinks he's pretty clever. | 0non-cybersec
| Reddit |
How to listen to basic events in CKEditor?. <p>I can't figure out how to listen to focus, click, onKeyUp and other basic dom events in ckeditor. In the <a href="http://docs.cksource.com/ckeditor_api/symbols/CKEDITOR.html" rel="noreferrer">events summary</a> there is only a few events regarding the lifecycle of ckeditor. And the "textArea" of ckeditor is an iframe, and it's html itself, so it is not clear on what dom node to listen. </p>
| 0non-cybersec
| Stackexchange |
Limit number of std::string allocations. <p>I have a function that constructs a <code>std::string</code> from a <code>const char*</code> with two numbers, passed as parameters, appended to the end of it.</p>
<pre><code>std::string makeName(const char* name, uint16_t num1, uint16_t num2) {
std::string new_name(name);
new_name.reserve(new_name.length()+5);
new_name += ":";
new_name += boost::lexical_cast<std::string>(num1);
new_name += ":";
new_name += boost::lexical_cast<std::string>(num2);
return new_name;
}
</code></pre>
<p>This function gets called thousands of times to create unique names for small objects allocated on the heap.</p>
<pre><code>Object* object1= new Object(makeName("Object", i, j)); // i and j are simply loop indices
</code></pre>
<p>I have discovered using valgrind's massif tool that the calls to makeName allocates a lot of memory since it gets called so many times. </p>
<pre><code>87.96% (1,628,746,377B) (heap allocation functions) malloc/new/new[], --alloc-fns, etc.
->29.61% (548,226,178B) 0xAE383B7: std::string::_Rep::_S_create(unsigned long, unsigned long, std::allocator<char> const&) (in /usr/lib/x86_64-linux-gnu/libstdc++.so.6.0.19)
| ->26.39% (488,635,166B) 0xAE38F79: std::string::_Rep::_M_clone(std::allocator<char> const&, unsigned long) (in /usr/lib/x86_64-linux-gnu/libstdc++.so.6.0.19)
| | ->26.39% (488,633,246B) 0xAE39012: std::string::reserve(unsigned long) (in /usr/lib/x86_64-linux-gnu/libstdc++.so.6.0.19)
| | | ->15.51% (287,292,096B) 0x119A80FD: makeName(char const*, unsigned short, unsigned short) (Object.cpp:110)
| | | | ->15.51% (287,292,096B) in 42 places, all below massif's threshold (01.00%)
</code></pre>
<p>My question is, how can I minimize these allocations to help reduce the overall total amount of memory my program uses?</p>
<p><strong>EDIT:</strong>
I also want to note that as a program requirement I cannot use c++11 features.</p>
| 0non-cybersec
| Stackexchange |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.