text
stringlengths 3
1.74M
| label
class label 2
classes | source
stringclasses 3
values |
---|---|---|
Attack on Titan made its broadcast debut with a rating of 1.341 million viewers tuning in on Adult Swim's Toonami block.. | 0non-cybersec
| Reddit |
Fibonacci Calculation using a larger matrix. <p>So the formula to generate the fibonacci sequence in matrix form is:
$$
\begin{pmatrix}
1 & 1 \\
1 & 0 \\
\end{pmatrix}^n =
\begin{pmatrix}
F_{n+1} & F_n \\
F_n & F_{n-1} \\
\end{pmatrix}
$$</p>
<p>So, is there a way to generalize it to a larger matrix, a 4x4 for example?</p>
| 0non-cybersec
| Stackexchange |
Is there a cross browser event for activate in the browser?. <p>Is there a cross browser event that can be used to show a message to the user returning to their web page? </p>
<p>For example, a user has ten applications or tabs open. They get a new notification from our app and I show a notification box. When they switch to our tab I want to begin our notification animation. </p>
<p>The activate event is common on desktop applications but so far, on the <code>window</code>, <code>document</code> and <code>body</code>, neither the <code>"activate"</code> or <code>"DOMActivate"</code> do anything when swapping between applications or tabs but the <code>"focus"</code> and <code>"blur"</code> do. This event works but the naming is different and the events that <em>should</em> be doing this are not. </p>
<p>So is the right event to use cross browser or is there another event?</p>
<p>You can test by adding this in the console or page and then swapping between applications or tabs: </p>
<pre><code>window.addEventListener("focus", function(e) {console.log("focused at " + performance.now()) } )
window.addEventListener("blur", function(e) {console.log("blurred at " + performance.now()) } )
</code></pre>
<p><strong>Update:</strong><br>
In the link to <a href="https://stackoverflow.com/questions/1060008">the possible duplicate</a> is a link to the W3 Page Visibility doc <a href="https://www.w3.org/TR/page-visibility/#sec-visibilitychange-event" rel="nofollow noreferrer">here</a>. </p>
<p>It says to use the <code>visibilitychange</code> event to check when the page is visible or hidden like so: </p>
<pre><code>document.addEventListener('visibilitychange', handleVisibilityChange, false);
</code></pre>
<p>But there are issues: </p>
<blockquote>
<p>The Document of the top level browsing context can be in one of the
following visibility states:</p>
<p>hidden
The Document is not visible at all on any screen. visible
The Document is at least partially visible on at least one screen. This is the same condition under which the hidden attribute is set to
false.</p>
</blockquote>
<p>So it explains why it's not firing when switching apps. But even when switching apps and the window is completely hidden the event does not trigger (in Firefox). </p>
<p>So at the end of the page is this note: </p>
<blockquote>
<p>The Page Visibility API enables developers to know when a Document is
visible or in focus. Existing mechanisms, such as the focus and blur
events, when attached to the Window object already provide a mechanism
to detect when the Document is the active document.</p>
</blockquote>
<p>So it would seem to suggest that it's accepted practice to use focus and blur to detect window activation or app switching. </p>
<p>I found this <a href="https://stackoverflow.com/a/38710376/441016">answer</a> that is close to what would be needed to make a cross browser solution but needs focus and blur (at least for Firefox). </p>
<p><strong>Observation:</strong><br>
StackOverflow has a policy against mentioning frameworks or libraries. The answers linked here have upvotes for the "best" answer. </p>
<p>But these can grow outdated. Since yesterday I found mention of two frameworks (polyfills) that attempt to solve this same problem <a href="https://www.sitepoint.com/introduction-to-page-visibility-api/" rel="nofollow noreferrer">here</a> for visibly and isVis (not creating a link). If this is a question and answer site and a valid answer is, "here is some code that works for me" but "Here is the library I created using the same code that can be kept up to date and maintained on github" is not valid then in my opinion it's missing it's goal. </p>
<p>I know above should probably go to meta and I have but they resist changing the status quo for some reason. Mentioning it here since it's a relevant example. </p>
| 0non-cybersec
| Stackexchange |
PSTricks: Remove trailing zeros in axis labels. <p>Consider the following example:</p>
<pre><code>\documentclass{article}
\usepackage{pst-plot}
\begin{document}
\psset{xunit = 2}
\begin{pspicture}(3,1)
\psaxes[Dx = 0.5]{->}(3,1)
\end{pspicture}
\end{document}
</code></pre>
<p><img src="https://i.stack.imgur.com/43anZ.jpg" alt="output"></p>
<p>Is it possible to get <code>1</code> and <code>2</code> instead of <code>1.0</code> and <code>2.0</code> (as with <code>0</code>) as axis labels?</p>
<p><strong>Update</strong></p>
<p>I've also asked this question on <a href="http://latex-community.org/forum/viewtopic.php?t=24334" rel="nofollow noreferrer">LaTeX Community</a> (and now added <a href="https://tex.stackexchange.com/a/153663/15874">Marco's answer</a>).</p>
| 0non-cybersec
| Stackexchange |
This is how you herd ducks. | 0non-cybersec
| Reddit |
Integrating Clang Within NetBeans?. <p>What are the steps involved in integrating Clang within NetBeans? I would like to also see the Clang error and warning messages from within NetBeans. This will be used mainly for developing in C.</p>
| 0non-cybersec
| Stackexchange |
Can some please explain to me how computer programming works?. I've taken a computer science class before. I made it through and was able to make very basic applications. However, I have no idea why they worked. Games, websites, operating systems, etc. I just have no idea why seemingly random (to me, at least) lines of code are able to make computers run all types of programs and do pretty much whatever you want it to. | 0non-cybersec
| Reddit |
Linux Kubuntu booting into dead screen on exactly every second boot. <p>I hope you can help me. I tied a few solutions to similar problems, but none seemed to have worked for me.</p>
<p>My set-up:</p>
<ul>
<li><strong>OS</strong>: Linux Kubuntu 19.10</li>
<li><strong>MB</strong>: ASUS PRIME B350-PLUS</li>
<li><strong>CPU</strong>: AMD Ryzen 3 1300X</li>
<li><strong>GPU</strong>: ATI Radeon HD 5450 (Dual Monitors, 2 x DVI 1920x1080)</li>
<li><strong>RAM</strong>: 2x4GiB DDR4</li>
<li><strong>SSD</strong>: Boot drive is a Western Digital M.2 SSD</li>
</ul>
<p>This setup worked flawlessly until 2 weeks ago. I updated my BIOS around that time. After that the problems kept coming. The problem manifests itself as follows:</p>
<p><strong>Boot number 1:</strong></p>
<ol>
<li>BIOS information is showing</li>
<li>GRUB comes up, I select Kubuntu and hit enter</li>
<li>The screen turns black, the keyboard and mouse turn off (backlight and mouse light)</li>
<li>The 2 monitors go into power-saving mode, usb devices turn back on</li>
<li>Nothing happens, HDD_LED stays on permanently</li>
</ol>
<p>Then I press the reset button after a few minutes.</p>
<p><strong>Boot number 2:</strong></p>
<ol>
<li>BIOS information is showing</li>
<li>GRUB comes up, I select Kubuntu and hit enter</li>
<li>The screen turns black, the keyboard and mouse turn off (backlight and mouse light)</li>
<li>usb devices turn back on</li>
<li>Login screen appears</li>
</ol>
<p>Note that the screens never go into power saving mode. There is no splash screen as I turned that off with nosplash.</p>
<p>I tried booting with nomodeset. This seems to work every time so far. But that cannot be the permanent solution to my problem, since that mode lacks the necessary support for two screens with that resolution.</p>
<p>What I would like to know is, do you know any solution for this problem? And is there a way to read the boot messages from the previous boot? Maybe they can tell me more.</p>
<hr>
<p><strong>UPDATE</strong></p>
<p>I finally managed to get dmesg of a failed boot (I waited on a failed boot for several minutes, to ensure that dmesg is written to /var/log/dmesg, then after the next successful boot, I found the log in /var/log/dmesg.0). This caught my eye:</p>
<pre><code>[ 22.864019] kernel: [drm:atom_op_jump [radeon]] *ERROR* atombios stuck in loop for more than 5secs aborting
[ 22.864030] kernel: [drm:atom_execute_table_locked [radeon]] *ERROR* atombios stuck executing C79C (len 62, WS 0, PS 0) @ 0xC7B8
[ 27.868014] kernel: [drm:atom_op_jump [radeon]] *ERROR* atombios stuck in loop for more than 5secs aborting
[ 27.868024] kernel: [drm:atom_execute_table_locked [radeon]] *ERROR* atombios stuck executing C79C (len 62, WS 0, PS 0) @ 0xC7B8
[ 27.868032] kernel: [drm:atom_execute_table_locked [radeon]] *ERROR* atombios stuck executing BE9E (len 821, WS 0, PS 0) @ 0xBEFB
[ 32.872012] kernel: [drm:atom_op_jump [radeon]] *ERROR* atombios stuck in loop for more than 5secs aborting
[ 32.872021] kernel: [drm:atom_execute_table_locked [radeon]] *ERROR* atombios stuck executing CB6C (len 72, WS 0, PS 0) @ 0xCB9B
[ 37.876016] kernel: [drm:atom_op_jump [radeon]] *ERROR* atombios stuck in loop for more than 5secs aborting
[ 37.876025] kernel: [drm:atom_execute_table_locked [radeon]] *ERROR* atombios stuck executing C79C (len 62, WS 0, PS 0) @ 0xC7B8
[ 42.880011] kernel: [drm:atom_op_jump [radeon]] *ERROR* atombios stuck in loop for more than 5secs aborting
[ 42.880020] kernel: [drm:atom_execute_table_locked [radeon]] *ERROR* atombios stuck executing C79C (len 62, WS 0, PS 0) @ 0xC7B8
[ 47.884011] kernel: [drm:atom_op_jump [radeon]] *ERROR* atombios stuck in loop for more than 5secs aborting
[ 47.884020] kernel: [drm:atom_execute_table_locked [radeon]] *ERROR* atombios stuck executing C79C (len 62, WS 0, PS 0) @ 0xC7B8
[ 52.888015] kernel: [drm:atom_op_jump [radeon]] *ERROR* atombios stuck in loop for more than 5secs aborting
[ 52.888024] kernel: [drm:atom_execute_table_locked [radeon]] *ERROR* atombios stuck executing C79C (len 62, WS 0, PS 0) @ 0xC7B8
[ 52.888095] kernel: [drm:cypress_dpm_set_power_state [radeon]] *ERROR* rv770_restrict_performance_levels_before_switch failed
[ 57.892010] kernel: [drm:atom_op_jump [radeon]] *ERROR* atombios stuck in loop for more than 5secs aborting
[ 57.892019] kernel: [drm:atom_execute_table_locked [radeon]] *ERROR* atombios stuck executing C79C (len 62, WS 0, PS 0) @ 0xC7B8
[ 57.892028] kernel: [drm:atom_execute_table_locked [radeon]] *ERROR* atombios stuck executing BE9E (len 821, WS 0, PS 0) @ 0xBEFB
[ 62.896010] kernel: [drm:atom_op_jump [radeon]] *ERROR* atombios stuck in loop for more than 5secs aborting
[ 62.896019] kernel: [drm:atom_execute_table_locked [radeon]] *ERROR* atombios stuck executing CB6C (len 72, WS 0, PS 0) @ 0xCB9B
[ 67.900011] kernel: [drm:atom_op_jump [radeon]] *ERROR* atombios stuck in loop for more than 5secs aborting
[ 67.900020] kernel: [drm:atom_execute_table_locked [radeon]] *ERROR* atombios stuck executing C79C (len 62, WS 0, PS 0) @ 0xC7B8
[ 72.904010] kernel: [drm:atom_op_jump [radeon]] *ERROR* atombios stuck in loop for more than 5secs aborting
[ 72.904018] kernel: [drm:atom_execute_table_locked [radeon]] *ERROR* atombios stuck executing C79C (len 62, WS 0, PS 0) @ 0xC7B8
[ 77.908011] kernel: [drm:atom_op_jump [radeon]] *ERROR* atombios stuck in loop for more than 5secs aborting
[ 77.908020] kernel: [drm:atom_execute_table_locked [radeon]] *ERROR* atombios stuck executing C79C (len 62, WS 0, PS 0) @ 0xC7B8
[ 82.912010] kernel: [drm:atom_op_jump [radeon]] *ERROR* atombios stuck in loop for more than 5secs aborting
[ 82.912018] kernel: [drm:atom_execute_table_locked [radeon]] *ERROR* atombios stuck executing C79C (len 62, WS 0, PS 0) @ 0xC7B8
[ 87.916009] kernel: [drm:atom_op_jump [radeon]] *ERROR* atombios stuck in loop for more than 5secs aborting
[ 87.916018] kernel: [drm:atom_execute_table_locked [radeon]] *ERROR* atombios stuck executing C79C (len 62, WS 0, PS 0) @ 0xC7B8
[ 92.920008] kernel: [drm:atom_op_jump [radeon]] *ERROR* atombios stuck in loop for more than 5secs aborting
[ 92.920017] kernel: [drm:atom_execute_table_locked [radeon]] *ERROR* atombios stuck executing C79C (len 62, WS 0, PS 0) @ 0xC7B8
[ 93.142085] kernel: EXT4-fs (nvme0n1p2): mounted filesystem with ordered data mode. Opts: (null)
</code></pre>
<p>This must be the problem. But only on some boots. Now I need to find out how to fix it.</p>
<hr>
<p><strong>UPDATE</strong></p>
<p>I remembered that I updated my BIOS a few weeks before I noticed the problems. Within these few intermittend weeks I barely used the computer, so maybe the problem was already there, I just did not see it.</p>
<p>I was running "Version 5220 2019/09/24". So I reverted back to "Version 5216 2019/09/09". I did so by putting the .CAP file on a stick and "upgrading" the BIOS from within the BIOS menu. This took some time, but worked.</p>
<p>After that I just booted and had no problem since. So maybe the last BIOS update was the problem. The changes for that version contain (according to ASUS):</p>
<ol>
<li>Update AGESA 1.0.0.3ABBA to improve system performance.</li>
<li>Removes Gen 4 support when using Ryzen 3000 CPUs.</li>
</ol>
<p>Maybe one of these things broke Linux? Windows had no problem.
BTW: If you have a similar problem with Linux sporadically not booting on this motherboard try "iommu=soft" as a parameter in the boot item for linux in GRUB.</p>
| 0non-cybersec
| Stackexchange |
Asking For Free Robux on ROBLOX's Post.. | 0non-cybersec
| Reddit |
why do these inequalities hold?. <p>I don't get it why the parts I circled in red hold </p>
<p>I know that both $A_k$ and $\mathcal{I} - A_k$ are positive but I don't think that information let us conclude directly what's in the red boxes. </p>
<p>can someone please give more details why those inequalities hold ?</p>
<p>by the way a positive operator is an operator whose associated quadratic form is positive definite and in addition to that is self adjoint.</p>
<p><a href="https://i.stack.imgur.com/pQlrj.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/pQlrj.png" alt="enter image description here"></a></p>
| 0non-cybersec
| Stackexchange |
Disable volume-change sound. <p>I'm using Debian Wheezy with Gnome 3 and I'd like to disable the "bip" sound made when pressing the volume +/- keys. Audio programs that are running currently (I have no clue which program exactly controls this function) are:</p>
<p>gvfs-gdu-volume-monitor
gvfs-afc-volume-monitor
hd-audio0
pulseaudio</p>
| 0non-cybersec
| Stackexchange |
Fix bash script expecting path input with / at the end breaking when path doesn't end with /. <p>I have this code : </p>
<pre><code>for file in "$@"*png; do
echo "$file"
done
</code></pre>
<p>It works only if you provide a path that ends with / like <code>/root/</code>. </p>
<p>What would be the correct way to add / to the path input, in situations like this, without breaking my script? </p>
<p>If you give a path input without / at the end, it just does this : </p>
<pre><code>File: /root*png
</code></pre>
<p>If I modify it to be <code>for file in "$@"/*png; do</code> and input <code>/root/test/</code> it works but the result looks ugly : </p>
<pre><code>File: /root/test//sample2.png
</code></pre>
| 0non-cybersec
| Stackexchange |
What the hell happened here?. /u/PhilosophyOfTheWorld asked why the Reddit logo on the front page was "My Little Pony" for a particular day and the rest are deleted comments.
http://i.imgur.com/BRS7b3j.png | 0non-cybersec
| Reddit |
Missing artifact com.sun:tools:jar. <p>I've been following the getting started tutorial, but am stuck after I imported the playn project using Maven. I am using Eclipse Indigo running on 64bit Windows 7.</p>
<p>All the imported projects have the same error:</p>
<pre><code>Missing Artifact com.sun:tools:jar in all the pom.xml files.
</code></pre>
<p>After a couple hours of searching forums I have tried:</p>
<p>Installing the latest Java 1.6.029
Changing my <code>JAVA_HOME</code> environment variable to point to <code>\program files\Java\jdk1.6_029</code>
Changing my Eclipse Java preferences to use the JRE <code>jdk1.6_029</code>.</p>
<p>I would really like to experiment with playn, but why there are a few posts I can't seem to find a consenus answer on the solution. Some people say Sun removed something from the 64bit jdk, others say you must edit your xml files, many people have said you have change your <code>JAVA_HOME</code>, and another said you have to change your VM options for Eclipse.</p>
<p>Any help on clearing this up would be appreciated, and possibly useful for many, since I do not have a particularly odd setup here.</p>
<p>(edit)
Here is the pom.xml in the first project. Eclipse flags error in the line which says:</p>
<pre class="lang-xml prettyprint-override"><code><project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
<modelVersion>4.0.0</modelVersion>
<parent>
<groupId>com.googlecode.playn</groupId>
<artifactId>playn-project</artifactId>
<version>1.1-SNAPSHOT</version>
</parent>
<artifactId>playn-android</artifactId>
<name>PlayN Android</name>
<packaging>jar</packaging>
<repositories>
</repositories>
<dependencies>
<dependency>
<groupId>com.googlecode.playn</groupId>
<artifactId>playn-core</artifactId>
<version>${project.version}</version>
</dependency>
<!-- needed because Android uses the same JSON code as playn-java;
that should be factored into a library shared by both backends -->
<dependency>
<groupId>com.googlecode.playn</groupId>
<artifactId>playn-java</artifactId>
<version>${project.version}</version>
</dependency>
<dependency>
<groupId>com.google.android</groupId>
<artifactId>android</artifactId>
<version>${android.version}</version>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>junit</groupId>
<artifactId>junit</artifactId>
<version>4.8.1</version>
<scope>test</scope>
</dependency>
</dependencies>
<build>
<sourceDirectory>src</sourceDirectory>
</build>
</project>
</code></pre>
| 0non-cybersec
| Stackexchange |
Decrease space between normal text and the footnote. <p>I use approximately this code:</p>
<pre><code>\documentclass[a5paper,12pt,twoside]{book}
\usepackage[inner=2.5cm,outer=1.8cm,top=0.8in,bottom=1.in]{geometry}
\fancypagestyle{standard_intro}{%
\renewcommand{\headrulewidth}{0.5pt}
\fancyhead[LE]{}
\fancyhead[RE]{\scriptsize\textbf{\RUNTITLE}\\\ Introduction}
\fancyhead[RO]{\scriptsize\textbf{\RUNTITLE}\\\ Introduction}
\fancyhead[LO]{}
% \vspace{-1cm}
\fancyfoot[CE,CO]{\footnotesize $-\;$\thepage $\;-$ }
\singlespacing
}
</code></pre>
<p>For my taste the spacing between the text and footnote, which is the page number is too large. How can I decrease it? The vspace at the position I indicated did not work.
I hope you can already work with this less than minimal example.</p>
<p>Thx a lot
Paul</p>
| 0non-cybersec
| Stackexchange |
An ordinal number which satisfies $\omega^{\alpha} = \alpha$. <p>Is there an ordinal such that $\omega^{\alpha} = \alpha$? It seems to me there should be, but I can't explicitly point it out. I know it is possible to prove $\alpha\leq\omega^{\alpha}$, but the equality? Could you give me a helping hand?</p>
| 0non-cybersec
| Stackexchange |
aiohttp - exception ignored message. <p>I'm running the following code which makes 5 requests via aiohttp:</p>
<pre><code>import aiohttp
import asyncio
def fetch_page(url, idx):
try:
url = 'http://google.com'
response = yield from aiohttp.request('GET', url)
print(response.status)
except Exception as e:
print(e)
def main():
try:
url = 'http://google.com'
urls = [url] * 5
coros = []
for idx, url in enumerate(urls):
coros.append(asyncio.Task(fetch_page(url, idx)))
yield from asyncio.gather(*coros)
except Exception as e:
print(e)
if __name__ == '__main__':
try:
loop = asyncio.get_event_loop()
loop.run_until_complete(main())
except Exception as e:
print(e)
</code></pre>
<p>Output:</p>
<pre><code>200
200
200
200
200
Exception ignored in: Exception ignored in: Exception ignored in: Exception ignored in: Exception ignored in:
</code></pre>
<p>Note: There is no additional information as to what/where the exception is.</p>
<p>What's causing this and are there any tips to debug it?</p>
| 0non-cybersec
| Stackexchange |
Cybersecurity Act expected to fail - The Hill's Hillicon Valley. | 0non-cybersec
| Reddit |
"Stylish" browser extension steals all your internet history. | 1cybersec
| Reddit |
Why is $A \leq_T \bar{A}$?. <p>I know there's some easy proof for this, but why is $A \leq_T \bar{A}$ ? ... Suppose that $\bar{A}$ is c.e. and could loop, does this mean that the oracle $TM$ $M^{\bar{A}}$ could also loop? </p>
<p>But shouldn't $\leq_T$ mean that $M^{\bar{A}}$ be decidable?</p>
| 0non-cybersec
| Stackexchange |
Test port reachability from a remote host even though the port is not bound to a service?. <p>I need to check whether a remote host is able to reach a specific port. At the time of test the service bound to that port will be down. </p>
<p>The possible issues that the test would address would be :</p>
<ul>
<li>The network allows the remote host to reach the port.</li>
<li>The firewall on the host ( receiver ) allows the remote host to connect to that port.</li>
</ul>
<p>I've tried telnet. However telnet returns non-zero exit code if a service is not bound to that port.
What could be the possible options?</p>
<p><strong>UPDATE</strong> :</p>
<p>Can't we have an nmap way to do this? Any output with the filtered state should mean a red flag.</p>
<p>Sample command:
$ nmap -v 120.114.24.56 -P0 -p 8080</p>
<p>Ref: <a href="http://nmap.org/book/man-port-scanning-basics.html" rel="nofollow noreferrer">http://nmap.org/book/man-port-scanning-basics.html</a></p>
<p>The six port states recognized by Nmap – ( the ones marked in red should ideally be a red flag to us )</p>
<p>open</p>
<p>An application is actively accepting TCP connections, UDP datagrams or SCTP associations on this port. Finding these is often the primary goal of port scanning. Security-minded people know that each open port is an avenue for attack. Attackers and pen-testers want to exploit the open ports, while administrators try to close or protect them with firewalls without thwarting legitimate users. Open ports are also interesting for non-security scans because they show services available for use on the network.</p>
<p>closed</p>
<p>A closed port is accessible (it receives and responds to Nmap probe packets), but there is no application listening on it. They can be helpful in showing that a host is up on an IP address (host discovery, or ping scanning), and as part of OS detection. Because closed ports are reachable, it may be worth scanning later in case some open up. Administrators may want to consider blocking such ports with a firewall. Then they would appear in the filtered state, discussed next.</p>
<p>filtered</p>
<p>Nmap cannot determine whether the port is open because packet filtering prevents its probes from reaching the port. The filtering could be from a dedicated firewall device, router rules, or host-based firewall software. These ports frustrate attackers because they provide so little information. Sometimes they respond with ICMP error messages such as type 3 code 13 (destination unreachable: communication administratively prohibited), but filters that simply drop probes without responding are far more common. This forces Nmap to retry several times just in case the probe was dropped due to network congestion rather than filtering. This slows down the scan dramatically.</p>
<p>unfiltered</p>
<p>The unfiltered state means that a port is accessible, but Nmap is unable to determine whether it is open or closed. Only the ACK scan, which is used to map firewall rulesets, classifies ports into this state. Scanning unfiltered ports with other scan types such as Window scan, SYN scan, or FIN scan, may help resolve whether the port is open.</p>
<p>open|filtered</p>
<p>Nmap places ports in this state when it is unable to determine whether a port is open or filtered. This occurs for scan types in which open ports give no response. The lack of response could also mean that a packet filter dropped the probe or any response it elicited. So Nmap does not know for sure whether the port is open or being filtered. The UDP, IP protocol, FIN, NULL, and Xmas scans classify ports this way.</p>
<p>closed|filtered</p>
<p>This state is used when Nmap is unable to determine whether a port is closed or filtered. It is only used for the IP ID idle scan.</p>
| 0non-cybersec
| Stackexchange |
How loop edge set the arrow type?. <p>When we use <code>-></code> tha arrow type can be overwritten by <code>>=Arrow</code>, before or after the <code>-></code> . Or by putting after the <code>-></code> another <code>-Arrow</code> style.</p>
<p>For a <code>loop</code> edge, we can overwrite the arrow type by <code>>=Arrow</code> but not by <code>-Arrow</code>. <strong>Why ?</strong> </p>
<pre><code>\documentclass[varwidth,border=7mm]{standalone}
\usepackage{tikz}
\usetikzlibrary{arrows.meta}
\begin{document}
\begin{tikzpicture}[scale=5, very thick]
\draw[green] (0,0) edge[loop, -latex] (); % ->
\draw[xshift=3mm] (0,0) edge[loop, >=latex] (); % -latex
\draw[green, scale=-1] (0,0) edge[-latex, loop] (); % ->
\draw[xshift=3mm,scale=-1] (0,0) edge[>=latex, loop] (); % -latex
\draw[yshift=3mm,blue] (0,0) edge[>=latex, ->, -Ellipse] (.3,0); % -Ellipse
\draw[yshift=-3mm,red] (0,0) edge[>=latex, -Ellipse, ->] (.3,0); % -latex
\end{tikzpicture}
\end{document}
</code></pre>
<p><img src="https://i.stack.imgur.com/XxF7c.png" alt="enter image description here"></p>
| 0non-cybersec
| Stackexchange |
One month playing with the Go Plus - impressions and stats. | 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 |
Me [28 M] with my wife [27 F] of 4 years, called the cops and accused me of assaulting her.. This is a bit long but there is a lot going on.
My wife and I have been having problems for the last two years.
It all started when her sisters/brother in law moved into a one million dollar home. They're roughly the same age as us and married for slightly longer. Between them they make close to $140,000.00 year and live a great life. Birthdays at there house are always well catered, always have new cars and go on a vacation to another country once a year.
My wife and I haven't been that fortunate. While we make a good living and own a home it is no where near my brother and sister in law. My wife began resenting me for not earning as good a wage as my brother in law. I had a decent factory job that paid me a good wage. Unfortunately the company went under and similar jobs pay much less than I was used to making. Therefore, I got a job as an electrical apprentice where I started at nearly minimum wage but in five years I should be making close to $70,000.00 a year. My wife blames me for all our financial struggles with my new wage. She constantly belittles me saying "I'm not a real man", "Who goes back to school in their 30's". To become a electrician I'm required to do roughly half a year of school (not consecutive) which I get unemployment during and guaranteed raises upon completion of each level (there are three). Every time I get the letter to go to school we get in a fight about not being able to afford me being out of work for six weeks (length of first level). But I will never get a raise if I don't go to school. She calls me a loser and pathetic...among other not so flattering statements.
Soon after that her criticism of me expanded to everything I do. She says no one likes me and everybody mocks me behind my back. Calls me a loser in front of my daughter. She texts me at work saying I can't provide. She goes nuts on me when I go out. For example, one night I went to a baseball pool, literally the first time I been out alone for just me in 2014. She proceeds to text me, I hope your having fun while I am at home alone, what kind of man joins a baseball pool when he can't provide?
To help out our financial situation I started working on weekends. I'd come home after working eight hours on a Saturday doing intense physical labour and she yell at me for not making groceries. I said "you were home all day, why couldn't you make the groceries?" which than led to another fight. Now every time I work weekends I get texts insulting me that I have to work on weekends to provide.
The thing is we're in this financial situation in part because my decline in wage and because she racked up a $60,00.00 line of credit. She controlled all the finances and would always get the mail. Our mortgage was just taken out automatically of a joint account. Our trash was opened by raccoons one night and as I was cleaning it up I found a bank statement indicating our line a credit was used. I knew we had a line of credit but it was for emergencies and I had no idea it had been nearly maxed out. I confronted her about this, again many fights occurred and to this day she will not tell me where the money went. She doesn't go out, just goes to work. I have no clue where it could have gone.
Just before that she had been yelling at me daily for having a drinking problem. During an average week I'd have about 12 tall boys. She would call me a drunk (I never drank more than two a day) and said I should go to AA. That my daughter will grow up to be ashamed of me and that I am a loser. Prior to learning about the line of credit I decided to stop drinking for the sake of marriage. After talking about it with friends they said while I wasn't an alcoholic, it was a bit excessive and if we have financial woes I should slow it down. I agreed. I quit drinking completely.
So a two weeks after the fights started about the line of credit being maxed out I had to stay 30 minutes extra at work. When I got home my wife confronted me at the car, "YOU WERE AT THE BAR! WEREN'T YOU!?!?!?!"....I responded no I just had to stay late at work. She said she smelled beer on me and stormed in the house. I followed her in the house saying "You are crazy, I didn't drink a thing and I had to work late you stupid bitch..". At this point she went off completely you're a loser, you can't provide, you're a drunk, you're not a man, you have no friends...it went on and on. I called her a b.... again and she slapped me, in a rage I aggressively pushed her out of the way striking her should and bruising her. It was assault, it was aggressive, I didn't think about what I was doing ...at the that moment I hated her so much I wanted to punch her, so I removed myself from the situation but some dumb instinct said I had should push her...
She called the cops and I was arrested/charged. Through mediation, she wanted to work on our marriage (through mutual friends I learned this was because she learned I'd get half her pension in a divorce and she'd pay alimony). She wasn't charging me, the police do automatically in domestic disputes. But she agreed to speak on my behalf to help get the charges to go away. For me to see my daughter more than just weekends and get the charges dropped from the prosecution I would have to attend anger management classes, marriage counselling and classes for alcoholics. My wife also wants me to sign documents from her lawyer relinquishing my rights to any of her money. She doesn't want to divorce me and said I can move back home but must sleep on the couch. If I agree to the above the charges will be dropped and I will have my daughter again. If I refuse to sign those I will have begin fighting for my daughter on a minimum wage while fighting assault charges.
I don't know what to do. I'm a mess. I think the smartest thing is do agree to everything and divorce her when all the charges drop. I don't care about the money just don't want my daughter with her five days a week. She will make my daughter hate me I know it.
How do I proceed? What is the smartest next move for me to get out from this situation with most of my life still intact?
---
**tl;dr**: In a terrible marriage and assaulted my wife after a heated argument. Don't know how to proceed.
**EDIT: Corrected the bolded part it was an accident from censoring a curse word. | 0non-cybersec
| Reddit |
Running a marathon.. | 0non-cybersec
| Reddit |
Downloading music. <p>if I download music from a legitimate website, like amazon or iTunes, and half through my download I receive a Facebook notification or a text message or phone call on my phone, will the notification sounds appear on the download song on playback, meaning I have to delete the song and redownload it, many thanks for any help</p>
| 0non-cybersec
| Stackexchange |
How I feel editing the group study guide.... | 0non-cybersec
| Reddit |
Can I write a pdf with exercises taken from other sources, solving them myself and not cite them, or do I have to ask for permission?. <p>I want to create some PDFs that will help future university mathematics students to learn the material. I just started, literally 1 hour ago. I do not want to sell these PDFs but just make them available.</p>
<p>I make them with overleaf.com , and I write down all everything on my own. However these pdfs will contain only exercises (no theory), so clearly I can make some exercises up, but if I want to be exhaustive, I have to take exercises from books or lecture notes. </p>
<p>I take the text of the exercises, so for example $\textit{Use the definition of a field to prove that if F is a field then $\forall$ a $\in F$, $\, a\cdot 0 = 0 \cdot a = 0$.}$</p>
<p>However I do solve these exercises myself and write down my solutions. Of course for some exercises I'll look at the solutions and take inspiration from them, but always writing them down myself.</p>
<blockquote>
<p>Do I have to quote (and ask permission!) to any source I take the exercises from? I.e. is there something like a copyright on exercises?</p>
</blockquote>
<p>What I want to know is, if I do these pdfs with exercises, can I just avoid citing every source and put them available in my website? </p>
<p>Thank you</p>
<p>Here's the style:
<a href="https://i.stack.imgur.com/UYYZp.jpg"><img src="https://i.stack.imgur.com/UYYZp.jpg" alt="enter image description here"></a></p>
| 0non-cybersec
| Stackexchange |
arXiv:physics/0008042v1 [physics.acc-ph] 12 Aug 2000
ar
X
iv
:p
hy
si
cs
/0
00
80
42
v1
[
ph
ys
ic
s.
ac
c-
ph
]
1
2
A
ug
2
00
0
THE FLAT BEAM EXPERIMENT AT THE FNAL PHOTOINJECTOR
D. Edwards, H. Edwards, N. Holtkamp, S. Nagaitsev, J. Santucci, FNAL∗
R. Brinkmann, K. Desler, K. Flöttmann, DESY-Hamburg
I. Bohnet, DESY-Zeuthen, M. Ferrario, INFN-Frascati
Abstract
A technique for production of an electron beam with a high
transverse emittance ratio, a “flat” beam, has been proposed
by Brinkmann, Derbenev, and Flöttmann.[1] The cathode
of an RF-laser gun is immersed in a solenoidal magnetic
field; as a result the beam emitted from a round laser spot
has a net angular momentum. Subsequent passage through
a matched quadrupole channel that has a 90 degree differ-
ence in phase advance between the transverse degrees of
freedom results in a flat beam. Experimental study is un-
derway at the Fermilab Photoinjector. Thus far, transverse
emittance ratios as high as 50 have been observed, and the
results are in substantial agreement with simulation.
1 INTRODUCTION
Two years ago, Ya. Derbenev invented an optics maneu-
ver for transforming a beam with a high ratio of horizontal
to vertical emittance—a “flat beam” —to one with equal
emittances in the transverse degrees-of-freedom—a “round
beam”.[2] High energy electron cooling at the TeV energy
scale was the motivation.
Last year, R. Brinkmann and K. Flöttmann of DESY
joined with Derbenev in a paper that reverses the process—
obtain a flat beam from a round beam produced from the
cathode of an electron gun.[1] This could be a significant
step toward the elimination or simplification of the electron
damping ring in a linear collider design. The other major
step in that process is the delivery of polarized electrons
in the flat beam, and this is an R&D challenge beyond the
scope of the work reported here.
The intent of the present experiment was to demonstrate
the round-to-flat transformation, compare the results with
simulation, and verify that the demonstration was not ob-
scured by other processes. In the following sections, we
present a simplified version of the transformation, describe
the experimental setup, present the results, and comment
on future plans.
2 PRINCIPLE
Suppose that the cathode of an electron gun is immersed in
a uniform solenoidal field of magnitudeBz . For the sake of
this argument, assume that the thermal emittance is negli-
gible and ignore RF focusing in the gun. Then the particles
just stream along the field lines until the end of the solenoid
∗The Fermi National Accelerator Laboratory is operated under con-
tract with the US Department of Energy
is reached, at which point the beam acquires an angular mo-
mentum. A particle with initial transverse coordinates x0,
y0 acquires angular deflections. With momentum p0 at the
solenoid end, the state of the particle becomes
x
x′
y
y′
0
=
x0
−ky0
y0
kx0
where
k ≡
1
2
Bz
(p0/e)
.
Next pass the beam through an alternating gradient
quadrupole channel. Assume that the channel is repre-
sented by an identity matrix in the x-direction and has an
additional 900 phase advance in y.
We get the output state
x
x′
y
y′
=
1 0 0 0
0 1 0 0
0 0 0 β
0 0 − 1
β
0
x0
−ky0
y0
kx0
=
x0
−ky0
kβx0
− 1
β
y0
β=1/k→
x0
−ky0
x0
−ky0
.
In the last step above, with β = 1/k, the particles end up
with equal displacements in x and y and travelling at equal
angles in x and y. This describes a flat beam inclined at
an angle of 450 to the coordinate axes. Change to a skew-
quadrupole channel, and the flat beam can be aligned along
either the horizontal or vertical axis.
This idealized example is only meant to illustrate the
principle. The essential points about the quadrupole chan-
nel are the π/2 difference in phase advance between
the transverse degrees-of-freedom, and the match of the
Courant-Snyder parameters.[3] This may be accomplished
with as few as three quadrupoles. Of course, in practice,
RF focusing fields in the gun and in a booster cavity, space
charge, and so on cannot be ignored.
With the inclusion of thermal emittance, Brinkmann,
Derbenev, and Flöttmann[1] speak of an achievable emit-
tance ratio of order 102 or more for a beam with normal-
ized emittance
√
ǫx · ǫy ≈ 1µm per nC of bunch charge.
The expression for the emittance ratio is
ǫx
ǫy
≈ 4k
2σ2c
σ′2c
http://arxiv.org/abs/physics/0008042v1
RF Gun w Solenoids
cathode
Skew Quad Triplet Transformer
Flat BeamRound Beam
OTR Screens & SlitsSC Tesla Cavity
Figure 1: Very schematic rendition of the layout at Fermilab related to this experiment.
where now in the definition of k, Bz remains the field
on the cathode, but p0 is the momentum at entry to the
quadrupole channel, and σc, σ
′
c are the standard deviations
of the distribution in displacement and angle at the cath-
ode. The resulting vertical emittance would be 0.1 µm,
in the range of interest for a linear collider. Liouville’s
Theorem remains in effect for the 4-dimensional transverse
emittance, but the angular momentum provides the lever
by which emittance may be moved from one degree-of-
freedom to another.
3 THE FERMILAB PHOTOINJECTOR
ENVIRONMENT
The photoinjector at Fermilab is well suited to this sort
of experiment. The RF gun delivers electrons with a ki-
netic energy of (typically) 3.8 MeV. The superconducting
booster cavity raises the electron energy to 17 MeV.
The solenoid is composed of three separately excited
coils permitting fields at the cathode in the range 0 to
2.7 kG. The coil immediately upstream of the cathode, the
“bucker”, is normally excited with current opposite to that
of the next coil, the “primary” to produce zero field at the
cathode. Downstream, the combination yields solenoidal
focusing, which can be adjusted with the third coil, the
“secondary”. The secondary has little effect on the field
on the cathode.
Following the booster cavity, about 8 meters of beamline
are available for experiments. There are 11 quadrupoles
that are easily moved about or rotated into the skew orien-
tation. A dozen view screens are situated on the line, and
there are three locations where slits are installed for emit-
tance measurement. The laser can operate at a variety of
pulse lengths up to 12 ps, the setting that we used. Bunch
charge as high as 10 nC is available. We operated at no
higher than 1 nC in order to reduce space charge effects as
much as possible. The layout as related to this experiment
is sketched in Fig. 1.
4 PROCEDURE
The solenoid coils were set to produce a field at the cathode
in the expected range, about 0.75 kG. Using the language of
the preceding section, this meant setting the bucker to zero
current and controlling the cathode field with the primary.
The beam was observed at the location of the two screens
immediately downstream of the booster cavity, and by ad-
justment of the secondary coil, the beam spot was made the
same size at these two places. In other words, a beam waist
was produced. At this stage, the beam has a round shape
on the screens.
The simple argument of Sec. 2 is no longer valid for de-
termination of the β for the match, because the solenoid
field is not uniform and the RF focusing and acceleration
must be taken into account. Making use of linearity, axial
symmetry, and the conservation of canonical angular mo-
mentum between the cathode and the waist yields for the
value of β at entry to the quadrupole channel
β =
σ2w
σ2c
2(pw/e)
Bc
where the subscripts c and w refer to the cathode and waist
respectively and the σ’s characterize the radii of the beam
spots. The other Courant-Snyder parameter involved in the
match, α, is zero due to the choice of a waist as the match
point.
Given preliminary values for the matching parameters,
an (asymmetric) skew triplet was set up. Flat beam pro-
files were rather easily achieved by adjustment of available
tuning parameters, including the launch phase from the RF
gun. The latter proved to be particularly important, a cir-
cumstance that is yet to be explained.
5 RESULTS
The transformation should work — it’s linear dynamics —
and it does. The match and phase difference were achieved
with three skew quadrupoles. The beam image on an OTR
screen 1.2 m downstream of the third quadrupole is shown
in Fig. 2; the beam width is an order of magnitude larger
than the height. A critical observation is that the beam re-
main flat as it drifts farther downstream. That it does is
demonstrated in Fig. 3 near the end of the beamline at 3.6 m
from the third quadrupole.
In Fig. 2 there is a hint of an s-shape, which likely in-
dicates that spherical aberrations (e.g. space charge) are
at work. If the solenoid field on the cathode is varied up
or down from the matched condition the beam apparently
rotates clockwise or counterclockwise as it drifts, indicat-
ing that the angular momentum is no longer completely
cancelled. Of course, it isn’t a real rotation — there’s no
torque— it’s a shear.
Figure 2: Beam profile on OTR screen 1.2 m downstream
of the third skew quadrupole.
Figure 3: Beam profile on OTR screen 3.6 m downstream
of the third skew quadrupole. Dark current is visible to the
right of the main beam image.
In these figures, the beam is flat in the horizontal plane.
The OTR screens are viewed from the side, and so a beam
that is flat horizontally presents a depth of field problem
for best emittance analysis. So in later stages of the ex-
periment, the beam was made flat in the vertical plane.
From slit data in this orientation, the measured ratio of
emittances is about 50: ǫx ≈ 0.9µm, ǫy ≈ 45µm, with
the one degree-of-freedom normalized emittance defined
by ǫ2 = γ2(v/c)2(〈x2〉〈x′2〉 − 〈xx′〉2). We feel that this
is a good result for an initial experiment. The horizontal
emittance measurement is resolution limited, as illustrated
in Fig. 4 wherein a sequence of slit images is superimposed
in order to form a distribution. The standard deviation of
the narrow distribution is comparable to a single pixel of
the CCD camera viewing the screen.
The product of the emittances is higher than that usual
in operation with round beams; typically, the emittance
in each transverse degree-of-freedom is about 3 to 4 µm.
However, there is no reason to believe that the emittance
compensation normally in use would be effective under the
conditions of this experiment.
The simulations[4],[5] carried out prior to the measure-
ments provided useful guidance, but were not perfect. The
prediction of spot size just downstream of the gun worked
fine. But to achieve the match to the quadrupoles, the
solenoid required adjustment.
In order to obtain agreement between the location of the
beam waist downstream of the booster cavity, a modifica-
0
2 0
4 0
6 0
8 0
100
120
0
1 0
2 0
3 0
4 0
5 0
6 0
140 150 160 170 180 190 200 210 220
L6, L8slit X
063000-1840, ~50mic/pic
l6-dc,rot-5 l8 Slit X proj
l6
-d
c,
ro
t-
5
,
X
p
ro
j
l8
S
lit X
p
ro
j
pic
sigma= 7.7pic
sigma=1.2 pic
Figure 4: Projection of images used in emittance measure-
ment at slit location and downstream of slit system.
tion of the focusing characteristics of this device was re-
quired. In the Chambers approximation[6], its demagni-
fication is a factor of 5, so its treatment is sensitive to a
number of factors, e.g. the exact field profile. It will be
worthwhile to measure the transfer matrix through the cav-
ity experimentally.
6 CONCLUSIONS
The round-to-flat transformation has been verified, with a
demonstrated emittance ratio of a factor of 50 between the
two transverse degrees-of-freedom. Further work will be
needed to restore the emittance compensation necessary to
the delivery of low transverse emittance, and that is the sub-
ject of a follow-on experiment, in the direction suggested
by Brinkmann, Debenev and Flöttmann in their EPAC2000
paper.[7] The predictive capability of the simulations is en-
couraging thus far, and the results reported here indicate
directions for improvement.
7 ACKNOWLEGEMENTS
Support of the Fermilab and DESY managements is grate-
fully acknowledged. Thanks to Jean-Paul Carneiro, Mark
Champion, Michael Fitch, Joel Fuerst and Walter Hartung
for their invaluable help in the operation.
8 REFERENCES
[1] R. Brinkmann, Ya. Derbenev, K. Flöttmann, “A Flat Beam
Electron Source for Linear Colliders”, TESLA Note 99-09,
April 1999.
[2] Ya. Derbenev, “Adapting Optics for High Energy Electron
Cooling”, University of Michigan, UM-HE-98-04, Feb. 1998.
[3] A. Burov and S. Nagaitsev, “Courant-Snyder Parameters of
Beam Adapters”, Fermilab TM-2114, June 2000.
[4] K. Flöttmann, ASTRA user manual,
www.desy.de/∼mpyflo/Astra dokumentation.
[5] S. Nagaitsev, private communication.
[6] E. Chambers, Stanford HEPL note, 1965.
[7] R. Brinkmann, Y. Derbenev, K. Flöttmann, EPAC2000,
Vienna, June 2000.
| 0non-cybersec
| arXiv |
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 |
It's not much, but its mine, and its finally done! [M113]. [First off, here's me and the gang giving it a test drive!](https://upload.wikimedia.org/wikipedia/commons/a/aa/Allied_Spirit_I_150126-A-LO967-001.jpg)
[Interior](https://upload.wikimedia.org/wikipedia/commons/thumb/f/f6/M113_Interior.jpg/1024px-M113_Interior.jpg)
We knew we didn't have enough to spring for a brand new one, so we managed to get a hold of a used system from WWII and update some of the internals.
Current Specs:
* Detroit 6V53 V6 two-stroke diesel engine
* Allison TX-100-1 three-speed automatic transmission
* all-around 7.62mm armor-piercing protection
* additional 14.5 mm protection on the front, sides, and rear
Next up would be RGB and replacing the acrylic windows with bulletproof ballistics glass. Thoughts on other upgrades?
| 0non-cybersec
| Reddit |
We are giving away Supreme to our viewers in celebration of 20 episodes of Supreme Night Live!. | 0non-cybersec
| Reddit |
Draw me.... | 0non-cybersec
| Reddit |
The recursion $T(n) = T(n/2)+T(n/3)+n$. <p>I'm looking at the reccurrence
<span class="math-container">$$T(n) = T(n/2) + T(n/3) + n,$$</span>
which describes the running time of some unspecified algorithm (base cases are not supplied).</p>
<p>Using induction, I found that <span class="math-container">$T(n) = O(n\log n)$</span>, but have been told that this is not tight. Indeed, assume inductively that <span class="math-container">$T(k) \leq Ck\log k$</span> for all <span class="math-container">$k<n$</span> (and sufficiently large values of <span class="math-container">$k$</span>), then</p>
<p><span class="math-container">\begin{align*}
T(n)&\leq C\frac{n}{2}\log\frac{n}{2} + C\frac{n}{3}\log \frac{n}{3} + n\\
&= C\frac{5}{6}n\log n - n(C/2+C\log3/3 - 1).
\end{align*}</span></p>
<p>Now I choose <span class="math-container">$C$</span> large enough for <span class="math-container">$(C/2+C\log3/3 - 1) > 0$</span>, and so the last expression is dominated by <span class="math-container">$C\frac{5}{6}n\log n\leq Cn\log n$</span>.</p>
<p>My first question is, what is a tighter bound that this?</p>
<p>Second, I tried to use the Akra-Bazzi method to solve this, so let <span class="math-container">$p$</span> solve
<span class="math-container">$$\left(\frac{1}{2}\right)^p + \left(\frac{1}{3}\right)^p = 1.$$</span>
Then approximately <span class="math-container">$p=0.79$</span>, and (with <span class="math-container">$g(n) = n$</span>) I get
<span class="math-container">$$\int_1^n \frac{g(u)}{u^{p+1}} du = \int_1^n \frac{1}{u^{p}} du = \frac{1}{1-p}(n^{1-p}-1),$$</span>
and so</p>
<p><span class="math-container">$$T(n) = \Theta\left(n^p\left(1+\frac{1}{1-p}(n^{1-p}-1)\right)\right).$$</span></p>
<p>This equals <span class="math-container">$\Theta(n^p + \frac{1}{1-p}n-\frac{1}{1-p}n^p)$</span>, so overall <span class="math-container">$\Theta(n)$</span>, since <span class="math-container">$p<1$</span>. My second question is that I don't really believe that <span class="math-container">$T$</span> is linear, so what went wrong in my application of Akra-Bazzi?</p>
<p>Best regards.</p>
| 0non-cybersec
| Stackexchange |
Can R help manuals have latex math in them?. <p>I am working on an <code>R</code> package and I am using the package <code>Roxygen2</code> to write the help manuals for my <code>R</code> functions. What I would like to know is if it is possible to use latex for math equations in the manual pages?</p>
<p>For example, if I had a function called <code>add2</code> that did the following:</p>
<pre><code>add2 = function(x,y){
z = x+y
return(z)
}
</code></pre>
<p>And using <code>Roxygen2</code> documentation I had the following:</p>
<pre><code>##' @include add2.R
{}
##' Compute the sum of x_1 and x_2
##'
##' Computes the sum of x_1 and x_2
##'
##' @param x_1 number of guys
##' @param x_2 number of girls
##' @return The sum of the two values x_1 and x_2
##'
##' @example examples/adding.R
##' @export
##' @author Name
</code></pre>
<p>And this works for me, but this displays x1 and x2 as x_1 and x_2 in the help manual whereas I would like for it to look like latex math and actually have the subscripts on x, i.e., $x_1$ and $x_2$ in latex. </p>
<p>Is there any way to do this or does <code>R</code> not accomodate this?</p>
| 0non-cybersec
| Stackexchange |
Next to VIN 001, this has to be best. Taken from “C8 Corvette Owners (And Friends) on FB. https://www.facebook.com/groups/C8.Corvette.Owners. | 0non-cybersec
| Reddit |
Nations with the most (caught) dopers, 2014. | 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 |
Prove this simple graph is not planar.. <p><a href="https://i.stack.imgur.com/upWTS.png" rel="nofollow noreferrer">Graph</a></p>
<p>I need to show this graph is not planar. I've attempted to find $K_5$ and $K_{3,3}$ as a subgraphs but haven't been successful yet. It's possible but unlikely this graph <em>is</em> planar but I haven't been able to draw it as a plane graph.</p>
| 0non-cybersec
| Stackexchange |
Are there always harmonic forms locally?. <p>Let $M$ be a smooth $d$-dimensional oriented Riemannian manifold, and let $p \in M$.
Let $0 \le k \le d$ be fixed.</p>
<blockquote>
<p>Does there exist an open neighbourhood $U$ of $p$, which admit a non-zero harmonic $k$-form? i.e $\omega \in \Omega^k(U)$ satisfying $d\omega=\delta \omega=0$?</p>
</blockquote>
<p>Since a form $\omega$ is harmonic if and only if $\star \omega$ is harmoinc ($\star$ is the Hodge dual operator), the answers for a given $k,d-k$ are the same.</p>
<p>For $k=d$, one can take $\omega$ to be the Riemannian volume form.</p>
<p>For $k=1$, we can take $\omega=df$ where $f$ is a harmonic function. Then $\delta \omega=\delta df=0$. Locally, there are always harmonic functions- we can solve the Dirichlet problem on a small ball with boundary, that is finding a harmonic function which is zero on the boundary. </p>
<p>This solves the cases $k=0,1,d-1,d$.</p>
<p>So, we are left with the cases $2 \le k \le d-2$.</p>
| 0non-cybersec
| Stackexchange |
Earth made up of two planets after 'violent collision' with Theia 4.5 billon years ago, UCLA scientists find - UCLA-led team reveals event also created the moon. | 0non-cybersec
| Reddit |
Good Guy Mayor. | 0non-cybersec
| Reddit |
Equivalent forms of pullback. <p>Let $\Lambda$ be an artin algebra. Here is a proposition<a href="https://i.stack.imgur.com/jR6in.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/jR6in.png" alt="enter image description here"></a></p>
<p>Now I want to prove $(b)(iii) \Rightarrow (b)(ii)$:
The only problem is to show that $ker(g,g') \subseteq Im
\binom{f}{-f'}$</p>
<p>Suppose $(b,b') \in ker (g,g')$, then $g(b)+g'(b')=0$. Then for any $a \in A$, $g(b+f(a))+g'(b'-f'(a))=0$. If $b \in Imf$, then I can get $b' \in Im f'$ and there is a $a \in A$ such that $f(a)=b$ and $f'(a)=b'$.</p>
<p>But I can't get $f$ is surjective, I don't know what to do next. Thank you for any help or hint.</p>
| 0non-cybersec
| Stackexchange |
Can there exist distinct sets , not both empty , $A,B$ such that $ A \cup B $ is a subset of $A \cap B $?. <p>Can there exist distinct sets , not both empty , $A,B$ such that $ A \cup B $ is a subset of $A \cap B $ , I know this cannot happen as per definitions of elements and subset inclusions of set theory , but I think I saw somewhere this kind of thing but cannot exactly recall now , please help . </p>
| 0non-cybersec
| Stackexchange |
Any way to trigger an app from another app's notifications?. I have a jailbroken 4. For battery life, I don't want to turn on the e-mail app's push feature, so I have another app (PushMail) that sends push notifications when I get an email. I'd like the email app to automatically refresh, when one of these notifications comes through. Are there any jailbreak features to allow this?
I think MobileNotifier allows something like this, but it forces my text message tone to "tri-tone," so I uninstalled it. | 0non-cybersec
| Reddit |
If $a \in \mathbb{I}$ , how is $\overline{\mathbb{Z}+ a\mathbb{Z}}=\mathbb{R}$. <p>If $a \in \mathbb{I}$ , how is $$\overline{\mathbb{Z}+ a\mathbb{Z}}=\mathbb{R}$$</p>
<p>It says in my notebook that this set in dense in $\mathbb{R}.$ How do I prove this density? With say $\mathbb{Q}$ and $\mathbb{I}$ being dense in $\mathbb{R}$ I thought it was dense because every point in $\mathbb{R}$ was either in $\mathbb{Q}(\mathbb{I})$ or a limit point of $\mathbb{Q}\text{ -being } \mathbb{I}(\mathbb{I}\text{ -being }\mathbb{Q}).$</p>
<p>Now here say $a\to \frac{1}{2}\in \mathbb{I}$, take example $b=\frac{1}{4}\in \mathbb{R}$ which I don't see as being a limit point of $\mathbb{Z}+ a\mathbb{Z}...$ </p>
| 0non-cybersec
| Stackexchange |
Why Does My iMac Wake Itself Up?. <p>I have an early 2009 24" iMac. Lately, when in sleep mode it will occasionally wake up for around ten seconds with the screen off, then go back to sleep. Wake on LAN is turned off so I can't figure out why this is happening!</p>
| 0non-cybersec
| Stackexchange |
Another client hit with ransomware. Same guy that turned his nose up at a cheap file server with backups.. Texted him back. "You have a ransomeware virus. No recovery possible. Pay them or wipe your machine."
He's shitting himself. I usually sympathize and really try and take ownership of my clients issues. Get the job done no matter what. This time around though...
EDIT: We've been talking back and forth all day and now he's ready to look at backup solutions. Of course.
| 0non-cybersec
| Reddit |
Threading the Needle. | 0non-cybersec
| Reddit |
Ron Paul Introduces Bill to Repeal Indefinite Detention of Americans. | 0non-cybersec
| Reddit |
How to start PhantomJS with commandline options in Selenium?. <p>I can't find how to start phantomjs with command-line options like <code>--cookies-file=/path/to/cookies.txt</code> and other...</p>
<p>Tried <code>driver = webdriver.PhantomJS('--cookies-file=/tmp/ph_cook.txt')</code> but nothing.</p>
<p>For unknown reason <code>add_cookie</code> don't work to keep logged.</p>
<p>I tried to start phantomjs like this:</p>
<pre><code>driver = webdriver.PhantomJS(executable_path = "phantomjs --cookies-file=/tmp/ph_cook.txt --webdriver")
</code></pre>
<p>but getting error:</p>
<pre><code>raise WebDriverException("Unable to start phantomjs with ghostdriver.", e)
selenium.common.exceptions.WebDriverException: Message: Unable to start phantomjs with ghost driver.
</code></pre>
| 0non-cybersec
| Stackexchange |
Steel Inquisitor. | 0non-cybersec
| Reddit |
What am I missing here?. <p>That's an idiot question, but I'm missing something here. If $x'= Ax$ and $A$ is linear operator in $\mathbb{R}^n$, then $x'_i = \sum_j a_{ij} x_j$ such that $[A]_{ij} =a_{ij} = \frac{\partial x'_i}{\partial x_j}$, therefore $\frac{\partial}{\partial x_i'} = \sum_j \frac{\partial x_j}{\partial x'_i} \frac{\partial}{\partial x_j}$. However $\frac{\partial}{\partial x_i'} = \frac{\partial}{\partial \sum_j a_{ij} x_j} = \sum_j a_{ij} \frac{\partial}{\partial x_j} = \sum_j \frac{\partial x'_i}{\partial x_j} \frac{\partial}{\partial x_j}$ !!! What's wrong here?</p>
<p>Thanks in advance.</p>
| 0non-cybersec
| Stackexchange |
TIFU by not paying attention to my e-mail inbox. For a little background, I graduated with a master's in school counseling last June, but couldn't find work in the field, so I took a desk jockey job in the mean time.
So, anyway, last night I was cleaning out the old inbox and notice a unread e-mail from November 26th. Turns out it was the supervisor from my internship saying that they were finally going to fill an open counseling position. I'm still unsure of how I missed it- I was out of town for Thanksgiving so I wasn't paying as close attention to my incoming e-mail notices, but either way, I definitely feel like a moron right now. | 0non-cybersec
| Reddit |
Xbox Game Pass 14 day trial. | 0non-cybersec
| Reddit |
Show that the order of an element g is well-defined. <p>Suppose <span class="math-container">$G$</span> is a group and let <span class="math-container">$g∈G$</span>, explain why the order of <span class="math-container">$g$</span> is well-defined, while the definition of the order is the following:</p>
<p>The smallest positive r such that <span class="math-container">$g^r=e$</span>, if no such r is found then we say g has infinite order.</p>
<p><strong>My Question</strong>:
What strategy should I adopt to check the well-definedness? I know we are essentially checking if the output is unique or not.</p>
<p><strong>My Attempt</strong>: Suppose the order of g is finite then consider the set <span class="math-container">$\{r>0:g^r=e\}$</span>. We know this set is non-empty since <span class="math-container">$g^k=e$</span> for some <span class="math-container">$k$</span>. Then by Well-Ordering Principle there exists smallest such <span class="math-container">$r$</span> and hence the order is well-defined.</p>
| 0non-cybersec
| Stackexchange |
solutions poker texas hold'em. <p>Is there any equation that characterizes the poker game in terms of variables such as the strength of the hand, the amount of betting money in the pot, etc? Is there any solution that says what the best move?</p>
| 0non-cybersec
| Stackexchange |
Get values from table if this or that applies, but not when both apply. <p>I'm currently struggling with a seemingly simple task.</p>
<p>The goal is to get the corresponding prices according to the customer number - OR - the customer price group if the customer number does not exist in the table. I think my problem here is that those values are saved in the same table.
The table looks like this (shortened):</p>
<pre><code>Sales Code | Item No | Unit price
----------------------------------
SC1 | 711111 | 345.12
SC2 | 711111 | 501.24
SC3 | 711111 | 242.70
CustomerNo1 | 711111 | 242.70
CustomerNo2 | 711111 | 250.00
SC1 | 711112 | 345.12
SC2 | 711112 | 501.24
SC3 | 711112 | 242.70
CustomerNo2 | 711112 | 250.00
</code></pre>
<p>I am using a parameter for the customer number and I already got the customer price group of the customer, for the case if the customer number is not available in the table for the sales prices.</p>
<p>A short snipped of my code so far:</p>
<pre><code>-- Get the customer price group
SET @query =
'SELECT @CustomerPriceGroup = (CASE [Customer Price Group] WHEN '''' THEN ''SC1'' ELSE [Customer Price Group] END)
FROM [customers]
WHERE [No] = ''' + @CustomerNo + ''''
EXEC sp_executesql @query, N'@CustomerPriceGroup NVARCHAR(3) OUTPUT', @CustomerPriceGroup = @CustomerPriceGroup OUTPUT
-- Get the item data
SET @query = 'SELECT sp.[Sales Code] AS [SalesCode],
i.[No] AS [ItemNo],
i.[Name] AS [ItemName],
sp.[Unit Price] AS [UnitPrice]
FROM [items] i
INNER JOIN [salesprices] sp ON i.[No] = sp.[ItemNo]
WHERE (sp.[Sales Code] = ''' + @CustomerNo + ''' OR sp.[Sales Code] = ''' + @CustomerPriceGroup + ''')'
EXEC (@query)
</code></pre>
<p>I already tried to use EXIST or a window function (example from here <a href="https://stackoverflow.com/questions/15723326/if-exists-in-where-clause">https://stackoverflow.com/questions/15723326/if-exists-in-where-clause</a>), but I was not successful. I got the prices for the customer itself without the customer price group, but not the customer price group if no customer number is available (always nothing, both or only the customer price).</p>
<p>I need to get the following fields:</p>
<ul>
<li>Sales Code</li>
<li>Item number</li>
<li>Item name</li>
<li>Unit price (according to the sales code, either CustomerNo or sales code)</li>
<li>Grouped by the item number</li>
</ul>
<p>I am using Microsoft SQL Server 2016.</p>
<p>Any idea how I can solve that?</p>
<p>BR Raphi</p>
| 0non-cybersec
| Stackexchange |
Can't start the Subversion server. <p>Recently I had configured subversion edge in my Linux machine. Installation was keen (installed as such described in this link <a href="http://www.collab.net/lightbox/download_info/61/34" rel="nofollow noreferrer">[http://www.collab.net/lightbox/download_info/61/34])</a> and I was able to log in to the csvn console, access and create subversion repositories.</p>
<p>After restarting the machine I was able to log in to csvn console only and in the status page it was saying subversion server is down. When I clicked the start button an error was displayed saying "There was a problem starting the Subversion server!" . When I checked the server error logs I got console.log as :</p>
<pre><code>2013-01-01 08:01:45.011:INFO::jetty-7.0.2.v20100331
2013-01-01 08:01:45.076:INFO::Deployment monitor /opt/csvn/appserver/contexts at interval 300
2013-01-01 08:01:45.095:INFO::Deployable added: /opt/csvn/appserver/contexts/redirect.xml
2013-01-01 08:01:45.171:INFO::Deployable added: /opt/csvn/appserver/contexts/integration.xml
2013-01-01 08:01:47,335 INFO [WrapperJarAppMain] com.vasoftware.sf.externalintegration.BootstrapServlet: Bootstrapping the Integration service for Subversion Edge at /opt/csvn
2013-01-01 08:01:47,756 WARN [WrapperJarAppMain] org.apache.axis.utils.JavaUtils: Unable to find required classes (javax.activation.DataHandler and javax.mail.internet.MimeMultipart). Attachment support is disabled.
2013-01-01 08:01:48.000:INFO::Deployable added: /opt/csvn/appserver/contexts/csvn.xml
2013-01-01 08:02:00.473:INFO:/csvn:Initializing Spring root WebApplicationContext
loading security config ...
2013-01-01 08:02:28,388 [quartzScheduler_Worker-1] WARN console.OperatingSystemService - Testing for process '22276' failed with message: The SIGAR library was not loaded.
2013-01-01 08:02:28,391 [quartzScheduler_Worker-1] WARN console.OperatingSystemService - SIGAR loading issue, the pid cannot be tested. Assuming the process is alive
2013-01-01 08:02:28.829:INFO:/csvn:newClient: com.collabnet.svnedge.admin.PackagesUpdateService_f4dc86al9etm
2013-01-01 08:02:28.830:INFO:/csvn:newChannel: /csvn-updates
2013-01-01 08:02:28.831:INFO:/csvn:newChannel: /csvn-updates/status
2013-01-01 08:02:28.831:INFO:/csvn:newChannel: /csvn-updates/percentages
2013-01-01 08:02:29,502 [quartzScheduler_Worker-1] ERROR console.CommandLineService - Exit status=1 Process err output: httpd: bad user name null
2013-01-01 08:02:29,504 [quartzScheduler_Worker-1] WARN console.LifecycleService - Server graceful attempt failed with code=1
2013-01-01 08:02:29,504 [quartzScheduler_Worker-1] WARN console.LifecycleService - Output:
2013-01-01 08:02:41.954:INFO:/csvn:Initializing Spring FrameworkServlet 'grails'
2013-01-01 08:02:41.980:INFO::Deployment monitor /opt/csvn/appserver/webapps at interval 300
2013-01-01 08:02:42.036:INFO::Opened /opt/csvn/data/logs/jetty_2013_01_01.log
2013-01-01 08:02:42.081:INFO::Started [email protected]:3343
2013-01-01 08:02:42.285:INFO::Started [email protected]:4434
2013-01-01 08:02:43.572:INFO:/csvn:Initializing Spring FrameworkServlet 'gsp'
2013-01-01 08:02:43.572:INFO:/csvn:GSP servlet initialized
2013-01-01 10:20:27,461 [qtp4612306-92] WARN console.OperatingSystemService - Testing for process '22276' failed with message: No such process
2013-01-01 10:20:31,513 [qtp4612306-95] ERROR console.CommandLineService - Exit status=1 Process err output: Syntax error on line 16 of /opt/csvn/data/conf/csvn_main_httpd.conf:
Error:\tApache has not been designed to serve pages while\n\trunning as root. There are known race conditions that\n\twill allow any local user to read any file on the system.\n\tIf you still desire to serve pages as root then\n\tadd -DBIG_SECURITY_HOLE to the CFLAGS env variable\n\tand then rebuild the server.\n\tIt is strongly suggested that you instead modify the User\n\tdirective in your httpd.conf file to list a non-root\n\tuser.\n
2013-01-01 10:20:31,514 [qtp4612306-95] WARN console.LifecycleService - Server start attempt failed with code=1
2013-01-01 10:20:31,514 [qtp4612306-95] WARN console.LifecycleService - Output:
2013-01-01 10:24:10.587:INFO::Graceful shutdown [email protected]:4434
2013-01-01 10:24:10.615:INFO::Graceful shutdown [email protected]:3343
2013-01-01 10:24:10.711:INFO::Graceful shutdown MovedContextHandler@17296ee@17296ee/,null
2013-01-01 10:24:10.711:INFO::Graceful shutdown WebAppContext@12fc9e@12fc9e/integration,file:/opt/csvn/appserver/work/Jetty_0_0_0_0_3343_integration.war__integration__gzh5bq/webapp/,/opt/csvn/appserver/webapps/integration.war
2013-01-01 10:24:10.711:INFO::Graceful shutdown WebAppContext@871745@871745/csvn,file:/opt/csvn/appserver/work/Jetty_0_0_0_0_3343_csvn.war__csvn__.1xntxq/webapp/,/opt/csvn/appserver/webapps/csvn.war
2013-01-01 10:24:11.767:INFO:/csvn:Destroying Spring FrameworkServlet 'gsp'
2013-01-01 10:24:13,849 [Thread-3] WARN executor.SessionBoundExecutorService - ExecutorService did not shutdown in 2 seconds. Forcing shutdown of any scheduled tasks
2013-01-01 10:24:23.063:INFO:/csvn:Destroying Spring FrameworkServlet 'grails'
2013-01-01 10:24:23.261:INFO:/csvn:Closing Spring root WebApplicationContext
2013-01-01 10:24:25.843:INFO::jetty-7.0.2.v20100331
2013-01-01 10:24:25.866:INFO::Deployment monitor /opt/csvn/appserver/contexts at interval 300
2013-01-01 10:24:25.869:INFO::Deployable added: /opt/csvn/appserver/contexts/redirect.xml
2013-01-01 10:24:25.959:INFO::Deployable added: /opt/csvn/appserver/contexts/integration.xml
2013-01-01 10:24:27,596 INFO [WrapperJarAppMain] com.vasoftware.sf.externalintegration.BootstrapServlet: Bootstrapping the Integration service for Subversion Edge at /opt/csvn
2013-01-01 10:24:27,958 WARN [WrapperJarAppMain] org.apache.axis.utils.JavaUtils: Unable to find required classes (javax.activation.DataHandler and javax.mail.internet.MimeMultipart). Attachment support is disabled.
2013-01-01 10:24:28.117:INFO::Deployable added: /opt/csvn/appserver/contexts/csvn.xml
2013-01-01 10:24:39.028:INFO:/csvn:Initializing Spring root WebApplicationContext
loading security config ...
2013-01-01 10:25:00.931:INFO:/csvn:newClient: com.collabnet.svnedge.admin.PackagesUpdateService_gcr1y7g1qlo0
2013-01-01 10:25:00.932:INFO:/csvn:newChannel: /csvn-updates
2013-01-01 10:25:00.932:INFO:/csvn:newChannel: /csvn-updates/status
2013-01-01 10:25:00.932:INFO:/csvn:newChannel: /csvn-updates/percentages
2013-01-01 10:25:13.695:INFO:/csvn:Initializing Spring FrameworkServlet 'grails'
2013-01-01 10:25:13.992:INFO::Deployment monitor /opt/csvn/appserver/webapps at interval 300
2013-01-01 10:25:14.072:INFO::Opened /opt/csvn/data/logs/jetty_2013_01_01.log
2013-01-01 10:25:14.115:INFO::Started [email protected]:3343
2013-01-01 10:25:14.569:INFO::Started [email protected]:4434
2013-01-01 10:25:16.549:INFO:/csvn:Initializing Spring FrameworkServlet 'gsp'
2013-01-01 10:25:16.550:INFO:/csvn:GSP servlet initialized
2013-01-01 10:25:27,513 [qtp922883-80] ERROR statistics.NetworkStatisticsService - Byte values are decreasing instead of increasing. Cannot calculate rate.
2013-01-01 10:25:27,520 [qtp922883-80] ERROR statistics.NetworkStatisticsService - Byte values are decreasing instead of increasing. Cannot calculate rate.
2013-01-01 10:25:30,564 [qtp922883-87] ERROR console.CommandLineService - Exit status=1 Process err output: Syntax error on line 16 of /opt/csvn/data/conf/csvn_main_httpd.conf:
Error:\tApache has not been designed to serve pages while\n\trunning as root. There are known race conditions that\n\twill allow any local user to read any file on the system.\n\tIf you still desire to serve pages as root then\n\tadd -DBIG_SECURITY_HOLE to the CFLAGS env variable\n\tand then rebuild the server.\n\tIt is strongly suggested that you instead modify the User\n\tdirective in your httpd.conf file to list a non-root\n\tuser.\n
2013-01-01 10:25:30,568 [qtp922883-87] WARN console.LifecycleService - Server start attempt failed with code=1
2013-01-01 10:25:30,568 [qtp922883-87] WARN console.LifecycleService - Output:
2013-01-01 10:25:30,653 [qtp922883-86] ERROR statistics.NetworkStatisticsService - Byte values are decreasing instead of increasing. Cannot calculate rate.
2013-01-01 10:25:30,659 [qtp922883-86] ERROR statistics.NetworkStatisticsService - Byte values are decreasing instead of increasing. Cannot calculate rate.
2013-01-01 10:25:43,741 [qtp922883-81] ERROR console.CommandLineService - Exit status=1 Process err output: Syntax error on line 16 of /opt/csvn/data/conf/csvn_main_httpd.conf:
Error:\tApache has not been designed to serve pages while\n\trunning as root. There are known race conditions that\n\twill allow any local user to read any file on the system.\n\tIf you still desire to serve pages as root then\n\tadd -DBIG_SECURITY_HOLE to the CFLAGS env variable\n\tand then rebuild the server.\n\tIt is strongly suggested that you instead modify the User\n\tdirective in your httpd.conf file to list a non-root\n\tuser.\n
2013-01-01 10:25:43,742 [qtp922883-81] WARN console.LifecycleService - Server start attempt failed with code=1
2013-01-01 10:25:43,742 [qtp922883-81] WARN console.LifecycleService - Output:
2013-01-01 10:25:43,818 [qtp922883-85] ERROR statistics.NetworkStatisticsService - Byte values are decreasing instead of increasing. Cannot calculate rate.
2013-01-01 10:25:43,822 [qtp922883-85] ERROR statistics.NetworkStatisticsService - Byte values are decreasing instead of increasing. Cannot calculate rate.
</code></pre>
<p>I googled and found many of them say it's because of user permission, ownership etc. I had gone through all of the steps and it wasn't a successful attempt. Here I expect a reliable solution. please provide me a solution for this.</p>
| 0non-cybersec
| Stackexchange |
Swift 3 access of private properties in a struct from a extension. <p>I've been looking through the swift docs and working through some examples around encapsulation, and am unsure about the behaviour that I'm seeing. I've looked for similar questions on stack, looked through the doc and looked through some tutorials (see the link below) and although this is a trivial question can't find an answer (possibly as Swift has changed?)</p>
<p>Creating a simple Struct representing a queue:</p>
<pre><code>struct Queue<Element> {
private var elements = [Element]()
mutating func enqueue(newElement: Element) {
elements.append(newElement)
}
mutating func dequeue() -> Element? {
guard !elements.isEmpty else {
return nil
}
return elements.remove(at: 0)
}
}
</code></pre>
<p>Is later extended by:</p>
<pre><code>extension Queue {
func peek() -> Element? {
return elements.first
}
}
</code></pre>
<p>But of course elements is inaccessible due to the private protection level.
It works by changing the access of elements to fileprivate - but why?</p>
<p>My understanding was that extensions were part of the enclosing type, and looking around the web it seems that is <em>used</em> to work this way <a href="https://www.andrewcbancroft.com/2015/04/22/3-nuances-of-swift-extensions/" rel="noreferrer">https://www.andrewcbancroft.com/2015/04/22/3-nuances-of-swift-extensions/</a></p>
<p>So is my understanding of visibility wrong, or has Swift changed?</p>
| 0non-cybersec
| Stackexchange |
Pyautogui screenshot. Where does it go? How to save and find later?. <p>I am learning from Al Sweigart's you tube video for automating the boring stuff. I got to the part of taking screenshots. He didn't really explain in his video so I tested things out. I found that it takes screenshots of the whole desktop but I don't know where they go. I can only find it when do a whole computer search and I don't know how to put it into a folder from there. </p>
<p>Basically I am asking how I can store the images and find those images taken by the <code>pyautogui.screenshot()</code> function. I am not planning on using this for anything at the moment I just want to know how to do it. I went to the pyautogui website and I didn't find anything on where to find and how to save the screenshots. Thank you in advance for your time! </p>
| 0non-cybersec
| Stackexchange |
Retrofit 2 not sending data when ProGuard is enabled. <p>I try to login my users using Retrofit 2. (Basically a GET to the login URL with a basic header) It works well but once I ProGuard it, the Header Authorization is not sent anymore. (See log outputs)</p>
<p>Sample code :</p>
<p>User Model :</p>
<pre class="lang-java prettyprint-override"><code>public interface UserService {
@GET(GET_LOGIN)
Observable<User> login(@Header("Authorization") String basic);
}
</code></pre>
<p>Login Activity :</p>
<pre class="lang-java prettyprint-override"><code>public void onClick(View v) {
mRetrofit.create(UserService.class)
.login(Credentials.basic(email, password))
.subscribeOn(Schedulers.io())
.observeOn(AndroidSchedulers.mainThread())
.subscribe(user -> {
UserHelper.save(LoginActivity.this, user);
}, throwable -> Dog.d);
}
</code></pre>
<p>Proguard File :</p>
<pre class="lang-none prettyprint-override"><code># Retrofit
-dontwarn retrofit2.**
-dontwarn org.codehaus.mojo.**
-keep class retrofit2.** { *; }
-keepattributes Signature
-keepattributes Exceptions
-keepattributes *Annotation*
-keepclasseswithmembers class * {
@retrofit.* <methods>;
}
-keepclasseswithmembers interface * {
@retrofit.* <methods>;
}
</code></pre>
<p>Logs (proguard) :</p>
<pre class="lang-none prettyprint-override"><code>D/OkHttp: --> GET http://passport-supercairos.rhcloud.com/users/login HTTP/1.1
D/OkHttp: User-Agent: VirtualPassport-Client {Android-23} {Aquaris_E5}
D/OkHttp: Cache-Control: max-stale=10800
D/OkHttp: --> END GET
D/OkHttp: <-- HTTP/1.1 401 Unauthorized (258ms)
D/OkHttp: Date: Fri, 19 Feb 2016 12:57:19 GMT
D/OkHttp: X-Powered-By: Express
D/OkHttp: WWW-Authenticate: Basic realm="Users"
D/OkHttp: Keep-Alive: timeout=15, max=100
D/OkHttp: Connection: Keep-Alive
D/OkHttp: Transfer-Encoding: chunked
D/OkHttp: Content-Type: text/plain
D/OkHttp: OkHttp-Sent-Millis: 1455886639681
D/OkHttp: OkHttp-Received-Millis: 1455886639787
D/OkHttp: Unauthorized
D/OkHttp: <-- END HTTP (12-byte body)
</code></pre>
<p>Logs (non-proguard) :</p>
<pre class="lang-none prettyprint-override"><code>D/OkHttp: --> GET http://passport-supercairos.rhcloud.com/users/login HTTP/1.1
D/OkHttp: User-Agent: VirtualPassport-Client {Android-23} {Aquaris_E5}
D/OkHttp: Cache-Control: max-stale=10800
D/OkHttp: Authorization: Basic ZG9yb2ZyanVAZ21haWwuY29tOmN2dnZ2dnY=
D/OkHttp: --> END GET
D/OkHttp: <-- HTTP/1.1 401 Unauthorized (258ms)
D/OkHttp: Date: Fri, 19 Feb 2016 12:57:19 GMT
D/OkHttp: X-Powered-By: Express
D/OkHttp: WWW-Authenticate: Basic realm="Users"
D/OkHttp: Keep-Alive: timeout=15, max=100
D/OkHttp: Connection: Keep-Alive
D/OkHttp: Transfer-Encoding: chunked
D/OkHttp: Content-Type: text/plain
D/OkHttp: OkHttp-Sent-Millis: 1455886639681
D/OkHttp: OkHttp-Received-Millis: 1455886639787
D/OkHttp: Unauthorized
D/OkHttp: <-- END HTTP (12-byte body)
</code></pre>
<p>Full code can be found here : <a href="https://github.com/supercairos/virtual-passport">https://github.com/supercairos/virtual-passport</a></p>
| 0non-cybersec
| Stackexchange |
Visually Rogue One got so much right. But I had actual chills sitting in an IMAX theatre when the Rebel fleet arrived over Scarif.. | 0non-cybersec
| Reddit |
Accessing Xubuntu GUI remotely on linode. <p>I'm ssh'd as root into my linode server and have installed Xubuntu (for Ubuntu 10.04). Now I'd like to use it, but issuing starts brings about the fatal error no screens found. I've installed and run emacs which appears as a GUI interface with the Terminal (I'm using OS X) window, so how can I do the same with Xubuntu so I can see a desktop?</p>
<p>Thanks!</p>
| 0non-cybersec
| Stackexchange |
The cinematography in this looks seriously awesome. (from the writer/main character of Persepolis). | 0non-cybersec
| Reddit |
The world's nations vowed Wednesday to curb plastic and chemical contamination of the air, soil, rivers and oceans, calling for a steep change in how goods are produced and consumed.. | 0non-cybersec
| Reddit |
How can i get animation of matrix transformations like this. <p>I found these transformations in Khan Academy and I don't know how they created the transformation example videos! I want to create transformations in this way. </p>
<p><a href="https://www.khanacademy.org/math/linear-algebra/matrix-transformations/linear-transformations/a/visualizing-linear-transformations" rel="nofollow noreferrer">https://www.khanacademy.org/math/linear-algebra/matrix-transformations/linear-transformations/a/visualizing-linear-transformations</a></p>
| 0non-cybersec
| Stackexchange |
How do I cancel the effect of "ESC-F" in "less" without canceling the running process?. <p>When I use <code>less</code>, at times I like to have things go on for a while so I use the <kbd>ESC-F</kbd> sequence key which, up to here, does what I want.</p>
<p>The only way I've found to go back to the normal <code>less</code> command is to use <kbd>Ctrl-C</kbd>. However, when I do that, it stops (Cancels) the running process.</p>
<p>What I'm looking for is a way to return to the normal <code>less</code> functionality without stopping the running process so I can look at a few things, then see the following output without having to restart my process.</p>
<p>Is there such a capability?</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 12.10 wireless reports it is working, but actually doesnt. <p>I have Ubuntu 12.10 installed with windows 7 on a partitioned hard drive in a new gateway tower. My wireless card is made by realtek. The install went fine, I was able to connect to wireless to install updates and whatnot. However, at some point both wired and wireless internet began working poorly/not at all in Ubuntu. The aggravating part is: Ubuntu claims both are working just fine and both work great in windows. At the moment I am online with an ethernet cable which the network manager says is running at 1000mbs and also have available a wireless network at 130mbs. However the connection continually goes in and out (which is not registered in the network center, i just cant open webpages, install packages or even ping external websites). At this very moment I can chat in gchat, but cannot load new pages in ask ubuntu forums or download updates. I have spent several hours in forums trying to fix this, but am otherwise a novice with linux. I tried installing a new driver for the wireless card, but am not sure it worked, as in the install report one error message: Module 8192cu does not exist in /proc/modules. No drivers appear in software sources. Any help would be tremendously appreciated. </p>
| 0non-cybersec
| Stackexchange |
Use variable for server_name in nginx. <p>I'm trying to use a variable in nginx in <code>server_name</code>, but is not working. Is this possible?</p>
<pre><code>server {
listen 80;
index index.php index.html;
set $foo "bar.example.com";
server_name $foo;
}
</code></pre>
| 0non-cybersec
| Stackexchange |
Simple idea to align paragraphs to a baseline grid. <p><strong>The idea</strong> was to save the vertical position right after beginning the multi columns and then count from that position the next suitable position whenever there is need to align a text paragraph to a baseline grid row.</p>
<p><strong>Problem</strong> is that after playing with the values (pt and sp) I somehow couldn't accomplish what I wanted. It doesn't seem to be enough to just adjust the <em>gridrowheight</em> length and other values (font size, linespacing and parskip) so that paragraphs on both sides would be fully aligned to the baseline grid; vertical spaces get added to certain positions, but their height is not precisely what they should be.</p>
<p>I think the problem has something to do with the position values. I feel like I'm missing something here, but at the moment I'm not sure what it is.</p>
<pre><code>\documentclass[11pt]{article}
\usepackage{geometry}
\usepackage{parskip}
\usepackage{setspace}
\usepackage{intcalc}
\usepackage{zref-savepos}
\usepackage[colaction]{multicol}
\geometry{a4paper}
\geometry{portrait}
\geometry{top=2cm,right=2cm,bottom=2cm,left=2cm}
\setlength{\parindent}{1cm}
\setlength{\parskip}{0pt}
\newlength\textstartypos
\newlength\vspacedistance
%\newlength\tempval
\newcommand{\settextstartypos}[1]{
\zsavepos{#1}
\setlength\textstartypos{\the\dimexpr\zposy{#1}sp}
%\the\dimexpr\zposy{#1}sp
}
\newlength\gridrowheight
%\addtolength\gridrowheight{40pt}
\addtolength\gridrowheight{1706432sp}
\newcommand{\skiptonextypos}[1] {
\zsavepos{#1}
\setlength\vspacedistance{\textstartypos}
\addtolength\vspacedistance{-\the\dimexpr\zposy{#1}sp}
\setlength\vspacedistance{\intcalcMod{\vspacedistance}{\gridrowheight}sp}
%\setlength\tempval{\intcalcMod{\vspacedistance}{\gridrowheight}sp}
\setlength\vspacedistance{\intcalcSub{\gridrowheight}{\vspacedistance}sp}
\vspace{\vspacedistance}
}
\begin{document}
\begin{spacing}{1.0}
\begin{multicols}{2}
\settextstartypos{textstartypos}
\lipsum[2]
\skiptonextypos{someposition1}
\lipsum[3]
\lipsum[4]
\skiptonextypos{someposition2}
\lipsum[5]
\skiptonextypos{someposition3}
\lipsum[6]
\end{multicols}
\end{spacing}
\end{document}
</code></pre>
<p><a href="https://i.stack.imgur.com/23mKC.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/23mKC.png" alt="not quite aligned"></a></p>
| 0non-cybersec
| Stackexchange |
At least its not raining. | 0non-cybersec
| Reddit |
1 Hour in Destiny. [Found this today.](http://i.imgur.com/ytZnsOh.jpg) It's a year old, but I thought it was funny so I decided to share it. | 0non-cybersec
| Reddit |
Human transparent cells are created. UCI scientists engineer human cells with squid-like transparency.. | 0non-cybersec
| Reddit |
Concept art for the Old God that we haven't been introduced to yet.... | 0non-cybersec
| Reddit |
I wish I could drop everything and become a drifter. I could never actually do it, but most of the time I just want to abandon all of my responsibilities and everyone I know, to go wander the earth in search of enlightenment.
I'd rather live nomadically and experience new places and things then get a career, find a husband and pop out some kids... it feels like we're just kinda livestock the way society is now... | 0non-cybersec
| Reddit |
If you're of a certain age you will have felt like this.. | 0non-cybersec
| Reddit |
How to measure network bandwidth over time?. <p>I have been struggling with my internet provider for a month now. Our bandwidth is too low for the price we are paying for our internet contract.</p>
<p><strong>Is there any method/tool/program to monitor my internet bandwidth (download speed) constantly for like a day or at least for 6-8 hours?</strong> </p>
<p>I would like to <strong>make an excel or pdf from the result log</strong> so I can show them to proof that they service is too low.</p>
<p>The one-time measurements not good enough because sadly all the time when I contact their support our connection works well.</p>
<p>Thanks in advance.</p>
| 0non-cybersec
| Stackexchange |
Ah yes, flashing the camera is a sign of maturity.. | 0non-cybersec
| Reddit |
Regular Car Reviews: 1997 Dodge Ram 1500 - [3:52] This guy is absolutely hilarious. | 0non-cybersec
| Reddit |
Persephone Number Station. | 0non-cybersec
| Reddit |
heartbeat timeout error in tsunami deamon. <p>I am trying to transfer a large file from server A to server B using tsunami.</p>
<p>I am getting following error:</p>
<pre><code>Heartbeat timeout of 15 seconds reached, terminating transfer.
</code></pre>
<p>And here are details:</p>
<p>Receiving server:</p>
<pre><code>tsunami> get master_bkup.csv.gz
Receiving data on UDP port 46224
last_interval transfer_total buffers transfer_remaining OS UDP
time blk data rate rexmit blk data rate rexmit queue ring blk rt_len err
00:00:00.625 50 0.00M 0.6Mbps 1.9% 50 0.0G 0.6Mbps 0.0% 1 0 14140749 1 0 --
</code></pre>
<hr>
<p>Sending Server:</p>
<pre><code> n/a n/a n/a 285839 2.02 1 -- no heartbeat since 12.74s
100000 83.24us 12us 294039 2.08 1
n/a n/a n/a 294039 2.08 1 -- no heartbeat since 13.39s
100000 86.71us 12us 300189 2.12 1
n/a n/a n/a 300189 2.12 1 -- no heartbeat since 13.91s
100000 90.32us 12us 306339 2.17 1
n/a n/a n/a 306339 2.17 1 -- no heartbeat since 14.44s
100000 94.09us 12us 312489 2.21 1
n/a n/a n/a 312489 2.21 1 -- no heartbeat since 14.99s
100000 98.01us 12us 318639 2.25 1
n/a n/a n/a 318639 2.25 1 -- no heartbeat since 15.57s
Heartbeat timeout of 15 seconds reached, terminating transfer.
Server 1 transferred 14480178012 bytes in 16.20 seconds (6820.4 Mbps)
</code></pre>
| 0non-cybersec
| Stackexchange |
Smokey Mountain, Grand Staircase Escalante National Monument, Utah [OC][3624 x 1245]. | 0non-cybersec
| Reddit |
I didn't think these were street legal. | 0non-cybersec
| Reddit |
A room covered in mirrors and filled with transparent furniture. | 0non-cybersec
| Reddit |
On the expectation of a path integral involving Brownian motion up to a random time. <p>Let $W$ be a one-dimensional standard Brownian motion and denote $$X_t=-\mu t + \sigma W_t, \quad t\ge 0,$$ where $\mu$ and $\sigma$ are positive constants. For $b<0$ denote the first passage time of level $b$ by $\tau$: $$ \tau:=\inf\{t\ge 0: X_t=b\}.$$ My question is: how can one find $${\mathbb E}\left[\int_0^\tau X_t dt \right]?$$ Or slightly more general, $${\mathbb E}\left[\int_0^\tau f(X_t) dt \right]$$ for some measurable function $f$? </p>
| 0non-cybersec
| Stackexchange |
How to compute the norm of the linear map $\phi:\mathcal C^0([0,1],\mathbb R) \to \mathcal C^1([0,1],\mathbb R)$?. <p>I'm doing this exercise in a lecture about linear maps between Banach spaces.</p>
<blockquote>
<p><strong>Exercise 16.</strong><sup><a href="https://i.stack.imgur.com/1uIvz.png" rel="nofollow noreferrer">(src)</a></sup> Let <span class="math-container">$E=C([0,1],\mathbb{R})$</span> with <span class="math-container">$\|f\|_{\infty}$</span>. Let <span class="math-container">$\phi$</span> defined as
<span class="math-container">$$\phi(f)(x) = \int_{0}^{x} tf(t) \, \mathrm{d}t. $$</span></p>
<ol>
<li>Show that <span class="math-container">$\phi$</span> is continuous.</li>
<li>Compute the norm of <span class="math-container">$\phi$</span>.</li>
</ol>
</blockquote>
<p>While I'm able to do (1), I unable to compute the norm of <span class="math-container">$\phi$</span>, which is <span class="math-container">$\|\phi\|$</span>.</p>
<p><strong>My questions:</strong></p>
<ol>
<li><p>Could you please verify if my proof on (1) looks fine or contains logical gaps/errors?</p>
</li>
<li><p>Please shed me some light so compute <span class="math-container">$\|\phi\|$</span>!</p>
</li>
</ol>
<p>Thank you so much for your help!</p>
<hr />
<p><strong>My attempt:</strong></p>
<ol>
<li>By <em>Fundamental Theorem of Calculus</em>, <span class="math-container">$(\phi(f))'(x) = xf(x)$</span> for all <span class="math-container">$x\in [0,1]$</span> and thus <span class="math-container">$\phi(f) \in \mathcal C^1([0,1],\mathbb R)$</span>. It is easy to verify that <span class="math-container">$\phi:\mathcal C^0([0,1],\mathbb R) \to \mathcal C^1([0,1],\mathbb R)$</span> is a linear map.</li>
</ol>
<p>We have <span class="math-container">$$\begin{aligned} \|\phi(f)\|_\infty &= \sup_{x \in [0,1]} \left| \int_0^x t f(t) \, \mathrm{d}t \right| &&\le \sup_{x \in [0,1]} \int_0^x |t f(t)| \, \mathrm{d}t \\ &\le \sup_{x \in [0,1]} \int_0^x |f(t)| \, \mathrm{d}t && \le \sup_{x \in [0,1]} \left (x \sup_{z \in [0,1]}|f(z)| \right) \\ &= \left (\sup_{z \in [0,1]}|f(z)|\right) \sup_{x \in [0,1]} \left (x \right) &&=\sup_{x \in [0,1]}|f(x)| \\ &= \|f\|_\infty\end{aligned}$$</span></p>
<p>As such, <span class="math-container">$$\|\phi\| = \sup_{f \in \mathcal C^0([0,1],\mathbb R)} \dfrac{\|\phi(f)\|_\infty}{\|f\|_\infty} \le \sup_{f \in \mathcal C^0([0,1],\mathbb R)} (1) =1$$</span></p>
<p>Since <span class="math-container">$\phi$</span> is a linear map and <span class="math-container">$\|\phi\| < \infty$</span>, <span class="math-container">$\phi$</span> is continuous.</p>
<ol start="2">
<li>We have <span class="math-container">$$\|\phi(f)\|_\infty = \sup_{x \in [0,1]} \left| \int_0^x t f(t) \, \mathrm{d}t \right| \quad \text{and} \quad \|f\|_\infty = \sup_{x \in [0,1]}|f(x)|$$</span></li>
</ol>
<p>As such, <span class="math-container">$$\|\phi\| = \sup_{f \in \mathcal C^0([0,1],\mathbb R)} \dfrac{\|\phi(f)\|_\infty}{\|f\|_\infty} = \sup_{f \in \mathcal C^0([0,1],\mathbb R)} \dfrac{\sup_{x \in [0,1]} \left| \int_0^x t f(t) \, \mathrm{d}t \right|}{\sup_{x \in [0,1]}|f(x)|}$$</span></p>
| 0non-cybersec
| Stackexchange |
Northern Europe is getting too much attention. Reddit, have some Nicaragua. Volcano Concepcion seen from Volcano Maderas, Island of Ometepe, Nicaragua. (x-post EarthPorn) [2554x1437][OC]. | 0non-cybersec
| Reddit |
Where does all the world's dust go?. Where do all the airborne particles we see go to die? Why does everything not just have a layer of dust, lint and whatnot on top if it? | 0non-cybersec
| Reddit |
Generate Last logon report exchange server powshell. <p>With this command in shell <code>get-MailboxStatistics -Server servername | Select-Object DisplayName | Sort LastLogonTime -Descending | Export-csv c:\export.csv</code></p>
<p>I am able to generate a full reports of last logon with display name.</p>
<p>but I also need a column showing the last user that accessed the mailbox as we have some mailboxes that are shared with many users is this possible?</p>
| 0non-cybersec
| Stackexchange |
Now formally announcing Bethesda Softworks' latest venture: The Elder Scrolls V: Skyrim for Modern Warfare 2's Heartbeat Sensor!. | 0non-cybersec
| Reddit |
is there a post render callback for Angular JS directive?. <p>I 've just gotten my directive to pull in a template to append to its element like this:</p>
<pre><code># CoffeeScript
.directive 'dashboardTable', ->
controller: lineItemIndexCtrl
templateUrl: "<%= asset_path('angular/templates/line_items/dashboard_rows.html') %>"
(scope, element, attrs) ->
element.parent('table#line_items').dataTable()
console.log 'Just to make sure this is run'
# HTML
<table id="line_items">
<tbody dashboard-table>
</tbody>
</table>
</code></pre>
<p>I am also using a jQuery Plugin called DataTables. The general usage of it is like this: $('table#some_id').dataTable(). You can pass in the JSON data into the dataTable() call to supply the table data OR you can have the data already on the page and it will do the rest.. I am doing the latter, having the rows already on the HTML page.</p>
<p>But the problem is that I have to call the dataTable() on the table#line_items AFTER DOM ready. My directive above calls the dataTable() method BEFORE the template is appended to the directive's element. Is there a way that I can call functions AFTER the append?</p>
<p>Thank you for your help!</p>
<p>UPDATE 1 after Andy's answer:</p>
<p>I want to make sure that the link method does only get called AFTER everything is on the page so I altered the directive for a little test:</p>
<pre><code># CoffeeScript
#angular.module(...)
.directive 'dashboardTable', ->
{
link: (scope,element,attrs) ->
console.log 'Just to make sure this gets run'
element.find('#sayboo').html('boo')
controller: lineItemIndexCtrl
template: "<div id='sayboo'></div>"
}
</code></pre>
<p>And I do indeed see "boo" in the div#sayboo. </p>
<p>Then I try my jquery datatable call</p>
<pre><code>.directive 'dashboardTable', ->
{
link: (scope,element,attrs) ->
console.log 'Just to make sure this gets run'
element.parent('table').dataTable() # NEW LINE
controller: lineItemIndexCtrl
templateUrl: "<%= asset_path('angular/templates/line_items/dashboard_rows.html') %>"
}
</code></pre>
<p>No luck there</p>
<p>Then I try adding a time out :</p>
<pre><code>.directive 'dashboardTable', ($timeout) ->
{
link: (scope,element,attrs) ->
console.log 'Just to make sure this gets run'
$timeout -> # NEW LINE
element.parent('table').dataTable()
,5000
controller: lineItemIndexCtrl
templateUrl: "<%= asset_path('angular/templates/line_items/dashboard_rows.html') %>"
}
</code></pre>
<p>And that works. So I wonder what goes wrong in the non-timer version of the code? </p>
| 0non-cybersec
| Stackexchange |
ktpass.exe failing with ldap_open failed for default server: 0x3a. <p>I am trying to generate a keytab file <a href="https://blogs.technet.microsoft.com/pie/2018/01/03/all-you-need-to-know-about-keytab-files/" rel="nofollow noreferrer">using the instructions online here</a>. No matter what I do, whether I run this on a domain controller, a member server, in PowerShell as administrator, in cmd as administrator, I get the same error:</p>
<pre><code>ktpass /out app1.keytab /princ http/[email protected] /mapuser mlservice /crypto AES256-SHA1 /ptype KRB5_NT_PRINCIPAL /pass myP@ssword477 /target adtrml0.ml.test
Using legacy password setting method
FAIL: ldap_open failed for default server: 0x3a.
</code></pre>
<p>I cannot seem to find any information online about this error.</p>
<p>I even tried creating a fresh domain with a single DC and running this on the new DC right after promoting it, and I still get this error.</p>
<p>Any idea what this is all about and how I can address it?</p>
| 0non-cybersec
| Stackexchange |
9 Useful Marketing Techniques for Promoting Mobile Games. | 0non-cybersec
| Reddit |
Getting my first tattoo this weekend. . In a couple days I'm getting my first tat. Its the word **Change**, under my left peck. I want it in a script, not sure what the name of the specific script is called, but its something like [this](http://rukru.com/wordpress/wp-content/uploads/2010/05/rukru-los-angeles-script.jpg) or [this](http://c3.ac-images.myspacecdn.com/images01/49/l_9823a5123d5865a6460b233c7ed0b8aa.jpg), only the words though. I just call it Los Angeles script. Because I see it in a lot of LA stuff. I dont want to be too flashy, with the swirls and whatnot. I just want the word, nice and clean looking. I already asked for a price estimate, which came out to be around 100, since its a simple piece.
I just wanted to know, since it's my first one and I don't know much out tattoo etiquette, **how much would a reasonable tip be?** I know they'll do a good job. Their portfolio is amazing. And they know how to do the script style I want.
Any feedback is appreciated. | 0non-cybersec
| Reddit |
How do I avoid "Argument list too long" errors when compressing thousands of files?. <p>I have 200,000 XML files in the folder on a RHEL7 Linux server. I need to zip all 200,000 XML files. I am using the Tar command but getting the error "Argument list too long" is there any other way in this 200,000 need zip only 10,000</p>
<pre><code>tar -cvf xml.tar *.xml
</code></pre>
<p>All xml files need to be archived separately as individual archive that has original file name in the archive name. </p>
<p>Original files:</p>
<pre><code>1.xml
2.xml
...
n.xml
</code></pre>
<p>Result of archiving OP wants:</p>
<pre><code>1.xml.tgz
2.xml.tgz
...
n.xml.tgz
</code></pre>
| 0non-cybersec
| Stackexchange |
What did the system call "tuxcall" do?. <p>In <code>include/x86_64-linux-gnu/asm/unistd_64.h</code>, I see a system call named <code>tuxcall</code>,</p>
<pre><code>#define __NR_tuxcall 184
</code></pre>
<p>There is nothing about it in <code>man tuxcall</code> except to say that it's an <em>unimplemented system calls</em>. What did it do? Was it never implemented, or did it do something in antiquity?</p>
| 0non-cybersec
| Stackexchange |
Is it possible for the human brain to make a statistically random decision?. Is it possible for the human brain to make a statistically random decision?
This has been on my mind ever since my friend asked me to pick a few lottery numbers for her.. is there ever a random decision or is there a basis to every “random” conclusion? (such as certain number that have meaning/significance for you, or numbers you have successfully used before) | 0non-cybersec
| Reddit |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.